/* ==========================================================================
   Advance Tech USA  -  style.css
   Base styles, design tokens, components, two-tier light/dark theme.
   Design system: Navy + metallic / Premium / Layered depth / Structured grid.
   Fonts (Sora, IBM Plex Sans) are loaded via <link> in the document head.
   Motion effects, cookie banner, and scroll progress bar live in animations.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   Two tiers:
     - Brand tokens are fixed and never change between themes.
     - Theme tokens (--bg, --surface, --card, --text, --text-muted, --border)
       are the only six values that flip. Override blocks restate nothing else.
   -------------------------------------------------------------------------- */
:root {
  /* Brand tokens (fixed) */
  --ink: #060E1A;
  --navy: #0B1E38;
  --navy-mid: #14304F;
  --steel: #93A4B8;
  --gold: #D4870A;
  --gold-bright: #F5A623;
  --sky: #5DA9E9;

  /* Brand helpers (fixed) */
  --on-dark: #E7EFF8;
  --on-dark-muted: #9DB2CA;
  --gold-soft: rgba(212, 135, 10, 0.14);
  --sky-soft: rgba(93, 169, 233, 0.14);
  --glass: rgba(255, 255, 255, 0.07);
  --glass-strong: rgba(255, 255, 255, 0.10);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-shine: inset 0 1px 0 rgba(255, 255, 255, 0.10);
  --hairline: linear-gradient(120deg, rgba(147, 164, 184, 0.45), rgba(212, 135, 10, 0.35), rgba(147, 164, 184, 0.12));

  /* Theme tokens (dark is the default) */
  --bg: #07111F;
  --surface: #0C1B30;
  --card: #102340;
  --text: #E7EFF8;
  --text-muted: #93A8C0;
  --border: #1F3A5C;

  /* Typography */
  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --fs-h1: clamp(2.5rem, 1.55rem + 3.4vw, 4.5rem);
  --fs-h2: clamp(1.95rem, 1.45rem + 1.9vw, 3rem);
  --fs-h3: clamp(1.35rem, 1.15rem + 0.85vw, 1.85rem);
  --fs-h4: 1.25rem;
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;
  --fs-label: 0.78rem;

  /* Spacing and structure */
  --container: 1200px;
  --container-narrow: 880px;
  --gutter: clamp(1.25rem, 0.6rem + 2.4vw, 2.5rem);
  --section-y: clamp(3.5rem, 2rem + 6vw, 7rem);
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  /* Layered-depth shadows */
  --shadow-sm: 0 1px 2px rgba(3, 8, 15, 0.35), 0 2px 6px rgba(3, 8, 15, 0.30);
  --shadow-md: 0 10px 28px rgba(3, 8, 15, 0.42), 0 2px 8px rgba(3, 8, 15, 0.30);
  --shadow-lg: 0 28px 64px rgba(3, 8, 15, 0.50), 0 6px 18px rgba(3, 8, 15, 0.35);

  /* Motion (timing only; keyframes live in animations.css) */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-fast: 160ms;
  --dur: 280ms;

  /* Cursor-tracked glow position (updated by JS) */
  --mx: 50%;
  --my: 50%;
}

/* System preference: light, only when the user has not forced a theme. */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #F3F7FB;
    --surface: #FFFFFF;
    --card: #FFFFFF;
    --text: #0B1E38;
    --text-muted: #4C6178;
    --border: #DAE3EE;
  }
}

/* Manual toggle: forced dark (wins over a light system preference). */
html.theme-dark {
  --bg: #07111F;
  --surface: #0C1B30;
  --card: #102340;
  --text: #E7EFF8;
  --text-muted: #93A8C0;
  --border: #1F3A5C;
}

/* Manual toggle: forced light (wins over a dark system preference). */
html.theme-light {
  --bg: #F3F7FB;
  --surface: #FFFFFF;
  --card: #FFFFFF;
  --text: #0B1E38;
  --text-muted: #4C6178;
  --border: #DAE3EE;
}

/* --------------------------------------------------------------------------
   2. RESET AND BASE
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--sky);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}

a:hover {
  color: var(--gold-bright);
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY
   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-display);
  line-height: 1.1;
  font-weight: 700;
  margin: 0 0 0.5em;
  letter-spacing: -0.015em;
  color: var(--text);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 600; }
h4 { font-size: var(--fs-h4); font-weight: 600; }

p {
  margin: 0 0 1.1rem;
}

p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: clamp(1.05rem, 0.98rem + 0.4vw, 1.3rem);
  color: var(--text-muted);
  line-height: 1.65;
}

.muted {
  color: var(--text-muted);
}

/* Code-comment style section label, e.g. "// What we do" */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

/* --------------------------------------------------------------------------
   4. LAYOUT
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-block: var(--section-y);
  position: relative;
}

/* Dark-by-construction sections. References --navy, a fixed brand token,
   so these stay dark in every theme with no overrides or !important. */
.section--dark {
  background: var(--navy);
  color: var(--on-dark);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--on-dark);
}

.section--dark .muted,
.section--dark .lead {
  color: var(--on-dark-muted);
}

.section--surface {
  background: var(--surface);
}

.grid {
  display: grid;
  gap: clamp(1.25rem, 0.8rem + 1.6vw, 2rem);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: center;
}

@media (max-width: 900px) {
  .grid--3,
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   5. BUTTONS  (44px minimum touch target)
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.75rem 1.6rem;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur) var(--ease),
    background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn--gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.btn--gold:hover {
  color: var(--ink);
  box-shadow: 0 10px 26px rgba(212, 135, 10, 0.38);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn--outline:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.section--dark .btn--outline {
  color: var(--on-dark);
  border-color: var(--glass-border);
}

.btn--ghost {
  background: var(--glass);
  color: var(--on-dark);
  border-color: var(--glass-border);
}

.btn--ghost:hover {
  background: var(--glass-strong);
  color: var(--on-dark);
}

.btn--lg {
  min-height: 56px;
  padding: 0.95rem 2.1rem;
  font-size: 1.05rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

/* --------------------------------------------------------------------------
   6. CARDS  (layered depth; glass when inside a dark section)
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: clamp(1.5rem, 1rem + 1.4vw, 2.2rem);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out);
}

/* Metallic hairline along the top edge */
.card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: var(--hairline);
  opacity: 0.7;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(212, 135, 10, 0.35);
}

/* Glass cards live inside dark sections. Background is never transparent. */
.section--dark .card,
.card--glass {
  background: var(--glass);
  border-color: var(--glass-border);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-md), var(--glass-shine);
  color: var(--on-dark);
}

.section--dark .card h3,
.card--glass h3 {
  color: var(--on-dark);
}

.section--dark .card p,
.card--glass p {
  color: var(--on-dark-muted);
}

/* Mandatory fallback: without backdrop-filter, glass would be unreadable. */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .section--dark .card,
  .card--glass {
    background: var(--navy-mid);
  }
}

/* Cursor-tracked glow (position fed by --mx / --my from JS) */
.card--glow::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(220px circle at var(--mx) var(--my), var(--gold-soft), transparent 60%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
  pointer-events: none;
}

.card--glow:hover::before {
  opacity: 1;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: var(--r-sm);
  background: var(--gold-soft);
  color: var(--gold-bright);
  font-size: 1.6rem;
  margin-bottom: 1.1rem;
}

.card h3 {
  margin-bottom: 0.6rem;
}

/* --------------------------------------------------------------------------
   7. TOPBAR
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--ink);
  color: var(--on-dark-muted);
  font-size: var(--fs-small);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topbar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.55rem;
}

.topbar a {
  color: var(--on-dark-muted);
}

.topbar a:hover {
  color: var(--gold-bright);
}

.topbar-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
}

.topbar-badges {
  display: flex;
  gap: 0.6rem;
}

@media (max-width: 720px) {
  .topbar-badges { display: none; }
}

/* --------------------------------------------------------------------------
   8. NAVIGATION  (frosted on scroll; dark by construction)
   -------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--navy);
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.nav .container {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-block: 0.85rem;
}

.nav-logo img {
  height: 46px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
}

.nav-links a {
  color: var(--on-dark);
  font-size: 0.94rem;
  font-weight: 500;
  padding: 0.6rem 0.85rem;
  border-radius: var(--r-sm);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.nav-links a:hover,
.nav-links a.is-active {
  background: var(--glass);
  color: var(--gold-bright);
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--on-dark);
  cursor: pointer;
  font-size: 1.2rem;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.theme-toggle:hover {
  color: var(--gold-bright);
  background: var(--glass-strong);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--glass-border);
  border-radius: var(--r-sm);
  background: var(--glass);
  color: var(--on-dark);
  cursor: pointer;
  font-size: 1.3rem;
}

@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 84vw);
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 5.5rem 1.25rem 2rem;
    background: var(--ink);
    border-left: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform var(--dur) var(--ease-out);
    overflow-y: auto;
  }
  .nav-links.is-open { transform: translateX(0); }
  .nav-links a { font-size: 1.05rem; }
}

/* --------------------------------------------------------------------------
   9. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--on-dark);
  padding-block: clamp(4rem, 2rem + 8vw, 8rem);
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.hero h1 {
  margin-bottom: 1.1rem;
}

.hero .lead {
  color: var(--on-dark-muted);
  max-width: 640px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.5rem;
  margin: 1.8rem 0 2rem;
}

.hero-proof li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: var(--on-dark);
}

.hero-proof li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 10px rgba(245, 166, 35, 0.7);
}

.typed-caret {
  display: inline-block;
  width: 3px;
  margin-left: 2px;
  background: var(--gold-bright);
  vertical-align: -0.08em;
}

/* --------------------------------------------------------------------------
   10. BRAND PARTNER STRIP
   -------------------------------------------------------------------------- */
.brands {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1.25rem, 0.5rem + 3vw, 3rem);
}

.brands span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.05rem, 0.9rem + 0.6vw, 1.5rem);
  letter-spacing: 0.02em;
  color: var(--on-dark-muted);
  opacity: 0.85;
  transition: color var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}

.brands span:hover {
  color: var(--on-dark);
  opacity: 1;
}

/* --------------------------------------------------------------------------
   11. GOVERNMENT CREDENTIALS PANEL
   -------------------------------------------------------------------------- */
.creds {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1px;
  background: var(--glass-border);
  border: 1px solid var(--glass-border);
  border-radius: var(--r);
  overflow: hidden;
}

.creds__cell {
  background: var(--navy);
  padding: 1.5rem 1.4rem;
  text-align: center;
}

.creds__label {
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  margin-bottom: 0.45rem;
}

.creds__value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold-bright);
}

/* --------------------------------------------------------------------------
   12. STATS ROW  (count-up)
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 0.5rem + 2vw, 2.5rem);
  text-align: center;
}

.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 1.8rem + 2.4vw, 3.6rem);
  font-weight: 700;
  line-height: 1;
  color: var(--gold-bright);
}

.stat__label {
  margin-top: 0.6rem;
  font-size: var(--fs-small);
  color: var(--on-dark-muted);
  letter-spacing: 0.02em;
}

@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 2rem; }
}

/* --------------------------------------------------------------------------
   13. TESTIMONIALS
   -------------------------------------------------------------------------- */
.quote {
  font-size: 1.08rem;
  line-height: 1.6;
}

.quote::before {
  content: "\201C";
  display: block;
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 0.5;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.quote__who {
  margin-top: 1.4rem;
  font-size: var(--fs-small);
  color: var(--text-muted);
}

.quote__who strong {
  color: var(--text);
  display: block;
}

/* --------------------------------------------------------------------------
   14. CTA BAND
   -------------------------------------------------------------------------- */
.cta-band {
  text-align: center;
}

.cta-band .container--narrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

/* --------------------------------------------------------------------------
   15. FORMS
   -------------------------------------------------------------------------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.1rem;
}

.field label {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--text);
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.95rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}

.textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.6;
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}

.section--dark .input,
.section--dark .select,
.section--dark .textarea {
  background: var(--glass);
  border-color: var(--glass-border);
  color: var(--on-dark);
}

.field-note {
  font-size: var(--fs-small);
  color: var(--text-muted);
}

/* Security honeypot. The only declarations in the stylesheet using !important. */
.honeypot {
  display: none !important;
  visibility: hidden !important;
}

.form-status {
  border-radius: var(--r-sm);
  padding: 0.85rem 1.1rem;
  font-size: var(--fs-small);
  margin-top: 0.5rem;
}

.form-status--ok {
  background: rgba(93, 169, 233, 0.12);
  border: 1px solid var(--sky);
  color: var(--sky);
}

.form-status--err {
  background: rgba(212, 135, 10, 0.12);
  border: 1px solid var(--gold);
  color: var(--gold-bright);
}

/* --------------------------------------------------------------------------
   16. BADGES AND PILLS
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: var(--r-pill);
  background: var(--gold-soft);
  color: var(--gold-bright);
  border: 1px solid rgba(212, 135, 10, 0.3);
}

.badge--sky {
  background: var(--sky-soft);
  color: var(--sky);
  border-color: rgba(93, 169, 233, 0.3);
}

/* --------------------------------------------------------------------------
   17. CHECK LISTS AND FEATURE LISTS
   -------------------------------------------------------------------------- */
.checklist li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.9rem;
  line-height: 1.55;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 18px;
  height: 10px;
  border-left: 2px solid var(--gold-bright);
  border-bottom: 2px solid var(--gold-bright);
  transform: rotate(-45deg);
}

/* --------------------------------------------------------------------------
   18. TABLES  (capabilities)
   -------------------------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r);
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

table.data th,
table.data td {
  text-align: left;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--border);
}

table.data th {
  font-family: var(--font-display);
  font-size: var(--fs-small);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--surface);
}

table.data tr:last-child td {
  border-bottom: none;
}

/* --------------------------------------------------------------------------
   19. BREADCRUMBS  (injected on inner pages)
   -------------------------------------------------------------------------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: var(--fs-small);
  color: var(--on-dark-muted);
  padding-block: 1rem;
}

.breadcrumb a {
  color: var(--on-dark-muted);
}

.breadcrumb a:hover {
  color: var(--gold-bright);
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
  color: var(--steel);
}

/* --------------------------------------------------------------------------
   20. PAGE HERO  (inner pages)
   -------------------------------------------------------------------------- */
.page-hero {
  background: var(--navy);
  color: var(--on-dark);
  padding-block: clamp(3rem, 1.5rem + 6vw, 6rem);
  position: relative;
  overflow: hidden;
}

.page-hero h1 {
  max-width: 16ch;
}

.page-hero .lead {
  color: var(--on-dark-muted);
  max-width: 60ch;
}

/* Narrative thread linking service pages */
.story-next {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--r);
  background: var(--surface);
}

.story-next .eyebrow {
  margin: 0 0 0.25rem;
}

.story-next a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
}

/* --------------------------------------------------------------------------
   21. FAQ  (accordion)
   -------------------------------------------------------------------------- */
.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  min-height: 44px;
}

.faq-q .faq-icon {
  flex: none;
  color: var(--gold);
  transition: transform var(--dur) var(--ease);
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  color: var(--text-muted);
  transition: max-height var(--dur) var(--ease-out);
}

.faq-item.is-open .faq-a {
  max-height: 520px;
  padding-bottom: 1.25rem;
}

/* --------------------------------------------------------------------------
   22. BLOG  (filter tabs, feed cards, pinned posts)
   -------------------------------------------------------------------------- */
.feed-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.feed-tab {
  min-height: 44px;
  padding: 0.55rem 1.1rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
}

.feed-tab.is-active,
.feed-tab:hover {
  background: var(--gold-soft);
  border-color: var(--gold);
  color: var(--gold-bright);
}

.feed-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  height: 100%;
}

.feed-card__src {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feed-card h4 {
  line-height: 1.3;
}

.feed-card time {
  font-size: var(--fs-small);
  color: var(--text-muted);
  margin-top: auto;
}

/* --------------------------------------------------------------------------
   23. FOOTER  (dark by construction)
   -------------------------------------------------------------------------- */
.footer {
  background: var(--ink);
  color: var(--on-dark-muted);
  padding-block: clamp(3rem, 2rem + 3vw, 4.5rem) 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer img {
  height: 52px;
  margin-bottom: 1.1rem;
}

.footer h5 {
  color: var(--on-dark);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.footer a {
  color: var(--on-dark-muted);
  display: inline-block;
  padding: 0.25rem 0;
}

.footer a:hover {
  color: var(--gold-bright);
}

.footer__creds {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: var(--fs-small);
}

@media (max-width: 860px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 520px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   24. UTILITIES
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2.5rem; }
.flow > * + * { margin-top: 1.1rem; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--gold);
  color: var(--ink);
  border-radius: 0 0 var(--r-sm) 0;
}

.skip-link:focus {
  left: 0;
}

/* --------------------------------------------------------------------------
   25. REDUCED MOTION
   Disables transitions defined in this file. Keyframe animations and their
   own reduced-motion guard live in animations.css.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.001ms;
    transition-delay: 0ms;
    scroll-behavior: auto;
  }
}
