/*
Theme Name: cd333 Independent Guide
Theme URI: https://cd333.beer/
Author: cd333.beer editorial team
Description: A mobile-first Bengali editorial guide theme for cd333.beer.
Version: 1.0.0
Text Domain: cd333-guide
*/

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

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: "Noto Sans Bengali", "Hind Siliguri", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.72;
  overflow-wrap: anywhere;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--primary-dark); text-decoration-thickness: .09em; text-underline-offset: .2em; }
a:hover { color: var(--secondary); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 9999; background: var(--surface); color: var(--text); padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; }
.site-shell { width: min(100% - 32px, var(--container)); margin-inline: auto; }

.site-header { position: relative; z-index: 50; min-height: 68px; background: var(--deep); color: #fff; }
.header-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-brand { color: #fff; font-size: 1.42rem; font-weight: 850; letter-spacing: .02em; text-decoration: none; }
.site-brand:hover { color: #fff; }
.menu-toggle { display: none; min-width: 46px; min-height: 46px; border: 1px solid rgba(255,255,255,.45); background: transparent; color: #fff; border-radius: 12px; font: inherit; cursor: pointer; }
.primary-menu, .footer-menu { list-style: none; padding: 0; margin: 0; }
.primary-menu { display: flex; align-items: center; gap: 10px; }
.primary-menu a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; color: #fff; border-radius: 12px; text-decoration: none; }
.primary-menu a:hover, .primary-menu .current-menu-item > a { background: rgba(255,255,255,.12); }

.hero { background: linear-gradient(145deg, var(--deep), #175854 72%, #1a6c65); color: #fff; padding: 64px 0 52px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(360px, .96fr); align-items: center; gap: 48px; }
.eyebrow { display: inline-flex; margin: 0 0 16px; padding: 5px 12px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; color: #d8f4ef; font-size: .88rem; font-weight: 750; letter-spacing: .03em; }
h1, h2, h3 { line-height: 1.22; letter-spacing: -.015em; }
h1 { margin: 0 0 22px; font-size: clamp(2.5rem, 5.5vw, 4.25rem); max-width: 14ch; }
h2 { margin: 0 0 22px; font-size: clamp(1.75rem, 3vw, 2.55rem); }
h3 { margin: 30px 0 10px; font-size: 1.25rem; }
.hero-copy { font-size: 1.09rem; color: #edf9f7; }
.hero-copy p { margin: 0 0 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 11px 18px; border-radius: 14px; background: var(--accent); color: #3d2b06; font-weight: 800; text-decoration: none; box-shadow: 0 8px 20px rgba(0,0,0,.15); }
.button:hover { color: #211600; transform: translateY(-1px); }
.button-secondary { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.58); box-shadow: none; }
.button-secondary:hover { color: #fff; background: rgba(255,255,255,.1); }
.hero-figure { margin: 0; overflow: hidden; border-radius: 24px; background: #eef6f3; box-shadow: 0 24px 60px rgba(0,0,0,.22); }
.hero-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.hero-figure figcaption, .content-figure figcaption { padding: 11px 14px; color: var(--muted); background: var(--surface); font-size: .84rem; line-height: 1.5; }

.content-band { padding: 76px 0; scroll-margin-top: 24px; }
.content-band:nth-of-type(even) { background: var(--surface); }
.content-band.band-soft { background: var(--soft); }
.content-band.band-deep { background: var(--deep); color: #f5fffd; }
.content-band.band-deep a { color: #aee5dc; }
.section-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .78fr); align-items: start; gap: 52px; }
.section-copy { min-width: 0; }
.section-copy > :first-child { margin-top: 0; }
.section-copy p { margin: 0 0 1.25em; }
.heading-mark::before { content: ""; display: block; width: 58px; height: 6px; margin-bottom: 16px; border-radius: 99px; background: linear-gradient(90deg, var(--primary), var(--secondary)); }
.content-figure { margin: 4px 0 0; overflow: hidden; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); position: sticky; top: 24px; }
.content-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.note { margin: 26px 0; padding: 20px 22px; border-left: 5px solid var(--accent); border-radius: 0 14px 14px 0; background: var(--warning); color: var(--warning-text); }
.fact-box { margin: 26px 0; padding: 20px 22px; border-radius: 16px; background: var(--info); color: var(--text); }
.table-wrap { max-width: 100%; margin: 26px 0; overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; min-width: 680px; font-size: .96rem; }
th, td { padding: 13px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { background: #dff0eb; color: var(--deep); }
tr:last-child td { border-bottom: 0; }
.faq-list { display: grid; gap: 12px; }
.faq-list details { background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 6px 18px rgba(20,70,65,.06); }
.faq-list summary { min-height: 52px; padding: 15px 50px 15px 18px; font-weight: 800; cursor: pointer; position: relative; }
.faq-list summary::after { content: "+"; position: absolute; right: 18px; top: 12px; color: var(--secondary); font-size: 1.4rem; }
.faq-list details[open] summary::after { content: "−"; }
.faq-answer { padding: 0 18px 18px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.site-main-page { padding: 58px 0 76px; }
.page-card { width: min(100%, var(--reading)); margin: 0 auto; padding: clamp(24px, 5vw, 52px); background: var(--surface); border-radius: 22px; box-shadow: var(--shadow); }
.page-card h1 { max-width: none; color: var(--deep); font-size: clamp(2.25rem, 5vw, 3.5rem); }
.page-card p { margin: 0 0 1.25em; }
.page-card .button { margin-top: 8px; }
.error-page { text-align: center; }

.site-footer { background: #0d302f; color: #dcecea; padding: 48px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; }
.footer-title { margin: 0 0 10px; color: #fff; font-size: 1.28rem; font-weight: 850; }
.footer-copy { max-width: 580px; color: #bbd1ce; }
.footer-menu { display: grid; gap: 5px; }
.footer-menu a { display: inline-flex; align-items: center; min-height: 44px; color: #eaf7f5; }
.footer-bottom { margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.15); color: #9fbab6; font-size: .9rem; }

@media (max-width: 860px) {
  .site-header, .header-inner { min-height: 58px; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .primary-nav { display: none; position: absolute; left: 16px; right: 16px; top: 58px; padding: 10px; background: var(--deep); border: 1px solid rgba(255,255,255,.2); border-radius: 0 0 14px 14px; box-shadow: var(--shadow); }
  .primary-nav.is-open { display: block; }
  .primary-menu { display: grid; }
  .primary-menu a { width: 100%; }
  .hero { padding: 44px 0 40px; }
  .hero-grid, .section-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-figure { order: 2; }
  .content-figure { position: static; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .site-shell { width: min(100% - 32px, var(--container)); }
  h1 { font-size: clamp(2.1rem, 11vw, 2.65rem); }
  h2 { font-size: 1.75rem; }
  .hero-actions, .cta-row { display: grid; }
  .button { width: 100%; }
  .content-band { padding: 42px 0; }
  .content-figure { border-radius: 14px; }
  .page-card { border-radius: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
