/* ============================================================================
   home.css — home page sections only (loaded by index.html after styles.css).

   Section order follows the reference site: photo hero with a phone callout,
   intro with figures, four-step process, why-choose-us, services grid, service
   areas, problems we solve, emergency band, reviews, FAQ, location.
   All colours come from tokens.css.
   ========================================================================= */

/* ── shared pieces ──────────────────────────────────────────────────────── */

.h-split { display: grid; gap: var(--space-7); align-items: center; }
@media (min-width: 960px) {
  .h-split { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .h-split--rev > :first-child { order: 0; }
}

.h-badge {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-pill);
  background: var(--brand-2);
  color: #fff;
}
.h-badge svg { width: 28px; height: 28px; }
.h-badge--sm { width: 46px; height: 46px; }
.h-badge--sm svg { width: 22px; height: 22px; }

.h-photo { position: relative; margin: 0; }
.h-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
/* offset teal block behind the photo — the one decorative device, used twice */
.h-photo--frame { padding: 0 var(--space-5) var(--space-5) 0; }
.h-photo--frame::before {
  content: "";
  position: absolute;
  inset: var(--space-5) 0 0 var(--space-5);
  background: var(--brand-2);
  z-index: 0;
}
.h-photo--frame img { position: relative; z-index: 1; }

.h-photo--badge { padding-bottom: var(--space-6); }
.h-photo__badge {
  position: absolute;
  right: var(--space-5);
  bottom: 0;
  display: grid;
  gap: 2px;
  padding: var(--space-4) var(--space-5);
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-3);
  margin: 0;
  text-align: center;
}
.h-photo__badge strong { font-family: var(--font-heading); font-size: var(--step-4); line-height: 1; }
.h-photo__badge span { font-size: var(--step--1); }

.h-link { display: inline-flex; align-items: center; gap: var(--space-2); font-family: var(--font-heading); font-weight: var(--weight-semibold); text-decoration: none; }
.h-link:hover { text-decoration: underline; }

/* ── hero ───────────────────────────────────────────────────────────────── */

.h-hero { min-height: min(760px, 88vh); background-position: center 40%; }
.h-hero__grid { display: grid; gap: var(--space-7); align-items: center; }
@media (min-width: 1040px) { .h-hero__grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr); gap: var(--space-8); } }
.h-hero h1 { font-size: clamp(2.2rem, 1.3rem + 3vw, 3.8rem); max-width: 20ch; margin-bottom: var(--space-4); }
.h-hero .lede { margin-bottom: var(--space-6); }
.h-hero__actions { margin-bottom: var(--space-6); }

.h-hero__phone {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  color: #fff;
  text-decoration: none;
  padding-right: var(--space-4);
}
.h-hero__phone-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: var(--radius-pill);
  border: 2px solid rgb(255 255 255 / 55%);
  background: rgb(255 255 255 / 8%);
}
.h-hero__phone small { display: block; font-size: var(--step--1); color: rgb(255 255 255 / 78%); }
.h-hero__phone strong { display: block; font-family: var(--font-heading); font-size: var(--step-3); line-height: 1.1; }
.h-hero__phone:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.h-hero__phone:hover .h-hero__phone-icon { background: var(--brand); border-color: var(--brand); }

.h-hero__card {
  list-style: none;
  margin: 0;
  padding: var(--space-5) var(--space-6);
  display: grid;
  gap: 0;
  background: #fff;
  color: var(--text);
  border-top: 5px solid var(--brand);
  box-shadow: 0 30px 60px -20px rgb(0 0 0 / 55%);
}
.h-hero__card li { display: flex; gap: var(--space-4); align-items: flex-start; margin: 0; padding-block: var(--space-4); }
.h-hero__card li + li { border-top: 1px solid var(--line); }
.h-hero__card svg { flex: 0 0 auto; color: var(--brand-2-dark); margin-top: 2px; }
.h-hero__card span { font-size: var(--step--1); color: var(--muted); line-height: 1.55; }
.h-hero__card strong { display: block; font-family: var(--font-heading); font-weight: var(--weight-semibold); font-size: var(--step-0); color: var(--text); margin-bottom: 2px; }

/* ── intro + figures ────────────────────────────────────────────────────── */

.h-figures {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin: var(--space-6) 0;
}
@media (min-width: 640px) { .h-figures { grid-template-columns: repeat(4, 1fr); } }
.h-figures div { display: flex; flex-direction: column-reverse; justify-content: flex-end; background: var(--bg); padding: var(--space-4); text-align: center; }
.h-figures dd { margin: 0; font-family: var(--font-heading); font-weight: var(--weight-semibold); font-size: var(--step-4); line-height: 1.1; color: var(--brand); }
.h-figures dt { font-size: var(--step--1); color: var(--muted); }

/* ── process ────────────────────────────────────────────────────────────── */

.h-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-5); counter-reset: none; }
@media (min-width: 640px) { .h-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .h-steps { grid-template-columns: repeat(4, 1fr); } }
.h-step {
  position: relative;
  margin: 0;
  padding: var(--space-7) var(--space-5) var(--space-5);
  background: var(--bg);
  border: 1px solid var(--line);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.h-step__num {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-pill);
  background: var(--brand);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  font-size: var(--step-2);
  box-shadow: 0 0 0 6px var(--bg-soft);
}
.h-steps { padding-top: 28px; row-gap: calc(var(--space-5) + 28px); }
.h-step h3 { font-size: var(--step-1); color: var(--text); }
.h-step p { font-size: var(--step--1); color: var(--muted); flex: 1; }
.h-step__call {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-weight: var(--weight-semibold);
  font-size: var(--step--1);
  color: var(--brand-strong);
  text-decoration: none;
  padding: var(--space-2) var(--space-4);
  border: 2px solid var(--brand);
  min-height: 44px;
}
.h-step__call:hover { background: var(--brand); color: #fff; }

/* ── why choose us ──────────────────────────────────────────────────────── */

.h-features { list-style: none; margin: var(--space-6) 0; padding: 0; display: grid; gap: var(--space-6) var(--space-5); }
@media (min-width: 640px) { .h-features { grid-template-columns: 1fr 1fr; } }
.h-features li { display: flex; gap: var(--space-4); margin: 0; align-items: flex-start; }
.h-features h3 { font-size: var(--step-1); color: var(--text); margin-bottom: var(--space-1); }
.h-features p { font-size: var(--step--1); color: var(--muted); margin: 0; }
.h-note { border-left: 4px solid var(--brand); padding-left: var(--space-4); color: var(--muted); margin: 0; }

/* ── services ───────────────────────────────────────────────────────────── */

.h-services { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
@media (min-width: 640px) { .h-services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .h-services { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .h-services { grid-template-columns: repeat(4, 1fr); } }
.h-service {
  position: relative;
  margin: 0;
  padding: var(--space-6) var(--space-5) var(--space-5);
  background: var(--bg);
  border: 1px solid var(--line);
  border-bottom: 4px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.h-service .h-badge { margin-bottom: var(--space-4); transition: background-color var(--dur) var(--ease); }
.h-service h3 { font-size: var(--step-1); line-height: 1.3; margin-bottom: var(--space-2); color: var(--text); }
.h-service h3 a { color: inherit; text-decoration: none; }
.h-service h3 a::after { content: ""; position: absolute; inset: 0; }
.h-service p { font-size: var(--step--1); color: var(--muted); line-height: 1.6; flex: 1; margin-bottom: var(--space-4); }
.h-service__more { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-heading); font-weight: var(--weight-semibold); font-size: var(--step--1); color: var(--brand-strong); }
.h-service:hover { border-bottom-color: var(--brand); box-shadow: var(--shadow-3); }
.h-service:hover .h-badge { background: var(--brand); }
.h-service:hover h3 { color: var(--brand-strong); }
.h-service:focus-within { outline: 3px solid var(--brand-2); outline-offset: 2px; }
.h-service h3 a:focus-visible { outline: none; }

/* ── service areas ──────────────────────────────────────────────────────── */

.h-areas { background: var(--brand-2-strong); color: #fff; }
.h-areas h2 { color: #fff; }
.h-areas p { color: rgb(255 255 255 / 85%); }
.h-areas__grid { display: grid; gap: var(--space-7); align-items: center; }
@media (min-width: 960px) { .h-areas__grid { grid-template-columns: 0.85fr 1.15fr; } }
.h-areas__search { display: flex; margin: var(--space-5) 0 var(--space-4); max-width: 440px; }
.h-areas__search input { flex: 1; min-width: 0; min-height: 52px; padding: 0 var(--space-4); border: 0; font: inherit; color: var(--text); }
.h-areas__search .btn { padding-inline: var(--space-5); }
.h-areas .h-link { color: #fff; }
.h-cities { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-2); }
@media (min-width: 640px) { .h-cities { grid-template-columns: repeat(3, 1fr); } }
.h-cities li { margin: 0; }
.h-cities a {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 52px;
  padding: var(--space-2) var(--space-4);
  background: rgb(255 255 255 / 8%);
  border: 1px solid rgb(255 255 255 / 18%);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: var(--weight-medium);
  text-decoration: none;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.h-cities svg { flex: 0 0 auto; color: #7fe3cd; }
.h-cities a:hover { background: #fff; color: var(--brand-strong); border-color: #fff; }
.h-cities a:hover svg { color: var(--brand); }

/* ── problems we solve ──────────────────────────────────────────────────── */

.h-problems__list { list-style: none; margin: var(--space-5) 0 var(--space-6); padding: 0; display: grid; gap: var(--space-5); }
@media (min-width: 640px) { .h-problems__list { grid-template-columns: 1fr 1fr; } }
.h-problems__list li { display: flex; gap: var(--space-3); margin: 0; align-items: flex-start; }
.h-problems__list h3 { font-size: var(--step-0); color: var(--text); margin-bottom: 2px; }
.h-problems__list p { font-size: var(--step--1); color: var(--muted); margin: 0; line-height: 1.55; }

/* ── insurance ──────────────────────────────────────────────────────────── */

.h-claims__grid { display: grid; gap: var(--space-6); align-items: center; padding: var(--space-7) var(--space-6); background: var(--bg-soft); border-left: 6px solid var(--brand); }
@media (min-width: 960px) { .h-claims__grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); padding: var(--space-8); } }
.h-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.h-checks li { display: flex; gap: var(--space-3); align-items: flex-start; margin: 0; padding: var(--space-4); background: var(--bg); border: 1px solid var(--line); }
.h-checks svg { flex: 0 0 auto; color: var(--brand-2-dark); margin-top: 3px; }

/* ── emergency band ─────────────────────────────────────────────────────── */

.h-emergency {
  position: relative;
  isolation: isolate;
  padding-block: clamp(4rem, 3rem + 5vw, 7rem);
  background-color: #1f1f1f;
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
}
.h-emergency::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgb(184 33 5 / 88%), rgb(120 20 5 / 92%)); }
.h-emergency__inner { max-width: 820px; }
.h-emergency h2 { color: #fff; font-size: var(--step-4); }
.h-emergency p { color: rgb(255 255 255 / 90%); margin-inline: auto; margin-bottom: var(--space-6); font-size: var(--step-1); }
.h-emergency .btn--call { background: #fff; border-color: #fff; color: var(--brand-strong); font-size: var(--step-1); }
.h-emergency .btn--call:hover { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }

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

.h-reviews__placeholder { max-width: 820px; margin-inline: auto; }

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

.h-faq__grid { display: grid; gap: var(--space-6); align-items: start; }
@media (min-width: 960px) { .h-faq__grid { grid-template-columns: 0.8fr 1.2fr; gap: var(--space-8); } .h-faq__intro { position: sticky; top: 110px; } }
.h-faq__list { max-width: none; }
.h-callcard {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-5);
  padding: var(--space-5);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand-2);
  text-decoration: none;
  color: var(--text);
}
.h-callcard small { display: block; color: var(--muted); font-size: var(--step--1); }
.h-callcard strong { display: block; font-family: var(--font-heading); font-size: var(--step-2); color: var(--brand-strong); }
.h-callcard:hover { border-left-color: var(--brand); }
.h-callcard:hover .h-badge { background: var(--brand); }

/* ── location ───────────────────────────────────────────────────────────── */

.h-location__grid { display: grid; gap: var(--space-7); align-items: center; }
@media (min-width: 960px) { .h-location__grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); } }
.h-map { position: relative; display: block; background: #fff; border: 1px solid var(--line); }
.h-map img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; }
.h-map__label {
  position: absolute;
  left: var(--space-4);
  bottom: var(--space-4);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--brand);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: var(--weight-semibold);
  font-size: var(--step--1);
}
.h-map:hover .h-map__label { background: var(--brand-2-dark); }
.h-contact { list-style: none; margin: var(--space-5) 0 var(--space-6); padding: 0; display: grid; gap: var(--space-4); }
@media (min-width: 640px) { .h-contact { grid-template-columns: 1fr 1fr; } }
.h-contact li { display: flex; gap: var(--space-3); align-items: flex-start; margin: 0; min-width: 0; }
.h-contact h3 { font-size: var(--step--1); color: var(--muted); font-family: var(--font-body); font-weight: var(--weight-medium); text-transform: none; margin: 0; }
.h-contact a, .h-contact p { font-family: var(--font-heading); font-weight: var(--weight-medium); color: var(--text); text-decoration: none; overflow-wrap: anywhere; margin: 0; font-size: var(--step-0); line-height: 1.4; }
.h-contact a:hover { color: var(--brand); text-decoration: underline; }

/* the outline button reads better on white here than on the tinted default */
.h-location .btn--outline { background: transparent; }
@media (min-width: 640px) { .h-contact li:nth-child(2) { grid-column: 1 / -1; order: 3; } .h-contact li:nth-child(3) { order: 1; } .h-contact li:nth-child(1) { order: 0; } .h-contact li:nth-child(4) { order: 2; } }
@media (max-width: 639px) { .h-cities li:nth-child(n+15) { display: none; } }
