/* ============================================================================
   styles.css — layout and components for
   Flood Damage Restoration Massachusetts, built from tokens.css.

   Geometry follows the reference site: 1290px content width, 60px teal top bar,
   a transparent header sitting over a full-bleed photo hero with a dark
   overlay, square-cornered red buttons at 20px/40px, circular teal icon badges,
   prompt-style capitalised headings, and a dark red footer over a dark green
   bottom bar.
   ========================================================================= */

/* ── layout helpers ─────────────────────────────────────────────────────── */

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); background: var(--bg); }
.section--soft { background: var(--bg-soft); }
.section--tint { background: var(--bg-tint); }
.section--tight { padding-block: var(--space-6); }
.section__head { max-width: 60ch; margin-bottom: var(--space-6); }
.section__head p:last-child { margin-bottom: 0; }
.section__head--center { margin-inline: auto; text-align: center; }

.stack > * + * { margin-top: var(--space-4); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.cluster--center { justify-content: center; }
.grid { display: grid; gap: var(--space-5); }
.grid--links { display: grid; gap: var(--space-1); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); list-style: none; padding: 0; }
@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .grid--cards { grid-template-columns: repeat(3, 1fr); }
  .split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-7); align-items: center; }
  .split--wide { grid-template-columns: 1.05fr 0.95fr; }
  .sidebar-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--space-7); align-items: start; }
}

/* ── top bar — teal strip: phone, city search, social ───────────────────── */

.topbar {
  background: var(--brand-2-dark);
  color: var(--on-brand);
  font-size: var(--step--1);
  position: relative;
  z-index: calc(var(--z-header) + 1);
}
.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-2) var(--space-5);
  min-height: 48px;
  padding-block: var(--space-1);
}
.topbar a { color: var(--on-brand); font-weight: var(--weight-medium); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar__item { display: inline-flex; align-items: center; gap: var(--space-2); }
.topbar__search { display: none; align-items: center; gap: 0; width: 100%; max-width: 320px; }
.topbar__search input {
  flex: 1;
  min-width: 0;
  min-height: 34px;
  padding: 0.3em 0.75em;
  font: inherit;
  color: var(--text);
  background: #fff;
  border: 0;
}
.topbar__search .btn { min-height: 34px; padding: 0 0.9em; border-width: 0; background: var(--brand-2-strong); color: #fff; box-shadow: none; }
.topbar__search .btn:hover { background: var(--brand); color: #fff; }
.topbar__social { display: none; align-items: center; gap: var(--space-3); }
/* Social profiles that have not been supplied yet stay listed in the footer;
   the top bar only shows the ones that link somewhere. */
.topbar__social > span { display: none; }
@media (min-width: 900px) {
  .topbar__inner { justify-content: space-between; }
  .topbar__search, .topbar__social { display: flex; }
  .topbar__search { margin-left: auto; }
}

/* ── header — white, sticky, logo · navigation · call button ───────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--dur) var(--ease);
}
.site-header.is-stuck { box-shadow: 0 6px 18px -8px rgb(16 24 40 / 22%); }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-5);
  flex-wrap: wrap;
  padding-block: var(--space-2);
}
.brand { display: inline-flex; align-items: center; text-decoration: none; flex: 0 0 auto; }
.brand__logo { width: auto; height: 52px; }
@media (min-width: 900px) { .brand__logo { height: 68px; } }
.header-actions { display: flex; align-items: center; gap: var(--space-2); margin-left: auto; }
@media (min-width: 900px) { .header-actions { order: 2; margin-left: 0; } .site-nav { margin-left: auto !important; } }
.header-actions .btn--outline { display: none; }
.header-phone { display: none; }
@media (min-width: 640px) { .header-phone { display: inline; } }
@media (min-width: 1180px) { .header-actions .btn--outline { display: inline-flex; } }

.site-nav {
  width: calc(100% + 2 * var(--gutter));
  order: 3;
  margin-inline: calc(-1 * var(--gutter));
  border-top: 1px solid var(--line);
}
.site-nav > ul {
  display: flex;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0 var(--space-3);
  overflow-x: auto;
  scrollbar-width: none;
}
.site-nav > ul::-webkit-scrollbar { display: none; }
.site-nav li { margin: 0; flex: 0 0 auto; }
.site-nav a,
.menu > summary {
  position: relative;
  font-family: var(--font-heading);
  font-weight: var(--weight-medium);
  font-size: var(--step--1);
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding-inline: var(--space-3);
  white-space: nowrap;
}
.site-nav > ul > li > a::after,
.menu > summary::before {
  content: "";
  position: absolute;
  left: var(--space-3);
  right: var(--space-3);
  bottom: 6px;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transition: transform var(--dur) var(--ease);
}
.site-nav a:hover, .menu > summary:hover { color: var(--brand); }
.site-nav a[aria-current="page"] { color: var(--brand); }
.site-nav > ul > li > a:hover::after,
.site-nav a[aria-current="page"]::after,
.menu[open] > summary::before { transform: scaleX(1); }

@media (min-width: 900px) {
  .site-nav { width: auto; order: 0; margin: 0; border: 0; }
  .site-nav > ul { overflow: visible; padding: 0; }
  .site-nav a, .menu > summary { font-size: var(--step-0); min-height: 60px; padding-inline: var(--space-3); }
  .site-nav > ul > li > a::after, .menu > summary::before { bottom: 12px; }
}

.menu { position: static; }
.menu > summary { cursor: pointer; list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.menu[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.menu__panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--panel);
  border-top: 3px solid var(--brand);
  box-shadow: 0 18px 30px -12px rgb(16 24 40 / 28%);
  padding: var(--space-3);
  z-index: var(--z-drawer);
}
.menu__panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.menu__panel li { margin: 0; }
.menu__panel a { display: flex; width: 100%; color: var(--text); font-family: var(--font-body); font-weight: var(--weight-body); font-size: var(--step--1); min-height: 42px; padding-inline: var(--space-3); border-left: 3px solid transparent; white-space: normal; }
.menu__panel a::after { display: none; }
.menu__panel a:hover { background: var(--bg-soft); color: var(--brand); border-left-color: var(--brand); }
.menu:not([open]) .menu__panel { display: none; }
@media (min-width: 900px) {
  .site-nav li:has(> .menu) { position: relative; }
  .menu__panel { left: 0; right: auto; width: 620px; }
}

/* ── hero — full-bleed photo, dark overlay, white type ──────────────────── */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 480px;
  padding-block: var(--hero-y);
  background-color: #1f1f1f;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  overflow: hidden;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgb(22 22 22 / 92%) 0%, rgb(22 22 22 / 80%) 45%, rgb(22 22 22 / 45%) 100%);
}
.hero__inner { position: relative; width: 100%; }
.hero h1 { color: #fff; font-size: var(--step-5); line-height: 1.08; max-width: 18ch; }
.hero .lede, .hero p { color: #fff; }
.hero .lede { max-width: 58ch; color: rgb(255 255 255 / 88%); }
.hero__eyebrow {
  display: inline-block;
  font-family: var(--font-label);
  font-weight: var(--weight-medium);
  font-size: var(--step--1);
  color: #fff;
  background: var(--brand-2-dark);
  padding: 4px 12px;
  margin-bottom: var(--space-4);
}
.hero__list { list-style: none; padding: 0; display: grid; gap: var(--space-3); margin-block: var(--space-5); max-width: 62ch; }
.hero__list li { display: flex; gap: var(--space-3); align-items: flex-start; margin: 0; }
.hero__list svg { flex: 0 0 auto; margin-top: 4px; color: #3fd3ae; }
.hero__stats { display: grid; gap: var(--space-4); margin-top: var(--space-5); }
@media (min-width: 640px) { .hero__stats { grid-template-columns: repeat(3, 1fr); } }
.hero__stats div { border-left: 3px solid var(--brand-2); padding-left: var(--space-4); }
.hero__stats strong { display: block; font-family: var(--font-heading); font-size: var(--step-2); color: #fff; }
.hero__stats span { font-size: var(--step--1); color: rgba(255,255,255,0.82); }
.hero--short { min-height: 0; padding-block: var(--space-8); }

/* ── buttons — square, 20/40, red primary, teal hover ───────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: calc(20px - 2px) calc(40px - 2px);
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: var(--step-0);
  font-weight: var(--weight-semibold);
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  min-height: 48px;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.btn--primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.btn--primary:hover { background: var(--brand-2); border-color: var(--muted-green); color: var(--on-brand); }
.btn--call { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.btn--call:hover { background: var(--brand-2); border-color: var(--muted-green); color: var(--on-brand); }
.btn--green { background: var(--brand-2-strong); border-color: var(--brand-2-strong); color: #fff; }
.btn--green:hover { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.btn--outline { background: var(--bg-tint); border: 3px solid var(--brand); color: var(--brand-strong); padding: calc(20px - 3px) calc(40px - 3px); }
.btn--outline:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn--light { background: #fff; border-color: #fff; color: var(--brand); }
.btn--light:hover { background: var(--bg-tint); border-color: var(--bg-tint); color: var(--brand-strong); }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,0.7); color: #fff; }
.btn--ghost:hover { background: #fff; border-color: #fff; color: var(--text); }
.btn--sm { padding: 0.55em 1.1em; font-size: var(--step--1); min-height: 40px; border-width: 2px; }
.btn--block { width: 100%; }
.btn:hover { box-shadow: var(--shadow-3); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; box-shadow: none; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.35em 0.85em;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-label);
  font-size: var(--step--1);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge--brand { background: var(--brand); color: #fff; }
.badge--teal { background: var(--brand-2); color: #fff; }

/* ── trust band ─────────────────────────────────────────────────────────── */

.trust { background: var(--bg-tint); padding-block: var(--space-6); }
.trust ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-5); }
@media (min-width: 640px) { .trust ul { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .trust ul { grid-template-columns: repeat(5, 1fr); } }
.trust li { display: flex; gap: var(--space-3); align-items: flex-start; margin: 0; font-size: var(--step--1); color: var(--muted); }
.trust svg { flex: 0 0 auto; margin-top: 3px; color: var(--brand-2); }
.trust strong { display: block; font-family: var(--font-heading); font-size: var(--step-0); color: var(--text); }

/* ── cards with circular icon badges ────────────────────────────────────── */

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
}
.card h3 { margin-bottom: var(--space-2); }
.card p { color: var(--muted); font-size: var(--step--1); }
.card p:last-of-type { margin-bottom: var(--space-4); }
.card a { font-weight: var(--weight-medium); }
.card__icon {
  width: 72px; height: 72px;
  display: grid; place-items: center;
  border-radius: var(--radius-pill);
  background: var(--brand-2);
  color: #fff;
  margin-bottom: var(--space-4);
}
.card--link { text-decoration: none; color: inherit; transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.card--link:hover { border-color: var(--brand-2); box-shadow: var(--shadow-2); }
.card--link:hover h3 { color: var(--brand-2); }
.card--area { padding: var(--space-4); text-align: center; align-items: center; }
.card--area h3 { font-size: var(--step-1); margin: 0; }
.card--area a { text-decoration: none; }
.card--accent .card__icon { background: var(--brand); }

/* ── steps ──────────────────────────────────────────────────────────────── */

.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: var(--space-5); }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { margin: 0; counter-increment: step; background: var(--panel); border: 1px solid var(--line); padding: var(--space-5); }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 54px; height: 54px;
  border-radius: var(--radius-pill);
  background: var(--brand-2);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  font-size: var(--step-1);
  margin-bottom: var(--space-3);
}
.steps h3 { font-size: var(--step-1); }
.steps p { font-size: var(--step--1); color: var(--muted); margin: 0; }

/* ── callouts ───────────────────────────────────────────────────────────── */

.callout { border-left: 4px solid var(--brand-2); background: var(--brand-2-soft); padding: var(--space-5); }
.callout--warn { border-left-color: var(--accent); background: #fff5ef; }
.callout--brand { border-left-color: var(--brand); background: var(--brand-soft); }
.callout h3 { font-size: var(--step-1); color: var(--brand-strong); }
.callout p:last-child { margin-bottom: 0; }

.placeholder {
  border: 1px dashed var(--line-strong);
  background: repeating-linear-gradient(135deg, var(--bg-soft), var(--bg-soft) 10px, #fff 10px, #fff 20px);
  padding: var(--space-5);
  color: var(--muted);
  font-size: var(--step--1);
}
.placeholder strong { color: var(--text); }

/* ── breadcrumbs ────────────────────────────────────────────────────────── */

.breadcrumbs { padding-block: var(--space-3); font-size: var(--step--1); background: var(--bg-tint); }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 var(--space-2); }
.breadcrumbs li { margin: 0; display: flex; align-items: center; gap: var(--space-2); color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; color: var(--line-strong); }
.breadcrumbs a { display: inline-block; padding-block: 6px; color: var(--brand-strong); }

/* ── content blocks ─────────────────────────────────────────────────────── */

.prose { max-width: 72ch; }
.prose h2 { margin-top: var(--space-7); }
.prose h3 { margin-top: var(--space-6); }
.prose > *:first-child { margin-top: 0; }

.checklist { list-style: none; padding: 0; margin: 0 0 var(--space-5); display: grid; gap: var(--space-3); }
.checklist li { display: flex; gap: var(--space-3); align-items: flex-start; margin: 0; }
.checklist svg { flex: 0 0 auto; margin-top: 4px; color: var(--brand-2); }

.pill-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.pill-list li { margin: 0; }
.pill { display: inline-block; background: var(--panel); border: 1px solid var(--line); padding: 0.3em 0.9em; font-size: var(--step--1); }
.pill--zip { background: var(--brand-2-soft); border-color: transparent; color: var(--brand-2-strong); }

/* ── area filter ────────────────────────────────────────────────────────── */

.area-filter { max-width: 460px; margin-bottom: var(--space-5); }
.area-filter label { display: block; font-family: var(--font-heading); font-weight: var(--weight-semibold); font-size: var(--step--1); margin-bottom: var(--space-2); }
.area-empty { color: var(--muted); font-size: var(--step--1); }
[data-area-hidden] { display: none !important; }

/* ── FAQ accordion ──────────────────────────────────────────────────────── */

.faq { display: grid; gap: 2px; max-width: 80ch; border: 1px solid var(--line); background: var(--line); }
.faq details { background: var(--panel); }
.faq summary {
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: var(--weight-semibold);
  font-size: var(--step-1);
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-4) var(--space-5);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  display: grid; place-items: center;
  width: 34px; height: 34px; flex: 0 0 auto;
  border-radius: var(--radius-pill);
  background: var(--brand-2);
  color: #fff;
  font-family: var(--font-body);
  font-weight: var(--weight-bold);
  line-height: 1;
}
.faq details[open] summary { color: var(--brand); }
.faq details[open] summary::after { content: "–"; background: var(--muted-green); }
.faq__body { padding: 0 var(--space-5) var(--space-4); }
.faq__body p { font-size: var(--step--1); color: var(--muted); margin-bottom: var(--space-3); }

/* ── CTA band ───────────────────────────────────────────────────────────── */

.cta-band {
  position: relative;
  isolation: isolate;
  background-color: var(--brand-strong);
  background-size: cover;
  background-position: center;
  color: #fff;
  padding-block: var(--section-y);
  overflow: hidden;
}
.cta-band__overlay { position: absolute; inset: 0; background: #262626; opacity: 0.88; mix-blend-mode: multiply; z-index: -1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.9); max-width: 60ch; }
.cta-band__grid { display: grid; gap: var(--space-5); align-items: center; }
@media (min-width: 900px) { .cta-band__grid { grid-template-columns: 1.3fr 1fr; } .cta-band__actions { justify-content: flex-end; } }

.contact-strip { display: grid; gap: var(--space-4); margin-top: var(--space-5); }
@media (min-width: 640px) { .contact-strip { grid-template-columns: repeat(3, 1fr); } }
.contact-strip div { background: rgb(255 255 255 / 10%); border-left: 3px solid var(--brand-2); padding: var(--space-4); }
.contact-strip dt { font-family: var(--font-label); font-size: var(--step--1); text-transform: uppercase; letter-spacing: var(--tracking-wide); color: rgba(255,255,255,0.85); }
.contact-strip dd { margin: var(--space-1) 0 0; font-weight: var(--weight-medium); color: #fff; }

/* ── gallery ────────────────────────────────────────────────────────────── */

.gallery { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.gallery figure { margin: 0; background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption { padding: var(--space-3) var(--space-4); font-size: var(--step--1); }
.gallery button { border: 0; padding: 0; background: none; cursor: zoom-in; display: block; width: 100%; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); }
.lightbox::backdrop { background: rgb(4 16 32 / 88%); }
.lightbox img { width: 100%; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); margin-top: var(--space-3); color: #fff; }
.lightbox__bar p { color: #dbe6f2; font-size: var(--step--1); margin: 0; }

/* ── forms ──────────────────────────────────────────────────────────────── */

.form { display: grid; gap: var(--space-4); }
@media (min-width: 640px) { .form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); } }
.field { display: grid; gap: var(--space-2); }
.field label { font-family: var(--font-heading); font-weight: var(--weight-semibold); font-size: var(--step--1); }
.field .hint { font-size: var(--step--2); color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], select, textarea {
  font: inherit;
  font-size: var(--step-0);
  color: var(--text);
  background: var(--panel);
  border: 2px solid var(--line-strong);
  padding: 0.65em 0.8em;
  width: 100%;
  min-height: 48px;
}
textarea { min-height: 9rem; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: var(--brand-2); }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--brand); }
.field--check { display: flex; gap: var(--space-3); align-items: flex-start; }
.field--check input { width: 1.25rem; height: 1.25rem; min-height: 0; margin-top: 2px; flex: 0 0 auto; }
.field--check label { font-weight: var(--weight-body); font-family: var(--font-body); font-size: var(--step--1); }
.req { color: var(--danger); font-weight: var(--weight-bold); }
.form__note { font-size: var(--step--1); color: var(--muted); }
.form__status { padding: var(--space-4); font-size: var(--step--1); border: 2px solid var(--line-strong); background: var(--bg-soft); }
.form__status[data-state="error"] { border-color: var(--accent); background: #fff5ef; }
.form__status[data-state="ok"] { border-color: var(--brand-2); background: var(--brand-2-soft); }
.form__status h3 { font-size: var(--step-0); margin-bottom: var(--space-2); }
.form__status[hidden] { display: none; }

/* ── footer — dark red block over a dark green bottom bar ───────────────── */

.site-footer { background: var(--brand-strong); color: rgba(255,255,255,0.86); font-size: var(--step--1); line-height: 1.6; }
.site-footer__main { padding-block: var(--space-8) var(--space-7); }
.site-footer h2, .site-footer h3 {
  font-family: var(--font-heading);
  font-weight: var(--weight-semibold);
  color: #fff;
  font-size: var(--step-1);
  line-height: 1.3;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  position: relative;
}
.site-footer h2::after, .site-footer h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 3px; background: #fff; opacity: 0.9; }
.site-footer a { color: rgba(255,255,255,0.86); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; padding-block: 3px; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0 0 var(--space-4); display: grid; gap: 2px; }
.site-footer li { margin: 0; }
.site-footer li > svg { display: inline-block; vertical-align: -2px; margin-right: 6px; }
.site-footer .social span { opacity: 0.6; font-size: var(--step--2); }
.site-footer .btn--call { background: #fff; border-color: #fff; color: var(--brand-strong); text-decoration: none; }
.site-footer .btn--call:hover { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.site-footer__grid { display: grid; gap: var(--space-6); }
@media (min-width: 640px) { .site-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .site-footer__grid { grid-template-columns: 1.2fr 1fr 1.7fr 1.45fr; gap: var(--space-6) var(--space-7); } }
.site-footer__area-links { columns: 2; column-gap: var(--space-4); display: block !important; }
@media (min-width: 1000px) { .site-footer__area-links { columns: 3; } }
.site-footer__area-links li { break-inside: avoid; }
.site-footer__bottom { background: var(--brand-2-strong); padding-block: var(--space-4); color: rgba(255,255,255,0.9); }
.site-footer__bottom .wrap { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); justify-content: space-between; align-items: center; }
.site-footer__bottom p { margin: 0; font-size: var(--step--1); }
.site-footer__bottom a { color: #fff; }

/* ── utilities ──────────────────────────────────────────────────────────── */

.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.nowrap { white-space: nowrap; }
.small { font-size: var(--step--1); }
.muted { color: var(--muted); }
.stretch-link { margin-top: auto; }
.lead-in { font-size: var(--step-1); color: var(--muted); max-width: 68ch; }

/* ── tap targets ────────────────────────────────────────────────────────────
   WCAG 2.2 AA "Target Size (Minimum)" asks for 24 × 24 CSS px; these rules go
   past that for the links people actually tap on a phone.
   ------------------------------------------------------------------------- */

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: var(--z-modal);
  background: var(--brand); color: #fff;
  padding: var(--space-3) var(--space-4);
  display: inline-flex; align-items: center; min-height: 44px;
}
.skip-link:focus { left: 0; }
.breadcrumbs a { display: inline-block; padding-block: 6px; }
#back-to-top { display: inline-block; padding-block: 6px; }

/* header quote button: white fill reads cleaner than the tinted default */
.header-actions .btn--outline { background: #fff; border-width: 2px; }
.header-actions .btn--outline:hover { background: var(--brand); color: #fff; }
.site-footer li:has(> svg) { display: flex; align-items: flex-start; gap: 8px; overflow-wrap: anywhere; }
.site-footer li:has(> svg) > svg { margin: 7px 0 0; flex: 0 0 auto; }
.site-footer li:has(> svg) > a { padding-block: 3px 0; }

/* outline buttons sitting on a dark photo hero switch to a white outline */
.hero .btn--outline { background: transparent; border: 2px solid #fff; color: #fff; padding: calc(20px - 2px) calc(40px - 2px); }
.hero .btn--outline:hover { background: #fff; color: var(--brand-strong); }
.hero .btn { max-width: 100%; white-space: normal; overflow-wrap: anywhere; text-align: center; }

/* ── mobile call bar — fixed to the bottom on phones ────────────────────── */

.mobile-cta { display: none; }
@media (max-width: 767px) {
  .mobile-cta {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: var(--z-drawer);
    display: grid;
    grid-template-columns: 1fr auto;
    box-shadow: 0 -6px 18px -6px rgb(0 0 0 / 30%);
    padding-bottom: env(safe-area-inset-bottom, 0);
    background: var(--brand);
  }
  .mobile-cta a {
    display: flex; align-items: center; justify-content: center; gap: var(--space-2);
    min-height: 56px; padding-inline: var(--space-4);
    font-family: var(--font-heading); font-weight: var(--weight-semibold); font-size: var(--step-0);
    text-decoration: none; color: #fff;
  }
  .mobile-cta__call { background: var(--brand); }
  .mobile-cta__quote { background: var(--brand-2-strong); }
  body { padding-bottom: 56px; }
}
@media print { .mobile-cta { display: none !important; } }
@media (max-width: 767px) { .mobile-cta a { white-space: nowrap; } }

/* long e-mail addresses must wrap inside narrow cards */
.checklist li > span, .card, .sidebar-layout > * { min-width: 0; overflow-wrap: anywhere; }
.topbar__hours { opacity: 0.9; }
@media (max-width: 899px) { .topbar__hours { display: none; } }

/* ── customer reviews ───────────────────────────────────────────────────── */

.section--reviews { background: var(--brand-2-soft); }
.reviews { display: grid; gap: var(--space-5); }
@media (min-width: 720px) { .reviews { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .reviews { grid-template-columns: repeat(3, 1fr); } }
.review {
  position: relative;
  margin: 0;
  display: flex;
  flex-direction: column;
  padding: var(--space-6) var(--space-5) var(--space-5);
  background: var(--bg);
  border: 1px solid var(--line);
  border-top: 4px solid var(--brand-2);
}
.review__mark { color: var(--brand); margin-bottom: var(--space-3); }
.review blockquote { margin: 0 0 var(--space-5); padding: 0; border: 0; color: var(--text); flex: 1; }
.review blockquote p { font-size: var(--step-0); line-height: 1.65; margin: 0; }
.review figcaption { display: grid; gap: 2px; padding-top: var(--space-4); border-top: 1px solid var(--line); font-size: var(--step--1); color: var(--muted); }
.review figcaption strong { font-family: var(--font-heading); font-size: var(--step-0); color: var(--text); }
.review__topic { color: var(--brand-2-dark); font-weight: var(--weight-medium); }
.reviews__more { text-align: center; margin: var(--space-6) 0 0; max-width: none; }
.section--reviews .btn--outline { background: #fff; }

/* table of contents */
.toc { border: 1px solid var(--line); border-left: 4px solid var(--brand); background: var(--bg); padding: var(--space-4) var(--space-5); }
.toc__title { font-size: var(--step-1); color: var(--text); margin-bottom: var(--space-2); }
.toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px var(--space-5); }
@media (min-width: 720px) { .toc ul { grid-template-columns: repeat(2, 1fr); } }
.toc li { margin: 0; }
.toc a { display: inline-flex; min-height: 36px; align-items: center; }

/* click-to-load map */
.map-embed { position: relative; margin-bottom: var(--space-3); border: 1px solid var(--line); background: #fff; aspect-ratio: 4 / 3; }
.map-embed img { width: 100%; height: 100%; object-fit: contain; }
.map-embed__btn { position: absolute; left: 50%; bottom: var(--space-4); transform: translateX(-50%); }
.map-embed iframe { display: block; width: 100%; height: 100%; border: 0; }

/* social icons — top bar and footer */
.topbar__social { gap: var(--space-1); }
.topbar__social a { justify-content: center; width: 32px; min-height: 32px; border-radius: var(--radius-pill); }
.topbar__social a:hover { background: rgb(255 255 255 / 18%); text-decoration: none; }
.site-footer ul.social { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-4); }
.site-footer ul.social a { justify-content: center; width: 40px; height: 40px; padding: 0; border-radius: var(--radius-pill); background: rgb(255 255 255 / 12%); color: #fff; }
.site-footer ul.social a:hover { background: #fff; color: var(--brand-strong); text-decoration: none; }
