/*
Theme Name: 67bd Guide
Theme URI: https://67bd.beer/
Author: 67bd.beer Editorial Team
Description: Dark emerald Bengali longform information theme for 67bd.beer.
Version: 1.0.1
Text Domain: 67bd-guide
*/

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

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 90% 0%, rgba(47, 199, 154, .1), transparent 31rem),
    var(--bg);
  font-family: "Noto Sans Bengali", "Nirmala UI", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
a { color: var(--green); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--gold); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
img, video, iframe { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
.site-shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
.reading-width { width: min(100%, var(--reading)); margin-inline: auto; }
.skip-link {
  position: fixed; left: 16px; top: -100px; z-index: 9999; padding: 10px 16px;
  color: var(--bg); background: var(--gold); border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky; top: 0; z-index: 1000; min-height: 68px;
  background: rgba(7, 26, 23, .97); border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.header-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-logo { color: var(--text); font-size: 29px; font-weight: 900; letter-spacing: -.045em; text-decoration: none; }
.site-logo span { color: var(--gold); }
.site-header .site-logo { display: inline-flex; flex: 0 0 auto; align-items: center; line-height: 1; }
.site-logo__image { width: 94px; height: auto; }
.desktop-nav ul, .mobile-nav ul { margin: 0; padding: 0; list-style: none; }
.desktop-nav ul { display: flex; align-items: center; gap: 8px; }
.desktop-nav a { display: flex; min-height: 44px; align-items: center; padding: 9px 14px; color: var(--text); text-decoration: none; border-radius: 10px; }
.desktop-nav a:hover, .desktop-nav .current-menu-item > a { color: var(--gold); background: var(--bg-soft); }
.desktop-nav li:last-child a { min-height: 48px; color: var(--bg); background: var(--gold); font-weight: 800; }
.desktop-nav li:last-child a:hover { color: var(--bg); background: #ffe178; transform: translateY(-1px); }
.menu-toggle { display: none; min-width: 48px; min-height: 44px; padding: 8px 12px; color: var(--text); background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px; }
.mobile-drawer { display: none; }

main { min-height: 55vh; }
.hero { padding: 72px 0 64px; border-bottom: 1px solid var(--border); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 58fr) minmax(0, 42fr); align-items: center; gap: 52px; }
.eyebrow { margin: 0 0 14px; color: var(--green); font-size: .82rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3 { margin: 0 0 .65em; color: var(--text); letter-spacing: -.025em; }
h1 { max-width: 830px; font-size: clamp(38px, 5vw, 64px); line-height: 1.08; }
h2 { position: relative; margin-top: 0; padding-top: 8px; font-size: clamp(29px, 3.3vw, 40px); line-height: 1.2; }
h2::before { content: ""; position: absolute; top: 0; left: 0; width: 54px; height: 4px; border-radius: 4px; background: var(--gold); }
h3 { color: #d8fff2; font-size: clamp(22px, 2.2vw, 26px); line-height: 1.3; }
.hero-copy { max-width: 690px; }
.hero-copy .lead { color: var(--muted); font-size: 1.16rem; }
.hero-copy p { max-width: 65ch; }
.hero-media { overflow: hidden; border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow); background: var(--bg-soft); }
.hero-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.button {
  display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 12px 20px;
  color: var(--bg); background: var(--gold); border: 1px solid var(--gold); border-radius: 12px;
  font-weight: 850; text-decoration: none; transition: transform .18s ease, background .18s ease;
}
.button:hover { color: var(--bg); background: #ffe178; transform: translateY(-2px); }
.button-secondary { color: var(--text); background: transparent; border-color: var(--border); }
.button-secondary:hover { color: var(--gold); background: var(--bg-soft); }

.content-section { padding: 74px 0; scroll-margin-top: 90px; }
.content-section + .content-section { border-top: 1px solid rgba(43, 74, 65, .65); }
.section-intro, .page-lead { color: var(--muted); font-size: 1.08rem; }
.page-header { padding: 70px 0 44px; border-bottom: 1px solid var(--border); }
.page-header .reading-width > p:last-child { margin-bottom: 0; }
.page-body { padding: 34px 0 78px; }
.page-body section { padding: 42px 0; scroll-margin-top: 92px; }
.page-body section + section { border-top: 1px solid rgba(43, 74, 65, .55); }
.content-image { margin: 28px 0; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.content-image img { width: 100%; }
.caption { margin: 8px 0 0; color: var(--muted); font-size: .9rem; }
.split-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(310px, .78fr); align-items: center; gap: 48px; }
.callout { padding: 22px 24px; background: var(--notice); border: 1px solid var(--border); border-left: 4px solid var(--green); border-radius: 0 var(--radius) var(--radius) 0; }
.warning { border-left-color: var(--warning); }
.notice-small { color: var(--muted); font-size: .94rem; }
.steps { margin: 24px 0; padding: 0; list-style: none; counter-reset: guide-step; }
.steps li { position: relative; margin: 0 0 14px; padding: 20px 20px 20px 68px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.steps li::before {
  counter-increment: guide-step; content: counter(guide-step); position: absolute; left: 18px; top: 18px;
  display: grid; width: 34px; height: 34px; place-items: center; color: var(--bg); background: var(--gold); border-radius: 50%; font-weight: 900;
}
.steps strong { color: var(--text); }
.decision-list { display: grid; gap: 14px; padding: 0; list-style: none; }
.decision-list li { padding: 18px 20px; background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--green); border-radius: 0 var(--radius) var(--radius) 0; }

.table-wrap { max-width: 100%; overflow-x: auto; margin: 26px 0; border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; min-width: 680px; border-collapse: collapse; background: var(--card); }
th, td { padding: 15px 16px; text-align: left; vertical-align: top; border: 1px solid var(--border); }
th { color: var(--gold); background: var(--bg-soft); }
details { margin: 12px 0; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
summary { display: flex; min-height: 52px; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 18px; cursor: pointer; font-weight: 800; }
summary::after { content: "+"; color: var(--gold); font-size: 1.4rem; }
details[open] summary::after { transform: rotate(45deg); }
details > div { padding: 0 18px 18px; color: var(--muted); }
.reviewed { margin-top: 44px; padding-top: 20px; color: var(--muted); border-top: 1px solid var(--border); font-size: .92rem; }

.contact-form { margin-top: 28px; padding: 26px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.form-row { margin-bottom: 18px; }
.contact-form label { display: block; margin-bottom: 7px; color: var(--text); font-weight: 750; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form input[type="url"], .contact-form textarea, .contact-form select {
  width: 100%; min-height: 48px; padding: 11px 13px; color: var(--text); background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px;
}
.contact-form textarea { min-height: 170px; resize: vertical; }
.checkbox-row label { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; }
.checkbox-row input { width: 20px; height: 20px; margin-top: 5px; accent-color: var(--green); }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.form-status { padding: 16px 18px; border-radius: 10px; background: var(--notice); border-left: 4px solid var(--green); }
.form-status.error { border-left-color: var(--error); }

.site-footer { padding: 56px 0 26px; background: #061512; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.3fr .9fr .9fr; gap: 42px; }
.footer-title { margin-bottom: 12px; color: var(--gold); font-size: 1rem; }
.footer-links { margin: 0; padding: 0; list-style: none; columns: 2; }
.footer-links li { break-inside: avoid; margin-bottom: 8px; }
.footer-links a { color: var(--muted); }
.footer-note { color: var(--muted); font-size: .92rem; }
.footer-bottom { margin-top: 36px; padding-top: 20px; color: var(--muted); border-top: 1px solid var(--border); font-size: .88rem; }
.not-found { padding: 100px 0; text-align: center; }

@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .mobile-drawer { position: fixed; inset: 60px 0 0; z-index: 999; padding: 18px 20px 32px; overflow-y: auto; background: rgba(7, 26, 23, .995); }
  .mobile-drawer[hidden] { display: none; }
  .mobile-drawer:not([hidden]) { display: block; }
  .mobile-nav a { display: flex; min-height: 52px; align-items: center; padding: 10px 14px; color: var(--text); border-bottom: 1px solid var(--border); text-decoration: none; }
  .mobile-nav li:last-child a { margin-top: 16px; justify-content: center; color: var(--bg); background: var(--gold); border: 0; border-radius: 12px; font-weight: 850; }
  .hero { padding-top: 52px; }
  .hero-grid, .split-section { grid-template-columns: 1fr; }
  .hero-copy { order: 1; }
  .hero-media { order: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .site-shell { width: min(calc(100% - 32px), var(--shell)); }
  .header-inner { min-height: 60px; }
  .site-header { min-height: 60px; }
  .site-logo__image { width: 90px; }
  h1 { font-size: clamp(34px, 10.5vw, 42px); }
  h2 { font-size: clamp(27px, 8.2vw, 32px); }
  .hero, .content-section { padding: 48px 0; }
  .page-header { padding: 48px 0 34px; }
  .page-body { padding-bottom: 54px; }
  .page-body section { padding: 34px 0; }
  .button { width: 100%; }
  .steps li { padding: 18px 16px 18px 62px; }
  .contact-form { padding: 20px 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > :first-child { grid-column: auto; }
  .footer-links { columns: 1; }
}

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