/* ==========================================================================
   Astra Plumbing LLC — Design System
   Navy #081B3A · Accent Blue #0A4D9E · White #FFFFFF
   Mobile-first, responsive, accessible. No build step required.
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* Core palette */
  --navy: #081B3A;
  --accent: #0A4D9E;
  --white: #FFFFFF;

  /* Extended functional palette */
  --navy-90: #0F2547;
  --accent-dark: #083E80;
  --slate: #3A4658;
  --cool-gray: #6B7688;
  --border-gray: #E2E7EF;
  --mist: #F5F8FC;
  --success: #1E9E6A;
  --emergency: #D8323C;
  --gold: #F5A623;

  /* Typography */
  --font-display: "Inter Tight", "Sora", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Spacing scale (8px base) */
  --s-1: 4px;  --s-2: 8px;  --s-3: 16px; --s-4: 24px;
  --s-5: 32px; --s-6: 48px; --s-7: 64px; --s-8: 96px; --s-9: 128px;

  /* Radius */
  --r-btn: 8px; --r-card: 12px; --r-input: 8px; --r-pill: 999px;

  /* Elevation */
  --sh-1: 0 2px 8px rgba(8,27,58,0.06);
  --sh-2: 0 8px 24px rgba(8,27,58,0.12);
  --sh-3: 0 12px 32px rgba(8,27,58,0.16);

  /* Layout */
  --content-max: 1280px;
  --wide-max: 1440px;
  --gutter: 24px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--slate);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ---------- Type Scale (mobile-first) ---------- */
.display { font-size: 2.375rem; line-height: 1.15; }   /* 38 */
h1, .h1 { font-size: 2rem; }                            /* 32 */
h2, .h2 { font-size: 1.625rem; }                        /* 26 */
h3, .h3 { font-size: 1.3125rem; font-weight: 600; }     /* 21 */
h4, .h4 { font-size: 1.1875rem; font-weight: 600; }     /* 19 */
.body-lg { font-size: 1.125rem; line-height: 1.7; }
.small { font-size: 0.875rem; color: var(--cool-gray); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  display: inline-block;
  margin-bottom: var(--s-3);
}

@media (min-width: 768px) {
  .display { font-size: 3.75rem; line-height: 1.07; } /* 60 */
  h1, .h1 { font-size: 2.75rem; }                     /* 44 */
  h2, .h2 { font-size: 2.125rem; }                    /* 34 */
  h3, .h3 { font-size: 1.5rem; }                      /* 24 */
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: 20px;
}
@media (min-width: 768px)  { .container { padding-inline: 40px; } }
@media (min-width: 1100px) { .container { padding-inline: 64px; } }

.section { padding-block: var(--s-7); }
@media (min-width: 768px) { .section { padding-block: var(--s-8); } }
.section--mist { background: var(--mist); }
.section--navy { background: var(--navy); }
.section--navy h2, .section--navy h3, .section--navy .display { color: var(--white); }
.section--navy p { color: rgba(255,255,255,0.85); }

.section-head { max-width: 760px; margin-bottom: var(--s-6); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: var(--s-3); color: var(--slate); font-size: 1.0625rem; }

/* Visually hidden (accessible) */
.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;
}

/* Skip link */
.skip-link {
  position: absolute; left: 8px; top: -48px; z-index: 1000;
  background: var(--accent); color: var(--white);
  padding: 10px 18px; border-radius: var(--r-btn);
  transition: top 0.2s ease; font-weight: 600;
}
.skip-link:focus { top: 8px; text-decoration: none; }

/* Visible keyboard focus everywhere */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.section--navy :focus-visible { outline-color: #8FC0FF; }

/* ---------- Buttons / CTAs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--s-2);
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: 14px 28px; border-radius: var(--r-btn);
  cursor: pointer; border: 2px solid transparent;
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, color 0.18s ease;
  min-height: 48px; text-align: center; line-height: 1.2;
}
.btn:hover { text-decoration: none; }

.btn--primary { background: var(--accent); color: var(--white); box-shadow: var(--sh-1); }
.btn--primary:hover { background: var(--accent-dark); box-shadow: var(--sh-2); transform: translateY(-1px); }

.btn--secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--secondary:hover { background: var(--navy); color: var(--white); }
.section--navy .btn--secondary,
.hero .btn--secondary { color: var(--white); border-color: rgba(255,255,255,0.6); }
.section--navy .btn--secondary:hover,
.hero .btn--secondary:hover { background: var(--white); color: var(--navy); border-color: var(--white); }

.btn--emergency { background: var(--emergency); color: var(--white); }
.btn--emergency:hover { background: #B8262F; transform: translateY(-1px); box-shadow: var(--sh-2); }

.btn--block { width: 100%; }

.text-link {
  font-weight: 600; color: var(--accent);
  display: inline-flex; align-items: center; gap: 6px;
}
.text-link::after { content: "\2192"; transition: transform 0.18s ease; }
.text-link:hover::after { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--white); }

.utility-bar {
  background: var(--navy); color: rgba(255,255,255,0.9);
  font-size: 0.8125rem;
}
.utility-bar .container {
  display: flex; align-items: center; justify-content: center;
  gap: var(--s-3); min-height: 36px; flex-wrap: wrap;
  padding-block: 6px; text-align: center;
}
.utility-bar a { color: var(--white); font-weight: 600; }
.utility-bar .sep { opacity: 0.4; }
.utility-bar .star { color: var(--gold); }
.utility-item--hide-sm { display: none; }
@media (min-width: 600px) { .utility-item--hide-sm { display: inline; } }

.nav-bar { box-shadow: var(--sh-1); }
.nav-bar .container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 76px; gap: var(--s-4);
}
@media (min-width: 1024px) and (max-width: 1440px) {
  .nav-bar .container { padding-inline: 24px; gap: 14px; }
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 800; font-size: 1.4rem;
  color: var(--navy); white-space: nowrap; letter-spacing: -0.02em;
  text-transform: uppercase;
}
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 48px; height: 44px; flex: none;
  object-fit: contain; display: block;
}
@media (min-width: 768px) {
  .brand { font-size: 1.65rem; }
  .brand .mark { width: 58px; height: 52px; }
}
.brand-name { line-height: 1; }
/* On dark backgrounds, keep logo readable; logo PNG is on transparent bg so it shows as-is */
.mobile-menu .brand, .site-footer .brand { color: var(--white); }
.site-footer .brand { font-size: 1.5rem; }
.site-footer .brand .mark { width: 56px; height: 50px; }

.primary-nav { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }

/* ---------- Prominent click-to-call phone (desktop) ----------
   One of the primary conversion elements of the header. */
.header-phone {
  display: none;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  text-decoration: none;
  padding: 6px 14px 6px 8px;
  border-radius: var(--r-btn);
  transition: color .15s ease, background .15s ease;
}
.header-phone:hover { text-decoration: none; color: var(--accent); background: var(--mist); }
.header-phone__ic {
  width: 42px; height: 42px; flex: none; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--accent));
  color: var(--white);
  display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(8,27,58,0.22);
}
.header-phone__txt { display: flex; flex-direction: column; line-height: 1.05; }
.header-phone__label {
  font-size: 0.7rem; font-weight: 600; color: var(--cool-gray);
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 3px;
}
.header-phone__num {
  font-family: var(--font-display);
  font-size: 1.45rem; font-weight: 800; color: var(--navy);
  letter-spacing: -0.01em; font-feature-settings: "tnum";
  white-space: nowrap;
}
.header-phone:hover .header-phone__num { color: var(--accent); }
.header-estimate { white-space: nowrap; }

/* Compact click-to-call icon (mobile only) */
.call-icon {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: var(--r-btn);
  border: 2px solid var(--navy); color: var(--navy);
  background: var(--white);
  transition: background .15s ease, color .15s ease;
}
.call-icon:hover { background: var(--navy); color: var(--white); }
.header-estimate { display: none; }

.nav-toggle {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border: 2px solid var(--border-gray);
  border-radius: var(--r-btn); background: var(--white); cursor: pointer;
  color: var(--navy);
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .call-icon { display: none; }
  .header-phone { display: inline-flex; }
  .header-estimate { display: inline-flex; }
  .header-actions { gap: 14px; }
  .primary-nav { display: flex; align-items: center; gap: 24px; }
  .primary-nav > ul {
    display: flex; align-items: center; gap: 22px; list-style: none;
    flex-wrap: nowrap; /* never wrap top-level nav items */
  }
  .primary-nav > ul > li {
    white-space: nowrap; /* keep multi-word labels on one line */
    flex-shrink: 0;      /* don't let labels get squeezed into wrapping */
  }
  .primary-nav a {
    color: var(--navy); font-weight: 600; font-size: 0.95rem;
    padding-block: 8px; position: relative;
    white-space: nowrap;
  }
  .primary-nav a::after {
    content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
    background: var(--accent); transition: width 0.2s ease;
  }
  .primary-nav a:hover { text-decoration: none; }
  .primary-nav a:hover::after,
  .primary-nav a[aria-current="page"]::after { width: 100%; }

  /* Dropdowns */
  .has-menu { position: relative; }
  .has-menu > .menu-trigger {
    background: none; border: none; font: inherit; cursor: pointer;
    color: var(--navy); font-weight: 600;
    display: inline-flex; align-items: center; gap: 4px;
    padding-block: 8px;
    white-space: nowrap;  /* CRITICAL: keep "Drain & Sewer" and "Water Heaters" on one line */
    flex-shrink: 0;
  }
  .has-menu > .menu-trigger::after { content: "\25BE"; font-size: 0.7em; color: var(--accent); }
  .dropdown {
    position: absolute; top: calc(100% + 10px); left: 0;
    background: var(--white); box-shadow: var(--sh-2);
    border-radius: var(--r-card); padding: 12px; min-width: 260px;
    display: grid; gap: 2px; opacity: 0; visibility: hidden;
    transform: translateY(6px); transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    border: 1px solid var(--border-gray);
  }
  .dropdown.dropdown--services { min-width: 300px; }
  .has-menu:hover .dropdown,
  .has-menu:focus-within .dropdown {
    opacity: 1; visibility: visible; transform: translateY(0);
  }
  .dropdown a {
    padding: 10px 12px; border-radius: 8px; color: var(--navy); font-weight: 500;
    font-size: 0.925rem;
  }
  .dropdown a::after { display: none; }
  .dropdown a:hover { background: var(--mist); }
}

/* ---------- Mobile menu overlay ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 200; background: var(--navy);
  color: var(--white); transform: translateX(100%);
  transition: transform 0.25s ease; display: flex; flex-direction: column;
  overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--navy-90);
}
.mobile-menu__head .brand { color: var(--white); }
.mobile-menu__close {
  background: none; border: none; color: var(--white); cursor: pointer;
  width: 44px; height: 44px; font-size: 1.6rem; display: grid; place-items: center;
}
.mobile-menu nav { padding: 12px 20px; flex: 1; }
.m-acc { border-bottom: 1px solid var(--navy-90); }
.m-acc > a, .m-acc__btn {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 16px 4px; color: var(--white); font-weight: 600;
  font-size: 1.05rem; background: none; border: none; cursor: pointer; font-family: inherit;
  text-align: left;
}
.m-acc > a:hover { text-decoration: none; }
.m-acc__btn::after { content: "+"; font-size: 1.3rem; color: #8FC0FF; }
.m-acc__btn[aria-expanded="true"]::after { content: "\2013"; }
.m-acc__panel { display: none; padding-bottom: 10px; }
.m-acc__panel.open { display: block; }
.m-acc__panel a {
  display: block; padding: 10px 4px 10px 16px;
  color: rgba(255,255,255,0.8); font-weight: 500; font-size: 0.95rem;
}
.mobile-menu__foot { padding: 20px; display: grid; gap: 12px; border-top: 1px solid var(--navy-90); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-90) 55%, var(--accent) 140%);
  color: var(--white); position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -10%; top: -20%;
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(10,77,158,0.45), transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; padding-block: var(--s-7); }
@media (min-width: 768px) { .hero .container { padding-block: var(--s-8); } }
.hero h1 { color: var(--white); max-width: 16ch; }
.hero p { color: rgba(255,255,255,0.88); font-size: 1.125rem; max-width: 54ch; margin-top: var(--s-4); }
.hero .eyebrow { color: #8FC0FF; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-5); }
.hero-trust {
  margin-top: var(--s-5); display: flex; flex-wrap: wrap; gap: var(--s-3);
  align-items: center; font-size: 0.9rem; color: rgba(255,255,255,0.85);
}
.hero-trust .dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,0.5); }
.hero-trust .star { color: var(--gold); }

/* ---------- Trust badge row ---------- */
.trust-row {
  display: grid; gap: var(--s-3);
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 768px) { .trust-row { grid-template-columns: repeat(5, 1fr); } }
.trust-card {
  background: var(--white); border: 1px solid var(--border-gray);
  border-radius: var(--r-card); padding: var(--s-4) var(--s-3);
  text-align: center; box-shadow: var(--sh-1);
}
.trust-card .tick { color: var(--success); font-size: 1.5rem; line-height: 1; }
.trust-card h3 { font-size: 1rem; margin-top: 10px; }
.trust-card p { font-size: 0.85rem; color: var(--cool-gray); margin-top: 4px; }

/* ---------- Service cards ---------- */
.card-grid { display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
@media (min-width: 600px) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px){ .card-grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px){ .card-grid--4 { grid-template-columns: repeat(4, 1fr); } }

.service-card {
  background: var(--white); border: 1px solid var(--border-gray);
  border-radius: var(--r-card); padding: var(--s-4);
  box-shadow: var(--sh-1); transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
  display: flex; flex-direction: column; gap: 10px;
}
.service-card:hover { box-shadow: var(--sh-2); transform: translateY(-3px); border-color: #C9D6EA; }
.service-card .ic {
  width: 44px; height: 44px; border-radius: 10px; flex: none;
  background: var(--mist); color: var(--accent);
  display: grid; place-items: center; font-size: 1.3rem;
}
.service-card h3 { font-size: 1.15rem; color: var(--navy); }
.service-card p { font-size: 0.95rem; color: var(--slate); flex: 1; }

/* ---------- Feature list (Why choose) ---------- */
.feature-list { display: grid; gap: var(--s-5); grid-template-columns: 1fr; }
@media (min-width: 768px) { .feature-list { grid-template-columns: 1fr 1fr; } }
.feature {
  display: flex; gap: var(--s-3); align-items: flex-start;
}
.feature .ic {
  width: 40px; height: 40px; flex: none; border-radius: 10px;
  background: var(--accent); color: var(--white); display: grid; place-items: center;
  font-weight: 700;
}
.section--navy .feature .ic { background: rgba(255,255,255,0.12); color: #8FC0FF; }
.feature h3 { font-size: 1.15rem; margin-bottom: 4px; }
.feature p { font-size: 0.95rem; }

/* ---------- Location grid ---------- */
.loc-grid {
  display: grid; gap: var(--s-2);
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 600px) { .loc-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .loc-grid { grid-template-columns: repeat(4, 1fr); } }
.loc-pill {
  display: flex; align-items: center; gap: 8px;
  background: var(--white); border: 1px solid var(--border-gray);
  border-radius: var(--r-btn); padding: 14px 16px; color: var(--navy);
  font-weight: 600; font-size: 0.95rem; transition: all 0.16s ease;
}
.loc-pill::before { content: "\1F4CD"; font-size: 0.9rem; }
.loc-pill:hover { border-color: var(--accent); background: var(--mist); text-decoration: none; transform: translateY(-2px); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; }
.faq-item { border-bottom: 1px solid var(--border-gray); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; color: var(--navy);
  padding: 20px 40px 20px 0; position: relative; display: block;
}
.faq-q::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--accent); font-weight: 400;
}
.faq-q[aria-expanded="true"]::after { content: "\2013"; }
.faq-a { display: none; padding: 0 40px 20px 0; color: var(--slate); }
.faq-a.open { display: block; }
.faq-a p { font-size: 0.975rem; }

/* ---------- CTA bands ---------- */
.cta-band { background: linear-gradient(135deg, var(--navy), var(--accent)); color: var(--white); }
.cta-band .container { text-align: center; }
.cta-band h2 { color: var(--white); max-width: 22ch; margin-inline: auto; }
.cta-band p { color: rgba(255,255,255,0.88); max-width: 60ch; margin: var(--s-3) auto 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: center; margin-top: var(--s-5); }
.cta-trust { margin-top: var(--s-4); font-size: 0.9rem; color: rgba(255,255,255,0.8); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { background: var(--mist); border-bottom: 1px solid var(--border-gray); }
.breadcrumb ol {
  display: flex; flex-wrap: wrap; gap: 8px; list-style: none;
  padding-block: 12px; font-size: 0.85rem; color: var(--cool-gray);
}
.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb li::after { content: "/"; color: var(--border-gray); }
.breadcrumb li:last-child::after { display: none; }
.breadcrumb a { color: var(--cool-gray); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current="page"] { color: var(--navy); font-weight: 600; }

/* ---------- Prose (article body) ---------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: var(--s-6); margin-bottom: var(--s-3); }
.prose h3 { margin-top: var(--s-5); margin-bottom: var(--s-2); }
.prose p { margin-bottom: var(--s-3); font-size: 1.0625rem; line-height: 1.75; }
.prose ul { margin: 0 0 var(--s-3) 1.2em; }
.prose li { margin-bottom: 8px; }

/* ---------- Reviews ---------- */
.review-card {
  background: var(--white); border: 1px solid var(--border-gray);
  border-radius: var(--r-card); padding: var(--s-4); box-shadow: var(--sh-1);
}
.review-stars { color: var(--gold); font-size: 1.05rem; letter-spacing: 2px; }
.review-card p { margin: 12px 0; color: var(--slate); font-size: 0.975rem; }
.review-meta { font-size: 0.85rem; color: var(--cool-gray); font-weight: 600; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white); border: 1px solid var(--border-gray);
  border-radius: var(--r-card); padding: var(--s-5); box-shadow: var(--sh-1);
}
.field { margin-bottom: var(--s-3); }
.field label { display: block; font-weight: 600; font-size: 0.9rem; color: var(--navy); margin-bottom: 6px; }
/* Text-like inputs only — exclude checkboxes and radios so they render
   at their native ~18px size and remain properly aligned beside labels. */
.field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.field select, .field textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--border-gray);
  border-radius: var(--r-input); font: inherit; font-size: 1rem; color: var(--slate);
  background: var(--white); min-height: 48px;
}
.field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
.field select:focus, .field textarea:focus {
  outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent);
}
.field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 0.8rem; color: var(--cool-gray); margin-top: 10px; text-align: center; }

/* ---------- Footer ---------- */
.pre-footer { background: linear-gradient(135deg, var(--navy), var(--accent)); color: var(--white); }
.pre-footer .container {
  display: flex; flex-direction: column; gap: var(--s-4); align-items: center; text-align: center;
  padding-block: var(--s-6);
}
.pre-footer h2 { color: var(--white); }
.pre-footer .cta-actions { margin-top: 0; }
@media (min-width: 860px) {
  .pre-footer .container { flex-direction: row; justify-content: space-between; text-align: left; }
}

.site-footer { background: var(--navy); color: var(--cool-gray); }
.footer-main { padding-block: var(--s-7); }
.footer-grid { display: grid; gap: var(--s-5); grid-template-columns: 1fr; }
@media (min-width: 600px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand .brand { color: var(--white); margin-bottom: var(--s-3); }
.footer-trust { display: grid; gap: 8px; font-size: 0.875rem; margin-top: var(--s-3); }
.footer-trust span { display: flex; align-items: center; gap: 8px; }
.footer-trust .tick { color: var(--success); }
.footer-trust .star { color: var(--gold); }
.footer-col h3 {
  color: var(--white); font-size: 0.8125rem; text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: var(--s-3); font-family: var(--font-body);
}
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: var(--cool-gray); font-size: 0.925rem; }
.footer-col a:hover { color: var(--white); }
.footer-legal {
  background: var(--navy-90); padding-block: 18px; font-size: 0.8rem;
}
.footer-legal .container {
  display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center;
}
.footer-legal a { color: var(--cool-gray); }
.footer-legal a:hover { color: var(--white); }
.footer-legal nav { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
@media (min-width: 700px) {
  .footer-legal .container { flex-direction: row; justify-content: space-between; }
}

/* ---------- Sticky mobile conversion bar ---------- */
.mobile-cta-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 10px 14px; background: var(--white);
  box-shadow: 0 -4px 20px rgba(8,27,58,0.12);
  transform: translateY(120%); transition: transform 0.25s ease;
}
.mobile-cta-bar.show { transform: translateY(0); }
.mobile-cta-bar .btn { padding: 12px 14px; font-size: 0.95rem; }
body { padding-bottom: 0; }
@media (min-width: 1024px) { .mobile-cta-bar { display: none !important; } }

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-4 { margin-top: var(--s-4); }
.mt-5 { margin-top: var(--s-5); }
.intro-lead { font-size: 1.125rem; line-height: 1.7; color: var(--slate); max-width: 65ch; }
.two-col { display: grid; gap: var(--s-6); grid-template-columns: 1fr; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1.3fr 1fr; align-items: start; } }
.area-list { columns: 2; column-gap: var(--s-4); }
.area-list a { display: block; padding: 4px 0; }

/* ---------- Call Now band (service & location pages) ---------- */
.callnow {
  display: flex; flex-direction: column; gap: var(--s-4);
  align-items: flex-start;
}
.callnow h2 { color: var(--white); }
.callnow p { color: rgba(255,255,255,0.85); margin-top: 8px; }
.callnow-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
@media (min-width: 860px) {
  .callnow { flex-direction: row; justify-content: space-between; align-items: center; }
  .callnow-actions { flex: none; }
}

/* ---------- Homepage hero with van imagery ---------- */
.hero--branded { padding-bottom: 0; }
.hero--branded .hero-grid {
  display: grid; gap: var(--s-5);
  grid-template-columns: 1fr;
  align-items: center;
}
.hero-van {
  width: 100%; border-radius: var(--r-card);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
  border: 4px solid rgba(255,255,255,0.08);
  display: block;
}
.hero-van-frame {
  position: relative;
  margin-top: var(--s-5);
}
.hero-van-frame::after {
  content: ""; position: absolute; inset: -20px;
  background: radial-gradient(ellipse at center, rgba(10,77,158,0.25), transparent 70%);
  z-index: -1; border-radius: 50%;
}
@media (min-width: 900px) {
  .hero--branded .hero-grid { grid-template-columns: 1.05fr 1fr; gap: var(--s-7); }
  .hero-van-frame { margin-top: 0; }
}


/* ==========================================================================
   BRAND IDENTITY — Astra Plumbing
   Mirrors the visual language defined in the brand & vehicle guidelines:
   - Navy #081B3A, Premium Blue #0A4D9E, White
   - "A" mark + ASTRA / PLUMBING stacked wordmark (Astra navy, Plumbing blue)
   - Vertical divider between mark and wordmark
   - LICENSED & INSURED | RESIDENTIAL & COMMERCIAL tagline
   ========================================================================== */

/* ---------- Header brand lockup (A icon | ASTRA / PLUMBING) ---------- */
.brand {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-display);
  color: var(--navy); white-space: nowrap;
  text-decoration: none; line-height: 1;
}
.brand:hover { text-decoration: none; }

/* A icon */
.brand .mark {
  width: 52px; height: auto; flex: none;
  object-fit: contain; display: block;
}
@media (min-width: 768px) { .brand .mark { width: 58px; } }

/* Vertical divider + stacked wordmark.
   align-items: stretch makes PLUMBING fill the same width as ASTRA,
   so flex space-between can align first P under first A and last G under last A. */
.brand .wordmark {
  display: inline-flex; flex-direction: column;
  align-items: stretch;
  border-left: 2px solid var(--navy);
  padding-left: 14px;
  line-height: 1;
}
.brand .wm-astra {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.04em;
  /* Sets the wordmark column width */
}
.brand .wm-plumbing {
  font-family: var(--font-display);
  font-size: 0.78rem; font-weight: 700;
  color: var(--accent);
  margin-top: 5px;
  /* Flex distribution so first P aligns left edge, last G aligns right edge */
  display: flex;
  justify-content: space-between;
}
.brand .wm-plumbing > span { display: inline-block; }

@media (min-width: 768px) {
  .brand .wm-astra { font-size: 1.55rem; }
  .brand .wm-plumbing { font-size: 0.85rem; }
}

/* Dark contexts (mobile menu, footer): white divider + white ASTRA.
   Logo image is already the white variant via build-side markup, so no filter needed. */
.mobile-menu .brand .wordmark,
.site-footer .brand .wordmark { border-left-color: var(--white); }
.mobile-menu .brand .wm-astra,
.site-footer .brand .wm-astra { color: var(--white); }
.site-footer .brand .wm-astra { font-size: 1.55rem; }
.site-footer .brand .wm-plumbing { font-size: 0.85rem; }
.site-footer .brand .mark { width: 58px; }

/* ---------- Homepage hero — split layout with branded panel ---------- */
.hero--home .container { position: relative; }
.hero-grid {
  display: grid; gap: var(--s-5); align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.15fr 1fr; gap: var(--s-6); }
}

/* Branded panel — mirrors the dark navy panel on the official brand sheet */
.hero-brand-panel {
  background: var(--navy);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 18px;
  padding: 40px 28px 32px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  position: relative; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}
.hero-brand-panel::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(10,77,158,0.35), transparent 60%);
  pointer-events: none;
}
.hero-brand-mark {
  width: 140px; height: auto; display: block;
  position: relative; z-index: 1; margin-bottom: 4px;
}
@media (min-width: 768px) { .hero-brand-mark { width: 168px; } }
.hero-brand-wordmark {
  display: flex; flex-direction: column; align-items: center;
  position: relative; z-index: 1; line-height: 1;
}
.hero-brand-astra {
  font-family: var(--font-display); font-weight: 800;
  font-size: 2.6rem; color: var(--white);
  letter-spacing: 0.06em;
}
.hero-brand-plumbing {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.5rem; color: var(--accent);
  letter-spacing: 0.34em; margin-top: 10px;
  padding-left: 0.34em;
}
@media (min-width: 768px) {
  .hero-brand-astra { font-size: 3.2rem; }
  .hero-brand-plumbing { font-size: 1.75rem; letter-spacing: 0.4em; padding-left: 0.4em; margin-top: 12px; }
}
.hero-brand-rule {
  width: 60%; height: 1px; background: rgba(255,255,255,0.22);
  margin: 22px 0 18px; position: relative; z-index: 1;
}
.hero-brand-phone {
  color: var(--white); font-family: var(--font-display);
  font-weight: 700; font-size: 1.5rem; letter-spacing: 0.02em;
  text-decoration: none; position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 12px;
}
.hero-brand-phone:hover { color: #8FC0FF; text-decoration: none; }
.hero-brand-phone:hover .hero-brand-phone__ic { background: #B8262F; }
.hero-brand-phone__ic {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  background: var(--emergency); color: var(--white);
  display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(216,50,60,0.4);
  transition: background .15s ease;
}
.hero-brand-phone__num { font-feature-settings: "tnum"; white-space: nowrap; }
@media (min-width: 768px) {
  .hero-brand-phone { font-size: 1.75rem; gap: 14px; }
  .hero-brand-phone__ic { width: 40px; height: 40px; }
}
.hero-brand-tags {
  margin-top: 16px; color: rgba(255,255,255,0.78);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; position: relative; z-index: 1;
}
.hero-brand-tags span { color: rgba(255,255,255,0.35); margin: 0 8px; }
@media (min-width: 768px) { .hero-brand-tags { font-size: 0.82rem; } }

/* ---------- Brand strip (3 highlights bar) ---------- */
.brand-strip {
  background: var(--mist);
  border-top: 1px solid var(--border-gray);
  border-bottom: 1px solid var(--border-gray);
}
.brand-strip .container {
  display: grid; gap: var(--s-3);
  grid-template-columns: 1fr;
  padding-block: var(--s-5);
}
@media (min-width: 700px) {
  .brand-strip .container { grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
}
.brand-strip-item {
  display: flex; align-items: center; gap: 14px;
  padding: 6px 0;
}
.brand-strip-item .ic {
  width: 50px; height: 50px; flex: none; border-radius: 12px;
  background: linear-gradient(135deg, var(--navy), var(--accent));
  color: var(--white); display: grid; place-items: center;
  font-size: 1.35rem; font-weight: 700;
  box-shadow: 0 6px 16px rgba(8,27,58,0.20);
}
.brand-strip-item h3 {
  font-size: 1rem; margin-bottom: 2px; color: var(--navy);
}
.brand-strip-item p {
  font-size: 0.875rem; color: var(--cool-gray); line-height: 1.4;
}

/* ---------- Brand section (navy panel with emblem) ---------- */
.brand-section {
  background: var(--navy); color: var(--white);
  position: relative; overflow: hidden;
}
.brand-section::before {
  /* subtle "A" watermark */
  content: ""; position: absolute;
  right: -120px; bottom: -120px;
  width: 520px; height: 520px;
  background: url("../images/logo-mark-onDark-lg.png") center/contain no-repeat;
  opacity: 0.18;
  pointer-events: none;
}
.brand-section .container {
  display: grid; gap: var(--s-6); align-items: center;
  grid-template-columns: 1fr;
  position: relative; z-index: 1;
}
@media (min-width: 1024px) {
  .brand-section .container { grid-template-columns: 1fr 1fr; gap: var(--s-7); }
}
.brand-section h2 { color: var(--white); max-width: 18ch; }
.brand-section p { color: rgba(255,255,255,0.85); margin-top: var(--s-3); }
.brand-section .eyebrow { color: #8FC0FF; }
.brand-points {
  display: grid; gap: var(--s-3); margin-top: var(--s-4);
}
.brand-point {
  display: flex; gap: 14px; align-items: flex-start;
}
.brand-point .ic {
  width: 36px; height: 36px; flex: none; border-radius: 10px;
  background: var(--accent); color: var(--white);
  display: grid; place-items: center; font-weight: 700;
  font-size: 0.95rem;
}
.brand-point h3 { color: var(--white); font-size: 1.0625rem; margin-bottom: 2px; }
.brand-point p { color: rgba(255,255,255,0.78); font-size: 0.95rem; margin-top: 0; }

/* ---------- Brand emblem (mirrors brand-sheet dark panel) ---------- */
.brand-emblem {
  background: rgba(10,77,158,0.10);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 18px;
  padding: 44px 28px 32px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.brand-emblem-mark {
  width: 130px; height: auto; display: block;
  margin-bottom: 4px;
}
@media (min-width: 768px) { .brand-emblem-mark { width: 150px; } }
.brand-emblem-words {
  display: flex; flex-direction: column; align-items: center; line-height: 1;
}
.brand-emblem-astra {
  font-family: var(--font-display); font-weight: 800;
  font-size: 2.4rem; color: var(--white); letter-spacing: 0.06em;
}
.brand-emblem-plumbing {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.4rem; color: var(--accent);
  letter-spacing: 0.34em; margin-top: 10px;
  padding-left: 0.34em;
}
@media (min-width: 768px) {
  .brand-emblem-astra { font-size: 2.8rem; }
  .brand-emblem-plumbing { font-size: 1.6rem; letter-spacing: 0.4em; padding-left: 0.4em; margin-top: 12px; }
}
.brand-emblem-rule {
  width: 60%; height: 1px; background: rgba(255,255,255,0.22); margin: 22px 0 18px;
}
.brand-emblem-phone {
  color: var(--white); font-family: var(--font-display);
  font-weight: 700; font-size: 1.4rem; letter-spacing: 0.02em;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 12px;
}
.brand-emblem-phone:hover { color: #8FC0FF; text-decoration: none; }
.brand-emblem-phone:hover .hero-brand-phone__ic { background: #B8262F; }
@media (min-width: 768px) { .brand-emblem-phone { font-size: 1.6rem; gap: 14px; } }
.brand-emblem-tags {
  margin-top: 16px; color: rgba(255,255,255,0.78);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase;
}
.brand-emblem-tags span { color: rgba(255,255,255,0.35); margin: 0 8px; }

/* ---------- Subtle "A" watermark on dark hero & navy bands ---------- */
.hero::before {
  content: ""; position: absolute;
  left: -80px; top: -60px;
  width: 360px; height: 360px;
  background: url("../images/logo-mark-onDark-lg.png") center/contain no-repeat;
  opacity: 0.16;
  pointer-events: none;
}
.cta-band { position: relative; overflow: hidden; }
.cta-band::after {
  content: ""; position: absolute;
  right: -100px; bottom: -100px;
  width: 320px; height: 320px;
  background: url("../images/logo-mark-onDark-lg.png") center/contain no-repeat;
  opacity: 0.2;
  pointer-events: none;
}

/* ---------- Service-card icon — replace emoji feel with brand square ---------- */
.service-card .ic {
  background: linear-gradient(135deg, var(--navy), var(--accent));
  color: var(--white); border-radius: 10px;
}

/* ==========================================================================
   MEGA MENU — Services (3 categories)
   ========================================================================== */
@media (min-width: 1024px) {
  .has-mega { position: static; } /* full-width drop relative to nav-bar */
  .mega {
    position: absolute; left: 50%; transform: translate(-50%, 6px);
    top: 100%; width: min(1180px, calc(100vw - 48px));
    background: var(--white); border: 1px solid var(--border-gray);
    border-radius: var(--r-card); box-shadow: var(--sh-3);
    padding: 28px 28px 20px;
    opacity: 0; visibility: hidden;
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    z-index: 50;
  }
  .has-mega:hover .mega,
  .has-mega:focus-within .mega {
    opacity: 1; visibility: visible; transform: translate(-50%, 0);
  }
  .mega-cols {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  .mega-col {
    border-right: 1px solid var(--border-gray);
    padding-right: 24px;
  }
  .mega-col:last-child { border-right: none; padding-right: 0; }
  .mega-col__head {
    display: flex; align-items: center; gap: 12px;
    padding-bottom: 12px; margin-bottom: 12px;
    border-bottom: 2px solid var(--accent);
  }
  .mega-col__ic {
    width: 38px; height: 38px; flex: none; border-radius: 10px;
    background: linear-gradient(135deg, var(--navy), var(--accent));
    color: var(--white); display: grid; place-items: center;
    font-size: 1.05rem;
    box-shadow: 0 4px 10px rgba(8,27,58,0.18);
  }
  .mega-col__head h3 {
    font-size: 0.95rem; font-weight: 800; color: var(--navy);
    letter-spacing: 0.06em; text-transform: uppercase; margin: 0;
    line-height: 1.1;
  }
  .mega-col__head p {
    font-size: 0.78rem; color: var(--cool-gray);
    margin: 3px 0 0; line-height: 1.3;
  }
  .mega-col__links {
    display: grid; gap: 2px;
  }
  .mega-col__links a {
    display: block; padding: 8px 10px; border-radius: 6px;
    color: var(--navy); font-weight: 500; font-size: 0.92rem;
    line-height: 1.35;
    text-decoration: none;
    transition: background .12s ease, color .12s ease, padding .12s ease;
  }
  /* Override the underline animation from .primary-nav a */
  .mega-col__links a::after { display: none; }
  .mega-col__links a:hover {
    background: var(--mist); color: var(--accent);
    padding-left: 14px;
  }
  .mega-foot {
    display: flex; align-items: center; justify-content: space-between;
    gap: var(--s-3); margin-top: 22px; padding-top: 18px;
    border-top: 1px solid var(--border-gray); flex-wrap: wrap;
  }
  .mega-foot__link {
    color: var(--accent); font-weight: 700; font-size: 0.92rem;
    text-decoration: none;
  }
  .mega-foot__link:hover { text-decoration: underline; }
  .mega-foot .btn { padding: 10px 18px; }
}
/* Hide mega on small screens just in case */
@media (max-width: 1023px) {
  .mega { display: none; }
}

/* ---------- Mobile: grouped services accordion ---------- */
.m-acc__panel--grouped { padding-bottom: 8px; }
.m-sub { border-top: 1px solid var(--navy-90); }
.m-sub:first-child { border-top: none; }
.m-sub__btn {
  display: flex; align-items: center; gap: 10px; width: 100%;
  background: none; border: none; cursor: pointer; font-family: inherit;
  color: var(--white); font-weight: 700; font-size: 0.92rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 14px 4px; text-align: left;
}
.m-sub__btn::after {
  content: "+"; margin-left: auto; font-size: 1.2rem; color: #8FC0FF;
  font-weight: 400; transition: transform .15s ease;
}
.m-sub__btn[aria-expanded="true"]::after { content: "\2013"; }
.m-sub__ic {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--accent); color: var(--white);
  display: grid; place-items: center; font-size: 0.85rem;
  flex: none;
}
.m-sub__panel { display: none; padding: 4px 4px 12px 38px; }
.m-sub__panel.open { display: block; }
.m-sub__panel a {
  display: block; padding: 8px 0; font-size: 0.92rem;
  color: rgba(255,255,255,0.82); font-weight: 500;
}
.m-sub__panel a:hover { color: var(--white); }
.m-all {
  display: block; padding: 14px 4px;
  color: #8FC0FF; font-weight: 700; font-size: 0.92rem;
  border-top: 1px solid var(--navy-90); margin-top: 4px;
}

/* ==========================================================================
   CUSTOMER REVIEWS
   ========================================================================== */

/* Card layout used both on slider and reviews page */
.review-card {
  background: var(--white);
  border: 1px solid var(--border-gray);
  border-radius: var(--r-card);
  padding: 28px 26px;
  box-shadow: var(--sh-1);
  display: flex; flex-direction: column;
  height: 100%;
}
.review-card .review-stars {
  color: var(--gold);
  font-size: 1.1rem; letter-spacing: 2px;
  margin-bottom: 12px;
}
.review-card .review-text {
  margin: 0 0 16px;
  border-left: 3px solid var(--accent);
  padding-left: 14px;
}
.review-card .review-text p {
  font-size: 1.0125rem;
  line-height: 1.55;
  color: var(--slate);
  font-style: italic;
  margin: 0;
}
.review-card .review-meta {
  margin-top: auto;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
}

/* Homepage reviews section background */
.section--reviews { background: var(--white); }

/* Slider on homepage */
.reviews-slider {
  position: relative;
  margin-top: var(--s-5);
  overflow: hidden;
}
.reviews-track {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}
.reviews-slide { width: 100%; }
@media (min-width: 700px) {
  .reviews-track { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .reviews-track { grid-template-columns: repeat(3, 1fr); }
}

/* When the slider JS is active it converts the track to a single-row scroller */
.reviews-slider.js-active .reviews-track {
  display: flex;
  grid-template-columns: none;
  gap: var(--s-4);
  scroll-snap-type: x mandatory;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.reviews-slider.js-active .reviews-track::-webkit-scrollbar { display: none; }
.reviews-slider.js-active .reviews-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
}
@media (min-width: 700px) {
  .reviews-slider.js-active .reviews-slide { flex: 0 0 calc(50% - var(--s-4) / 2); }
}
@media (min-width: 1024px) {
  .reviews-slider.js-active .reviews-slide { flex: 0 0 calc(33.333% - var(--s-4) * 2 / 3); }
}

.reviews-controls {
  display: none;
  align-items: center; justify-content: center;
  gap: 14px;
  margin-top: 20px;
}
.reviews-slider.js-active .reviews-controls { display: flex; }
.reviews-arrow {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border-gray);
  background: var(--white); color: var(--navy);
  font-size: 1.5rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.reviews-arrow:hover {
  background: var(--navy); color: var(--white); border-color: var(--navy);
}
.reviews-arrow:disabled {
  opacity: 0.35; cursor: default;
}
.reviews-dots {
  display: flex; gap: 8px;
}
.reviews-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--border-gray);
  border: none; padding: 0; cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.reviews-dot.active {
  background: var(--accent);
  transform: scale(1.2);
}

.reviews-cta {
  margin-top: var(--s-6);
  text-align: center;
}
.reviews-cta h3 {
  font-size: 1.4rem;
  margin-bottom: var(--s-4);
}
.reviews-cta .cta-actions {
  justify-content: center;
}

/* Reviews page grid */
.reviews-grid {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Form success state (inline confirmation) ---------- */
.form-success {
  background: var(--mist);
  border: 1px solid #C9DCFA;
  border-left: 4px solid var(--success);
  border-radius: var(--r-card);
  padding: 28px;
  text-align: center;
}
.form-success h3 {
  font-size: 1.35rem; margin-bottom: 8px;
  color: var(--navy);
}
.form-success p { color: var(--slate); margin-bottom: 16px; }
.form-success__ic {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--success); color: var(--white);
  display: grid; place-items: center;
  font-size: 1.8rem; line-height: 1; font-weight: 700;
  margin: 0 auto 14px;
}

/* Field error state */
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--emergency);
  outline: 2px solid rgba(216, 50, 60, 0.15);
}
.field-error {
  display: block;
  margin-top: 6px;
  font-size: 0.825rem;
  color: var(--emergency);
}

/* ---------- Mid-laptop header compression (1024-1440) ---------- */
@media (min-width: 1024px) and (max-width: 1440px) {
  .brand .mark { width: 46px; }
  .brand .wm-astra { font-size: 1.2rem; }
  .brand .wm-plumbing { font-size: 0.68rem; }
  .brand .wordmark { padding-left: 11px; }
  .brand { gap: 11px; }
  .header-phone { padding: 4px 8px 4px 6px; gap: 10px; }
  .header-phone__ic { width: 38px; height: 38px; }
  .header-phone__num { font-size: 1.2rem; }
  .header-phone__label { font-size: 0.65rem; margin-bottom: 2px; }
  .primary-nav,
  .primary-nav > ul { gap: 16px; }
  .primary-nav a { font-size: 0.9rem; }
  .header-estimate { padding: 12px 18px; font-size: 0.95rem; }
  .header-actions { gap: 10px; }
}

/* ---------- Extra-tight nav for smaller laptops (1024-1180) ---------- */
@media (min-width: 1024px) and (max-width: 1180px) {
  .nav-bar .container { padding-inline: 14px; gap: 8px; }
  .brand { gap: 8px; }
  .brand .mark { width: 36px; }
  .brand .wordmark { padding-left: 8px; }
  .brand .wm-astra { font-size: 1rem; }
  .brand .wm-plumbing { font-size: 0.58rem; margin-top: 4px; }
  .primary-nav,
  .primary-nav > ul { gap: 10px; }
  .primary-nav a,
  .has-menu > .menu-trigger { font-size: 0.82rem; }
  .has-menu > .menu-trigger { gap: 2px; }
  .has-menu > .menu-trigger::after { font-size: 0.6em; }
  .header-phone__label { display: none; }
  .header-phone__num { font-size: 1rem; }
  .header-phone__ic { width: 30px; height: 30px; }
  .header-phone { padding: 4px 4px 4px 4px; gap: 6px; }
  .header-estimate { padding: 9px 12px; font-size: 0.85rem; }
  .header-actions { gap: 6px; }
}

/* ---------- Footer social icons ---------- */
.footer-social {
  display: flex; align-items: center; gap: 12px;
  margin-top: 20px;
}
.footer-social a {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.footer-social a:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
  text-decoration: none;
}
.footer-social svg {
  width: 20px; height: 20px; display: block;
}

/* ---------- Honeypot field (Netlify anti-spam) - hidden from users ---------- */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
}

/* ---------- Careers application form: extra field types ---------- */
.form-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin: 24px 0 12px;
  padding-top: 4px;
  border-top: 1px solid var(--border-gray);
}
.form-section-title:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}
.field--radio,
.field--checkboxes {
  border: none;
  padding: 0;
  margin: 0 0 16px;
}
.field--radio legend,
.field--checkboxes legend {
  display: block;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.9rem;
  margin-bottom: 10px;
  padding: 0;
}
/* Radio options: sit on one line at desktop, wrap on narrow screens.
   Selector scoped to `.field` to beat `.field label { display: block }` specificity. */
.field .radio-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 24px 8px 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--slate);
  cursor: pointer;
  line-height: 1.2;
}
.field .radio-inline input[type="radio"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
  flex-shrink: 0;
  cursor: pointer;
}

/* Skills: two evenly aligned columns (Residential | Commercial) */
.skills-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px 32px;
}
@media (min-width: 640px) {
  .skills-columns { grid-template-columns: 1fr 1fr; }
}
.skills-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.skills-col__title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 4px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-gray);
}
/* Selector scoped to beat `.field label { display: block; margin-bottom: 6px }` */
.field .skills-col label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--slate);
  cursor: pointer;
  line-height: 1.3;
}
.field .skills-col label span { display: inline-block; }
.field .skills-col input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
  flex-shrink: 0;
  cursor: pointer;
}

/* Legacy .checkbox-grid — kept for /forms.html Netlify detection stub */
.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px 24px;
}
@media (min-width: 640px) {
  .checkbox-grid { grid-template-columns: 1fr 1fr; }
}
.field .checkbox-grid label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--slate);
  cursor: pointer;
  line-height: 1.3;
}
.field .checkbox-grid input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
  flex-shrink: 0;
  cursor: pointer;
}

/* File upload input — matches text input height for visual consistency */
input[type="file"] {
  display: block;
  width: 100%;
  padding: 7px 14px;
  min-height: 48px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--slate);
  background: var(--white);
  border: 1px solid var(--border-gray);
  border-radius: var(--r-input);
  cursor: pointer;
}
input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 7px 14px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  background: var(--navy);
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
input[type="file"]::file-selector-button:hover {
  background: var(--accent);
}
