/* BoroJeet Guide BD — design system
   Dark, warm-gold accent. No external fonts, no trackers, no frameworks. */

:root {
  --bg: #0A1310;
  --surface: #12211C;
  --surface-2: #182C25;
  --border: #233B32;
  --text: #E8F0EC;
  --muted: #9BB0A6;
  --accent: #E7B14C;
  --accent-hi: #F3C468;
  --accent-ink: #0A1310;
  --danger: #E06C5A;
  --ok: #66C89A;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 8px 28px rgba(0, 0, 0, .35);
  --container: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Bengali",
          "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  padding-bottom: 72px; /* room for sticky CTA */
}

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

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ---------- typography ---------- */

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.15; }
h2 { font-size: clamp(1.4rem, 2.5vw, 2rem); margin-top: 2em; }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.3rem); margin-top: 1.6em; }
p, ul, ol { margin: 0 0 1em; }
main p, main li { max-width: 72ch; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hi); }
strong { color: #fff; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 68ch; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--accent);
  color: var(--accent-ink); padding: 10px 16px; z-index: 100; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 19, 16, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 62px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; }
.logo-mark {
  width: 26px; height: 26px; border-radius: 7px; flex: none;
  background: linear-gradient(135deg, var(--accent), #B9822A);
  box-shadow: 0 0 0 1px rgba(231, 177, 76, .35);
}
.logo-text { font-size: 1.06rem; letter-spacing: -.02em; }
.logo-accent { color: var(--accent); }

.nav { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav a {
  display: block; padding: 7px 10px; border-radius: var(--radius-sm);
  color: var(--text); text-decoration: none; font-size: .93rem;
}
.nav a:hover { background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--accent); background: var(--surface); }
.lang {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 6px 12px !important; color: var(--muted) !important; white-space: nowrap;
}

.burger { display: none; background: none; border: 0; padding: 10px; cursor: pointer; margin-left: auto; }
.burger span { display: block; width: 22px; height: 2px; background: var(--text); margin: 4px 0; border-radius: 2px; }

@media (max-width: 1060px) {
  .burger { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg); border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: stretch; gap: 8px; padding: 12px 20px 18px;
  }
  .nav.open { display: flex; }
  .nav ul { flex-direction: column; }
  .nav a { padding: 11px 12px; }
  .lang { text-align: center; }
}

/* ---------- breadcrumbs ---------- */

.crumbs { padding: 16px 20px 0; max-width: var(--container); margin: 0 auto; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; font-size: .85rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 8px; color: var(--border); }

/* ---------- sections & hero ---------- */

section { padding: 44px 0; }
section > .container > h2:first-child { margin-top: 0; }
@media (min-width: 900px) { section { padding: 60px 0; } }

.hero { padding-top: 28px; }
.hero-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 44px; } }
.hero img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--border); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 12px; }
.btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 13px 24px; border-radius: var(--radius-sm); font-weight: 600;
  text-decoration: none; border: 1px solid transparent; line-height: 1.3;
  transition: transform .12s ease, background .12s ease;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hi); color: var(--accent-ink); transform: translateY(-1px); }
.btn-secondary { border-color: var(--border); color: var(--text); background: transparent; }
.btn-secondary:hover { background: var(--surface-2); color: var(--text); }
.btn-sub { font-size: .75rem; font-weight: 400; opacity: .8; }

.disclosure {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; color: var(--muted); margin: 4px 0 0;
}
.disclosure::before {
  content: "18+"; font-weight: 700; font-size: .68rem; letter-spacing: .02em;
  border: 1px solid var(--danger); color: var(--danger);
  padding: 1px 6px; border-radius: 999px; flex: none;
}

/* ---------- cards ---------- */

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card-link { display: inline-block; margin-top: 8px; font-weight: 600; text-decoration: none; }
.card-link::after { content: " →"; }

.fact { display: flex; flex-direction: column; gap: 2px; }
.fact-value { font-size: 1.5rem; font-weight: 700; color: var(--accent); }
.fact-label { font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

/* ---------- tables ---------- */

.table-wrap {
  overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius);
  margin: 0 0 1.4em; background: var(--surface);
  background-image: linear-gradient(to right, rgba(0,0,0,.35), rgba(0,0,0,0) 24px);
  background-repeat: no-repeat; background-position: right 0;
}
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .95rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { background: var(--surface-2); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
tbody tr:nth-child(even) { background: rgba(255, 255, 255, .015); }
tbody tr:last-child td { border-bottom: 0; }
td strong { color: var(--accent); }

/* ---------- steps ---------- */

.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; }
.steps > li {
  counter-increment: s; position: relative; padding: 0 0 22px 54px; max-width: 72ch;
}
.steps > li::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-weight: 700; font-size: .95rem;
}
.steps > li:not(:last-child)::after {
  content: ""; position: absolute; left: 17px; top: 40px; bottom: 6px;
  width: 1px; background: var(--border);
}
.steps h3 { margin: 4px 0 6px; font-size: 1.08rem; }
.steps p { margin-bottom: 0; }

/* ---------- callouts ---------- */

.callout {
  border-left: 3px solid var(--danger); background: rgba(224, 108, 90, .08);
  padding: 16px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 0 0 1.4em;
}
.callout.tip { border-left-color: var(--ok); background: rgba(102, 200, 154, .08); }
.callout.note { border-left-color: var(--accent); background: rgba(231, 177, 76, .08); }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout strong { display: block; margin-bottom: 4px; }

/* ---------- figures ---------- */

figure { margin: 0 0 1.8em; }
figure img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface);
}
figcaption {
  font-size: .84rem; color: var(--muted); margin-top: 10px;
  max-width: 72ch; line-height: 1.5;
}

/* Aspect-ratio classes are assigned at build time from the real pixel size in
   image-manifest.json, so a portrait frame never swallows the page. */
.fig-standard { max-width: 860px; }          /* 4:3 */
.fig-wide     { max-width: 100%; }           /* 16:9 and wider */
.fig-square   { max-width: 620px; }          /* 1:1 */
.fig-portrait { max-width: 460px; }          /* 3:4 and taller */
.fig-square, .fig-portrait { margin-left: auto; margin-right: auto; }
.fig-square figcaption, .fig-portrait figcaption { text-align: center; }

@media (max-width: 640px) {
  .fig-portrait { max-width: 320px; }
  .fig-square { max-width: 100%; }
}

/* Hero figure sits in the hero grid and must not be constrained */
.hero figure, .hero .fig-standard, .hero .fig-wide,
.hero .fig-square, .hero .fig-portrait { max-width: 100%; margin: 0; }

/* ---------- FAQ ---------- */

.faq details {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); margin-bottom: 10px;
}
.faq summary {
  cursor: pointer; padding: 15px 46px 15px 18px; font-weight: 600;
  list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 18px; top: 21px;
  width: 9px; height: 9px; border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent); transform: rotate(45deg);
  transition: transform .18s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 25px; }
.faq details > *:not(summary) { padding: 0 18px; }
.faq details > *:last-child { padding-bottom: 16px; }

/* ---------- final CTA ---------- */

.cta-band {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; text-align: center;
}
.cta-band h2 { margin-top: 0; }
.cta-band .btn-row { justify-content: center; }
.cta-band .disclosure { justify-content: center; }

.inline-cta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px; margin: 0 0 1.6em;
}
.inline-cta p { margin: 0; flex: 1 1 260px; }
.inline-cta .btn { padding: 10px 18px; }

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid var(--border); background: #08100D; margin-top: 40px; padding: 44px 0 0; }
.footer-grid { display: grid; gap: 26px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.footer-h { font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 0 0 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--text); text-decoration: none; font-size: .93rem; }
.footer-col a:hover { color: var(--accent); }
.legal { border-top: 1px solid var(--border); margin-top: 34px; padding-top: 18px; padding-bottom: 22px; }
.legal p { font-size: .78rem; color: var(--muted); max-width: none; margin: 0; }

/* ---------- sticky mobile CTA ---------- */

.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(18, 33, 28, .97); border-top: 1px solid var(--border);
  padding: 10px 16px; backdrop-filter: blur(8px);
}
.sticky-text { font-size: .9rem; color: var(--muted); }
.sticky-cta .btn { padding: 11px 20px; }
@media (max-width: 520px) { .sticky-text { display: none; } .sticky-cta .btn { width: 100%; } }
@media (min-width: 900px) { body { padding-bottom: 0; } .sticky-cta { display: none; } }

/* ---------- misc ---------- */

.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.2em; padding: 0; list-style: none; }
.pill-row li {
  font-size: .82rem; color: var(--muted); background: var(--surface);
  border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px;
}
.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.checklist li::before {
  content: ""; position: absolute; left: 6px; top: .55em;
  width: 9px; height: 5px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok);
  transform: rotate(-45deg);
}
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 28px; }
.toc h2 { font-size: .82rem !important; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 0 0 10px !important; }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin-bottom: 4px; }
