/* ==================================================================
   Meridian Window Cleaning — shared stylesheet
   One file for the whole site. Mobile-first, no framework.
   Colors are exposed as CSS custom properties for easy tweaking.
================================================================== */

/* ─── 1. Tokens ──────────────────────────────────────────────────── */
:root {
  /* Brand palette (from brief) */
  --amber:       #F2A62A;
  --amber-dark:  #EF9F27;
  --gold:        #C89B3C;
  --gold-light:  #D9A441;
  --sky:         #86C1EA;
  --sky-dark:    #4E9BE0;
  --deep-blue:   #1D5372;
  --cream:       #FBF6EC;
  --white:       #FFFFFF;

  /* Semantic aliases */
  --bg:          var(--white);
  --bg-alt:      var(--cream);
  --fg:          var(--deep-blue);
  --fg-quiet:    #4a6f89;
  --line:        #e6dccb;
  --line-strong: #d5c9b1;

  /* Type + spacing */
  --font: 'Outfit', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --radius:      14px;
  --radius-sm:   8px;
  --radius-lg:   22px;
  --gutter:      clamp(16px, 4vw, 32px);
  --tap:         48px;
  --max:         1180px;
  --max-narrow:  760px;

  --shadow-sm:   0 2px 10px rgba(29, 83, 114, 0.08);
  --shadow-md:   0 10px 30px rgba(29, 83, 114, 0.12);
  --shadow-lg:   0 22px 60px rgba(29, 83, 114, 0.18);
}

/* ─── 2. Reset + base ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-weight: 400;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--deep-blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--sky-dark); }
button { font: inherit; cursor: pointer; }
ul { list-style: none; }

/* Accessible skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--deep-blue); color: #fff; padding: 10px 16px; border-radius: 0 0 var(--radius-sm) 0;
  z-index: 1001; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ─── 3. Layout wrappers ─────────────────────────────────────────── */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  width: 100%;
}
.wrap--narrow { max-width: var(--max-narrow); }
.section {
  padding: clamp(48px, 8vw, 96px) 0;
}
.section--cream { background: var(--cream); }
.section--deep  { background: var(--deep-blue); color: var(--cream); }
.section--deep h1, .section--deep h2, .section--deep h3, .section--deep p { color: var(--cream); }

/* ─── 4. Typography ──────────────────────────────────────────────── */
h1, h2, h3, h4 { font-weight: 500; line-height: 1.15; color: var(--deep-blue); letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 0.5em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin-bottom: 0.5em; }
h3 { font-size: 1.25rem; margin-bottom: 0.4em; }
p  { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 12px;
}
.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--fg-quiet);
  max-width: 60ch;
  margin-bottom: 24px;
  line-height: 1.55;
}

/* ─── 5. Header + nav ────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: none;                                     /* let header span the full viewport */
  padding-left: clamp(20px, 2.4vw, 40px);              /* small gap, matches right side */
  padding-right: clamp(20px, 2.4vw, 40px);
  padding-top: 10px; padding-bottom: 10px;
  min-height: 76px;

  /* 3-column grid: brand (left) | nav (centered) | right cluster (right).
     Outer 1fr columns are equal so the middle column stays truly centered
     between brand and right cluster regardless of their widths. */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.brand { justify-self: start; }
.primary-nav { justify-self: center; }
.nav-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--deep-blue);
  flex: 0 0 auto;
  padding: 4px 0;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.brand:hover { transform: scale(1.04); }
.brand-logo {
  height: 48px; width: auto;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.brand:hover .brand-logo { transform: rotate(-8deg) scale(1.05); }
.brand-text-main { transition: color 0.2s ease; }
.brand:hover .brand-text-main { color: var(--amber-dark); }
.brand-text {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  gap: 5px;
}
.brand-text-main {
  font-family: var(--font);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--deep-blue);
  letter-spacing: -0.005em;
  line-height: 1;
}
.brand-text-sub {
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.62rem;
  color: var(--gold);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1;
}
@media (max-width: 480px) {
  .brand-logo { height: 40px; }
  .brand-text-main { font-size: 1.1rem; }
  .brand-text-sub { font-size: 0.55rem; letter-spacing: 0.2em; }
}

.primary-nav {
  display: flex; align-items: center; gap: 16px;       /* room to breathe between links */
}
.primary-nav a {
  display: inline-flex; align-items: center;
  padding: 10px 14px;
  color: var(--deep-blue);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  border-radius: var(--radius-sm);
  position: relative;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
              color 0.18s ease,
              background 0.18s ease,
              box-shadow 0.22s ease;
}
.primary-nav a::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 6px;
  width: 0; height: 2px;
  background: var(--amber);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--deep-blue);
  background: var(--cream);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 22px -8px rgba(242, 166, 42, 0.55);
}
.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
  width: calc(100% - 28px);
}

.btn--call-header {
  padding: 10px 18px;
  font-size: 0.95rem;
  min-height: 44px;
}

/* Social / link icon cluster in header — small circular buttons */
.nav-soc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-soc-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--deep-blue);
  background: transparent;
  border: 1px solid var(--line);
  text-decoration: none;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
              color 0.2s ease,
              background 0.2s ease,
              border-color 0.2s ease,
              box-shadow 0.28s ease;
}
.nav-soc-link:hover,
.nav-soc-link:focus-visible {
  color: var(--white);
  background: var(--amber);
  border-color: var(--amber);
  transform: translateY(-2px) scale(1.1);
  box-shadow: 0 10px 22px -8px rgba(242, 166, 42, 0.6);
}
.nav-soc-link svg { display: block; }

@media (max-width: 900px) {
  .nav-soc { display: none; }  /* keep mobile header uncluttered — socials still in footer */
}

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0; background: transparent;
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  flex-direction: column; justify-content: space-between; align-items: stretch;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%;
  background: var(--deep-blue);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.15s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile header */
@media (max-width: 900px) {
  /* Grid → flex on small screens: brand on left, right cluster on right */
  .header-inner {
    display: flex;
    justify-content: space-between;
    gap: 12px;
  }
  .brand, .nav-right { justify-self: auto; }

  .primary-nav {
    justify-self: auto;
    position: fixed;
    top: 76px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 20px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    transition: transform 0.24s ease;
    z-index: 99;
  }
  .primary-nav.is-open { transform: translateY(0); }
  .primary-nav a {
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
    min-height: var(--tap);
  }
  .primary-nav a:last-child { border-bottom: 0; }
  .nav-toggle { display: flex; }
  .btn--call-header {
    padding: 10px 14px;
    font-size: 0.88rem;
  }
  .btn--call-header span { display: none; }
}

/* ─── 6. Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  min-height: var(--tap);
  border: 2px solid transparent;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.28s ease,
              background 0.18s ease,
              color 0.18s ease,
              border-color 0.18s ease;
  white-space: nowrap;
  position: relative;
}
.btn:active { transform: translateY(1px) scale(0.985) !important; transition-duration: 0.08s; }

.btn--primary {
  background: var(--amber);
  color: var(--white);
  box-shadow: 0 4px 14px -4px rgba(242, 166, 42, 0.55);
}
.btn--primary:hover, .btn--primary:focus-visible {
  background: var(--amber-dark);
  color: var(--white);
  transform: translateY(-3px) scale(1.035);
  box-shadow: 0 16px 34px -10px rgba(242, 166, 42, 0.65),
              0 0 0 4px rgba(242, 166, 42, 0.15);
}

.btn--ghost {
  background: transparent;
  color: var(--deep-blue);
  border-color: var(--deep-blue);
}
.btn--ghost:hover, .btn--ghost:focus-visible {
  background: var(--deep-blue);
  color: var(--white);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 28px -10px rgba(29, 83, 114, 0.55);
}

.btn--call { /* phone CTA — subtle icon boost */ }
.btn--call svg { flex: 0 0 auto; transition: transform 0.25s ease; }
.btn--call:hover svg { transform: rotate(-10deg) scale(1.15); }

/* Selector bumped to .site-footer .btn--footer so it outranks the generic
   .site-footer a { color: cream } rule — otherwise the phone-number text
   inherits cream and reads as white-on-white on the footer pill. */
.site-footer .btn--footer,
.btn--footer {
  background: var(--white);
  color: var(--deep-blue);
  border-color: var(--white);
  font-size: 1.05rem;
}
.site-footer .btn--footer span,
.btn--footer span { color: var(--deep-blue); }
.site-footer .btn--footer:hover,
.site-footer .btn--footer:focus-visible,
.btn--footer:hover, .btn--footer:focus-visible {
  background: var(--amber);
  color: var(--white);
  border-color: var(--amber);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 28px -10px rgba(242, 166, 42, 0.55);
}
.site-footer .btn--footer:hover span,
.btn--footer:hover span { color: var(--white); }
.btn--google-reviews {
  background: var(--white);
  color: var(--deep-blue);
  border-color: var(--line-strong);
  padding: 12px 22px;
  box-shadow: var(--shadow-sm);
}
.btn--google-reviews:hover,
.btn--google-reviews:focus-visible {
  background: var(--cream);
  border-color: var(--gold);
  color: var(--deep-blue);
  transform: translateY(-3px) scale(1.035);
  box-shadow: 0 14px 30px -10px rgba(66, 133, 244, 0.35),
              0 0 0 4px rgba(200, 155, 60, 0.15);
}
.btn--google-reviews svg { flex: 0 0 auto; transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
.btn--google-reviews:hover svg { transform: rotate(-12deg) scale(1.15); }

.cta-row {
  margin-top: 28px;
  display: flex; flex-wrap: wrap; gap: 14px;
}

/* ─── 7. Hero (home) ─────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
  padding: clamp(60px, 10vw, 120px) 0 clamp(60px, 10vw, 120px);
  min-height: 640px;
}
.hero-inner {
  position: relative;
  z-index: 2;
}
.hero-copy {
  max-width: 560px;
  color: var(--deep-blue);
}
/* Shift the entire hero copy block (eyebrow, H1, description, CTAs,
   trust list) leftward on desktop so it clears the slideshow. */
@media (min-width: 901px) {
  .hero-copy { margin-left: -120px; }
}
.hero-copy h1 { color: var(--deep-blue); }
.hero-ctas {
  margin-top: 28px;
  display: flex; flex-wrap: wrap; gap: 14px;
}
.hero-trust {
  margin-top: 28px;
  display: grid; gap: 8px;
  color: var(--fg-quiet);
  font-size: 0.98rem;
}
.hero-trust li { display: flex; align-items: center; gap: 8px; }
.hero-trust li span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--amber);
  color: var(--white);
  font-size: 0.72rem; font-weight: 700;
}

.hero-visual { display: flex; justify-content: center; align-items: center; width: 100%; }
.hero-photo {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* ── Hero slideshow ── full-height layer bleeding off right edge
   with a mask-fade on the left so it blends into the cream background */
.hero-slideshow {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 58vw;
  max-width: none;
  aspect-ratio: unset;
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  z-index: 1;
  -webkit-mask-image: linear-gradient(to right,
    transparent 0%,
    rgba(0, 0, 0, 0.18) 10%,
    rgba(0, 0, 0, 0.55) 22%,
    rgba(0, 0, 0, 0.9) 34%,
    black 44%);
          mask-image: linear-gradient(to right,
    transparent 0%,
    rgba(0, 0, 0, 0.18) 10%,
    rgba(0, 0, 0, 0.55) 22%,
    rgba(0, 0, 0, 0.9) 34%,
    black 44%);
}
/* Layered-reveal crossfade: the incoming slide fades in ON TOP of the
   previous one (which stays fully visible underneath until the reveal
   completes), so there's no "double-transparency" dip in the middle
   that produces a muddy grey moment. */
.hero-slideshow .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 0;
  will-change: opacity;
}
.hero-slideshow .slide.is-leaving {
  opacity: 1;    /* stays visible underneath the incoming slide */
  z-index: 1;
}
.hero-slideshow .slide.is-active {
  opacity: 1;
  z-index: 2;
  transition: opacity 1.6s cubic-bezier(0.42, 0, 0.58, 1);
}
.hero-slideshow .slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slide-dots {
  display: none;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background 0.3s ease, width 0.35s ease, border-radius 0.35s ease;
  -webkit-appearance: none;
  appearance: none;
}
.dot.is-active {
  background: var(--amber);
  width: 24px;
  border-radius: 4px;
}
.dot:hover,
.dot:focus-visible {
  background: var(--amber);
}
@media (prefers-reduced-motion: reduce) {
  .hero-slideshow .slide { transition: none; }
  .dot { transition: none; }
}

/* ── Mobile: revert to stacked layout with contained slideshow above copy ── */
@media (max-width: 820px) {
  .hero {
    min-height: auto;
    padding: 24px 0 48px;
    overflow: visible;
  }
  .hero-slideshow {
    position: relative;
    top: auto; right: auto; bottom: auto;
    width: calc(100% - 32px);
    max-width: 480px;
    height: auto;
    aspect-ratio: 3 / 2;
    margin: 0 auto 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    -webkit-mask-image: none;
    mask-image: none;
  }
  .hero-copy { max-width: 100%; }
  .slide-dots { bottom: 14px; right: auto; left: 50%; transform: translateX(-50%); }
}
/* Legacy placeholder (kept in case any other page still uses it) */
.hero-placeholder {
  width: 100%; max-width: 380px;
  aspect-ratio: 4/5;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.hero-placeholder svg { max-width: 100%; height: auto; }

/* ─── 8. Page hero (non-home) ────────────────────────────────────── */
.page-hero {
  background: var(--cream);
  padding: clamp(40px, 7vw, 80px) 0 clamp(28px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { max-width: 20ch; }
.page-hero .lead { max-width: 62ch; }

/* ─── 9. Cards & grids ───────────────────────────────────────────── */
.card-grid {
  display: grid;
  gap: 22px;
  margin-top: 32px;
}
.card-grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card-grid--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card-grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.35s ease,
              border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-6px) scale(1.015);
  border-color: var(--amber);
  box-shadow: 0 20px 40px -14px rgba(29, 83, 114, 0.22),
              0 0 0 1px rgba(242, 166, 42, 0.15);
}
.card-icon { transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.25s ease; }
.card:hover .card-icon { transform: rotate(-6deg) scale(1.1); background: var(--amber); }
.card:hover .card-icon svg { stroke: var(--white); transition: stroke 0.2s ease; }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
  background: var(--cream);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}
.card--service h3 { margin-top: 4px; }
/* Whole-card click target: the .card-link's ::before stretches to cover
   the entire card. IMPORTANT: .card-link stays `position: static` so its
   ::before positions relative to the card (nearest positioned ancestor),
   not to the link itself. */
.card--service { position: relative; cursor: pointer; }
.card--service .card-link { position: static; }
.card--service .card-link::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}
.card-link {
  display: inline-block;
  margin-top: 14px;
  font-weight: 600;
  color: var(--sky-dark);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.card-link:hover { color: var(--amber-dark); transform: translateX(4px); }
.card:hover .card-link { color: var(--amber-dark); transform: translateX(4px); }

.feature {
  padding: 24px 20px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.35s ease,
              border-color 0.25s ease,
              background 0.25s ease;
}
.feature:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: rgba(242, 166, 42, 0.35);
  box-shadow: 0 18px 36px -14px rgba(29, 83, 114, 0.2),
              0 0 24px -8px rgba(242, 166, 42, 0.3);
}
.feature h3 { transition: color 0.2s ease; }
.feature:hover h3 { color: var(--amber-dark); }
.feature-icon {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--amber);
  color: var(--white);
  font-size: 1.2rem;
  border-radius: 50%;
  margin-bottom: 12px;
}

/* Maintenance plan cards */
.plan-grid { align-items: stretch; }
.plan-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.35s ease,
              border-color 0.25s ease;
}
.plan-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--amber);
  box-shadow: 0 22px 44px -14px rgba(29, 83, 114, 0.22),
              0 0 30px -6px rgba(242, 166, 42, 0.28);
}
.plan-card--featured:hover {
  box-shadow: 0 26px 50px -16px rgba(0, 0, 0, 0.45),
              0 0 40px -6px rgba(242, 166, 42, 0.5);
}
.plan-card--featured {
  background: var(--deep-blue);
  color: var(--cream);
  border-color: var(--amber);
  box-shadow: var(--shadow-md);
}
.plan-card--featured h3,
.plan-card--featured .plan-eyebrow,
.plan-card--featured .plan-freq,
.plan-card--featured .plan-name,
.plan-card--featured .plan-fit,
.plan-card--featured .plan-price {
  color: var(--cream);
}
.plan-card--featured .plan-includes li { color: rgba(251,246,236,0.92); }
.plan-card--featured .plan-includes li::before { background: var(--amber); color: var(--white); }
.plan-badge {
  position: absolute;
  top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--amber);
  color: var(--white);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.plan-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 4px;
}
.plan-freq {
  font-size: 0.85rem;
  color: var(--fg-quiet);
  margin: 0 0 14px;
}
.plan-name {
  font-family: var(--font);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--deep-blue);
}
.plan-fit {
  color: var(--fg-quiet);
  font-size: 0.95rem;
  margin: 0 0 18px;
  min-height: 4.5em;
}
.plan-includes {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: grid;
  gap: 10px;
}
.plan-includes li {
  padding-left: 26px;
  position: relative;
  font-size: 0.92rem;
  line-height: 1.5;
}
.plan-includes li::before {
  content: '✓';
  position: absolute; left: 0; top: 2px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px;
  background: var(--amber);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
}
.plan-price {
  margin: auto 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--fg-quiet);
  font-weight: 500;
}
.plan-card--featured .plan-price { border-top-color: rgba(251,246,236,0.2); }

/* Per-plan Schedule Your Quote button (opens a phone call) */
.plan-cta {
  margin-top: 14px;
  width: 100%;
  justify-content: center;
  font-size: 0.98rem;
  padding: 12px 18px;
}
@media (max-width: 720px) {
  .plan-fit { min-height: 0; }
}

/* Process steps (residential) */
.process-steps { margin-top: 32px; }
.process-step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid var(--line);
  position: relative;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: var(--deep-blue);
  color: var(--white);
  font-weight: 600;
  border-radius: 50%;
  margin-bottom: 14px;
  font-size: 1.05rem;
}

/* ─── 10. Town grid + chips ──────────────────────────────────────── */
.town-grid {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 24px;
}
.town-chip {
  display: inline-flex; align-items: center;
  padding: 10px 18px;
  background: var(--cream);
  color: var(--deep-blue);
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  min-height: 44px;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
              background 0.2s ease,
              color 0.2s ease,
              border-color 0.2s ease,
              box-shadow 0.28s ease;
}
.town-chip:hover, .town-chip:focus-visible {
  background: var(--amber);
  color: var(--white);
  border-color: var(--amber);
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 10px 22px -8px rgba(242, 166, 42, 0.55);
}

/* Hub page town cards */
.town-cards { margin-top: 32px; }
.town-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.35s ease,
              border-color 0.25s ease;
}
.town-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: var(--amber);
  box-shadow: 0 18px 36px -14px rgba(29, 83, 114, 0.22),
              0 0 24px -8px rgba(242, 166, 42, 0.28);
}
.town-card h3 { margin-bottom: 8px; }
.town-card h3 a { text-decoration: none; color: var(--deep-blue); transition: color 0.2s ease; }
.town-card h3 a:hover { color: var(--amber-dark); }
.town-card .card-link { transition: color 0.2s ease, transform 0.25s ease; display: inline-block; }
.town-card:hover .card-link { transform: translateX(4px); color: var(--amber-dark); }

/* ─── 11. Check list ─────────────────────────────────────────────── */
.check-list {
  margin: 18px 0 0;
  display: grid; gap: 12px;
}
.check-list li {
  padding-left: 30px;
  position: relative;
  line-height: 1.55;
}
.check-list li::before {
  content: '✓';
  position: absolute; left: 0; top: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  background: var(--amber);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
}

/* ─── 12. Testimonials ───────────────────────────────────────────── */
.testi-grid {
  display: grid;
  gap: 22px;
  margin-top: 32px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.testi-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.35s ease,
              border-color 0.25s ease;
}
.testi-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: var(--gold);
  box-shadow: 0 18px 36px -14px rgba(29, 83, 114, 0.2),
              0 0 24px -8px rgba(200, 155, 60, 0.28);
}
.testi-card--placeholder {
  background: var(--white);
  border: 1px dashed var(--line-strong);
}
.stars {
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.testi-card blockquote {
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--deep-blue);
  margin-bottom: 14px;
  font-style: italic;
}
.testi-author {
  font-size: 0.9rem;
  color: var(--fg-quiet);
  margin: 0;
  font-weight: 500;
}

/* ─── 13. FAQ ────────────────────────────────────────────────────── */
.faq-list { margin-top: 20px; display: grid; gap: 8px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-item[open] { border-color: var(--amber); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  display: flex; align-items: center; gap: 16px;
  justify-content: space-between;
  min-height: var(--tap);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--deep-blue);
}
.faq-icon {
  flex: 0 0 auto;
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--cream);
  color: var(--deep-blue);
  font-size: 1.2rem; font-weight: 600;
  border-radius: 50%;
  transition: transform 0.2s ease, background 0.15s ease;
}
.faq-item[open] .faq-icon {
  transform: rotate(45deg);
  background: var(--amber);
  color: var(--white);
}
.faq-answer {
  padding: 0 22px 20px;
  color: var(--fg-quiet);
}

/* ─── 14. CTA band ───────────────────────────────────────────────── */
.cta-band {
  background: var(--deep-blue);
  color: var(--cream);
  padding: clamp(36px, 6vw, 60px) 0;
}
.cta-band h2 { color: var(--cream); margin-bottom: 4px; }
.cta-band-sub { color: rgba(251, 246, 236, 0.85); margin: 0; }
.cta-band-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.cta-band .btn--primary {
  background: var(--amber);
  color: var(--white);
}
.cta-band .btn--primary:hover { background: var(--gold-light); }

/* ─── 15. Contact-specific ───────────────────────────────────────── */
.contact-grid {
  display: grid; gap: 40px;
  padding-top: 8px;
}
.contact-block { }
.contact-block h2 { font-size: 1.35rem; margin-bottom: 10px; }
.contact-phone {
  display: inline-block;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--amber-dark);
  text-decoration: none;
  padding: 6px 0;
}
.contact-phone:hover { color: var(--amber); }
.contact-note { color: var(--fg-quiet); font-size: 0.9rem; }
.hours-list {
  display: grid; gap: 10px;
  margin: 8px 0 12px;
}
.hours-list li {
  display: flex; justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
}
.hours-list li span:first-child { font-weight: 500; color: var(--deep-blue); }
.hours-list li span:last-child { color: var(--fg-quiet); }

/* ─── 16. Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--deep-blue);
  color: var(--cream);
  padding: clamp(48px, 7vw, 80px) 0 0;
  margin-top: 0;
  position: relative;
}
/* Decorative divider at the top of the footer — amber gradient line
   fading to transparent at both edges, with a small glowing dot in the
   center. Cleanly separates the CTA band ("Ready for windows...")
   above from the footer info grid below. */
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1000px, calc(100% - 48px));
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(242, 166, 42, 0.45) 18%,
    rgba(242, 166, 42, 0.45) 82%,
    transparent 100%);
}
.site-footer::after {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 14px rgba(242, 166, 42, 0.7);
}
.footer-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1.4fr 1fr 1.4fr 1fr;
}
.site-footer h3 { color: var(--white); }
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { color: var(--amber); text-decoration: underline; }

.footer-h {
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 14px;
  font-weight: 600;
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col ul li a {
  display: inline-block;
  padding: 4px 0;
  font-size: 0.98rem;
}
/* Two columns so all 10 towns fit compactly without the old max-height
   cap that was chopping off the bottom of the list (Paoli / Devon / Unionville). */
.footer-towns {
  columns: 2;
  column-gap: 20px;
}
.footer-towns li { break-inside: avoid; }
.footer-col--brand { align-self: start; }
.footer-brand-mark {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 16px;
}
.footer-logo { width: 68px; height: auto; opacity: 1; }
.footer-brand-text {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  gap: 5px;
}
.footer-brand-main {
  font-family: var(--font);
  font-weight: 600;
  font-size: 1.55rem;
  color: var(--white);
  letter-spacing: -0.01em;
  line-height: 1;
}
.footer-brand-sub {
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.68rem;
  color: var(--gold-light);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1;
}
.footer-tag { color: rgba(251, 246, 236, 0.8); font-size: 0.95rem; margin-bottom: 16px; }
.footer-bottom {
  margin-top: 48px;
  padding: 20px 0;
  border-top: 1px solid rgba(251, 246, 236, 0.15);
  font-size: 0.85rem;
  color: rgba(251, 246, 236, 0.7);
}
.footer-bottom .wrap {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { margin: 0; }

/* Small legal-link strip inside .footer-bottom (Terms · Privacy) */
.footer-legal {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 6px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  color: rgba(251, 246, 236, 0.7);
}
.footer-legal a {
  color: rgba(251, 246, 236, 0.85);
  text-decoration: none;
  transition: color 0.18s ease;
}
.footer-legal a:hover { color: var(--amber); text-decoration: underline; }
.footer-legal li[aria-hidden="true"] { color: rgba(251, 246, 236, 0.35); }

/* Meta line at the top of Terms / Privacy pages ("Last updated: ...") */
.legal-meta {
  color: var(--fg-quiet);
  font-size: 0.88rem;
  padding: 8px 14px;
  background: var(--cream);
  border-left: 3px solid var(--amber);
  border-radius: 4px;
  margin-bottom: 24px;
  display: inline-block;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ─── 17. Scroll reveals — 4 variants + stagger (activated by main.js) ─── */
/* Easing curve matches Precision Details' scroll animations for a familiar feel. */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.85s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.85s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
}
.reveal-left {
  opacity: 0;
  transform: translateX(-44px);
  transition: opacity 0.85s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.85s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
}
.reveal-right {
  opacity: 0;
  transform: translateX(44px);
  transition: opacity 0.85s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.85s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.93) translateY(18px);
  transition: opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
}
/* Roll-in: slight rotation + upward translate, gives the "tumbling into place"
   feel Precision Details uses on list items and secondary elements. */
.reveal-roll {
  opacity: 0;
  transform: translateY(28px) rotate(-4deg);
  transition: opacity 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.75s cubic-bezier(0.34, 1.36, 0.64, 1);
  will-change: opacity, transform;
  transform-origin: left center;
}

.reveal.is-in,
.reveal-left.is-in,
.reveal-right.is-in,
.reveal-scale.is-in,
.reveal-roll.is-in {
  opacity: 1;
  transform: none;
}

/* Stagger delays — apply to sibling cards for a wave effect */
.stagger-1 { transition-delay: .08s; }
.stagger-2 { transition-delay: .18s; }
.stagger-3 { transition-delay: .28s; }
.stagger-4 { transition-delay: .38s; }
.stagger-5 { transition-delay: .48s; }
.stagger-6 { transition-delay: .58s; }

/* NOTE: previously wrapped in @media (prefers-reduced-motion: reduce) to
   respect user OS motion prefs, but the site owner wants animations to
   always play. If you want the accessibility opt-out back later, re-wrap
   these overrides in the media query. */

/* ─── 18. 404 page ───────────────────────────────────────────────── */
.notfound {
  min-height: calc(100vh - 240px);
  display: flex;
  align-items: center;
  padding: clamp(48px, 8vw, 96px) 0;
  background: var(--cream);
}
.notfound-inner { text-align: center; max-width: 620px; margin: 0 auto; }
.notfound-icon { width: 96px; height: auto; margin: 0 auto 20px; }
.notfound-code {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 10px;
}
.notfound h1 { margin-bottom: 12px; }
.notfound .cta-row { justify-content: center; }
.notfound-links {
  margin-top: 40px;
  font-size: 0.95rem;
  color: var(--fg-quiet);
}
.notfound-links ul {
  display: flex; flex-wrap: wrap; gap: 6px 12px;
  justify-content: center;
  margin-top: 10px;
}
.notfound-links a { color: var(--sky-dark); text-decoration: underline; text-underline-offset: 3px; }

/* ─── 19. Small helpers ──────────────────────────────────────────── */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
:focus-visible {
  outline: 3px solid var(--sky-dark);
  outline-offset: 2px;
  border-radius: 4px;
}
::selection { background: var(--amber); color: var(--white); }

/* Print — keep it usable */
@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle, .btn { display: none !important; }
  body { color: #000; background: #fff; }
}
