/* ==========================================================================
   NorthShoreXpress — Design System
   Brand: deep harbor navy + lake teal + runway amber
   ========================================================================== */

:root {
  /* Brand */
  --navy-900: #061523;
  --navy-800: #0a2033;
  --navy-700: #102c44;
  --navy-600: #1a3d59;
  --navy-500: #2b5473;

  --teal-700: #0a6a72;
  --teal-600: #0e8590;
  --teal-500: #14a3ae;
  --teal-100: #d8f2f4;
  --teal-50: #eefafb;

  --amber-600: #d4820f;
  --amber-500: #f0a02c;
  --amber-400: #f7b757;
  --amber-100: #fdefd8;

  /* Neutrals */
  --ink: #0e1a24;
  --ink-2: #33475a;
  --ink-3: #5d798f;
  --muted: #5a7186;
  --line: #dfe6ed;
  --line-2: #eef2f6;
  --surface: #ffffff;
  --surface-2: #f6f9fb;
  --surface-3: #eef3f7;

  /* Status */
  --ok: #17795e;
  --ok-bg: #e2f5ee;
  --warn: #9a6206;
  --warn-bg: #fdf1da;
  --danger: #a32828;
  --danger-bg: #fbe6e6;
  --info: #1f5fa8;
  --info-bg: #e6effa;

  /* Type */
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Space & shape */
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --shadow-sm: 0 1px 2px rgba(6, 21, 35, 0.06), 0 1px 3px rgba(6, 21, 35, 0.08);
  --shadow: 0 4px 12px rgba(6, 21, 35, 0.08), 0 2px 4px rgba(6, 21, 35, 0.04);
  --shadow-lg: 0 18px 40px rgba(6, 21, 35, 0.14), 0 4px 12px rgba(6, 21, 35, 0.06);
  --maxw: 1180px;
  --nav-h: 74px;
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

/* The `hidden` attribute must always win — several components below set
   display:grid/flex, which would otherwise override it. */
[hidden] { display: none !important; }

h1, h2, h3, h4, h5 {
  margin: 0 0 0.5em;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.021em;
}

h1 { font-size: clamp(2.25rem, 5.2vw, 3.65rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.18rem, 2vw, 1.4rem); }
h4 { font-size: 1.06rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--teal-700); text-decoration: none; }
a:hover { text-decoration: underline; }

ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: 0.4em; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

:focus-visible {
  outline: 3px solid var(--teal-500);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 820px; }

.section { padding: 84px 0; }
.section-sm { padding: 56px 0; }
.section-tight { padding: 48px 0; }

.bg-soft { background: var(--surface-2); }
.bg-line { border-top: 1px solid var(--line-2); }
.bg-navy { background: var(--navy-800); color: #cfe0ec; }
.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4 { color: #fff; }

.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.stack > * + * { margin-top: 1rem; }

.grid { display: grid; gap: 24px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.eyebrow {
  display: inline-block;
  font-size: 0.775rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--teal-700);
  margin-bottom: 12px;
}
.bg-navy .eyebrow { color: var(--amber-400); }

.lede { font-size: 1.18rem; color: var(--muted); line-height: 1.62; }
.bg-navy .lede { color: #a9c2d5; }

.section-head { max-width: 700px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--navy-800);
  --btn-fg: #fff;
  --btn-bd: var(--navy-800);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border: 1.5px solid var(--btn-bd);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-size: 0.97rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.16s ease, background 0.16s ease,
    border-color 0.16s ease, color 0.16s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn[disabled], .btn[aria-disabled="true"] {
  opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none;
}

.btn-primary {
  --btn-bg: var(--amber-500);
  --btn-bd: var(--amber-500);
  --btn-fg: var(--navy-900);
}
.btn-primary:hover { --btn-bg: var(--amber-400); --btn-bd: var(--amber-400); }

.btn-teal { --btn-bg: var(--teal-600); --btn-bd: var(--teal-600); --btn-fg: #fff; }
.btn-teal:hover { --btn-bg: var(--teal-700); --btn-bd: var(--teal-700); }

.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--navy-800);
  --btn-bd: var(--line);
}
.btn-ghost:hover { --btn-bd: var(--navy-800); --btn-bg: var(--surface-2); }

/* Ghost buttons on any dark surface */
.bg-navy .btn-ghost,
.hero .btn-ghost,
.cta-band .btn-ghost,
.page-head .btn-ghost {
  --btn-fg: #fff;
  --btn-bd: rgba(255, 255, 255, 0.38);
}
.bg-navy .btn-ghost:hover,
.hero .btn-ghost:hover,
.cta-band .btn-ghost:hover,
.page-head .btn-ghost:hover {
  --btn-bg: rgba(255, 255, 255, 0.12);
  --btn-bd: #fff;
}

.btn-sm { padding: 9px 16px; font-size: 0.87rem; }
.btn-lg { padding: 17px 34px; font-size: 1.05rem; }
.btn-block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row.center { justify-content: center; }

/* --------------------------------------------------------------------------
   Header / nav
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--navy-900);
  color: #b9d0e0;
  font-size: 0.84rem;
  font-weight: 600;
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 40px; flex-wrap: wrap;
}
.topbar a { color: #fff; }
.topbar-items { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.topbar-items span { display: inline-flex; align-items: center; gap: 7px; }

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.5) blur(12px);
  border-bottom: 1px solid var(--line-2);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 20px; min-height: var(--nav-h);
}

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; margin-right: auto; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 40px; height: 40px; flex: none;
  border-radius: 11px;
  background: linear-gradient(145deg, var(--navy-700), var(--navy-900));
  display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-size: 1.12rem; font-weight: 800; color: var(--navy-900);
  letter-spacing: -0.028em;
}
.brand-name em { font-style: normal; color: var(--teal-600); }
.brand-tag {
  font-size: 0.63rem; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--muted); margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 9px 13px; border-radius: 999px;
  color: var(--ink-2); font-size: 0.93rem; font-weight: 650;
  text-decoration: none; transition: background 0.15s, color 0.15s;
}
.nav a:hover { background: var(--surface-3); color: var(--navy-900); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--navy-900); background: var(--teal-50); }

.nav-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none; width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: #fff; cursor: pointer; padding: 0;
  place-items: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 19px; height: 2px;
  background: var(--navy-900); border-radius: 2px; transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after { transform: translateY(4px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: rotate(-45deg) translateY(-1px); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(20, 163, 174, 0.28), transparent 62%),
    radial-gradient(760px 460px at 8% 104%, rgba(240, 160, 44, 0.16), transparent 60%),
    linear-gradient(168deg, var(--navy-800) 0%, var(--navy-900) 100%);
  color: #cfe0ec;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(700px 420px at 70% 20%, #000, transparent 78%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-inner {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 56px; align-items: center;
  padding: 84px 0 92px;
}
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 .accent {
  background: linear-gradient(100deg, var(--amber-400), var(--teal-500));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: 1.2rem; color: #a9c2d5; max-width: 540px; margin-bottom: 30px; }

.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.83rem; font-weight: 700; color: #dcecf6;
}
.hero-badge svg { width: 15px; height: 15px; flex: none; color: var(--teal-500); }

.hero-proof {
  display: flex; gap: 30px; flex-wrap: wrap;
  margin-top: 34px; padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}
.hero-proof div strong {
  display: block; font-size: 1.65rem; font-weight: 800; color: #fff; line-height: 1.1;
}
.hero-proof div span { font-size: 0.82rem; color: #8fabc2; font-weight: 600; }

/* Quick quote card in hero */
.quote-card {
  background: #fff;
  border-radius: var(--r-xl);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  color: var(--ink-2);
}
.quote-card h3 { margin-bottom: 4px; font-size: 1.25rem; }
.quote-card .qc-sub { font-size: 0.88rem; color: var(--muted); margin-bottom: 20px; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.field { margin-bottom: 16px; }
.field:last-child { margin-bottom: 0; }

.label {
  display: block; font-size: 0.82rem; font-weight: 750;
  color: var(--ink); margin-bottom: 6px; letter-spacing: -0.005em;
}
.label .req { color: var(--danger); }
.hint { font-size: 0.79rem; color: var(--muted); margin-top: 5px; }

.input, .select, .textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  font: inherit; font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none; appearance: none;
}
.input::placeholder, .textarea::placeholder { color: #9db0c0; }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(20, 163, 174, 0.16);
}
.input[aria-invalid="true"], .select[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(163, 40, 40, 0.12);
}
.textarea { min-height: 96px; resize: vertical; }

.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235d798f' d='M1.4 0 6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 36px;
}

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.err-msg { font-size: 0.79rem; color: var(--danger); font-weight: 650; margin-top: 5px; display: none; }
.field.has-error .err-msg { display: block; }

/* Segmented control */
.segmented {
  display: inline-flex; padding: 4px; gap: 4px;
  background: var(--surface-3); border-radius: 999px;
}
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label {
  padding: 8px 18px; border-radius: 999px; cursor: pointer;
  font-size: 0.88rem; font-weight: 700; color: var(--ink-2);
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
  user-select: none;
}
.segmented input:checked + label {
  background: #fff; color: var(--navy-900); box-shadow: var(--shadow-sm);
}
.segmented input:focus-visible + label { outline: 3px solid var(--teal-500); outline-offset: 2px; }

/* Choice cards */
.choices { display: grid; gap: 12px; }
.choices-2 { grid-template-columns: 1fr 1fr; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label {
  display: flex; gap: 13px; align-items: flex-start;
  padding: 15px 17px; border: 1.5px solid var(--line);
  border-radius: var(--r); cursor: pointer; background: #fff;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  height: 100%;
}
.choice label:hover { border-color: var(--teal-500); }
.choice input:checked + label {
  border-color: var(--teal-600); background: var(--teal-50);
  box-shadow: 0 0 0 3px rgba(20, 163, 174, 0.13);
}
.choice input:focus-visible + label { outline: 3px solid var(--teal-500); outline-offset: 2px; }
.choice-icon { width: 24px; height: 24px; flex: none; color: var(--teal-600); margin-top: 2px; }
.choice-body strong { display: block; color: var(--ink); font-size: 0.95rem; font-weight: 750; }
.choice-body span { font-size: 0.82rem; color: #55697b; }

/* Checkbox / radio */
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 0.9rem; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--teal-600); flex: none; }

/* --------------------------------------------------------------------------
   Cards & components
   -------------------------------------------------------------------------- */
.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 26px;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}
.card-hover:hover { border-color: var(--teal-500); box-shadow: var(--shadow); transform: translateY(-2px); }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.95rem; color: var(--muted); }

.icon-badge {
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center; margin-bottom: 16px;
  background: var(--teal-50); color: var(--teal-700);
}
.icon-badge svg { width: 23px; height: 23px; }
.icon-badge.amber { background: var(--amber-100); color: var(--amber-600); }
.icon-badge.navy { background: var(--surface-3); color: var(--navy-700); }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 28px; }
.step { position: relative; padding-left: 66px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy-800); color: #fff;
  display: grid; place-items: center;
  font-weight: 800; font-size: 1.05rem;
}
.step h3 { margin-bottom: 6px; }
.step p { font-size: 0.95rem; color: var(--muted); }

/* Stat tiles */
.stats { display: grid; gap: 1px; background: var(--line); border-radius: var(--r-lg); overflow: hidden; }
.stats-4 { grid-template-columns: repeat(4, 1fr); }
.stat { background: #fff; padding: 26px 22px; }
.stat strong { display: block; font-size: 2.1rem; font-weight: 800; color: var(--navy-900); line-height: 1.05; letter-spacing: -0.03em; }
.stat span { font-size: 0.85rem; color: var(--muted); font-weight: 600; }

/* Pills / tags */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 750;
  background: var(--surface-3); color: var(--ink-2);
}
.pill-ok { background: var(--ok-bg); color: var(--ok); }
.pill-warn { background: var(--warn-bg); color: var(--warn); }
.pill-danger { background: var(--danger-bg); color: var(--danger); }
.pill-info { background: var(--info-bg); color: var(--info); }
.pill-teal { background: var(--teal-100); color: var(--teal-700); }

/* Accordion */
.acc { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 18px; padding: 21px 4px; background: none; border: 0;
  font: inherit; font-size: 1.03rem; font-weight: 750; color: var(--ink);
  text-align: left; cursor: pointer;
}
.acc-btn:hover { color: var(--teal-700); }
.acc-btn .chev {
  width: 22px; height: 22px; flex: none; color: var(--muted);
  transition: transform 0.22s ease;
}
.acc-btn[aria-expanded="true"] .chev { transform: rotate(180deg); color: var(--teal-600); }
.acc-panel { display: none; padding: 0 4px 22px; max-width: 74ch; }
.acc-panel.open { display: block; }
.acc-panel p { font-size: 0.96rem; color: var(--muted); }

/* Testimonials */
.quote-block {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 26px;
}
.quote-block .stars { color: var(--amber-500); font-size: 1rem; letter-spacing: 2px; margin-bottom: 12px; }
.quote-block blockquote { margin: 0 0 16px; font-size: 1rem; color: var(--ink-2); line-height: 1.62; }
.quote-block cite { font-style: normal; font-size: 0.86rem; font-weight: 750; color: var(--ink); }
.quote-block cite span { display: block; font-weight: 500; color: var(--muted); font-size: 0.8rem; }

/* Service area list */
.area-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.area-item {
  display: flex; align-items: center; gap: 9px;
  padding: 12px 15px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r);
  font-size: 0.92rem; font-weight: 650; color: var(--ink-2);
}
.area-item svg { width: 16px; height: 16px; color: var(--teal-600); flex: none; }

/* CTA band */
.cta-band {
  background:
    radial-gradient(680px 340px at 82% 0%, rgba(20, 163, 174, 0.3), transparent 65%),
    linear-gradient(160deg, var(--navy-700), var(--navy-900));
  color: #cfe0ec; border-radius: var(--r-xl);
  padding: 54px 48px; text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #a9c2d5; max-width: 560px; margin-left: auto; margin-right: auto; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--navy-900); color: #90aec6; padding: 64px 0 0; font-size: 0.92rem; }
.site-footer h4 { color: #fff; font-size: 0.8rem; letter-spacing: 0.13em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { color: #b8cfe0; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-tag { color: var(--amber-400); }
.footer-bottom {
  margin-top: 48px; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 0.82rem; color: #6f8ca5;
}

/* Sticky mobile call bar */
.mobile-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 70;
  background: rgba(255,255,255,0.97); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  gap: 10px;
}
.mobile-bar .btn { flex: 1; padding: 13px 10px; font-size: 0.92rem; }

/* --------------------------------------------------------------------------
   Page header (interior pages)
   -------------------------------------------------------------------------- */
.page-head {
  background:
    radial-gradient(700px 340px at 88% -20%, rgba(20, 163, 174, 0.26), transparent 65%),
    linear-gradient(165deg, var(--navy-800), var(--navy-900));
  color: #a9c2d5; padding: 66px 0 62px;
}
.page-head h1 { color: #fff; margin-bottom: 14px; }
.page-head p { max-width: 640px; font-size: 1.1rem; color: #a9c2d5; }
.crumbs { font-size: 0.82rem; font-weight: 650; color: #7f9ab0; margin-bottom: 16px; }
.crumbs a { color: #a9c2d5; }

/* Prose */
.prose { max-width: 74ch; }
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.6em; }
.prose > :first-child { margin-top: 0; }

/* Alert */
.alert {
  display: flex; gap: 12px; padding: 15px 18px;
  border-radius: var(--r); border: 1px solid var(--line);
  background: var(--surface-2); font-size: 0.9rem;
}
.alert svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.alert-info { background: var(--info-bg); border-color: #c3d9f2; color: #1a4b85; }
.alert-info svg { color: var(--info); }
.alert-warn { background: var(--warn-bg); border-color: #f0dcb4; color: #7c4e05; }
.alert-warn svg { color: var(--warn); }
.alert-ok { background: var(--ok-bg); border-color: #bfe6d7; color: #0f5f49; }
.alert-ok svg { color: var(--ok); }

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--navy-900); color: #fff; padding: 11px 18px;
  border-radius: 0 0 var(--r-sm) var(--r-sm); font-weight: 700; font-size: 0.9rem;
  transition: top 0.15s;
}
.skip-link:focus { top: 0; text-decoration: none; }

/* --------------------------------------------------------------------------
   Floating Google Reviews badge
   -------------------------------------------------------------------------- */
.grev-fab {
  position: fixed; left: 18px; bottom: 18px; z-index: 65;
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 9px 18px 9px 12px;
  box-shadow: var(--shadow-lg);
  text-decoration: none; color: var(--ink);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.grev-fab:hover { transform: translateY(-2px); text-decoration: none; box-shadow: 0 22px 48px rgba(6,21,35,.2); }

.grev-avatars { display: flex; align-items: center; }
.grev-av {
  width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid #fff; margin-right: -9px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 800; color: #fff;
  object-fit: cover; position: relative;
}
.grev-more { background: var(--surface-3); color: var(--ink-2); }

.grev-body { display: flex; flex-direction: column; line-height: 1.25; }
.grev-top { display: inline-flex; align-items: center; gap: 7px; }
.grev-top b { font-size: 1.02rem; font-weight: 800; color: var(--navy-900); }
.grev-stars { color: var(--amber-500); font-size: 0.86rem; letter-spacing: 1.5px; }
.grev-sub { font-size: 0.73rem; font-weight: 650; color: var(--muted); }

@media (max-width: 860px) {
  .grev-fab {
    bottom: calc(76px + env(safe-area-inset-bottom)); left: 10px;
    padding: 7px 13px 7px 9px; gap: 9px;
  }
  .grev-av { width: 25px; height: 25px; font-size: 0.64rem; }
  .grev-sub { font-size: 0.68rem; }
}

@media print { .grev-fab { display: none !important; } }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 60px 0 70px; }
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 860px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .topbar-items span.hide-sm { display: none; }

  .nav-toggle { display: grid; }
  .nav {
    display: none;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 16px 18px; box-shadow: var(--shadow-lg);
    max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 14px; border-radius: var(--r-sm); font-size: 1rem; }
  .nav-cta .btn.hide-sm { display: none; }
  .site-header .wrap { position: relative; }

  .g-2, .g-3 { grid-template-columns: 1fr; }
  .field-row, .field-row-3, .choices-2 { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 24px; }
  .mobile-bar { display: flex; }
  body.has-mobile-bar { padding-bottom: 76px; }
}

@media (max-width: 560px) {
  /* Keep the header on one line: shrink the brand, tighten the CTA cluster. */
  .wrap { padding: 0 16px; }
  .site-header .wrap { gap: 10px; }
  .brand { gap: 8px; }
  .brand-mark { width: 34px; height: 34px; border-radius: 9px; }
  .brand-mark svg { width: 19px; height: 19px; }
  .brand-name { font-size: 0.98rem; }
  .brand-tag { display: none; }
  .nav-cta { gap: 7px; }
  .nav-cta .btn { padding: 9px 13px; font-size: 0.82rem; }
  .nav-toggle { width: 40px; height: 40px; }

  /* Keep the top bar to a single line — the phone number is already in the
     header and in the sticky bottom bar on small screens. */
  .topbar .wrap { flex-wrap: nowrap; justify-content: center; }
  .topbar-items:last-child { display: none; }

  .stats-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-proof { gap: 22px; }
  .btn-row .btn { width: 100%; }
}

/* Very small phones (iPhone SE and similar) */
@media (max-width: 380px) {
  .wrap { padding: 0 12px; }
  .brand-name { font-size: 0.9rem; }
  .nav-cta .btn { padding: 8px 11px; font-size: 0.78rem; }
  .site-header .wrap { gap: 8px; }
  .topbar { font-size: 0.76rem; }
  .ref-code { font-size: 1.05rem; letter-spacing: 0.05em; padding: 10px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-header, .site-footer, .topbar, .mobile-bar, .nav { display: none !important; }
}

/* ---------- Address suggestions (assets/js/address-autocomplete.js) ---------- */
.ac-host, .ac-wrap { position: relative; }
.ac-list {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 30;
  margin: 4px 0 0; padding: 4px 0; list-style: none;
  background: #fff; border: 1px solid rgba(10, 32, 51, .14); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(10, 32, 51, .16); max-height: 320px; overflow-y: auto;
}
.ac-list [role="option"] { padding: 9px 14px; cursor: pointer; line-height: 1.35; }
.ac-list [role="option"].is-active,
.ac-list [role="option"]:hover { background: rgba(20, 163, 174, .1); }
.ac-main { display: block; font-weight: 600; color: #0a2033; }
.ac-sub { display: block; font-size: .85rem; color: #5b6b7a; }
/* Google's required attribution: the words "Google Maps", sans-serif, 12-16px, normal weight */
.ac-credit {
  padding: 6px 14px 4px; text-align: right; white-space: nowrap;
  font: 400 12px Roboto, Arial, sans-serif; color: #5f6368;
}

/* ---------- Quick-quote address boxes (home page) ---------- */
.qq-addr { display: grid; gap: 8px; margin-top: 8px; }
.qq-csz { display: grid; grid-template-columns: minmax(0, 1fr) 78px 96px; gap: 8px; }
