/* Faith Home Inspections: the colors of his badge logo (build spec 2026-11-08, section 3). A white header so the logo
   shows as drawn, deep navy heads and bands, white pages with a cool light band, and teal for buttons and check marks.
   Teal on navy is too faint (2.4:1), so on navy the light teal takes its place (6.7:1).
   The layout started from Shinier Detailing's approved templates; the colors, type weights and header are Faith's. */

@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dmsans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dmsans-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --navy: #102b57;
  --navy-2: #163565;
  --navy-3: #1d3f74;
  --ink: #0f2346;
  --text: #2a3442;
  --muted: #556173;
  --mist: #f2f6fa;
  --haze: #bfcddd;
  --line-dark: rgba(242, 246, 250, 0.16);
  --line: #dbe3ea;
  --teal: #1f7175;
  --teal-hover: #185c60;
  --teal-text: #1a6266;
  --teal-light: #5fc4bc;
  --teal-light-hover: #7fd3cc;
  --link: #1f7175;
  --band: #eef3f6;
  --white: #ffffff;
  --radius: 6px;
  --radius-sm: 3px;
  --wrap: 76rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1.5rem; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--teal-text); }
h1, h2 { margin: 0 0 0.55em; color: var(--ink); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 1.25rem + 2.1vw, 3.1rem); }
h3 { color: var(--ink); }
p { margin: 0 0 1em; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--teal-text); outline-offset: 3px; }
:where(.page-head, .hero, .section--navy, .aside-card, .closing, .site-footer, .rating, .call-bar) :focus-visible { outline-color: var(--teal-light); }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999rem; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; padding: 0.6rem 1rem; border-radius: var(--radius-sm); background: var(--teal); color: var(--navy); }

.icon { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.nowrap { white-space: nowrap; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Buttons: white words on teal (5.7:1) on white pages; on navy, navy words on the light teal (6.7:1), or a fine light
   outline. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.75rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.975rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.button--teal { background: var(--teal); color: var(--white); }
.button--teal:hover { background: var(--teal-hover); color: var(--white); }
:where(.page-head, .hero, .section--navy, .closing, .site-footer, .aside-card, .call-bar) .button--teal { background: var(--teal-light); color: var(--navy); }
:where(.page-head, .hero, .section--navy, .closing, .site-footer, .aside-card, .call-bar) .button--teal:hover { background: var(--teal-light-hover); color: var(--navy); }
.button--ghost { border-color: rgba(242, 246, 250, 0.45); color: var(--mist); }
.button--ghost:hover { border-color: var(--mist); background: rgba(242, 246, 250, 0.08); color: var(--mist); }
.button--outline { border-color: var(--ink); color: var(--ink); }
.button--outline:hover { background: var(--ink); color: var(--mist); }
.button--large { min-height: 3.35rem; padding: 0.9rem 1.6rem; font-size: 1.025rem; }

/* The rule under a hero's first line: the light teal on navy, the teal elsewhere. */
.pinstripe { display: block; width: 3.5rem; height: 3px; margin: 0 0 1.4rem; border-radius: 2px; background: var(--teal); }
:where(.page-head, .hero, .section--navy, .closing) .pinstripe { background: var(--teal-light); }

/* Header: white, so the logo shows in its own navy and teal. The logo is Andy's full badge, whole, sized so "FAITH" and
   "HOME INSPECTIONS" read (Eric 11/8: "Yes, full logo"); scripts/badge-copies.mjs cuts it. */
.site-header { position: relative; z-index: 10; background: var(--white); color: var(--ink); border-bottom: 1px solid var(--line); }
.site-header__bar { display: flex; align-items: center; gap: 0.75rem; min-height: 5.25rem; }
.brand { display: flex; flex: none; align-items: center; margin-right: auto; text-decoration: none; }
.brand__badge { display: block; width: 4.5rem; height: 4.5rem; }
.site-nav { display: none; }
.site-nav a {
  padding: 0.5rem 0.7rem;
  color: var(--ink);
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--teal-text); text-decoration: underline; text-decoration-color: var(--teal); text-decoration-thickness: 2px; text-underline-offset: 0.45em; }
.site-header__call { min-height: 2.75rem; padding-inline: 1rem; }
.call-long { display: none; }
.menu { position: relative; }
.menu__toggle {
  display: block;
  padding: 0.65rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}
.menu__toggle::-webkit-details-marker { display: none; }
.menu__panel {
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  display: grid;
  min-width: 15rem;
  padding: 0.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 24px 48px -24px rgba(15, 35, 70, 0.45);
}
.menu__panel a { padding: 0.75rem 0.9rem; border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; }
.menu__panel a:hover { background: var(--band); color: var(--ink); }

@media (min-width: 30rem) {
  .call-long { display: inline; }
  .call-short { display: none; }
}
@media (min-width: 48rem) {
  .brand__badge { width: 6.5rem; height: 6.5rem; }
  .site-header__bar { min-height: 7.25rem; gap: 1rem; }
}
@media (min-width: 72rem) {
  .site-nav { display: flex; gap: 0.1rem; margin-left: auto; }
  .brand { margin-right: 0; }
  .menu { display: none; }
  /* On wide screens the page's own request button is the one filled button in view; the header's call is outlined. */
  .site-header__call { border-color: var(--teal); background: transparent; color: var(--teal-text); }
  .site-header__call:hover { border-color: var(--teal-hover); background: var(--band); color: var(--teal-hover); }
}

/* The navy head of every webpage: the home page's hero and the inner webpages' subhead. */
.page-head { position: relative; overflow: hidden; background: var(--navy); color: var(--mist); }

/* Hero: the words on navy, the house at full height against the right edge of the screen. Phones and tablets
   take the photo first, then the words, so the two never share a box. */
.hero__grid { display: grid; }
.hero__photo { order: -1; margin: 0; }
.hero__photo picture, .hero__photo img { display: block; width: 100%; height: 100%; }
.hero__photo img { aspect-ratio: 16 / 11; object-fit: cover; object-position: 50% 35%; }
.hero__words { padding: clamp(2.25rem, 6vw, 3.25rem) var(--gutter) clamp(2.75rem, 7vw, 3.75rem); max-width: 44rem; }
.hero__title { margin: 0; color: var(--mist); font-size: clamp(2.15rem, 1.3rem + 2.6vw, 3.5rem); line-height: 1.08; letter-spacing: -0.025em; }
.hero__lede { max-width: 34rem; margin: 1.4rem 0 2rem; color: var(--haze); font-size: clamp(1.08rem, 1rem + 0.35vw, 1.22rem); line-height: 1.65; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero__rating { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; margin: 1.75rem 0 0; color: var(--haze); font-size: 0.95rem; }
.hero__stars { display: inline-flex; gap: 0.15rem; color: var(--teal-light); }
.hero__stars .icon { width: 1rem; height: 1rem; fill: currentColor; stroke: none; }
.hero__rating a { color: var(--mist); }
.hero__rating a:hover { color: var(--teal-light); }
@media (min-width: 48rem) {
  .hero__photo img { aspect-ratio: 16 / 10; object-position: 50% 36%; }
}
/* From laptops up, the photo starts at the middle of the screen, on the facts band's middle hairline, and is set a
   little closer so the house fills it. */
@media (min-width: 64rem) {
  .hero__grid {
    grid-template-columns: min(calc(var(--wrap) / 2), calc(50% - var(--gutter) / 2)) minmax(0, 1fr);
    min-height: clamp(34rem, 84svh, 52rem);
    padding-left: max(var(--gutter), calc((100% - var(--wrap)) / 2));
  }
  .hero__words { align-self: center; padding: 3.5rem clamp(2rem, 4vw, 4.5rem) 3.75rem 0; }
  .hero__photo { order: 2; position: relative; overflow: hidden; }
  .hero__photo picture { position: absolute; inset: 0; }
  .hero__photo img { aspect-ratio: auto; object-position: 50% 15%; transform: scale(1.1); transform-origin: 50% 45%; }
}
/* Short laptop screens: a shorter hero, so the facts band still ends on the first screen. */
@media (min-width: 64rem) and (max-height: 57rem) {
  .hero__grid { min-height: clamp(34rem, calc(100svh - 12.5rem), 52rem); }
  .hero__words { padding-block: 2rem 2.25rem; }
  .hero__title { font-size: clamp(2.3rem, 6svh, 3.6rem); }
}
/* Where the two buttons can't sit side by side, they stack at one width. */
@media (min-width: 64rem) and (max-width: 79.99rem) {
  .hero__actions { display: inline-grid; }
}

/* Plain facts on navy, divided by hairlines. */
.facts { background: var(--navy); color: var(--haze); border-top: 1px solid var(--line-dark); }
.facts__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-block: 0; padding: 0; list-style: none; }
.facts__item { display: flex; align-items: flex-start; gap: 0.75rem; padding: 1.35rem 0.75rem 1.35rem 0; font-size: 0.925rem; line-height: 1.45; }
.facts__item:nth-child(n + 3) { border-top: 1px solid var(--line-dark); }
.facts__item .icon { width: 1.35rem; height: 1.35rem; margin-top: 0.1rem; color: var(--teal-light); }
.facts__item strong { display: block; color: var(--mist); font-size: 1rem; font-weight: 700; }
.facts__item span { text-wrap: balance; }
@media (min-width: 30rem) and (max-width: 79.99rem) {
  .facts__item:nth-child(even) { padding-left: 1.5rem; border-left: 1px solid var(--line-dark); }
}
@media (min-width: 80rem) {
  .facts__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .facts__item { padding: 1.75rem 1.5rem; border-left: 1px solid var(--line-dark); }
  .facts__item:first-child { padding-left: 0; border-left: 0; }
  .facts__item:nth-child(n + 3) { border-top: 0; }
}

/* Sections: the light band, white and navy. */
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section--band { background: var(--white); }
.section--navy { background: var(--navy); color: var(--haze); }
.section--navy h2, .section--navy h3 { color: var(--mist); }
.section--navy a { color: var(--mist); }
.section--navy a:hover { color: var(--teal-light); }
.section__intro { max-width: 46rem; margin-bottom: clamp(2.25rem, 5vw, 3.25rem); }
.section__intro p:last-child, .split__copy p:last-child { margin-bottom: 0; }
.split { display: grid; gap: clamp(2.25rem, 6vw, 5.5rem); align-items: center; }
.split__copy { max-width: 37rem; }
.split__photo { justify-self: start; width: min(100%, 28rem); margin: 0; }
.split__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.split__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
@media (min-width: 48rem) {
  .split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
  .split--reverse { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
  .split--reverse .split__photo { order: -1; justify-self: start; }
  .split:not(.split--reverse) .split__photo { justify-self: end; }
}
@media (min-width: 48rem) and (max-width: 69.99rem) {
  .split__actions { display: inline-grid; }
}

/* His line, set large. */
.statement h2 { font-size: clamp(2.1rem, 1.3rem + 2.6vw, 3.5rem); }

/* The steps on navy: a number on the pinline, a photo, the step. */
.steps__list { display: grid; gap: clamp(2.75rem, 6vw, 4rem); margin: 0; padding: 0; list-style: none; }
.step { display: grid; gap: 1.5rem; align-content: start; }
.step__photo { margin: 0; }
.step__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.step__num { display: flex; align-items: center; gap: 1rem; margin: 0 0 0.85rem; color: var(--teal-light); font-size: 1.05rem; font-weight: 700; }
.step__num::after { content: ""; flex: 1; height: 1px; background: var(--line-dark); }
.step__title { margin: 0 0 0.6rem; font-size: clamp(1.45rem, 1.2rem + 0.8vw, 1.85rem); font-weight: 400; line-height: 1.15; letter-spacing: -0.015em; }
.step__text p { margin-bottom: 0.9em; }
.step__text p:last-child { margin-bottom: 0; }
@media (min-width: 48rem) {
  .steps__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.5rem, 5vw, 4.5rem); }
}

/* A pause in the page: one large frame, no words on it. His photo is a tall one, so 4:3 is the widest crop that keeps
   both the sunset and the whole truck; it is sized to fit a laptop screen whole. */
.frame { width: min(100%, 64rem, calc((100svh - 6rem) * 4 / 3)); margin: 0 auto; padding-block: clamp(3rem, 7vw, 5rem) 0; }
.frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 40%; border-radius: var(--radius); }

/* Service cards: tall photo cards on wide screens, a photo-and-words row on phones. */
.cards { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.card__link:focus-visible { outline: none; }
.card:has(.card__link:focus-visible) { outline: 2px solid var(--teal-text); outline-offset: 3px; }
.card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.card__link { display: grid; grid-template-columns: 6.25rem minmax(0, 1fr); gap: 1rem; align-items: center; height: 100%; padding: 0.65rem; color: inherit; text-decoration: none; }
.card__photo { display: block; overflow: hidden; border-radius: var(--radius-sm); }
.card__photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform 0.5s ease; }
.card__title { display: block; margin-bottom: 0.3rem; color: var(--ink); font-size: 1.1rem; font-weight: 700; line-height: 1.25; text-wrap: balance; }
.card__text { display: block; color: var(--muted); font-size: 0.925rem; line-height: 1.5; text-wrap: pretty; }
@media (hover: hover) {
  .card__link:hover .card__photo img { transform: scale(1.04); }
  .card__link:hover .card__title { color: var(--link); }
}
@media (min-width: 40rem) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 76rem) {
  /* One row of equal columns, however many service cards there are. */
  .cards { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 1.1rem; }
  .card:last-child:nth-child(odd) { grid-column: auto; }
  .card__link { grid-template-columns: 1fr; align-content: start; gap: 0; padding: 0 0 1.35rem; }
  .card__photo { border-radius: 0; }
  .card__photo img { aspect-ratio: 4 / 5; }
  .card__body { padding: 1.1rem 1.15rem 0; }
}

/* Short lists of plain words, each after a teal dot. */
.cycle { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.cycle__item { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--mist); font-size: 0.925rem; font-weight: 700; }
.cycle__item::before { content: ""; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--teal-light); }
/* In a narrow step (a tablet's two columns, a small phone) the three stack rather than leave one alone on a line. */
.step { container-type: inline-size; }
@container (max-width: 23rem) {
  .cycle { flex-direction: column; gap: 0.4rem; }
}

/* Floyd County places. */
.places { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.places li { border-bottom: 1px solid var(--line); }
.places a { display: flex; align-items: center; gap: 0.65rem; height: 100%; padding: 1rem 1.5rem 1rem 0; color: var(--ink); font-weight: 700; text-decoration: none; }
.places a:hover { color: var(--link); }
.places .icon { color: var(--teal-text); }
.places__county { grid-column: 1 / -1; }
.places__county a { color: var(--ink); font-size: 1.1rem; }
@media (min-width: 48rem) {
  .places { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .places__county { grid-column: 1 / -1; }
}
@media (min-width: 64rem) {
  .places { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .places__county { grid-column: span 2; }
}

/* Google rating and the live review cards, on navy. */
.rating { padding-block: clamp(3.5rem, 7vw, 5rem); background: var(--navy); color: var(--mist); border-top: 1px solid var(--line-dark); }
.rating__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 2.25rem; }
.rating__score { margin: 0; color: var(--mist); font-size: clamp(3.5rem, 2.5rem + 4vw, 5.5rem); font-weight: 400; line-height: 1; letter-spacing: -0.04em; }
.rating__body p { margin: 0; }
.rating__stars { display: flex; gap: 0.2rem; color: var(--teal-light); }
.rating__stars .icon { width: 1.45rem; height: 1.45rem; fill: currentColor; stroke: none; }
.rating__text { margin-top: 0.45rem; color: var(--mist); font-size: 1.1rem; font-weight: 700; }
.rating__link { display: inline-block; margin-top: 0.3rem; color: var(--mist); }
.rating__link:hover { color: var(--teal-light); }
.live-reviews { margin-top: clamp(2rem, 4vw, 3rem); }
.live-reviews__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.live-reviews__credit { margin: 1.1rem 0 0; color: var(--haze); font-size: 0.875rem; text-align: center; }
.review-card { flex: 1 1 100%; display: flex; flex-direction: column; gap: 0.8rem; margin: 0; padding: 1.5rem 1.5rem 1.4rem; border: 1px solid var(--line-dark); border-radius: var(--radius); background: var(--navy-2); color: var(--haze); }
.review-card__stars { display: flex; gap: 0.15rem; color: var(--teal-light); }
.review-card__stars .icon { width: 1rem; height: 1rem; fill: currentColor; stroke: none; }
.review-card__text { margin: 0; font-size: 1rem; line-height: 1.65; white-space: pre-line; }
.review-card__by { display: flex; flex-direction: column; gap: 0.15rem; margin-top: auto; padding-top: 0.9rem; border-top: 1px solid var(--line-dark); font-size: 0.95rem; }
.review-card__who { color: var(--mist); font-weight: 700; }
.review-card__who a { color: var(--mist); }
.review-card__who a:hover { color: var(--teal-light); }
.review-card__when { color: var(--haze); font-size: 0.875rem; }
.review-card :focus-visible { outline-color: var(--teal-light); }
@media (min-width: 48rem) {
  .review-card { flex-basis: calc((100% - 1rem) / 2); max-width: calc((100% - 1rem) / 2); }
}
@media (min-width: 64rem) {
  .review-card { flex-basis: calc((100% - 2rem) / 3); max-width: calc((100% - 2rem) / 3); }
}

/* Guides. */
.guides__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 2rem; margin-bottom: 2rem; }
.guides__title { margin: 0; color: var(--ink); font-size: clamp(1.75rem, 1.25rem + 1.6vw, 2.5rem); font-weight: 400; line-height: 1.12; letter-spacing: -0.025em; }
.guides__all { font-weight: 700; }
.guide-cards { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.guide-card a { display: flex; flex-direction: column; height: 100%; padding: 1.6rem 1.5rem 1.45rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--band); color: inherit; text-decoration: none; transition: border-color 0.2s ease; }
.guide-card a:hover { border-color: var(--ink); }
.guide-card__title { display: block; margin-bottom: 0.5rem; color: var(--ink); font-size: 1.2rem; font-weight: 700; line-height: 1.3; text-wrap: balance; }
.guide-card__text { display: block; margin-bottom: 1.2rem; color: var(--muted); font-size: 0.95rem; text-wrap: pretty; }
.guide-card__more { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: auto; color: var(--link); font-weight: 700; }
.guide-card a:hover .guide-card__more { color: var(--teal-text); }
@media (min-width: 52rem) {
  .guide-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Questions. */
.faq { scroll-margin-top: 1rem; }
.faq__list { max-width: 52rem; border-top: 1px solid var(--line); }
@media (min-width: 64rem) {
  .faq__wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
}
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { display: flex; justify-content: space-between; gap: 1rem; padding: 1.2rem 0; color: var(--ink); font-size: 1.1rem; font-weight: 700; line-height: 1.4; text-wrap: balance; list-style: none; cursor: pointer; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; flex: none; color: var(--teal-text); font-size: 1.4rem; font-weight: 400; line-height: 1; }
.faq__item[open] summary::after { content: "\2212"; }
.faq__answer { max-width: 44rem; padding-bottom: 1.2rem; }
.faq__answer p { margin: 0; }

/* Closing band on navy, under the pinline. */
.closing { position: relative; padding-block: clamp(4rem, 8vw, 6rem); background: var(--navy); color: var(--mist); text-align: center; }
.closing__inner::before { content: ""; display: block; width: 3.5rem; height: 1px; margin: 0 auto 1.75rem; background: var(--teal-light); }
.closing__inner { max-width: 46rem; }
.closing__title { margin: 0 0 0.75rem; color: var(--mist); font-size: clamp(2rem, 1.35rem + 2.2vw, 3.1rem); font-weight: 400; line-height: 1.1; letter-spacing: -0.028em; text-wrap: balance; }
.closing__text { max-width: 40rem; margin: 0 auto 2rem; color: var(--haze); text-wrap: balance; }
.closing__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }

/* Footer. */
.site-footer { border-top: 1px solid var(--line-dark); background: var(--navy); color: var(--haze); font-size: 0.95rem; }
.site-footer a { color: var(--mist); text-decoration: none; }
.site-footer a:hover { color: var(--teal-light); }
.site-footer__grid { display: grid; gap: 2rem; padding-block: 3.75rem 2.75rem; }
.site-footer__logo { width: 7rem; height: auto; margin-bottom: 1.1rem; }
.site-footer__brand p { max-width: 22rem; }
.site-footer__seals { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.4rem; }
.site-footer__seals a { display: block; padding: 0.4rem; border-radius: 0.5rem; background: var(--white); line-height: 0; }
.site-footer__seals img { display: block; width: auto; height: 5rem; }
.site-footer__col p { margin-bottom: 0.8rem; }
.site-footer__label { margin-bottom: 0.7rem; color: var(--mist); font-weight: 700; }
.site-footer__links { display: grid; gap: 0.35rem; margin: 0; padding: 0; list-style: none; }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; padding-block: 1.35rem 1.85rem; border-top: 1px solid var(--line-dark); font-size: 0.875rem; }
.site-footer__base p { margin: 0; }
@media (max-width: 47.99rem) {
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.25rem; }
  .site-footer__brand, .site-footer__col--reach { grid-column: 1 / -1; }
  .site-footer__links a { display: inline-block; padding-block: 0.3rem; }
}
@media (min-width: 48rem) {
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 64rem) {
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

/* Phones: Call and Request an inspection fixed to the bottom of the screen on every webpage, as on our other sites
   (Eric 11/9). Call is the outline and the request the filled button, as in every navy band; the footer's last line
   and any field a visitor tabs to stay clear of it. */
.call-bar { display: none; }
@media (max-width: 47.99rem) {
  html { scroll-padding-bottom: 5.5rem; }
  .call-bar {
    position: fixed;
    inset: auto 0 0;
    z-index: 20;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.6rem;
    padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--line-dark);
    background: var(--navy);
    box-shadow: 0 -0.5rem 1.25rem rgba(15, 35, 70, 0.25);
  }
  .call-bar .button { min-height: 2.9rem; padding: 0.6rem 1rem; text-align: center; }
  .site-footer__base { padding-bottom: calc(1.85rem + 4.2rem + env(safe-area-inset-bottom, 0px)); }
}

/* Inner webpages: the navy head, shorter, with one photo at its own shape on the right. */
.subhead { padding-block: clamp(2.25rem, 5vw, 3.75rem); }
.subhead__grid { display: grid; gap: clamp(1.75rem, 4vw, 3.5rem); align-items: center; }
.subhead__words { max-width: 42rem; }
.subhead__words::before { content: ""; display: block; width: 3.5rem; height: 1px; margin-bottom: 1.5rem; background: var(--teal-light); }
.subhead__title { margin: 0 0 1.1rem; color: var(--mist); font-size: clamp(2.2rem, 1.45rem + 2.6vw, 3.6rem); line-height: 1.05; letter-spacing: -0.03em; }
.subhead__lede { max-width: 38rem; margin-bottom: 1.75rem; color: var(--haze); font-size: clamp(1.06rem, 1rem + 0.3vw, 1.2rem); }
.subhead__lede:last-child { margin-bottom: 0; }
.subhead__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.subhead__photo { justify-self: start; width: min(100%, 22rem, calc((100svh - 12rem) * 0.8)); min-width: min(100%, 15rem); margin: 0; }
.subhead__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.subhead__badge img { aspect-ratio: 1 / 1; object-fit: contain; border-radius: 0; }
@media (min-width: 56rem) {
  .subhead__grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); }
  .subhead--text .subhead__grid { grid-template-columns: minmax(0, 1fr); }
  .subhead__photo { justify-self: end; }
}

/* Inner webpage body: the writer's words beside a booking card and a second photo. */
.page-layout { display: grid; gap: clamp(2rem, 5vw, 4.5rem); padding-block: clamp(3rem, 6vw, 5rem); }
.prose { max-width: 39rem; }
.prose em { font-style: normal; color: var(--muted); }
.prose h2 { margin-top: 2.5rem; font-size: clamp(1.6rem, 1.2rem + 1.3vw, 2.2rem); }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { margin: 1.7rem 0 0.5rem; font-size: 1.2rem; line-height: 1.3; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.3rem; }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--teal-text); }
.prose strong { color: var(--ink); }
.guide-list, .prose .guide-list { display: grid; gap: 0.85rem; margin: 1.25rem 0 2rem; padding: 0; list-style: none; }
.guide-list li { position: relative; margin: 0; padding: 1.25rem 1.3rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.guide-list li:hover { border-color: var(--ink); }
.guide-list a { display: block; color: var(--ink); font-size: 1.1rem; font-weight: 700; line-height: 1.3; text-decoration: none; text-wrap: balance; }
.guide-list a:hover { color: var(--link); text-decoration: underline; }
.guide-list a::after { content: ""; position: absolute; inset: 0; }
.guide-list a:focus-visible { outline: none; }
.guide-list li:has(a:focus-visible) { outline: 2px solid var(--teal-text); outline-offset: 3px; }
.guide-list span { display: block; margin-top: 0.3rem; color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
@media (min-width: 48rem) {
  .guide-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.prose table { width: 100%; margin: 1.5rem 0 1.75rem; border-collapse: collapse; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.prose th, .prose td { padding: 0.65rem 0.75rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { color: var(--ink); font-weight: 700; border-bottom: 1px solid var(--ink); }
.prose td:not(:first-child), .prose th:not(:first-child) { white-space: nowrap; }
.prose blockquote { margin: 1.75rem 0 1.9rem; padding: 0.15rem 0 0.15rem 1.35rem; border-left: 1px solid var(--teal); }
.prose blockquote p:first-child { color: var(--ink); font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.3rem); line-height: 1.55; }
.prose blockquote p:last-child:not(:first-child) { margin-bottom: 0; color: var(--muted); font-size: 0.95rem; font-weight: 700; }
.page-aside { display: grid; gap: 1.25rem; align-content: start; }
.aside-card { padding: 1.6rem; border-radius: var(--radius); background: var(--navy); color: var(--haze); }
.aside-card__title { margin-bottom: 0.45rem; color: var(--mist); font-size: 1.3rem; font-weight: 400; line-height: 1.2; letter-spacing: -0.01em; }
.aside-card__text { font-size: 0.95rem; }
.aside-card__button { width: 100%; }
.aside-card__button + .aside-card__button { margin-top: 0.6rem; }
.aside-card__call { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 2.75rem; margin-top: 0.5rem; color: var(--mist); font-weight: 700; text-decoration: none; }
.aside-card__call:hover { color: var(--teal-light); }
.aside-card__call .icon { color: var(--teal-light); }
.aside-card__call--first { margin: 0.35rem 0 0.9rem; font-size: 1.2rem; }
.aside-card__line { display: flex; gap: 0.55rem; align-items: flex-start; margin-bottom: 0.8rem; color: var(--mist); font-size: 0.95rem; line-height: 1.5; }
.aside-card__line .icon { flex: none; margin-top: 0.2rem; color: var(--teal-light); }
.aside-card__line + .aside-card__button { margin-top: 0.4rem; }
.lead-cards { padding-top: clamp(2rem, 4vw, 3rem); }
.aside-photo { width: min(100%, 26rem); margin: 0; }
.aside-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
@media (min-width: 40rem) and (max-width: 63.99rem) {
  .page-aside:has(.aside-photo) { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .page-aside:has(.aside-photo) .aside-photo { width: 100%; }
}
@media (max-width: 39.99rem) {
  .page-layout:has(+ .closing) .aside-card--book { display: none; }
}
@media (max-width: 63.99rem) {
  main[data-kind="contact"] .page-aside { order: -1; }
}
@media (min-width: 64rem) {
  .page-layout { grid-template-columns: minmax(0, 1fr) 20rem; align-items: start; }
  .page-layout--single { grid-template-columns: minmax(0, 46rem); }
  .page-aside { position: sticky; top: 1.5rem; }
  .aside-photo { width: 100%; }
}

/* Other services, under a service page. */
.related { background: var(--band); }
.related__title { margin-bottom: 1.75rem; color: var(--ink); font-size: clamp(1.75rem, 1.25rem + 1.6vw, 2.5rem); font-weight: 400; line-height: 1.12; letter-spacing: -0.025em; }
@media (min-width: 64rem) {
  .cards--four { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 1.1rem; }
  .cards--four .card:last-child:nth-child(odd) { grid-column: auto; }
  .cards--four .card__link { grid-template-columns: 1fr; align-content: start; gap: 0; padding: 0 0 1.35rem; }
  .cards--four .card__photo { border-radius: 0; }
  .cards--four .card__photo img { aspect-ratio: 4 / 5; }
  .cards--four .card__body { padding: 1.1rem 1.15rem 0; }
}

/* Phones. Last in the file, so these win over the rules above. */
@media (max-width: 29.99rem) {
  .hero__actions .button, .split__actions .button, .closing__actions .button, .subhead__actions .button { flex: 1 1 100%; }
  .subhead__photo { width: 100%; }
  .subhead__badge { width: min(100%, 15rem); justify-self: center; }
  .facts__list { grid-template-columns: 1fr; }
  .facts__item { padding-block: 1rem; }
  .facts__item:nth-child(n + 2) { border-top: 1px solid var(--line-dark); }
  .rating__inner { flex-direction: column; text-align: center; }
  .rating__stars { justify-content: center; }
}
/* The quote form: quiet white on the light band, one teal button. */
.quote-band { padding-block: clamp(2.5rem, 5vw, 4rem); background: var(--white); border-block: 1px solid var(--line); }
.quote-card { max-width: 46rem; }
.quote-card__title { margin: 0 0 0.4rem; color: var(--ink); font-size: clamp(1.6rem, 1.3rem + 1.1vw, 2.2rem); font-weight: 400; line-height: 1.15; }
.quote-card__sub { margin: 0 0 1.5rem; color: var(--muted); }
.quote-card__book { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; margin: -0.6rem 0 1.75rem; color: var(--muted); }
.quote-slot { position: relative; }
.quote-fallback { position: absolute; inset: 0 0 auto; margin: 0; }
.quote-form[data-pending] { visibility: hidden; }
.quote-trap { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.quote-form { display: grid; gap: 1rem; }
.quote-form[hidden] { display: none; }
.quote-form label { display: block; color: var(--ink); font-size: 0.95rem; font-weight: 700; }
.quote-form input:not([type="checkbox"]), .quote-form textarea, .quote-form select { display: block; width: 100%; min-height: 2.9rem; margin-top: 0.35rem; padding: 0.6rem 0.75rem; border: 1px solid #8a8e94; border-radius: var(--radius-sm); background: var(--white); color: var(--ink); font: inherit; font-weight: 400; }
.quote-form input::placeholder { color: var(--muted); }
.quote-form__row { display: grid; gap: 1rem; }
.quote-form__opt { color: var(--muted); font-weight: 400; }
.quote-form__consent { display: grid; gap: 0.6rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.quote-form__consent legend { padding: 0; margin-bottom: 0.5rem; color: var(--ink); font-size: 0.95rem; font-weight: 700; }
.quote-form__consent label { display: flex; align-items: flex-start; gap: 0.6rem; min-height: 2.75rem; font-weight: 400; }
.quote-form__consent input { flex: none; width: 1.25rem; height: 1.25rem; margin: 0.15rem 0 0; accent-color: var(--teal-text); }
.quote-form__fine { margin: 0; color: var(--muted); font-size: 0.85rem; line-height: 1.5; }
.quote-form__invalid { margin: 0; color: #a3200f; font-weight: 700; }
.quote-form__alt { margin: 0; color: var(--muted); font-size: 0.95rem; }
.quote-form button { justify-self: start; border: 0; font-family: inherit; cursor: pointer; }
.quote-form button[disabled] { opacity: 0.7; }
.quote-form__done:focus { outline: none; }
.quote-form__done-title { margin: 0 0 0.4rem; color: var(--ink); font-size: 1.4rem; }
@media (min-width: 40rem) {
  .quote-form__row { grid-template-columns: 1fr 1fr; }
  .quote-form__row--place { grid-template-columns: 2fr 1fr 1fr; }
}

/* Phones, and any touch screen: every link that stands on its own is at least 44 pixels tall. */
@media (max-width: 47.99rem), (pointer: coarse) {
  .site-footer__links { gap: 0; }
  .site-footer a, .guides__all, .rating__link, .hero__rating a, .review-card__who a { display: inline-block; padding-block: 0.65rem; }
}

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

/* Service cards with an icon in place of a photo, until Andy's own inspection photos arrive. */
.card__icon { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 50%; background: var(--band); color: var(--teal); transition: background-color 0.2s ease, color 0.2s ease; }
.card__icon .icon { width: 1.5rem; height: 1.5rem; }
.cards--icons .card__link { grid-template-columns: 3.25rem minmax(0, 1fr); align-items: start; padding: 1.15rem; }
@media (hover: hover) {
  .cards--icons .card__link:hover .card__icon { background: var(--teal); color: var(--white); }
}
@media (min-width: 76rem) {
  .cards--icons .card__link { grid-template-columns: 1fr; gap: 1rem; padding: 1.5rem 1.35rem 1.6rem; }
  .cards--icons .card__body { padding: 0; }
}

/* How it works: three numbered cards on navy. */
.steps { display: grid; gap: 1rem; margin: 2.25rem 0 0; padding: 0; list-style: none; }
.step-card { padding: 1.6rem 1.5rem 1.7rem; border: 1px solid var(--line-dark); border-radius: var(--radius); background: var(--navy-2); color: var(--haze); }
.step-card .step__title { margin: 0 0 0.55rem; color: var(--mist); font-size: 1.3rem; line-height: 1.25; }
.step-card p:last-child { margin: 0; }
@media (min-width: 56rem) {
  .steps--three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
}

/* The towns list beside a photo: two columns, three on wide screens. */
.split .places { margin-top: 1.75rem; }
@media (min-width: 48rem) {
  .split .places { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split .places__county { grid-column: 1 / -1; }
}
@media (min-width: 64rem) {
  .split .places { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .split .places__county { grid-column: 1 / -1; }
}

/* The agent box in the request form, apart from the add-on tests. Scoped under .quote-form so it outranks
   `.quote-form label` (display block, bold), which left the box touching bold text until 11/9. */
.quote-form .quote-form__check { display: flex; align-items: flex-start; gap: 0.6rem; min-height: 2.75rem; font-weight: 400; }
.quote-form__check input { flex: none; width: 1.25rem; height: 1.25rem; margin: 0.15rem 0 0; accent-color: var(--teal-text); }

/* Phones: the logo, the call button and the menu share a 390-pixel bar, so the buttons tighten. */
@media (max-width: 29.99rem) {
  .site-header__bar { gap: 0.5rem; }
  .site-header__call { padding-inline: 0.8rem; }
  .menu__toggle { padding-inline: 0.8rem; }
}
