/*
Theme Name: ace67 Bright Mobile Guide
Theme URI: https://ace67.beer/
Author: ace67.beer
Description: Mobile-first independent Bengali brand information guide.
Version: 2.0.2
Text Domain: ace67-guide
*/

:root {
  --page: #f3f7f6;
  --surface: #ffffff;
  --soft: #e7f3ef;
  --deep: #123c3a;
  --accent: #167d72;
  --accent-2: #6d5bd0;
  --gold: #f0b84a;
  --ink: #142b2a;
  --muted: #637572;
  --border: #d3e3df;
  --info: #e8f4fa;
  --warn: #fff2d2;
  --warn-ink: #765019;
  --focus: #5a46c8;
  --radius: 18px;
  --shadow: 0 14px 34px rgba(20,70,65,.10);
  --shell: 1140px;
  --reading: 760px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Noto Sans Bengali", "Hind Siliguri", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.72;
  overflow-wrap: anywhere;
}
body.menu-open { overflow: hidden; }
a { color: #126b62; text-decoration-thickness: .09em; text-underline-offset: .18em; }
a:hover { color: var(--accent-2); }
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(calc(100% - 32px), var(--shell)); margin-inline: auto; }
.reading-column { width: min(calc(100% - 32px), var(--reading)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 1000; top: 8px; left: 8px; transform: translateY(-150%); background: #fff; color: var(--ink); padding: 10px 14px; border-radius: 10px; }
.skip-link:focus { transform: none; }

.site-header { position: sticky; z-index: 100; top: 0; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--border); backdrop-filter: blur(12px); }
.header-row { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { color: var(--deep); font-size: 1.55rem; font-weight: 900; letter-spacing: -.04em; text-decoration: none; }
.brand span { color: var(--accent-2); }
.menu-toggle { min-width: 48px; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding-inline: 11px; color: var(--deep); background: transparent; border: 1px solid var(--border); border-radius: 12px; font: inherit; font-weight: 700; white-space: nowrap; cursor: pointer; }
.menu-icon, .menu-icon::before, .menu-icon::after { width: 18px; height: 2px; display: block; background: currentColor; content: ""; transition: transform .18s ease; }
.menu-icon { position: relative; }
.menu-icon::before { position: absolute; top: -6px; }
.menu-icon::after { position: absolute; top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-icon::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }
.main-nav { display: none; position: fixed; inset: 58px 0 auto; padding: 20px 16px 26px; background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
.menu-open .main-nav { display: block; }
.menu, .footer-menu { margin: 0; padding: 0; list-style: none; }
.main-nav a { min-height: 48px; display: flex; align-items: center; padding: 8px 12px; color: var(--deep); font-weight: 750; text-decoration: none; border-radius: 10px; }
.main-nav a:hover { background: var(--soft); }

.hero { position: relative; overflow: hidden; padding: 48px 0 0; color: #fff; background: var(--deep); }
.hero::before { position: absolute; width: 240px; height: 240px; right: -90px; top: -90px; border-radius: 50%; background: rgba(109,91,208,.42); content: ""; }
.hero-copy { position: relative; z-index: 1; width: min(calc(100% - 32px), 920px); margin-inline: auto; }
.eyebrow { margin: 0 0 12px; color: var(--accent); font-size: .83rem; font-weight: 800; letter-spacing: .05em; }
.hero .eyebrow { color: #9be5d8; }
h1, h2, h3 { line-height: 1.18; letter-spacing: -.025em; text-wrap: balance; }
h1 { margin: 0; font-size: clamp(2.25rem, 10vw, 4.25rem); }
.hero-lead { max-width: 790px; margin: 20px 0 0; font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: #e2f1ef; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 32px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 12px 18px; color: #fff; background: var(--accent); border: 2px solid var(--accent); border-radius: 14px; font-weight: 800; text-decoration: none; }
.button:hover { color: #fff; background: #10685f; border-color: #10685f; }
.button-secondary { color: #fff; background: transparent; border-color: rgba(255,255,255,.65); }
.button-secondary:hover { background: #fff; border-color: #fff; color: var(--deep); }
.hero .content-figure { width: min(100%, 1140px); margin: 0 auto; border-radius: 18px 18px 0 0; box-shadow: none; }
.hero .content-figure img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; border-radius: inherit; }
.hero .content-figure figcaption { color: #dce9e7; background: #0d302f; }

.home-intro { padding: 44px 0; background: var(--surface); }
.home-intro p:first-child { margin-top: 0; font-size: 1.08rem; }
.content-band { padding: 48px 0; scroll-margin-top: 84px; }
.content-band:nth-of-type(even) { background: var(--surface); }
.content-band.soft { background: var(--soft); }
.content-band.deep { color: #f4fbfa; background: var(--deep); }
.content-band.deep h2, .content-band.deep h3 { color: #fff; }
.content-band.deep a { color: #a9ebe0; }
.section-inner { width: min(calc(100% - 32px), 980px); margin-inline: auto; }
.reading { max-width: var(--reading); margin-inline: auto; }
.section-heading { max-width: 820px; margin: 0 auto 24px; }
.section-heading::before { display: block; width: 46px; height: 5px; margin-bottom: 14px; border-radius: 4px; background: var(--gold); content: ""; }
h2 { margin: 0 0 20px; font-size: clamp(1.8rem, 5.8vw, 2.7rem); }
h3 { margin: 30px 0 12px; font-size: clamp(1.25rem, 4vw, 1.55rem); }
p { margin: 0 0 1.15em; }
.content-figure { margin: 30px auto; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.content-figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.content-figure figcaption { padding: 10px 14px; color: var(--muted); font-size: .9rem; }
.status-grid, .site-path-grid, .evidence-grid { display: grid; gap: 14px; margin: 24px 0; }
.status-card, .site-path-card, .evidence-card { padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 6px 18px rgba(20,70,65,.06); }
.status-card strong, .evidence-card strong { display: block; margin-bottom: 5px; color: var(--accent); }
.notice { margin: 24px 0; padding: 18px 20px; color: var(--warn-ink); background: var(--warn); border-left: 5px solid var(--gold); border-radius: 12px; }
.info-note { margin: 24px 0; padding: 18px 20px; background: var(--info); border-left: 5px solid var(--accent-2); border-radius: 12px; }
.table-wrap { margin: 28px auto; overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; min-width: 650px; }
th, td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
th { color: var(--deep); background: var(--soft); font-weight: 800; }
tr:last-child td { border-bottom: 0; }
.faq-list { max-width: 820px; margin: 28px auto 0; }
.faq-list details { margin-bottom: 12px; overflow: hidden; background: #fff; border: 1px solid var(--border); border-radius: 14px; }
.faq-list summary { min-height: 56px; display: flex; align-items: center; padding: 14px 46px 14px 18px; position: relative; color: var(--deep); font-weight: 800; cursor: pointer; }
.faq-list summary::after { position: absolute; right: 18px; content: "+"; color: var(--accent-2); font-size: 1.45rem; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { padding: 0 18px 18px; margin: 0; }
.site-path-card h3 { margin-top: 0; }
.site-path-card a { font-weight: 800; }

.page-hero { padding: 56px 0 42px; background: var(--soft); border-bottom: 1px solid var(--border); }
.page-hero h1 { font-size: clamp(2.2rem, 8vw, 3.8rem); }
.entry-content { padding-block: 42px 68px; }
.entry-content p:first-child { font-size: 1.08rem; }
.entry-content ul { padding-left: 1.3em; }
.not-found { min-height: 58vh; display: grid; place-items: center; padding: 64px 0; text-align: center; }

.site-footer { color: #dce9e7; background: #0d302f; }
.footer-grid { display: grid; gap: 34px; padding-block: 48px 34px; }
.footer-brand { color: #fff; }
.footer-about p { max-width: 690px; margin-top: 16px; }
.footer-nav h2 { color: #fff; font-size: 1.2rem; }
.footer-menu { display: grid; gap: 6px; }
.footer-menu a { min-height: 44px; display: flex; align-items: center; color: #c5eee7; }
.footer-bottom { padding-block: 18px; border-top: 1px solid rgba(255,255,255,.14); color: #aac2be; }
.footer-bottom p { margin: 0; font-size: .9rem; }

@media (min-width: 700px) {
  body { font-size: 17px; }
  .status-grid, .evidence-grid, .site-path-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr); }
}
@media (min-width: 900px) {
  body.menu-open { overflow: auto; }
  .site-header { position: relative; }
  .header-row { min-height: 68px; }
  .menu-toggle { display: none; }
  .main-nav { display: block; position: static; padding: 0; background: transparent; border: 0; box-shadow: none; }
  .main-nav .menu { display: flex; align-items: center; gap: 4px; }
  .main-nav a { min-height: 44px; padding: 8px 13px; }
  .hero { padding-top: 70px; }
  .content-band { padding-block: 76px; }
  .home-intro { padding-block: 60px; }
}
@media (max-width: 699px) {
  .table-wrap { border: 0; overflow: visible; background: transparent; }
  table, thead, tbody, tr, th, td { display: block; min-width: 0; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  tr { margin-bottom: 14px; overflow: hidden; background: #fff; border: 1px solid var(--border); border-radius: 12px; }
  td { display: grid; grid-template-columns: minmax(92px, 38%) 1fr; gap: 10px; padding: 11px 13px; }
  td::before { content: attr(data-label); color: var(--muted); font-weight: 800; }
  .hero-actions .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
