/*
Theme Name: bk222 Bright Guide
Theme URI: https://bk222.beer/
Author: bk222.beer editorial
Description: A bright, mobile-first Bengali information guide theme.
Version: 1.0.0
Text Domain: bk222-guide
*/

:root {
  --bg: #f3f7f6;
  --surface: #ffffff;
  --soft: #e7f3ef;
  --deep: #123c3a;
  --primary: #167d72;
  --primary-dark: #0d625a;
  --secondary: #6d5bd0;
  --accent: #f0b84a;
  --text: #142b2a;
  --muted: #637572;
  --border: #d3e3df;
  --info: #e8f4fa;
  --warning: #fff2d2;
  --warning-text: #6b470c;
  --focus: #5a46c8;
  --shadow: 0 14px 34px rgba(20, 70, 65, .10);
  --radius: 18px;
  --content: 1140px;
  --reading: 760px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans Bengali", "Nirmala UI", "Vrinda", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: var(--primary-dark); text-decoration-thickness: .09em; text-underline-offset: .2em; }
a:hover { color: var(--secondary); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
.site-shell { width: min(var(--content), calc(100% - 40px)); margin-inline: auto; min-width: 0; }
.reading-width { max-width: var(--reading); }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; transform: translateY(-160%); padding: 10px 14px; background: #fff; color: var(--text); border-radius: 10px; }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--border); backdrop-filter: blur(14px); }
.header-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-brand { min-width: 0; color: var(--deep); font-size: 1.55rem; font-weight: 900; line-height: 1; text-decoration: none; letter-spacing: -.03em; }
.site-brand span { color: var(--secondary); }
.menu-toggle { display: none; width: 48px; height: 48px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--deep); cursor: pointer; }
.menu-toggle-bar { display: block; width: 22px; height: 2px; margin: 5px auto; background: currentColor; border-radius: 4px; }
.primary-nav ul { display: flex; align-items: center; gap: 8px; padding: 0; margin: 0; list-style: none; }
.primary-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: 12px; color: var(--text); font-weight: 700; text-decoration: none; }
.primary-nav a:hover { background: var(--soft); color: var(--primary-dark); }

.hero { position: relative; overflow: hidden; padding: 78px 0 64px; color: #fff; background: linear-gradient(135deg, var(--deep), #195e58 62%, #314d75); }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 999px; opacity: .28; pointer-events: none; }
.hero::before { width: 360px; height: 360px; right: -120px; top: -160px; background: var(--secondary); }
.hero::after { width: 190px; height: 190px; left: -70px; bottom: -90px; background: var(--accent); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); align-items: center; gap: 54px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 18px; color: #c9f7ed; font-size: .88rem; font-weight: 850; letter-spacing: .045em; }
.eyebrow::before { content: ""; width: 28px; height: 4px; border-radius: 4px; background: var(--accent); }
h1, h2, h3 { margin-top: 0; line-height: 1.2; letter-spacing: -.025em; text-wrap: balance; }
h1 { margin-bottom: 22px; font-size: clamp(40px, 5.5vw, 68px); }
h2 { margin-bottom: 20px; font-size: clamp(29px, 3.5vw, 44px); }
h3 { margin-bottom: 12px; font-size: clamp(21px, 2vw, 27px); }
p { margin: 0 0 1.15em; }
.hero-lead { max-width: 700px; color: #eaf9f6; font-size: 1.08rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button-link { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 11px 18px; border-radius: 14px; background: var(--accent); color: #2e250f; font-weight: 850; text-decoration: none; box-shadow: 0 10px 24px rgba(0,0,0,.14); }
.button-link.secondary { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.54); box-shadow: none; }
.button-link:hover { transform: translateY(-1px); color: #2e250f; }
.button-link.secondary:hover { background: rgba(255,255,255,.1); color: #fff; }
.hero-figure { margin: 0; padding: 10px; border: 1px solid rgba(255,255,255,.2); border-radius: 24px; background: rgba(255,255,255,.08); box-shadow: 0 26px 58px rgba(0,0,0,.24); }
.hero-figure img { width: 100%; border-radius: 17px; aspect-ratio: 16 / 9; object-fit: cover; }
.hero-figure figcaption, .content-figure figcaption { margin-top: 10px; color: inherit; font-size: .83rem; opacity: .82; }

.content-section { padding: 76px 0; scroll-margin-top: 82px; }
.content-section.surface { background: var(--surface); }
.content-section.soft { background: var(--soft); }
.content-section.deep { color: #eefaf8; background: var(--deep); }
.section-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .78fr); gap: 54px; align-items: start; }
.section-grid.reverse .section-copy { order: 2; }
.section-grid.reverse .content-figure { order: 1; }
.section-kicker { display: inline-block; margin-bottom: 12px; color: var(--primary); font-size: .85rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.deep .section-kicker { color: #8ee3d4; }
.deep a { color: #b8f1e6; }
.deep a:hover { color: #fff; }
.content-figure { position: sticky; top: 96px; margin: 0; padding: 10px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); color: var(--muted); }
.content-figure img { width: 100%; border-radius: 12px; aspect-ratio: 14 / 9; object-fit: cover; }
.comparison-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; margin: 28px 0; }
.comparison-card { min-width: 0; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: 0 8px 20px rgba(20,70,65,.06); }
.comparison-card h3 { color: var(--primary-dark); }
.tag-list { display: flex; flex-wrap: wrap; gap: 9px; padding: 0; margin: 20px 0; list-style: none; }
.tag-list li { padding: 7px 11px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-size: .92rem; font-weight: 700; }
.info-note, .warning-note { margin: 26px 0; padding: 20px 22px; border-left: 5px solid var(--primary); border-radius: 0 14px 14px 0; background: var(--info); }
.warning-note { border-color: var(--accent); background: var(--warning); color: var(--warning-text); }
.plain-list { padding-left: 1.35em; }
.plain-list li { margin-bottom: .55em; }
.table-wrap { max-width: 100%; overflow-x: auto; margin: 28px 0; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
table { width: 100%; min-width: 650px; border-collapse: collapse; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { color: var(--deep); background: var(--soft); }
tr:last-child td { border-bottom: 0; }
.inline-cta { display: inline-flex; align-items: center; min-height: 44px; margin-top: 10px; font-weight: 850; }

.faq-list { display: grid; gap: 12px; max-width: 880px; }
.faq-list details { border: 1px solid var(--border); border-radius: 15px; background: var(--surface); box-shadow: 0 7px 18px rgba(20,70,65,.05); }
.faq-list summary { min-height: 54px; padding: 15px 52px 15px 18px; cursor: pointer; font-weight: 850; list-style: none; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--secondary); font-size: 1.4rem; }
.faq-list details[open] summary::after { content: "−"; }
.faq-answer { padding: 0 18px 18px; color: var(--muted); }
.end-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.end-links a { display: inline-flex; align-items: center; min-height: 46px; padding: 9px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); font-weight: 800; text-decoration: none; }

.page-main { min-height: 65vh; }
.page-hero { padding: 66px 0 46px; background: linear-gradient(145deg, var(--soft), #eef0ff); border-bottom: 1px solid var(--border); }
.page-hero h1 { max-width: 900px; margin-bottom: 16px; color: var(--deep); }
.page-content { padding: 60px 0 82px; }
.page-content .entry-content { max-width: var(--reading); }
.page-content h2 { margin-top: 1.7em; font-size: clamp(27px, 3vw, 38px); }
.page-content h3 { margin-top: 1.5em; }

.site-footer { padding: 54px 0 28px; color: #dfeeed; background: #0d2d2c; }
.footer-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; }
.footer-title { margin-bottom: 12px; color: #fff; font-size: 1.55rem; font-weight: 900; }
.footer-copy { max-width: 620px; color: #bcd0cd; }
.footer-heading { color: #fff; font-size: 1rem; }
.footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px 16px; padding: 0; margin: 0; list-style: none; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; color: #dff6f1; }
.footer-bottom { margin-top: 38px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.16); color: #9eb8b4; font-size: .9rem; }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .header-inner { min-height: 58px; }
  .primary-nav { position: fixed; inset: 59px 0 auto 0; display: none; max-height: calc(100vh - 59px); overflow-y: auto; padding: 16px 20px 24px; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { align-items: stretch; flex-direction: column; gap: 4px; }
  .primary-nav a { width: 100%; padding-inline: 14px; }
  .hero { padding: 52px 0 44px; }
  .hero-grid, .section-grid { grid-template-columns: minmax(0,1fr); gap: 34px; }
  .hero-figure { max-width: 720px; }
  .section-grid.reverse .section-copy, .section-grid.reverse .content-figure { order: initial; }
  .content-figure { position: static; max-width: 720px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .site-shell { width: min(100% - 32px, var(--content)); }
  .site-brand { font-size: 1.35rem; }
  h1 { font-size: clamp(34px, 11vw, 42px); }
  h2 { font-size: clamp(27px, 8.8vw, 35px); }
  .hero { padding-top: 42px; }
  .cta-row, .end-links { flex-direction: column; align-items: stretch; }
  .button-link, .end-links a { width: 100%; text-align: center; justify-content: center; }
  .content-section { padding: 42px 0; }
  .comparison-grid { grid-template-columns: 1fr; }
  .comparison-card { padding: 18px; }
  .info-note, .warning-note { padding: 17px; }
  .page-hero { padding: 46px 0 34px; }
  .page-content { padding: 42px 0 60px; }
  .footer-nav { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

