/* ==========================================================================
   Seaman Roofing
   Brand colours carried over from the original build; everything else is
   rebuilt around a stricter spacing and type scale.
   ========================================================================== */

:root {
  --ink:      #0E1A14;   /* deep green - headings, footer */
  --ink-2:    #16241C;
  --body:     #1D1E20;   /* dark neutral - hero base */
  --text:     #2B322E;   /* body copy on light */
  --muted:    #5D6B64;
  --paper:    #FFFFFF;
  --paper-2:  #F4F6F4;   /* alternating section tint */
  --line:     #E2E7E3;
  --accent:   #DD5A24;   /* orange - primary CTA */
  --accent-2: #C2481A;
  --sage:     #8BA895;

  /* Rubik + Source Sans is the type pairing from the legacy Seaman sites -
     sturdy geometric sans set uppercase, the standard trade-contractor look. */
  --display: Rubik, "Helvetica Neue", Arial, sans-serif;
  --sans:    "Source Sans 3", "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ui:      Rubik, var(--sans);

  --wrap: 1180px;
  --gut: 24px;
  --sy: clamp(72px, 8vw, 116px);
  --r: 10px;

  --shadow-sm: 0 1px 2px rgba(14, 26, 20, .06), 0 2px 8px rgba(14, 26, 20, .04);
  --shadow-md: 0 4px 12px rgba(14, 26, 20, .07), 0 12px 32px rgba(14, 26, 20, .07);
}

*, *::before, *::after { box-sizing: border-box; }

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  margin: 0 0 .5em;
  text-wrap: balance;
  text-transform: uppercase;
}

h1 { font-size: clamp(34px, 4.9vw, 58px); font-weight: 700; line-height: 1.06; letter-spacing: -.005em; }
h2 { font-size: clamp(27px, 3.4vw, 41px); font-weight: 700; line-height: 1.1; letter-spacing: -.005em; }
h3 { font-size: clamp(18px, 1.75vw, 21px); font-weight: 600; line-height: 1.25; letter-spacing: .01em; }
h4 { font-size: 17px; font-weight: 600; line-height: 1.35; letter-spacing: .01em; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

/* --- layout --------------------------------------------------------------- */

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }

.section { padding-block: var(--sy); }
.section--tint { background: var(--paper-2); }
.section--ink  { background: var(--ink); color: #C9D2CC; }
.section--ink h2, .section--ink h3 { color: #F4F6F4; }

.eyebrow {
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}
.section--ink .eyebrow { color: var(--sage); }

.lede { font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); max-width: 64ch; }
.section--ink .lede { color: #A9B4AD; }

.section__head { max-width: 700px; margin-bottom: clamp(40px, 4.6vw, 62px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .lede { margin-inline: auto; }

/* --- buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--ui);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  padding: 16px 28px;
  border: 1.5px solid transparent;
  border-radius: var(--r);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s, color .18s, border-color .18s, transform .18s, box-shadow .18s;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Dark text on the orange, as on the original. White would only reach 3.78:1
   against #DD5A24, which fails AA for text this size. */
.btn--primary { background: var(--accent); color: #17100B; box-shadow: 0 4px 14px rgba(221, 90, 36, .32); }
.btn--primary:hover { background: #E96A33; box-shadow: 0 8px 22px rgba(221, 90, 36, .42); }

.btn--ghost { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.42); backdrop-filter: blur(4px); }
.btn--ghost:hover { background: rgba(255,255,255,.14); border-color: #fff; }

.btn--outline { background: transparent; color: var(--ink); border-color: rgba(14,26,20,.24); }
.btn--outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* --- header --------------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  background: transparent;
  transition: background-color .28s, box-shadow .28s, border-color .28s;
  border-bottom: 1px solid transparent;
}
/* Solid once the hero has scrolled past, so links stay legible over content. */
.site-header.is-stuck {
  background: rgba(14, 26, 20, .97);
  border-bottom-color: rgba(139, 168, 149, .18);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .22);
}

.site-header__inner { position: relative; display: flex; align-items: center; gap: 26px; min-height: 84px; }

.brand { display: flex; flex-direction: column; text-decoration: none; margin-right: auto; line-height: 1.05; }
.brand strong { font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: .01em; text-transform: uppercase; color: #fff; }
.brand span {
  font-family: var(--ui); font-size: 10px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--sage); margin-top: 4px;
}

.nav { display: flex; align-items: center; gap: 28px; }
.nav > a, .nav__item > a {
  font-family: var(--ui); font-size: 15px; font-weight: 500;
  color: rgba(255,255,255,.86); text-decoration: none;
  padding: 6px 0; border-bottom: 2px solid transparent;
  transition: color .18s, border-color .18s;
}
.nav > a:hover, .nav__item > a:hover { color: #fff; }
.nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--accent); }

/* --- service-areas dropdown ----------------------------------------------- */

.nav__item { position: relative; display: flex; align-items: center; gap: 6px; }

.nav__caret {
  background: none; border: 0; padding: 4px; cursor: pointer; line-height: 0;
  color: rgba(255,255,255,.7);
}
.nav__caret::after {
  content: ""; display: block; width: 7px; height: 7px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .2s;
}
.nav__caret:hover { color: #fff; }
.nav__caret[aria-expanded="true"]::after { transform: rotate(-135deg) translate(-3px, -3px); }

/* Anchored to the right edge of the header container rather than to the nav
   item, so a wide menu can never push past the viewport and create a
   horizontal scroll region. */
.nav__menu {
  position: absolute; top: calc(100% + 14px); right: 0; left: auto; z-index: 5;
  width: max-content; max-width: min(660px, calc(100vw - 48px));
  background: #fff; border-radius: 12px; box-shadow: var(--shadow-md);
  padding: 22px 24px;
  display: grid; grid-template-columns: repeat(3, minmax(150px, 1fr)); gap: 18px 26px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.nav__item:hover .nav__menu,
.nav__item:focus-within .nav__menu,
.nav__menu.is-open { opacity: 1; visibility: visible; transform: none; }

.nav__group p {
  font-family: var(--ui); font-size: 10.5px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 9px;
}
.nav__group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.nav__group a {
  font-family: var(--sans); font-size: 14.5px; color: var(--text);
  text-decoration: none; border: 0; padding: 2px 0; display: block;
}
.nav__group a:hover { color: var(--accent); }

.nav__menu-all {
  grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 2px;
}
.nav__menu-all a {
  font-family: var(--ui); font-size: 14px; font-weight: 700; color: var(--accent);
  text-decoration: none; border: 0;
}

@media (max-width: 980px) {
  .nav__item { flex-wrap: wrap; }
  .nav__item > a { flex: 1; }
  .nav__caret { color: rgba(255,255,255,.75); padding: 12px 6px; }
  .nav__menu {
    position: static; width: 100%; max-width: none; flex-basis: 100%;
    background: transparent; box-shadow: none; padding: 4px 0 12px;
    grid-template-columns: 1fr; gap: 14px;
    display: none; opacity: 1; visibility: visible; transform: none;
  }
  .nav__item:hover .nav__menu, .nav__item:focus-within .nav__menu { display: none; }
  .nav__menu.is-open { display: grid; }
  .nav__group a { color: rgba(255,255,255,.82); font-size: 15px; padding: 7px 0 7px 12px; }
  .nav__group a:hover { color: #fff; }
  .nav__menu-all { border-top-color: rgba(139,168,149,.2); }
}

.header-cta { display: flex; align-items: center; gap: 16px; }
.header-tel {
  font-family: var(--ui); font-size: 16px; font-weight: 700;
  color: #fff; text-decoration: none; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px;
}
.header-tel:hover { color: var(--accent); }
.header-tel svg { flex: none; opacity: .8; }
.header-cta .btn { padding: 13px 22px; font-size: 14px; }

.nav-toggle { display: none; background: none; border: 1.5px solid rgba(255,255,255,.34); border-radius: 8px; padding: 10px 12px; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: #fff; margin: 4px 0; transition: transform .22s, opacity .22s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 980px) {
  .site-header__inner { flex-wrap: wrap; gap: 14px; min-height: 68px; }
  .nav-toggle { display: block; order: 3; }
  .header-cta { order: 2; }
  .header-cta .btn { display: none; }
  .nav {
    order: 4; flex-basis: 100%; flex-direction: column; align-items: stretch;
    gap: 0; display: none; padding: 6px 18px 16px; margin-bottom: 12px;
    background: rgba(14, 26, 20, .98); border-radius: var(--r);
    box-shadow: var(--shadow-md);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid rgba(139,168,149,.16); }
  .nav a:last-child { border-bottom: none; }
}

/* --- hero ----------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(600px, 88vh, 900px);
  padding-block: clamp(150px, 15vw, 190px) clamp(72px, 8vw, 104px);
  background: var(--body);
  color: #fff;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }

/* Rotating hero. The first image is the permanent base layer; images 2-4 are
   stacked on top and fade in for one quarter of the cycle each, so there is
   never an empty frame and no JavaScript is involved. */
.hero__bg--rotating { --cycle: 28s; }
.hero__bg--rotating img { position: absolute; inset: 0; }
.hero__bg--rotating img:not(:first-child) {
  opacity: 0;
  animation: hero-cycle var(--cycle) ease-in-out infinite;
  will-change: opacity;
}
.hero__bg--rotating img:nth-child(2) { animation-delay: calc(var(--cycle) / 4 * 1); }
.hero__bg--rotating img:nth-child(3) { animation-delay: calc(var(--cycle) / 4 * 2); }
.hero__bg--rotating img:nth-child(4) { animation-delay: calc(var(--cycle) / 4 * 3); }

@keyframes hero-cycle {
  0%   { opacity: 0; }
  3%   { opacity: 1; }
  25%  { opacity: 1; }
  28%  { opacity: 0; }
  100% { opacity: 0; }
}

/* One still image is the right answer when motion is unwelcome. */
@media (prefers-reduced-motion: reduce) {
  .hero__bg--rotating img:not(:first-child) { animation: none; opacity: 0; }
}
.hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(96deg, rgba(9,15,12,.90) 0%, rgba(9,15,12,.74) 40%, rgba(9,15,12,.28) 100%),
    linear-gradient(180deg, rgba(9,15,12,.72) 0%, rgba(9,15,12,0) 34%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero__content { max-width: 780px; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero__sub {
  font-family: var(--ui); font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.62; color: rgba(255,255,255,.9); max-width: 56ch; margin-bottom: 34px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }

/* trust chips under the hero CTA */
.chips { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.chip {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--ui); font-size: 14px; font-weight: 600;
  color: rgba(255,255,255,.92);
}
.chip svg { flex: none; color: var(--sage); }

@media (max-width: 700px) {
  .hero { min-height: 76vh; padding-block: 108px 52px; }
  /* Lighter than the desktop scrim so the roof photo is actually visible;
     the copy sits in the darker upper band. */
  .hero__bg::after {
    background:
      linear-gradient(180deg, rgba(9,15,12,.86) 0%, rgba(9,15,12,.58) 46%, rgba(9,15,12,.30) 72%, rgba(9,15,12,.62) 100%);
  }
  .hero .eyebrow { font-size: 10.5px; letter-spacing: .14em; margin-bottom: 10px; }
  .hero h1 { font-size: clamp(29px, 8.4vw, 36px); margin-bottom: 14px; }
  .hero__sub { font-size: 15.5px; line-height: 1.5; margin-bottom: 22px; max-width: 34ch; }
  .hero__actions { margin-bottom: 26px; }
  .hero__actions .btn { width: 100%; }
  /* The sticky call bar already offers "Call Now" - a second call button here
     just crowds the hero. */
  .hero__actions .btn--ghost { display: none; }
  .chips { gap: 8px 18px; }
  .chip { font-size: 12.5px; }
}

/* --- interior page banner ------------------------------------------------- */

.banner {
  background: var(--ink);
  color: #C9D2CC;
  padding-block: clamp(146px, 14vw, 186px) clamp(56px, 6vw, 86px);
}
.banner h1 { color: #fff; }
.banner .lede { color: #A9B4AD; }

.crumbs { font-family: var(--ui); font-size: 13px; color: var(--sage); margin-bottom: 18px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs span { opacity: .55; margin-inline: 7px; }

/* --- trust strip ---------------------------------------------------------- */

.strip { background: var(--ink-2); color: #fff; }
.strip__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(139,168,149,.18); }
.strip__item { background: var(--ink-2); padding: 30px 24px; text-align: center; }
.strip__item strong {
  display: block; font-family: var(--display); font-size: clamp(28px, 3vw, 38px);
  font-weight: 700; color: #fff; line-height: 1; margin-bottom: 8px;
}

/* --- odometer ------------------------------------------------------------- */
/* Each digit is a 21-cell reel; cell 0 and cell 20 both hold the real digit,
   so the correct number shows with JS off and the spin lands where it began. */

.odo { display: block; }

/* Defensive: the digits live inside nested <span>/<i>, which are easy targets
   for ancestor rules. Pin their typography to the parent's. */
.odo, .odo > span, .odo__d, .odo__reel, .odo__reel span {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  letter-spacing: inherit;
  text-transform: none;
}

.odo > span { display: inline-flex; align-items: flex-start; }

.odo__d {
  display: inline-block;
  height: 1em;
  overflow: hidden;
  font-style: normal;
  vertical-align: top;
}
.odo__reel {
  display: block;
  font-style: normal;
  transform: translateY(0);
  will-change: transform;
}
.odo__reel span { display: block; height: 1em; line-height: 1; font-variant-numeric: tabular-nums; }

/* Staggered so the digits settle left to right like a mechanical counter. */
.odo.is-spinning .odo__reel { transform: translateY(calc(-20em)); }
.odo.is-spinning .odo__d:nth-child(1) .odo__reel { transition: transform 1.5s cubic-bezier(.16,.84,.3,1); }
.odo.is-spinning .odo__d:nth-child(2) .odo__reel { transition: transform 1.75s cubic-bezier(.16,.84,.3,1); }
.odo.is-spinning .odo__d:nth-child(3) .odo__reel { transition: transform 2s cubic-bezier(.16,.84,.3,1); }
.odo.is-spinning .odo__d:nth-child(4) .odo__reel { transition: transform 2.25s cubic-bezier(.16,.84,.3,1); }

@media (prefers-reduced-motion: reduce) {
  .odo.is-spinning .odo__reel { transition: none; transform: translateY(0); }
}
/* Direct child only - the odometer nests spans inside the <strong>, and this
   rule was styling the digits as if they were the caption. */
.strip__item > span {
  font-family: var(--ui); font-size: 12px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--sage);
}
@media (max-width: 760px) { .strip__grid { grid-template-columns: repeat(2, 1fr); } }

/* --- grids and cards ------------------------------------------------------ */

.grid { display: grid; gap: 26px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(26px, 2.6vw, 34px);
  box-shadow: var(--shadow-sm);
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #CFD8D2; }
.card p { color: var(--muted); margin-bottom: 0; font-size: 16px; }
.card h3 { margin-bottom: .5em; }
.section--tint .card { background: #fff; }

.card__icon {
  width: 50px; height: 50px; border-radius: 12px;
  background: rgba(221, 90, 36, .1); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 20px;
}

.card__link {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 18px;
  font-family: var(--ui); font-size: 14px; font-weight: 700;
  color: var(--accent); text-decoration: none;
}
.card__link:hover { gap: 12px; }

/* The main service is marked in the grid so it reads as the lead offering
   without the others being demoted out of sight. */
.card--primary { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-sm); }
.card--primary:hover { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-md); }

/* Selector has to out-rank `.card p`, which would otherwise paint the badge
   text muted grey on orange - 1.48:1. */
.card p.card__badge {
  display: inline-block;
  font-family: var(--ui); font-size: 10.5px; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase;
  color: #17100B; background: var(--accent);
  padding: 4px 10px; border-radius: 999px;
  margin: 0 0 12px;
}

/* --- split (image + text) ------------------------------------------------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 4.6vw, 68px); align-items: center; }
.split__media { border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-md); }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
/* --- embedded map --------------------------------------------------------- */

.map {
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  background: var(--paper-2);
  aspect-ratio: 4 / 3;
}
.map iframe { display: block; width: 100%; height: 100%; border: 0; }
@media (max-width: 820px) { .map { aspect-ratio: 3 / 2; } }

.split__points { display: grid; gap: 26px; margin-top: 8px; }
.split__point { padding-left: 20px; border-left: 3px solid var(--accent); }
.split__point p { color: var(--muted); margin-bottom: 0; font-size: 16px; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* --- gallery -------------------------------------------------------------- */

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery figure { margin: 0; overflow: hidden; border-radius: var(--r); box-shadow: var(--shadow-sm); }
.gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .4s; }
.gallery figure:hover img { transform: scale(1.05); }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .gallery { grid-template-columns: 1fr; } }

/* --- testimonials --------------------------------------------------------- */

.quote {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: clamp(26px, 2.6vw, 34px); display: flex; flex-direction: column; gap: 16px;
  box-shadow: var(--shadow-sm);
}
.quote blockquote { margin: 0; font-size: 16.5px; line-height: 1.62; color: var(--text); }
.quote figcaption {
  font-family: var(--ui); font-size: 13px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); margin-top: auto; padding-top: 6px;
}
.stars { color: var(--accent); font-size: 15px; letter-spacing: 3px; margin: 0; }

/* --- review marquee ------------------------------------------------------- */
/* A slow, continuous drift rather than a stepped carousel. The track holds two
   copies of the reviews and shifts by exactly one copy, so the loop is
   seamless with no visible jump at the wrap. */

.marquee { --gap: 26px; --speed: 110s; position: relative; }

/* Bleeds past the container so cards enter and leave the viewport edges
   rather than popping in at the content margin. */
.marquee__viewport {
  overflow: hidden;
  margin-inline: calc(var(--gut) * -1);
  padding-inline: var(--gut);
  padding-block: 4px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.marquee__track {
  display: flex;
  gap: var(--gap);
  width: max-content;
  animation: marquee-drift var(--speed) linear infinite;
  will-change: transform;
}

/* Half the track is one full copy; the extra half-gap keeps spacing even
   across the seam. */
@keyframes marquee-drift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(calc(-50% - (var(--gap) / 2)), 0, 0); }
}

.marquee__item { flex: 0 0 360px; }
@media (max-width: 640px) { .marquee__item { flex-basis: 78vw; } }

/* Scoped to the viewport, NOT to .marquee: the pause button sits inside the
   component and keeps focus after a click, so a :focus-within rule on the
   whole thing would hold the animation paused even after pressing play. */
.marquee__viewport:hover .marquee__track,
.marquee__viewport:focus-within .marquee__track,
.marquee.is-paused .marquee__track { animation-play-state: paused; }

.marquee__controls { display: flex; justify-content: center; margin-top: 28px; }

.marquee__pause {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 18px 9px 14px;
  font-family: var(--ui); font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: color .18s, border-color .18s, background-color .18s;
}
.marquee__pause:hover { color: var(--ink); border-color: #CFD8D2; }
.marquee__pause:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Two bars (pause) that become a triangle (play) when pressed. */
.marquee__icon {
  width: 12px; height: 12px; flex: none;
  border-left: 3.5px solid currentColor;
  border-right: 3.5px solid currentColor;
  box-sizing: border-box;
}
.marquee__pause[aria-pressed="true"] .marquee__icon {
  border: 0;
  width: 0; height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid currentColor;
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .marquee__viewport { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .marquee__controls { display: none; }
}

/* --- process -------------------------------------------------------------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.step { border-top: 3px solid var(--line); padding-top: 22px; position: relative; }
.step::before { content: ""; position: absolute; top: -3px; left: 0; width: 46px; height: 3px; background: var(--accent); }
.step__num { font-family: var(--ui); font-size: 13px; font-weight: 800; color: var(--accent); letter-spacing: .12em; display: block; margin-bottom: 10px; }
.step h3 { font-size: 21px; margin-bottom: .45em; }
.step p { color: var(--muted); font-size: 15.5px; margin-bottom: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }

/* --- service-area links --------------------------------------------------- */

/* Town name stacked over county, with a fixed arrow column, so every tile is
   the same height regardless of how long the names are. */
.areas {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
  gap: 12px; margin: 0; padding: 0; list-style: none;
}
.areas a {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 12px;
  height: 100%;
  min-height: 78px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  transition: border-color .18s, transform .18s, box-shadow .18s, background-color .18s;
}
.areas a strong {
  display: block;
  font-family: var(--display); font-size: 16px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .015em; color: var(--ink);
  line-height: 1.2;
}
.areas a small {
  display: block; margin-top: 3px;
  font-family: var(--sans); font-size: 13px; font-weight: 400; color: var(--muted);
  line-height: 1.3;
}
.areas a::after {
  content: "";
  width: 8px; height: 8px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  transform: rotate(45deg) translate(-2px, 2px);
  opacity: .35;
  transition: opacity .18s, transform .18s;
}
.areas a:hover {
  border-color: #D3DBD6; border-left-color: var(--accent);
  background: #FEFCFB; transform: translateY(-2px); box-shadow: var(--shadow-sm);
}
.areas a:hover::after { opacity: 1; transform: rotate(45deg) translate(1px, -1px); }
.areas a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* plain list variant (services list) */
.ticks { columns: 3 200px; column-gap: 30px; margin: 0; padding: 0; list-style: none; }
.ticks li { break-inside: avoid; padding: 10px 0 10px 26px; position: relative; font-size: 16px; border-bottom: 1px solid var(--line); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 17px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--accent);
}

/* Narrower variant for the featured service panel, which sits in a half-width
   column. Two class names so it out-ranks the `.ticks` base above. */
.ticks.ticks--two { columns: 2 150px; }

/* --- FAQ ------------------------------------------------------------------ */

.faq { max-width: 840px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  font-family: var(--display); font-size: clamp(16.5px, 1.6vw, 19px); font-weight: 600;
  text-transform: uppercase; letter-spacing: .01em; color: var(--ink);
  cursor: pointer; padding: 22px 44px 22px 0; position: relative; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-size: 26px; color: var(--accent); line-height: 1; font-family: var(--sans);
}
.faq details[open] summary::after { content: "\2013"; }
.faq details p { color: var(--muted); padding-bottom: 24px; max-width: 70ch; font-size: 16px; }

/* --- contact -------------------------------------------------------------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 4.6vw, 68px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-list { display: grid; gap: 22px; margin-top: 32px; }
.contact-list dt { font-family: var(--ui); font-size: 11.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 5px; }
.contact-list dd { margin: 0; font-size: 17px; color: var(--ink); }
.contact-list dd a { text-decoration: none; font-weight: 600; }
.contact-list dd a:hover { color: var(--accent); }

.form { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: clamp(26px, 3vw, 40px); box-shadow: var(--shadow-md); }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--ui); font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 16px; color: var(--text);
  background: #fff; border: 1.5px solid var(--line); border-radius: 8px; padding: 13px 15px;
  transition: border-color .18s, box-shadow .18s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(221,90,36,.14);
}
.field textarea { min-height: 148px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { width: 100%; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 14px; text-align: center; }

.alert { border-radius: 8px; padding: 14px 16px; margin-bottom: 20px; font-size: 15px; }
.alert--ok  { background: #E7F1EA; border: 1px solid var(--sage); color: #1F4430; }
.alert--err { background: #FBE7DD; border: 1px solid var(--accent); color: #8A3210; }

/* --- CTA band ------------------------------------------------------------- */

.cta-band { text-align: center; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 30px; }

/* --- footer --------------------------------------------------------------- */

.site-footer { background: var(--ink); color: #A9B4AD; padding-block: 68px 0; font-size: 15px; }
.site-footer h3 { color: #fff; font-size: 22px; margin-bottom: .45em; }
.site-footer a { color: #A9B4AD; text-decoration: none; }
.site-footer a:hover { color: #fff; }

.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 34px; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

.footer__title { font-family: var(--ui); font-size: 11.5px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--sage); margin-bottom: 16px; }
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer__areas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; font-size: 14px; }

.footer__bar {
  margin-top: 52px; border-top: 1px solid rgba(139,168,149,.2); padding-block: 24px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 13px;
}
.footer__promise { letter-spacing: .12em; text-transform: uppercase; color: var(--sage); font-size: 11.5px; }

/* --- sticky mobile call bar ----------------------------------------------- */

.callbar { display: none; }
@media (max-width: 700px) {
  .callbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(14,26,20,.97); border-top: 1px solid rgba(139,168,149,.2);
  }
  .callbar .btn { width: 100%; padding: 14px 10px; font-size: 14.5px; }
  body { padding-bottom: 76px; }
}

/* --- utility -------------------------------------------------------------- */

.skip-link { position: absolute; left: -9999px; background: var(--accent); color: #fff; padding: 12px 18px; z-index: 100; font-family: var(--ui); font-weight: 700; }
.skip-link:focus { left: 12px; top: 12px; }

.prose p { max-width: 72ch; }
.prose h2 { margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
