/*
Theme Name: bd444 Signal Atlas
Description: Midnight modular Bengali brand-information theme.
Version: 2.0.0
Text Domain: bd444-signal
*/
:root {
  --page: #08111f;
  --surface: #0e1b2e;
  --module: #13243a;
  --module-strong: #17304c;
  --cyan: #55d8f5;
  --violet: #9ba8ff;
  --coral: #ff9a82;
  --text: #f4f7fb;
  --muted: #c5d0df;
  --line: #3b5979;
  --focus: #b7f1ff;
  --warning: #f0c16f;
  --wrap: 1220px;
  --reading: 760px;
  --radius: 18px;
  --shadow: 0 16px 44px rgba(0, 0, 0, .25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  overflow-wrap: anywhere;
  background: var(--page);
  color: var(--text);
  font-family: "Noto Sans Bengali", "Hind Siliguri", "Vrinda", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}
a { color: var(--cyan); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { color: #fff; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
img { display: block; width: 100%; height: auto; }
.site-wrap { width: min(var(--wrap), calc(100% - clamp(32px, 7vw, 96px))); margin-inline: auto; }
.reading-wrap { width: min(var(--reading), calc(100% - clamp(32px, 7vw, 96px))); margin-inline: auto; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 12px 16px; transform: translateY(-160%); background: #fff; color: #08111f; border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; top: 0; z-index: 40; background: rgba(8, 17, 31, .96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.header-row { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { display: inline-flex; min-height: 48px; align-items: center; color: var(--text); font-size: 1.65rem; font-weight: 800; line-height: 1; letter-spacing: -.04em; text-decoration: none; }
.wordmark span { color: var(--cyan); }
.menu-list { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.menu-list a { display: flex; min-height: 48px; align-items: center; padding: 8px 14px; border-bottom: 3px solid transparent; color: var(--text); font-weight: 700; text-decoration: none; }
.menu-list a:hover, .current-menu-item > a { border-color: var(--cyan); background: var(--surface); }
.menu-toggle { display: none; min-width: 48px; min-height: 48px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; font-weight: 700; }

.hero { padding: clamp(48px, 7vw, 92px) 0 clamp(56px, 8vw, 104px); background: radial-gradient(circle at 77% 23%, rgba(85,216,245,.14), transparent 30%), radial-gradient(circle at 92% 78%, rgba(255,154,130,.1), transparent 26%); }
.hero-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: center; }
.hero-copy { grid-column: span 7; min-width: 0; }
.hero-visual { grid-column: span 5; min-width: 0; }
.eyebrow { margin: 0 0 14px; color: var(--coral); font-size: .86rem; font-weight: 800; letter-spacing: .04em; }
.hero h1 { max-width: 16ch; margin: 0; font-size: clamp(2.45rem, 5.2vw, 4.15rem); line-height: 1.08; letter-spacing: -.035em; }
.hero-lead { max-width: 720px; margin: 22px 0 0; color: var(--muted); font-size: clamp(1.04rem, 1.5vw, 1.16rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 11px 18px; border: 1px solid var(--cyan); border-radius: 10px; background: var(--cyan); color: #071420; font-weight: 800; text-align: center; text-decoration: none; }
.button:hover { background: #fff; color: #071420; }
.button-secondary { background: transparent; color: var(--text); }
.editorial-image { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.editorial-image figcaption { padding: 10px 14px; color: var(--muted); font-size: .88rem; }

.home-content { padding: clamp(56px, 8vw, 96px) 0; }
.home-content > .site-wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.content-module { grid-column: 2 / span 10; min-width: 0; margin-bottom: clamp(44px, 7vw, 80px); padding: clamp(24px, 4vw, 42px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--module); scroll-margin-top: 88px; }
.content-module.module-wide { grid-column: 1 / -1; }
.content-module.module-accent { background: linear-gradient(145deg, var(--module-strong), var(--module)); }
.content-module h2, .page-content h2 { margin: 0 0 20px; font-size: clamp(1.8rem, 3.6vw, 2.7rem); line-height: 1.18; letter-spacing: -.02em; }
.content-module h2::before { content: ""; display: inline-block; width: 12px; height: .85em; margin-right: 12px; border-radius: 999px; background: linear-gradient(var(--cyan), var(--violet)); vertical-align: -.05em; }
.content-module h3, .page-content h2 { margin-top: 32px; color: var(--violet); }
.content-module p, .content-module li, .page-content p, .page-content li { color: var(--muted); }
.content-module p, .page-content p { margin: 0 0 1.05em; }
.content-module .editorial-image { width: min(100%, 1100px); margin: 32px auto 0; }
.module-split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.fact-list { margin: 22px 0; padding: 0; list-style: none; }
.fact-list li { position: relative; margin: 10px 0; padding: 12px 14px 12px 42px; border: 1px solid var(--line); border-radius: 10px; background: rgba(8,17,31,.42); }
.fact-list li::before { content: ""; position: absolute; top: 18px; left: 17px; width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 5px rgba(85,216,245,.1); }
.notice { margin: 24px 0; padding: 18px 20px; border-left: 4px solid var(--warning); border-radius: 10px; background: #182a40; color: var(--text); }
.faq details { margin: 12px 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; background: rgba(8,17,31,.48); }
.faq summary { min-height: 48px; cursor: pointer; color: var(--text); font-size: 1.05rem; font-weight: 700; }
.faq details p { margin-bottom: 0; }
.internal-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.internal-links a { display: inline-flex; min-height: 48px; align-items: center; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-weight: 700; }

.page-hero { padding: clamp(48px, 7vw, 82px) 0 40px; background: linear-gradient(160deg, var(--surface), var(--page)); border-bottom: 1px solid var(--line); }
.page-hero h1 { margin: 0; font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.12; letter-spacing: -.03em; }
.page-content { padding: clamp(44px, 7vw, 76px) 0 clamp(64px, 8vw, 104px); }
.page-content p:first-child { color: var(--text); font-size: 1.12rem; }
.page-content .internal-links { margin-top: 42px; padding-top: 26px; border-top: 1px solid var(--line); }

.site-footer { padding: 56px 0 26px; border-top: 1px solid var(--line); background: #07101d; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(220px, .5fr); gap: 64px; }
.footer-about p { max-width: 650px; color: var(--muted); }
.footer-email span { color: var(--text); font-weight: 700; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.footer-nav { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.footer-nav h2 { margin: 0 0 8px; color: var(--text); font-size: 1.05rem; }
.footer-nav a { display: flex; min-height: 48px; align-items: center; }
.copyright { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.not-found { min-height: 60vh; padding: 90px 0; text-align: center; }
.error-code { margin: 0; color: var(--coral); font-size: clamp(4rem, 12vw, 8rem); font-weight: 800; line-height: 1; }

@media (max-width: 839px) {
  body { font-size: 16px; }
  .site-wrap, .reading-wrap { width: min(100% - 32px, var(--wrap)); }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .primary-nav { display: none; position: absolute; top: 58px; left: 16px; right: 16px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); }
  .primary-nav.is-open { display: block; }
  .menu-list { display: block; }
  .menu-list a { width: 100%; }
  .hero-grid { display: flex; flex-direction: column; align-items: stretch; }
  .hero-copy, .hero-visual { width: 100%; }
  .hero-visual { margin-top: 12px; }
  .hero-actions, .internal-links { flex-direction: column; }
  .hero-actions .button, .internal-links a { width: 100%; }
  .home-content > .site-wrap { display: block; }
  .content-module { margin-bottom: 44px; padding: 24px 18px; border-radius: 12px; }
  .content-module.module-wide { width: 100%; }
  .module-split, .footer-grid { grid-template-columns: 1fr; }
  .footer-grid { gap: 34px; }
}

@media (min-width: 840px) and (max-width: 1199px) {
  .hero-copy { grid-column: span 7; }
  .hero-visual { grid-column: span 5; }
  .content-module { grid-column: 1 / -1; }
}

@media (min-width: 1600px) {
  :root { --wrap: 1280px; --reading: 780px; }
}

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