/* ==========================================================================
   Lue Plumbing & Alhambra Backflow
   Cardinal & Gold theme
   --------------------------------------------------------------------------
   TO RESKIN THE WHOLE SITE: change the hex codes in the :root block below.
   Nothing else needs touching — every color on every page derives from them.

   NOTE ON CONTRAST: gold (#FFCC00) is a highlight color, not a text color.
   It is never used behind white text anywhere in this stylesheet, because
   white-on-gold is unreadable. Gold buttons use dark text (--accent-text);
   gold text only ever appears on cardinal or near-black backgrounds.
   ========================================================================== */

:root {
  /* ---- BRAND ---- */
  --brand:        #990000;   /* cardinal — headers, headings, links          */
  --brand-deep:   #5E0000;   /* deep cardinal — footer, top bar, overlays    */
  --brand-bright: #B31217;   /* lighter cardinal for gradient movement       */

  --accent:       #FFCC00;   /* gold — buttons, highlights, rules            */
  --accent-dark:  #E8B900;   /* gold hover                                   */
  --accent-text:  #3D0000;   /* text that sits ON gold                       */

  --gold:         #FFCC00;   /* alias, used on dark backgrounds              */
  --tint:         #FBF4E4;   /* warm cream wash for alternating sections     */

  /* ---- Links ---- */
  --link:         #990000;
  --link-hover:   #6B0000;

  /* ---- Neutrals ---- */
  --ink:          #1C1719;
  --body:         #4E4548;
  --muted:        #857A7D;
  --line:         #E3DAD9;
  --white:        #FFFFFF;

  /* ---- Type ---- */
  --font-head: "Barlow Condensed", "Oswald", Impact, system-ui, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* ---- Layout ---- */
  --wrap: 1180px;
  --gutter: 24px;
  --radius: 10px;
  --shadow-sm: 0 1px 3px rgba(93, 0, 0, .10), 0 1px 2px rgba(93, 0, 0, .06);
  --shadow-md: 0 4px 16px rgba(93, 0, 0, .13);
  --shadow-lg: 0 18px 50px rgba(60, 0, 0, .20);
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--brand);
  line-height: 1.06;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: .005em;
  text-transform: uppercase;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.3rem); }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.62rem); }
h4 { font-size: 1.16rem; }

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

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.narrow { max-width: 780px; }

section { padding: clamp(56px, 8vw, 96px) 0; }

.tint { background: var(--tint); }
.dark { background: var(--brand); color: rgba(255,255,255,.85); }
.dark h1, .dark h2, .dark h3, .dark h4 { color: var(--white); }

/* Collegiate touch: a short gold rule under major section headings */
.ruled::after {
  content: "";
  display: block;
  width: 68px;
  height: 5px;
  background: var(--accent);
  border-radius: 3px;
  margin-top: 20px;
}
.center.ruled::after, .center .ruled::after { margin-inline: auto; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: .9rem;
}
.dark .eyebrow,
.hero .eyebrow,
.page-head .eyebrow { color: var(--gold); }

.lead { font-size: 1.16rem; line-height: 1.6; color: var(--body); }
.dark .lead { color: rgba(255,255,255,.88); }

.center { text-align: center; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  padding: 17px 30px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  text-align: center;
  white-space: nowrap;   /* keeps phone numbers on one line */
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* Gold button, dark text — the primary call to action */
.btn-primary { background: var(--accent); color: var(--accent-text); box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--accent-dark); color: var(--accent-text); }

/* Cardinal button, white text */
.btn-solid { background: var(--brand); color: var(--white); }
.btn-solid:hover { background: var(--brand-deep); color: var(--white); }

.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.14); color: var(--white); border-color: var(--white); }

.btn-outline { background: transparent; color: var(--brand); border-color: var(--line); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }

.btn-lg { font-size: 1.08rem; padding: 20px 36px; }
.btn-block { display: flex; width: 100%; }

/* Icons inside buttons must not flex to fill the button */
.btn svg { width: 19px; height: 19px; flex: none; }
.btn-lg svg { width: 21px; height: 21px; }
.card-link svg { width: 16px; height: 16px; flex: none; }

/* ==========================================================================
   Header
   ========================================================================== */

.topbar {
  background: var(--brand-deep);
  color: rgba(255,255,255,.78);
  font-size: .85rem;
  padding: 9px 0;
  border-bottom: 3px solid var(--accent);
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.topbar a { color: rgba(255,255,255,.95); font-weight: 600; }
.topbar a:hover { color: var(--gold); }
.topbar-badges { display: flex; gap: 22px; }
.topbar-badges span { display: inline-flex; align-items: center; gap: .4em; }
.topbar svg { width: 14px; height: 14px; color: var(--gold); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
}

/* Wordmark — swap for <img> when the logo arrives */
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 48px; height: 48px;
  flex: none;
  border-radius: 9px;
  background: var(--brand);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-size: 1.55rem;
  font-weight: 700;
  border-bottom: 4px solid var(--accent);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-name {
  font-family: var(--font-head);
  font-size: 1.44rem;
  font-weight: 700;
  color: var(--brand);
  text-transform: uppercase;
  white-space: nowrap;
}
.logo-sub { white-space: nowrap; }
.logo-sub {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
}
.logo img { max-height: 56px; width: auto; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  color: var(--ink);
  font-weight: 600;
  font-size: .95rem;
  white-space: nowrap;
  padding: 6px 0;
  border-bottom: 3px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}
.nav a:hover, .nav a[aria-current="page"] {
  color: var(--brand);
  border-bottom-color: var(--accent);
}

.header-cta { display: flex; align-items: center; gap: 14px; }
.header-phone { display: flex; flex-direction: column; line-height: 1.15; text-align: right; }
.header-phone small {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  font-weight: 700;
}
.header-phone strong {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--brand);
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  background: var(--brand);
  border: 0;
  color: var(--white);
  width: 46px; height: 46px;
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  background: linear-gradient(105deg, var(--brand-deep) 0%, var(--brand) 52%, var(--brand-bright) 100%);
  color: var(--white);
  padding: clamp(64px, 9vw, 116px) 0;
  overflow: hidden;
  border-bottom: 6px solid var(--accent);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg, rgba(255, 204, 0, .045) 0 2px, transparent 2px 14px);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero h1 { color: var(--white); margin-bottom: .3em; }
.hero h1 .accent { color: var(--gold); display: block; }
.hero p.lead { color: rgba(255,255,255,.9); max-width: 56ch; }

/* Slogan lockup */
.slogan {
  display: block;
  width: fit-content;
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .03em;
  border-bottom: 4px solid var(--gold);
  padding-bottom: 4px;
  margin-bottom: 22px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.22);
  font-size: .9rem;
  color: rgba(255,255,255,.85);
}
.hero-trust span { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; }
.hero-trust svg { width: 17px; height: 17px; color: var(--gold); flex: none; }

.quote-card {
  background: var(--white);
  border-radius: 14px;
  padding: 30px;
  box-shadow: var(--shadow-lg);
  color: var(--body);
  border-top: 6px solid var(--accent);
}
.quote-card h3 { font-size: 1.55rem; margin-bottom: .3em; }
.quote-card .card-note { font-size: .9rem; color: var(--muted); margin-bottom: 20px; }

/* ==========================================================================
   Forms
   ========================================================================== */

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--brand);
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(153, 0, 0, .15);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-note { font-size: .82rem; color: var(--muted); margin-top: 14px; text-align: center; }

/* Honeypot — hidden from humans, catches bots */
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ==========================================================================
   Cards & grids
   ========================================================================== */

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

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.card h3 { margin-bottom: .45em; }
.card p { font-size: .97rem; }

.card-icon {
  width: 54px; height: 54px;
  border-radius: 11px;
  background: var(--brand);
  color: var(--gold);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.card-icon svg { width: 27px; height: 27px; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  font-weight: 700;
  font-size: .92rem;
  margin-top: 16px;
}

.card-feature {
  border-color: var(--accent);
  border-width: 2px;
  position: relative;
  box-shadow: var(--shadow-md);
}
.card-feature::before {
  content: "Our Specialty";
  position: absolute;
  top: -13px; left: 26px;
  background: var(--accent);
  color: var(--accent-text);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 13px;
  border-radius: 20px;
}

/* ==========================================================================
   Photos
   --------------------------------------------------------------------------
   Source photos are ~640px on the long edge, so nothing here displays an
   image wider than about 440px. That keeps them sharp. Do not use these in a
   full-bleed hero — they will go soft. Replace with larger originals first.
   ========================================================================== */

/* Photo bleeding to the edges of a .card (cancels the card's 30px/28px pad) */
.card-photo {
  margin: -30px -28px 22px;
  border-bottom: 4px solid var(--accent);
  background: var(--brand-deep);
}
.card-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

/* Standalone framed image */
.media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border-bottom: 5px solid var(--accent);
  background: var(--brand-deep);
}
.media img { width: 100%; display: block; }
.media figcaption {
  background: var(--brand);
  color: rgba(255,255,255,.9);
  font-size: .86rem;
  font-weight: 600;
  padding: 12px 16px;
}
figure.media { margin: 0; }

/* Work gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--brand);
  box-shadow: var(--shadow-md);
  border-bottom: 4px solid var(--accent);
}
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption {
  padding: 14px 16px;
  color: var(--white);
  font-weight: 600;
  font-size: .93rem;
  line-height: 1.35;
}
.gallery figcaption small {
  display: block;
  font-weight: 400;
  font-size: .82rem;
  color: rgba(255,255,255,.66);
  margin-top: 3px;
}

/* Focal-point nudges for portrait sources cropped to landscape */
.op-top    img, img.op-top    { object-position: center 12%; }
.op-bottom img, img.op-bottom { object-position: center 78%; }

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

/* ==========================================================================
   Stats strip
   ========================================================================== */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 4.5vw, 3.5rem);
  color: var(--gold);
  line-height: 1;
}
.stat span {
  font-size: .84rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 600;
  color: rgba(255,255,255,.78);
}

/* ==========================================================================
   Steps / process
   ========================================================================== */

.steps { counter-reset: step; display: grid; gap: 30px; }
.step { position: relative; padding-left: 74px; counter-increment: step; }
.step::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--gold);
  font-family: var(--font-head);
  font-size: 1.55rem;
  display: grid;
  place-items: center;
  border: 3px solid var(--accent);
}
.step h3 { margin-bottom: .3em; }
.step p { font-size: .97rem; }

/* ==========================================================================
   Checklists
   ========================================================================== */

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 13px; }
.checklist li { position: relative; padding-left: 34px; font-size: 1rem; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: .34em;
  width: 21px; height: 21px;
  border-radius: 50%;
  background-color: var(--brand);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFCC00' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 13px;
  background-position: center;
  background-repeat: no-repeat;
}
/* On cardinal backgrounds, invert: gold disc with cardinal check */
.dark .checklist li::before {
  background-color: var(--gold);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235E0000' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}
.checklist.cols { grid-template-columns: repeat(2, 1fr); gap: 13px 30px; }

/* ==========================================================================
   Service area
   ========================================================================== */

.city-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.city {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 15px 18px;
  font-weight: 600;
  color: var(--brand);
  display: flex;
  align-items: center;
  gap: .55em;
  font-size: .96rem;
}
.city svg { width: 16px; height: 16px; color: var(--brand); flex: none; }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq { border-top: 2px solid var(--brand); }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 44px 22px 0;
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--brand);
  text-transform: uppercase;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px; top: 50%;
  width: 14px; height: 14px;
  margin-top: -7px;
  border-right: 3px solid var(--brand);
  border-bottom: 3px solid var(--brand);
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details[open] summary { color: var(--brand-deep); }
.faq details p { padding-bottom: 22px; font-size: 1rem; }

/* ==========================================================================
   CTA band
   ========================================================================== */

.cta-band {
  background: var(--brand);
  color: rgba(255,255,255,.94);
  padding: clamp(48px, 6vw, 72px) 0;
  border-top: 6px solid var(--accent);
  border-bottom: 6px solid var(--accent);
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,.9); font-size: 1.1rem; }
.cta-band .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Page header (interior pages)
   ========================================================================== */

.page-head {
  background: linear-gradient(105deg, var(--brand-deep), var(--brand) 60%, var(--brand-bright));
  color: var(--white);
  padding: clamp(48px, 7vw, 84px) 0;
  position: relative;
  overflow: hidden;
  border-bottom: 6px solid var(--accent);
}
.page-head::after {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(-45deg, rgba(255,204,0,.045) 0 2px, transparent 2px 14px);
}
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 { color: var(--white); margin-bottom: .25em; }
.page-head p { color: rgba(255,255,255,.88); font-size: 1.1rem; max-width: 62ch; }
.page-head .eyebrow { color: var(--gold); }

.crumbs { font-size: .85rem; color: rgba(255,255,255,.65); margin-bottom: 1rem; }
.crumbs a { color: rgba(255,255,255,.85); }
.crumbs a:hover { color: var(--gold); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--brand-deep);
  color: rgba(255,255,255,.72);
  padding: 64px 0 0;
  font-size: .95rem;
  border-top: 6px solid var(--accent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
}
.site-footer h4 { color: var(--gold); font-size: 1.06rem; letter-spacing: .05em; margin-bottom: 1.1em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: rgba(255,255,255,.76); }
.site-footer a:hover { color: var(--gold); }
.site-footer .logo-name { color: var(--white); }
.site-footer .logo-sub { color: rgba(255,255,255,.6); }
.site-footer .logo-mark { background: rgba(255,255,255,.1); color: var(--gold); }

.footer-contact { display: grid; gap: 12px; }
.footer-contact div { display: flex; gap: .7em; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; color: var(--gold); flex: none; margin-top: 3px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14);
  padding: 22px 0 34px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .85rem;
  color: rgba(255,255,255,.52);
}

/* ==========================================================================
   Mobile sticky call bar — major conversion driver for trades
   ========================================================================== */

.call-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--brand-deep);
  box-shadow: 0 -3px 18px rgba(0,0,0,.3);
  border-top: 3px solid var(--accent);
}
.call-bar a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: 15px 8px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
}
.call-bar a + a { border-left: 1px solid rgba(255,255,255,.18); }
.call-bar a.primary { background: var(--accent); color: var(--accent-text); }
.call-bar svg { width: 19px; height: 19px; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1420px) {
  .header-phone { display: none; }
  .nav { gap: 22px; }
}

@media (max-width: 1040px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }

  .nav-toggle { display: flex; }
  .nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .nav.open { display: flex; }
  .nav a {
    padding: 15px var(--gutter);
    border-bottom: 1px solid var(--line);
    border-left: 4px solid transparent;
  }
  .nav a:last-child { border-bottom: 0; }
  .nav a:hover, .nav a[aria-current="page"] {
    border-bottom-color: var(--line);
    border-left-color: var(--accent);
    background: var(--tint);
  }
  .site-header .wrap { position: relative; }

  .call-bar { display: flex; }
  body { padding-bottom: 56px; }
  .topbar-badges { display: none; }
  .topbar .wrap { justify-content: center; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  /* The sticky bottom call bar already carries both CTAs on phones,
     so the header keeps just the wordmark and the menu button. */
  .header-cta .btn { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .checklist.cols { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .cta-band .wrap { flex-direction: column; align-items: flex-start; }
  .quote-card { padding: 24px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
