/* ==========================================================================
   Sierra West Painting Co. — redesign preview
   Look: modern Southern California. White space, ocean blues, sunlit photos.

   Design rules
   - Color: white and blue. Deep Pacific navy for text and dark bands, one
     ocean blue for actions and accents, a pale sky tint for alternate bands.
   - Grid: every band (top bar, header, sections, footer) uses the same .wrap
     container, so content edges line up on every page. Background colors and
     divider lines always run full-bleed, edge to edge.
   - Spacing: 8px scale (8 / 16 / 24 / 32 / 48 / 64 / 96).
   - Type: Plus Jakarta Sans for headings, Inter for text. One size scale.
   ========================================================================== */

:root {
  /* Color */
  --navy-950: #071d36;   /* top bar, footer */
  --navy-900: #0c2a4d;   /* headings, dark bands */
  --blue: #0b6fd8;       /* actions, links, accents (ocean blue) */
  --blue-700: #085bb3;   /* hover */
  --blue-300: #7fb8f0;   /* icons on dark */
  --blue-100: #e3f0fc;   /* soft fill */
  --tint: #f2f8fd;       /* alternate band (sky) */
  --white: #ffffff;
  --ink: #142236;        /* body text */
  --muted: #56657a;      /* secondary text */
  --line: #dbe6f2;       /* borders and dividers */
  --on-dark: #c3d3e8;    /* secondary text on navy */
  --gold: #f2b230;       /* review stars only */

  /* Semantic tokens (these switch in dark mode) */
  color-scheme: light;
  --bg: #ffffff;            /* page background */
  --surface: #ffffff;       /* cards, forms, menus */
  --heading: #0c2a4d;       /* headings and strong text */
  --band: #0c2a4d;          /* dark bands: trust strip, info card, active filter */
  --btn-navy: #0c2a4d;
  --header-bg: rgba(255, 255, 255, .96);
  --input-line: #c8d7e8;
  --invalid-bg: #fff6f5;
  --danger: #b03a2e;
  --map-filter: none;
  --btn-blue: #0b6fd8;      /* button fill (white text sits on it) */
  --btn-blue-hover: #085bb3;

  /* Type */
  --display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-h1: clamp(2.25rem, 4.8vw, 3.75rem);
  --fs-h2: clamp(1.75rem, 3.2vw, 2.5rem);
  --fs-h3: 1.25rem;
  --fs-lead: 1.125rem;
  --fs-body: 1.0625rem;
  --fs-small: .875rem;
  --fs-eyebrow: .75rem;

  /* Space (8px scale) */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px;

  /* Shape */
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 16px 40px -20px rgba(7, 29, 54, .30);
  --wrap: 1200px;
  --gutter: 24px;
  --header-h: 88px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: var(--fs-body); line-height: 1.65; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
a, button, label { -webkit-tap-highlight-color: rgba(11, 111, 216, .15); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; color: var(--heading); letter-spacing: -.02em; margin: 0 0 var(--s2); }
h1 { font-size: var(--fs-h1); line-height: 1.06; }
h2 { font-size: var(--fs-h2); line-height: 1.15; }
h3 { font-size: var(--fs-h3); line-height: 1.3; font-weight: 700; letter-spacing: -.01em; margin-bottom: var(--s1); }
p { margin: 0 0 var(--s2); }
.wrap { max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.eyebrow { display: inline-block; font-size: var(--fs-eyebrow); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: var(--s2); }
.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--muted); max-width: 62ch; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: var(--s2); top: var(--s2); z-index: 100; background: var(--surface); padding: var(--s1) var(--s2); }
.icon { width: 1.1em; height: 1.1em; flex: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 26px; border-radius: 999px; border: 2px solid transparent; font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, box-shadow .2s; white-space: nowrap; }
.btn-primary { background: var(--btn-blue); color: var(--white); box-shadow: 0 2px 6px -2px rgba(11, 111, 216, .35); }
.btn-primary:hover { background: var(--btn-blue-hover); }
.btn-navy { background: var(--btn-navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-950); }
.btn-ghost { background: transparent; color: var(--heading); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--heading); }
.btn-light { background: #ffffff; color: #0c2a4d; }
.btn-light:hover { background: #e3f0fc; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s2); }

/* ---------- Top bar + header ---------- */
.topbar { background: var(--navy-950); color: var(--on-dark); font-size: var(--fs-small); }
.topbar .wrap { display: flex; justify-content: space-between; gap: var(--s2); padding-top: var(--s1); padding-bottom: var(--s1); }
.topbar span { display: inline-flex; align-items: center; gap: var(--s1); }
.topbar .icon { color: var(--blue-300); }
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); height: var(--header-h); }
.logo { display: inline-flex; align-items: center; min-height: 48px; }
.logo img { height: 56px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > a, .nav .drop > button { display: inline-flex; align-items: center; gap: 4px; padding: 10px 12px; border: 0; border-radius: 999px; background: none; font: 600 .9375rem var(--sans); color: var(--ink); text-decoration: none; cursor: pointer; }
.nav > a:hover, .nav .drop > button:hover { background: var(--tint); }
.nav a[aria-current="page"] { color: var(--blue); }
.drop { position: relative; }
.drop-menu { position: absolute; top: 100%; left: 0; min-width: 240px; padding: var(--s1); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); display: none; }
.drop:hover .drop-menu, .drop:focus-within .drop-menu { display: block; }
.drop-menu a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: .9375rem; }
.drop-menu a:hover { background: var(--tint); color: var(--blue); }
.nav-cta { display: none !important; }
.header-cta { display: flex; align-items: center; gap: var(--s2); }
.header-phone { display: inline-flex; align-items: center; gap: var(--s1); font-weight: 700; color: var(--heading); text-decoration: none; white-space: nowrap; }
.header-phone .icon { color: var(--blue); }
.call-icon, .menu-toggle { display: none; }

/* ---------- Sections ---------- */
section { padding: var(--s7) 0; }
.alt { background: var(--tint); }
.section-head { margin-bottom: var(--s5); max-width: 760px; }
.section-head h2 { margin-bottom: var(--s2); }
.section-head .lead { margin-bottom: 0; }
.section-head.split { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s3); flex-wrap: wrap; }
.section-head.split h2 { margin-bottom: 0; }

/* ---------- Hero ---------- */
.hero { padding: 0; background: linear-gradient(180deg, var(--tint) 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--s6); align-items: center; padding-top: var(--s7); padding-bottom: var(--s7); }
.hero h1 { margin-bottom: var(--s3); }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero .lead { margin-bottom: var(--s4); }
.hero-text { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s1); margin: var(--s3) 0 0; font-size: var(--fs-small); color: var(--muted); }
.hero-text a { font-weight: 600; }
.hero-text .icon { color: var(--blue); }
.hero-badges { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); margin-top: var(--s3); padding-top: var(--s3); border-top: 1px solid var(--line); font-size: var(--fs-small); color: var(--muted); }
.hero-badges span { display: inline-flex; align-items: center; gap: var(--s1); }
.hero-badges .icon { color: var(--blue); }
.hero-media { position: relative; height: 540px; }
.hero-media img { position: absolute; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.hero-media .m1 { width: 80%; height: 84%; right: 0; top: 0; }
.hero-media .m2 { width: 50%; height: 42%; left: 0; bottom: 0; border: 6px solid var(--bg); }
.hero-card { position: absolute; right: var(--s3); bottom: var(--s3); max-width: 240px; padding: var(--s2) 20px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); font-size: var(--fs-small); line-height: 1.5; }
.hero-card strong { display: block; margin: 4px 0; font-family: var(--display); font-size: 1.0625rem; font-weight: 700; color: var(--heading); }
.stars { color: var(--gold); letter-spacing: 2px; }

/* ---------- Trust strip ---------- */
.trust { background: var(--band); color: var(--on-dark); }
.trust .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3); padding-top: var(--s4); padding-bottom: var(--s4); }
.trust div { display: flex; align-items: center; gap: 12px; font-size: .9375rem; line-height: 1.4; }
.trust strong { display: block; color: var(--white); font-size: 1rem; }
.trust .icon { width: 28px; height: 28px; color: var(--blue-300); }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
.card { display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: var(--s4); }
.card-body p { color: var(--muted); }
.card ul, .ticks { list-style: none; padding: 0; margin: 0 0 var(--s3); }
.card li { position: relative; padding-left: var(--s3); margin-bottom: var(--s1); font-size: .9375rem; color: var(--ink); }
.card li::before, .ticks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 11px; height: 6px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }
.card .more { display: inline-flex; align-items: center; min-height: 44px; margin-top: auto; font-weight: 600; text-decoration: none; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3); counter-reset: step; }
.step { padding: var(--s4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.step::before { counter-increment: step; content: "0" counter(step); display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: var(--s3); border-radius: 50%; background: var(--blue-100); color: var(--blue); font: 800 .9375rem/1 var(--display); }
.step p { margin: 0; font-size: .9375rem; color: var(--muted); }

/* ---------- Work grid + gallery ---------- */
.work-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 224px; gap: var(--s2); }
.work-grid a { display: block; overflow: hidden; border-radius: var(--radius); }
.work-grid a:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.work-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.work-grid a:hover img { transform: scale(1.04); }
.filters { display: flex; flex-wrap: wrap; gap: var(--s1); margin-bottom: var(--s4); }
.filters button { min-height: 44px; padding: 0 20px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: 600 .9375rem var(--sans); cursor: pointer; }
.filters button.active { background: var(--band); border-color: var(--band); color: var(--white); }
.gallery { columns: 3 280px; column-gap: var(--s2); }
.gallery a { position: relative; display: block; margin-bottom: var(--s2); overflow: hidden; border-radius: var(--radius); break-inside: avoid; }
.gallery img { width: 100%; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.03); }
.gallery .tag { position: absolute; left: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px; background: var(--surface); color: var(--heading); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.gallery a.hide { display: none; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: var(--s5) 72px; background: rgba(5, 20, 38, .94); }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 86vh; border-radius: 10px; }
.lightbox button { position: absolute; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: var(--white); font-size: 1.6rem; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .26); }
.lb-close { top: var(--s2); right: var(--s2); }
.lb-prev { left: var(--s2); top: 50%; transform: translateY(-50%); }
.lb-next { right: var(--s2); top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: var(--s2); left: 0; right: 0; text-align: center; color: var(--on-dark); font-size: var(--fs-small); }
body.lb-open .mobile-bar { display: none; }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
.review { display: flex; flex-direction: column; padding: var(--s4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.review blockquote { margin: 12px 0 var(--s2); font-size: .9375rem; line-height: 1.65; }
.review blockquote.clamp { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.review .read { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; margin: -12px 0 var(--s1); padding: 0; border: 0; background: none; color: var(--blue); font: 600 .875rem var(--sans); cursor: pointer; }
.review footer { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: var(--s2); border-top: 1px solid var(--line); }
.review footer small { display: block; color: var(--muted); font-size: .8125rem; }
.avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--blue-100); color: var(--blue-700); font: 800 1rem var(--display); }
.review-links { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }
.review-links a { display: inline-flex; align-items: center; gap: var(--s1); min-height: 48px; padding: 0 20px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-weight: 600; font-size: .9375rem; text-decoration: none; }
.review-links a:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- Eric contact block ---------- */
.eric { display: grid; grid-template-columns: auto 1fr; gap: var(--s1) var(--s5); align-items: center; padding: var(--s5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.eric-badge { grid-row: span 2; display: grid; place-items: center; width: 128px; height: 128px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--navy-900)); color: var(--white); font: 800 3.25rem var(--display); box-shadow: 0 0 0 6px var(--surface), 0 0 0 8px var(--blue-100); }
.eric-text h2 { margin-bottom: var(--s2); }
.eric-text .lead { margin-bottom: 0; }
.eric-actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }

/* ---------- Service area ---------- */
.area { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--s5); align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s1); margin: var(--s3) 0 var(--s4); }
.chips a, .chips span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--s2); border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: .9375rem; font-weight: 500; text-decoration: none; }
.chips a:hover { border-color: var(--blue); color: var(--blue); }
.map { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--blue-100); }
.map iframe { display: block; width: 100%; height: 400px; border: 0; filter: var(--map-filter); }

/* ---------- CTA band ---------- */
.cta-band { padding: var(--s6) 0; background: linear-gradient(115deg, var(--navy-950) 0%, var(--navy-900) 50%, #0b5bb0 100%); color: var(--white); }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 var(--s1); color: var(--white); }
.cta-band p { margin: 0; color: var(--on-dark); }

/* ---------- Page hero ---------- */
.page-hero { padding: var(--s6) 0; background: var(--tint); border-bottom: 1px solid var(--line); }
.page-hero h1 { margin-bottom: var(--s2); }
.page-hero .lead { margin-bottom: 0; }
.page-hero.photo { position: relative; padding: var(--s7) 0; background-size: cover; background-position: center; border-bottom: 0; }
.page-hero.photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 29, 54, .88), rgba(7, 29, 54, .35)); }
.page-hero.photo .wrap { position: relative; }
.page-hero.photo h1 { color: var(--white); }
.page-hero.photo .lead { color: #e1ebf7; }
.crumbs { margin-bottom: var(--s2); font-size: var(--fs-small); color: var(--muted); }
.crumbs a { display: inline-flex; align-items: center; min-height: 32px; color: inherit; }
.page-hero.photo .crumbs { color: var(--on-dark); }
.quick { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }

/* ---------- Services page (each service is its own full-width band) ---------- */
.svc-band { border-bottom: 1px solid var(--line); }
.svc { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6); align-items: center; }
.svc.flip .svc-media { order: 2; }
.svc-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.svc .lead { margin-bottom: var(--s3); }
.ticks { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s1) var(--s3); }
.ticks li { position: relative; padding-left: var(--s3); font-size: .9375rem; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--s6); align-items: center; }
.about-grid > img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.about-grid .btn-row { margin-top: var(--s3); }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3); }
.value { padding: var(--s4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.value .icon { width: 32px; height: 32px; margin-bottom: var(--s2); color: var(--blue); }
.value p { margin: 0; font-size: .9375rem; color: var(--muted); }

/* ---------- Forms ---------- */
.contact-grid { display: grid; grid-template-columns: 1.35fr .9fr; gap: var(--s5); align-items: start; }
.form-card { padding: var(--s5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.form-card h3 { font-size: 1.5rem; }
.form-card form > .lead { font-size: 1rem; margin-bottom: var(--s3); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px var(--s3); }
.field { display: flex; flex-direction: column; gap: var(--s1); }
.field.full { grid-column: 1 / -1; }
label, .label { font-size: .875rem; font-weight: 600; color: var(--heading); }
.req { color: var(--blue); }
input, select, textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--input-line); border-radius: 12px; background: var(--surface); color: var(--ink); font: 16px/1.4 var(--sans); } /* 16px stops iOS zoom on focus */
textarea { min-height: 128px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: transparent; }
.field.invalid input, .field.invalid select { border-color: #c0392b; background: var(--invalid-bg); }
.field .err { display: none; color: var(--danger); font-size: .8125rem; }
.field.invalid .err { display: block; }
.pills { display: flex; flex-wrap: wrap; gap: var(--s1); }
.pills label { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s2); border: 1px solid var(--input-line); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: .9375rem; font-weight: 500; cursor: pointer; user-select: none; }
.pills input { position: absolute; width: 1px; height: 1px; min-height: 0; opacity: 0; }
.pills label:has(input:checked) { background: var(--btn-blue); border-color: var(--btn-blue); color: var(--white); }
.pills label:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.drop-zone { padding: var(--s3); border: 2px dashed var(--input-line); border-radius: var(--radius); background: var(--tint); color: var(--muted); font-size: .9375rem; text-align: center; cursor: pointer; }
.drop-zone.over { border-color: var(--blue); background: var(--blue-100); }
.drop-zone strong { color: var(--blue); }
.thumbs { display: flex; flex-wrap: wrap; gap: var(--s1); margin-top: 12px; }
.thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; }
.form-card .btn-row { margin-top: var(--s3); }
.form-note { margin: var(--s2) 0 0; font-size: .8125rem; color: var(--muted); }
.success { display: none; padding: var(--s5) var(--s1); text-align: center; }
.success .icon { width: 64px; height: 64px; margin: 0 auto var(--s2); color: var(--blue); }
.form-card.sent form { display: none; }
.form-card.sent .success { display: block; }
.info-card { padding: var(--s4); background: var(--band); color: var(--white); border-radius: var(--radius-lg); }
.info-card h3 { margin-bottom: var(--s2); color: var(--white); font-size: 1.375rem; }
.info-row { display: flex; gap: var(--s2); padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.info-row .icon { width: 22px; height: 22px; margin-top: 3px; color: var(--blue-300); }
.info-row a { display: inline-flex; align-items: center; min-height: 32px; color: var(--white); text-decoration: none; word-break: break-word; }
.info-row small { display: block; color: var(--on-dark); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.side-map { margin-top: var(--s3); }
.also { margin: var(--s3) 0 0; }
.also + .chips { margin-top: var(--s1); }

/* ---------- City pages ---------- */
.city-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: var(--s5); align-items: start; }
.city-grid h3 { margin-top: var(--s4); margin-bottom: var(--s2); }
.quote-card { margin: var(--s4) 0; padding: var(--s3); background: var(--tint); border-left: 4px solid var(--blue); border-radius: 0 var(--radius) var(--radius) 0; }
.quote-card p { margin-bottom: var(--s1); font: 600 1.125rem/1.55 var(--display); color: var(--heading); letter-spacing: -.01em; }
.side-box { position: sticky; top: calc(var(--header-h) + var(--s3)); }
.side-box .form-card { padding: var(--s4); }
.side-box .form-grid { gap: var(--s2); }

/* ---------- Footer ---------- */
.site-footer { padding-top: var(--s6); background: var(--navy-950); color: var(--on-dark); font-size: .9375rem; }
.foot-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.3fr; gap: var(--s5); padding-bottom: var(--s5); }
.site-footer h4 { margin-bottom: var(--s2); font: 700 var(--fs-eyebrow) var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--white); }
.site-footer a { color: #e0eaf6; text-decoration: none; }
.site-footer a:hover { color: var(--blue-300); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: var(--s1); }
.foot-logo { display: inline-block; margin-bottom: var(--s2); padding: 12px 20px 17px; background: #ffffff; border-radius: 12px; } /* extra bottom padding: the logo's lettering sits low, this centers it by eye */
.foot-logo img { height: 48px; }
.social { display: flex; flex-wrap: wrap; gap: var(--s1); margin-top: var(--s2); }
.social a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); font-size: .8125rem; font-weight: 600; }
.social a:hover { background: var(--btn-blue); color: var(--white); }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .12); font-size: .8125rem; }
.foot-bottom .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 20px; }
.preview-pill { padding: 4px 12px; border-radius: 999px; background: rgba(127, 184, 240, .15); color: var(--blue-300); }

/* ---------- Mobile action bar ---------- */
.mobile-bar { display: none; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ==========================================================================
   Tablet and below: hamburger menu, single-column layouts, 44px+ touch targets
   ========================================================================== */
@media (max-width: 1040px) {
  .nav, .header-phone { display: none; }
  .call-icon, .menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; }
  .call-icon { background: var(--blue-100); color: var(--blue); }
  .menu-toggle { padding: 0; border: 0; background: none; color: var(--heading); cursor: pointer; }
  .call-icon .icon, .menu-toggle .icon { width: 22px; height: 22px; }
  .site-header.open .nav { position: absolute; top: var(--header-h); left: 0; right: 0; display: flex; flex-direction: column; align-items: stretch; gap: 0; max-height: calc(100vh - var(--header-h)); overflow: auto; padding: var(--s1) var(--gutter) var(--s3); background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-header.open .nav > a, .site-header.open .drop > button { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.0625rem; }
  .site-header.open .nav > a:hover, .site-header.open .drop > button:hover { background: none; }
  .site-header.open .drop > button .icon { display: none; }
  .site-header.open .drop-menu { position: static; display: block; padding: 0 0 0 var(--s2); border: 0; box-shadow: none; }
  .site-header.open .drop-menu a { padding: 12px 0; }
  .site-header.open .nav .nav-cta { display: inline-flex !important; width: 100%; margin-top: var(--s2); border-bottom: 0; border-radius: 999px; }
  .site-header.open .nav .btn-primary.nav-cta { background: var(--btn-blue); color: var(--white); }
  .site-header.open .nav .btn-ghost.nav-cta { margin-top: 12px; border: 2px solid var(--line); color: var(--heading); }

  .hero .wrap, .area, .about-grid, .contact-grid, .city-grid, .svc { grid-template-columns: 1fr; }
  .hero .wrap { gap: var(--s5); padding-top: var(--s6); padding-bottom: var(--s6); }
  .svc.flip .svc-media { order: 0; }
  .svc, .about-grid { gap: var(--s4); }
  .hero-media { height: 420px; }
  .cards, .reviews { grid-template-columns: 1fr 1fr; }
  .steps, .values, .trust .wrap, .foot-grid { grid-template-columns: 1fr 1fr; }
  .side-box { position: static; }

  .site-footer li { margin-bottom: 0; }
  .site-footer li a, .crumbs a { min-height: 44px; display: inline-flex; align-items: center; }
  .social a { min-height: 44px; padding: 0 var(--s2); }
  .info-row a { min-height: 44px; }
  .chips a, .chips span { min-height: 44px; }
}

/* ==========================================================================
   Phones
   ========================================================================== */
@media (max-width: 680px) {
  :root { --gutter: 16px; --header-h: 72px; --s7: 64px; --s6: 48px; }
  body { font-size: 1rem; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
  .lead { font-size: 1.0625rem; }
  .topbar { font-size: .78rem; }
  .topbar .hide-sm { display: none; }
  .header-cta { gap: var(--s1); }
  .header-cta > .btn { display: none; }
  .logo img { height: 46px; }

  .hero .wrap { gap: var(--s4); }
  .hero .btn-row .btn, .quick .btn, .eric-actions .btn, .cta-band .btn { flex: 1 1 100%; }
  .hero-media { height: 320px; }
  .hero-card { display: none; }

  .cards, .steps, .values, .form-grid, .ticks, .foot-grid { grid-template-columns: 1fr; }
  .foot-grid { gap: var(--s4); }
  .trust .wrap { grid-template-columns: 1fr 1fr; gap: 20px var(--s2); padding-top: var(--s3); padding-bottom: var(--s3); }
  .trust div { font-size: .8125rem; align-items: flex-start; }
  .trust strong { font-size: .9375rem; }
  .trust .icon { width: 22px; height: 22px; }
  .section-head { margin-bottom: var(--s4); }
  .card-body, .step, .value, .review { padding: var(--s3); }

  .reviews { display: flex; gap: var(--s2); margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) var(--s2); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); }
  .reviews .review { flex: 0 0 86%; scroll-snap-align: start; }

  .work-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 152px; gap: 12px; }
  .gallery { column-gap: 12px; }
  .gallery a { margin-bottom: 12px; }

  .eric { grid-template-columns: 1fr; gap: var(--s2); padding: var(--s3); }
  .eric-badge { grid-row: auto; width: 80px; height: 80px; font-size: 2.25rem; }
  .eric-actions { margin-top: var(--s1); }

  .form-card, .side-box .form-card { padding: var(--s3); }
  .info-card { padding: var(--s3); }
  .map iframe { height: 300px; }
  .page-hero { padding: var(--s5) 0; }
  .page-hero.photo { padding: var(--s6) 0; }
  .cta-band .wrap { gap: var(--s3); }

  .lightbox { padding: 64px 8px 120px; }
  .lb-prev, .lb-next { top: auto; bottom: var(--s3); transform: none; }
  .lb-prev { left: calc(50% - 64px); }
  .lb-next { right: calc(50% - 64px); left: auto; }
  .lb-count { bottom: 88px; }

  .mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr 1.3fr; padding-bottom: env(safe-area-inset-bottom); background: var(--navy-950); box-shadow: 0 -6px 20px rgba(0, 0, 0, .2); }
  .mobile-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 64px; color: var(--white); font-size: .78rem; font-weight: 600; text-decoration: none; }
  .mobile-bar a.est { background: var(--btn-blue); }
  .mobile-bar .icon { width: 20px; height: 20px; }
}

@media (hover: none) {
  .card:hover { box-shadow: none; transform: none; }
  .work-grid a:hover img, .gallery a:hover img { transform: none; }
}
.eric-badge .icon { width: 56px; height: 56px; stroke-width: 1.6; }
@media (max-width: 680px) { .eric-badge .icon { width: 36px; height: 36px; } }

/* ==========================================================================
   Dark mode: follows the visitor's device setting
   ========================================================================== */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0a1220;
    --surface: #132036;
    --tint: #0e192b;
    --line: #22324b;
    --ink: #d9e3ef;
    --muted: #9badc4;
    --heading: #f3f7fc;
    --band: #12284a;
    --btn-navy: #1e3d68;
    --blue: #4d98f0;          /* text and accents on dark */
    --blue-700: #6aa9f3;
    --btn-blue: #1f6fd2;
    --btn-blue-hover: #1a5fb6;
    --blue-300: #8cc3f7;
    --blue-100: #15304f;
    --navy-950: #050c18;
    --header-bg: rgba(10, 18, 32, .94);
    --input-line: #2c3f5c;
    --invalid-bg: #2a1518;
    --danger: #ff8a7a;
    --on-dark: #b7c7dd;
    --shadow: 0 16px 40px -20px rgba(0, 0, 0, .7);
    --map-filter: brightness(.9) contrast(.95);
  }
  /* The logo artwork is navy on transparent, so it sits on a white chip */
  .logo img { background: #ffffff; padding: 6px 14px 10px; border-radius: 10px; } /* optical centering, see .foot-logo */
  .hero { background: linear-gradient(180deg, #0f1d33 0%, var(--bg) 100%); }
  .btn-primary { box-shadow: none; }
  .btn-ghost { border-color: #34496a; }
  .card:hover { box-shadow: 0 16px 40px -20px rgba(0, 0, 0, .9); }
  .page-hero.photo::before { background: linear-gradient(90deg, rgba(5, 12, 24, .92), rgba(5, 12, 24, .45)); }
  .cta-band { background: linear-gradient(115deg, #050c18 0%, #0f2443 55%, #134a8c 100%); }
  .info-card { border: 1px solid var(--line); }
  .trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .site-footer { border-top: 1px solid var(--line); }
  .eric-badge { background: linear-gradient(135deg, #2f84ea, #12284a); }
  .stars { color: #f5c04a; }
  .avatar { color: var(--blue-300); }
  .step::before { color: var(--blue-300); }
  .mobile-bar { border-top: 1px solid var(--line); }
}
