/* ============================================================
   uppcba.com — DESIGN TOKENS (FROZEN CONTRACT)
   PASS B — Design System Foundation
   PCB-as-visual-language. Navy substrate + copper traces.
   ============================================================ */

/* ------------------------------------------------------------
   CSS CUSTOM PROPERTIES — Design Tokens
   ------------------------------------------------------------ */

:root {

  /* === Color System === */

  /* Brand Navy */
  --navy-darkest:   #080F1A;
  --navy-primary:   #0F1F33;
  --navy-mid:       #1A3352;

  /* Accent Copper */
  --copper:         #C87F2E;
  --copper-hover:   #E09D3C;
  --copper-light:   rgba(200,127,46,0.12);
  --copper-glow:    rgba(200,127,46,0.25);

  /* Accent Gold */
  --gold:           #D4A843;

  /* Surfaces */
  --surface-white:  #FAFBFD;
  --surface-gray:   #F2F4F7;

  /* Borders */
  --border-default: #DDE1E8;
  --border-active:  #C87F2E;

  /* Text */
  --text-primary:   #14171C;
  --text-secondary: #5C6370;
  --text-on-dark:   #E8ECF2;

  /* Semantic */
  --success:        #2E7D32;
  --error:          #C0392B;

  /* === Typography === */

  /* Font families */
  --font-display:   Georgia, 'Times New Roman', serif;
  --font-body:      system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono:      'Cascadia Code', 'Fira Code', 'Consolas', monospace;

  /* Major Third scale (1.25) */
  --text-xs:        0.75rem;    /* 12px */
  --text-sm:        0.875rem;   /* 14px */
  --text-base:      1rem;       /* 16px */
  --text-lg:        1.125rem;   /* 18px */
  --text-h6:        1.25rem;    /* 20px */
  --text-h5:        1.5rem;     /* 24px */
  --text-h4:        1.75rem;    /* 28px */
  --text-h3:        2.25rem;    /* 36px */
  --text-h2:        2.75rem;    /* 44px */
  --text-h1:        3.5rem;     /* 56px */
  --text-hero-xl:   4.5rem;     /* 72px */

  /* Line heights */
  --lh-tight:       1.15;
  --lh-heading:     1.25;
  --lh-body:        1.65;
  --lh-relaxed:     1.75;

  /* Letter spacing */
  --ls-eyebrow:     0.12em;
  --ls-label:       0.08em;
  --ls-wide:        0.04em;

  /* === Spacing — 8px base === */
  --sp-1:  0.5rem;    /* 8px */
  --sp-2:  1rem;      /* 16px */
  --sp-3:  1.5rem;    /* 24px */
  --sp-4:  2rem;      /* 32px */
  --sp-5:  2.5rem;    /* 40px */
  --sp-6:  3rem;      /* 48px */
  --sp-7:  3.5rem;    /* 56px */
  --sp-8:  4rem;      /* 64px */
  --sp-9:  5rem;      /* 80px */
  --sp-10: 5.5rem;    /* 88px */
  --sp-12: 6rem;      /* 96px */
  --sp-14: 7rem;      /* 112px */
  --sp-16: 8rem;      /* 128px */

  /* Section gaps */
  --section-gap-xs:  2rem;
  --section-gap-sm:  3rem;
  --section-gap-md:  5rem;
  --section-gap-lg:  6rem;
  --section-gap-xl:  8rem;

  /* Nav */
  --nav-height:      68px;

  /* === Depth — Multi-layer Shadows === */
  --shadow-card:        0 1px 2px rgba(8,15,26,0.04),
                        0 4px 8px rgba(8,15,26,0.06);
  --shadow-card-hover:  0 1px 2px rgba(8,15,26,0.06),
                        0 8px 16px rgba(8,15,26,0.08),
                        0 0 0 1px rgba(200,127,46,0.12);
  --shadow-nav:         0 1px 3px rgba(8,15,26,0.06),
                        0 4px 16px rgba(8,15,26,0.10);
  --shadow-hero-overlay: inset 0 -80px 60px -40px rgba(8,15,26,0.50);
  --shadow-button:      0 1px 2px rgba(8,15,26,0.08);
  --shadow-button-hover: 0 2px 4px rgba(8,15,26,0.12),
                         0 0 0 2px rgba(200,127,46,0.25);
  --shadow-cta:         0 4px 12px rgba(8,15,26,0.08),
                        0 12px 32px rgba(8,15,26,0.12);

  /* === Border Radius === */
  --radius-sm:      4px;
  --radius-pill:    9999px;
  --radius-none:    0;

  /* === Transitions === */
  --transition-fast:  150ms ease;
  --transition-base:  250ms ease;
  --transition-slow:  350ms ease;
}


/* ------------------------------------------------------------
   RESET / BASE
   ------------------------------------------------------------ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--lh-body);
  color: var(--text-primary);
  background: var(--surface-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--copper);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--copper-hover);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: var(--lh-heading);
  color: var(--text-primary);
}

h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }
h4 { font-size: var(--text-h4); }
h5 { font-size: var(--text-h5); }
h6 { font-size: var(--text-h6); }

code, pre, kbd, samp {
  font-family: var(--font-mono);
}


/* ------------------------------------------------------------
   LAYOUT — Container & Grid
   ------------------------------------------------------------ */

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
}

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-4);
}


/* ------------------------------------------------------------
   SECTION HELPERS
   ------------------------------------------------------------ */

.section-gap-xs { padding-block: var(--section-gap-xs); }
.section-gap-sm { padding-block: var(--section-gap-sm); }
.section-gap-md { padding-block: var(--section-gap-md); }
.section-gap-lg { padding-block: var(--section-gap-lg); }
.section-gap-xl { padding-block: var(--section-gap-xl); }

.section-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--copper);
  text-transform: uppercase;
  letter-spacing: var(--ls-label);
  margin-bottom: var(--sp-1);
}

.section-eyebrow {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--copper);
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  margin-bottom: var(--sp-2);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-h2);
  line-height: var(--lh-heading);
  color: var(--text-primary);
  margin-bottom: var(--sp-3);
}

.section-heading {
  text-align: center;
  margin-bottom: var(--sp-6);
}

.section-heading .section-title {
  margin-bottom: var(--sp-2);
}

.section-heading .section-eyebrow {
  margin-bottom: var(--sp-1);
}

/* Section divider: 1px rule + copper left segment */
.section-divider {
  border: none;
  height: 1px;
  background:
    linear-gradient(to right, var(--copper) 60px, var(--border-default) 60px);
  margin-block: var(--sp-6);
}


/* ------------------------------------------------------------
   BUTTON SYSTEM
   ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  padding: 0.75rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--transition-fast),
              color var(--transition-fast),
              border-color var(--transition-fast),
              box-shadow var(--transition-fast),
              transform var(--transition-fast);
  user-select: none;
}

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

/* Copper fill */
.btn-primary {
  background: var(--copper);
  color: #fff;
  border-color: var(--copper);
  box-shadow: var(--shadow-button);
}

.btn-primary:hover {
  background: var(--copper-hover);
  border-color: var(--copper-hover);
  box-shadow: var(--shadow-button-hover);
  color: #fff;
}

/* Accent (gold) */
.btn-accent {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
  box-shadow: var(--shadow-button);
}

.btn-accent:hover {
  background: #C49A3B;
  border-color: #C49A3B;
  box-shadow: var(--shadow-button-hover);
  color: #fff;
}

/* Outline */
.btn-outline {
  background: transparent;
  color: var(--copper);
  border-color: var(--copper);
}

.btn-outline:hover {
  background: var(--copper);
  color: #fff;
}

/* Inverse (on dark) */
.btn-inverse {
  background: var(--text-on-dark);
  color: var(--navy-primary);
  border-color: var(--text-on-dark);
  box-shadow: var(--shadow-button);
}

.btn-inverse:hover {
  background: #fff;
  border-color: #fff;
  color: var(--navy-primary);
  box-shadow: var(--shadow-button-hover);
}

/* Outline inverse (on dark) */
.btn-outline-inverse {
  background: transparent;
  color: var(--text-on-dark);
  border-color: var(--text-on-dark);
  box-shadow: none;
}

.btn-outline-inverse:hover {
  background: rgba(255,255,255,0.08);
  border-color: #fff;
  color: #fff;
}

/* Nav CTA — hardcoded, NOT from variables */
.btn.nav-cta {
  background: #1a2c61;
  color: #fff;
  border-color: #1a2c61;
}

.btn.nav-cta:hover {
  background: #14224e;
  border-color: #14224e;
  color: #fff;
}


/* ------------------------------------------------------------
   SCROLL-REVEAL — Always Visible (no animation)
   ------------------------------------------------------------ */

.reveal {
  opacity: 1;
}


/* ------------------------------------------------------------
   NAVIGATION
   ------------------------------------------------------------ */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: var(--surface-white);
  border-bottom: 1px solid var(--border-default);
  box-shadow: var(--shadow-nav);
}

.site-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

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

.nav-logo-text {
  font-family: var(--font-display);
  font-size: var(--text-h5);
  font-weight: 400;
  color: var(--navy-primary);
  letter-spacing: var(--ls-wide);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--copper);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* Nav dropdown — click toggle, no hover gap */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
}

.nav-dropdown-toggle::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-top: 1px;
  transition: transform var(--transition-fast);
}

.nav-dropdown.open .nav-dropdown-toggle::after {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -0.75rem;
  min-width: 200px;
  background: var(--surface-white);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-nav);
  padding: var(--sp-1) 0;
  z-index: 100;
}

.nav-dropdown.open .nav-dropdown-menu,
.nav-dropdown-menu:hover {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.6rem 1.25rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.nav-dropdown-menu a:hover {
  background: var(--surface-gray);
  color: var(--copper);
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--surface-white);
    border-bottom: 1px solid var(--border-default);
    padding: var(--sp-3) 24px;
    gap: var(--sp-2);
    box-shadow: var(--shadow-nav);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-hamburger {
    display: flex;
  }
}


/* ------------------------------------------------------------
   HERO
   ------------------------------------------------------------ */

.hero-inner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: var(--nav-height) 0 var(--sp-8);
  overflow: hidden;
}

/* Page hero (shorter) */
.page-hero .hero-inner {
  min-height: 48vh;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Non-product hero overlay */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(11,26,46,0.72),
    rgba(0,60,76,0.78)
  );
}

/* Product detail hero overlay (lighter) */
.hero-product .hero-bg::after {
  background: linear-gradient(
    135deg,
    rgba(11,26,46,0.45),
    rgba(0,60,76,0.55)
  );
}

.hero-inner-content {
  position: relative;
  z-index: 1;
  padding: var(--sp-6) var(--sp-5);
  width: 100%;
}

.hero-inner-content h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-h1);
  line-height: var(--lh-tight);
  color: #fff;
  max-width: 720px;
}

.hero-inner-content .hero-subtitle {
  font-size: var(--text-lg);
  color: var(--text-on-dark);
  margin-top: var(--sp-3);
  max-width: 560px;
  line-height: var(--lh-relaxed);
}

.hero-inner-content .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
}

/* Hero XL (landing hero) — centered layout for homepage */
.hero-xl .hero-inner-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-xl .hero-inner-content h1 {
  font-size: var(--text-hero-xl);
  margin-inline: auto;
  max-width: 900px;
}

.hero-xl .hero-inner-content .hero-subtitle {
  margin-inline: auto;
}

.hero-xl .hero-inner-content .hero-actions {
  justify-content: center;
}

.hero-xl .hero-certs {
  justify-content: center;
}


/* ------------------------------------------------------------
   CARDS
   ------------------------------------------------------------ */

.card {
  background: var(--surface-white);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: var(--sp-4);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition-base),
              border-color var(--transition-base);
}

/* Left-edge copper border on hover */
.card:hover {
  border-left: 3px solid var(--copper);
  padding-left: calc(var(--sp-4) - 2px);
  box-shadow: var(--shadow-card-hover);
}

.card-raised {
  box-shadow: var(--shadow-card-hover);
}

.card-media {
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--surface-white);
  border: 1px solid var(--border-default);
  box-shadow: var(--shadow-card);
}

.card-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.card-media-body {
  padding: var(--sp-3);
}

.card-media-body h4 {
  font-size: var(--text-h6);
  margin-bottom: var(--sp-1);
}

.spec-mini {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  padding: var(--sp-2);
  background: var(--surface-gray);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
}

.spec-mini dt {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: var(--ls-label);
  flex-basis: 30%;
}

.spec-mini dd {
  font-size: var(--text-sm);
  color: var(--text-primary);
  flex-basis: calc(70% - var(--sp-2));
}

/* Badge */
.badge {
  display: inline-block;
  width: fit-content;
  padding: 0.2em 0.5em;
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: var(--ls-label);
  background: var(--surface-gray);
  color: var(--text-secondary);
}

.badge-accent {
  background: var(--copper);
  color: #fff;
}

.badge-success {
  background: var(--success);
  color: #fff;
}

.badge-outline {
  background: transparent;
  color: var(--copper);
  border: 1px solid var(--copper);
}

.badge-gold {
  background: var(--gold);
  color: #fff;
}


/* ------------------------------------------------------------
   MEDIA SPLIT
   ------------------------------------------------------------ */

.media-split {
  display: grid;
  grid-template-columns: 5fr 4fr;
  align-items: start;
  gap: var(--sp-8);
}

.media-split.reverse {
  grid-template-columns: 4fr 5fr;
}

.media-split.reverse .media-img {
  order: 1;
}

.media-split .media-img {
  position: sticky;
  top: calc(var(--nav-height) + var(--sp-5));
  max-height: 460px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.media-split .media-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-split .media-body {
  padding-block: var(--sp-3);
}

.media-split .media-body h3 {
  margin-bottom: var(--sp-3);
}

.media-split .media-body p {
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--sp-2);
}


/* ------------------------------------------------------------
   CTA BAND
   ------------------------------------------------------------ */

.cta-band {
  position: relative;
  background: var(--navy-primary);
  border-left: 4px solid var(--copper);
  padding: var(--sp-6);
}

.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
  max-width: 1200px;
  margin-inline: auto;
}

.cta-band-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-h3);
  color: #fff;
  line-height: var(--lh-heading);
}

.cta-band-lead {
  font-size: var(--text-base);
  color: var(--text-on-dark);
  margin-top: var(--sp-1);
  line-height: var(--lh-relaxed);
}

.cta-band-actions {
  display: flex;
  gap: var(--sp-2);
  flex-shrink: 0;
}


/* ------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------ */

.site-footer {
  background: var(--navy-darkest);
  color: var(--text-on-dark);
  padding: var(--sp-8) 0 var(--sp-4);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--sp-5);
  margin-bottom: var(--sp-6);
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: var(--ls-label);
  margin-bottom: var(--sp-3);
}

.footer-col p {
  font-size: var(--text-sm);
  color: var(--text-on-dark);
  opacity: 0.8;
  line-height: var(--lh-relaxed);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col a {
  font-size: var(--text-sm);
  color: var(--text-on-dark);
  opacity: 0.75;
  text-decoration: none;
  transition: opacity var(--transition-fast), color var(--transition-fast);
}

.footer-col a:hover {
  opacity: 1;
  color: var(--copper);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: var(--sp-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-2);
  font-size: var(--text-xs);
  color: var(--text-on-dark);
  opacity: 0.6;
}

.footer-bottom a {
  color: inherit;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--copper);
  opacity: 1;
}


/* ------------------------------------------------------------
   FAQ
   ------------------------------------------------------------ */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--border-default);
}

.faq-item:first-child {
  border-top: 1px solid var(--border-default);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  padding: var(--sp-3) 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  line-height: var(--lh-body);
}

.faq-question::after {
  content: '+';
  font-size: var(--text-h5);
  font-weight: 300;
  color: var(--copper);
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.faq-item.open .faq-question::after {
  content: '\2212'; /* minus sign */
}

.faq-answer {
  display: none;
  padding: 0 0 var(--sp-3);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
}

.faq-item.open .faq-answer {
  display: block;
}


/* ------------------------------------------------------------
   MODAL
   ------------------------------------------------------------ */

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(8,15,26,0.72);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.open {
  display: flex;
}

.modal-content {
  position: relative;
  background: var(--surface-white);
  border-radius: var(--radius-sm);
  padding: var(--sp-5);
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 16px 48px rgba(8,15,26,0.24);
}

.modal-close {
  position: absolute;
  top: var(--sp-2);
  right: var(--sp-2);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  font-size: var(--text-h5);
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.modal-close:hover {
  background: var(--surface-gray);
  color: var(--text-primary);
}

.modal-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-h4);
  color: var(--text-primary);
  margin-bottom: var(--sp-3);
  padding-right: var(--sp-5);
}

.modal-body {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
}


/* ------------------------------------------------------------
   FORMS
   ------------------------------------------------------------ */

.form-group {
  margin-bottom: var(--sp-3);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.375rem;
}

.form-input,
.form-select,
.form-textarea {
  display: block;
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text-primary);
  background: var(--surface-white);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast),
              box-shadow var(--transition-fast);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--border-active);
  box-shadow: 0 0 0 3px var(--copper-light);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-error {
  font-size: var(--text-xs);
  color: var(--error);
  margin-top: 0.25rem;
}

.form-success {
  font-size: var(--text-xs);
  color: var(--success);
  margin-top: 0.25rem;
}


/* ------------------------------------------------------------
   PROCESS TIMELINE
   ------------------------------------------------------------ */

.process-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.process-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--sp-3);
  position: relative;
}

.process-marker {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-primary);
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--text-h5);
  font-weight: 400;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.process-connector {
  position: absolute;
  left: 23px;
  top: 48px;
  bottom: 0;
  width: 2px;
  background: var(--border-default);
  z-index: 0;
}

.process-step:last-child .process-connector {
  display: none;
}

.process-step .process-body {
  padding-bottom: var(--sp-5);
}

.process-step .process-body h4 {
  font-size: var(--text-h6);
  margin-bottom: var(--sp-1);
}

.process-step .process-body p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
}


/* ------------------------------------------------------------
   STAT CARDS
   ------------------------------------------------------------ */

.stat-card {
  text-align: center;
  padding: var(--sp-4);
  background: var(--surface-white);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
}

.stat-card .stat-value {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: 400;
  color: var(--copper);
  line-height: var(--lh-tight);
}

.stat-card .stat-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-top: var(--sp-1);
}


/* ------------------------------------------------------------
   COMPARISON TABLE
   ------------------------------------------------------------ */

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.comparison-table thead {
  background: var(--navy-primary);
  color: #fff;
}

.comparison-table th {
  padding: var(--sp-2) var(--sp-3);
  text-align: left;
  font-weight: 600;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--ls-label);
}

.comparison-table td {
  padding: var(--sp-2) var(--sp-3);
  border-bottom: 1px solid var(--border-default);
  color: var(--text-primary);
}

.comparison-table tbody tr:nth-child(even) {
  background: var(--surface-gray);
}

.comparison-table tbody tr:hover {
  background: rgba(200,127,46,0.04);
}

.comparison-table .check {
  color: var(--success);
  font-weight: 700;
}

.comparison-table .dash {
  color: var(--text-secondary);
}


/* ------------------------------------------------------------
   TRUST STRIP
   ------------------------------------------------------------ */

.trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--sp-4) var(--sp-6);
  padding: var(--sp-4) 0;
  border-top: 1px solid var(--border-default);
  border-bottom: 1px solid var(--border-default);
}

.trust-strip-item {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.trust-strip-item .trust-icon {
  font-size: var(--text-h5);
  color: var(--copper);
}


/* ------------------------------------------------------------
   CERTIFICATION BADGES
   ------------------------------------------------------------ */

.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-1) var(--sp-2);
  background: var(--surface-gray);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-primary);
}


/* ------------------------------------------------------------
   EQUIPMENT CARDS
   ------------------------------------------------------------ */

.equipment-card {
  background: var(--surface-white);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: var(--sp-3);
  box-shadow: var(--shadow-card);
}

.equipment-card .equipment-name {
  font-family: var(--font-display);
  font-size: var(--text-h6);
  font-weight: 400;
  color: var(--navy-primary);
  margin-bottom: var(--sp-1);
}

.equipment-card .equipment-meta {
  font-size: var(--text-xs);
  color: var(--text-secondary);
}


/* ------------------------------------------------------------
   TOPIC PILLS
   ------------------------------------------------------------ */

.topic-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.topic-pill {
  display: inline-block;
  padding: 0.35em 0.85em;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--navy-mid);
  background: transparent;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: border-color var(--transition-fast),
              color var(--transition-fast),
              background var(--transition-fast);
}

.topic-pill:hover {
  border-color: var(--copper);
  color: var(--copper);
}

.topic-pill.active {
  background: var(--copper);
  border-color: var(--copper);
  color: #fff;
}


/* ------------------------------------------------------------
   BREADCRUMB
   ------------------------------------------------------------ */

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
}

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

.breadcrumb .separator {
  color: var(--border-default);
}

.breadcrumb .current {
  color: var(--copper);
  font-weight: 600;
}


/* ------------------------------------------------------------
   IMAGE FALLBACK PANEL
   ------------------------------------------------------------ */

.img-fallback-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-gray);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  min-height: 200px;
}

.img-fallback-panel .fallback-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.img-fallback-panel .fallback-icon {
  font-size: 2rem;
  color: var(--border-default);
  margin-bottom: var(--sp-1);
}


/* ------------------------------------------------------------
   BLOG
   ------------------------------------------------------------ */

.article-hero {
  padding: calc(var(--nav-height) + var(--sp-6)) 0 var(--sp-6);
  background: var(--navy-primary);
  color: #fff;
}

.article-hero .article-category {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--copper);
  margin-bottom: var(--sp-2);
}

.article-hero h1 {
  font-size: var(--text-h2);
  color: #fff;
  max-width: 720px;
}

.article-hero .article-meta {
  font-size: var(--text-sm);
  color: var(--text-on-dark);
  opacity: 0.8;
  margin-top: var(--sp-2);
}

.article-body {
  max-width: 740px;
  margin-inline: auto;
  padding: var(--sp-6) 24px var(--sp-8);
  font-size: var(--text-base);
  line-height: var(--lh-relaxed);
  color: var(--text-primary);
}

.article-body h2 {
  font-size: var(--text-h3);
  margin-top: var(--sp-6);
  margin-bottom: var(--sp-3);
}

.article-body h3 {
  font-size: var(--text-h4);
  margin-top: var(--sp-4);
  margin-bottom: var(--sp-2);
}

.article-body p {
  margin-bottom: var(--sp-3);
}

.article-body ul,
.article-body ol {
  margin-bottom: var(--sp-3);
  padding-left: 1.5rem;
}

.article-body ul {
  list-style: disc;
}

.article-body ol {
  list-style: decimal;
}

.article-body li {
  margin-bottom: 0.375rem;
}

.article-body img {
  border-radius: var(--radius-sm);
  margin-block: var(--sp-4);
}

.article-body blockquote {
  border-left: 3px solid var(--copper);
  padding-left: var(--sp-3);
  margin-block: var(--sp-4);
  color: var(--text-secondary);
  font-style: italic;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}

.blog-card {
  background: var(--surface-white);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition-base);
}

.blog-card:hover {
  box-shadow: var(--shadow-card-hover);
}

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card-body {
  padding: var(--sp-3);
}

.blog-card-body .blog-category {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--copper);
  text-transform: uppercase;
  letter-spacing: var(--ls-label);
  margin-bottom: var(--sp-1);
}

.blog-card-body h3 {
  font-size: var(--text-h6);
  margin-bottom: var(--sp-1);
}

.blog-card-body p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
}


/* ------------------------------------------------------------
   UTILITY — Visibility & Spacing
   ------------------------------------------------------------ */

.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;
}


/* ------------------------------------------------------------
   RESPONSIVE — max-width: 768px
   ------------------------------------------------------------ */

@media (max-width: 768px) {

  :root {
    --text-h1:      2.75rem;
    --text-h2:      2.25rem;
    --text-h3:      1.75rem;
    --text-h4:      1.5rem;
    --text-hero-xl: 3.25rem;
    --nav-height:   60px;
  }

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

  .media-split {
    grid-template-columns: 1fr;
    gap: var(--sp-4);
  }

  .media-split .media-img {
    position: static;
    max-height: 320px;
  }

  .media-split.reverse .media-img {
    order: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cta-band-inner {
    flex-direction: column;
    text-align: center;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .comparison-table {
    font-size: var(--text-xs);
  }

  .comparison-table th,
  .comparison-table td {
    padding: var(--sp-1);
  }

  .hero-inner-content {
    padding: var(--sp-4) var(--sp-2);
  }

  .hero-inner-content h1 {
    font-size: var(--text-h2);
  }
}


/* ------------------------------------------------------------
   RESPONSIVE — max-width: 480px
   ------------------------------------------------------------ */

@media (max-width: 480px) {

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .grid-auto {
    grid-template-columns: 1fr;
  }

  .section-gap-lg,
  .section-gap-xl {
    padding-block: var(--section-gap-sm);
  }

  .hero-inner-content h1 {
    font-size: var(--text-h3);
  }

  .hero-xl .hero-inner-content h1 {
    font-size: 2.5rem;
  }

  .hero-inner-content .hero-subtitle {
    font-size: var(--text-base);
  }

  .hero-inner-content .hero-actions {
    flex-direction: column;
  }

  .hero-inner-content .hero-actions .btn {
    width: 100%;
  }

  .cta-band {
    padding: var(--sp-4);
  }

  .modal-content {
    padding: var(--sp-3);
  }
}


/* ------------------------------------------------------------
   prefers-reduced-motion — Disable all transitions
   ------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    transition-duration: 0s !important;
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}


/* ------------------------------------------------------------
   PRINT
   ------------------------------------------------------------ */

@media print {

  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
    line-height: 1.5;
  }

  .site-nav,
  .modal-overlay,
  .cta-band,
  .btn,
  .nav-cta,
  .nav-hamburger,
  .hero-actions,
  .cta-band-actions {
    display: none !important;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }

  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }

  .container {
    max-width: 100%;
    padding-inline: 0;
  }

  .hero-inner {
    min-height: auto;
    padding: 1rem 0;
  }

  .hero-bg::after {
    background: none;
  }

  .hero-inner-content h1 {
    color: #000;
    font-size: 22pt;
  }

  .hero-inner-content .hero-subtitle {
    color: #333;
  }

  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }

  .media-split {
    grid-template-columns: 1fr;
  }

  .section-gap-md,
  .section-gap-lg,
  .section-gap-xl {
    padding-block: 1.5rem;
  }

  .card,
  .blog-card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}
