/* Taylor Heating and Air Solutions — Enterprise-ready baseline styles
   Targets: performance, accessibility (WCAG 2.2 AA), SEO-friendly layout.
   No external frameworks.
*/

:root{
  --bg:#ffffff;
  --surface:#f6f7f9;
  --text:#111318;
  --muted:#5b6472;
  --border:#d8dde6;

  /* Brand tokens (matched to Matt's current site) */
  --brand:#BA0005;        /* primary red */
  --brand-hover:#9E0004;  /* hover red */
  --brand2:#000000;       /* ink */
  --accent:#19B6EB;       /* secondary / hover blue */

  --shadow: 0 10px 30px rgba(17,19,24,.08);
  --radius: 16px;

  --max: 1140px;
  --gutter: 20px;

  /* Focus — solid ring with offset for WCAG 2.4.11 AA */
  --focus: 3px solid rgba(186,0,5,.7);
  --focus-offset: 3px;
}

/* ── Reset ── */
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: "Source Sans 3", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background:var(--bg);
  color:var(--text);
  line-height:1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,h2,h3,.brand-name strong{
  font-family: "Source Sans 3", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}
img{max-width:100%; height:auto}
a{color:inherit}
p{margin:0 0 1rem}
ul{margin:0 0 1rem; padding-left:1.2rem}
small{color:var(--muted)}
hr{border:none; border-top:1px solid var(--border); margin:24px 0}

/* Improve link discoverability in body copy */
.prose a{ color: var(--brand); text-decoration: underline; }
.prose a:hover{ text-decoration-thickness: 2px; }

/* ── Global focus handling ── */
:focus-visible{
  outline: var(--focus);
  outline-offset: var(--focus-offset);
}
/* Fallback for browsers without :focus-visible */
:focus{
  outline: var(--focus);
  outline-offset: var(--focus-offset);
}
:focus:not(:focus-visible){ outline: none; }

/* ── Layout ── */
.container{
  width:min(var(--max), calc(100% - 2*var(--gutter)));
  margin-inline:auto;
}
.stack > * + *{margin-top: 14px}
.grid{
  display:grid;
  gap:18px;
}

/* ── Skip link (clip pattern — no horizontal scroll risk) ── */
.skip-link{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}
.skip-link:focus{
  position:absolute;
  left: var(--gutter);
  top: var(--gutter);
  width:auto;
  height:auto;
  padding:10px 12px;
  margin:0;
  overflow:visible;
  clip:auto;
  white-space:normal;
  background:#fff;
  border:1px solid var(--border);
  border-radius:12px;
  z-index:1000;
}

/* ── Header / nav ── */
header{
  position:sticky;
  top:0;
  z-index:200;
  background:rgba(255,255,255,.96);
  border-bottom:1px solid var(--border);
}
@supports (backdrop-filter: blur(10px)){
  header{
    background:rgba(255,255,255,.92);
    backdrop-filter: blur(10px);
  }
}

.navbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 0;
  gap:14px;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
}
.brand img {
  width: 230px;
  height: auto;
  filter: drop-shadow(0 1px 4px rgba(17,19,24,.14));
}
.brand-mark{
  width:38px;
  height:38px;
  border-radius:12px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: var(--shadow);
}
.brand-name{
  display:flex;
  flex-direction:column;
  line-height:1.1;
}
.brand-name strong{font-size:15px}
.brand-name span{font-size:12px; color:var(--muted)}

.navlinks{
  display:flex;
  flex:1;
  justify-content:center;
  gap:16px;
  align-items:center;
}
/* All four nav links — solid Taylor-blue pills */
.navlinks a{
  text-decoration:none;
  font-size:14px;
  font-weight:600;
  padding:10px 12px;
  border-radius:8px;
  background: #0053BA;
  border: 1px solid #0053BA;
  color: #fff;
  transition: border-color 140ms ease, background 140ms ease;
}
.navlinks a:hover,
.navlinks a:focus-visible{
  background: #0047A3;
  border-color: #0047A3;
  color: #fff;
}
/* Active/current page — darkest blue pill */
.navlinks a[aria-current="page"]{
  background: #003F91;
  border-color: #003F91;
}

.nav-cta{
  display:flex;
  gap:10px;
  align-items:center;
}
/* Phone button — solid red, matching Schedule Service */
.nav-cta .pill:not(.primary){
  background: #BA0005;
  border-color: #BA0005;
  color: #fff;
  box-shadow: none;
}
.nav-cta .pill:not(.primary):hover{
  background: #980004;
  border-color: #980004;
  box-shadow: none;
}
.nav-cta .pill:not(.primary):focus-visible{
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* ── Pill (buttons + links) ── */
.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius: 8px;
  border:1px solid var(--border);
  text-decoration:none;
  font-weight:600;
  font-size:14px;
  background:#fff;
  cursor:pointer;
}
.pill:hover{box-shadow: 0 8px 18px rgba(17,19,24,.08)}
.pill.primary{
  border-color: transparent;
  background: var(--brand);
  color:#fff;
}
.pill.primary:hover{ background: var(--brand-hover); }

/* ── Hamburger ── */
.hamburger{
  display:none;
  border:1px solid var(--border);
  background:#fff;
  border-radius:12px;
  padding:10px 12px;
  cursor:pointer;
}
.hamburger span{display:block; width:18px; height:2px; background:var(--text); margin:4px 0}

/* ── Active / press feedback ── */
@media (prefers-reduced-motion: no-preference){
  .pill:active, .hamburger:active{ transform: scale(0.97); }
}

/* ── Mobile panel ── */
.mobile-panel{
  display:none;
  border-top:1px solid var(--border);
  background:#fff;
}
.mobile-panel[aria-hidden="false"]{display:block}
.mobile-panel .panel-inner{
  padding: 12px 0 18px;
  display:grid;
  gap:10px;
}
.mobile-panel a{
  text-decoration:none;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--border);
}
.mobile-panel a.primary{
  background:var(--brand);
  color:#fff;
  border-color:transparent;
}
.mobile-panel a:hover{background:var(--surface)}
.mobile-panel a.primary:hover{background: var(--brand-hover)}

/* ── Hero ── */
.hero{
  padding: 44px 0 26px;
}
.hero-inner{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 22px;
  align-items:center;
}
.hero-inner > *{ min-width:0 }

.eyebrow{
  display:inline-flex;
  gap:8px;
  align-items:center;
  color: var(--brand2);
  background: rgba(186,0,5,.08);
  border:1px solid rgba(186,0,5,.15);
  border-radius:999px;
  padding:6px 10px;
  font-weight:700;
  font-size:12px;
}
h1{
  font-size: clamp(28px, 3.5vw, 44px);
  line-height:1.1;
  margin:12px 0 10px;
  letter-spacing:-0.02em;
}
.lead{
  color:var(--muted);
  font-size: 16px;
  max-width: 58ch;
}
.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top: 14px;
}
.hero-city {
  color: #fff;
  font-weight: 700;
}
.hero-card{
  border:1px solid var(--border);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.hero-card h2{font-size:16px; margin:0 0 8px}
.hero-card .mini{
  display:grid;
  gap:10px;
}
.kpis{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.kpi{
  border:1px solid var(--border);
  border-radius: 14px;
  padding:12px;
  background:#fff;
}
.kpi strong{display:block; font-size:16px}
.kpi span{display:block; font-size:12px; color:var(--muted)}

/* ── Trust bar ── */
.trustbar{
  padding: 14px 0 0;
}
.trust-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius: 999px;
  background:var(--surface);
  border:1px solid var(--border);
  font-size:13px;
  color:var(--muted);
}

/* ── Section ── */
.section{
  padding: 56px 0;
}
.section-title{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  margin-bottom: 24px;
}
.section-title h2{
  margin:0;
  font-size: 26px;
  letter-spacing:-0.01em;
}
.section-title p{margin:0; color:var(--muted); max-width: 70ch}

/* ── Cards ── */
.cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.cards > *{ min-width:0 }

.card{
  background:#fff;
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 6px 18px rgba(17,19,24,.05);
}
.card h3{margin:0 0 8px; font-size:16px}
.card p{color:var(--muted); margin:0 0 12px}
.card a{color:var(--brand); text-decoration:none; font-weight:700}
.card a:hover{text-decoration:underline}

/* ── Split layout ── */
.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items:start;
}
.split > *{ min-width:0 }

/* ── List panel ── */
.list{
  border:1px solid var(--border);
  background: #fff;
  border-radius: var(--radius);
  padding: 14px 16px;
}
.list h3{margin:0 0 8px}
.checklist{
  list-style:none;
  padding-left:0;
  margin:0;
  display:grid;
  gap:10px;
}
.checklist li{
  display:flex;
  gap:10px;
  align-items:flex-start;
}
.dot{
  width:10px; height:10px; border-radius:999px;
  background: var(--accent);
  margin-top:6px;
  flex:0 0 auto;
}

/* ── CTA band ── */
.cta{
  background: linear-gradient(135deg, rgba(186,0,5,.10), rgba(25,182,235,.10));
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
}
.cta-inner{
  padding: 32px 0;
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
  align-items:center;
}
.cta-inner h2{margin:0 0 8px; font-size: 24px}
.cta-inner p{margin:0; color:var(--muted)}
.cta-actions{display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end}

/* ── Footer ── */
footer{
  padding: 28px 0;
}
.footer-grid > div:first-child img {
  width: 250px;
  max-width: 100%;
  height: auto;
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 18px;
}
.footer-grid h3{margin:0 0 10px; font-size:14px}
.footer-grid a{color:var(--muted); text-decoration:none}
.footer-grid a:hover{text-decoration:underline}
.footer-bottom{
  margin-top: 18px;
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  gap:10px;
  color:var(--muted);
  font-size:12px;
}
.footer-credit{
  margin:6px 0 0;
  text-align:center;
  font-size:11px;
  color:var(--muted);
  opacity:.7;
}
.footer-credit a{
  color:inherit;
  text-decoration:underline;
  text-underline-offset:2px;
  text-decoration-color:rgba(255,255,255,.3);
}

/* ── Form ── */
.form{
  display:grid;
  gap:12px;
}
.field{
  display:grid;
  gap:6px;
}
label{font-weight:700; font-size:14px}
input, select, textarea{
  width:100%;
  padding:12px 12px;
  border-radius: 14px;
  border:1px solid var(--border);
  font: inherit;
  background:#fff;
}
textarea{min-height: 120px; resize:vertical}
.help{font-size:12px; color:var(--muted)}
.error{
  border-color:#c33030 !important;
  background: #fff7f7;
}
.error-text{color:#c33030; font-size:12px; margin:0}
.notice{
  border:1px solid rgba(0,168,126,.25);
  background: rgba(0,168,126,.08);
  border-radius: var(--radius);
  padding: 12px 14px;
}

/* ── Table (wrapper approach for rounded corners) ── */
.table-wrap{
  border-radius: var(--radius);
  overflow:hidden;
  border:1px solid var(--border);
}
.table{
  width:100%;
  border-collapse:collapse;
}
.table th, .table td{
  text-align:left;
  padding: 10px 12px;
  border-bottom:1px solid var(--border);
  vertical-align:top;
}
.table tr:last-child td{ border-bottom:none; }
.table th{background:var(--surface); font-size:13px}
.table td{font-size:14px; color:var(--muted)}

/* ── Sticky call bar ── */
.sticky-call{
  position: fixed;
  bottom: calc(14px + env(safe-area-inset-bottom));
  right:  calc(14px + env(safe-area-inset-right));
  z-index: 300;
  display:none;
}
.sticky-call a{
  box-shadow: var(--shadow);
}

/* ── Responsive ── */
/* Nav breakpoint: 1024px gives the pill-style navlinks (wider than the old
   text links) enough room. Logo(230) + 4 nav pills(~370) + CTA pills(~280)
   + gaps needs ~930px of container; a 1024px viewport gives 984px. */
@media (max-width: 1024px){
  .navlinks{display:none}
  .hamburger{display:inline-block}
}
@media (max-width: 920px){
  body{ padding-bottom: calc(72px + env(safe-area-inset-bottom)); } /* clear sticky-call bar */
  .hero-inner{grid-template-columns:1fr; }
  .cta-inner{grid-template-columns:1fr; }
  .cta-actions{justify-content:flex-start}
  .cards{grid-template-columns:1fr; }
  .split{grid-template-columns:1fr; }
  .footer-grid{grid-template-columns:1fr; }
  .sticky-call{display:block}
}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  *{transition:none !important; animation:none !important}
}

/* =========================
   HERO: BRANDED ENTERPRISE TREATMENT — homepage only
   Supersedes the .hero--image approach.
   Scoped to .hero--brand; service-page .hero rules are untouched.
   ========================= */

/* Global: prevent accidental horizontal scroll */
html, body { overflow-x: hidden; }

/* Section: deep charcoal gradient, brand-red top accent */
.hero--brand {
  background: linear-gradient(155deg, #060E1A 0%, #0C2240 38%, #0E1929 65%, #0D1B2A 100%);
  border-top: 3px solid var(--brand);
  padding: 60px 0 52px;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

/* Two-column: content left, trust card right */
.hero--brand .hero-inner {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}

/* Eyebrow: darker Taylor blue pill, white text, red border */
.hero--brand .eyebrow {
  color: rgba(255,255,255,.95);
  background: #0053BA;   /* matches nav-link blue — dark enough to feel premium on navy */
  border-color: var(--brand);
  font-size: 15px;
  padding: 8px 20px;
}
@media (max-width: 620px) {
  .hero--brand .eyebrow {
    font-size: 12px;
    padding: 7px 14px;
  }
}

/* H1: white, tight leading */
.hero--brand h1 {
  color: #ffffff;
  font-size: clamp(28px, 3.8vw, 50px);
  line-height: 1.06;
  letter-spacing: -0.025em;
}

/* Lead: softened white */
.hero--brand .lead {
  color: rgba(255,255,255,.72);
  font-size: 17px;
  line-height: 1.6;
  max-width: 50ch;
  margin-bottom: 0;
}

/* CTA row */
.hero--brand .hero-actions {
  margin-top: 26px;
  gap: 12px;
}

/* Primary CTA: brand red, larger */
.hero--brand .hero-actions .pill.primary {
  padding: 13px 24px;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

/* Secondary CTA: white ghost outline */
.hero--brand .hero-actions .pill:not(.primary) {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.4);
  color: #ffffff;
  padding: 13px 24px;
  font-size: 15px;
  font-weight: 700;
}

.hero--brand .hero-actions .pill:not(.primary):hover {
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.6);
  box-shadow: none;
}

/* Tertiary hero link — quieter than pill CTAs */
.hero--brand .hero-actions .hero-tertiary-link {
  color: rgba(255,255,255,.55);
  font-size: 13px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255,255,255,.25);
  padding: 2px 0;
  margin-top: 4px;
  align-self: flex-start;
}
.hero--brand .hero-actions .hero-tertiary-link:hover {
  color: rgba(255,255,255,.85);
  text-decoration-color: rgba(255,255,255,.55);
}

/* Trust card: white panel on dark bg, echoes section red accent */
.hero--brand .hero-trust-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--brand);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: 0 8px 40px rgba(0,0,0,.25);
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero--brand .trust-items {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.hero--brand .trust-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--heading);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.hero--brand .trust-item::before {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
  margin-top: 4px;
}

.hero--brand .service-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.hero--brand .service-chip {
  font-size: 11.5px;
  font-weight: 700;
  color: #0a7da8;
  background: rgba(25,182,235,.10);
  border: 1px solid rgba(25,182,235,.25);
  border-radius: 999px;
  padding: 5px 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Mobile: single column, full-width CTAs */
@media (max-width: 920px) {
  .hero--brand {
    padding: 44px 0 40px;
  }

  .hero--brand .hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero--brand .hero-actions {
    flex-direction: column;
  }

  .hero--brand .hero-actions .pill,
  .hero--brand .hero-actions .pill:not(.primary) {
    width: 100%;
    justify-content: center;
    padding: 15px 20px;
    font-size: 16px;
  }
}

/* ===== Primary CTA Row (below H1) ===== */
.primary-cta-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.5rem 1rem;
}

.primary-cta-row .btn {
  flex: 0 0 auto;
  min-width: 220px;
  max-width: 340px;
  width: auto;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 1rem 1.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
  transform: translateZ(0);
}

/* Force hover grow effect */
.primary-cta-row a.btn:hover,
.primary-cta-row a.btn:focus-visible {
  transform: scale(1.06);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Hover / Focus grow effect */
.primary-cta-row .btn:hover,
.primary-cta-row .btn:focus-visible {
  transform: scale(1.06);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .primary-cta-row .btn {
    transition: none;
  }
  .primary-cta-row .btn:hover,
  .primary-cta-row .btn:focus-visible {
    transform: none;
    box-shadow: none;
  }
}

/* Button variants (keep your existing colors or use these) */
.primary-cta-row .btn-primary {
  background-color: #dc2626;
  color: #fff;
  border: 2px solid #dc2626;
}

.primary-cta-row .btn-primary:hover,
.primary-cta-row .btn-primary:focus-visible {
  background-color: #b91c1c;
  border-color: #b91c1c;
}

/* Updated CTA Button Colors */
.primary-cta-row .btn-emergency,
.primary-cta-row .btn-primary {
  background-color: #c41e3a !important;  color: #fff;
  border: 2px solid #c41e3a;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.primary-cta-row .btn-emergency:hover,
.primary-cta-row .btn-emergency:focus-visible,
.primary-cta-row .btn-primary:hover,
.primary-cta-row .btn-primary:focus-visible {
  background-color: #a3182f;
  border-color: #a3182f;
  transform: scale(1.06);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Mobile: stack buttons if needed */
@media (max-width: 540px) {
  .primary-cta-row {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
  }
  
  .primary-cta-row .btn {
    min-width: unset;
    max-width: none;
    width: 100%;
  }
}

/* =========================
   CTA row sizing + one-line phone
   ========================= */

.primary-cta-row{
  gap: 16px; /* a little more breathing room */
}

.primary-cta-row .btn{
  min-width: 320px;           /* makes both buttons longer */
  padding: 16px 22px;         /* increases button size */
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;                  /* space between icon + text */
  white-space: nowrap;        /* prevents wrapping */
  line-height: 1;             /* keeps the pill tight */
}

/* If mobile gets too wide, relax min-width so they fit */
@media (max-width: 420px){
  .primary-cta-row .btn{
    min-width: 260px;
    padding: 14px 18px;
  }
}

/* =========================
   Primary CTA Row (below H1)
   Size + one-line phone + hover grow
   ========================= */

.primary-cta-row{
  margin-top: 14px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.primary-cta-row .btn{
  min-width: 340px;           /* longer buttons */
  padding: 16px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;        /* phone stays on one line */
  line-height: 1;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  transform: translateZ(0);
}

.primary-cta-row .btn:hover,
.primary-cta-row .btn:focus-visible{
  transform: scale(1.06);
}

@media (max-width: 420px){
  .primary-cta-row .btn{
    min-width: 260px;
    padding: 14px 18px;
  }
}

@media (prefers-reduced-motion: reduce){
  .primary-cta-row .btn{
    transition: none;
  }
  .primary-cta-row .btn:hover,
  .primary-cta-row .btn:focus-visible{
    transform: none;
  }
}

/* =========================
   FIX: CTA row phone button collapsing
   ========================= */

.primary-cta-row{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.primary-cta-row .btn{
  flex: 0 0 auto;          /* do NOT shrink */
  min-width: 340px;        /* make both buttons long */
  white-space: nowrap;     /* keep phone on one line */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* =========================
   Consent banner
   ========================= */
.consent-banner{position:fixed;bottom:0;left:0;right:0;z-index:10000;background:#1a1a1a;color:#f0eeec;padding:16px 0;font-family:'Source Sans 3',system-ui,sans-serif;font-size:14px;box-shadow:0 -2px 12px rgba(0,0,0,.25);}
.consent-inner{max-width:1140px;margin:0 auto;padding:0 20px;display:flex;align-items:center;gap:16px;flex-wrap:wrap;}
.consent-inner p{margin:0;flex:1 1 400px;line-height:1.5;}
.consent-inner a{color:#7eb8ff;text-decoration:underline;}
.consent-actions{display:flex;gap:10px;flex-shrink:0;}
.consent-actions button{cursor:pointer;border:none;border-radius:4px;padding:8px 20px;font-size:14px;font-weight:600;font-family:inherit;transition:background .15s;}
#consent-accept{background:#E70918;color:#fff;}
#consent-accept:hover{background:#c5070f;}
#consent-reject{background:transparent;color:#f0eeec;border:1px solid rgba(255,255,255,.3);}
#consent-reject:hover{background:rgba(255,255,255,.08);}

/* =========================
   FAQ accordion
   ========================= */
.faq-list{max-width:800px;margin:0 auto;}
.faq-item{border-bottom:1px solid #e0ddd9;padding:0;}
.faq-item summary{cursor:pointer;padding:18px 0;font-size:1.05rem;list-style:none;display:flex;justify-content:space-between;align-items:center;}
.faq-item summary::-webkit-details-marker{display:none;}
.faq-item summary::after{content:'+';font-size:1.4rem;font-weight:300;color:#6b6560;transition:transform .2s;flex-shrink:0;margin-left:16px;}
.faq-item[open] summary::after{content:'\2212';}
.faq-answer{padding:0 0 18px;line-height:1.6;color:#4a4a4a;}
.faq-answer p{margin:0;}

/* ---- Homepage FAQ — inset container + alternating row shading ---- */
section[aria-labelledby="faq-title"] .container {
  padding-inline: 32px;
}
@media (max-width: 920px) {
  section[aria-labelledby="faq-title"] .container {
    padding-inline: 16px;
  }
}
section[aria-labelledby="faq-title"] .faq-list {
  border-top: 1px solid #e0ddd9;
}
section[aria-labelledby="faq-title"] .faq-item {
  padding-inline: 14px;
}
section[aria-labelledby="faq-title"] .faq-item:nth-child(odd) {
  background: #F0F4F8;
}

/* =========================
   TYPOGRAPHY SYSTEM — Source Sans 3 with loaded weights only
   Uses 400/600/700 (the weights actually loaded from Google Fonts).
   No synthetic 800/900 — those produce harsh, stamped headings.
   Replaces the previous TYPOGRAPHY SYSTEM block.
   Append-at-end-of-main.css ordering applies — keep this as the last block.
   ========================= */

/* ---- Heading color tokens ---- */
:root{
  --heading-strong: #0B1220;   /* H1 — deep slate */
  --heading: #0F172A;          /* H2/H3 — slate charcoal */
  --heading-muted: #1F2937;    /* footer columns, micro-labels */
}

/* ---- Defense-in-depth: ensure Source Sans 3 on all headings ----
   Base rule at line 42 already removes Bebas; this is belt-and-braces. */
h1, h2, h3, h4, h5, h6,
.brand-name strong{
  font-family: "Source Sans 3", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif !important;
}

/* ---- H1 (hero, page titles) ---- */
h1{
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--heading-strong);
  font-size: clamp(30px, 4vw, 46px);
}

/* ---- Section H2 ("Proudly serving North Alabama" etc.) ---- */
.section-title h2{
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--heading);
  font-size: clamp(22px, 2.4vw, 28px);
  margin: 0;
}

/* ---- CTA band H2 ---- */
.cta-inner h2{
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--heading-strong);
  font-size: clamp(22px, 2.4vw, 28px);
}

/* ---- Hero card H2 ("What to expect" / "Request a callback") ---- */
.hero-card h2{
  font-weight: 700;
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--heading);
  margin: 0 0 10px;
}

/* ---- Card titles (.card h3) ---- */
.card h3{
  font-weight: 700;
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--heading);
  margin: 0 0 10px;
}

/* ---- List panel sub-headings (.list h3) ---- */
.list h3{
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--heading);
  margin: 0 0 10px;
}

/* ---- Footer column headings — small uppercase tracked label ---- */
.footer-grid h3{
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--heading-muted);
  margin: 0 0 12px;
}

/* ---- KPI micro-labels in hero card ---- */
.kpi strong{
  font-family: "Source Sans 3", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  color: var(--heading);
}

/* ---- FAQ headings (homepage pattern: <summary><strong>) ---- */
.faq-item summary strong,
details.list summary strong{
  font-family: "Source Sans 3", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.005em;
  color: var(--heading);
}

/* ---- AC Repair FAQ pattern: <details class="list"> direct summary ---- */
details.list > summary{
  font-weight: 700;
  font-size: 16px;
  color: var(--heading);
}

/* ---- Eyebrow refinement ---- */
.eyebrow{
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 12px;
}

/* ---- Trust badges — stronger weight, less washed-out color ---- */
.badge{
  font-size: 13px;
  font-weight: 600;
  color: var(--heading);
  background: #fff;
  border-color: var(--border);
  padding: 9px 12px;
}

/* ---- Section title spacing ---- */
.section-title{
  margin-bottom: 22px;
}

/* ---- Section intro accent (red bar + tightened heading/subtitle) ---- */
.section-intro {
  max-width: 760px;
}
.section-intro::before {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  background: var(--brand);
  border-radius: 999px;
  margin-bottom: 14px;
}
.section-intro h2 {
  margin: 0 0 8px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.section-intro p {
  max-width: 66ch;
  margin-top: 0;
}
section[aria-labelledby="faq-title"] .section-intro::before {
  margin-inline: auto;
}

.section{
  padding: 44px 0;
}

/* ---- Body lead text ---- */
.lead{
  color: #475569;
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
}

/* ---- Card body copy ---- */
.card p{
  color: #475569;
  line-height: 1.55;
}

/* ---- Checklist label refinement ---- */
.checklist li strong{
  font-family: "Source Sans 3", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-weight: 700;
  color: var(--heading);
  font-size: 15px;
}
.checklist li .help{
  color: #475569;
  font-size: 14px;
  line-height: 1.5;
}

/* ---- "What makes Taylor different" — audience panels (homepage only) ---- */

/* Cool-tinted background zone for this section */
section[aria-labelledby="diff-title"] {
  background: #eef5ff;
}

/* Both panels: more padding, tighter radius, elevated shadow */
section[aria-labelledby="diff-title"] .split .list {
  padding: 26px 24px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(17,19,24,.08), 0 10px 28px rgba(17,19,24,.14);
}
section[aria-labelledby="diff-title"] .checklist {
  gap: 16px;
}

/* Homeowners panel — blue full border */
section[aria-labelledby="diff-title"] .split .list:first-child {
  border: 3px solid #0047A3;
}
section[aria-labelledby="diff-title"] .split .list:first-child h3 {
  color: #0047A3;
  font-size: 20px;
}
section[aria-labelledby="diff-title"] .split .list:first-child .dot {
  background: #0047A3;
  border-radius: 3px;
}

/* Property managers panel — red full border */
section[aria-labelledby="diff-title"] .split .list:last-child {
  border: 3px solid rgba(186,0,5,.72);
}
section[aria-labelledby="diff-title"] .split .list:last-child h3 {
  color: var(--brand);
  font-size: 20px;
}
section[aria-labelledby="diff-title"] .split .list:last-child .dot {
  background: var(--brand);
  border-radius: 3px;
}

/* ---- Footer copyright row tightening ---- */
.footer-bottom{
  font-size: 13px;
}

/* ---- All proof/review cards — light grey interior ---- */
section[aria-labelledby="proof-title"] .card {
  background: #EEF2F6;
}

/* ---- Trust cards (proof section) — blue left+bottom accent ---- */
section[aria-labelledby="proof-title"] .card:not([aria-label^="Customer review"]) {
  border-left: 4px solid #0047A3;
  border-bottom: 4px solid #0047A3;
  border-top: 1px solid rgba(17,19,24,.12);
  border-right: 1px solid rgba(17,19,24,.12);
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(17,19,24,.08), 0 12px 28px rgba(17,19,24,.14);
}

/* ---- Reviews block — red left+bottom accent, prominent stars, Google badge ---- */
.card[aria-label^="Customer review"] {
  border-left: 4px solid var(--brand);
  border-bottom: 4px solid var(--brand);
  border-top: 1px solid rgba(17,19,24,.12);
  border-right: 1px solid rgba(17,19,24,.12);
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(17,19,24,.08), 0 12px 28px rgba(17,19,24,.14);
}
.card[aria-label^="Customer review"] h3{
  font-size: 16px;
  margin-bottom: 4px;
}
.card[aria-label^="Customer review"] p[aria-label$="stars"]{
  color: #F59E0B;
  font-size: 20px;
  letter-spacing: 2px;
  margin: 0 0 8px;
}
.card[aria-label^="Customer review"] .help {
  display: inline-flex;
  align-items: center;
  background: rgba(26,115,232,.08);
  color: #1A73E8;
  border: 1px solid rgba(26,115,232,.22);
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 600;
  margin-top: 8px;
}

/* ---- AC Repair: trust row inside hero, slightly more compact ---- */
.hero .trust-row .badge{
  font-size: 12.5px;
  padding: 8px 11px;
}

/* ---- Brand-name in nav ---- */
.brand-name strong{
  font-weight: 700;
  letter-spacing: -0.005em;
  font-size: 15px;
  color: var(--heading);
}

/* =========================
   PASS 1 ADDITIONS — homepage layout
   ========================= */

/* 4-column service cards grid — desktop only */
.cards-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 920px) { .cards-4 { grid-template-columns: 1fr; } }

/* Maintenance plan section — inset feature band on desktop */
.maint-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-left: 1px solid #C8D8F5;
  border-right: 1px solid #C8D8F5;
  margin-inline: 32px;
  border-radius: 12px;
}
@media (max-width: 920px) {
  .maint-section {
    margin-inline: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
}

/* Maintenance plan CTA panel — card elevation */
.maint-cta-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 1px 3px rgba(17,19,24,.06), 0 6px 20px rgba(17,19,24,.09);
}

/* Service card polish — homepage services section only */
.cards--service .card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  position: relative;
  border-left: 5px solid #0047A3;
  border-top: 5px solid #0047A3;
  border-right: 1px solid rgba(17,19,24,.1);
  border-bottom: 1px solid rgba(17,19,24,.1);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(17,19,24,.09), 0 12px 32px rgba(17,19,24,.16);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.cards--service .card:hover {
  border-left-color: #003380;
  border-top-color: #003380;
  border-right-color: rgba(25,182,235,.35);
  border-bottom-color: rgba(25,182,235,.35);
  box-shadow: 0 6px 12px rgba(17,19,24,.12), 0 20px 44px rgba(17,19,24,.20);
  transform: translateY(-3px);
}
.cards--service .card p {
  flex: 1;
  margin-bottom: 14px;
}
.cards--service .card a {
  margin-top: auto;
  font-size: 14px;
  position: relative;
  z-index: 1;
}

/* Stretched link: invisible ::after covers full card area */
.cards--service .card a::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
}

/* Focus: suppress default outline on link text; show ring on card boundary */
.cards--service .card a:focus-visible {
  outline: none;
}
.cards--service .card a:focus-visible::after {
  outline: var(--focus);
  outline-offset: 2px;
}

/* Area card polish — homepage areas-served section only */
.cards--area .card {
  display: flex;
  flex-direction: column;
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f7f8fa 42%, #edf1f5 100%);
  border-left: 4px solid rgba(186,0,5,.72);
  border-top: 4px solid rgba(186,0,5,.72);
  border-right: 1px solid rgba(17,19,24,.1);
  border-bottom: 1px solid rgba(17,19,24,.1);
  border-radius: 10px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.85),
    0 4px 12px rgba(15,23,42,.10),
    0 16px 34px rgba(15,23,42,.14);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.cards--area .card:hover {
  border-left-color: var(--brand);
  border-top-color: var(--brand);
  border-right-color: rgba(186,0,5,.18);
  border-bottom-color: rgba(186,0,5,.18);
  box-shadow: 0 6px 12px rgba(17,19,24,.12), 0 20px 44px rgba(17,19,24,.20);
  transform: translateY(-3px);
}
.cards--area .card p {
  flex: 1;
  margin-bottom: 12px;
}
.cards--area .card a {
  margin-top: auto;
  font-size: 14px;
  position: relative;
  z-index: 1;
}
.cards--area .card a::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
}
.cards--area .card a:focus-visible {
  outline: none;
}
.cards--area .card a:focus-visible::after {
  outline: var(--focus);
  outline-offset: 2px;
}

/* Video section polish */
.video-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  max-width: 600px;
  margin: 0 auto 28px;
}
.video-intro h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.015em;
}
.video-intro p {
  margin: 0;
  color: var(--muted);
  max-width: 56ch;
}
.eyebrow--blue {
  color: #0a7da8;
  background: rgba(25,182,235,.10);
  border-color: rgba(25,182,235,.25);
}
.video-frame {
  margin: 0 auto;
  box-shadow: 0 2px 6px rgba(17,19,24,.09), 0 14px 40px rgba(17,19,24,.15);
  border: 1px solid rgba(17,19,24,.10);
}

/* ── Service-area city pages: hero trust card variant ── */
.hero-card--trust {
  padding: 22px;
  position: relative;
  box-shadow:
    2px 3px 8px rgba(17,19,24,.07),
    3px 10px 24px rgba(17,19,24,.10),
    2px 20px 44px rgba(17,19,24,.07);
}
/* L-shaped red accent: top + left edges, transparent right + bottom */
.hero-card--trust::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-top: 3px solid var(--brand);
  border-left: 3px solid var(--brand);
  border-right: 3px solid transparent;
  border-bottom: 3px solid transparent;
  border-radius: var(--radius);
  pointer-events: none;
}
.hero-card--trust .dot {
  background: var(--brand);
}

/* Service card polish — city service-area pages (no stretched-link; normal flow) */
.cards--city .card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border-color: rgba(25,182,235,.18);
  box-shadow: 0 1px 3px rgba(17,19,24,.07), 0 6px 20px rgba(17,19,24,.11);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.cards--city .card:hover {
  border-color: rgba(25,182,235,.5);
  box-shadow: 0 4px 8px rgba(17,19,24,.10), 0 16px 40px rgba(17,19,24,.16);
  transform: translateY(-3px);
}
.cards--city .card p {
  flex: 1;
  margin-bottom: 14px;
}
.cards--city .card a {
  font-size: 14px;
}

/* ═══════════════════════════════════════════════════
   Phase 1: Homepage section rhythm & density pass
   ═══════════════════════════════════════════════════ */

/* ── Section band variants ── */
.section--surface {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section--blue {
  background: #EEF4FF;
  border-top: 1px solid #C8D8F5;
  border-bottom: 1px solid #C8D8F5;
}
/* Navy band: white .list cards float on dark background */
.section--navy {
  background: #0B1929;
}
.section--navy .list {
  box-shadow: 0 4px 24px rgba(0,0,0,.28);
}

/* Quality checklist card — red header band */
section[aria-labelledby="quality-title"] .split .list:first-child {
  padding: 0;
  overflow: hidden;
}
section[aria-labelledby="quality-title"] .split .list:first-child h2,
section[aria-labelledby="quality-title"] .split .list:last-child h3 {
  background: linear-gradient(105deg, #830003 0%, #A80005 34%, #BA0005 66%, #A10004 100%);
  color: #fff;
  margin: 0 !important;
  padding: 14px 20px;
  min-height: 72px;
  display: flex;
  align-items: center;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: normal;
  text-shadow: 0 1px 1px rgba(70,0,0,.28);
}
section[aria-labelledby="quality-title"] .split .list:first-child > .help {
  margin: 0;
  padding: 16px 20px 0;
}
section[aria-labelledby="quality-title"] .split .list:first-child > .checklist {
  padding: 12px 20px 20px;
}

/* Equal-height paired cards — stretch grid row, CTA anchored to bottom */
section[aria-labelledby="quality-title"] .split {
  align-items: stretch;
}
section[aria-labelledby="quality-title"] .split .list {
  display: flex;
  flex-direction: column;
}
section[aria-labelledby="quality-title"] .split .list:last-child .hero-actions {
  margin-top: auto;
}

/* "What we service" — +1px optical compensation to match checklist header visually */
section[aria-labelledby="quality-title"] .split .list:last-child h3 {
  font-size: 21px;
}

/* "What we service" card — red header band + structured body */
section[aria-labelledby="quality-title"] .split .list:last-child {
  padding: 0;
  overflow: hidden;
}
section[aria-labelledby="quality-title"] .service-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 20px 20px;
  gap: 12px;
}
section[aria-labelledby="quality-title"] .service-card-body > ul {
  margin: 0;
  padding-left: 20px;
}
section[aria-labelledby="quality-title"] .urgent-callout {
  background: rgba(186,0,5,.04);
  border: 1px solid rgba(186,0,5,.18);
  border-radius: 8px;
  padding: 12px 14px;
  margin-top: 10px;
}
section[aria-labelledby="quality-title"] .urgent-title {
  margin: 0 0 8px;
  font-size: 15px;
}
section[aria-labelledby="quality-title"] .urgent-title strong {
  color: var(--brand);
}
section[aria-labelledby="quality-title"] .urgent-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
section[aria-labelledby="quality-title"] .urgent-chips span {
  background: rgba(186,0,5,.07);
  border: 1px solid rgba(186,0,5,.22);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #850003;
}

/* ── Post-hero trust strip ── */
.trust-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 11px 0;
}
.trust-strip__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  align-items: center;
  justify-content: center;
}
.trust-strip__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.trust-strip__item::before {
  content: '✓';
  color: #0053BA;
  font-weight: 700;
  font-size: 13px;
}

/* ── Maintenance plan price badge ── */
.price-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  margin: 10px 0 16px;
}
.price-badge__amount {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 48px;
  color: #0053BA;
  line-height: 1;
  letter-spacing: 0.02em;
}
.price-badge__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

/* ── Video section: center intro text ── */
.video-intro {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 24px;
}
.video-intro h2 { margin: 8px 0 10px; }
.video-intro p { margin: 0 auto; max-width: 56ch; }

/* ── Phase 1 mobile overrides ── */
@media (max-width: 920px) {
  .section { padding: 40px 0; }
  .price-badge__amount { font-size: 36px; }
}

/* ── Print / PDF rendering ──
   Ensures the desktop nav is visible and the dark hero background prints
   correctly regardless of the paper size the PDF tool uses. */
@media print {
  .navlinks { display: flex !important; }
  .hamburger { display: none !important; }
  .sticky-call { display: none !important; }
  .mobile-panel { display: none !important; }
}

/* =========================
   HOMEPAGE: Integrated dark header / hero
   body:has(.hero--brand) fires only when .hero--brand is present (homepage).
   All other pages keep the default white sticky header.
   Preserves: 1024px nav breakpoint · print-color-adjust · @media print rules.
   Requires: :has() — Chrome 105+, Firefox 121+, Safari 15.4+.
             Older browsers fall back gracefully to the white header.
   ========================= */

/* 1. Replace the white header band with the hero's starting color */
body:has(.hero--brand) header {
  background: linear-gradient(105deg, #07101C 0%, #0F2341 60%, #0B1829 100%);
  border-top: 3px solid var(--brand);   /* red accent at page top */
  border-bottom: 3px solid var(--brand); /* red divider under header row */
}
/* Override the @supports backdrop-filter block for homepage */
@supports (backdrop-filter: blur(10px)) {
  body:has(.hero--brand) header {
    background: linear-gradient(105deg, #07101C 0%, #0F2341 60%, #0B1829 100%);
    backdrop-filter: none;
  }
}

/* 2. Remove the red accent that previously marked the header/hero junction;
      add a hairline separator at the hero/content boundary */
body:has(.hero--brand) .hero--brand {
  border-top: none;
  border-bottom: 3px solid var(--brand);
}

/* 3. Logo: 20% larger on desktop; capped at default size on mobile */
body:has(.hero--brand) .brand img {
  width: 276px;   /* 230px × 1.2 */
  filter: drop-shadow(0 1px 6px rgba(0,0,0,.5));
}
@media (max-width: 920px) {
  body:has(.hero--brand) .brand img {
    width: 230px; /* revert to default at tablet/mobile — avoids header overflow */
  }
}

/* 4. Hamburger: light border visible on dark bg */
body:has(.hero--brand) .hamburger {
  border-color: rgba(255,255,255,.25);
}

/* 5. Mobile panel: dark treatment to match the header */
body:has(.hero--brand) .mobile-panel {
  background: #0F1829;
  border-top-color: rgba(255,255,255,.1);
}
body:has(.hero--brand) .mobile-panel a {
  color: rgba(255,255,255,.88);
  border-color: rgba(255,255,255,.12);
}
body:has(.hero--brand) .mobile-panel a:hover {
  background: rgba(255,255,255,.08);
}
body:has(.hero--brand) .mobile-panel a.primary:hover {
  background: var(--brand-hover);
}

/* =========================
   GLOBAL INNER-PAGE POLISH
   Extends the homepage design system to all inner pages.
   All rules are conservative and additive — they do not redefine
   homepage-scoped blocks (hero--brand, cards--service, cards--area,
   section[aria-labelledby=…], hero-card--trust).
   ========================= */

/* ── Accessible visually-hidden utility ──
   Used in reviews/index.html h2#trust-band and hamburger sr-only spans. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── Inner-page hero: brand-red top accent + warm surface wash ──
   :not(.hero--brand) leaves the homepage hero completely untouched.
   Pairs with the existing .hero padding; does not override it. */
.hero:not(.hero--brand) {
  border-top: 3px solid var(--brand);
  background: linear-gradient(180deg, #f5f8fc 0%, #ffffff 70%);
}
@media (max-width: 920px) {
  .hero:not(.hero--brand) {
    padding: 36px 0 22px;
  }
}

/* ── Hero card: red top accent ──
   Homepage uses .hero-trust-card which already carries border-top: 3px solid var(--brand).
   Inner pages use .hero-card — this closes that visual gap.
   .hero-card--trust is excluded; it carries its own L-shaped ::before accent. */
.hero-card:not(.hero-card--trust) {
  border-top: 3px solid var(--brand);
}

/* ── Section heading: red accent bar ──
   Two selector branches cover the two inner-page structures:
   1. Most inner pages: .section-title > <div> (no class) > <h2>
   2. Areas-served pages: .section-title > <h2> direct child
   Homepage .section-intro divs are excluded via :not() — they already
   carry the red bar via .section-intro::before defined above. */
.section-title > div:not(.section-intro)::before,
.section-title > h2::before {
  content: "";
  display: block;
  width: 40px;
  height: 4px;
  background: var(--brand);
  border-radius: 999px;
  margin-bottom: 12px;
}

/* ── Card: global hover lift ──
   Sets a base transition for all .card elements.
   More-specific selectors (.cards--service .card, .cards--area .card,
   .cards--city .card) already define their own transitions and override
   via cascade specificity — this does not conflict with them. */
.card {
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(17,19,24,.10);
}
@media (prefers-reduced-motion: reduce) {
  .card               { transition: none; }
  .card:hover         { transform: none; box-shadow: 0 6px 18px rgba(17,19,24,.05); }
}

/* ── Card accent top-border modifiers (opt-in via HTML class) ── */
.card--blue { border-top: 3px solid #0047A3; }
.card--red  { border-top: 3px solid var(--brand); }

/* ── List panel: baseline lift ──
   More-specific rules (.section--navy .list, diff-title .split .list)
   override this via cascade. */
.list {
  box-shadow: 0 1px 4px rgba(17,19,24,.05);
}

/* ── Table wrap: lift to frame comparison tables ── */
.table-wrap {
  box-shadow: 0 2px 12px rgba(17,19,24,.06);
}

/* ── Footer: subtle surface tint for visual separation ── */
footer {
  background: var(--surface);
}

/* ── Reviews page: star rating + author styles ──
   Moved from inline <style> block in reviews/index.html. */
.review-stars  { color: #f5a623; font-size: 1.25rem; letter-spacing: 2px; margin-bottom: 8px; }
.review-author { font-size: 0.9rem; margin: 8px 0 2px; }

/* ── Nav-cta phone pill: prevent number from wrapping on narrow desktops ── */
.nav-cta .pill[href^="tel:"] {
  white-space: nowrap;
}