/* ==========================================================================
   LARRYMCCOY CO — Design System
   Palette: deep navy + gold, "Bay Street" premium register
   ========================================================================== */

:root {
  /* Brand palette */
  --navy-950: #060f22;
  --navy-900: #0b1f3a;
  --navy-800: #12294d;
  --navy-700: #1b3763;
  --navy-600: #294a7f;
  --navy-100: #e8edf5;
  --navy-050: #f5f7fb;

  /* Coral tokens — sampled directly from the new hero photo's terracotta
     rooftops along the lagoon shoreline (~#f07a5b), so the accent reads as
     pulled from the image itself rather than a generic "brand orange". */
  --gold-900: #6e2c14;
  --gold-800: #8f3a1d;
  --gold-700: #c85a2e;
  --gold-600: #e86a3f;
  --gold-500: #f0894f;
  --gold-400: #f9ad81;
  --gold-100: #fff0e6;

  /* Brand-mark amber — sampled directly from the approved logo artwork, kept
     distinct from the --gold-* accent above (sampled from the hero
     photography) so the logo mark and company wordmark always reproduce in
     their true brand color, independent of any future photo-driven palette
     change. amber-700 is a darkened, WCAG-AA-verified tint for small text
     on white (4.58:1); amber-400 is a lightened tint for use on navy
     (9.72:1) where the base amber-600 alone would read too dim. */
  --amber-700: #90712c;
  --amber-600: #cea240;
  --amber-400: #e3c37c;

  /* Lagoon teal — the second accent, sampled from the hero photo's open
     water and lagoon (~#327d9e / #4686a4), so the two-tone system reads as
     sky/terracotta and water/teal — the two dominant tones of the photo. */
  --teal-800: #0d3a4d;
  --teal-700: #175a75;
  --teal-600: #227999;
  --teal-500: #4696b7;
  --teal-100: #dcf0f6;

  --slate-700: #3d4859;
  --slate-500: #6b7688;
  --slate-400: #9aa5b3;
  --slate-300: #a7b0bd;
  --slate-200: #d7dce3;
  --slate-100: #eef1f5;

  --white: #ffffff;
  --ink: #101826;

  --success: #1e7d4d;
  --error: #b3261e;

  /* Typography */
  --font-serif: Georgia, "Times New Roman", Times, serif;
  --font-sans: Calibri, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Spacing (8pt grid) */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 40px;
  --sp-6: 48px;
  --sp-8: 64px;
  --sp-10: 80px;
  --sp-12: 96px;
  --sp-16: 128px;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(11, 31, 58, 0.08);
  --shadow-md: 0 8px 24px rgba(11, 31, 58, 0.10);
  --shadow-lg: 0 24px 64px rgba(11, 31, 58, 0.16);

  --container: 1200px;
  --transition: 200ms ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--navy-900);
  line-height: 1.2;
  margin: 0 0 var(--sp-2);
  font-weight: 700;
}
h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 var(--sp-2); color: var(--slate-700); }
.lede { font-size: 1.15rem; color: var(--slate-700); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ---------- Skip link / focus ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy-900);
  color: var(--white);
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }
:focus-visible {
  outline: 3px solid var(--gold-600);
  outline-offset: 2px;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-3);
}
.section { padding: var(--sp-10) 0; }
.section-tight { padding: var(--sp-6) 0; }
.section-navy { background: var(--navy-900); color: var(--white); }
.section-navy h2, .section-navy h3, .section-navy h4 { color: var(--white); }
.section-navy p { color: var(--slate-200); }
.section-tint { background: var(--navy-050); }
.grid { display: grid; gap: var(--sp-3); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: var(--sp-8) 0; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-800);
  margin-bottom: var(--sp-2);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--gold-600);
  display: inline-block;
}
.section-navy .eyebrow { color: var(--gold-400); }

.section-head { max-width: 720px; margin-bottom: var(--sp-5); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-700));
  color: var(--navy-950);
  box-shadow: 0 6px 18px rgba(245,158,11,0.28);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--gold-400), var(--gold-600)); box-shadow: 0 10px 26px rgba(245,158,11,0.4); }
.btn-sm { padding: 10px 20px; font-size: 0.84rem; border-radius: 8px; }

/* "Water" hover/swipe effect — a light ripple that tracks the pointer as it
   moves across the button, plus a soft ring that pulses outward from where
   the pointer entered, evoking water rather than a generic shine sweep. */
.btn-water {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn-water::before {
  content: "";
  position: absolute;
  inset: -25%;
  background: radial-gradient(circle 64px at var(--wx, 50%) var(--wy, 50%), rgba(255,255,255,0.6), rgba(219,240,246,0.32) 45%, transparent 72%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 0;
}
.btn-water::after {
  content: "";
  position: absolute;
  left: var(--wx, 50%);
  top: var(--wy, 50%);
  width: 6px;
  height: 6px;
  border: 1px solid rgba(255,255,255,0.85);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}
.btn-water:hover::before, .btn-water:focus-visible::before { opacity: 1; }
.btn-water.is-rippling::after { animation: btn-water-ripple 0.65s ease-out; }
.btn-water > span { position: relative; z-index: 1; }
@keyframes btn-water-ripple {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 0.9; }
  100% { transform: translate(-50%, -50%) scale(16); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .btn-water::before { transition: none; }
  .btn-water.is-rippling::after { animation: none; }
}
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-outline-navy { background: transparent; color: var(--navy-900); border-color: var(--navy-700); }
.btn-outline-navy:hover { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); }
.btn-navy { background: var(--navy-900); color: var(--white); }
.btn-navy:hover { background: var(--navy-700); }
.btn-ghost { background: transparent; color: var(--navy-900); border-color: var(--slate-200); }
.btn-ghost:hover { border-color: var(--navy-900); }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: var(--sp-2); flex-wrap: wrap; }

/* ---------- Header / Nav ----------
   Clean white bar (rather than sitting translucent over the hero photo) so
   the header reads as a stable navigation surface across every page,
   including the light interior sections — with a quick-search field for
   jumping straight to a service, division or page. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--navy-100);
  box-shadow: var(--shadow-sm);
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 3px;
  background: linear-gradient(90deg, var(--amber-600), var(--teal-500), var(--amber-600));
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: 16px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy-900);
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.32rem;
  letter-spacing: -0.015em;
  flex-shrink: 0;
}
.brand .mark {
  width: 44px;
  height: 39px;
  flex-shrink: 0;
  display: block;
}
.brand .sub { display: block; font-family: var(--font-sans); font-size: 0.6rem; letter-spacing: 0.16em; color: var(--amber-700); font-weight: 700; text-transform: uppercase; margin-top: 3px; }
.site-footer .brand { color: var(--white); }
.site-footer .brand .sub { color: var(--amber-400); }

.site-search {
  display: flex;
  align-items: center;
  flex: 1 1 360px;
  max-width: 460px;
  margin: 0 auto;
  background: var(--navy-050);
  border: 1px solid var(--navy-100);
  border-radius: 999px;
  padding: 4px 4px 4px 20px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.site-search:focus-within { border-color: var(--teal-600); box-shadow: 0 0 0 3px rgba(31,110,224,0.18); }
.site-search input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--navy-900);
  outline: none;
}
.site-search input::placeholder { color: var(--slate-400); }
.site-search button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-600), var(--teal-800));
  color: var(--white);
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}
.site-search button:hover { transform: scale(1.06); box-shadow: 0 4px 14px rgba(31,110,224,0.4); }
@media (max-width: 1180px) {
  .site-search { display: none; }
}

.nav-primary { display: flex; align-items: center; gap: var(--sp-4); flex-shrink: 0; }
.nav-links { display: flex; gap: var(--sp-3); align-items: center; }
.nav-links a {
  color: var(--slate-700);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--navy-900); border-color: var(--amber-600); }
.nav-cta { display: flex; align-items: center; gap: var(--sp-2); }
.nav-cta .btn-outline { border-color: var(--navy-700); color: var(--navy-900); }
.nav-cta .btn-outline:hover { background: var(--navy-900); color: var(--white); }
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--navy-100);
  color: var(--navy-900);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
}
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn-outline { display: none; }
  .site-header.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--white);
    padding: var(--sp-2) var(--sp-3) var(--sp-3);
    border-bottom: 1px solid var(--navy-100);
    box-shadow: var(--shadow-md);
  }
  .site-header.nav-open .nav-links a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--navy-100); }
}

/* ---------- Hero ----------
   Full-bleed photo hero: a navy scrim (matching the site's own navy tokens,
   sampled from the photo's own sky/water tones) sits over the image so the
   photograph reads as part of the brand system rather than a pasted-on
   banner, and every page uses the same photo for a consistent identity.
   The home hero is a shorter, centered banner (title + subtitle) sitting
   directly under the white nav, with the calls-to-action and key numbers
   presented just below it rather than crowding the photo band itself. */
.hero {
  position: relative;
  /* A soft vignette sits only behind the text block so the sunset photo's
     own color carries the banner — no synthetic tint layered over it —
     while a light top-to-bottom gradient keeps the lower edge (next to the
     white strip below) grounded in the brand navy. */
  background-image:
    radial-gradient(ellipse 640px 300px at 50% 46%, rgba(6,15,34,0.55), transparent 72%),
    linear-gradient(180deg, rgba(6,15,34,0.08) 0%, rgba(6,15,34,0.14) 45%, rgba(6,15,34,0.40) 100%),
    url("/img/hero-photo.jpg");
  background-size: cover;
  background-position: center 40%;
  color: var(--white);
  padding: var(--sp-8) 0;
  overflow: hidden;
  text-align: center;
}
.hero-inner { position: relative; max-width: 700px; margin: 0 auto; }
.hero-inner .eyebrow { justify-content: center; }
.hero .eyebrow, .hero-page .eyebrow { color: var(--gold-400); text-shadow: 0 2px 6px rgba(6,15,34,0.85); }
.hero h1, .hero h2, .hero h3 { color: var(--white); text-shadow: 0 2px 6px rgba(6,15,34,0.85), 0 6px 26px rgba(6,15,34,0.6); }
.hero h1 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.hero .lede { text-shadow: 0 2px 6px rgba(6,15,34,0.9), 0 4px 18px rgba(6,15,34,0.7); }
@media (max-width: 640px) {
  .hero { padding: var(--sp-6) 0; background-position: center 30%; }
}
.hero-cta-strip {
  background: var(--navy-050);
  border-bottom: 1px solid var(--navy-100);
  padding: var(--sp-4) 0;
}
.hero-cta-strip .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-3);
}
.hero-cta-strip .stat-row { margin-top: 0; }
.hero-cta-strip .stat-row .stat b {
  color: var(--gold-800);
  background: linear-gradient(135deg, var(--gold-700), var(--teal-700));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-cta-strip .stat-row .stat span { color: var(--slate-700); }
@media (max-width: 720px) {
  .hero-cta-strip .container { justify-content: center; text-align: center; }
}
.hero-page {
  position: relative;
  /* The photo itself lives on this element as a plain background-image so a
     page can override it with a simple inline style (see hero_page() in
     build.py) — pages that don't fall back to the shared sunset skyline.
     The vignette (radial + linear gradient) that keeps the text legible
     lives separately on ::before below: a CSS custom property referencing
     url(...) resolves relative to whichever stylesheet *consumes* it via
     var(), not the page that sets it, so keeping the gradients in main.css
     and the photo as a directly-set property avoids that trap. */
  background-image: url("/img/hero-brand-pattern.svg");
  background-size: cover;
  background-position: center 30%;
  color: var(--white);
  padding: var(--sp-10) 0 var(--sp-8);
  overflow: hidden;
}
.hero-page::before {
  content: "";
  position: absolute;
  inset: 0;
  /* Same approach as the homepage hero: a vignette sized to the
     left-aligned text column (not the whole banner) so the photo's own
     color carries the rest of the frame. */
  background-image:
    radial-gradient(ellipse 620px 420px at 24% 48%, rgba(6,15,34,0.62), transparent 75%),
    linear-gradient(100deg, rgba(6,15,34,0.30) 0%, rgba(6,15,34,0.18) 45%, rgba(6,15,34,0.10) 100%);
  pointer-events: none;
}
.hero-page .container { position: relative; z-index: 1; }
.hero-page h1 { color: var(--white); text-shadow: 0 2px 6px rgba(6,15,34,0.85), 0 6px 24px rgba(6,15,34,0.65); }
.hero-page .lede { text-shadow: 0 2px 6px rgba(6,15,34,0.9), 0 4px 16px rgba(6,15,34,0.7); }
.breadcrumb { font-size: 0.85rem; color: var(--slate-300); margin-bottom: var(--sp-2); text-shadow: 0 2px 6px rgba(6,15,34,0.85); }
.breadcrumb a { color: var(--gold-400); }
.stat-row { display: flex; gap: var(--sp-5); flex-wrap: wrap; margin-top: var(--sp-5); }
.stat-row .stat b { display: block; font-family: var(--font-serif); font-size: 1.6rem; color: var(--gold-400); }
.stat-row .stat span { font-size: 0.85rem; color: var(--slate-300); }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: var(--sp-4);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  height: 100%;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--gold-400); }
.card .icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  background: var(--navy-050);
  color: var(--navy-800);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--sp-2);
  border: 1px solid var(--slate-200);
}
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card-link { display: inline-flex; align-items: center; gap: 6px; color: var(--navy-800); font-weight: 700; font-size: 0.9rem; margin-top: var(--sp-2); }
.card-link:hover { color: var(--gold-800); }

.card-dark {
  background: var(--navy-800);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--white);
}
.card-dark h3 { color: var(--white); }
.card-dark p { color: var(--slate-200); }
.card-dark .icon { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); color: var(--gold-400); }

.divider-gold { width: 60px; height: 3px; background: var(--gold-600); border-radius: 2px; margin: var(--sp-3) 0; }

/* ---------- Division band (three services) ---------- */
.division-card {
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  color: var(--white);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.division-card h3 { color: var(--white); font-size: 1.5rem; }
.division-card p { color: rgba(255,255,255,0.82); }
.division-card .tag { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-400); font-weight: 700; margin-bottom: 10px; }
.division-card ul { margin: var(--sp-2) 0; }
.division-card li { padding-left: 22px; position: relative; margin-bottom: 8px; color: rgba(255,255,255,0.85); font-size: 0.94rem; }
.division-card li::before { content: "—"; position: absolute; left: 0; color: var(--gold-400); }
.division-card .btn { margin-top: auto; align-self: flex-start; }
.division-it { background: linear-gradient(150deg, var(--navy-900), var(--navy-700)); }
.division-auto { background: linear-gradient(150deg, #1c1f26, #33394a); }
.division-energy { background: linear-gradient(150deg, #163325, #1f4d38); }
.division-energy .tag, .division-auto .tag { color: var(--gold-400); }

/* ---------- Testimonials ---------- */
.testimonial {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-left: 3px solid var(--gold-600);
  border-radius: var(--radius-md);
  padding: var(--sp-4);
  height: 100%;
}
.testimonial p { font-style: italic; color: var(--slate-700); }
figure.testimonial { margin: 0; }
.testimonial blockquote { margin: 0; }
.testimonial-single { max-width: 780px; margin: 0 auto; }
.testimonial-single .testimonial { padding: var(--sp-5, 2.5rem) var(--sp-5, 2.5rem); }
.testimonial-single .testimonial p { font-size: 1.12rem; line-height: 1.75; }
.testimonial-single .testimonial .who { font-size: 0.98rem; }
@media (max-width: 640px) { .testimonial-single .testimonial { padding: var(--sp-4); } .testimonial-single .testimonial p { font-size: 1rem; } }
.testimonial .who { margin-top: var(--sp-2); font-style: normal; font-weight: 700; color: var(--navy-900); font-size: 0.9rem; }
.testimonial .who span { display: block; font-weight: 400; color: var(--slate-500); font-size: 0.82rem; }
.placeholder-badge {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-800);
  background: var(--gold-100);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 10px;
  font-weight: 700;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy-900), var(--navy-800));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); margin-bottom: 6px; }
.cta-band p { color: var(--slate-200); margin: 0; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: var(--sp-2); }
.field label { display: block; font-weight: 700; font-size: 0.88rem; color: var(--navy-900); margin-bottom: 6px; }
.field .req { color: var(--error); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.96rem;
  background: var(--white);
  color: var(--ink);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--navy-700);
  box-shadow: 0 0 0 3px rgba(11,31,58,0.10);
  outline: none;
}
.field textarea { resize: vertical; min-height: 120px; }
.field.error input, .field.error select, .field.error textarea { border-color: var(--error); }
.field .err-msg { color: var(--error); font-size: 0.8rem; margin-top: 4px; display: none; }
.field.error .err-msg { display: block; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.86rem; color: var(--slate-700); }
.consent input { width: auto; margin-top: 4px; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }
.form-status {
  display: none;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  margin-top: var(--sp-2);
}
.form-status.show { display: block; }
.form-status.success { background: #e8f5ee; color: var(--success); border: 1px solid #bfe3cf; }
.form-status.error { background: #fbe9e8; color: var(--error); border: 1px solid #f2c4c1; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--slate-300); padding: var(--sp-10) 0 var(--sp-4); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--sp-4); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--white); font-family: var(--font-sans); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: var(--sp-2); }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid a { color: var(--slate-300); font-size: 0.92rem; transition: color var(--transition); }
.footer-grid a:hover { color: var(--gold-400); }
.footer-brand p { color: var(--slate-300); font-size: 0.92rem; max-width: 320px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: var(--sp-6);
  padding-top: var(--sp-3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-2);
  font-size: 0.82rem;
  color: var(--slate-400);
}
.footer-bottom a { color: var(--slate-400); }
.footer-bottom a:hover { color: var(--gold-400); }
.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: var(--slate-300);
}
.social-row a:hover { border-color: var(--gold-600); color: var(--gold-400); }

/* ---------- Misc ---------- */
.badge-list { display: flex; flex-wrap: wrap; gap: 10px; }
.badge-list li {
  border: 1px solid var(--slate-200);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-800);
  background: var(--navy-050);
}
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); align-items: center; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: var(--sp-4); } }
.img-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3;
}
.img-frame img { width: 100%; height: 100%; object-fit: cover; }
/* Two-up vehicle photo gallery (e.g. the Automobile page's sourced-vehicle
   pair) — reuses .img-frame's card styling per photo, but in portrait
   (3/4) since these are phone photos rather than the site's usual 4/3
   landscape imagery. */
.vehicle-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
.vehicle-gallery .img-frame { aspect-ratio: 3/4; }
@media (max-width: 560px) { .vehicle-gallery { grid-template-columns: 1fr; } }
.check-list li { padding-left: 30px; position: relative; margin-bottom: 12px; color: var(--slate-700); }
.check-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  width: 20px; height: 20px;
  background: var(--navy-900); color: var(--gold-400);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
}
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); }
@media (max-width: 900px) { .process-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process-steps { grid-template-columns: 1fr; } }
.process-steps .step { position: relative; }
.process-steps .step .num {
  width: 40px; height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: var(--navy-900); color: var(--gold-400);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-weight: 700; font-size: 1.05rem; line-height: 1;
  margin-bottom: var(--sp-2);
}
.table-clean { width: 100%; border-collapse: collapse; }
.table-clean th, .table-clean td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--slate-200); font-size: 0.92rem; }
.table-clean th { color: var(--navy-900); font-family: var(--font-serif); }
.table-clean td { color: var(--slate-700); }

.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--navy-950); color: var(--slate-200);
  padding: var(--sp-2) var(--sp-3);
  display: none;
  align-items: center; justify-content: space-between;
  gap: var(--sp-3); flex-wrap: wrap;
  z-index: 900;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.88rem;
}
.cookie-banner.show { display: flex; }
.cookie-banner a { color: var(--gold-400); text-decoration: underline; }

.legal-content h2 { margin-top: var(--sp-5); }
.legal-content h3 { margin-top: var(--sp-3); }
.legal-content ul { list-style: disc; padding-left: 22px; margin-bottom: var(--sp-2); }
.legal-content li { margin-bottom: 6px; color: var(--slate-700); }
.legal-content p { color: var(--slate-700); }
.updated-note { color: var(--slate-500); font-size: 0.85rem; margin-bottom: var(--sp-4); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

.error-page { text-align: center; padding: var(--sp-12) 0; }
.error-page .code { font-family: var(--font-serif); font-size: 6rem; color: var(--navy-900); line-height: 1; }
