/* ==========================================================================
   Griffith Construction — v2
   Layout + palette modelled on stonelake-familydentistry.com
   Tokens taken from that project's global.css (@theme block)
   ========================================================================== */

:root{
  /* blue scale, built around the hero field #1f28b4 */
  --primary:#2733c0;        /* solid bands, buttons, icons */
  --primary-light:#7fd0ff;  /* accent on dark blue — 6.1:1 on the hero field */
  --primary-dark:#3a48d6;
  --primary-btn:#1b2596;    /* darker press/hover */
  --accent:#ffcf41;         /* stars only */
  --navy:#1c2131;
  --navy-light:#203033;
  --bg-light:#f8f9fa;
  --bg-warm:#f1f1ef;
  --bg-cool:#eef0ff;
  --blue-100:#e3e7ff;
  --blue-200:#c9d1ff;
  --blue-300:#aeb9ff;
  --blue-400:#7fd0ff;
  --hero-blue:#1f28b4;
  --hero-blue-deep:#161c86;
  --hero-blue-lift:#2c3ad2;
  /* sun field — hero band */
  --hero-sun:#FBD75D;
  --hero-sun-deep:#eec13a;
  --hero-sun-lift:#ffe58a;

  --font-heading:"Jost",system-ui,-apple-system,"Segoe UI",sans-serif;
  --font-body:"Satoshi","Jost",system-ui,-apple-system,"Segoe UI",sans-serif;

  --wrap:1290px;
  /* every .sect carries --pad top AND bottom, so a seam between two sections is
     2x this. 52 gives ~104px seams, inside the 90-110px target. */
  --pad:52px;
  --r-lg:24px;
  --r-md:16px;
  --r-pill:100px;
  --hdr-h:84px;
  --text:#4d5566;
  --shadow:0 10px 34px rgba(28,33,49,.08);
  --shadow-lg:0 24px 60px rgba(28,33,49,.14);
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:calc(var(--hdr-h) + 24px);-webkit-text-size-adjust:100%}
body{
  margin:0;font-family:var(--font-body);font-size:1.0625rem;line-height:1.75;
  color:var(--text);background:var(--bg-warm);overflow-x:hidden;-webkit-font-smoothing:antialiased;
}
img{max-width:100%;height:auto;display:block}
figure{margin:0}   /* UA default is 1em 40px */
a{color:inherit;text-decoration:none;transition:color .25s}
ul{margin:0;padding:0;list-style:none}
h1,h2,h3,h4{margin:0;font-family:var(--font-heading);color:var(--navy);font-weight:700;line-height:1.1}
h1{font-size:clamp(2.5rem,5.4vw,4.5rem);letter-spacing:-1.5px}
h2{font-size:clamp(2rem,3.8vw,3.25rem);letter-spacing:-1px}
h3{font-size:1.5rem}
p{margin:0 0 1rem}
address{font-style:normal}
.sprite{display:none}
.ic{width:1em;height:1em;fill:none;stroke:currentColor;stroke-width:1.8;
    stroke-linecap:round;stroke-linejoin:round;flex:none}
.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}

.wrap{width:100%;max-width:var(--wrap);margin-inline:auto;padding-inline:24px}
.sect{padding-block:var(--pad)}
.sect--white{background:#fff}
.sect--cool{background:var(--bg-cool)}
.shead{text-align:center;max-width:820px;margin:0 auto 38px}
.shead p{margin-top:16px;font-size:1.0625rem}
.eyebrow{
  display:inline-block;font-family:var(--font-heading);font-weight:600;
  font-size:14px;letter-spacing:2px;text-transform:uppercase;
  color:var(--primary);margin-bottom:14px;
}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;align-items:center;gap:12px;cursor:pointer;border:0;
  font-family:var(--font-heading);font-size:1rem;font-weight:600;line-height:1;
  padding:16px 16px 16px 30px;border-radius:var(--r-pill);
  transition:background .25s,color .25s,transform .25s,box-shadow .25s;
}
.btn__arrow{
  width:34px;height:34px;border-radius:50%;display:grid;place-items:center;
  font-size:16px;transition:transform .3s;
}
.btn:hover .btn__arrow{transform:translateX(3px)}
.btn--primary{background:var(--primary);color:#fff}
.btn--primary .btn__arrow{background:rgba(255,255,255,.24)}
.btn--primary:hover{background:var(--primary-btn);box-shadow:0 12px 26px rgba(39,51,192,.32)}
.btn--outline{
  background:transparent;color:var(--navy);border:2px solid var(--navy);
  border-radius:6px;padding:13px 24px;
}
.btn--outline:hover{background:var(--navy);color:#fff}
/* header CTA draws attention with a periodic ring */
.hdr__cta .btn--outline{animation:ctaPulse 2s ease-out infinite}
.hdr__cta .btn--outline:hover{animation-play-state:paused}
@keyframes ctaPulse{
  0%  {box-shadow:0 0 0 0 rgba(39,51,192,.55)}
  55% {box-shadow:0 0 0 15px rgba(39,51,192,0)}
  100%{box-shadow:0 0 0 0 rgba(39,51,192,0)}
}
@media (prefers-reduced-motion:reduce){
  .hdr__cta .btn--outline{animation:none}
}
.btn--white{background:#fff;color:var(--navy)}
.btn--white .btn__arrow{background:var(--blue-100)}
.btn--white:hover{background:var(--blue-200)}
.btn--sm{font-size:.9375rem;padding:11px 11px 11px 22px}
.btn--sm .btn__arrow{width:28px;height:28px;font-size:14px}
.btn--block{width:100%;justify-content:center;padding:18px 30px}

/* ==========================================================================
   TOPBAR — pill chips, as on the reference
   ========================================================================== */
.topbar{background:#fff;padding:0}
/* shifted right so the row ends flush with the Free Estimate button below */
.topbar__in{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap}
.chip{
  display:inline-flex;align-items:center;gap:10px;background:var(--bg-warm);
  border-radius:0 0 8px 8px;padding:12px 20px 11px;font-size:.9375rem;color:var(--navy);
}
.chip .ic{font-size:17px;color:var(--primary)}
.chip__stars{color:var(--accent);letter-spacing:1px}
.chip--social{gap:8px;padding:8px 0 8px 12px;background:transparent;border-radius:0}
.chip--social a{
  width:32px;height:32px;border-radius:50%;background:var(--bg-cool);color:var(--primary);
  display:grid;place-items:center;transition:background .25s,color .25s;
}
.chip--social a svg{width:15px;height:15px}
.chip--social a:hover{background:var(--primary);color:#fff}

/* ==========================================================================
   HEADER — white, centred nav, outlined CTA
   ========================================================================== */
.hdr{position:sticky;top:0;z-index:80;background:#fff;transition:box-shadow .3s}
.hdr.is-stuck{box-shadow:0 2px 20px rgba(28,33,49,.08)}
.hdr__in{display:flex;align-items:center;gap:24px;min-height:var(--hdr-h)}
/* the PNG carries a band of white above the mark, so the brand rides up into the
   topbar and runs larger than the header height would otherwise allow */
.hdr__brand{flex:0 0 auto;margin-top:-49px;transition:margin-top .3s}
.hdr.is-stuck .hdr__brand{margin-top:0}
.hdr__brand img{width:212px;transition:width .3s}
/* NOTE: the stuck brand size lives in the min-width:1101px block, NOT here.
   `.hdr.is-stuck .hdr__brand img` outweighs the plain `.hdr__brand img` used by
   every narrower breakpoint, so an unscoped rule here leaks down and re-inflates
   the logo the moment a phone scrolls, shoving the burger off the right edge. */

.nav{margin-inline:auto}
.nav__list{display:flex;align-items:center;gap:8px}
.nav__item{position:relative}
.nav__item>a{
  display:block;padding:12px 16px;font-family:var(--font-heading);
  font-size:1.1875rem;font-weight:500;color:var(--navy);white-space:nowrap;
}
.nav__item>a:hover{color:var(--primary)}
.nav__item--has>a{padding-right:30px}
.nav__item--has>a::after{
  content:"";position:absolute;right:14px;top:50%;width:6px;height:6px;
  border-right:2px solid currentColor;border-bottom:2px solid currentColor;
  transform:translateY(-70%) rotate(45deg);
}
.nav__toggle{display:none}
.nav__sub{
  position:absolute;top:100%;left:0;min-width:264px;background:#fff;
  border-radius:0 0 var(--r-md) var(--r-md);box-shadow:var(--shadow-lg);padding:12px 0;
  opacity:0;visibility:hidden;transform:translateY(12px);
  transition:opacity .25s,transform .25s,visibility .25s;
}
.nav__item--has:hover>.nav__sub{opacity:1;visibility:visible;transform:none}
.nav__sub a{display:block;padding:9px 24px;font-size:1rem;color:var(--text)}
.nav__sub a:hover{color:var(--primary);background:var(--bg-cool)}
/* single-column dropdown sizes to its longest label — desktop only, the drawer can be narrower */
@media (min-width:1101px){ .nav__sub:not(.nav__sub--mega) a{white-space:nowrap} }

/* two-column dropdown — residential beside commercial */
.nav__sub--mega{min-width:560px;padding:20px 0 16px;display:grid;grid-template-columns:1fr 1fr}
.nav__col+.nav__col{border-left:1px solid rgba(28,33,49,.08)}
.nav__coltitle{
  margin:0 0 8px;padding:0 24px;font-family:var(--font-heading);
  font-size:.8125rem;font-weight:600;letter-spacing:.10em;text-transform:uppercase;
  color:var(--primary);
}

.hdr__cta{display:flex;align-items:center;gap:14px;flex:0 0 auto}
/* tap-to-call, mobile only — desktop already carries the number in the topbar */
.hdr__call{display:none}
.burger{
  display:none;width:46px;height:46px;border:0;background:var(--bg-cool);
  border-radius:10px;cursor:pointer;padding:0;
  flex-direction:column;align-items:center;justify-content:center;gap:5px;
}
.burger span{display:block;width:20px;height:2px;background:var(--navy);transition:transform .3s,opacity .2s}
.burger[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.burger[aria-expanded="true"] span:nth-child(2){opacity:0}
.burger[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

/* the logo rides up into the topbar, which leaves the menu row reading high —
   nudge it down visually without changing the header's height */
@media (min-width:1101px){
  .nav,.hdr__cta{position:relative;top:10px}
  /* stuck, the topbar is gone and there is nothing above to ride up into, so the
     brand settles to a size that keeps the bar at --hdr-h instead of clipping */
  .hdr.is-stuck .hdr__brand img{width:172px}
}

/* ==========================================================================
   HERO — saturated field, left copy, booking card, ghost watermark
   ========================================================================== */
.hero{
  position:relative;color:var(--navy);
  background:var(--hero-sun);
  background-image:radial-gradient(ellipse 92% 84% at 54% 46%,
    var(--hero-sun-lift) 0%, var(--hero-sun) 46%, var(--hero-sun-deep) 100%);
  padding-block:76px 0;overflow:hidden;isolation:isolate;
  min-height:720px;display:flex;flex-direction:column;
}
/* oversized ghost word behind everything, as on the reference */
.hero__watermark{
  position:absolute;top:34%;left:50%;transform:translateX(-50%);z-index:0;
  font-family:var(--font-heading);font-weight:700;font-size:clamp(7rem,17vw,15rem);
  line-height:1;letter-spacing:-4px;white-space:nowrap;pointer-events:none;
  color:rgba(28,33,49,.07);
}
.hero__top{
  position:relative;z-index:2;display:grid;
  grid-template-columns:auto 1fr;gap:40px;align-items:start;
  padding-bottom:54px;
}
/* mirrored layout: booking card left, copy right, so the van (left, facing
   right) points toward the copy — the reference's relationship, no flipped art */
.bookcard{grid-column:1;grid-row:1;justify-self:start}
.hero__copy{grid-column:2;grid-row:1;justify-self:end;text-align:right}
/* natural order keeps the rule in front of the words; flex-end pushes the pair
   flush with the right edge of the copy column, under the headline */
.hero__copy .eyebrow--dash{justify-content:flex-end}
.hero h1{color:var(--navy);max-width:none;margin:0 0 34px}
.hero .accent{color:var(--hero-blue)}
.eyebrow--dash{
  display:flex;align-items:center;gap:14px;color:rgba(28,33,49,.72);margin-bottom:22px;
}
.eyebrow--dash::before{
  content:"";width:34px;height:2px;background:rgba(28,33,49,.55);flex:none;
}
/* anniversary badge — sits where the hero CTA used to; inline-flex so it
   follows the hero copy's text alignment */
.yearbadge{
  display:inline-flex;align-items:center;gap:10px;margin:0;
  background:var(--navy);border-radius:var(--r-pill);padding:11px 24px 11px 18px;
  font-family:var(--font-heading);font-size:1rem;line-height:1.2;
  box-shadow:0 10px 24px rgba(28,33,49,.22);
}
.yearbadge .ic{font-size:23px;color:var(--hero-sun);stroke-width:2}
.yearbadge strong{font-size:1.125rem;font-weight:700;color:var(--hero-sun)}
.yearbadge span{color:rgba(255,255,255,.84)}

/* booking card, top-right */
.bookcard{
  display:flex;align-items:center;gap:18px;
  background:#fff;border:1px solid rgba(28,33,49,.10);
  border-radius:var(--r-lg);padding:20px 24px;max-width:420px;
  animation:cardPulse 2.6s ease-out infinite;
}
.bookcard:hover{animation-play-state:paused}
@keyframes cardPulse{
  0%  {box-shadow:0 0 0 0 rgba(28,33,49,.28)}
  55% {box-shadow:0 0 0 16px rgba(28,33,49,0)}
  100%{box-shadow:0 0 0 0 rgba(28,33,49,0)}
}
@media (prefers-reduced-motion:reduce){
  .bookcard,.bookcard__avatar{animation:none}
}
.bookcard__txt{display:flex;flex-direction:column;gap:2px}
.bookcard__txt strong{font-family:var(--font-heading);font-size:1.0625rem;color:var(--navy)}
.bookcard__phone{
  font-family:var(--font-heading);font-size:1.625rem;font-weight:700;
  color:var(--hero-blue);line-height:1.2;
}
.bookcard__phone:hover{color:var(--primary)}
.bookcard__hours{font-size:.875rem;color:rgba(28,33,49,.72)}
.bookcard__avatar{
  width:64px;height:64px;border-radius:50%;flex:none;
  display:grid;place-items:center;font-size:28px;
  background:var(--navy);color:var(--hero-sun);
  border:3px solid rgba(28,33,49,.18);
  animation:phoneRing 2.2s ease-out infinite;
}
.bookcard__avatar .ic{stroke-width:2}
@keyframes phoneRing{
  0%  {transform:scale(1);   box-shadow:0 0 0 0 rgba(28,33,49,.45)}
  45% {transform:scale(1.09)}
  70% {                      box-shadow:0 0 0 14px rgba(28,33,49,0)}
  100%{transform:scale(1);   box-shadow:0 0 0 0 rgba(28,33,49,0)}
}

/* rotating county name — inline-block so the JS min-width pin actually applies
   and the sentence doesn't reflow on each swap */
.rotator{display:inline-block;color:inherit;font-weight:700;
  transition:opacity .45s ease,transform .45s ease}
.rotator.is-out{opacity:0;transform:translateY(-6px)}

/* one large van riding over the ghost word, as on the reference */
.hero__van{
  position:absolute;z-index:1;
  left:-7%;bottom:34px;width:min(78%,1180px);height:auto;
  filter:drop-shadow(0 22px 30px rgba(96,66,6,.30));
  animation:driveIn 1.7s cubic-bezier(.16,.72,.24,1) both;
}
/* drives in from off-screen left, moving right — the way it faces */
@keyframes driveIn{
  0%  {transform:translateX(-135%);opacity:0}
  16% {opacity:1}
  86% {transform:translateX(2.5%)}   /* slight overshoot, then settles */
  100%{transform:translateX(0)}
}
@media (prefers-reduced-motion:reduce){
  .hero__van{animation:none}
}

/* trust strip sitting under the hero */
.trust{background:#fff;padding-block:34px}
.trust__grid{display:grid;grid-template-columns:repeat(4,1fr);gap:0}
.trust__item{
  display:flex;align-items:center;gap:14px;padding:14px 24px;
  border-right:1px solid rgba(28,33,49,.10);
}
.trust__item:last-child{border-right:0}
.trust__item:first-child{padding-left:0}
.trust__ic{
  width:48px;height:48px;border-radius:50%;background:var(--bg-cool);color:var(--primary);
  display:grid;place-items:center;font-size:22px;flex:none;
}
.trust__item strong{display:block;font-family:var(--font-heading);font-size:1.0625rem;color:var(--navy);line-height:1.25}
/* scoped to the text column — a bare `.trust__item span` also matches .trust__ic
   and would override its display:grid and font-size, collapsing the icon */
.trust__item div span{display:block;font-size:.9375rem}

/* ==========================================================================
   ROADMAP — /roadmap/, the working document. Not public, not in the menu.
   ========================================================================== */
.shead--left{text-align:left;margin-inline:0}
.roadmap__list{list-style:none;margin:0;padding:0;display:grid;gap:22px}
.roadmap__item{
  display:grid;grid-template-columns:44px minmax(0,1fr);gap:20px;
  padding:28px 30px;background:#fff;border-radius:var(--r-lg);
  box-shadow:0 2px 14px rgba(28,33,49,.07);
}
.sect--white .roadmap__item{background:var(--bg-cool);box-shadow:none}
.roadmap__mark{
  width:44px;height:44px;border-radius:50%;display:grid;place-items:center;
  font-size:1.25rem;font-weight:700;font-family:var(--font-heading);
}
.roadmap__mark--done{background:#1f9254;color:#fff}
.roadmap__mark--part{background:#f0b429;color:#3d2c00}
.roadmap__mark--q{background:var(--primary);color:#fff}
.roadmap__state{
  font-family:var(--font-heading);font-size:.8125rem;font-weight:600;
  letter-spacing:.09em;text-transform:uppercase;color:#5b6478;margin-bottom:7px;
}
/* min-width:0 lets this grid child shrink below its content width, so the page
   status table scrolls inside .roadmap__tablewrap instead of pushing the whole
   page sideways on a phone */
.roadmap__body{min-width:0}
.roadmap__body h3{font-size:1.25rem;line-height:1.35;margin-bottom:12px;color:var(--navy)}
.roadmap__body p{font-size:.9375rem;line-height:1.7;color:#3d4657;margin-bottom:12px}
.roadmap__did{margin:0 0 4px;padding-left:20px;display:grid;gap:8px}
.roadmap__did li{font-size:.9375rem;line-height:1.65;color:#3d4657}
.roadmap__link{margin-top:14px;margin-bottom:0}
.roadmap__link a{display:inline-flex;align-items:center;gap:9px;font-family:var(--font-heading);font-weight:500;color:var(--primary)}
.roadmap__link .btn__arrow{width:26px;height:26px;font-size:13px;background:var(--blue-100)}

.roadmap__tablewrap{overflow-x:auto;margin:16px 0 6px}
.roadmap__table{border-collapse:collapse;width:100%;font-size:.9375rem;min-width:430px}
.roadmap__table th,.roadmap__table td{
  text-align:left;padding:9px 14px;border-bottom:1px solid rgba(28,33,49,.10);
}
.roadmap__table th{
  font-family:var(--font-heading);font-size:.8125rem;letter-spacing:.06em;
  text-transform:uppercase;color:#5b6478;
}
.roadmap__table td:not(:first-child),
.roadmap__table th:not(:first-child){text-align:right;width:88px}
.roadmap__table a{color:var(--navy);text-decoration:underline;text-decoration-color:rgba(28,33,49,.25)}
.roadmap__table a:hover{color:var(--primary)}
/* the watermark list is three text columns, not counts — undo the numeric alignment */
.roadmap__table--wm td:not(:first-child),
.roadmap__table--wm th:not(:first-child){text-align:left;width:auto}
.roadmap__table--wm td:first-child{word-break:break-word}
.roadmap__note{display:block;font-style:normal;font-size:.8125rem;color:#1f9254;margin-top:3px}

/* pages with no photographs at all — the ones to deal with first */
.roadmap__row--gap td{background:#fff5f5}
.sect--white .roadmap__row--gap td{background:#fff}
.roadmap__row--gap td:nth-child(3){color:#b42318;font-weight:700}

@media (max-width:620px){
  .roadmap__item{grid-template-columns:1fr;gap:14px;padding:24px 22px}
}

/* ==========================================================================
   REVIEWS — customer letters carried over from the previous sites
   ========================================================================== */
.rev__grid{
  columns:3;column-gap:24px;
}
.rev__card{
  break-inside:avoid;margin:0 0 24px;padding:30px 30px 28px;
  background:var(--bg-cool);border-radius:var(--r-lg);
  display:flow-root;
}
.rev__quo{width:30px;height:23px;color:var(--blue-300);margin-bottom:14px;display:block}
.rev__card blockquote{margin:0 0 18px;font-size:1rem;line-height:1.7;color:#2b3244}
.rev__card figcaption strong{
  display:block;font-family:var(--font-heading);font-size:1.0625rem;color:var(--navy);
}
.rev__card figcaption span{display:block;font-size:.875rem;color:#5b6478;margin-top:3px}
/* a lone review in three columns left two thirds of the row blank: centre it
   at reading width and let it read as a featured quote */
.rev__grid--one{columns:1;max-width:820px;margin-inline:auto}
.rev__grid--one .rev__card{padding:40px 44px 36px}
.rev__grid--one blockquote{font-size:1.1875rem}
.rev__more{margin-top:8px;text-align:center}
.rev__more a{display:inline-flex;align-items:center;gap:10px;font-family:var(--font-heading);font-weight:500;color:var(--primary)}
.rev__more .btn__arrow{width:28px;height:28px;font-size:14px;background:var(--blue-100)}

@media (max-width:1100px){ .rev__grid{columns:2} }
@media (max-width:680px){
  .rev__grid{columns:1}
  .rev__grid--one .rev__card{padding:30px 26px 28px}
  .rev__grid--one blockquote{font-size:1.0625rem}
}

/* ==========================================================================
   NJ MAP — service area, geometry inlined from build/nj-map.json
   ========================================================================== */
.njm__in{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:56px;align-items:center}
.njm__fig{margin:0}
.njm__svg{width:100%;height:auto;max-height:620px;display:block}
.njm__off{fill:#e6e9f2;stroke:#fff;stroke-width:3}
.njm__on{fill:var(--primary);stroke:#fff;stroke-width:3;transition:fill .2s}
.njm__link{cursor:pointer}
.njm__link:hover .njm__on,
.njm__link:focus-visible .njm__on{fill:var(--hero-blue-lift)}
.njm__link:focus-visible{outline:3px solid var(--navy);outline-offset:2px}
.njm__labels{pointer-events:none}
.njm__lbl{
  font-family:var(--font-heading);font-size:25px;font-weight:600;
  fill:#fff;text-anchor:middle;dominant-baseline:central;
}
/* the gutter labels sit on their leader line, which is already vertically
   centred on them, so they keep the default baseline */
.njm__lbl--out{fill:var(--navy);text-anchor:start;dominant-baseline:auto}
.njm__lead{fill:none;stroke:var(--navy);stroke-width:2.5;opacity:.45}
.njm__dot{fill:#fff;stroke:var(--navy);stroke-width:2.5}

.njm__key h3{font-size:1.5rem;margin-bottom:18px}
.njm__list{list-style:none;margin:0 0 22px;padding:0;display:grid;gap:8px}
.njm__list a{
  display:flex;align-items:center;gap:12px;padding:13px 18px;
  background:var(--bg-cool);border-radius:var(--r-md);color:var(--navy);
  font-family:var(--font-heading);font-weight:500;transition:background .2s,transform .2s;
}
.njm__list a:hover{background:var(--blue-100);transform:translateX(4px)}
.njm__list .ic{color:var(--primary);font-size:19px;flex:none}
.njm__list span{flex:1}
.njm__list em{font-style:normal;font-size:.875rem;color:#5b6478}
.njm__note{font-size:.9375rem;color:#3d4657}

@media (max-width:900px){
  .njm__in{grid-template-columns:1fr;gap:34px}
  .njm__svg{max-height:480px;margin-inline:auto}
}

/* ==========================================================================
   HIGHLIGHTS — named services called out above a service page's prose
   ========================================================================== */
/* 215px is chosen so the five commercial maintenance services sit on one row at
   full width rather than leaving one stranded on a second row. */
.hl__grid{
  list-style:none;margin:0;padding:0;
  display:grid;grid-template-columns:repeat(auto-fit,minmax(215px,1fr));gap:16px;
}
.hl__item{
  display:flex;flex-direction:column;gap:12px;padding:22px 20px 24px;
  background:var(--bg-cool);border-radius:var(--r-md);
}
.hl__ic{
  width:42px;height:42px;border-radius:50%;background:#fff;color:var(--primary);
  display:grid;place-items:center;font-size:20px;flex:none;
}
.hl__item strong{
  display:block;font-family:var(--font-heading);font-size:1.0625rem;
  color:var(--navy);line-height:1.3;margin-bottom:5px;
}
/* scoped to the text column so it cannot hit .hl__ic and collapse the icon */
.hl__item div span{display:block;font-size:.9375rem;line-height:1.55;color:#3d4657}

/* ==========================================================================
   SERVICES — pastel cards on a solid blue band
   ========================================================================== */
.services{background:var(--primary);padding-block:var(--pad)}
.services .shead h2,.services .shead p{color:#fff}
/* the intro line is meant to sit on one line on desktop; widen the block for it
   but hold the heading at the usual measure so its line breaks don't move */
.services .shead{max-width:960px}
.services .shead h2{max-width:820px;margin-inline:auto}
.services .eyebrow{color:var(--blue-100)}
.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}
.card{
  background:var(--blue-100);border-radius:var(--r-lg);overflow:hidden;
  display:flex;flex-direction:column;transition:transform .3s,box-shadow .3s;
}
.card:nth-child(4n+2){background:var(--blue-200)}
.card:nth-child(4n+3){background:#fff}
.card:nth-child(4n){background:var(--blue-300)}
.card:hover{transform:translateY(-6px);box-shadow:var(--shadow-lg)}
.card__img{margin:0;aspect-ratio:16/10;overflow:hidden;background:var(--navy)}
.card__img img{width:100%;height:100%;object-fit:cover;transition:transform .5s}
.card:hover .card__img img{transform:scale(1.06)}
.card__img--tile{display:grid;place-items:center;background:var(--navy-light)}
.card__img--tile .ic{font-size:52px;color:rgba(255,255,255,.4);stroke-width:1.4}
.card__body{padding:24px 26px 28px;flex:1;display:flex;flex-direction:column}
.card__body h3{font-size:1.375rem;margin-bottom:10px}
.card__body p{font-size:.9375rem;line-height:1.65;color:#3d4657;margin-bottom:18px}
.card .btn{margin-top:auto;align-self:flex-start;background:var(--primary);color:#fff}
.card .btn .btn__arrow{background:rgba(255,255,255,.24)}
.card .btn:hover{background:var(--navy)}

/* Cards for work we do on both sides carry a Residential and a Commercial link.
   The row takes the margin-top:auto so the pair still sits on the card floor and
   every card in a row lines its buttons up. */
.card__acts{margin-top:auto;display:flex;flex-wrap:wrap;gap:8px}
.card__acts .btn{margin-top:0}
.card__acts .btn--sm{padding:9px 9px 9px 16px;font-size:.875rem}
.card__acts .btn--sm .btn__arrow{width:24px;height:24px;font-size:13px}
/* the commercial half is the quieter of the two — residential is still the
   larger part of the business and should read first */
.card .btn--com{background:transparent;color:var(--navy);box-shadow:inset 0 0 0 1.5px rgba(16,26,63,.22)}
.card .btn--com .btn__arrow{background:rgba(16,26,63,.1)}
.card .btn--com:hover{background:var(--navy);color:#fff;box-shadow:none}
.card .btn--com:hover .btn__arrow{background:rgba(255,255,255,.24)}

/* ==========================================================================
   SPLIT — copy beside a photo grid
   ========================================================================== */
.split{display:grid;grid-template-columns:1fr 1fr;gap:70px;align-items:center}
.split__copy h2{margin-bottom:20px}
.split__copy .hl{color:var(--primary);font-weight:700}
.split__list{margin:26px 0 32px;display:grid;gap:14px}
.split__list li{display:flex;gap:12px;align-items:flex-start;font-size:1rem}
.split__list .ic{font-size:20px;color:var(--primary);stroke-width:2.4;margin-top:3px}
.split__grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.split__grid figure{margin:0;border-radius:var(--r-md);overflow:hidden;box-shadow:var(--shadow)}
.split__grid img{width:100%;aspect-ratio:4/3;object-fit:cover}
.split__grid figure:first-child{grid-column:1 / -1}
.split__grid figure:first-child img{aspect-ratio:2/1}

/* ==========================================================================
   CAPABILITY LIST
   ========================================================================== */
.list__cols{columns:3;column-gap:44px}
.list__cols li{
  break-inside:avoid;position:relative;padding:10px 0 10px 30px;font-size:.9375rem;
  color:var(--navy);border-bottom:1px solid rgba(28,33,49,.08);
}
.list__cols li::before{
  content:"";position:absolute;left:4px;top:18px;width:8px;height:8px;
  border-radius:50%;background:var(--primary);
}

/* ==========================================================================
   SERVICE AREA
   ========================================================================== */
.area__grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.county{
  background:#fff;border:1px solid rgba(28,33,49,.16);
  border-radius:var(--r-md);padding:25px 19px;text-align:center;
  transition:transform .3s,box-shadow .3s,border-color .3s;
}
.county:hover{transform:translateY(-5px);box-shadow:var(--shadow);border-color:var(--primary)}
.county .ic{font-size:26px;color:var(--primary);margin:0 auto 10px;display:block}
.county strong{display:block;font-family:var(--font-heading);font-size:1.0625rem;color:var(--navy)}
.county span{display:block;font-size:.875rem}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact{background:var(--bg-cool);padding-block:var(--pad)}
.contact__in{display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:start}
.contact__copy h2{margin-bottom:18px}
.contact__meta{margin-top:30px;display:grid;gap:18px}
.contact__meta li{display:flex;gap:16px;align-items:center}
.contact__ic{
  width:52px;height:52px;border-radius:50%;background:#fff;color:var(--primary);
  display:grid;place-items:center;font-size:22px;flex:none;box-shadow:var(--shadow);
}
.contact__meta em{display:block;font-style:normal;font-size:.875rem}
.contact__meta strong,.contact__meta a{
  font-family:var(--font-heading);font-size:1.0625rem;font-weight:600;color:var(--navy);
}
.contact__meta a:hover{color:var(--primary)}

.formcard{background:#fff;border-radius:var(--r-lg);padding:38px 34px;box-shadow:var(--shadow-lg)}
.formcard h3{font-size:1.5rem;margin-bottom:22px}
.field{margin-bottom:16px}
.field label{display:block;font-family:var(--font-heading);font-size:.9375rem;font-weight:600;color:var(--navy);margin-bottom:7px}
.field label span{color:var(--primary)}
.field input,.field textarea,.field select{
  width:100%;font-family:var(--font-body);font-size:1rem;color:var(--navy);
  background:var(--bg-light);border:2px solid #e3e7ec;border-radius:10px;
  padding:14px 16px;transition:border-color .25s,background .25s;
}
.field textarea{resize:vertical;min-height:120px}
.field input::placeholder,.field textarea::placeholder{color:#98a0ae}
.field input:focus,.field textarea:focus,.field select:focus{
  outline:0;background:#fff;border-color:var(--primary);
}
.field select{appearance:none;-webkit-appearance:none;cursor:pointer;padding-right:44px;color:#98a0ae}
.field select.has-value{color:var(--navy)}
.field--select{position:relative}
.field--select::after{
  content:"";position:absolute;right:18px;top:calc(50% + 4px);width:8px;height:8px;
  border-right:2px solid #98a0ae;border-bottom:2px solid #98a0ae;
  transform:translateY(-50%) rotate(45deg);pointer-events:none;
}
.field small{display:block;font-size:.8125rem;color:#c0392b;margin-top:5px}
.field.is-bad input,.field.is-bad textarea,.field.is-bad select{border-color:#c0392b}
.jsnote{margin:14px 0 0;font-size:.9375rem;text-align:center}
.jsnote.is-ok{color:var(--primary-btn)}
.jsnote.is-bad{color:#c0392b}
/* spam honeypot: off-screen rather than display:none, which some bots skip */
.hp{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}

/* ==========================================================================
   CTA BAND + FOOTER
   ========================================================================== */
/* ==========================================================================
   INTERIOR PAGES — breadcrumb, page hero, prose, related services, town lists
   ========================================================================== */
/* sits inside the yellow hero, not in a band of its own — a separate white
   breadcrumb bar leaves a strip of white between the nav and the hero */
.crumb{font-size:.875rem;margin-bottom:28px}
/* the base reset only zeroes ul, so this ol kept the UA's 40px indent and sat
   pushed in from the h1 below it */
.crumb ol{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0;padding:0;list-style:none}
.crumb li{display:flex;align-items:center;gap:8px}
.crumb li+li::before{content:"/";color:rgba(28,33,49,.38)}
.crumb a{color:var(--navy);font-weight:600;opacity:.72}
.crumb a:hover{opacity:1;text-decoration:underline}
.crumb [aria-current]{color:rgba(28,33,49,.6)}

.phero{
  background:var(--hero-sun);
  background-image:radial-gradient(ellipse 90% 120% at 30% 40%,
    var(--hero-sun-lift) 0%, var(--hero-sun) 52%, var(--hero-sun-deep) 100%);
  padding-block:22px 58px;color:var(--navy);
}
.phero .eyebrow{color:rgba(28,33,49,.66);margin-bottom:10px}
.phero h1{font-size:clamp(1.9rem,3.8vw,3.1rem);margin:0 0 16px;letter-spacing:-1px}
.phero__lede{font-size:1.125rem;line-height:1.7;max-width:68ch;color:rgba(28,33,49,.86);margin-bottom:12px}
.phero__acts{display:flex;flex-wrap:wrap;gap:14px;margin-top:24px}
.btn--ghost{background:var(--navy);color:#fff;border-radius:6px;padding:16px 28px}
.btn--ghost:hover{background:var(--hero-blue);color:#fff}

/* the hero already ends with generous padding, so a full --pad on top of the
   first section below it left a band of empty grey above the opening heading */
.phero+.sect{padding-top:48px}

.prose{max-width:840px}
.prose h2{font-size:clamp(1.4rem,2.3vw,1.95rem);margin:40px 0 14px}
.prose h2:first-child{margin-top:0}
.prose p{font-size:1.0625rem;line-height:1.8}
.prose a{color:var(--primary);font-weight:600}
.prose a:hover{text-decoration:underline}
.checks{columns:2;column-gap:36px;margin-top:18px}
.checks li{break-inside:avoid;display:flex;align-items:flex-start;gap:10px;padding:7px 0;font-size:1rem}
.checks .ic{font-size:18px;color:var(--primary);stroke-width:2.6;flex:none;margin-top:5px}

/* copy beside a sidebar — without this the prose column leaves ~450px of empty
   page to its right on every service page */
.pagegrid{display:grid;grid-template-columns:minmax(0,1fr) 352px;gap:56px;align-items:start}
.pagegrid .prose{max-width:none}

/* the sidebar is deliberately SHORTER than the prose (the what's-included list
   stays in the main column), so it can ride down with the copy instead of
   leaving a hole under itself */
.side{display:grid;gap:20px;position:sticky;top:calc(var(--hdr-h) + 20px)}
.side__card{background:#fff;border-radius:var(--r-lg);padding:26px 28px;box-shadow:var(--shadow)}
.side__card h3{font-size:1.1875rem;margin-bottom:14px}
.side .checks{columns:1;margin-top:0}
.side .checks li{font-size:.9375rem;padding:6px 0}

/* the list gets its own shaded panel so it reads as a block, not more prose */
.prose__list{background:#fff;border-radius:var(--r-lg);padding:28px 30px;margin-top:38px;box-shadow:var(--shadow)}
.prose__list h2{margin:0 0 6px}

.side__links li+li{border-top:1px solid rgba(28,33,49,.08)}
.side__links a{
  display:flex;align-items:center;gap:12px;padding:12px 0;
  font-family:var(--font-heading);font-weight:600;font-size:1rem;color:var(--navy);
}
.side__links a:hover{color:var(--primary)}
.side__links a>span:first-of-type{flex:1}
.side__links .ic{font-size:19px;color:var(--primary);flex:none}
.side__go{display:grid;place-items:center;font-size:16px;color:var(--primary);flex:none}
.side__more{margin:16px 0 0;font-size:.9375rem}
.side__more a{color:var(--primary);font-weight:600}
.side__more a:hover{text-decoration:underline}

.side__card--call{background:var(--navy);color:rgba(255,255,255,.76);text-align:center}
.side__card--call h3{color:#fff;margin-bottom:6px}
.side__phone{
  display:block;font-family:var(--font-heading);font-size:1.75rem;font-weight:700;
  color:var(--hero-sun);line-height:1.2;
}
.side__phone:hover{color:#fff}
.side__hours{font-size:.875rem;margin:6px 0 0}
.side__card--call .btn{margin-top:16px}

.rel{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.rel__card{
  display:flex;align-items:center;gap:16px;background:var(--bg-cool);
  border-radius:var(--r-md);padding:22px 24px;
  transition:transform .3s,box-shadow .3s,background .25s;
}
.rel__card:hover{transform:translateY(-4px);box-shadow:var(--shadow);background:var(--blue-100)}
.rel__ic{
  width:48px;height:48px;flex:none;border-radius:50%;background:#fff;color:var(--primary);
  display:grid;place-items:center;font-size:22px;
}
.rel__card strong{flex:1;font-family:var(--font-heading);font-size:1.0625rem;color:var(--navy);line-height:1.3}
.rel__go{color:var(--primary);font-size:18px;display:grid;place-items:center;flex:none}
.rel__foot{text-align:center;margin:30px 0 0}
.rel__foot a{color:var(--primary);font-weight:600}
.rel__foot a:hover{text-decoration:underline}

/* ==========================================================================
   GALLERY — job photos, before/after pairs, lightbox
   ========================================================================== */
/* One project per row. Two-up (grid, then masonry) both left big holes because
   jobs range from one photo to ten; full width lines everything up instead. */
.gal__project h3{font-size:1.375rem;margin:0 0 12px}
.gal__media{margin-bottom:46px}
/* Desktop: pairs and singles share one six-track grid. The two wrappers go
   display:contents so their children become grid items. A single photo takes
   a third of the row; a pair takes two thirds, and `dense` drops a single into
   the slot beside it. A job with no singles has nothing to fill that slot, so
   its pairs go two to a row instead of leaving a third of every row blank. */
@media (min-width:1101px){
  .gal__media{display:grid;grid-template-columns:repeat(6,1fr);gap:16px;grid-auto-flow:row dense}
  .gal__media>.gal__pairs,.gal__media>.gal__grid{display:contents}
  .gal__media>.gal__grid>.gal__fig{grid-column:span 2}
  .gal__pair{grid-column:span 4}
  .gal__media:not(:has(>.gal__grid)) .gal__pair{grid-column:span 3}
}
/* gallery page: one band per service */
.galgroup+.galgroup{margin-top:20px;padding-top:44px;border-top:1px solid rgba(28,33,49,.12)}
.galgroup__h{
  display:flex;align-items:baseline;justify-content:space-between;gap:20px;
  flex-wrap:wrap;margin-bottom:26px;font-size:1.5rem;
}
.galgroup__h>span:first-child{color:rgba(28,33,49,.5);font-size:1.0625rem;
  font-family:var(--font-heading);font-weight:600;letter-spacing:.06em;text-transform:uppercase}
.galgroup__svc{display:block;color:var(--navy);font-size:1.75rem;letter-spacing:-.5px;text-transform:none}
.galgroup__link{
  display:inline-flex;align-items:center;gap:8px;color:var(--primary);
  font-family:var(--font-heading);font-size:1rem;font-weight:600;
}
.galgroup__link .btn__arrow{width:26px;height:26px;background:var(--bg-cool);font-size:14px}
.galgroup__link:hover{color:var(--navy)}

.gal__cap{margin:0 0 20px;max-width:74ch;font-size:1rem}
.gal__cap:empty{margin-bottom:0}
.gal__cap dt{
  font-family:var(--font-heading);font-weight:600;font-size:.8125rem;letter-spacing:.08em;
  text-transform:uppercase;color:var(--primary);margin-top:10px;
}
.gal__cap dd{margin:2px 0 0}

/* a before and its after sit side by side inside one pair block; the pairs
   themselves stack, since each project now occupies half the page width */
.gal__pairs{display:grid;gap:14px}
.gal__pair{
  display:grid;grid-template-columns:1fr 1fr;gap:8px;
  background:var(--bg-cool);border-radius:var(--r-md);padding:8px;
}
.gal__grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:16px}
.gal__pairs+.gal__grid{margin-top:14px}

.gal__fig{margin:0}
.gal__link{
  position:relative;display:block;overflow:hidden;border-radius:10px;
  background:var(--navy-light);aspect-ratio:4/3;
}
.gal__link img{width:100%;height:100%;object-fit:cover;transition:transform .45s}
.gal__link:hover img{transform:scale(1.05)}
.gal__badge{
  position:absolute;left:8px;top:8px;padding:4px 10px;border-radius:var(--r-pill);
  font-family:var(--font-heading);font-size:.75rem;font-weight:700;letter-spacing:.06em;
  text-transform:uppercase;background:var(--navy);color:#fff;
}
.gal__badge--after{background:var(--primary)}
.gal__badge--during{background:var(--hero-sun-deep);color:var(--navy)}

/* stock photo block (build.js stockSection): three across */
/* same white band as the jobs gallery above it, so drop the doubled seam */
.gal+.stock{padding-top:0}
.stock__grid{grid-template-columns:repeat(3,1fr);margin-top:0}
@media (max-width:640px){.stock__grid{grid-template-columns:1fr}}

/* lightbox */
.lb{
  position:fixed;inset:0;z-index:200;display:none;place-items:center;
  background:rgba(12,15,26,.92);padding:24px;
}
.lb.is-open{display:grid}
/* held well inside the viewport — filling the screen read as too big */
.lb__img{
  max-width:min(90%,900px);max-height:76vh;
  margin-inline:auto;border-radius:8px;display:block;
}
.lb__cap{color:rgba(255,255,255,.8);text-align:center;margin:14px 0 0;font-size:.9375rem}
.lb__btn{
  position:absolute;width:48px;height:48px;border:0;border-radius:50%;cursor:pointer;
  background:rgba(255,255,255,.14);color:#fff;display:grid;place-items:center;font-size:20px;
  transition:background .25s;
}
.lb__btn:hover{background:rgba(255,255,255,.3)}
.lb__close{top:20px;right:20px}
.lb__prev{left:20px;top:50%;transform:translateY(-50%)}
.lb__next{right:20px;top:50%;transform:translateY(-50%)}
.lb__next .ic{transform:rotate(0)}
.lb__prev .ic{transform:rotate(180deg)}

.towns{display:grid;grid-template-columns:repeat(4,1fr);gap:30px}
.area__col h3{display:flex;align-items:center;gap:9px;font-size:1.125rem;margin-bottom:12px}
.area__col h3 .ic{font-size:19px;color:var(--primary);flex:none}
.area__col ul li{font-size:.9375rem;padding-block:3px}
.ftr__h4--gap{margin-top:26px}

/* the footer is navy too, so this seam gets less than the usual 104 — the
   footer's hairline top border is what signals the boundary */
.cta{background:var(--navy);padding-block:52px 40px;color:#fff}
.cta__in{display:flex;align-items:center;justify-content:space-between;gap:30px;flex-wrap:wrap}
.cta h2{color:#fff;margin-bottom:6px}
.cta p{color:rgba(255,255,255,.72);margin:0}

.ftr{background:var(--navy);color:rgba(255,255,255,.68);padding-block:40px 30px;font-size:.9375rem;
  border-top:1px solid rgba(255,255,255,.10)}
.ftr__cols{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;gap:44px;padding-bottom:50px}
.ftr h4{font-family:var(--font-heading);color:#fff;font-size:1.125rem;margin-bottom:18px}
.ftr a:hover{color:var(--primary-light)}
.ftr__col--brand img{width:150px;background:#fff;border-radius:10px;padding:10px 12px;margin-bottom:18px}
.ftr__col ul li{padding-block:5px}
.ftr address{line-height:2}
.ftr__social{display:flex;gap:10px;margin-top:18px}
.ftr__social a{
  width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.1);color:#fff;
  display:grid;place-items:center;transition:background .25s;
}
.ftr__social a svg{width:16px;height:16px}
.ftr__social a:hover{background:var(--primary)}
.ftr__legal{text-align:center;margin:26px 0 0;font-size:.875rem;color:rgba(255,255,255,.5);
  border-top:1px solid rgba(255,255,255,.10);padding-top:26px}

.totop{
  position:fixed;right:24px;bottom:24px;z-index:70;width:46px;height:46px;border:0;
  border-radius:10px;background:var(--primary);color:#fff;font-size:18px;cursor:pointer;
  display:grid;place-items:center;opacity:0;visibility:hidden;transform:translateY(12px);
  transition:opacity .3s,visibility .3s,transform .3s,background .25s,bottom .45s;
}
.totop.is-on{opacity:1;visibility:visible;transform:none}
.totop:hover{background:var(--navy)}

/* ==========================================================================
   COUPON
   ========================================================================== */
.coupon{
  position:fixed;right:24px;bottom:24px;z-index:75;width:min(420px,calc(100vw - 36px));
  background:#f1efc6;border-radius:var(--r-md);overflow:hidden;
  box-shadow:var(--shadow-lg);border:3px solid var(--primary);
  transform:translateY(140%);opacity:0;
  transition:transform .55s cubic-bezier(.22,.72,.24,1),opacity .4s;
}
.coupon.is-open{transform:none;opacity:1}
.coupon[hidden]{display:none}
.coupon__close{
  position:absolute;top:8px;right:8px;z-index:2;width:28px;height:28px;border-radius:50%;
  border:0;cursor:pointer;background:var(--navy);color:#fff;display:grid;place-items:center;
  transition:background .25s,transform .25s;
}
.coupon__close svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round}
.coupon__close:hover{background:var(--primary);transform:rotate(90deg)}
.coupon__link{display:flex;align-items:stretch;color:inherit}
.coupon__amount{
  flex:none;width:112px;background:var(--navy);color:#fff;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  padding:18px 10px;line-height:1;font-family:var(--font-heading);
}
.coupon__amount strong{font-size:2.375rem;font-weight:700}
.coupon__amount em{font-style:normal;font-size:1.875rem;font-weight:700}
.coupon__body{display:block;padding:16px 18px}
.coupon__title{display:block;font-family:var(--font-heading);font-size:1.375rem;font-weight:700;color:var(--navy);line-height:1.2}
.coupon__sub{display:block;font-size:1rem;font-weight:600;color:var(--primary);margin:4px 0 8px}
.coupon__fine{display:block;font-size:.75rem;line-height:1.5}
.coupon__link:hover .coupon__title{color:var(--primary)}
body.coupon-open .totop{bottom:calc(24px + var(--coupon-h,160px) + 12px)}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
/* the five labels are long enough that the row runs past the CTA just above the
   burger breakpoint — tighten the type and gaps through that band only */
@media (min-width:1101px) and (max-width:1320px){
  .hdr__in{gap:14px}
  .nav__list{gap:0}
  .nav__item>a{padding:12px 11px;font-size:1.0625rem}
  .nav__item--has>a{padding-right:24px}
  .nav__item--has>a::after{right:9px}
}
@media (max-width:1200px){
  :root{--pad:46px}
  .cards{grid-template-columns:repeat(3,1fr)}
  .area__grid{grid-template-columns:repeat(3,1fr)}
}
@media (max-width:1100px){
  :root{--hdr-h:76px}
  .hdr__brand{margin-top:0}
  .hdr__brand img{width:178px}
  /* nothing occupies the middle of the bar once the nav goes off-canvas, so push
     the actions to the right gutter instead of letting them pack left */
  .hdr__cta{margin-left:auto}
  .topbar__in{justify-content:center}
  .topbar{display:none}
  .burger{display:flex}
  .hdr__call{
    display:grid;place-items:center;width:46px;height:46px;flex:none;
    border-radius:10px;background:var(--primary);color:#fff;font-size:20px;
    transition:background .25s;
  }
  .hdr__call:hover{background:var(--navy)}
  .hdr__call .ic{stroke-width:2}
  .nav{
    position:fixed;inset:var(--hdr-h) 0 0 auto;width:min(340px,86vw);background:#fff;
    margin:0;padding:20px;overflow-y:auto;box-shadow:-10px 0 40px rgba(28,33,49,.16);
    transform:translateX(105%);transition:transform .35s;z-index:90;
  }
  .nav.is-open{transform:none}
  .nav__list{flex-direction:column;align-items:stretch;gap:0}
  .nav__item{border-bottom:1px solid rgba(28,33,49,.08)}
  .nav__item>a{padding:14px 4px}
  .nav__item--has>a::after{display:none}
  .nav__toggle{
    display:block;position:absolute;right:0;top:5px;width:40px;height:40px;
    border:0;background:var(--bg-cool);border-radius:8px;cursor:pointer;
  }
  .nav__toggle::after{
    content:"";position:absolute;left:50%;top:45%;width:8px;height:8px;
    border-right:2px solid var(--navy);border-bottom:2px solid var(--navy);
    transform:translate(-50%,-50%) rotate(45deg);transition:transform .3s;
  }
  .nav__item.is-open .nav__toggle::after{transform:translate(-50%,-20%) rotate(-135deg)}
  .nav__sub{position:static;opacity:1;visibility:visible;transform:none;box-shadow:none;
    padding:0 0 10px;display:none;min-width:0}
  .nav__item.is-open>.nav__sub{display:block}
  /* the mega menu stacks in the drawer — no columns, no divider */
  .nav__col+.nav__col{border-left:0;margin-top:12px}
  .nav__coltitle{padding-inline:4px;margin-bottom:4px}
  .nav__sub a{padding-inline:4px}

  .cards{grid-template-columns:1fr 1fr}
  .rel{grid-template-columns:1fr 1fr}
  .towns{grid-template-columns:1fr 1fr}
  /* sidebar drops under the copy, so it must stop sticking */
  .pagegrid{grid-template-columns:1fr;gap:36px}
  .side{position:static}
  .gal__media{margin-bottom:34px}
  .gal__project+.gal__project{padding-top:30px;border-top:1px solid rgba(28,33,49,.10)}
  .gal__grid{grid-template-columns:repeat(3,1fr)}
  .split{grid-template-columns:1fr;gap:44px}
  .trust__grid{grid-template-columns:1fr 1fr;gap:10px 0}
  .trust__item:nth-child(2n){border-right:0}
  .trust__item:first-child{padding-left:24px}
  .list__cols{columns:2}
  .area__grid{grid-template-columns:1fr 1fr}
  .contact__in{grid-template-columns:1fr;gap:40px}
  .ftr__cols{grid-template-columns:1fr 1fr;gap:34px}
}
@media (max-width:640px){
  :root{--pad:36px}
  .wrap{padding-inline:18px}
  .hero{padding-block:40px 0}
  /* sized so the longest rotator entry ("Property Maintenance") holds one line */
  .hero h1{font-size:clamp(1.75rem,8.2vw,2.5rem);letter-spacing:-1px}
  .hero__top{grid-template-columns:1fr;gap:28px;padding-bottom:36px}
  .bookcard{grid-column:1;grid-row:2}
  .hero__copy{grid-column:1;grid-row:1;justify-self:stretch;text-align:left}
  .hero__copy .eyebrow--dash{flex-direction:row;justify-content:flex-start}
  .yearbadge{font-size:.9375rem;padding:10px 20px 10px 16px;gap:8px}
  .yearbadge strong{font-size:1.0625rem}
  .bookcard{max-width:none}
  .hero{min-height:0}
  .hdr__brand img{width:140px}
  /* four items now share the bar (brand, estimate, call, menu) — tighten the
     gaps and the CTA so the row still fits a 375px screen */
  .hdr__in{gap:10px}
  .hdr__cta{gap:8px}
  .hdr__cta .btn--outline{padding:10px 12px;font-size:.875rem}
  .hdr__call,.burger{width:42px;height:42px}
  .hdr__call{font-size:18px}
  .hero__van{position:static;width:112%;max-width:none;margin:8px -6% 0;bottom:auto;left:auto}
  .hero__watermark{font-size:4.5rem;top:26%}
  .trust__grid{grid-template-columns:1fr}
  .trust__item{border-right:0;border-bottom:1px solid rgba(28,33,49,.10);padding-inline:0}
  .trust__item:first-child{padding-left:0}
  .trust__item:last-child{border-bottom:0}
  .cards{grid-template-columns:1fr}
  .rel{grid-template-columns:1fr}
  .towns{grid-template-columns:1fr;gap:22px}
  .checks{columns:1}
  .gal__grid{grid-template-columns:1fr 1fr;gap:10px}
  .gal__project h3{font-size:1.25rem}
  .lb__img{max-width:100%;max-height:70vh}
  .lb{padding:12px}
  .lb__btn{width:42px;height:42px}
  .lb__close{top:10px;right:10px}
  .lb__prev{left:6px}
  .lb__next{right:6px}
  .side__card{padding:22px 20px}
  .prose__list{padding:22px 20px;margin-top:28px}
  .phero{padding-block:16px 38px}
  .phero+.sect{padding-top:34px}
  .crumb{margin-bottom:20px}
  .phero__acts .btn{width:100%;justify-content:center}
  .split__grid{grid-template-columns:1fr}
  .split__grid figure:first-child{grid-column:auto}
  .list__cols{columns:1}
  .area__grid{grid-template-columns:1fr}
  .formcard{padding:26px 20px}
  .cta__in{flex-direction:column;text-align:center}
  .ftr__cols{grid-template-columns:1fr;gap:30px}
  .coupon{right:12px;left:12px;bottom:12px;width:auto}
  .coupon__amount{width:88px}
  .coupon__amount strong{font-size:1.75rem}
  .coupon__amount em{font-size:1.375rem}
  .coupon__title{font-size:1.125rem}
}
/* smallest phones: the four-item header bar needs another ~40px to stay inside
   the gutters, so the brand and the CTA step down one more notch */
@media (max-width:400px){
  .hdr__brand img{width:118px}
  .hdr__in{gap:8px}
  .hdr__cta{gap:6px}
  .hdr__cta .btn--outline{padding:9px 10px;font-size:.8125rem}
  .hdr__call,.burger{width:40px;height:40px}
  .hdr__call{font-size:17px}
}
@media (prefers-reduced-motion:reduce){
  .coupon{transition:opacity .3s}
}
