/* ===== Base & Variables ===== */
:root {
  --navy: #14304d;
  --navy-dark: #0e2238;
  --accent: #c8843a;
  --accent-dark: #b0712d;
  --ink: #1f2933;
  --muted: #5a6b7b;
  --line: #e2e8ef;
  --bg-alt: #f4f7fa;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(20, 48, 77, 0.08);
  --max: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  line-height: 1.6;
  background: var(--white);
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 { line-height: 1.2; color: var(--navy); font-weight: 700; }

a { color: inherit; text-decoration: none; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-lg { padding: 15px 32px; font-size: 1.05rem; }
.btn-block { display: block; width: 100%; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo { display: inline-flex; flex-direction: column; justify-content: center; font-size: 1.1rem; font-weight: 700; color: var(--navy); line-height: 1.15; }
.logo-name { display: block; }
.logo-tagline { display: block; font-size: 0.7rem; font-weight: 500; letter-spacing: .01em; color: #5b6b7a; margin-top: 2px; white-space: nowrap; }
@media (max-width: 430px) { .logo-tagline { display: none; } }
.logo-mark { color: var(--accent); }
.main-nav { display: flex; align-items: center; gap: 18px; }
.main-nav a { color: var(--muted); font-weight: 500; }
.main-nav a:hover { color: var(--navy); }
.nav-cta {
  background: var(--navy);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: var(--radius);
}
.nav-cta:hover { background: var(--navy-dark); }

/* Hamburger toggle — hidden on desktop, shown on mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  margin: 0 auto;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle.is-active .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-active .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  /* Layer 1: dark overlay (keeps text readable). Layer 2: optional photo (--hero-img).
     Layer 3: solid navy gradient fallback shown when no image is set or it 404s. */
  background:
    linear-gradient(135deg, rgba(20, 48, 77, 0.82) 0%, rgba(13, 33, 52, 0.90) 100%),
    var(--hero-img, none) center / cover no-repeat,
    var(--hero-ph, none) center / cover no-repeat,
    linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  background-color: var(--navy-dark);
  color: #fff;
  padding: 90px 0 96px;
  position: relative;
}
.hero-inner { max-width: 760px; }
.hero h1 { color: #fff; font-size: 2.9rem; margin-bottom: 20px; }
.hero-sub { font-size: 1.2rem; color: #d4dde6; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  font-weight: 500;
  color: #e7eef4;
}

/* ===== Sections ===== */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head h2 { font-size: 2.1rem; margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

/* ===== Services ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 24px;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(20,48,77,.13); }
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: #eef3f8;
  color: var(--accent);
}
.card-icon svg { width: 28px; height: 28px; }
.card:hover .card-icon { background: #fbf1e4; }
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .97rem; }
.card-cta {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent-dark);
  font-weight: 600;
  font-size: .92rem;
}
.card-cta:hover { text-decoration: underline; }

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-copy h2 { font-size: 2rem; margin-bottom: 18px; }
.about-copy p { color: var(--muted); font-size: 1.05rem; margin-bottom: 16px; }
.about-points { list-style: none; display: grid; gap: 14px; }
.about-points li {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow);
}
.about-points strong { display: block; color: var(--navy); font-size: 1.05rem; margin-bottom: 2px; }
.about-points span { color: var(--muted); font-size: .92rem; }

/* ===== Areas We Serve ===== */
.areas-block { text-align: center; margin-bottom: 28px; }
.areas-subhead {
  font-size: 1.05rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 16px;
}
.areas-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  max-width: 820px;
  margin: 0 auto;
}
.areas-list li {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 600;
  color: var(--navy);
}
.areas-list-cities li {
  background: #fff;
  font-weight: 500;
  color: var(--muted);
}
.areas-note {
  text-align: center;
  color: var(--muted);
  font-size: .95rem;
  margin-top: 24px;
}

/* ===== Why Us ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.feature {
  background: #fff;
  padding: 26px;
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
  box-shadow: var(--shadow);
}
.feature h3 { font-size: 1.15rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: .97rem; }

/* ===== Quote ===== */
.section-quote {
  background: linear-gradient(135deg, #11293f 0%, #1d4368 100%);
  color: #fff;
  padding: 84px 0;
}
.quote-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.quote-copy h2, .quote-copy h1 { color: #fff; font-size: 2.1rem; margin-bottom: 16px; }
.quote-copy p { color: #d4dde6; font-size: 1.1rem; margin-bottom: 24px; }
.quote-points { list-style: none; display: grid; gap: 12px; font-weight: 500; color: #eaf1f7; }

.quote-form {
  background: #fff;
  border-radius: 14px;
  padding: 32px;
  box-shadow: 0 18px 50px rgba(0,0,0,.25);
}
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  color: var(--ink);
  background: #fbfcfe;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200,132,58,.18);
}
.field textarea { resize: vertical; }
.form-note { text-align: center; font-size: .85rem; color: var(--muted); margin-top: 14px; }

/* ===== Success message ===== */
.quote-success {
  background: #fff;
  border-radius: 14px;
  padding: 36px 32px;
  text-align: center;
  box-shadow: 0 18px 50px rgba(0,0,0,.25);
}
.quote-success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #e7f5ec;
  color: #1f9d57;
  font-size: 1.8rem;
  line-height: 56px;
  font-weight: 700;
}
.quote-success h3 { font-size: 1.35rem; margin-bottom: 12px; }
.quote-success p { color: var(--muted); margin-bottom: 22px; }
.btn-dark { color: var(--navy); border-color: var(--navy); }
.btn-dark:hover { background: var(--navy); color: #fff; }

/* ===== Info tags ===== */

.muted-note { font-size: .8rem; font-style: italic; color: #93a3b3; margin-top: 6px; }
.footer-col a { text-decoration: underline; text-underline-offset: 2px; }

/* ===== Footer ===== */
.site-footer { background: var(--navy-dark); color: #c4d0dc; }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding: 56px 24px;
}
.logo-light { color: #fff; display: inline-block; margin-bottom: 14px; }
.footer-col h4 { color: #fff; margin-bottom: 14px; font-size: 1.05rem; }
.footer-col p { margin-bottom: 8px; font-size: .95rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; }
.footer-bottom p { text-align: center; font-size: .88rem; color: #93a3b3; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .quote-inner { grid-template-columns: 1fr; gap: 36px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
/* Nav collapses to hamburger up to 1023px (long brand + nav can't fit until desktop) */
@media (max-width: 1023px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(20,48,77,.10);
    padding: 8px 0;
    display: none;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a {
    padding: 14px 24px;
    border-bottom: 1px solid var(--line);
  }
  .main-nav a:last-child { border-bottom: none; }
  .nav-cta {
    margin: 10px 24px 6px;
    text-align: center;
    border-radius: var(--radius);
  }
}
@media (max-width: 768px) {
  .hero { padding: 64px 0 70px; }
  .hero h1 { font-size: 2.1rem; }
  .hero-sub { font-size: 1.05rem; }
  .section { padding: 60px 0; }
  .services-grid,
  .features-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* =====================================================================
   MULTI-PAGE PROTOTYPE COMPONENTS (Tier 2)
   ===================================================================== */

/* (legacy) */


/* Breadcrumb */
.breadcrumb { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 0;
  font-size: .85rem;
  color: var(--muted);
}
.breadcrumb li::after { content: "›"; margin-left: 6px; color: #b6c2cf; }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { color: var(--accent-dark); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb li[aria-current] { color: var(--navy); font-weight: 600; }

/* Page hero (interior pages — shorter than home hero) */
.page-hero {
  /* Layered: overlay + optional real photo (--hero-img) + scene SVG fallback
     (--hero-ph) + solid navy fallback. Real photo covers the SVG when present. */
  background:
    linear-gradient(135deg, rgba(20, 48, 77, 0.82) 0%, rgba(13, 33, 52, 0.90) 100%),
    var(--hero-img, none) center / cover no-repeat,
    var(--hero-ph, none) center / cover no-repeat,
    linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  background-color: var(--navy-dark);
  color: #fff;
  padding: 56px 0;
}

/* Per-page hero bindings. --hero-img = real photo target (added later);
   --hero-ph = self-made scene SVG shown until a real photo is dropped in. */
.hero-home        { --hero-ph: url('/assets/images/hero/survey-crew-field.svg'); }
.hero-boundary    { --hero-ph: url('/assets/images/service-pages/total-station-boundary-survey.svg'); }
.hero-topographic { --hero-ph: url('/assets/images/service-pages/topographic-survey-equipment.svg'); }
.hero-alta        { --hero-ph: url('/assets/images/service-pages/alta-survey-commercial-property.svg'); }
.hero-construction{ --hero-ph: url('/assets/images/service-pages/construction-staking-site.svg'); }
.hero-elevation   { --hero-ph: url('/assets/images/service-pages/elevation-certificate-flood-datum.svg'); }
.hero-adu         { --hero-ph: url('/assets/images/service-pages/adu-setback-survey-diagram.svg'); }
.hero-la-county   { --hero-ph: url('/assets/images/areas/los-angeles-county-aerial.svg'); }
.hero-city-area   { --hero-ph: url('/assets/images/areas/socal-survey-service-area.svg'); }

/* Content image slot — semantic figure, no <img> so a missing file never breaks.
   --slot-img (real photo) covers --slot-ph (scene SVG fallback) when present.
   aspect-ratio reserves space up-front, so adding a photo causes no layout shift. */
.media-slot {
  margin: 0 0 8px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background-color: #14304d;
  background-image: var(--slot-img, none), var(--slot-ph, url('/assets/images/_fallback.svg'));
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
}
.media-figure { margin: 0 0 28px; }
.media-figure figcaption {
  font-size: 0.86rem;
  color: var(--muted);
  margin-top: 6px;
}
@media (max-width: 600px) {
  .media-slot { aspect-ratio: 4 / 3; }
}
.page-hero h1 { color: #fff; font-size: 2.3rem; max-width: 820px; margin-bottom: 14px; }
.page-hero p { color: #d4dde6; font-size: 1.12rem; max-width: 720px; }
.page-hero .hero-actions { margin-top: 26px; }

/* Trust strip */
.trust-strip { background: var(--navy-dark); }
.trust-strip ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 36px;
  padding: 16px 0;
}
.trust-strip li { color: #e7eef4; font-weight: 600; font-size: .92rem; }
.trust-strip li span { color: var(--accent); margin-right: 6px; }

/* Article / prose content */
.content-section { padding: 56px 0; }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.6rem; margin: 36px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.2rem; margin: 24px 0 8px; }
.prose p { color: var(--ink); margin-bottom: 14px; }
.prose ul.checklist { list-style: none; display: grid; gap: 10px; margin: 14px 0 20px; }
.prose ul.checklist li { padding-left: 28px; position: relative; color: var(--ink); }
.prose ul.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 700;
}

/* Numbered process steps */
.process-steps { counter-reset: step; display: grid; gap: 16px; margin: 16px 0 8px; }
.process-steps li {
  list-style: none; position: relative; padding: 16px 18px 16px 60px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.process-steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 16px; top: 16px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: .95rem;
}
.process-steps strong { display: block; color: var(--navy); margin-bottom: 2px; }
.process-steps span { color: var(--muted); font-size: .95rem; }

/* FAQ (native details/summary) */
.faq { display: grid; gap: 12px; max-width: 760px; }
.faq details {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 20px;
  font-weight: 600; color: var(--navy); position: relative; padding-right: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 14px;
  font-size: 1.4rem; color: var(--accent); transition: transform .2s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 20px 18px; color: var(--muted); margin: 0; }

/* Related services / link grid */
.related-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.related-card {
  display: block; padding: 18px 20px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease;
}
.related-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(20,48,77,.13); }
.related-card strong { display: block; color: var(--navy); margin-bottom: 4px; }
.related-card span { color: var(--muted); font-size: .9rem; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, #11293f 0%, #1d4368 100%);
  color: #fff; text-align: center; padding: 56px 0;
}
.cta-band h2 { color: #fff; font-size: 1.9rem; margin-bottom: 12px; }
.cta-band p { color: #d4dde6; max-width: 600px; margin: 0 auto 24px; font-size: 1.08rem; }
.cta-band .hero-actions { justify-content: center; }

/* County hub: city link list */
.city-links {
  list-style: none; display: grid;
  grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0;
}
.city-links a, .city-links span {
  display: block; padding: 12px 16px; background: var(--bg-alt);
  border: 1px solid var(--line); border-radius: var(--radius);
  font-weight: 600; color: var(--navy);
}
.city-links a:hover { border-color: var(--accent); }
.city-links span { color: var(--muted); font-weight: 500; }
.city-links .has-page::after { content: " →"; color: var(--accent); }

/* Mobile sticky call/quote bar */
.mobile-cta-bar { display: none; }

@media (max-width: 768px) {
  .mobile-cta-bar {
    display: grid; grid-template-columns: 1.7fr 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    box-shadow: 0 -4px 16px rgba(0,0,0,.16);
    background: var(--navy);
    padding-bottom: env(safe-area-inset-bottom); /* iPhone home-indicator clearance */
  }
  .mobile-cta-bar a {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 56px; padding: 12px 10px; text-align: center;
    font-weight: 700; font-size: 1.02rem; line-height: 1.1; color: #fff;
  }
  .mobile-cta-bar .mc-call { background: var(--call); }            /* call = dominant green */
  .mobile-cta-bar .mc-quote { background: var(--navy); border-left: 1px solid rgba(255,255,255,.18); }
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); } /* clear the fixed bar */
  .page-hero h1 { font-size: 1.8rem; }
  .related-grid { grid-template-columns: 1fr; }
  .city-links { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .city-links { grid-template-columns: repeat(2, 1fr); }
}

/* ===================== Call-first redesign (mobile-first) ===================== */
:root { --call: #15803d; --call-dark: #11652f; }

.btn-call { background: var(--call); color: #fff; border-color: var(--call); }
.btn-call:hover { background: var(--call-dark); border-color: var(--call-dark); }

/* Header call entry points: header-call = mobile, nav-phone/nav-call = desktop */
.header-call { display: none; }
.nav-phone, .nav-call { display: none; }

/* Desktop (>=1024): full nav with phone + Call Now + Get a Quote */
.main-nav a { white-space: nowrap; }
@media (min-width: 1024px) {
  .main-nav a { font-size: .94rem; }
  /* Desktop call button carries the number, so a separate phone item isn't needed */
  .nav-call { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; white-space: nowrap; }
}

/* Hero conversion note + secondary link */
.hero-callnote { color: #e7eef4; font-size: 1rem; line-height: 1.55; max-width: 640px; margin: 0 0 14px; }
.hero-secondary { margin: 0 0 8px; }
.hero-secondary a { color: #d4dde6; text-decoration: underline; font-weight: 600; }

@media (max-width: 1023px) {
  .header-inner { gap: 8px; }
  .logo { margin-right: auto; }                 /* keep call + burger grouped right */
  .logo-name { font-size: 1rem; }               /* uncrowd the mobile header */
  .header-call {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 13px; min-height: 44px; font-size: .92rem;
    white-space: nowrap; order: 2;
  }
  .nav-toggle { order: 3; }
  .hero-actions .btn { min-height: 50px; display: flex; align-items: center; justify-content: center; }
  .hero-callnote { font-size: .98rem; }
}
@media (max-width: 380px) {
  .header-call { padding: 8px 10px; font-size: .85rem; }
  .logo-name { font-size: .9rem; }
}

/* Go-live: call CTA panel replacing the inert quote form */
.quote-cta-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow); text-align: center; align-self: start; }
.quote-cta-panel .form-note { margin-top: 14px; }

/* Quick-wins: mobile tap targets + form helpers */
.field-opt { font-weight: 400; color: var(--muted); font-size: .85em; }
.quote-copy .btn-call { margin-top: 8px; }
@media (max-width: 768px) {
  .card-cta { display: inline-flex; align-items: center; min-height: 44px; }
  .related-card { min-height: 56px; }
  .city-links a { min-height: 44px; display: flex; align-items: center; justify-content: center; }
  .quote-copy .btn-call { width: 100%; }
}

/* Quote form error state (success styles already defined) */
.quote-error { margin-top: 16px; padding: 14px 18px; border-radius: var(--radius); background: #fdecec; border: 1px solid #f3c5c5; color: #8a1c1c; }
.quote-error a { color: #8a1c1c; font-weight: 700; text-decoration: underline; }

/* ===================== Phase 1: design system (display font + contour motif) ===================== */
@font-face { font-family:'Space Grotesk'; font-style:normal; font-weight:500; font-display:swap; src:url('/assets/fonts/space-grotesk-500.woff2') format('woff2'); }
@font-face { font-family:'Space Grotesk'; font-style:normal; font-weight:700; font-display:swap; src:url('/assets/fonts/space-grotesk-700.woff2') format('woff2'); }
:root { --font-display: 'Space Grotesk', 'Segoe UI', system-ui, -apple-system, sans-serif; }
h1, h2, h3, h4, .logo-name, .section-head h2 { font-family: var(--font-display); letter-spacing: -0.01em; }

/* Topographic contour motif on dark sections */
.hero, .section-quote, .cta-band { position: relative; }
.hero::before, .section-quote::before, .cta-band::before {
  content:""; position:absolute; inset:0; pointer-events:none;
  background: url('/assets/contour.svg') center / cover no-repeat; opacity:.4;
}
.hero-inner, .section-quote .container, .cta-band .container { position: relative; z-index: 1; }

/* Homepage light credential strip (contrasts with dark hero above) */
.trust-strip-light { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.trust-strip-light li { color: var(--navy); }
.trust-strip-light li span { color: var(--call); }

/* Reviews stub (no fake reviews) */
.reviews-stub { max-width: 720px; margin: 0 auto; text-align: center; background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:32px 28px; box-shadow:var(--shadow); }
.reviews-stub p { color: var(--muted); font-size:1.05rem; margin-bottom:18px; }

/* Licensed Surveyor Oversight panel */
.oversight-panel { max-width: 760px; margin: 0 auto; text-align: center; background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:34px 30px; box-shadow:var(--shadow); }
.oversight-badge { display:inline-block; color: var(--accent); font-size:1.4rem; margin-bottom:6px; }
.oversight-panel h2 { font-size:1.5rem; margin-bottom:10px; }
.oversight-panel p { color: var(--muted); font-size:1.05rem; line-height:1.6; }

/* ===================== Phase 2: interior template + county map ===================== */
.page-hero { position: relative; }
.page-hero::before { content:""; position:absolute; inset:0; pointer-events:none; background:url('/assets/contour.svg') center / cover no-repeat; opacity:.4; }
.page-hero .container { position: relative; z-index: 1; }
.socal-map { max-width: 580px; margin: 6px auto 34px; }
.socal-map img { width:100%; height:auto; display:block; }

/* Phase 2: services de-grid (themed categories) */
.services-degrid { display: grid; gap: 46px; }
.svc-cat-title { font-family: var(--font-display); font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-dark); margin: 0 0 18px; padding-bottom: 8px; border-bottom: 2px solid var(--line); }
.svc-cat .services-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
