/* ==========================================================================
   Apex Roofing Dallas — Design System
   Violet + slate-blue roofing-contractor palette (brand logo colors),
   warm off-white paper, Sora/Inter type system.
   Same component classes as the pilot site — only these custom properties
   were changed to reskin the brand. See notes below each swapped value.
   ========================================================================== */

:root {
  /* Color
     navy-*: dark slate-blue ramp, based on the logo's house-outline slate
     (~#3D5568), used for header/hero/footer dark surfaces.
     gold-*: violet accent ramp, based on the logo's roofline mark
     (~#8B5CF6). gold-500 is lightened slightly from the exact logo hex
     (#8B5CF6 -> #A37CF8) because .btn-gold and .mobile-call-bar .quote pair
     it with navy-900 text, and the literal logo purple only hits 3.9:1
     contrast there — below the 4.5:1 text minimum. #A37CF8 hits 5.36:1.
     ember-*: warm rust/amber CTA accent, kept deliberately outside the
     purple/slate family so buttons still pop against the cool brand hues
     (mirrors the pilot's cool-navy/warm-ember contrast strategy without
     reusing its literal reddish hue). */
  --navy-900: #12202b;
  --navy-800: #1b303f;
  --navy-700: #24404f;
  --navy-600: #3d5568;
  --gold-500: #a37cf8;
  --gold-400: #b99afa;
  --gold-300: #d2c2fc;
  --ember-500: #d9722e;
  --ember-600: #a6420f;
  --paper-50: #faf9f7;
  --paper-100: #f1eef2;
  --paper-200: #e3dee8;
  --ink-900: #1b2430;
  --ink-700: #3e4a58;
  --ink-500: #5e6b79;
  --ink-300: #8c97a3;
  --white: #ffffff;
  --success: #2f7a4f;

  /* Type */
  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  /* Spacing scale */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --space-7: 6rem;
  --space-8: 8rem;

  /* Radius / shadow */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(18, 32, 43, 0.08);
  --shadow-md: 0 8px 24px rgba(18, 32, 43, 0.12);
  --shadow-lg: 0 20px 48px rgba(18, 32, 43, 0.18);

  --container: 1240px;
  --header-h: 108px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--paper-50);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; margin: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy-800); line-height: 1.15; margin: 0 0 var(--space-2); font-weight: 700; }
h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.5rem); }
p { margin: 0 0 var(--space-2); color: var(--ink-700); }
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--space-3); }
section { padding: var(--space-7) 0; }
.section-tight { padding: var(--space-5) 0; }
@media (max-width: 780px) {
  section { padding: var(--space-6) 0; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ember-600);
  margin-bottom: var(--space-2);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--ember-500); display: inline-block; }
.eyebrow.on-dark { color: var(--gold-400); }

.lede { font-size: 1.15rem; color: var(--ink-500); max-width: 60ch; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 0.98rem;
  padding: 0.95rem 1.7rem; border-radius: var(--radius-sm);
  border: 2px solid transparent; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: linear-gradient(135deg, var(--gold-400), var(--gold-500)); color: var(--navy-900); box-shadow: var(--shadow-sm); }
.btn-gold:hover { box-shadow: var(--shadow-md); }
/* ember-500 fails 4.5:1 with white text at this weight/size (same issue the
   pilot flagged for its own accent-500); use the darker ember-600 for the
   button itself and reserve ember-500 for non-text accents. */
.btn-ember { background: var(--ember-600); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-ember:hover { background: #86350c; box-shadow: var(--shadow-md); }
.btn-outline { border-color: rgba(255,255,255,0.5); color: var(--white); background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-outline-navy { border-color: var(--navy-800); color: var(--navy-800); background: transparent; }
.btn-outline-navy:hover { background: var(--navy-800); color: var(--white); }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--navy-900); color: var(--paper-100); font-size: 0.86rem;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; padding-top: 8px; padding-bottom: 8px; gap: var(--space-2); }
.topbar-left { display: flex; gap: var(--space-4); flex-wrap: wrap; }
.topbar a { color: var(--paper-100); }
.topbar-item { display: inline-flex; align-items: center; gap: 6px; }
.topbar-item svg { width: 14px; height: 14px; color: var(--gold-400); }
.topbar-emergency { color: var(--gold-400); font-weight: 700; }

/* ---------- Header ---------- */
header.site-header {
  /* No backdrop-filter here: it creates a new containing block for any
     position:fixed descendant (the mobile nav overlay), which would then
     size itself relative to this header's small box instead of the
     viewport. Use a near-opaque background instead of blur. */
  position: sticky; top: 0; z-index: 100; background: rgba(250,249,247,0.98);
  border-bottom: 1px solid var(--paper-200);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: var(--space-3); }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; color: var(--navy-900); }
.brand img { height: 52px; width: auto; }
nav.main-nav { display: flex; align-items: center; gap: var(--space-4); }
nav.main-nav ul { display: flex; gap: var(--space-3); }
nav.main-nav > ul > li { position: relative; }
nav.main-nav a.nav-link {
  font-family: var(--font-head); font-weight: 600; font-size: 0.94rem; color: var(--navy-800);
  padding: 8px 2px; border-bottom: 2px solid transparent; transition: border-color .15s, color .15s;
}
nav.main-nav a.nav-link:hover, nav.main-nav a.nav-link[aria-current="page"] { border-color: var(--ember-500); color: var(--ember-600); }
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: 100%; left: 0; background: var(--white); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); padding: 10px; min-width: 260px; opacity: 0; visibility: hidden;
  transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 10px 12px; border-radius: 8px; font-size: 0.92rem; font-weight: 600; color: var(--ink-700); }
.dropdown a:hover { background: var(--paper-100); color: var(--ember-600); }
.header-cta { display: flex; align-items: center; gap: var(--space-2); }
.header-phone { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; color: var(--navy-900); }
.header-phone svg { width: 20px; height: 20px; color: var(--ember-500); }
.header-phone small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.7rem; color: var(--ink-500); }
.nav-toggle { display: none; background: none; border: none; padding: 8px; }
.nav-toggle svg { width: 26px; height: 26px; color: var(--navy-900); }

/* 1180px not 980px: at 980-1180px there isn't enough room for logo + brand +
   7 nav links + phone + CTA button in one row without wrapping/overlap
   (found via real-viewport testing, not just the phone breakpoint below). */
@media (max-width: 1180px) {
  nav.main-nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--white); flex-direction: column;
    align-items: stretch; padding: var(--space-3); transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; }
  nav.main-nav.open { transform: translateX(0); }
  nav.main-nav ul { flex-direction: column; gap: 0; }
  nav.main-nav a.nav-link { display: block; padding: 14px 4px; border-bottom: 1px solid var(--paper-200); }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; padding-left: 12px; }
  .has-dropdown.open .dropdown { display: block; }
  .nav-toggle { display: block; }
  .header-phone small { display: none; }
}
@media (max-width: 640px) {
  .topbar { display: none; }
  .nav-row { padding: 10px 0; }
  .brand span { font-size: 1rem; white-space: nowrap; }
  .brand img { height: 40px; }
  .header-cta { gap: 10px; }
  .header-phone, .header-cta > a.btn { display: none; }
  .nav-toggle { padding: 6px; }
  .emergency-banner { font-size: 0.78rem; padding: 8px 12px; }
}

/* ---------- Emergency banner ---------- */
.emergency-banner {
  background: linear-gradient(90deg, #86350c, var(--ember-600));
  color: var(--white); text-align: center; font-family: var(--font-head); font-weight: 700;
  font-size: 0.92rem; padding: 10px var(--space-2);
}
.emergency-banner a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Hero ---------- */
.hero { position: relative; background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%); color: var(--white); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: 0.5; pointer-events: none;
  background-image:
    linear-gradient(115deg, transparent 40%, rgba(163,124,248,0.10) 41%, rgba(163,124,248,0.10) 43%, transparent 44%),
    linear-gradient(115deg, transparent 55%, rgba(163,124,248,0.08) 56%, rgba(163,124,248,0.08) 58%, transparent 59%);
}
.roofline { position: absolute; right: -6%; bottom: -4%; width: 62%; max-width: 720px; opacity: 0.9; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-5); align-items: center; padding: var(--space-8) 0 var(--space-7); }
.hero p.lede { color: var(--paper-200); }
.hero-badges { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-3) 0; }
.hero-badge { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16); border-radius: 999px; padding: 8px 14px; font-size: 0.82rem; font-weight: 600; }
.hero-badge svg { width: 16px; height: 16px; color: var(--gold-400); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
.hero-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: var(--space-4); color: var(--ink-900); }
.hero-card h3 { margin-bottom: 4px; }
.hero-card .lede { font-size: 0.95rem; margin-bottom: var(--space-3); }
.hero-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--space-2); margin-top: var(--space-5); position: relative; z-index: 2; }
.stat { text-align: center; }
.stat b { display: block; font-family: var(--font-head); font-size: 2rem; color: var(--gold-400); }
.stat span { font-size: 0.82rem; color: var(--paper-200); }
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: var(--space-6); }
  .hero-stats { grid-template-columns: repeat(3,1fr); }
  .roofline { display: none; }
}

/* ---------- Form ---------- */
.field { margin-bottom: var(--space-2); }
.field label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 6px; color: var(--navy-800); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.85rem 1rem; border-radius: var(--radius-sm); border: 1.5px solid var(--paper-200);
  font-family: var(--font-body); font-size: 0.95rem; background: var(--white); color: var(--ink-900);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(163,124,248,0.18); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: 0.78rem; color: var(--ink-300); margin-top: var(--space-1); }

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border-radius: var(--radius-md); padding: var(--space-3);
  box-shadow: var(--shadow-sm); border: 1px solid var(--paper-200); transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card .icon-badge { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--navy-800), var(--navy-700)); margin-bottom: var(--space-2); }
.card .icon-badge svg { width: 26px; height: 26px; color: var(--gold-400); }
.card a.card-link { font-family: var(--font-head); font-weight: 700; font-size: 0.9rem; color: var(--ember-600); display: inline-flex; align-items: center; gap: 6px; }

.service-hub { background: var(--paper-100); }

.trust-strip { background: var(--white); border-top: 1px solid var(--paper-200); border-bottom: 1px solid var(--paper-200); }
.trust-strip .grid-4 { align-items: center; }
.trust-item { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; color: var(--navy-800); font-size: 0.95rem; }
.trust-item svg { width: 28px; height: 28px; color: var(--ember-500); flex: none; }

/* ---------- Process steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4,1fr); gap: var(--space-3); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: var(--space-2); }
.step .step-num {
  counter-increment: step; font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; color: var(--gold-500);
  border: 2px solid var(--gold-500); width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-2);
}
.step .step-num::before { content: counter(step); }

/* ---------- Testimonials / reviews ---------- */
.review-card { background: var(--white); border-radius: var(--radius-md); padding: var(--space-3); box-shadow: var(--shadow-sm); border: 1px solid var(--paper-200); }
.stars { color: var(--gold-500); letter-spacing: 2px; margin-bottom: var(--space-1); font-size: 1.1rem; }
.review-name { font-family: var(--font-head); font-weight: 700; color: var(--navy-800); margin-top: var(--space-2); }
.review-loc { font-size: 0.82rem; color: var(--ink-500); }
.google-badge { display: inline-flex; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--paper-200); border-radius: 999px; padding: 10px 18px; box-shadow: var(--shadow-sm); font-family: var(--font-head); font-weight: 700; }

/* ---------- FAQ accordion ---------- */
.faq-item { border-bottom: 1px solid var(--paper-200); padding: var(--space-2) 0; }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); width: 100%; background: none; border: none; text-align: left; font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; color: var(--navy-800); padding: 6px 0; }
.faq-q svg { width: 20px; height: 20px; flex: none; color: var(--ember-500); transition: transform .2s ease; }
.faq-item[open] .faq-q svg { transform: rotate(45deg); }
.faq-a { padding: 8px 0 4px; color: var(--ink-500); }
.faq-item summary { cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--navy-900), var(--navy-700)); color: var(--white); border-radius: var(--radius-lg); padding: var(--space-5); display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }
.cta-band h2 { color: var(--white); margin-bottom: 6px; }
.cta-band p { color: var(--paper-200); margin: 0; }
.cta-band-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { background: var(--paper-100); font-size: 0.84rem; }
.breadcrumb .container { padding-top: 14px; padding-bottom: 14px; }
.breadcrumb a { color: var(--ink-500); font-weight: 600; }
.breadcrumb a:hover { color: var(--ember-600); }
.breadcrumb span.sep { margin: 0 8px; color: var(--ink-300); }
.breadcrumb span.current { color: var(--navy-800); font-weight: 700; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { background: linear-gradient(160deg, var(--navy-900), var(--navy-700)); color: var(--white); padding: var(--space-6) 0 var(--space-5); }
.page-hero p.lede { color: var(--paper-200); }
.page-hero .hero-badges { margin-top: var(--space-3); }

/* ---------- Map / service areas ---------- */
.map-embed { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--paper-200); }
.map-embed iframe { width: 100%; height: 100%; min-height: 380px; border: 0; }
.area-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.area-tag { background: var(--white); border: 1px solid var(--paper-200); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 0.88rem; color: var(--navy-800); }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--navy-900); color: var(--paper-200); padding-top: var(--space-7); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: var(--space-4); padding-bottom: var(--space-6); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h3 { color: var(--white); font-size: 0.9rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: var(--space-2); }
.footer-grid p { color: var(--paper-200); }
.footer-grid a { color: var(--paper-200); display: block; padding: 5px 0; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--gold-400); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: var(--space-2); }
.footer-brand img { height: 44px; width: auto; }
.footer-brand span { font-family: var(--font-head); font-weight: 800; color: var(--white); font-size: 1.05rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: var(--space-3) 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-2); font-size: 0.82rem; color: var(--ink-300); }
.footer-bottom a { color: var(--ink-300); }
.footer-bottom a:hover { color: var(--gold-400); }
.footer-social { display: flex; gap: 10px; }
.footer-social a { background: rgba(255,255,255,0.08); width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.footer-social svg { width: 16px; height: 16px; }

/* ---------- Sticky mobile call bar ---------- */
.mobile-call-bar { display: none; }
@media (max-width: 780px) {
  .mobile-call-bar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
    background: var(--navy-900); box-shadow: 0 -6px 20px rgba(0,0,0,0.25);
  }
  .mobile-call-bar a { flex: 1; text-align: center; padding: 14px 8px; font-family: var(--font-head); font-weight: 700; font-size: 0.9rem; display: flex; flex-direction: column; align-items: center; gap: 2px; }
  .mobile-call-bar a.call { background: var(--ember-600); color: var(--white); }
  .mobile-call-bar a.quote { background: var(--gold-500); color: var(--navy-900); }
  .mobile-call-bar svg { width: 20px; height: 20px; }
  body { padding-bottom: 62px; }
}

/* ---------- Utility ---------- */
.bg-navy { background: var(--navy-900); color: var(--white); }
.bg-navy h2, .bg-navy h3 { color: var(--white); }
.bg-navy p { color: var(--paper-200); }
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
/* Scroll-reveal opacity animation was removed: it caused two real bugs —
   content stuck invisible when the observer never fired, and a color-contrast
   audit failure from text being sampled mid-fade. `.reveal` is kept as a
   no-op marker class on existing markup rather than stripped from every
   template. Micro-interactions live on in hover/focus transitions elsewhere
   (cards, buttons, dropdowns, FAQ icons) which don't carry that risk. */
.badge-emergency { display: inline-flex; align-items: center; gap: 8px; background: rgba(217,114,46,0.12); color: var(--ember-600); border: 1px solid rgba(217,114,46,0.35); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 0.82rem; }

.photo-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--paper-200); position: relative; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-caption { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(0deg, rgba(18,32,43,0.85), transparent); color: #fff; padding: 20px 22px 14px; font-family: var(--font-head); font-weight: 700; font-size: 0.92rem; }

.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.before-after figure { margin: 0; border-radius: var(--radius-md); overflow: hidden; position: relative; }
.before-after figcaption { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(18,32,43,0.75); color: var(--white); font-family: var(--font-head); font-weight: 700; font-size: 0.85rem; padding: 8px 12px; text-transform: uppercase; letter-spacing: 0.05em; }

/* ---------- Icon sizing defaults ---------- */
.dropdown-toggle svg, .card-link svg, .google-badge svg, .footer-social svg { width: 18px; height: 18px; flex: none; }
.footer-grid a svg { width: 15px; height: 15px; vertical-align: -2px; margin-right: 6px; }
.cls-inline { width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; flex: none; }
.cls-check { width: 20px; height: 20px; color: var(--success); flex: none; margin-top: 2px; }
.form-banner { display: flex; align-items: center; gap: 10px; border-radius: var(--radius-sm); padding: 14px 16px; font-weight: 600; font-size: 0.92rem; margin-bottom: var(--space-2); }
.form-banner.success { background: rgba(47,122,79,0.1); color: var(--success); border: 1px solid rgba(47,122,79,0.3); }
.form-banner.error { background: rgba(217,114,46,0.1); color: var(--ember-600); border: 1px solid rgba(217,114,46,0.3); }
.hp-field { position: absolute; left: -9999px; top: -9999px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 8px; top: -60px; background: var(--navy-900); color: #fff; padding: 10px 18px; border-radius: 0 0 8px 8px; z-index: 300; transition: top .15s ease; }
.skip-link:focus { top: 0; }

/* ---------- Article / prose ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: var(--space-5); }
.prose h3 { margin-top: var(--space-4); }
.prose ul, .prose ol { margin: 0 0 var(--space-2); padding-left: 22px; }
.prose li { margin-bottom: 8px; color: var(--ink-700); }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose a:not(.btn):not(.card-link) { color: var(--ember-600); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.prose blockquote { border-left: 4px solid var(--gold-500); margin: var(--space-3) 0; padding: 10px 20px; background: var(--paper-100); border-radius: 0 8px 8px 0; font-style: italic; color: var(--ink-700); }
.prose table { width: 100%; border-collapse: collapse; margin: var(--space-3) 0; font-size: 0.92rem; }
.prose th, .prose td { border: 1px solid var(--paper-200); padding: 10px 12px; text-align: left; }
.prose th { background: var(--navy-800); color: #fff; font-family: var(--font-head); }
.prose tr:nth-child(even) td { background: var(--paper-100); }
.article-meta { display: flex; gap: 16px; align-items: center; color: var(--paper-200); font-size: 0.85rem; margin-top: var(--space-2); }
.article-meta span { display: flex; align-items: center; gap: 6px; }
.toc { background: var(--paper-100); border-radius: var(--radius-md); padding: var(--space-3); margin: 0 0 var(--space-4); }
.toc h2 { font-size: 1rem; margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 20px; }
.toc a { color: var(--navy-800); font-weight: 600; }
.author-box { display: flex; gap: 14px; align-items: center; background: var(--paper-100); border-radius: var(--radius-md); padding: var(--space-3); margin-top: var(--space-5); }
.author-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--navy-800); color: var(--gold-400); display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; flex: none; }
.dropdown-toggle { background: none; border: none; padding: 4px; color: var(--navy-800); display: none; }
@media (max-width: 1180px) { .dropdown-toggle { display: inline-flex; position: absolute; right: 0; top: 8px; } }
