/* Western Slope Radiator — design system v2 "Garage Badge"
   Brand palette drawn from the WSR logo: royal blue, warm cream,
   black, chrome. Dark heroes + nav (logo-native), cream canvas,
   blue CTAs, Oswald condensed display type, radiator-grille texture. */

:root {
  /* Brand (from logo) */
  --brand-blue: #1e56b0;
  --brand-blue-active: #17428a;
  --brand-blue-deep: #122e5c;
  --cream: #f5f0e2;
  --cream-bright: #fdfaf2;

  /* Actions */
  --primary: #1e56b0;
  --primary-active: #17428a;

  /* Accent set (testimonials, stars) */
  --badge-orange: #e8923c;
  --badge-pink: #ec4899;
  --badge-violet: #8b5cf6;
  --badge-emerald: #34d399;

  /* Surfaces */
  --canvas: #f5f1e6;            /* warm cream page floor */
  --surface-soft: #fdfbf4;      /* bright band for alternation */
  --surface-card: #ffffff;      /* cards pop on cream */
  --surface-strong: #e4ddcb;
  --surface-dark: #000000;      /* heroes, nav, footer — matches logo bg */
  --surface-dark-elevated: #141414;
  --hairline: #e3dcc9;
  --hairline-soft: #ece6d6;

  /* Text — light surfaces */
  --ink: #15181e;
  --body: #3c4350;
  --muted: #6e7263;
  --muted-soft: #95917f;

  /* Text — dark surfaces */
  --on-dark: #f5f0e2;
  --on-dark-body: #cfc9b8;
  --on-dark-soft: #97917f;
  --on-primary: #ffffff;

  /* Semantic */
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;

  /* Radius */
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-pill: 9999px;

  /* Spacing */
  --sp-xxs: 4px; --sp-xs: 8px; --sp-sm: 12px; --sp-md: 16px;
  --sp-lg: 24px; --sp-xl: 32px; --sp-xxl: 48px; --sp-section: 96px;

  --shadow-sm: 0 1px 2px rgba(20,16,8,0.06);
  --shadow-md: 0 4px 16px rgba(20,16,8,0.10);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Oswald', 'Arial Narrow', -apple-system, sans-serif;

  /* Radiator-grille texture for dark bands */
  --grille: repeating-linear-gradient(90deg,
      rgba(245,240,226,0.045) 0px, rgba(245,240,226,0.045) 2px,
      transparent 2px, transparent 18px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 16px; line-height: 1.5;
  color: var(--body);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; }
p a, .body-link { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Typography ---------- */
h1, h2, h3, .display {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
}
.display-xl { font-size: 60px; line-height: 1.08; letter-spacing: 0.5px; }
.display-lg { font-size: 44px; line-height: 1.12; letter-spacing: 0.5px; }
.display-md { font-size: 34px; line-height: 1.15; letter-spacing: 0.5px; }
.display-sm { font-size: 27px; line-height: 1.2;  letter-spacing: 0.5px; }
.title-lg   { font-size: 22px; line-height: 1.3; }
.title-md   { font-size: 18px; line-height: 1.4; }
.title-sm   { font-size: 16px; line-height: 1.4; }
.body-md    { font-size: 16px; line-height: 1.5; font-family: var(--font); }
.body-sm    { font-size: 14px; line-height: 1.5; font-family: var(--font); }
.caption    { font-size: 13px; line-height: 1.4; font-weight: 500; font-family: var(--font); }
.muted      { color: var(--muted); }

/* ---------- Layout ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--sp-lg); }
.section { padding: var(--sp-section) 0; }
.section-soft { background: var(--surface-soft); border-top: 1px solid var(--hairline-soft); border-bottom: 1px solid var(--hairline-soft); }
.section-head { max-width: 680px; margin: 0 auto var(--sp-xxl); text-align: center; }
.section-head p { margin-top: var(--sp-md); color: var(--muted); font-size: 18px; }

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

/* ---------- Top nav (dark — logo-native) ---------- */
.top-nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--surface-dark);
  border-bottom: 1px solid var(--surface-dark-elevated);
}
.top-nav .container {
  height: 68px; display: flex; align-items: center; gap: var(--sp-xl);
}
.wordmark {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 18px;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--on-dark); white-space: nowrap;
}
.wordmark .mark {
  width: 40px; height: 40px; border-radius: var(--r-md);
  background: var(--surface-dark);
  display: inline-flex; align-items: center; justify-content: center;
  object-fit: cover; flex-shrink: 0;
}
.nav-links { display: flex; gap: var(--sp-lg); margin: 0 auto; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--on-dark-body); padding: 8px 4px; }
.nav-cta { display: flex; align-items: center; gap: var(--sp-md); margin-left: auto; white-space: nowrap; }
.nav-phone { font-size: 15px; font-weight: 600; color: var(--on-dark); }

.nav-toggle {
  display: none; background: none;
  border: 1px solid var(--surface-dark-elevated); border-radius: var(--r-md);
  width: 40px; height: 40px; font-size: 18px; color: var(--on-dark); cursor: pointer;
}

/* ---------- Announcement bar ---------- */
.announce-bar {
  position: sticky; top: 68px; z-index: 49;
  background: var(--brand-blue);
}
.announce-bar a.announce-link {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  flex-wrap: wrap; text-align: center;
  padding: 10px var(--sp-md);
  font-size: 14px; font-weight: 600; color: var(--on-primary);
}
.announce-bar a.announce-link:hover { background: var(--brand-blue-active); }
.announce-bar .announce-tag {
  background: var(--badge-orange); color: #1a1200; border-radius: var(--r-pill);
  padding: 3px 12px; font-size: 12px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.5px;
  box-shadow: 0 0 0 0 rgba(232,146,60,0.6);
  animation: announce-pulse 1.8s ease-in-out infinite;
}
.announce-bar .announce-arrow { font-weight: 700; }
@keyframes announce-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232,146,60,0.55); }
  50% { box-shadow: 0 0 0 7px rgba(232,146,60,0); }
}
#parachute-dropoff { scroll-margin-top: 88px; }
@media (max-width: 640px) {
  .announce-bar { position: static; }
  .announce-bar a.announce-link { font-size: 13px; padding: 10px 12px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-size: 14px; font-weight: 600; line-height: 1;
  border-radius: var(--r-md); padding: 12px 20px; min-height: 40px;
  border: none; cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:active { background: var(--primary-active); }
.btn-secondary { background: var(--surface-card); color: var(--ink); border: 1px solid var(--hairline); }
.btn-lg { padding: 16px 28px; font-size: 16px; min-height: 52px; }
.btn-block { width: 100%; }

/* ---------- Badges & pills ---------- */
.badge-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface-card); color: var(--ink);
  font-size: 13px; font-weight: 500;
  border-radius: var(--r-pill); padding: 5px 14px;
  border: 1px solid var(--hairline);
}
.stars { color: var(--badge-orange); letter-spacing: 2px; font-size: 14px; }

.trust-row { display: flex; align-items: center; gap: var(--sp-md); flex-wrap: wrap; margin-top: var(--sp-lg); }

/* ---------- Hero (dark band, grille texture) ---------- */
.hero, .page-hero {
  background: var(--surface-dark);
  background-image: var(--grille);
  border-bottom: 4px solid var(--brand-blue);
}
.hero { padding: var(--sp-section) 0; }
.page-hero { padding: 72px 0; }
.hero h1, .page-hero h1 { color: var(--on-dark); }
.hero .sub, .page-hero .sub { color: var(--on-dark-body); }
.hero h1 { margin: var(--sp-lg) 0 var(--sp-md); }
.page-hero h1 { margin: var(--sp-lg) 0 var(--sp-md); }
.hero-grid { display: grid; grid-template-columns: 7fr 5fr; gap: var(--sp-xxl); align-items: center; }
.hero .sub { font-size: 18px; max-width: 540px; }
.page-hero .sub { font-size: 18px; max-width: 640px; }
.hero .btn-row { display: flex; gap: var(--sp-md); margin-top: var(--sp-xl); flex-wrap: wrap; }
.hero-note { margin-top: var(--sp-md); font-size: 14px; color: var(--on-dark-soft); }

/* dark-context overrides */
.hero .badge-pill, .page-hero .badge-pill, .cta-band .badge-pill {
  background: rgba(245,240,226,0.08); color: var(--on-dark);
  border-color: rgba(245,240,226,0.16);
}
.hero .btn-secondary, .page-hero .btn-secondary, .cta-band .btn-secondary {
  background: transparent; color: var(--on-dark);
  border: 1px solid rgba(245,240,226,0.35);
}
.hero .checklist li { color: var(--on-dark-body); }
.hero .checklist strong { color: var(--on-dark); }

/* ---------- Form card (the hero artifact) ---------- */
.form-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
  padding: var(--sp-xl);
  border-top: 4px solid var(--brand-blue);
}
.form-card h2 { font-size: 24px; margin-bottom: 4px; }
.form-card .form-sub { font-size: 14px; color: var(--muted); margin-bottom: var(--sp-lg); }
.field { margin-bottom: var(--sp-md); }
.field label { display: block; font-size: 13px; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--font); font-size: 16px; color: var(--ink);
  background: var(--cream-bright); border: 1px solid var(--hairline);
  border-radius: var(--r-md); padding: 10px 14px; min-height: 40px;
}
.field textarea { min-height: 88px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand-blue); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-md); }
.form-fineprint { margin-top: var(--sp-sm); font-size: 13px; color: var(--muted-soft); text-align: center; }

/* ---------- Cards ---------- */
.feature-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--sp-xl);
  box-shadow: var(--shadow-sm);
}
.feature-card .icon {
  width: 44px; height: 44px; border-radius: var(--r-md);
  background: var(--brand-blue-deep); color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--sp-md); font-size: 20px;
}
.feature-card h3 { font-size: 19px; margin-bottom: var(--sp-xs); }

.icon-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--sp-lg);
  border-top: 3px solid var(--brand-blue);
}
.icon-card h3 { font-size: 17px; margin: var(--sp-sm) 0 var(--sp-xxs); }
.icon-card p { font-size: 14px; color: var(--muted); }

.testimonial-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--sp-lg);
  box-shadow: var(--shadow-sm);
}
.testimonial-head { display: flex; align-items: center; gap: var(--sp-sm); margin-bottom: var(--sp-md); }
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px; font-weight: 600; flex-shrink: 0;
}
.testimonial-head .who .name { font-size: 14px; font-weight: 600; color: var(--ink); }
.testimonial-head .who .meta { font-size: 13px; color: var(--muted-soft); }
.testimonial-card blockquote { font-size: 16px; color: var(--body); }

/* ---------- Stat strip ---------- */
.stat-strip { display: flex; justify-content: center; gap: var(--sp-xxl); flex-wrap: wrap; align-items: center; }
.stat { text-align: center; }
.stat .num {
  font-family: var(--font-display); font-size: 38px; font-weight: 600;
  color: var(--brand-blue); text-transform: uppercase;
}
.stat .lbl { font-size: 14px; color: var(--muted); margin-top: 2px; }

/* ---------- CTA band (dark, grille texture) ---------- */
.cta-band {
  background: var(--surface-dark);
  background-image: var(--grille);
  border-radius: var(--r-lg);
  border-top: 4px solid var(--brand-blue);
  padding: var(--sp-xxl);
  text-align: center;
}
.cta-band h2 { font-size: 30px; color: var(--on-dark); }
.cta-band p { margin: var(--sp-md) auto var(--sp-lg); color: var(--on-dark-body); max-width: 520px; }
.cta-band .btn-row { display: flex; gap: var(--sp-md); justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer {
  background: var(--surface-dark);
  color: var(--on-dark-soft);
  padding: 64px 0 var(--sp-xl);
  margin-top: var(--sp-section);
  border-top: 4px solid var(--brand-blue);
}
.footer a { color: var(--on-dark-soft); font-size: 14px; }
.footer .wordmark { color: var(--on-dark); margin-bottom: var(--sp-md); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--sp-xl); }
.footer h4 {
  color: var(--on-dark); font-family: var(--font-display);
  text-transform: uppercase; letter-spacing: 1px;
  font-size: 14px; font-weight: 600; margin-bottom: var(--sp-md);
}
.footer ul { list-style: none; }
.footer li { margin-bottom: var(--sp-sm); }
.footer .fine { border-top: 1px solid var(--surface-dark-elevated); margin-top: var(--sp-xxl); padding-top: var(--sp-lg); display: flex; justify-content: space-between; gap: var(--sp-md); flex-wrap: wrap; font-size: 13px; color: var(--on-dark-soft); }
.footer-logos { display: flex; align-items: center; gap: var(--sp-md); margin-top: var(--sp-md); flex-wrap: wrap; }
.wsr-footer-logo { width: 150px; }
.footer .narsa { background: #fff; border-radius: var(--r-md); padding: 8px; width: 110px; }
.footer-logos .narsa { margin-top: 0; }

/* ---------- Landing page (slim chrome) ---------- */
.lp-nav .nav-links { display: none; }
.sticky-call {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: 12px 16px;
  background: var(--surface-dark); border-top: 1px solid var(--surface-dark-elevated);
}
.sticky-call .btn-secondary {
  background: transparent; color: var(--on-dark);
  border: 1px solid rgba(245,240,226,0.35);
}

/* ---------- Misc ---------- */
.checklist { list-style: none; margin-top: var(--sp-lg); }
.checklist li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: var(--sp-sm); color: var(--body); }
.checklist li::before { content: "✓"; color: var(--badge-orange); font-weight: 700; flex-shrink: 0; }

.info-card {
  background: var(--surface-card); border: 1px solid var(--hairline);
  border-radius: var(--r-lg); padding: var(--sp-xl);
  border-top: 3px solid var(--brand-blue);
}
.info-card h3 { font-size: 18px; margin-bottom: var(--sp-sm); }
.info-card p { margin-bottom: var(--sp-xs); }

/* ---------- Motion ---------- */
.btn { transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.btn-primary:hover { background: var(--primary-active); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(30,86,176,0.35); }
.btn-secondary:hover { border-color: var(--brand-blue); color: var(--brand-blue); transform: translateY(-1px); }
.hero .btn-secondary:hover, .page-hero .btn-secondary:hover, .cta-band .btn-secondary:hover, .sticky-call .btn-secondary:hover {
  border-color: var(--on-dark); color: var(--on-dark); background: rgba(245,240,226,0.08);
}
.btn:active { transform: translateY(0); }

.nav-links a { transition: color .18s ease; }
.nav-links a:hover { color: var(--on-dark); }
.footer a { transition: color .18s ease; }
.footer a:hover { color: var(--on-dark); }

.feature-card, .icon-card, .testimonial-card, .info-card {
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature-card:hover, .icon-card:hover, .testimonial-card:hover, .info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--surface-strong);
}

.field input, .field textarea { transition: border-color .18s ease, box-shadow .18s ease; }
.field input:focus, .field textarea:focus { box-shadow: 0 0 0 3px rgba(30,86,176,0.15); }

/* Scroll reveal (class added by main.js) */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* Hero entrance on load */
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
.hero-grid > div:first-child { animation: hero-rise .7s ease both; }
.hero-grid > .form-card { animation: hero-rise .7s ease .15s both; }
.page-hero .container > * { animation: hero-rise .7s ease both; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .display-xl { font-size: 44px; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .top-nav.open .nav-links {
    display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--surface-dark); border-bottom: 1px solid var(--surface-dark-elevated);
    padding: var(--sp-lg); gap: var(--sp-md);
  }
}
@media (max-width: 768px) {
  .top-nav .nav-cta .btn-primary { display: none; } /* sticky call bar carries the CTA */
  .top-nav .container { gap: var(--sp-md); }
  .wordmark { font-size: 16px; }
  .display-xl { font-size: 32px; }
  .display-lg { font-size: 30px; }
  .display-md { font-size: 25px; }
  .section { padding: 64px 0; }
  .hero { padding: 48px 0 64px; }
  .hero-grid, .grid-2, .grid-3, .grid-4, .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-lg); }
  .nav-phone { display: none; }
  .sticky-call { display: flex; gap: 10px; }
  .sticky-call .btn { flex: 1; }
  body.has-sticky-call { padding-bottom: 76px; }
  .stat-strip { gap: var(--sp-lg); }
}
