/* =========================================================================
   Clean Slate PW — Main Stylesheet
   Design tokens, base styles, components, and page sections.
   Implements the brand color/typography/spacing system from
   Clean_Slate_PW_Website_Strategy_v1.0.docx.
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. DESIGN TOKENS
   ------------------------------------------------------------------------- */
:root {
  /* Brand color system */
  --c-navy:        #0B2545;   /* Primary */
  --c-slate:       #3E6990;   /* Accent / secondary */
  --c-orange:      #E8761A;   /* CTA */
  --c-orange-dark: #D06A15;   /* CTA hover */
  --c-mist:        #E8EEF2;   /* Section tint */
  --c-offwhite:    #F5F7F9;   /* Alt section bg */
  --c-white:       #FFFFFF;
  --c-body:        #2B2B2B;   /* Body text */
  --c-muted:       #6C757D;   /* Secondary text */
  --c-border:      #E5E7EB;
  --c-success:     #28A745;
  --c-warning:     #FFC107;
  --c-alert:       #DC3545;

  /* Typography */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Spacing scale */
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* Layout */
  --container-max: 1280px;
  --content-max:   880px;
  --prose-max:     720px;

  /* Radii / shadows / motion */
  --radius-sm: 8px;
  --radius:    12px;
  --shadow-sm: 0 2px 8px rgba(11, 37, 69, 0.08);
  --shadow:    0 4px 16px rgba(11, 37, 69, 0.10);
  --shadow-lg: 0 8px 24px rgba(11, 37, 69, 0.10);
  --ease:      200ms ease;

  /* Z-index */
  --z-announce: 1000;
  --z-header:   900;
  --z-mobile-nav: 1100;
  --z-sticky-cta: 800;
}

/* -------------------------------------------------------------------------
   2. RESET + BASE
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--c-body);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--c-slate); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6, p, blockquote { margin: 0; }

h1 { font-size: 56px; font-weight: 800; line-height: 1.1; letter-spacing: -0.01em; color: var(--c-navy); }
h2 { font-size: 40px; font-weight: 700; line-height: 1.2; color: var(--c-navy); }
h3 { font-size: 28px; font-weight: 600; line-height: 1.3; color: var(--c-navy); }
h4 { font-size: 20px; font-weight: 600; line-height: 1.35; color: var(--c-navy); }

@media (max-width: 1024px) {
  h1 { font-size: 44px; }
  h2 { font-size: 34px; }
  h3 { font-size: 26px; }
}
@media (max-width: 767px) {
  body { font-size: 16px; }
  h1 { font-size: 34px; }
  h2 { font-size: 28px; }
  h3 { font-size: 22px; }
}

/* Accessibility */
:focus-visible {
  outline: 3px solid var(--c-orange);
  outline-offset: 2px;
  border-radius: 4px;
}
.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 {
  position: absolute; top: -100px; left: 0;
  background: var(--c-navy); color: #fff; padding: 12px 20px;
  z-index: 9999; font-weight: 600;
}
.skip-link:focus { top: 0; }

/* -------------------------------------------------------------------------
   3. UTILITIES / PRIMITIVES
   ------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 24px;
}
.section { padding-block: var(--space-9); }
.section--mist { background: var(--c-mist); }
.section--offwhite { background: var(--c-offwhite); }
.section--navy { background: var(--c-navy); color: #fff; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }

@media (max-width: 1024px) { .section { padding-block: var(--space-8); } }
@media (max-width: 767px)  { .section { padding-block: var(--space-7); } }

.eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-slate);
  margin-bottom: var(--space-3);
}
.section--navy .eyebrow { color: #B7CCE0; }

.section-head { text-align: center; max-width: 760px; margin: 0 auto var(--space-7); }
.section-head p { color: var(--c-muted); margin-top: var(--space-4); font-size: 18px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 24px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease), border-color var(--ease);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--c-orange); color: #fff; }
.btn--primary:hover { background: var(--c-orange-dark); box-shadow: var(--shadow); }
.btn--ghost-light { background: transparent; color: #fff; border-color: #fff; }
.btn--ghost-light:hover { background: rgba(255,255,255,0.15); }
.btn--ghost-dark { background: transparent; color: var(--c-navy); border-color: var(--c-navy); }
.btn--ghost-dark:hover { background: var(--c-navy); color: #fff; }
.btn--lg { height: 60px; font-size: 18px; font-weight: 700; padding: 0 32px; }
.btn--block { width: 100%; }

/* -------------------------------------------------------------------------
   4. ANNOUNCEMENT BAR (Section 4)
   ------------------------------------------------------------------------- */
.announcement {
  position: sticky;
  top: 0;
  z-index: var(--z-announce);
  background: var(--c-navy);
  color: #fff;
  height: 40px;
  display: flex;
  align-items: center;
}
.announcement__inner {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; width: 100%; padding: 0 56px 0 24px; position: relative;
  font-size: 14px;
}
.announcement__msg { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.announcement__cta { color: var(--c-orange); font-weight: 600; margin-left: 4px; }
.announcement__cta:hover { color: #fff; text-decoration: underline; }
.announcement__close {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  background: transparent; border: 0; color: #fff; opacity: 0.7;
  width: 28px; height: 28px; display: grid; place-items: center; border-radius: 4px;
}
.announcement__close:hover { opacity: 1; background: rgba(255,255,255,0.1); }
@media (max-width: 767px) { .announcement { height: 36px; } .announcement__inner { font-size: 13px; } }

/* -------------------------------------------------------------------------
   5. HEADER (Section 5)
   ------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 40px;
  z-index: var(--z-header);
  background: #fff;
  border-bottom: 1px solid var(--c-mist);
  transition: box-shadow var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 24px;
}
.site-header__logo { display: flex; align-items: center; }
.site-header__logo img { width: 180px; height: 48px; }

.primary-nav { display: flex; align-items: center; gap: 4px; }
.primary-nav__item { position: relative; }
.primary-nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 12px; font-size: 14px; font-weight: 600; color: var(--c-navy);
  border-radius: 6px;
}
.primary-nav__link:hover { background: var(--c-mist); text-decoration: none; }
.primary-nav__chev { width: 12px; height: 12px; transition: transform var(--ease); }
.primary-nav__chev--lg { width: 17px; height: 17px; }
.primary-nav__item.is-open > .primary-nav__link .primary-nav__chev { transform: rotate(180deg); }

/* Dropdown / mega menu */
.dropdown, .mega-menu {
  position: absolute; top: 100%; left: 0;
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity var(--ease), transform var(--ease), visibility var(--ease);
  padding: 16px; min-width: 240px;
}
.primary-nav__item:hover .dropdown,
.primary-nav__item:focus-within .dropdown,
.primary-nav__item.is-open .dropdown,
.primary-nav__item:hover .mega-menu,
.primary-nav__item:focus-within .mega-menu,
.primary-nav__item.is-open .mega-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown a {
  display: block; padding: 10px 12px; color: var(--c-navy); font-weight: 500;
  border-radius: 6px; font-size: 15px;
}
.dropdown a:hover { background: var(--c-mist); text-decoration: none; }

.mega-menu {
  display: grid; grid-template-columns: repeat(3, 1fr) 240px; gap: 32px;
  width: 920px; padding: 32px;
}
.mega-menu__col h4 {
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--c-slate); margin-bottom: 12px;
}
.mega-menu__col ul li { margin-bottom: 2px; }
.mega-menu__cta {
  background: var(--c-offwhite); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; justify-content: space-between;
}
.mega-menu__cta h4 { color: var(--c-navy); font-size: 16px; text-transform: none; letter-spacing: 0; margin-bottom: 8px; }
.mega-menu__cta p { color: var(--c-muted); font-size: 13px; margin-bottom: 16px; }

.site-header__actions { display: flex; align-items: center; gap: 16px; }
.site-header__phone {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--c-navy); font-weight: 700; font-size: 18px;
}
.site-header__phone:hover { color: var(--c-orange); text-decoration: none; }

/* Mobile toggles + overlay */
.mobile-only { display: none; }
.hamburger {
  width: 44px; height: 44px; background: transparent; border: 0;
  display: none; place-items: center; border-radius: 6px;
}
.hamburger:hover { background: var(--c-mist); }
.hamburger span {
  display: block; width: 22px; height: 2px; background: var(--c-navy);
  margin: 4px 0; transition: transform var(--ease), opacity var(--ease);
}
.is-mobile-open .hamburger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.is-mobile-open .hamburger span:nth-child(2) { opacity: 0; }
.is-mobile-open .hamburger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 0; top: 0;
  background: #fff; z-index: var(--z-mobile-nav);
  overflow-y: auto; padding: 80px 24px 32px;
  transform: translateY(-100%);
  transition: transform 300ms ease;
  display: none;
}
.is-mobile-open .mobile-nav { display: block; transform: translateY(0); }
.mobile-nav__close {
  position: absolute; top: 16px; right: 16px; width: 44px; height: 44px;
  background: transparent; border: 0; display: grid; place-items: center;
  font-size: 24px; color: var(--c-navy);
}
.mobile-nav details {
  border-bottom: 1px solid var(--c-mist); padding: 14px 4px;
}
.mobile-nav details summary {
  list-style: none; cursor: pointer; font-size: 18px; font-weight: 700;
  color: var(--c-navy); display: flex; justify-content: space-between; align-items: center;
}
.mobile-nav details summary::-webkit-details-marker { display: none; }
.mobile-nav details summary::after {
  content: ""; width: 12px; height: 12px;
  border-right: 2px solid var(--c-navy); border-bottom: 2px solid var(--c-navy);
  transform: rotate(45deg); transition: transform var(--ease);
}
.mobile-nav details[open] summary::after { transform: rotate(225deg); }
.mobile-nav details ul { padding: 12px 0 4px; }
.mobile-nav details ul li a {
  display: block; padding: 10px 12px; color: var(--c-body); font-size: 16px;
}
.mobile-nav__direct {
  display: block; padding: 16px 4px; font-size: 18px; font-weight: 700;
  color: var(--c-navy); border-bottom: 1px solid var(--c-mist);
}
.mobile-nav__cta { margin-top: 24px; display: grid; gap: 12px; }

@media (max-width: 1023px) {
  .primary-nav, .site-header__actions .site-header__phone, .site-header__actions .btn { display: none; }
  .hamburger { display: grid; }
  .mobile-only { display: inline-flex; }
  .site-header__inner { height: 64px; }
  .site-header__logo img { width: 130px; height: 40px; }
}

/* -------------------------------------------------------------------------
   6. HERO (Section 6)
   ------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 640px;
  display: flex; align-items: center;
  /* SVG placeholder for now; swap to /assets/images/hero-home.jpg when the real photo is ready. */
  background-image:
    linear-gradient(90deg, rgba(11,37,69,0.85), rgba(11,37,69,0.45)),
    url("../images/hero-home.svg");
  background-color: var(--c-navy);
  background-size: cover; background-position: center;
  color: #fff;
  padding-block: 120px;
}
.hero__inner { max-width: 640px; }
.hero__eyebrow {
  display: inline-block; font-size: 14px; letter-spacing: 0.12em;
  text-transform: uppercase; color: #B7CCE0; font-weight: 600;
  margin-bottom: 16px;
}
.hero__title {
  color: #fff; font-size: 56px; font-weight: 800; line-height: 1.1;
  margin-bottom: 20px; letter-spacing: -0.01em;
}
.hero__sub {
  font-size: 20px; line-height: 1.5; color: rgba(255,255,255,0.92);
  max-width: 540px; margin-bottom: 32px;
}
.hero__ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__trust {
  margin-top: 24px; font-size: 14px; color: rgba(255,255,255,0.78);
  display: flex; flex-wrap: wrap; gap: 12px 20px;
}
.hero__trust span { white-space: nowrap; }
.hero__trust span::before { content: "✓ "; color: var(--c-orange); font-weight: 700; }

@media (max-width: 1199px) {
  .hero { min-height: 560px; padding-block: 80px; }
  .hero__title { font-size: 44px; }
  .hero__sub { font-size: 18px; }
}
@media (max-width: 767px) {
  .hero { min-height: 520px; padding-block: 60px; text-align: center; }
  .hero__inner { margin: 0 auto; }
  .hero__title { font-size: 36px; }
  .hero__sub { font-size: 16px; margin-inline: auto; }
  .hero__ctas { justify-content: center; }
  .hero__trust { justify-content: center; }
  .hero__ctas .btn { width: 100%; }
}

/* -------------------------------------------------------------------------
   6a. HERO OVERLAY (full image, text overlaid — no cropping)
   ------------------------------------------------------------------------- */
.hero--overlay {
  position: relative;
  display: block;
  min-height: 0;
  padding-block: 0;
  background: var(--c-navy);
  overflow: hidden;
}
.hero--overlay .hero__bg {
  display: block;
  width: 100%;
  height: auto;            /* keep the image at its natural aspect — never stretched or cropped */
}
.hero--overlay .hero__scrim {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  /* left-side scrim so white text stays readable; right side of the image shows through */
  background: linear-gradient(90deg, rgba(11,37,69,0.9) 0%, rgba(11,37,69,0.6) 40%, rgba(11,37,69,0) 62%);
}
/* Confine the copy to the left zone (clear of the photo) and center the block within it */
.hero--overlay .hero__inner {
  max-width: 56%;
  width: 56%;
  margin: 0;
  padding-inline: 4%;
  display: flex;
  flex-direction: column;
  align-items: center;       /* center the copy block between the left edge and the photo */
}
.hero--overlay .hero__inner > * { max-width: 480px; width: 100%; }
.hero--overlay .hero__eyebrow { margin-bottom: 12px; }
.hero--overlay .hero__title { font-size: 38px; line-height: 1.12; margin-bottom: 16px; }
.hero--overlay .hero__sub { font-size: 16px; line-height: 1.5; margin-bottom: 24px; }
.hero--overlay .hero__ctas { gap: 12px; flex-wrap: wrap; }
.hero--overlay .hero__ctas .btn { padding: 13px 22px; font-size: 15px; }
.hero--overlay .hero__trust { margin-top: 20px; }
@media (max-width: 1199px) {
  .hero--overlay .hero__title { font-size: 30px; }
  .hero--overlay .hero__sub { font-size: 15px; }
}
@media (max-width: 767px) {
  /* On mobile: drop the image and show the hero as a colored panel with the text */
  .hero--overlay {
    display: block;
    background: linear-gradient(135deg, var(--c-navy) 0%, var(--c-slate) 100%);
  }
  .hero--overlay .hero__bg { display: none; }
  .hero--overlay .hero__scrim {
    position: static;
    background: transparent;
    padding-block: 48px;
  }
  .hero--overlay .hero__inner {
    max-width: 100%;
    width: 100%;
    align-items: flex-start;
    padding-inline: 24px;
  }
}

/* -------------------------------------------------------------------------
   6b. HERO SHOWCASE IMAGE (below hero on homepage)
   ------------------------------------------------------------------------- */
.hero-showcase { background: var(--c-navy); }
.hero-showcase img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  object-position: center;
}
@media (max-width: 767px) {
  .hero-showcase img { max-height: 320px; }
}

/* -------------------------------------------------------------------------
   7. TRUST BAR (Section 7)
   ------------------------------------------------------------------------- */
.trust-bar { background: var(--c-offwhite); padding-block: 32px; }
.trust-bar__inner {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 24px; align-items: center;
}
.trust-bar__item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-align: center; color: var(--c-navy);
}
.trust-bar__item svg { width: 40px; height: 40px; color: var(--c-slate); }
.trust-bar__label { font-size: 13px; font-weight: 600; }
.trust-bar__stars { color: var(--c-orange); }

.trust-bar__item.is-marquee-dup { display: none; }   /* only shown for the mobile auto-scroll loop */
@media (max-width: 1023px) { .trust-bar__inner { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px) {
  .trust-bar { padding-block: 20px; overflow: hidden; }
  .trust-bar__inner {
    display: flex; flex-wrap: nowrap; width: max-content; gap: 0;
    align-items: center;
    animation: trust-marquee 26s linear infinite;
  }
  .trust-bar__item { min-width: 0; margin-right: 36px; flex-direction: row; gap: 8px; }
  .trust-bar__item svg, .trust-bar__item .trust-bar__stars { width: 22px; height: 22px; font-size: 14px; }
  .trust-bar__item .trust-bar__label { white-space: nowrap; }
  .trust-bar__item.is-marquee-dup { display: flex; }
}
@keyframes trust-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .trust-bar__inner { animation: none; }
}

/* -------------------------------------------------------------------------
   8. AEO INTRO (Section 8)
   ------------------------------------------------------------------------- */
.aeo { padding-block: 64px 48px; }
.aeo__inner { max-width: var(--content-max); margin: 0 auto; text-align: center; }
.aeo__inner h2 { margin-bottom: 20px; }
.aeo__inner p { font-size: 18px; line-height: 1.7; color: var(--c-body); text-align: left; }
@media (max-width: 767px) { .aeo__inner p { font-size: 16px; } }

/* -------------------------------------------------------------------------
   9. SERVICES GRID (Section 9)
   ------------------------------------------------------------------------- */
.services-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px;
}
.service-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 24px;
  color: inherit; text-decoration: none;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.service-card:hover {
  transform: translateY(-4px); border-color: var(--c-slate);
  box-shadow: var(--shadow-lg); text-decoration: none;
}
.service-card__icon {
  width: 48px; height: 48px; color: var(--c-slate); margin-bottom: 16px;
}
.service-card h3 { font-size: 18px; color: var(--c-navy); margin-bottom: 8px; }
.service-card p { font-size: 14px; color: var(--c-muted); line-height: 1.5; }

@media (max-width: 1199px) { .services-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (max-width: 767px) {
  .services-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  }
  .service-card { padding: 16px; border-radius: var(--radius-sm); }
  .service-card__icon { width: 32px; height: 32px; margin-bottom: 10px; }
  .service-card h3 { font-size: 15px; margin-bottom: 6px; }
  .service-card p { font-size: 12.5px; line-height: 1.45; }
}

/* -------------------------------------------------------------------------
   10. WHY US PILLARS (Section 10)
   ------------------------------------------------------------------------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.pillar {
  background: #fff; border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 32px;
}
.pillar__icon {
  width: 48px; height: 48px; color: var(--c-orange); margin-bottom: 16px;
}
.pillar h3 { font-size: 20px; margin-bottom: 12px; }
.pillar p { font-size: 15px; line-height: 1.6; color: var(--c-body); }

@media (max-width: 1023px) { .pillars { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (max-width: 640px)  { .pillars { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------------------
   11. BEFORE/AFTER SHOWCASE (Section 11)
   ------------------------------------------------------------------------- */
.showcase { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.compare-card {
  background: rgba(255,255,255,0.05); border-radius: var(--radius);
  overflow: hidden; padding: 16px;
}
.compare {
  position: relative; aspect-ratio: 3 / 2; border-radius: var(--radius-sm);
  overflow: hidden; user-select: none; touch-action: none;
}
.compare img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.compare img:last-child { clip-path: inset(0 50% 0 0); }
.compare__handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 2px;
  background: #fff; transform: translateX(-50%);
}
.compare__handle::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 40px; height: 40px; transform: translate(-50%, -50%);
  background: #fff; border-radius: 50%; box-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.compare__handle::after {
  content: "‹›"; position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  color: var(--c-navy); font-weight: 800; font-size: 18px; letter-spacing: -2px;
}
.compare__label {
  position: absolute; top: 12px; padding: 4px 10px;
  background: rgba(11,37,69,0.75); color: #fff; font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase; border-radius: 999px;
}
.compare__label--before { left: 12px; }
.compare__label--after { right: 12px; }
.compare-card__cap {
  display: block; margin-top: 12px; font-size: 14px; color: rgba(255,255,255,0.85);
}
.compare-card__loc {
  display: block; margin-top: 4px; font-size: 12px; color: rgba(255,255,255,0.6);
}

@media (max-width: 1023px) { .showcase { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .showcase { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------------------
   12. AREAS + MAP (Section 12)
   ------------------------------------------------------------------------- */
.areas-grid {
  display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr); gap: 48px; align-items: start;
}
.areas-map iframe {
  width: 100%; height: 480px; border: 1px solid var(--c-border);
  border-radius: var(--radius);
}
.areas-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 16px; }
.areas-list a {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--c-slate); font-weight: 500; padding: 6px 0;
}
.areas-list a::before { content: "›"; color: var(--c-orange); font-weight: 700; }
.contact-row {
  margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--c-border);
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px;
}
.contact-row__cell { font-size: 14px; color: var(--c-body); }
.contact-row__cell strong { display: block; color: var(--c-navy); margin-bottom: 4px; }

@media (max-width: 1023px) { .areas-grid { grid-template-columns: 1fr; gap: 32px; } .areas-map iframe { height: 360px; } }
@media (max-width: 767px) {
  .areas-list { grid-template-columns: repeat(2, 1fr); }
  .contact-row { grid-template-columns: 1fr; }
  .areas-map iframe { height: 280px; }
}

/* -------------------------------------------------------------------------
   13. TESTIMONIALS (Section 13)
   ------------------------------------------------------------------------- */
.testimonials {
  position: relative; overflow: hidden;
}
.testimonials__track {
  display: flex; gap: 24px; transition: transform 500ms ease;
}
.testimonial {
  flex: 0 0 calc((100% - 48px) / 3);
  background: var(--c-offwhite); border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 32px;
  position: relative;
}
.testimonial__stars { color: var(--c-orange); margin-bottom: 12px; letter-spacing: 4px; font-size: 18px; }
.testimonial blockquote {
  font-size: 16px; font-style: italic; color: var(--c-body);
  line-height: 1.65; margin-bottom: 16px;
}
.testimonial__name { font-size: 15px; font-weight: 600; color: var(--c-navy); }
.testimonial__meta { font-size: 13px; color: var(--c-muted); margin-top: 2px; }
.testimonial__google {
  position: absolute; top: 16px; right: 16px;
  display: flex; align-items: center; gap: 4px;
  font-size: 11px; color: var(--c-muted);
}
.testimonial__google img { width: 16px; height: 16px; }

.testimonials__nav { display: flex; justify-content: center; gap: 8px; margin-top: 32px; }
.testimonials__dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--c-border); border: 0; padding: 0;
  transition: background var(--ease), transform var(--ease);
}
.testimonials__dot.is-active { background: var(--c-slate); transform: scale(1.2); }

.testimonials__more { text-align: center; margin-top: 24px; }
.testimonials__more a { color: var(--c-slate); font-weight: 600; }

@media (max-width: 1199px) { .testimonial { flex-basis: calc((100% - 24px) / 2); } }
@media (max-width: 767px)  { .testimonial { flex-basis: 100%; padding: 24px; } }

/* -------------------------------------------------------------------------
   14. PROMO + COMMERCIAL CTA SPLIT (Section 14)
   ------------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; }
.split > div { padding: 64px 48px; color: #fff; display: flex; flex-direction: column; gap: 16px; }
.split__residential { background: var(--c-slate); }
.split__commercial  { background: var(--c-navy); }
.split h3 { color: #fff; font-size: 28px; }
.split p { color: rgba(255,255,255,0.88); }
.split .btn { margin-top: 8px; align-self: flex-start; }

@media (max-width: 767px) {
  .split { grid-template-columns: 1fr; }
  .split > div { padding: 48px 24px; }
}

/* -------------------------------------------------------------------------
   15. RESOURCE PREVIEW (Section 15)
   ------------------------------------------------------------------------- */
.resources-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.resource-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--c-border);
  border-radius: var(--radius); overflow: hidden; color: inherit;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.resource-card:hover { transform: translateY(-4px); border-color: var(--c-slate); box-shadow: var(--shadow-lg); text-decoration: none; }
.resource-card__img {
  aspect-ratio: 16 / 9; background: var(--c-mist); overflow: hidden;
}
.resource-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.resource-card:hover .resource-card__img img { transform: scale(1.03); }
.resource-card__body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.resource-card__cat {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--c-slate);
}
.resource-card h3 {
  font-size: 17px; color: var(--c-navy);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.resource-card p {
  font-size: 14px; color: var(--c-muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.resource-card__read { font-size: 12px; color: #9CA3AF; margin-top: auto; }
.resources-more { text-align: center; margin-top: 32px; }
.resources-more a { color: var(--c-navy); font-weight: 600; }

@media (max-width: 1023px) { .resources-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .resources-grid { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------------------
   16. FAQ (Section 16)
   ------------------------------------------------------------------------- */
.faq { max-width: var(--content-max); margin: 0 auto; }
.faq__item {
  border-bottom: 1px solid var(--c-border);
}
.faq__q {
  width: 100%; background: transparent; border: 0;
  padding: 24px 0; text-align: left; display: flex; justify-content: space-between; align-items: center;
  gap: 24px; font-size: 18px; font-weight: 600; color: var(--c-navy);
  cursor: pointer;
}
.faq__q:hover { color: var(--c-slate); }
.faq__chev {
  width: 16px; height: 16px; flex-shrink: 0;
  border-right: 2px solid var(--c-slate); border-bottom: 2px solid var(--c-slate);
  transform: rotate(45deg); transition: transform 300ms ease;
}
.faq__q[aria-expanded="true"] .faq__chev { transform: rotate(-135deg); }
.faq__a {
  max-height: 0; overflow: hidden; transition: max-height 300ms ease;
}
.faq__a-inner {
  padding: 0 0 24px; font-size: 16px; line-height: 1.7; color: var(--c-body);
}
@media (max-width: 767px) {
  .faq { display: flex; flex-direction: column; gap: 12px; }
  .faq__item {
    border: 1px solid var(--c-border); border-radius: var(--radius-sm);
    background: #fff; padding: 0 16px;
  }
  .faq__item[data-open], .faq__q[aria-expanded="true"] { border-color: var(--c-slate); }
  .faq__q {
    padding: 16px 0; gap: 14px; font-size: 15px; line-height: 1.4;
    align-items: flex-start;
  }
  .faq__chev { margin-top: 4px; }
  .faq__a-inner { padding: 0 0 16px; font-size: 14px; line-height: 1.6; }
}

/* -------------------------------------------------------------------------
   17. FINAL CTA (Section 17)
   ------------------------------------------------------------------------- */
.final-cta { text-align: center; }
.final-cta .eyebrow { color: #B7CCE0; }
.final-cta h2 { color: #fff; margin-bottom: 16px; }
.final-cta p { color: rgba(255,255,255,0.88); font-size: 18px; max-width: 640px; margin: 0 auto 32px; }
.final-cta__ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.final-cta__trust {
  margin-top: 32px; font-size: 14px; color: rgba(255,255,255,0.78);
  display: flex; flex-wrap: wrap; gap: 12px 20px; justify-content: center;
}
.final-cta__trust span::before { content: "✓ "; color: var(--c-orange); font-weight: 700; }

@media (max-width: 640px) {
  .final-cta__ctas .btn { width: 100%; }
}

/* -------------------------------------------------------------------------
   18. FOOTER (Section 18)
   ------------------------------------------------------------------------- */
.site-footer { background: var(--c-navy); color: rgba(255,255,255,0.85); padding: 64px 0 0; }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 40px;
}
.site-footer h4 {
  font-size: 13px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: #fff; margin-bottom: 16px;
}
.site-footer ul li { margin-bottom: 8px; }
.site-footer ul li a {
  color: rgba(255,255,255,0.75); font-size: 14px;
}
.site-footer ul li a:hover { color: #fff; text-decoration: underline; }
.footer-brand img { width: 180px; margin-bottom: 12px; }
.footer-brand__tag { font-size: 14px; color: rgba(255,255,255,0.7); margin-bottom: 16px; }
.footer-brand address {
  font-style: normal; font-size: 14px; line-height: 1.7;
  color: rgba(255,255,255,0.75);
}
.footer-brand address a { color: inherit; }
.footer-brand address a:hover { color: #fff; }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.5);
  display: grid; place-items: center; color: #fff;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.footer-social a:hover { background: #fff; color: var(--c-navy); border-color: #fff; text-decoration: none; }
.footer-social svg { width: 16px; height: 16px; }

.site-footer__legal {
  margin-top: 48px; padding: 20px 0; border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}
.site-footer__legal .copyright { color: rgba(255,255,255,0.65); }
.site-footer__legal .legal-links { display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer__legal .legal-links a { color: rgba(255,255,255,0.78); }
.site-footer__legal .built-by { color: rgba(255,255,255,0.5); font-size: 11px; }
.site-footer__legal .built-by a { color: inherit; }

@media (max-width: 1023px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}

/* -------------------------------------------------------------------------
   Mobile sticky CTA bar (mentioned in strategy section 9.2)
   Optional — appears post-hero on mobile.
   ------------------------------------------------------------------------- */
.mobile-sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #fff; border-top: 1px solid var(--c-border);
  padding: 8px; display: none; gap: 8px;
  z-index: var(--z-sticky-cta);
  box-shadow: 0 -2px 12px rgba(11,37,69,0.08);
}
.mobile-sticky-cta .btn { flex: 1; height: 48px; font-size: 15px; padding: 0 12px; }
@media (max-width: 767px) {
  body.scrolled-past-hero .mobile-sticky-cta { display: flex; }
  body.scrolled-past-hero { padding-bottom: 72px; }
}

/* =========================================================================
   SERVICE PAGE PATTERNS
   Used by /services/ hub and all /services/[slug]/ child pages.
   ========================================================================= */

/* -------------------------------------------------------------------------
   Breadcrumb (inside hero on services pages)
   ------------------------------------------------------------------------- */
.breadcrumb {
  font-size: 14px; color: rgba(255,255,255,0.78);
  margin-bottom: 16px;
}
.breadcrumb a { color: rgba(255,255,255,0.78); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb__sep { margin: 0 8px; opacity: 0.6; }
.breadcrumb__current { color: #fff; font-weight: 600; }

/* Light variant — used when the breadcrumb sits on a white section */
.breadcrumb--light { color: var(--c-muted); }
.breadcrumb--light a { color: var(--c-muted); }
.breadcrumb--light a:hover { color: var(--c-navy); }
.breadcrumb--light .breadcrumb__current { color: var(--c-body); }

/* -------------------------------------------------------------------------
   Service-page hero (shorter than homepage hero)
   ------------------------------------------------------------------------- */
.hero--service {
  min-height: 380px;
  padding-block: 72px;
  background-image:
    linear-gradient(90deg, rgba(11,37,69,0.85), rgba(11,37,69,0.55)),
    url("../images/hero-home.svg");
}
.hero--service .hero__title { font-size: 44px; }
.hero--service .hero__sub { font-size: 18px; }
@media (max-width: 1023px) { .hero--service { min-height: 320px; padding-block: 56px; } .hero--service .hero__title { font-size: 36px; } }
@media (max-width: 767px)  { .hero--service { min-height: 280px; padding-block: 48px; } .hero--service .hero__title { font-size: 28px; } }

/* -------------------------------------------------------------------------
   Hub — alternating service rows (services hub Section 7)
   ------------------------------------------------------------------------- */
.svc-rows { display: flex; flex-direction: column; gap: 48px; }
.svc-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.svc-row:nth-child(even) .svc-row__media { order: 2; }
.svc-row__media {
  aspect-ratio: 3 / 2; overflow: hidden;
  border-radius: var(--radius); background: var(--c-mist);
}
.svc-row__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.svc-row:hover .svc-row__media img { transform: scale(1.03); }
.svc-row__body h3 { font-size: 24px; margin-bottom: 12px; }
.svc-row__body p { font-size: 16px; line-height: 1.65; color: var(--c-body); margin-bottom: 16px; }
.svc-row__more { color: var(--c-slate); font-weight: 600; }
.svc-row__more:hover { text-decoration: underline; }

@media (max-width: 767px) {
  .svc-rows { gap: 32px; }
  .svc-row { grid-template-columns: 1fr; gap: 16px; }
  .svc-row:nth-child(even) .svc-row__media { order: 0; }
  .svc-row__media { aspect-ratio: 16 / 9; }
}

/* -------------------------------------------------------------------------
   Methods comparison (services hub Section 9)
   ------------------------------------------------------------------------- */
.methods-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.method-card {
  background: var(--c-offwhite); border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 32px;
  display: flex; flex-direction: column; gap: 16px;
}
.method-card--soft  { border-top: 4px solid var(--c-slate); }
.method-card--press { border-top: 4px solid var(--c-orange); }
.method-card h3 { font-size: 22px; margin: 0; display: flex; align-items: center; gap: 12px; }
.method-card h3 svg { width: 32px; height: 32px; }
.method-card--soft  h3 svg { color: var(--c-slate); }
.method-card--press h3 svg { color: var(--c-orange); }
.method-card__psi {
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--c-muted);
}
.method-card dl { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 0; }
.method-card dt { font-size: 13px; font-weight: 700; color: var(--c-navy); letter-spacing: 0.04em; text-transform: uppercase; }
.method-card dd { margin: 4px 0 0; font-size: 15px; line-height: 1.55; color: var(--c-body); }
@media (max-width: 767px) { .methods-compare { grid-template-columns: 1fr; gap: 16px; } }

/* -------------------------------------------------------------------------
   Process steps (service pages Section 8)
   ------------------------------------------------------------------------- */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; counter-reset: step; }
.process__step {
  position: relative; padding: 32px 20px 20px;
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
}
.process__step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; top: -18px; left: 20px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--c-orange); color: #fff;
  font-weight: 800; font-size: 16px; border-radius: 50%;
}
.process__step h3 { font-size: 17px; margin: 8px 0 8px; line-height: 1.3; }
.process__step p  { font-size: 14px; line-height: 1.55; color: var(--c-body); }
@media (max-width: 1023px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .process { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------------------
   Problem block (service pages Section 7)
   ------------------------------------------------------------------------- */
.problem {
  background: var(--c-mist); border-left: 4px solid var(--c-orange);
  padding: 32px 40px; border-radius: var(--radius);
  max-width: var(--content-max); margin: 0 auto;
}
.problem h2 { font-size: 28px; margin-bottom: 16px; }
.problem p { font-size: 17px; line-height: 1.7; color: var(--c-body); }
.problem p + p { margin-top: 12px; }

/* -------------------------------------------------------------------------
   Related services row (Section 11)
   ------------------------------------------------------------------------- */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.related-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--c-border);
  border-radius: var(--radius); overflow: hidden;
  color: inherit;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.related-card:hover {
  transform: translateY(-4px); border-color: var(--c-slate);
  box-shadow: var(--shadow-lg); text-decoration: none;
}
.related-card__img { aspect-ratio: 3 / 2; background: var(--c-mist); overflow: hidden; }
.related-card__img img { width: 100%; height: 100%; object-fit: cover; }
.related-card__body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.related-card h3 { font-size: 18px; color: var(--c-navy); }
.related-card p { font-size: 14px; line-height: 1.5; color: var(--c-muted); }
.related-card__more { color: var(--c-slate); font-weight: 600; margin-top: auto; padding-top: 8px; }
@media (max-width: 767px) { .related-grid { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------------------
   Service-areas callout (compact block, Section 12)
   ------------------------------------------------------------------------- */
.areas-callout { background: var(--c-mist); padding: 48px 0; text-align: center; }
.areas-callout h2 { font-size: 24px; margin-bottom: 12px; }
.areas-callout p { font-size: 16px; color: var(--c-body); max-width: 760px; margin: 0 auto; }
.areas-callout__cities { margin-top: 12px; }
.areas-callout__cities a { color: var(--c-slate); font-weight: 600; }
.areas-callout__more { display: inline-block; margin-top: 16px; color: var(--c-slate); font-weight: 600; }

/* -------------------------------------------------------------------------
   Why-Us compact row (Section 9 — 4 differentiators)
   ------------------------------------------------------------------------- */
.why-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why-card { text-align: center; padding: 24px 12px; }
.why-card svg { width: 48px; height: 48px; color: var(--c-orange); margin: 0 auto 12px; }
.why-card h3 { font-size: 17px; margin-bottom: 8px; }
.why-card p  { font-size: 14px; color: var(--c-body); line-height: 1.55; }
@media (max-width: 1023px) { .why-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .why-row { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------------------
   Two-column before/after pair (service pages Section 10)
   ------------------------------------------------------------------------- */
.showcase--two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 767px) { .showcase--two { grid-template-columns: 1fr; } }

/* =========================================================================
   TRUST + CONVERSION PAGE PATTERNS
   Used by /about/, /contact/, /free-estimate/, and legal pages.
   ========================================================================= */

/* -------------------------------------------------------------------------
   Hero — compact variant (About, Contact, Free Estimate, legal)
   ------------------------------------------------------------------------- */
.hero--compact {
  min-height: 320px;
  padding-block: 64px;
  background-image:
    linear-gradient(90deg, rgba(11,37,69,0.88), rgba(11,37,69,0.60)),
    url("../images/hero-home.svg");
}
.hero--compact .hero__title { font-size: 40px; }
.hero--compact .hero__sub { font-size: 18px; }
@media (max-width: 767px) {
  .hero--compact { min-height: 240px; padding-block: 48px; }
  .hero--compact .hero__title { font-size: 28px; }
}

/* -------------------------------------------------------------------------
   Legal / Utility pages (Privacy, Terms, Accessibility)
   ------------------------------------------------------------------------- */
.legal {
  max-width: 780px; margin: 0 auto;
  padding-block: 64px;
}
.legal__updated {
  display: inline-block; padding: 6px 12px;
  background: var(--c-mist); color: var(--c-muted);
  font-size: 13px; font-weight: 600; border-radius: 999px;
  margin-bottom: 24px;
}
.legal h1 { font-size: 36px; margin-bottom: 16px; }
.legal h2 {
  font-size: 22px; margin-top: 40px; margin-bottom: 12px;
  padding-top: 24px; border-top: 1px solid var(--c-border);
}
.legal h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 32px; }
.legal h3 { font-size: 17px; margin-top: 20px; margin-bottom: 8px; }
.legal p, .legal li {
  font-size: 16px; line-height: 1.75; color: var(--c-body);
  margin-bottom: 12px;
}
.legal ul, .legal ol { padding-left: 24px; margin-bottom: 16px; }
.legal ul li, .legal ol li { list-style: disc; margin-bottom: 6px; }
.legal ol li { list-style: decimal; }
.legal a { color: var(--c-slate); }
.legal a:hover { text-decoration: underline; }
.legal__contact {
  margin-top: 40px; padding: 20px 24px;
  background: var(--c-offwhite); border-radius: var(--radius);
  font-size: 15px;
}

/* -------------------------------------------------------------------------
   Forms — shared form styles
   ------------------------------------------------------------------------- */
.form { display: grid; gap: 20px; }
.form__row { display: grid; gap: 20px; }
.form__row--2 { grid-template-columns: 1fr 1fr; }
.form__row--3 { grid-template-columns: 2fr 1fr 1fr; }
@media (max-width: 640px) {
  .form__row--2, .form__row--3 { grid-template-columns: 1fr; }
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 14px; font-weight: 600; color: var(--c-navy);
}
.field label .req { color: var(--c-orange); margin-left: 2px; }
.field input,
.field select,
.field textarea {
  width: 100%; font-family: inherit; font-size: 16px;
  color: var(--c-body); background: #fff;
  border: 1px solid var(--c-border); border-radius: var(--radius-sm);
  padding: 12px 14px; line-height: 1.4;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0; border-color: var(--c-slate);
  box-shadow: 0 0 0 3px rgba(62,105,144,0.18);
}
.field textarea { resize: vertical; min-height: 96px; }
.field--error input,
.field--error select,
.field--error textarea {
  border-color: var(--c-alert);
  box-shadow: 0 0 0 3px rgba(220,53,69,0.10);
}
.field__error {
  font-size: 13px; color: var(--c-alert); margin-top: 2px;
  display: none;
}
.field--error .field__error { display: block; }
.field__hint { font-size: 13px; color: var(--c-muted); }

.checkbox-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 16px;
}
@media (max-width: 640px) { .checkbox-grid { grid-template-columns: 1fr; } }
.checkbox-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border: 1px solid var(--c-border);
  border-radius: var(--radius-sm); cursor: pointer;
  transition: background var(--ease), border-color var(--ease);
}
.checkbox-item:hover { background: var(--c-offwhite); border-color: var(--c-slate); }
.checkbox-item input { width: 18px; height: 18px; accent-color: var(--c-orange); }
.checkbox-item span { font-size: 14px; color: var(--c-body); }

.honeypot {
  position: absolute; left: -9999px; opacity: 0;
  width: 1px; height: 1px; overflow: hidden;
}

.form__submit { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form__submit .btn { min-width: 200px; }
.form__legal { font-size: 13px; color: var(--c-muted); max-width: 520px; }
.form__legal a { color: var(--c-slate); }

/* Success / error banners shown in place of the form */
.form__success, .form__failure {
  padding: 24px 28px; border-radius: var(--radius);
  font-size: 16px; line-height: 1.6;
  display: none;
}
.form__success { background: rgba(40,167,69,0.08); border: 1px solid rgba(40,167,69,0.4); color: #14692C; }
.form__failure { background: rgba(220,53,69,0.08); border: 1px solid rgba(220,53,69,0.4); color: #842029; }
.form__success.is-visible, .form__failure.is-visible { display: block; }
.form.is-submitted { display: none; }

/* -------------------------------------------------------------------------
   Contact page two-column
   ------------------------------------------------------------------------- */
.contact-grid {
  display: grid; grid-template-columns: 55% 45%; gap: 48px;
}
@media (max-width: 1023px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }

.info-panel {
  background: var(--c-offwhite); border-radius: var(--radius);
  padding: 32px;
}
.info-panel h2 { font-size: 22px; margin-bottom: 20px; }
.info-row {
  display: grid; grid-template-columns: 24px 1fr; gap: 14px;
  padding: 14px 0; border-top: 1px solid var(--c-border);
}
.info-row:first-of-type { border-top: 0; padding-top: 0; }
.info-row svg { width: 22px; height: 22px; color: var(--c-slate); margin-top: 2px; }
.info-row__label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-muted); }
.info-row__value { font-size: 16px; color: var(--c-body); }
.info-row__value a { color: var(--c-navy); font-weight: 600; }
.info-row__value a:hover { color: var(--c-slate); }
.info-panel__map iframe {
  width: 100%; height: 280px;
  border: 0; border-radius: var(--radius-sm); margin-top: 20px;
}
.info-panel__trust {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px;
}
.info-panel__trust span {
  font-size: 12px; color: var(--c-muted); font-weight: 600;
  padding: 6px 10px; background: #fff; border: 1px solid var(--c-border); border-radius: 999px;
}

/* Emergency / priority banner */
.priority-banner {
  background: var(--c-orange); color: #fff;
  padding: 14px 24px; text-align: center;
  font-weight: 600; font-size: 15px;
}
.priority-banner a { color: #fff; text-decoration: underline; }

/* -------------------------------------------------------------------------
   Free Estimate two-column
   ------------------------------------------------------------------------- */
.estimate-grid {
  display: grid; grid-template-columns: 60% 40%; gap: 48px;
}
@media (max-width: 1023px) {
  .estimate-grid { grid-template-columns: 1fr; gap: 24px; }
  .estimate-grid > .trust-panel { order: -1; }
}

.trust-panel {
  display: flex; flex-direction: column; gap: 16px;
}
.trust-item {
  background: var(--c-offwhite); border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 20px;
  display: flex; gap: 14px; align-items: flex-start;
}
.trust-item svg { width: 28px; height: 28px; color: var(--c-orange); flex-shrink: 0; }
.trust-item__title { font-size: 15px; font-weight: 700; color: var(--c-navy); margin-bottom: 4px; }
.trust-item__body { font-size: 14px; color: var(--c-body); line-height: 1.5; }
.trust-item--quote { background: var(--c-navy); color: #fff; border-color: var(--c-navy); }
.trust-item--quote .trust-item__title { color: #fff; font-style: italic; font-weight: 400; }
.trust-item--quote .trust-item__body { color: rgba(255,255,255,0.78); font-weight: 600; }

.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  counter-reset: estep;
}
.step {
  background: #fff; border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 24px;
  position: relative;
}
.step::before {
  counter-increment: estep; content: counter(estep);
  position: absolute; top: -16px; left: 24px;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: var(--c-orange); color: #fff;
  font-weight: 800; border-radius: 50%;
}
.step h3 { font-size: 17px; margin: 4px 0 8px; }
.step p  { font-size: 14px; line-height: 1.55; color: var(--c-body); }
@media (max-width: 767px) { .steps { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------------------
   About page — values, credentials, team
   ------------------------------------------------------------------------- */
.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.value-card {
  background: #fff; border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 28px;
  display: flex; gap: 20px;
}
.value-card svg { width: 40px; height: 40px; color: var(--c-orange); flex-shrink: 0; }
.value-card h3 { font-size: 18px; margin-bottom: 8px; }
.value-card p { font-size: 15px; line-height: 1.6; color: var(--c-body); margin-bottom: 8px; }
.value-card__proof {
  font-size: 13px; color: var(--c-muted); font-style: italic;
  border-left: 3px solid var(--c-slate); padding-left: 12px;
}
@media (max-width: 767px) { .values-grid { grid-template-columns: 1fr; } }

.credentials {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px;
}
.credential {
  background: #fff; border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 20px;
  text-align: center;
}
.credential__title { font-size: 14px; font-weight: 700; color: var(--c-navy); margin-bottom: 4px; }
.credential__detail { font-size: 13px; color: var(--c-muted); margin-bottom: 8px; line-height: 1.45; }
.credential__verify { font-size: 12px; color: var(--c-slate); font-weight: 600; }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.team-card { text-align: center; }
.team-card__photo {
  width: 100%; max-width: 220px; aspect-ratio: 1; margin: 0 auto 12px;
  background: var(--c-mist); border-radius: 50%; overflow: hidden;
}
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-size: 18px; margin-bottom: 4px; }
.team-card__role { font-size: 13px; color: var(--c-slate); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 8px; }
.team-card p { font-size: 14px; line-height: 1.55; color: var(--c-body); }
@media (max-width: 1023px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .team-grid { grid-template-columns: 1fr; } }

.founder-row {
  display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: center;
  background: var(--c-mist); border-radius: var(--radius); padding: 32px;
}
.founder-row__photo {
  width: 100%; aspect-ratio: 1; border-radius: var(--radius);
  overflow: hidden; background: var(--c-slate);
}
.founder-row__photo img { width: 100%; height: 100%; object-fit: cover; }
.founder-row h3 { font-size: 22px; margin-bottom: 4px; }
.founder-row__role { font-size: 14px; color: var(--c-slate); font-weight: 600; margin-bottom: 12px; }
.founder-row p { font-size: 16px; line-height: 1.65; color: var(--c-body); }
@media (max-width: 767px) {
  .founder-row { grid-template-columns: 1fr; text-align: center; padding: 24px; }
  .founder-row__photo { max-width: 220px; margin: 0 auto; }
}

/* =========================================================================
   SERVICE-AREAS / CITY PAGE PATTERNS
   ========================================================================= */

/* City directory grid (hub) */
.city-dir { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.city-card {
  background: #fff; border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 24px;
  display: flex; flex-direction: column;
  color: inherit;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.city-card:hover {
  transform: translateY(-3px); border-color: var(--c-slate);
  box-shadow: var(--shadow-lg); text-decoration: none;
}
.city-card h3 { font-size: 18px; margin-bottom: 6px; }
.city-card__zip { font-size: 12px; color: var(--c-slate); font-weight: 600; letter-spacing: 0.04em; margin-bottom: 8px; }
.city-card__tag { font-size: 14px; color: var(--c-muted); line-height: 1.5; margin-bottom: 12px; flex: 1; }
.city-card__more { color: var(--c-slate); font-weight: 600; font-size: 14px; }
@media (max-width: 1023px) { .city-dir { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .city-dir { grid-template-columns: 1fr; } }

/* Neighbors strip — 4 small cards */
.neighbors-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.neighbor-card {
  background: #fff; border: 1px solid var(--c-border);
  border-radius: var(--radius-sm); padding: 16px;
  color: inherit;
  transition: transform var(--ease), border-color var(--ease);
}
.neighbor-card:hover { transform: translateY(-2px); border-color: var(--c-slate); text-decoration: none; }
.neighbor-card h3 { font-size: 16px; margin-bottom: 4px; }
.neighbor-card p { font-size: 13px; color: var(--c-muted); line-height: 1.45; margin-bottom: 8px; }
.neighbor-card__more { font-size: 13px; color: var(--c-slate); font-weight: 600; }
@media (max-width: 1023px) { .neighbors-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .neighbors-grid { grid-template-columns: 1fr; } }

/* Local differentiators — 4 cards in 2x2 (city pages §6) */
.differentiators { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.differentiator {
  background: #fff; border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 24px;
  border-left: 4px solid var(--c-orange);
}
.differentiator__num {
  display: inline-block; width: 28px; height: 28px;
  background: var(--c-orange); color: #fff; border-radius: 50%;
  font-weight: 800; text-align: center; line-height: 28px; font-size: 14px;
  margin-bottom: 10px;
}
.differentiator p { font-size: 15px; line-height: 1.65; color: var(--c-body); margin: 0; }
@media (max-width: 767px) { .differentiators { grid-template-columns: 1fr; } }

/* =========================================================================
   RESOURCE / ARTICLE PAGE PATTERNS
   ========================================================================= */

/* Hub category filters */
.cat-filters {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  margin-bottom: 32px;
}
.cat-pill {
  background: var(--c-mist); color: var(--c-navy);
  border: 0; border-radius: 999px; padding: 8px 16px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background var(--ease), color var(--ease);
}
.cat-pill.is-active { background: var(--c-orange); color: #fff; }
.cat-pill:hover:not(.is-active) { background: var(--c-slate); color: #fff; }

/* Article layout */
.article {
  max-width: 780px; margin: 0 auto;
  padding-block: 56px 72px;
}
.article__breadcrumb { margin-bottom: 16px; }
.article__cat {
  display: inline-block; background: var(--c-slate); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
  margin-bottom: 16px;
}
.article h1 {
  font-size: 36px; line-height: 1.2; margin-bottom: 20px;
  letter-spacing: -0.01em;
}
.article__meta {
  display: flex; flex-wrap: wrap; gap: 16px;
  font-size: 14px; color: var(--c-muted);
  border-bottom: 1px solid var(--c-border); padding-bottom: 20px; margin-bottom: 32px;
}
.article__meta strong { color: var(--c-navy); font-weight: 600; }
.article__hero {
  aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius);
  background: var(--c-mist); margin-bottom: 32px;
}
.article__hero img { width: 100%; height: 100%; object-fit: cover; }

/* Table of contents */
.article__toc {
  background: var(--c-offwhite); border-left: 4px solid var(--c-slate);
  border-radius: var(--radius-sm); padding: 20px 24px; margin: 0 0 32px;
}
.article__toc h2 {
  font-size: 14px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--c-muted); margin-bottom: 12px;
  border: 0; padding: 0;
}
.article__toc ol { padding-left: 20px; margin: 0; }
.article__toc li {
  font-size: 15px; line-height: 1.6; margin-bottom: 4px; list-style: decimal;
}
.article__toc a { color: var(--c-slate); }
.article__toc a:hover { color: var(--c-navy); text-decoration: underline; }

/* Article prose */
.article__lede {
  font-size: 19px; line-height: 1.65; color: var(--c-body);
  margin-bottom: 32px;
}
.article__body h2 {
  font-size: 26px; line-height: 1.25; margin-top: 48px; margin-bottom: 16px;
  scroll-margin-top: 100px;
}
.article__body h3 {
  font-size: 19px; line-height: 1.3; margin-top: 28px; margin-bottom: 12px;
}
.article__body p {
  font-size: 17px; line-height: 1.75; color: var(--c-body);
  margin-bottom: 16px;
}
.article__body ul, .article__body ol {
  padding-left: 24px; margin: 0 0 16px;
}
.article__body ul li { list-style: disc; }
.article__body ol li { list-style: decimal; }
.article__body li {
  font-size: 17px; line-height: 1.75; color: var(--c-body);
  margin-bottom: 8px;
}
.article__body a {
  color: var(--c-slate); font-weight: 500; text-decoration: underline;
  text-decoration-color: rgba(62,105,144,0.35); text-underline-offset: 3px;
}
.article__body a:hover { color: var(--c-navy); text-decoration-color: currentColor; }
.article__body strong { color: var(--c-navy); font-weight: 700; }

/* Article table (used for compatibility charts, price ranges) */
.article__table {
  width: 100%; border-collapse: collapse; margin: 24px 0;
  font-size: 15px;
}
.article__table th, .article__table td {
  text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--c-border);
}
.article__table th {
  background: var(--c-offwhite); color: var(--c-navy);
  font-weight: 700; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase;
}
.article__table tr:last-child td { border-bottom: 0; }
.article__table tbody tr:nth-child(even) { background: rgba(232,238,242,0.4); }

/* Pull quote / callout */
.article__callout {
  background: var(--c-mist); border-left: 4px solid var(--c-orange);
  padding: 20px 24px; border-radius: var(--radius-sm); margin: 24px 0;
  font-size: 16px; color: var(--c-body);
}

/* Inline article CTA */
.article__cta {
  background: var(--c-offwhite); border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 28px 32px;
  margin-top: 48px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px;
}
.article__cta h3 { font-size: 20px; margin: 0; flex: 1 1 240px; }
.article__cta .btn { white-space: nowrap; }
.article__cta__links { display: flex; flex-wrap: wrap; gap: 12px; }

/* Related content */
.article__related {
  margin-top: 56px; border-top: 1px solid var(--c-border); padding-top: 40px;
}
.article__related h2 {
  font-size: 16px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--c-muted); margin-bottom: 20px;
}

@media (max-width: 767px) {
  .article { padding-block: 32px 48px; }
  .article h1 { font-size: 28px; }
  .article__body h2 { font-size: 22px; margin-top: 36px; }
  .article__body h3 { font-size: 17px; }
  .article__body p, .article__body li { font-size: 16px; }
  .article__cta { padding: 24px; }
}

/* =========================================================================
   REVIEWS PAGE
   ========================================================================= */
.aggregate {
  display: flex; align-items: center; justify-content: center;
  gap: 24px; flex-wrap: wrap; margin-bottom: 32px;
}
.aggregate__num {
  font-size: 64px; font-weight: 800; color: var(--c-orange); line-height: 1;
}
.aggregate__body { text-align: left; }
.aggregate__stars { color: var(--c-orange); font-size: 22px; letter-spacing: 4px; }
.aggregate__caption { font-size: 14px; color: var(--c-muted); font-weight: 600; }

.reviews-grid {
  columns: 3 320px;
  column-gap: 24px;
}
.review-card {
  break-inside: avoid;
  background: var(--c-offwhite); border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 24px;
  margin-bottom: 24px;
  position: relative;
  display: inline-block; width: 100%;
}
.review-card__stars { color: var(--c-orange); letter-spacing: 4px; font-size: 18px; margin-bottom: 12px; }
.review-card__text { font-size: 16px; line-height: 1.65; color: var(--c-body); font-style: italic; margin-bottom: 16px; }
.review-card__name { font-size: 15px; font-weight: 600; color: var(--c-navy); }
.review-card__meta { font-size: 13px; color: var(--c-muted); margin-top: 2px; }
.review-card__google {
  position: absolute; top: 16px; right: 16px;
  font-size: 11px; color: var(--c-muted); font-weight: 600;
}
@media (max-width: 1023px) { .reviews-grid { columns: 2 280px; } }
@media (max-width: 600px)  { .reviews-grid { columns: 1; } }

/* First-party featured testimonial block */
.featured-review {
  background: #fff; border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-orange);
  border-radius: var(--radius); padding: 28px 32px;
  display: grid; grid-template-columns: 140px 1fr; gap: 24px;
  margin-bottom: 24px; align-items: start;
}
.featured-review__photo {
  width: 140px; aspect-ratio: 4 / 3; border-radius: var(--radius-sm);
  overflow: hidden; background: var(--c-mist);
}
.featured-review__photo img { width: 100%; height: 100%; object-fit: cover; }
.featured-review blockquote {
  font-size: 16px; line-height: 1.7; color: var(--c-body); font-style: italic;
  margin: 0 0 12px;
}
.featured-review__attr { font-size: 14px; color: var(--c-navy); font-weight: 700; }
.featured-review__meta { font-size: 13px; color: var(--c-muted); margin-top: 2px; }
@media (max-width: 640px) {
  .featured-review { grid-template-columns: 1fr; padding: 20px; }
  .featured-review__photo { width: 100%; max-width: 240px; }
}

/* =========================================================================
   GALLERY PAGE
   ========================================================================= */
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.gallery-card {
  background: #fff; border: 1px solid var(--c-border);
  border-radius: var(--radius); overflow: hidden;
}
.gallery-card__caption {
  padding: 16px 18px;
  font-size: 14px; line-height: 1.55; color: var(--c-body);
}
.gallery-card__caption strong { color: var(--c-navy); display: block; margin-bottom: 4px; }
.gallery-card__caption span { color: var(--c-muted); }
@media (max-width: 1023px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .gallery-grid { grid-template-columns: 1fr; } }

.gallery-load-more { text-align: center; margin-top: 32px; }

/* =========================================================================
   PROCESS TIMELINE (Our Process page)
   ========================================================================= */
.timeline {
  display: flex; flex-direction: column; gap: 48px;
  max-width: 880px; margin: 0 auto;
}
.timeline__step {
  display: grid; grid-template-columns: 80px 1fr 280px; gap: 32px;
  align-items: start;
  position: relative;
}
.timeline__step::after {
  content: ""; position: absolute;
  top: 80px; left: 39px; bottom: -48px; width: 2px;
  background: var(--c-border);
}
.timeline__step:last-child::after { display: none; }
.timeline__num {
  width: 80px; height: 80px; background: var(--c-orange); color: #fff;
  border-radius: 50%; display: grid; place-items: center;
  font-size: 36px; font-weight: 800; flex-shrink: 0;
  position: relative; z-index: 1;
}
.timeline__body h3 { font-size: 24px; margin-bottom: 12px; }
.timeline__body p { font-size: 16px; line-height: 1.7; color: var(--c-body); }
.timeline__media {
  aspect-ratio: 4 / 3; background: var(--c-mist);
  border-radius: var(--radius); overflow: hidden;
}
.timeline__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1023px) {
  .timeline__step { grid-template-columns: 64px 1fr; }
  .timeline__num { width: 64px; height: 64px; font-size: 28px; }
  .timeline__media { grid-column: 1 / -1; max-width: 480px; }
  .timeline__step::after { left: 31px; }
}
@media (max-width: 640px) {
  .timeline { gap: 40px; }
  .timeline__step { gap: 16px; }
  .timeline__step::after { top: 72px; left: 23px; }
  .timeline__num { width: 48px; height: 48px; font-size: 22px; }
}

/* Property types row (commercial-quote page) */
.property-types {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.property-type {
  text-align: center; padding: 20px 12px;
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-sm);
}
.property-type svg { width: 36px; height: 36px; color: var(--c-slate); margin-bottom: 8px; }
.property-type span { font-size: 13px; font-weight: 600; color: var(--c-navy); display: block; line-height: 1.3; }
@media (max-width: 767px) { .property-types { grid-template-columns: repeat(2, 1fr); } }

/* -------------------------------------------------------------------------
   Small helpers
   ------------------------------------------------------------------------- */
[hidden] { display: none !important; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
