/*
Theme Name: 444bd Bengali Guide
Theme URI: https://444bd.asia/
Author: 444bd বাংলা তথ্যসাইট
Description: 444bd independent Bengali information guide using the Dark Emerald Longform Guide preset.
Version: 1.0.1
Text Domain: fortyfour-guide
*/

:root {
  --bg: #071a17;
  --bg-soft: #0e2823;
  --card: #13342c;
  --gold: #f4c84a;
  --green: #2fc79a;
  --text: #f7faf9;
  --muted: #b5c7c0;
  --border: #2b4a41;
  --notice: #193d34;
  --warning: #e3a23b;
  --focus: #74e0bc;
  --content: 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;
  color: var(--text);
  background: var(--bg);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
body.menu-open { overflow: hidden; }
a { color: var(--green); text-decoration-thickness: .09em; 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; }
table { border-collapse: collapse; width: 100%; }
[id] { scroll-margin-top: 90px; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 9999;
  padding: 10px 16px;
  color: var(--bg);
  background: var(--gold);
  border-radius: 8px;
  font-weight: 800;
}
.skip-link:focus { top: 12px; }
.site-shell { width: min(calc(100% - 40px), var(--content)); margin-inline: auto; }

.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(12px);
}
.header-inner { min-height: 68px; display: flex; align-items: center; gap: 28px; }
.site-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}
.site-brand img { width: auto; height: 40px; }
.site-brand:hover img { filter: brightness(1.08); }
.site-nav { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.site-nav ul { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 11px; color: var(--text); font-weight: 700; text-decoration: none; border-radius: 9px; }
.site-nav a:hover, .site-nav .current-menu-item > a { color: var(--gold); background: var(--bg-soft); }
.site-nav .nav-cta { min-height: 48px; padding-inline: 18px; color: var(--bg); background: var(--gold); border-radius: 12px; }
.site-nav .nav-cta:hover { color: var(--bg); background: #ffe07c; transform: translateY(-1px); }
.menu-toggle { display: none; min-width: 48px; min-height: 48px; margin-left: auto; color: var(--text); background: var(--card); border: 1px solid var(--border); border-radius: 10px; 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; }
.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); }

.site-main { min-height: 60vh; }
.page-content { width: min(calc(100% - 40px), var(--reading)); margin-inline: auto; padding: 72px 0 80px; }
.page-content > section { margin-top: 72px; }
.page-content > section:first-child { margin-top: 0; }
.article-head { position: relative; padding: 18px 0 52px; }
.eyebrow { margin: 0 0 12px; color: var(--gold); font-size: .86rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
h1, h2, h3 { color: var(--text); letter-spacing: -.025em; }
h1 { max-width: 900px; margin: 0 0 24px; font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1.08; }
h2 { margin: 0 0 24px; font-size: clamp(1.75rem, 4vw, 2.4rem); line-height: 1.2; }
h2::before { display: block; width: 44px; height: 4px; margin-bottom: 16px; background: var(--gold); border-radius: 99px; content: ""; }
h3 { margin: 34px 0 14px; color: var(--green); font-size: clamp(1.3rem, 3vw, 1.55rem); line-height: 1.3; }
p { margin: 0 0 1.05em; }
.lead { max-width: 720px; color: #e5efeb; font-size: clamp(1.08rem, 2vw, 1.25rem); }
.reviewed { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 22px 0 0; color: var(--muted); font-size: .94rem; }
.reviewed a { font-weight: 700; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 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: #ffe07c; transform: translateY(-2px); }
.button.secondary { color: var(--text); background: transparent; border-color: var(--border); }
.button.secondary:hover { color: var(--gold); background: var(--bg-soft); }

.section-image { margin: 32px 0; overflow: hidden; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.section-image img { width: 100%; }
.section-image figcaption { padding: 10px 16px; color: var(--muted); font-size: .9rem; }
.section-image.wide { width: min(100vw - 40px, 1020px); margin-left: 50%; transform: translateX(-50%); }
.info-panel, .warning-panel { margin: 28px 0; padding: 22px 24px; background: var(--notice); border: 1px solid var(--border); border-radius: var(--radius); }
.warning-panel { border-left: 5px solid var(--warning); }
.info-panel > :last-child, .warning-panel > :last-child { margin-bottom: 0; }
.check-list, .plain-list { padding-left: 1.25em; }
.check-list li, .plain-list li { margin-bottom: .65em; padding-left: .25em; }
.step-list { list-style: none; margin: 28px 0; padding: 0; counter-reset: steps; }
.step-list li { position: relative; margin: 0 0 14px; padding: 20px 20px 20px 70px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; counter-increment: steps; }
.step-list li::before { position: absolute; left: 18px; top: 18px; display: grid; place-items: center; width: 36px; height: 36px; color: var(--bg); background: var(--gold); border-radius: 50%; font-weight: 900; content: counter(steps); }
.table-wrap { max-width: 100%; margin: 28px 0; overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; }
.table-wrap table { min-width: 680px; }
th, td { padding: 15px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
th { color: var(--gold); background: var(--bg-soft); }
tbody tr:last-child td { border-bottom: 0; }
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; padding: 0; list-style: none; }
.tag-list li { padding: 7px 13px; color: var(--text); background: var(--card); border: 1px solid var(--border); border-radius: 999px; }

.faq { margin-top: 28px; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { position: relative; min-height: 52px; padding: 17px 46px 17px 0; color: var(--text); font-weight: 800; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { position: absolute; right: 10px; top: 17px; color: var(--gold); font-size: 1.4rem; line-height: 1; content: "+"; transition: transform .18s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 10px 18px 0; color: #d8e5e0; }

.feedback-form { margin-top: 28px; padding: 28px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { margin-bottom: 18px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { display: block; margin-bottom: 7px; color: var(--text); font-weight: 800; }
.form-field input, .form-field textarea, .form-field select { width: 100%; min-height: 48px; padding: 10px 12px; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 10px; }
.form-field textarea { min-height: 150px; resize: vertical; }
.form-help { color: var(--muted); font-size: .9rem; }
.form-status { margin-bottom: 22px; padding: 14px 16px; background: var(--notice); border-left: 4px solid var(--green); border-radius: 8px; }
.form-status.error { border-left-color: var(--warning); }
.hp-field { position: absolute !important; left: -9999px !important; }

.site-footer { padding: 56px 0 30px; background: #061411; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 36px; }
.footer-title { margin: 0 0 12px; color: var(--text); font-size: 1.55rem; font-weight: 900; }
.footer-heading { margin: 0 0 12px; color: var(--gold); font-size: 1rem; }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-note { color: var(--muted); font-size: .92rem; }
.footer-bottom { margin-top: 36px; padding-top: 22px; color: var(--muted); border-top: 1px solid var(--border); font-size: .88rem; }
.not-found { text-align: center; }

@media (max-width: 860px) {
  body { font-size: 16px; }
  .site-shell, .page-content { width: min(calc(100% - 32px), var(--content)); }
  .site-header, .header-inner { min-height: 60px; }
  .site-brand img { width: 118px; height: auto; }
  .js .menu-toggle { display: grid; place-items: center; }
  .site-nav { width: 100%; margin: 0; padding: 12px 0 18px; flex-direction: column; align-items: stretch; border-top: 1px solid var(--border); }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .site-nav a { width: 100%; padding: 10px 12px; }
  .js .site-nav { position: absolute; left: 0; top: 60px; display: none; padding-inline: 16px; background: var(--bg); box-shadow: var(--shadow); }
  .js .site-nav.is-open { display: flex; }
  .header-inner { flex-wrap: wrap; }
  .page-content { padding: 48px 0 60px; }
  .page-content > section { margin-top: 52px; }
  .section-image.wide { width: calc(100vw - 32px); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .site-shell, .page-content { width: calc(100% - 32px); }
  h1 { font-size: clamp(2.1rem, 10vw, 2.65rem); }
  h2 { font-size: clamp(1.68rem, 8vw, 2rem); }
  .button-row { flex-direction: column; }
  .button { width: 100%; }
  .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > :first-child { grid-column: auto; }
  .feedback-form { padding: 20px 16px; }
  .step-list li { padding-left: 62px; }
}

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