/*
Theme Name: 33bmw Clean Mobile Guide
Theme URI: https://33bmw.beer/
Author: 33bmw বাংলা তথ্যসাইট
Description: Bangladesh-focused Bengali information theme using the locked Clean Mobile Brand Guide visual preset.
Version: 1.0.2
Text Domain: bmw33-guide
*/

:root {
  --page: #f4f8f6;
  --surface: #fff;
  --hero: #0f7a5a;
  --hero-dark: #0a5c45;
  --accent: #18a879;
  --accent-soft: #7bc9a9;
  --gold: #f1c75b;
  --ink: #102a22;
  --muted: #60736b;
  --border: #d8e8e0;
  --info: #eaf6f1;
  --warning: #fff5d9;
  --warning-ink: #76500f;
  --danger: #b84b4b;
  --focus: #064e3b;
  --max: 1160px;
  --reading: 780px;
  --radius: 18px;
  --shadow: 0 14px 36px rgba(17,84,63,.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--page);
  color: var(--ink);
  font-family: "Noto Sans Bengali", "Nirmala UI", "Vrinda", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--hero-dark); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
button, input, textarea, select { font: inherit; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.reading { width: min(100%, var(--reading)); margin-inline: auto; }
.container.reading { width: min(calc(100% - 40px), var(--reading)); }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 999; background: #fff; color: var(--focus); padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; }

.site-header { position: relative; z-index: 20; background: var(--hero-dark); color: #fff; }
.header-inner { min-height: 68px; display: flex; align-items: center; gap: 28px; }
.site-brand { display: inline-flex; flex: 0 0 auto; align-items: center; color: #fff; font-size: 1.45rem; font-weight: 850; letter-spacing: -.03em; text-decoration: none; white-space: nowrap; }
.site-brand__logo { display: block; width: 142px; height: auto; max-height: 49px; }
.site-brand:hover { color: #fff; opacity: .88; }
.primary-nav { display: flex; align-items: center; margin-left: auto; min-width: 0; }
.primary-nav ul { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.primary-nav a { display: grid; place-items: center; min-height: 44px; padding: 8px 13px; color: #fff; border-radius: 10px; text-decoration: none; font-weight: 650; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { background: rgba(255,255,255,.12); color: #fff; }
.header-cta { display: inline-grid; place-items: center; min-height: 48px; padding: 9px 17px; border-radius: 12px; background: #fff; color: var(--hero-dark); text-decoration: none; font-weight: 800; white-space: nowrap; box-shadow: 0 8px 18px rgba(0,0,0,.1); }
.header-cta:hover { color: var(--hero-dark); transform: translateY(-1px); }
.primary-nav .mobile-cta { display: none; }
.menu-toggle { display: none; margin-left: auto; width: 48px; height: 48px; padding: 0; border: 1px solid rgba(255,255,255,.35); border-radius: 12px; background: transparent; color: #fff; cursor: pointer; }
.menu-toggle-lines, .menu-toggle-lines::before, .menu-toggle-lines::after { display: block; width: 22px; height: 2px; margin: auto; background: currentColor; content: ""; transition: transform .18s ease, opacity .18s ease; }
.menu-toggle-lines::before { transform: translateY(-7px); }
.menu-toggle-lines::after { transform: translateY(5px); }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines::before { transform: translateY(0) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines::after { transform: translateY(-2px) rotate(-45deg); }

.hero { position: relative; isolation: isolate; min-height: 620px; display: grid; align-items: center; background: linear-gradient(115deg, var(--hero-dark), var(--hero)); color: #fff; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero::after { position: absolute; inset: 0; z-index: -1; content: ""; background: linear-gradient(90deg, rgba(5,50,39,.96) 0%, rgba(8,84,64,.88) 38%, rgba(8,84,64,.28) 68%, rgba(8,84,64,.05) 100%); }
.hero-content { width: min(57%, 670px); padding-block: 82px; }
.eyebrow { margin: 0 0 10px; color: #c9f3e2; font-weight: 800; letter-spacing: .03em; }
h1, h2, h3 { margin: 0 0 .65em; color: var(--ink); font-weight: 850; line-height: 1.22; letter-spacing: -.025em; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 4.8vw, 4.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.55rem); }
h3 { font-size: clamp(1.22rem, 2vw, 1.55rem); }
.hero h1 { color: #fff; }
.hero-lead { max-width: 650px; margin: 0 0 18px; color: #eefcf7; font-size: clamp(1.08rem, 1.8vw, 1.3rem); line-height: 1.65; }
.hero-answer { max-width: 650px; margin: 0 0 28px; color: #d8f4e9; }
.button { display: inline-grid; place-items: center; min-height: 48px; padding: 11px 19px; border: 0; border-radius: 12px; background: var(--hero); color: #fff; text-decoration: none; font-weight: 800; cursor: pointer; box-shadow: 0 8px 22px rgba(15,122,90,.17); transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-1px); background: var(--hero-dark); color: #fff; box-shadow: var(--shadow); }
.button-light { background: #fff; color: var(--hero-dark); }
.button-light:hover { background: #edf9f4; color: var(--hero-dark); }

.content-section { padding-block: 72px; scroll-margin-top: 86px; }
.content-section + .content-section { border-top: 1px solid var(--border); }
.content-section.surface { background: var(--surface); }
.section-intro { max-width: 760px; color: var(--muted); }
.prose p { margin: 0 0 1.15em; }
.prose > :last-child { margin-bottom: 0; }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose li + li { margin-top: .55em; }
.text-link { font-weight: 800; }
.media-block { margin: 32px 0; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.media-block img { width: 100%; }
.media-caption { margin: 0; padding: 10px 16px; color: var(--muted); font-size: .9rem; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, .78fr); gap: 52px; align-items: center; }
.callout { margin: 28px 0; padding: 20px 22px; border-left: 5px solid var(--accent); border-radius: 0 16px 16px 0; background: var(--info); }
.callout.warning { border-left-color: var(--gold); background: var(--warning); color: var(--warning-ink); }
.callout.danger { border-left-color: var(--danger); background: #fff0f0; }

.table-wrap { width: 100%; margin: 30px 0; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: 0 10px 28px rgba(17,84,63,.07); }
table { width: 100%; border-collapse: collapse; min-width: 700px; }
th, td { padding: 15px 17px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { background: var(--info); color: var(--hero-dark); font-size: .95rem; }
tr:last-child td { border-bottom: 0; }

.article-header { padding: 62px 0 42px; background: linear-gradient(135deg, var(--hero-dark), var(--hero)); color: #fff; }
.article-header .reading { margin-left: max(20px, calc((100vw - var(--max)) / 2)); margin-right: auto; }
.article-header h1 { color: #fff; font-size: clamp(2.1rem, 4vw, 3.7rem); }
.article-lead { max-width: var(--reading); margin: 0; color: #e0f7ee; font-size: 1.12rem; }
.article-date { margin: 12px 0 0; color: #c4eadb; font-size: .9rem; }
.article-body { padding-block: 64px 80px; }
.article-body section { scroll-margin-top: 86px; }
.article-body section + section { margin-top: 56px; padding-top: 52px; border-top: 1px solid var(--border); }
.step-list { margin: 30px 0; padding: 0; list-style: none; counter-reset: guide-step; }
.step-list li { position: relative; min-height: 76px; margin: 0 0 18px; padding: 18px 20px 18px 82px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: 0 8px 24px rgba(17,84,63,.06); counter-increment: guide-step; }
.step-list li::before { position: absolute; left: 20px; top: 18px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--info); color: var(--hero-dark); content: counter(guide-step, bengali); font-weight: 900; }
.step-list strong { display: block; margin-bottom: 4px; color: var(--hero-dark); }

.contact-form { margin-top: 28px; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 7px; color: var(--ink); font-weight: 800; }
.field input, .field textarea, .field select { width: 100%; min-height: 48px; padding: 10px 13px; border: 1px solid #adc8bc; border-radius: 12px; background: #fff; color: var(--ink); }
.field textarea { min-height: 170px; resize: vertical; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0; }
.checkbox input { width: 22px; height: 22px; margin-top: 3px; flex: 0 0 auto; }
.form-status { margin-bottom: 22px; padding: 15px 18px; border-radius: 12px; background: var(--info); border-left: 4px solid var(--accent); }
.form-status.error { background: #fff0f0; border-color: var(--danger); }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.site-footer { padding: 52px 0 30px; background: var(--ink); color: #dceae4; }
.footer-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; }
.footer-brand { color: #fff; font-size: 1.35rem; font-weight: 850; }
.site-footer p { max-width: 680px; }
.footer-nav ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 18px; margin: 0; padding: 0; list-style: none; }
.footer-nav a { display: inline-grid; align-items: center; min-height: 44px; color: #fff; text-decoration: none; font-weight: 700; }
.footer-nav a:hover { color: var(--accent-soft); }
.footer-note { margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); color: #aac2b8; font-size: .92rem; }
.footer-note p { margin: 0 0 7px; }

.not-found { min-height: 54vh; display: grid; place-items: center; padding: 64px 0; text-align: center; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 900px) {
  .header-inner { min-height: 58px; }
  .site-brand__logo { width: 112px; max-height: 39px; }
  .menu-toggle { display: block; }
  .primary-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; margin: 0; padding: 12px 20px 20px; background: var(--hero-dark); box-shadow: 0 18px 30px rgba(0,0,0,.2); }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { display: flex; align-items: stretch; flex-direction: column; }
  .primary-nav a { justify-content: flex-start; width: 100%; }
  .header-cta { display: none; }
  .primary-nav .mobile-cta { display: grid; place-items: center; min-height: 48px; margin-top: 10px; border-radius: 12px; background: #fff; color: var(--hero-dark); font-weight: 850; text-decoration: none; }
  .primary-nav .mobile-cta:hover { background: #edf9f4; color: var(--hero-dark); }
  .hero { min-height: auto; }
  .hero-content { width: 68%; padding-block: 70px; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-nav ul { justify-content: flex-start; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { width: min(calc(100% - 32px), var(--max)); }
  .container.reading { width: min(calc(100% - 32px), var(--reading)); }
  .hero { display: block; min-height: 650px; }
  .hero-media { opacity: .62; }
  .hero-media img { object-position: 62% center; }
  .hero::after { background: linear-gradient(180deg, rgba(5,50,39,.96) 0%, rgba(8,84,64,.86) 56%, rgba(8,84,64,.44) 100%); }
  .hero-content { width: 100%; padding-block: 54px 230px; }
  h1 { font-size: clamp(2.05rem, 10.5vw, 3rem); }
  .button { width: 100%; }
  .content-section { padding-block: 44px; }
  .article-header { padding: 44px 0 34px; }
  .article-body { padding-block: 44px 64px; }
  .article-body section + section { margin-top: 42px; padding-top: 40px; }
  .media-block, .table-wrap { border-radius: 14px; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 20px 16px; border-radius: 14px; }
  .step-list li { padding: 72px 16px 18px; border-radius: 14px; }
  .step-list li::before { left: 16px; top: 16px; }
}

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