/*
Theme Name: okbd Emerald Guide
Theme URI: https://okbd.beer/
Author: okbd Editorial
Description: bn-BD longform brand and product guide using the locked dark emerald visual preset.
Version: 1.0.1
Text Domain: okbd-emerald-guide
*/

:root {
  --bg: #071a17;
  --bg-soft: #0e2823;
  --card: #13342c;
  --accent: #f4c84a;
  --accent-2: #2fc79a;
  --text: #f7faf9;
  --muted: #b5c7c0;
  --border: #2b4a41;
  --notice: #193d34;
  --warning: #e3a23b;
  --error: #d96c6c;
  --focus: #74e0bc;
  --max: 1180px;
  --reading: 780px;
  --radius: 16px;
  --shadow: 0 16px 40px rgba(0, 0, 0, .22);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans Bengali", "Nirmala UI", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
body.nav-open { overflow: hidden; }
a { color: var(--accent-2); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.reading { width: min(100%, var(--reading)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 1000; padding: 10px 16px; color: var(--bg); background: var(--accent); border-radius: 8px; }
.skip-link:focus { top: 12px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header { position: sticky; top: 0; z-index: 100; height: 68px; background: rgba(7, 26, 23, .97); border-bottom: 1px solid var(--border); backdrop-filter: blur(12px); }
.header-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.site-logo { color: var(--text); font-size: 27px; font-weight: 850; letter-spacing: -.04em; text-decoration: none; }
.menu-toggle { display: none; width: 48px; height: 48px; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 10px; color: var(--text); background: var(--bg-soft); cursor: pointer; }
.menu-toggle-lines, .menu-toggle-lines::before, .menu-toggle-lines::after { display: block; width: 22px; height: 2px; background: currentColor; transition: transform .18s ease, opacity .18s ease; }
.menu-toggle-lines { position: relative; }
.menu-toggle-lines::before, .menu-toggle-lines::after { content: ""; position: absolute; left: 0; }
.menu-toggle-lines::before { top: -7px; }
.menu-toggle-lines::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines::after { top: 0; transform: rotate(-45deg); }
.primary-nav ul { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.primary-nav a { display: flex; min-height: 46px; align-items: center; padding: 8px 13px; border-radius: 10px; color: var(--text); font-weight: 650; text-decoration: none; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { background: var(--bg-soft); color: var(--accent-2); }
.primary-nav li:last-child a { min-height: 48px; padding-inline: 18px; background: var(--accent); color: #10231f; font-weight: 800; }
.primary-nav li:last-child a:hover { background: #ffda64; color: #071a17; transform: translateY(-1px); }

.site-main { min-height: 60vh; }
.hero { padding: 72px 0 80px; background: radial-gradient(circle at 80% 25%, rgba(47, 199, 154, .13), transparent 38%), linear-gradient(180deg, #071a17, #0a211d); border-bottom: 1px solid var(--border); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 58fr) minmax(320px, 42fr); align-items: center; gap: 54px; }
.eyebrow { margin: 0 0 14px; color: var(--accent); font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; color: var(--text); font-weight: 830; letter-spacing: -.025em; }
h1 { margin-bottom: 22px; font-size: clamp(38px, 5vw, 64px); line-height: 1.08; }
h2 { margin-bottom: 22px; font-size: clamp(28px, 3.4vw, 39px); line-height: 1.2; scroll-margin-top: 92px; }
h3 { margin-bottom: 14px; color: var(--accent-2); font-size: clamp(21px, 2.3vw, 25px); line-height: 1.3; }
.hero-lead, .page-lead { color: #dce8e4; font-size: 19px; line-height: 1.78; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 11px 20px; border: 1px solid var(--accent); border-radius: 12px; background: var(--accent); color: #10231f; font-weight: 800; text-decoration: none; transition: transform .18s ease, background .18s ease; }
.button:hover { background: #ffda64; color: #071a17; transform: translateY(-2px); }
.hero-media { margin: 0; border: 1px solid var(--border); border-radius: 20px; overflow: hidden; background: var(--card); box-shadow: var(--shadow); }
.hero-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.page-header { padding: 70px 0 46px; background: linear-gradient(180deg, var(--bg-soft), var(--bg)); border-bottom: 1px solid var(--border); }
.page-header .reading { margin-inline: auto; }
.review-date { display: inline-flex; margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.article-body { padding: 64px 0 82px; }
.prose > * { max-width: var(--reading); margin-inline: auto; }
.prose > .content-media, .prose > .wide-block { max-width: 980px; }
.prose-section { padding: 24px 0 44px; }
.prose-section + .prose-section { border-top: 1px solid rgba(43, 74, 65, .78); }
.prose-section h2::before { content: ""; display: block; width: 44px; height: 4px; margin-bottom: 18px; border-radius: 999px; background: var(--accent); }
.prose p { margin: 0 0 1.05em; }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose li + li { margin-top: .45em; }
.content-media { margin-top: 30px; margin-bottom: 42px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--card); box-shadow: var(--shadow); }
.content-media img { width: 100%; }
.content-media figcaption { padding: 12px 16px; color: var(--muted); font-size: 14px; }
.toc { margin-top: 18px; margin-bottom: 46px; padding: 8px 20px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--notice); }
.toc summary { min-height: 48px; display: flex; align-items: center; color: var(--text); font-weight: 800; cursor: pointer; }
.toc ul { columns: 2; gap: 36px; margin: 4px 0 8px; }
.toc a { color: var(--text); }
.table-scroll { max-width: 980px; margin: 28px auto 38px; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; min-width: 700px; border-collapse: collapse; background: var(--bg-soft); }
th, td { padding: 15px 16px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { background: #102f28; color: var(--accent); font-size: 15px; }
tr:last-child td { border-bottom: 0; }
.steps { margin-top: 28px; padding: 0; list-style: none; counter-reset: steps; }
.steps li { position: relative; min-height: 64px; margin: 0 0 14px; padding: 15px 18px 15px 66px; border: 1px solid var(--border); border-radius: 14px; background: var(--card); counter-increment: steps; }
.steps li::before { content: counter(steps); position: absolute; left: 16px; top: 14px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #10231f; font-weight: 900; }
.note, .warning { margin: 28px auto; padding: 18px 20px; border-left: 4px solid var(--accent-2); border-radius: 0 12px 12px 0; background: var(--notice); }
.warning { border-left-color: var(--warning); }
.inline-cta { margin: 36px auto 4px; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.faq { padding-top: 12px; }
.faq details { margin-bottom: 12px; border: 1px solid var(--border); border-radius: 14px; background: var(--card); }
.faq summary { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 18px; color: var(--text); font-weight: 780; cursor: pointer; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 26px; line-height: 1; transition: transform .18s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 18px 18px; color: #dce8e4; }
.editorial-note { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--muted); font-size: 15px; }

.site-footer { border-top: 1px solid var(--border); background: #051411; }
.footer-inner { padding: 52px 0 28px; }
.footer-top { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: start; }
.footer-logo { margin: 0 0 10px; font-size: 28px; font-weight: 850; }
.footer-email { color: var(--muted); }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 20px; margin: 0; padding: 0; list-style: none; }
.footer-nav a { color: var(--text); }
.footer-statements { margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: 15px; }
.footer-statements p { margin: 0 0 8px; }
.copyright { margin-top: 24px; color: #819890; font-size: 14px; }
.empty-state { padding: 90px 0; text-align: center; }

@media (max-width: 900px) {
  .site-header, .header-inner { height: 60px; min-height: 60px; }
  .menu-toggle { display: inline-flex; }
  .primary-nav { position: fixed; inset: 60px 0 auto; max-height: calc(100vh - 60px); padding: 18px 20px 28px; overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-10px); background: #071a17; border-bottom: 1px solid var(--border); transition: opacity .18s ease, transform .18s ease, visibility .18s; }
  .primary-nav.is-open { visibility: visible; opacity: 1; transform: translateY(0); }
  .primary-nav ul { width: min(100%, 680px); margin-inline: auto; flex-direction: column; align-items: stretch; }
  .primary-nav a { min-height: 48px; justify-content: space-between; padding-inline: 15px; }
  .primary-nav li:last-child { margin-top: 8px; }
  .primary-nav li:last-child a { justify-content: center; }
  .hero { padding: 52px 0 58px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-media { order: 2; }
  .page-header { padding: 52px 0 38px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-nav { justify-content: flex-start; }
}

@media (max-width: 600px) {
  body { font-size: 16px; line-height: 1.72; }
  .container { width: min(calc(100% - 32px), var(--max)); }
  h1 { font-size: clamp(34px, 10.5vw, 42px); }
  h2 { font-size: clamp(27px, 8vw, 32px); }
  .hero-lead, .page-lead { font-size: 17px; }
  .hero-actions .button { width: 100%; }
  .article-body { padding: 42px 0 58px; }
  .prose-section { padding: 18px 0 34px; }
  .toc ul { columns: 1; }
  .content-media { border-radius: 12px; }
  .footer-nav { flex-direction: column; gap: 7px; }
}

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

.site-bottom-cta {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: calc(100% - 24px);
  padding: 8px;
  background: rgba(5, 20, 17, .95);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .48), 0 4px 12px rgba(0, 0, 0, .3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-bottom-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 130px;
  height: 50px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-decoration: none !important;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease, background-color .2s ease;
}

.site-bottom-cta__login {
  color: #fff !important;
  background: #20283a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
}

.site-bottom-cta__login:hover {
  color: #fff !important;
  background: #2d3850;
  transform: translateY(-2px);
}

.site-bottom-cta__register {
  color: #07130c !important;
  background: linear-gradient(135deg, #46f28c 0%, #14c968 100%);
  box-shadow: 0 8px 22px rgba(20, 201, 104, .42), inset 0 1px 0 rgba(255, 255, 255, .5);
}

.site-bottom-cta__register:hover {
  color: #07130c !important;
  transform: translateY(-3px) scale(1.025);
  filter: brightness(1.08);
  box-shadow: 0 12px 30px rgba(20, 201, 104, .56), inset 0 1px 0 rgba(255, 255, 255, .55);
}

.site-bottom-cta__button:active {
  transform: translateY(0) scale(.97);
}

.site-bottom-cta__button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 520px) {
  .site-bottom-cta {
    bottom: max(10px, env(safe-area-inset-bottom));
    width: calc(100% - 20px);
    gap: 7px;
    padding: 7px;
  }

  .site-bottom-cta__button {
    flex: 1 1 0;
    min-width: 0;
    height: 48px;
    padding: 0 12px;
    font-size: 15px;
  }

  .site-bottom-cta__register {
    flex-grow: 1.15;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-bottom-cta__button {
    transition: none;
  }
}
