:root {
  --blue: #0038a8;
  --red: #d52b1e;
  --green: #247653;
  --ink: #162033;
  --muted: #5e6878;
  --line: #dde5ef;
  --paper: #f6f8fb;
  --white: #fff;
}
* { box-sizing: border-box }
html { scroll-behavior: smooth }
body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
  background: var(--white);
}
a { color: inherit }

.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 14px clamp(18px, 4vw, 58px);
  background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; text-decoration: none }
.brand-mark {
  display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 8px; color: white;
  background: linear-gradient(135deg, var(--blue), var(--red));
  font-size: .82rem;
}
.lang-nav { display: flex; gap: 8px; flex-wrap: wrap }
.lang-nav a {
  display: grid; place-items: center; min-width: 38px; height: 32px; padding: 0 8px;
  border: 1px solid var(--line); border-radius: 8px; background: white;
  text-decoration: none; font-size: .78rem; font-weight: 900; color: var(--muted);
}
.lang-nav a:hover { color: var(--blue); border-color: var(--blue) }

/* Hero */
.hero {
  position: relative;
  min-height: 72vh;
  display: grid;
  align-items: end;
  color: white;
  overflow: hidden;
  background: #0f1b31;
}
.hero-picture {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
.hero-picture .hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(15,27,49,.55) 0%, rgba(15,27,49,.35) 40%, rgba(15,27,49,.85) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  width: min(1060px, 100%);
  padding: clamp(86px, 13vw, 160px) clamp(18px, 7vw, 88px) clamp(58px, 9vw, 96px);
}
.eyebrow { margin: 0 0 10px; color: var(--red); font-size: .78rem; font-weight: 950; text-transform: uppercase }
.hero .eyebrow { color: #ffdeda }

h1, h2, h3 { margin: 0; line-height: 1.08 }
h1 { max-width: 920px; font-size: clamp(2.5rem, 6.4vw, 5.8rem); text-shadow: 0 2px 24px rgba(0,0,0,.35) }
h2 { font-size: clamp(2rem, 4vw, 3.3rem) }
h3 { margin-top: 30px; font-size: 1.35rem }

.lead {
  max-width: 760px; margin-top: 22px;
  color: rgba(255,255,255,.94);
  font-size: clamp(1.06rem, 2vw, 1.28rem);
  text-shadow: 0 1px 10px rgba(0,0,0,.3);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 12px 18px; border-radius: 8px;
  font-weight: 900; text-decoration: none;
}
.button.primary { background: white; color: var(--blue) }
.button.secondary { border: 1px solid rgba(255,255,255,.55); color: white; background: rgba(255,255,255,.08) }

/* Quick Facts (GEO-friendly extractable block) */
.quick-facts {
  padding: clamp(48px, 7vw, 84px) clamp(18px, 8vw, 120px);
  background: linear-gradient(180deg, #fff 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
}
.quick-facts-title {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  color: var(--blue);
  margin: 0 0 24px;
}
.quick-facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin: 0;
}
.quick-facts-grid > div {
  padding: 18px 20px;
  background: white;
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  border-radius: 8px;
}
.quick-facts-grid dt {
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 4px;
  font-size: .92rem;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.quick-facts-grid dd {
  margin: 0;
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.55;
}

/* TOC */
.toc {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}
.toc a {
  padding: 20px clamp(16px, 3vw, 32px);
  background: white;
  text-decoration: none;
  font-weight: 900;
  color: var(--blue);
}

/* Longform articles */
.longform {
  scroll-margin-top: 82px;
  padding: clamp(58px, 8vw, 102px) clamp(18px, 8vw, 120px);
  border-bottom: 1px solid var(--line);
}
.longform:nth-of-type(odd) { background: var(--paper) }
.longform p { max-width: 1000px; margin: 18px 0 0; color: var(--muted); font-size: 1.08rem }
.longform h2, .longform h3 { max-width: 1000px }
.longform h3 { color: var(--blue) }

/* Inline figures */
.inline-figure {
  max-width: 1000px;
  margin: 28px 0 8px;
  padding: 0;
}
.inline-figure img {
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  box-shadow: 0 12px 32px -16px rgba(15,27,49,.35);
}
.inline-figure figcaption {
  margin-top: 10px;
  font-size: .88rem;
  color: var(--muted);
  font-style: italic;
}

/* Contact */
.contact {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(320px, 1.15fr);
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(58px, 8vw, 102px) clamp(18px, 8vw, 120px);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.contact-copy {
  max-width: 560px;
}
.contact-copy p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}
.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 3vw, 30px);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 50px -34px rgba(15,27,49,.45);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 900;
  font-size: .9rem;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: white;
  font: inherit;
  line-height: 1.35;
}
.contact-form textarea {
  resize: vertical;
  min-height: 130px;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(0,56,168,.22);
  border-color: var(--blue);
}
.form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.contact-form .button.primary {
  border: 0;
  cursor: pointer;
  background: var(--blue);
  color: white;
}
.contact-form .button.primary:disabled {
  cursor: wait;
  opacity: .68;
}
.form-status {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}
.form-status.success { color: var(--green) }
.form-status.error { color: var(--red) }
.form-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* Sources */
.sources {
  padding: clamp(58px, 8vw, 102px) clamp(18px, 8vw, 120px);
  background: #101829;
  color: white;
}
.sources .eyebrow { color: #ffdeda }
.sources h2 { max-width: 900px }
.sources ul {
  display: grid; gap: 10px;
  max-width: 1000px;
  margin: 24px 0 0;
  padding-left: 20px;
}
.sources a { color: #dce8ff }

.footer {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 26px clamp(18px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.footer a { color: var(--blue); font-weight: 900; text-decoration: none }

/* WhatsApp Floating Action Button */
.wa-fab {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 50;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25D366;
  color: white;
  text-decoration: none;
  box-shadow: 0 8px 24px -8px rgba(37,211,102,.6), 0 4px 12px rgba(0,0,0,.15);
  transition: transform .2s ease, box-shadow .2s ease;
  animation: wa-pulse 2.6s ease-in-out infinite;
}
.wa-fab:hover { transform: scale(1.08) }
.wa-fab svg { width: 30px; height: 30px }
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 8px 24px -8px rgba(37,211,102,.55), 0 4px 12px rgba(0,0,0,.15), 0 0 0 0 rgba(37,211,102,.45) }
  50%      { box-shadow: 0 8px 24px -8px rgba(37,211,102,.55), 0 4px 12px rgba(0,0,0,.15), 0 0 0 14px rgba(37,211,102,0) }
}
@media (max-width: 600px) {
  .wa-fab { bottom: 18px; right: 18px; width: 52px; height: 52px }
  .wa-fab svg { width: 28px; height: 28px }
}

@media (max-width: 860px) {
  .hero { min-height: 620px }
  .hero-picture .hero-img { object-position: center 50% }
  .toc { grid-template-columns: 1fr 1fr }
  .footer { flex-direction: column }
  .quick-facts-grid { grid-template-columns: 1fr }
  .contact { grid-template-columns: 1fr }
}
@media (max-width: 540px) {
  .toc { grid-template-columns: 1fr }
  .form-grid { grid-template-columns: 1fr }
  .form-actions .button { width: 100% }
}
