/* retail-site page layout. Site-specific — NOT part of the shared brand copy. */

section { scroll-margin-top: 80px; }
.bg-white { background: #fff; }
.bg-cream { background: var(--cream); }
.bg-brand { background: var(--brand); }
.bg-deep { background: var(--brand-deep); }

.section-pad { padding-top: 88px; padding-bottom: 88px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head .sub { font-size: 17px; font-weight: 500; color: var(--ink-soft); margin: 14px 0 0; }

.photo { display: block; width: 100%; object-fit: cover; border-radius: 24px; }
/* Subtle edge so photos hold their shape on any background. */
.photo, .hero-photo, .step-card img { outline: 1px solid rgba(0, 0, 0, .1); outline-offset: -1px; }

/* Hero */
.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: 52px;
  align-items: center;
  padding-top: 60px;
  padding-bottom: 56px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 30px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.trust-item { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 14px; color: var(--brand-deep); }
.trust-item::before {
  content: "";
  width: 17px;
  height: 17px;
  background-color: var(--brand);
  -webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"><path d="m5 12 5 5 9-11"/></svg>') no-repeat center / contain;
  mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"><path d="m5 12 5 5 9-11"/></svg>') no-repeat center / contain;
}
.hero-photo { width: 100%; height: clamp(320px, 44vw, 470px); border-radius: 28px; object-fit: cover; }
.hero-visual { position: relative; }
.hero-float {
  position: absolute;
  left: -14px;
  bottom: -18px;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 13px;
  animation: floaty 5s ease-in-out infinite;
}
.hero-float .float-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.hero-float .float-title { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--brand-deep); line-height: 1; }
.hero-float .float-sub { font-weight: 600; font-size: 13px; color: var(--ink-soft); }

/* How it works */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step-card { background: var(--cream); border: 1px solid var(--line); border-radius: 24px; padding: 18px; overflow: hidden; }
/* Concentric with the 24px card at 18px padding (24 − 18 = 6). */
.step-card img { width: 100%; height: 200px; object-fit: cover; border-radius: var(--r-inner); }
.step-head { display: flex; align-items: center; gap: 11px; margin: 18px 4px 8px; }
.step-num {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.step-title { font-family: var(--font-display); font-weight: 600; font-size: 22px; color: var(--brand-deep); }
.step-card p { font-weight: 500; font-size: 15.5px; line-height: 1.55; color: var(--ink-soft); margin: 0 4px 6px; }

/* Service area */
.area-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center; }
.town-pills { display: flex; flex-wrap: wrap; gap: 9px; margin: 24px 0 6px; }
.town-more { color: var(--ink-soft); font-weight: 700; font-size: 13.5px; padding: 7px 4px; }
.area-map { position: relative; border-radius: 24px; cursor: zoom-in; }
/* The map is an inline SVG drawn from Census boundaries by
   scripts/build_service_area_map.py — geometry only; every colour and face
   comes from these classes, so it follows the brand tokens. */
.area-map-svg { display: block; width: 100%; height: auto; border-radius: 24px; }
.map-water { fill: var(--teal-soft); }
.map-neighbour { fill: var(--cream-2); stroke: var(--line); stroke-width: 1.2; stroke-linejoin: round; }
.map-municipal path { fill: #d6e8bf; stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; }
.map-county { fill: none; stroke: var(--brand); stroke-width: 3; stroke-linejoin: round; }
.map-towns path { fill: var(--leaf); fill-opacity: .7; stroke: var(--brand-deep); stroke-width: 1.2; stroke-linejoin: round; }
.map-leaders path { fill: none; stroke: var(--brand-deep); stroke-width: 1.4; }
.map-dots circle { fill: var(--brand-deep); stroke: #fff; stroke-width: 1.5; }
/* Labels with an outline are drawn twice by the generator: a .halo copy
   (outline only) under the text. No paint-order — some browsers drop it
   for SVG text and paint the outline over the words. */
.map-label-town text { font: 800 21px var(--font-body); fill: var(--brand-deep); }
.map-label-city text { font: 700 15px var(--font-body); fill: var(--ink-soft); }
.map-label-region text { font: 800 14px var(--font-body); letter-spacing: 3px; fill: var(--ink-soft); }
.map-label-water text { font: italic 700 17px var(--font-body); letter-spacing: 1px; fill: var(--teal); }
.map-label-county text { font: 800 17px var(--font-body); letter-spacing: 4px; fill: var(--brand); }
.map-scale text { font: 700 13px var(--font-body); fill: var(--ink-soft); }
.area-map-svg .halo text { fill: none; stroke-linejoin: round; }
.map-label-town.halo text { stroke: #fff; stroke-width: 5px; }
.map-label-city.halo text { stroke: var(--brand-soft); stroke-width: 4px; }
.map-label-region.halo text { stroke: var(--cream-2); stroke-width: 4px; }
.map-label-county.halo text { stroke: #d6e8bf; stroke-width: 4px; }
.map-scale.halo text { stroke: var(--teal-soft); stroke-width: 4px; }
.map-legend-box { fill: #fff; fill-opacity: .92; stroke: var(--line); }
.map-legend-area { fill: #d6e8bf; stroke: var(--brand); stroke-width: 2.5; }
.map-legend-dot { fill: var(--brand-deep); stroke: #fff; stroke-width: 1.5; }
.map-legend text { font: 700 17px var(--font-body); fill: var(--ink); }
.map-scale path { fill: none; stroke: var(--ink-soft); stroke-width: 2; }
.area-map .map-frame {
  position: absolute;
  inset: 0;
  border: 7px solid var(--brand-deep);
  border-radius: 24px;
  pointer-events: none;
  box-shadow: var(--shadow-card);
}
.area-map .map-hint {
  /* Top-right sits over empty Connecticut; bottom-right covered the Sound
     and the Larchmont label on phones. */
  position: absolute;
  right: 14px;
  top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(47, 74, 36, .88);
  color: #fff;
  font-weight: 700;
  font-size: 12.5px;
  padding: 7px 13px;
  border-radius: var(--r-pill);
  pointer-events: none;
}
@media (max-width: 600px) {
  /* Phones: icon only — the whole card is the button and says so to screen readers. */
  .area-map .map-hint { font-size: 0; gap: 0; padding: 9px; }
}
.map-lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(42, 42, 34, .82);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  cursor: zoom-out;
  animation: fadeUp .2s ease both;
}
.map-lightbox .area-map-svg {
  /* 4:3 drawing: as wide as the viewport allows without overflowing its height */
  width: min(1500px, 96vw, calc((92vh - 14px) * 4 / 3));
  border-radius: 18px;
  border: 7px solid var(--brand-deep);
  box-shadow: 0 40px 100px rgba(0, 0, 0, .45);
}

/* Plans */
.plans-toggle-note { font-weight: 800; font-size: 13.5px; color: var(--soil); margin-top: 10px; }
.plans-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 860px; margin: 0 auto; }
.plan-card { background: var(--cream); border: 1px solid var(--line); border-radius: var(--r-card-lg); padding: 30px; }
.plan-name { font-family: var(--font-display); font-weight: 600; font-size: 24px; color: var(--brand-deep); }
.plan-desc { font-weight: 600; font-size: 14.5px; color: var(--ink-soft); margin-top: 4px; }
/* Price centers in the card at every width — the name/desc/features stay
   left-aligned, the number is the thing you compare across cards
   (client feedback 2026-09-10). */
.plan-price-row { display: flex; align-items: baseline; justify-content: center; gap: 4px; margin: 18px 0 4px; }
.plan-price { font-family: var(--font-display); font-weight: 700; font-size: 46px; color: var(--brand); line-height: 1; font-variant-numeric: tabular-nums; }
.plan-per { font-weight: 700; font-size: 18px; color: var(--ink-soft); }
.plan-cta { margin: 18px 0 22px; }
.plan-card-featured {
  background: var(--brand-deep);
  border: 2px solid var(--brand);
  position: relative;
  box-shadow: 0 22px 50px rgba(47, 74, 36, .22);
}
.plan-card-featured .plan-name { color: #fff; }
.plan-card-featured .plan-desc { color: rgba(255, 255, 255, .75); }
.plan-card-featured .plan-price { color: #fff; }
.plan-card-featured .plan-per { color: rgba(255, 255, 255, .7); }
.plan-flag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--leaf);
  color: var(--brand-deep);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .4px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.plans-section .price-yearly, .plans-section .per-yearly { display: none; }
.plans-section.show-yearly .price-yearly, .plans-section.show-yearly .per-yearly { display: inline; }
.plans-section.show-yearly .price-monthly, .plans-section.show-yearly .per-monthly { display: none; }
.biz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 860px; margin: 22px auto 0; }
.biz-card { background: var(--cream); border: 1px solid var(--line); border-radius: var(--r-card); padding: 26px; display: flex; flex-direction: column; gap: 6px; }
.biz-title { font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--brand-deep); }
.biz-desc { font-weight: 600; font-size: 14px; color: var(--ink-soft); }
.biz-phone {
  margin-top: 10px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
}

/* Add-on band / two-col dark sections */
.addon-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding-top: 80px; padding-bottom: 80px; }
.addon-points { display: grid; grid-template-columns: 1fr 1fr; gap: 11px 22px; margin-top: 24px; }
.addon-photo { width: 100%; height: clamp(260px, 30vw, 340px); }
/* Before/after pair: the same bin in the same framing, side by side at every
   width. White edge on the dark section; labels sit 12px in from the 24px
   photo corner, so they take the concentric 12px radius. */
.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ba-pane { position: relative; margin: 0; }
.ba-pane img { height: clamp(260px, 30vw, 340px); outline-color: rgba(255, 255, 255, .1); }
.ba-label {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(20, 20, 16, .62);
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  line-height: 1;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 8px 11px;
  border-radius: var(--r-sm);
  backdrop-filter: blur(6px);
}
.ba-label-after { background: var(--brand); }
.on-dark .lede, .on-dark p { color: rgba(255, 255, 255, .8); }

/* Welcome kit */
.welcome-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 48px; align-items: center; }
.welcome-photo { width: 100%; height: clamp(280px, 34vw, 400px); }

/* Final CTA */
.cta-band { text-align: center; padding-top: 80px; padding-bottom: 80px; }
.cta-band h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.08;
  color: #fff;
  margin: 0;
}
.cta-band p { font-size: 18px; font-weight: 500; color: rgba(255, 255, 255, .85); margin: 16px 0 28px; }
.cta-band .cta-actions { display: flex; flex-wrap: wrap; gap: 13px; justify-content: center; }

/* About / Why pages */
.page-intro { text-align: center; padding-top: 72px; padding-bottom: 40px; }
.page-intro .lede { max-width: 620px; margin-left: auto; margin-right: auto; }
.story-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 48px; align-items: center; padding-top: 80px; padding-bottom: 80px; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.value-icon.soil { background: var(--soil-soft); color: var(--soil); }
.value-title { font-family: var(--font-display); font-weight: 600; font-size: 21px; color: var(--brand-deep); margin-bottom: 6px; }
.value-card p { font-weight: 500; font-size: 15px; line-height: 1.55; color: var(--ink-soft); margin: 0; }
.promise-band { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-around; text-align: center; padding-top: 60px; padding-bottom: 60px; }
.promise-stat { font-family: var(--font-display); font-weight: 600; font-size: clamp(20px, 2.4vw, 26px); color: #fff; font-variant-numeric: tabular-nums; }
.promise-label { font-weight: 700; font-size: 14px; color: rgba(255, 255, 255, .7); margin-top: 4px; }
.reasons-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.reason-card { display: flex; gap: 16px; align-items: flex-start; }
.reason-icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: var(--brand-soft);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.reason-icon.soil { background: var(--soil-soft); color: var(--soil); }
.reason-title { font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--brand-deep); margin-bottom: 5px; }
.reason-card p { font-weight: 500; font-size: 15px; line-height: 1.55; color: var(--ink-soft); margin: 0; }

/* FAQ page CTA card */
.faq-help {
  margin-top: 26px;
  background: var(--brand);
  border-radius: 24px;
  padding: 34px;
  text-align: center;
  color: #fff;
}
.faq-help h2 { font-family: var(--font-display); font-weight: 600; font-size: 26px; margin: 0 0 6px; }
.faq-help p { font-weight: 500; font-size: 16px; color: rgba(255, 255, 255, .85); margin: 0 0 20px; }
.faq-help .faq-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.faq-help .btn { font-size: 16px; padding: 13px 24px; }

/* ZIP modal result panels */
.zip-form { display: flex; gap: 10px; flex-wrap: wrap; }
.zip-form .input-pill { flex: 1; min-width: 200px; }
.zip-result { margin-top: 18px; border-radius: 18px; padding: 20px; display: flex; align-items: flex-start; gap: 14px; animation: fadeUp .3s ease both; }
.zip-result.yes { background: var(--brand-soft); }
.zip-result.no { background: var(--soil-soft); }
.zip-result .zip-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.zip-result.yes .zip-icon { background: var(--brand); }
.zip-result.no .zip-icon { background: var(--soil); }
.zip-result .zip-title { font-family: var(--font-display); font-weight: 600; font-size: 19px; color: var(--brand-deep); }
.zip-result.no .zip-title { color: var(--soil); }
.zip-result .zip-sub { font-weight: 600; font-size: 14px; color: var(--ink-soft); margin: 4px 0 14px; }

@media (prefers-reduced-motion: reduce) {
  .hero-float, .map-lightbox, .zip-result { animation: none; }
}

/* Responsive collapse */
@media (max-width: 859px) {
  .hero-grid, .steps-grid, .area-grid, .plans-grid, .biz-grid,
  .addon-grid, .welcome-grid, .story-grid, .values-grid, .reasons-grid {
    grid-template-columns: 1fr;
  }
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; }
  /* Phones read better centered: the hero and section intros hugged the
     left edge while the plans section sat centered (client feedback
     2026-09-01). Lists keep left-justified text, centered as a block. */
  .hero-grid > div:first-child { text-align: center; }
  .hero-grid .lede { margin-left: auto; margin-right: auto; }
  .hero-ctas, .hero-trust { justify-content: center; }
  .section-head, .addon-grid > div:first-child { text-align: center; }
  .addon-grid .check-list { width: fit-content; margin-left: auto; margin-right: auto; text-align: left; }
  .area-grid > div:first-child, .welcome-grid > div:last-child { text-align: center; }
  .area-grid .lede { margin-left: auto; margin-right: auto; }
  .town-pills { justify-content: center; }
  .welcome-grid .check-list { width: fit-content; margin-left: auto; margin-right: auto; text-align: left; }
  .step-card { text-align: center; }
  .step-card p { text-align: left; }
  /* The brand cell (logo + blurb + socials) is triple a link column's
     height — paired with "Pages" the row reads misaligned (client report
     2026-08-29). Give brand and Contact full-width rows so the two link
     columns sit side by side at matching heights. */
  .site-footer .footer-grid > div:first-child,
  .site-footer .footer-grid > div:last-child { grid-column: 1 / -1; }
}
@media (min-width: 860px) {
  .site-footer .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.4fr; }
}

/* Home: a pointer to the FAQ page, not a second copy of it (2026-10-02). */
.faq-teaser { text-align: center; }
.faq-teaser .h-section { margin: 10px 0 8px; }
.faq-teaser-text { font-weight: 500; font-size: 17px; color: var(--ink-soft); margin: 0 0 22px; }
