/* Soon Pit Stop — landing layout system.
   Colors + fonts come from theme.css (the brand token source). This file adds the layout
   ladders (spacing / radius / elevation / type / motion) and the landing components.
   Rule: reference tokens, never hardcode brand hex. */

:root {
  /* Spacing — 4-based rhythm */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;

  /* Radius ladder */
  --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-pill: 999px;

  /* Elevation */
  --e1: 0 2px 8px rgba(20, 24, 31, .06);
  --e2: 0 12px 32px rgba(20, 24, 31, .10);
  --e3: 0 18px 44px rgba(2, 95, 226, .16);

  /* Type scale */
  --t-hero: clamp(2.6rem, 7vw, 5.2rem);
  --t-h1:   clamp(2rem, 4.5vw, 3.2rem);
  --t-h2:   clamp(1.5rem, 3vw, 2.2rem);
  --t-h3:   1.25rem;
  --t-lead: clamp(1.05rem, 1.6vw, 1.25rem);
  --t-body: 1rem;
  --t-sm:   .875rem;
  --t-xs:   .75rem;

  /* Motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: 200ms;

  /* Layout */
  --container: 1180px;
  --nav-h: 72px;

  /* Overlays / on-dark tints (derived, not new brand colors) */
  --on-blue: #FFFFFF;
  --on-blue-soft: rgba(255, 255, 255, .82);
  --hairline-dark: rgba(255, 255, 255, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.08; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.num { font-variant-numeric: tabular-nums; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--s5);
}
.display { font-family: var(--font-display); font-weight: 700; letter-spacing: .5px; }
.eyebrow {
  font-weight: 700; font-size: var(--t-sm); letter-spacing: 2px;
  text-transform: uppercase; color: var(--brand-blue);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: var(--s2);
  min-height: 48px; padding: var(--s3) var(--s5);
  border-radius: var(--r-pill); border: 2px solid transparent;
  font-family: var(--font-body); font-weight: 700; font-size: var(--t-body);
  cursor: pointer; transition: transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.btn-primary { background: var(--brand-gold); color: var(--ink); box-shadow: var(--e1); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--e2); background: var(--brand-gold-dark); color: var(--on-blue); }
.btn-ghost { background: transparent; color: var(--brand-blue); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--brand-blue); background: var(--brand-blue-tint); }
.btn-on-blue { background: var(--on-blue); color: var(--brand-blue); }
.btn-on-blue:hover { transform: translateY(-2px); box-shadow: var(--e2); }
.btn:focus-visible { outline: 3px solid var(--brand-gold); outline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--brand-blue); outline-offset: 2px; border-radius: var(--r-sm); }

.pill {
  display: inline-flex; align-items: center; gap: var(--s2);
  padding: var(--s2) var(--s4); border-radius: var(--r-pill);
  background: var(--brand-blue-tint); color: var(--brand-blue);
  font-weight: 600; font-size: var(--t-sm);
}

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h); display: flex; align-items: center;
  background: var(--surface); border-bottom: 1px solid var(--border);
  transition: box-shadow var(--dur) var(--ease);
}
.nav.scrolled { box-shadow: var(--e1); }
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: var(--s5); }
.nav-logo { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: var(--s6); }
.nav-links a { font-weight: 600; color: var(--muted); transition: color var(--dur) var(--ease); }
.nav-links a:hover { color: var(--brand-blue); }
.nav-cta { display: flex; align-items: center; gap: var(--s3); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: var(--s2); }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(155deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%);
  color: var(--on-blue);
}
.hero::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 10px;
  background-image: url('/assets/checker-strip.png');
  background-repeat: repeat-x; background-size: auto 100%;
}
.hero .container {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: var(--s7);
  align-items: center; padding-block: var(--s9);
}
.hero-eyebrow { color: var(--brand-gold); }
.hero h1 { font-size: var(--t-hero); margin-block: var(--s4) var(--s5); }
.hero-lead { font-size: var(--t-lead); color: var(--on-blue-soft); max-width: 44ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s7); }
.hero-stats { display: flex; gap: var(--s7); margin-top: var(--s8); flex-wrap: wrap; }
.hero-stat b { display: block; font-family: var(--font-display); font-size: var(--t-h2); color: var(--brand-gold); }
.hero-stat span { font-size: var(--t-sm); color: var(--on-blue-soft); }
.hero-visual {
  justify-self: center; width: min(360px, 100%); aspect-ratio: 1;
  background: var(--brand-cream); border-radius: 50%;
  display: grid; place-items: end center; box-shadow: var(--e3);
}
.hero-visual img { width: 78%; margin-bottom: -2px; }

/* Section scaffold */
.section { padding-block: var(--s9); }
.section-tint { background: var(--bg); }
.section-head { max-width: 60ch; margin-bottom: var(--s7); }
.section-head h2 { font-size: var(--t-h1); margin-block: var(--s3); }
.section-head p { color: var(--muted); font-size: var(--t-lead); }

/* Trust strip */
.trust { background: var(--brand-cream); padding-block: var(--s5); }
.trust .container { display: flex; flex-wrap: wrap; gap: var(--s4) var(--s7); align-items: center; justify-content: center; }
.trust-item { display: flex; align-items: center; gap: var(--s2); font-weight: 600; color: var(--brand-blue-dark); }
.trust-item svg { flex: none; }

/* Services */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s5); }
.svc-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: var(--s6); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--e2); border-color: var(--brand-blue-tint); }
.svc-icon {
  width: 56px; height: 56px; border-radius: var(--r-md); margin-bottom: var(--s4);
  background: var(--brand-blue-tint); color: var(--brand-blue);
  display: grid; place-items: center;
}
.svc-card h3 { font-size: var(--t-h3); margin-bottom: var(--s2); }
.svc-card p { color: var(--muted); font-size: var(--t-sm); }
.svc-price { margin-top: var(--s4); font-weight: 700; color: var(--brand-blue); }
.svc-price small { color: var(--faint); font-weight: 500; }

/* Pricing */
.price-tabs { display: inline-flex; gap: var(--s1); padding: var(--s1); background: var(--bg); border-radius: var(--r-pill); margin-bottom: var(--s6); }
.price-tab {
  border: 0; background: transparent; cursor: pointer;
  padding: var(--s2) var(--s5); border-radius: var(--r-pill);
  font-family: var(--font-body); font-weight: 700; color: var(--muted);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.price-tab[aria-selected="true"] { background: var(--brand-blue); color: var(--on-blue); box-shadow: var(--e1); }
.price-tab:focus-visible { outline: 3px solid var(--brand-blue); outline-offset: 2px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-lg); }
.price-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.price-table caption { text-align: left; padding: var(--s4) var(--s5); font-weight: 700; color: var(--brand-blue); background: var(--brand-blue-tint); }
.price-table th, .price-table td { padding: var(--s4) var(--s5); text-align: right; border-top: 1px solid var(--border); }
.price-table th:first-child, .price-table td:first-child { text-align: left; }
.price-table thead th { font-size: var(--t-sm); color: var(--faint); text-transform: uppercase; letter-spacing: 1px; background: var(--surface); }
.price-table tbody tr:hover { background: var(--brand-blue-tint); }
.price-table td.svc-name { font-weight: 600; color: var(--ink); }
.price-table td .stars { color: var(--brand-gold); letter-spacing: 1px; font-size: var(--t-sm); }
.price-note { margin-top: var(--s3); font-size: var(--t-sm); color: var(--faint); }

/* Feature rows */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s8); align-items: center; }
.feature-row + .feature-row { margin-top: var(--s9); }
.feature-row.reverse .feature-media { order: 2; }
.feature-media {
  border-radius: var(--r-lg); background: var(--brand-blue-tint); aspect-ratio: 4/3;
  display: grid; place-items: center; overflow: hidden;
}
.feature-media img { width: 70%; }
.feature-body h3 { font-size: var(--t-h2); margin-block: var(--s3) var(--s4); }
.feature-body p { color: var(--muted); font-size: var(--t-lead); }
.feature-list { list-style: none; padding: 0; margin: var(--s5) 0 0; display: grid; gap: var(--s3); }
.feature-list li { display: flex; gap: var(--s3); align-items: flex-start; }
.feature-list svg { flex: none; color: var(--success-fg); margin-top: 3px; }

/* Location / contact */
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: var(--s7); }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s7); }
.contact-list { display: grid; gap: var(--s5); margin-top: var(--s5); }
.contact-item { display: flex; gap: var(--s4); align-items: flex-start; }
.contact-item .ico { flex: none; width: 44px; height: 44px; border-radius: var(--r-md); background: var(--brand-blue-tint); color: var(--brand-blue); display: grid; place-items: center; }
.contact-item b { display: block; }
.contact-item span { color: var(--muted); font-size: var(--t-sm); }

/* Final CTA */
.cta-band {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%);
  color: var(--on-blue); border-radius: var(--r-lg); padding: var(--s9) var(--s7);
  text-align: center; position: relative; overflow: hidden;
}
.cta-band h2 { font-size: var(--t-h1); margin-bottom: var(--s3); }
.cta-band p { color: var(--on-blue-soft); margin-bottom: var(--s6); font-size: var(--t-lead); }

/* Footer */
.footer { background: var(--ink); color: var(--on-blue-soft); padding-block: var(--s8) var(--s6); }
.footer .container { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s7); }
.footer h4 { color: var(--on-blue); font-size: var(--t-sm); text-transform: uppercase; letter-spacing: 1px; margin-bottom: var(--s4); }
.footer a { color: var(--on-blue-soft); display: block; padding-block: var(--s1); transition: color var(--dur) var(--ease); }
.footer a:hover { color: var(--brand-gold); }
.footer-logo { height: 30px; margin-bottom: var(--s4); filter: brightness(0) invert(1); }
.footer-legal { margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--hairline-dark); font-size: var(--t-sm); text-align: center; color: var(--faint); }

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; padding-block: var(--s8); }
  .hero-lead { margin-inline: auto; }
  .hero-actions, .hero-stats { justify-content: center; }
  .hero-visual { order: -1; width: min(260px, 70%); }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-row, .feature-row.reverse .feature-media { grid-template-columns: 1fr; order: 0; }
  .feature-row .feature-media { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer .container { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--surface); padding: var(--s5); gap: var(--s4); border-bottom: 1px solid var(--border); box-shadow: var(--e2);
  }
  .section { padding-block: var(--s8); }
  .svc-grid { grid-template-columns: 1fr; }
  .footer .container { grid-template-columns: 1fr; }
  .hero-stats { gap: var(--s5); }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .svc-card:hover { transform: none; }
}
