/* ==========================================================================
   Shasta Home Inspections
   ========================================================================== */

/* --- Fonts --------------------------------------------------------------- */
@font-face {
  font-family: "DM Serif Display";
  src: url("/assets/fonts/dmserifdisplay-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("/assets/fonts/roboto-latin-var.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("/assets/fonts/roboto-latin-italic-var.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* --- Tokens -------------------------------------------------------------- */
:root {
  --green: #4a8622;
  --green-dark: #3a6a1b;
  --green-darker: #2c5114;
  /* Deeper green for full-bleed panels: white body text needs 4.5:1 (#4a8622 gives 4.45). */
  --green-section: #43781e;
  --green-tint: #f1f6ea;
  --green-line: #d8e6c7;

  --ink: #1f2428;
  --ink-soft: #4b5560;
  --ink-mute: #6a737b;
  --slate: #343a40;
  --slate-dark: #23282d;

  --paper: #ffffff;
  --paper-2: #f7f9f4;
  --line: #e4e7e0;

  --display: "DM Serif Display", Georgia, "Times New Roman", serif;
  --body: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1120px;
  --wrap-narrow: 760px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(20, 30, 15, .06), 0 2px 8px rgba(20, 30, 15, .05);
  --shadow: 0 2px 6px rgba(20, 30, 15, .07), 0 12px 32px rgba(20, 30, 15, .09);
  --shadow-lg: 0 4px 12px rgba(20, 30, 15, .09), 0 24px 60px rgba(20, 30, 15, .14);

  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* --- Reset --------------------------------------------------------------- */
*, *::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;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, picture, svg, video { max-width: 100%; display: block; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 1.6rem + 3.2vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 1.35rem + 2vw, 2.625rem); }
h3 { font-size: clamp(1.3rem, 1.12rem + .9vw, 1.75rem); }
h4 { font-size: clamp(1.1rem, 1.02rem + .4vw, 1.3rem); }

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

a { color: var(--green-dark); text-decoration-thickness: 1px; text-underline-offset: .16em; }
a:hover { color: var(--green-darker); }

ul, ol { margin: 0 0 1.15em; padding-left: 1.25em; }
li { margin-bottom: .35em; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
  border-radius: 3px;
}

::selection { background: var(--green); color: #fff; }

/* --- Layout -------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: var(--wrap-narrow); }

.section { padding-block: clamp(3rem, 2rem + 5vw, 6rem); }
.section--tight { padding-block: clamp(2rem, 1.5rem + 3vw, 3.5rem); }
.section--tint { background: var(--paper-2); }
.section--green { background: var(--green-section); color: #fff; }
.section--slate { background: var(--slate); color: #fff; }

.section--green h1, .section--green h2, .section--green h3,
.section--slate h1, .section--slate h2, .section--slate h3 { color: #fff; }
.section--green a:not(.btn) { color: #fff; }

.split {
  display: grid;
  gap: clamp(2rem, 1rem + 5vw, 4rem);
  align-items: center;
}
@media (min-width: 800px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse > :first-child { order: 2; }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--green);
  color: #fff;
  padding: .75rem 1.25rem;
  border-radius: 0 0 var(--radius) 0;
  font-weight: 500;
}
.skip-link:focus { left: 0; color: #fff; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* --- Typography helpers -------------------------------------------------- */
.eyebrow {
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin: 0 0 1rem;
}
.section--green .eyebrow,
.section--slate .eyebrow,
.hero .eyebrow { color: rgba(255, 255, 255, .95); }

.lede {
  font-size: clamp(1.0625rem, 1rem + .4vw, 1.25rem);
  line-height: 1.6;
  color: var(--ink-soft);
}
.section--green .lede, .section--slate .lede { color: rgba(255, 255, 255, .95); }

.section-head { max-width: 46ch; margin-bottom: clamp(2rem, 1.4rem + 2vw, 3rem); }
.section-head--center { max-width: 52ch; margin-inline: auto; text-align: center; }

/* --- Buttons ------------------------------------------------------------- */
.btn {
  --btn-bg: var(--green);
  --btn-fg: #fff;
  --btn-bd: var(--green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.6rem;
  border: 2px solid var(--btn-bd);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s var(--ease), border-color .18s var(--ease),
              transform .18s var(--ease), box-shadow .18s var(--ease);
}
.btn:hover {
  --btn-bg: var(--green-dark);
  --btn-bd: var(--green-dark);
  color: var(--btn-fg);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn:active { transform: translateY(0); box-shadow: var(--shadow-sm); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--green-dark); --btn-bd: var(--green); }
.btn--ghost:hover { --btn-bg: var(--green); --btn-fg: #fff; --btn-bd: var(--green); }

.btn--onDark { --btn-bg: #fff; --btn-fg: var(--green-darker); --btn-bd: #fff; }
.btn--onDark:hover { --btn-bg: rgba(255, 255, 255, .88); --btn-fg: var(--green-darker); --btn-bd: rgba(255, 255, 255, .88); }

.btn--outlineLight { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .6); }
.btn--outlineLight:hover { --btn-bg: rgba(255, 255, 255, .14); --btn-fg: #fff; --btn-bd: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* --- Header -------------------------------------------------------------- */
.utility {
  background: var(--green-darker);
  color: #fff;
  font-size: .875rem;
}
.utility .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .35rem 1.5rem;
  padding-block: .55rem;
  text-align: center;
}
.utility a { color: #fff; font-weight: 500; text-decoration-color: rgba(255, 255, 255, .5); }
.utility a:hover { color: #fff; text-decoration-color: #fff; }
.utility span { display: inline-flex; align-items: center; gap: .45rem; }
.utility svg { width: 15px; height: 15px; flex: none; opacity: .85; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.6) blur(10px);
  -webkit-backdrop-filter: saturate(1.6) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s var(--ease);
}
.site-header[data-stuck="true"] { box-shadow: 0 2px 16px rgba(20, 30, 15, .09); }

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block: .7rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--green-dark);
  margin-right: auto;
}
.brand img { width: 38px; height: 38px; flex: none; }
.brand span {
  font-family: var(--display);
  font-size: clamp(1.05rem, .92rem + .62vw, 1.5rem);
  line-height: 1.1;
  letter-spacing: -.005em;
  white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: clamp(.75rem, .3rem + 1.2vw, 1.6rem); }
.nav a {
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  padding: .4rem 0;
  position: relative;
  white-space: nowrap;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s var(--ease);
}
.nav a:hover { color: var(--green-dark); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--green-dark); }

.header-cta { font-size: .8125rem; padding: .6rem 1.15rem; }
@media (max-width: 1100px) and (min-width: 861px) { .header-cta { display: none; } }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: .5rem var(--gutter) 1.25rem;
  }
  .nav:not([data-open="true"]) { display: none; }
  .nav a { padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: .875rem; }
  .nav a::after { display: none; }
  .nav a[aria-current="page"] { color: var(--green-dark); }
  .nav .btn { margin-top: 1rem; width: 100%; border-bottom: 2px solid var(--green); }
}

/* --- Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: clamp(420px, 62vh, 640px);
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(16, 26, 10, .88) 0%, rgba(16, 26, 10, .55) 42%, rgba(16, 26, 10, .18) 78%, rgba(16, 26, 10, .1) 100%);
}
.hero .wrap { padding-block: clamp(2.5rem, 1.5rem + 5vw, 4.5rem); }
.hero__inner { max-width: 40ch; }
.hero h1 { color: #fff; text-shadow: 0 2px 24px rgba(0, 0, 0, .35); margin-bottom: .35em; }
.hero .lede { color: rgba(255, 255, 255, .94); text-shadow: 0 1px 12px rgba(0, 0, 0, .3); }

/* --- Page header (interior pages) --------------------------------------- */
.page-head {
  background: var(--green-tint);
  border-bottom: 1px solid var(--green-line);
  padding-block: clamp(2.5rem, 1.8rem + 3.5vw, 4.5rem);
}
.page-head h1 { margin-bottom: .25em; }
.page-head .lede { max-width: 55ch; }

/* --- Stats --------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.stat {
  background: var(--paper);
  padding: clamp(1.5rem, 1rem + 2vw, 2.25rem) 1.25rem;
  text-align: center;
}
.stat__num {
  font-family: var(--display);
  font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  line-height: 1;
  color: var(--green-dark);
  display: block;
  margin-bottom: .35rem;
}
.stat__label {
  font-size: .8125rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-mute);
  line-height: 1.4;
}

/* --- Media / figures ----------------------------------------------------- */
.figure { margin: 0; }
.figure img { border-radius: var(--radius-lg); }
.figure--shadow img { box-shadow: var(--shadow-lg); }
.figure--plain img { border-radius: 0; box-shadow: none; }
.figure--tilt img {
  border-radius: 6px;
  box-shadow: var(--shadow-lg);
  transform: rotate(-1.6deg);
  transition: transform .4s var(--ease);
}
.figure--tilt:hover img { transform: rotate(0deg) scale(1.01); }

/* --- Cards --------------------------------------------------------------- */
.grid {
  display: grid;
  gap: clamp(1.25rem, .8rem + 1.6vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--green-line); }
.card:focus-within { box-shadow: var(--shadow); border-color: var(--green-line); }
.card__media { aspect-ratio: 16 / 10; background: var(--paper-2); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: 1.35rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { margin-bottom: .35rem; }
.card__body p { color: var(--ink-soft); font-size: .9375rem; margin-bottom: 1rem; }
.card__body p:last-of-type { margin-bottom: 0; }
.card__link {
  margin-top: auto;
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .09em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding-top: 1rem;
}
.card__link::after { content: "→"; transition: transform .2s var(--ease); }
.card:hover .card__link::after { transform: translateX(3px); }
/* Whole-card click target without nesting interactive elements */
.card__link::before { content: ""; position: absolute; inset: 0; }

/* --- Testimonials -------------------------------------------------------- */
.quote {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  box-shadow: var(--shadow-sm);
}
.quote::before {
  content: "";
  display: block;
  width: 34px; height: 26px;
  margin-bottom: 1.1rem;
  background: var(--green);
  flex: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 26'%3E%3Cpath d='M0 26V13.8C0 6.2 4.6 1 12.4 0l1.3 3.6C9.3 5 7 7.6 6.8 11.3H13V26H0Zm21 0V13.8C21 6.2 25.6 1 33.4 0l1.3 3.6C30.3 5 28 7.6 27.8 11.3H34V26H21Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 26'%3E%3Cpath d='M0 26V13.8C0 6.2 4.6 1 12.4 0l1.3 3.6C9.3 5 7 7.6 6.8 11.3H13V26H0Zm21 0V13.8C21 6.2 25.6 1 33.4 0l1.3 3.6C30.3 5 28 7.6 27.8 11.3H34V26H21Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.quote blockquote { margin: 0 0 1.25rem; font-size: .9375rem; line-height: 1.7; color: var(--ink-soft); }
.quote blockquote p:last-child { margin-bottom: 0; }
.quote figcaption {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: .875rem;
}
.quote cite { font-style: normal; font-weight: 500; color: var(--ink); display: block; }
.quote figcaption span { color: var(--ink-mute); font-size: .8125rem; }

/* --- Prose (interior body copy) ------------------------------------------ */
.prose { max-width: 68ch; }
.prose h2 { margin-top: 2.25em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.75em; color: var(--green-dark); }
.prose > :first-child { margin-top: 0; }

/* --- Pricing ------------------------------------------------------------- */
.price-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1.5rem, 1rem + 3vw, 3rem);
  padding: clamp(1.75rem, 1.2rem + 2.5vw, 2.75rem);
  background: var(--green-tint);
  border: 1px solid var(--green-line);
  border-radius: var(--radius-lg);
}
.price-hero__amount {
  font-family: var(--display);
  font-size: clamp(3rem, 2rem + 6vw, 5rem);
  line-height: .95;
  color: var(--green-dark);
}
.price-hero__amount small {
  display: block;
  font-family: var(--body);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: .6rem;
}
.price-hero__body { flex: 1 1 22rem; }
.price-hero__body p:last-child { margin-bottom: 0; }

.price-table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.price-table caption {
  text-align: left;
  font-family: var(--display);
  font-size: clamp(1.3rem, 1.12rem + .9vw, 1.75rem);
  color: var(--green-dark);
  padding-bottom: .75rem;
}
.price-table th, .price-table td {
  text-align: left;
  padding: .85rem .75rem;
  border-bottom: 1px solid var(--line);
}
.price-table th { font-weight: 500; }
.price-table thead th {
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  border-bottom-width: 2px;
}
.price-table td:last-child, .price-table thead th:last-child { text-align: right; }
.price-table tbody tr:hover { background: var(--paper-2); }
.price-table .is-base { background: var(--green-tint); }
.price-table .is-base th, .price-table .is-base td { font-weight: 500; color: var(--green-darker); }
.price-table .amount { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 500; }
.table-scroll { overflow-x: auto; margin-bottom: 2.5rem; }

.includes { list-style: none; padding: 0; display: grid; gap: .65rem; }
.includes li { display: flex; gap: .7rem; align-items: flex-start; margin: 0; }
.includes li::before {
  content: "";
  width: 20px; height: 20px;
  margin-top: .2rem;
  flex: none;
  background: var(--green);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0a10 10 0 1 0 0 20A10 10 0 0 0 10 0Zm4.7 7.7-5.4 5.4a1 1 0 0 1-1.4 0L5.3 10.5a1 1 0 1 1 1.4-1.4l1.9 1.9 4.7-4.7a1 1 0 1 1 1.4 1.4Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0a10 10 0 1 0 0 20A10 10 0 0 0 10 0Zm4.7 7.7-5.4 5.4a1 1 0 0 1-1.4 0L5.3 10.5a1 1 0 1 1 1.4-1.4l1.9 1.9 4.7-4.7a1 1 0 1 1 1.4 1.4Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* --- Downloads ----------------------------------------------------------- */
.download {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.15rem 1.35rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.download:hover {
  border-color: var(--green);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
  color: inherit;
}
.download__icon {
  width: 42px; height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--green-tint);
  color: var(--green-dark);
}
.download__icon svg { width: 21px; height: 21px; }
.download__text { flex: 1; min-width: 0; }
.download__name { font-weight: 500; display: block; }
.download__meta { font-size: .8125rem; color: var(--ink-mute); }
.download__go { color: var(--green-dark); flex: none; transition: transform .2s var(--ease); }
.download:hover .download__go { transform: translateX(3px); }
.download-list { display: grid; gap: .85rem; }

/* --- Map ----------------------------------------------------------------- */
.map-frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--paper-2);
}
#areas-map { width: 100%; height: clamp(340px, 52vh, 520px); }
.map-fallback {
  display: none;
  padding: 1.25rem;
  text-align: center;
  color: var(--ink-mute);
  font-size: .9375rem;
}
.map-frame[data-failed="true"] #areas-map { display: none; }
.map-frame[data-failed="true"] .map-fallback { display: block; }
.maplibregl-ctrl-attrib a { color: var(--ink-mute); }

.county-list { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.county {
  padding: 1.15rem 1.3rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  border-radius: var(--radius);
  background: var(--paper);
}
.county h3 { font-size: 1.2rem; margin-bottom: .3rem; }
.county p { font-size: .875rem; color: var(--ink-mute); margin: 0; }

/* --- Forms --------------------------------------------------------------- */
.form-grid { display: grid; gap: 1.15rem; }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 500; font-size: .9375rem; }
.field .req { color: #b3261e; margin-left: .15rem; }
.field input, .field textarea {
  font: inherit;
  font-size: 1rem;
  padding: .75rem .9rem;
  border: 1px solid #cdd3c6;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  width: 100%;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.field textarea { resize: vertical; min-height: 9rem; }
.field input:hover, .field textarea:hover { border-color: #aab5a0; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(74, 134, 34, .18);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #b3261e; }
.field-error { font-size: .8125rem; color: #b3261e; min-height: 0; }
.field-error:empty { display: none; }

.form-note { font-size: .8125rem; color: var(--ink-mute); }

.form-status {
  border-radius: var(--radius);
  padding: .9rem 1.1rem;
  font-size: .9375rem;
  border: 1px solid transparent;
}
.form-status:empty { display: none; }
.form-status[data-state="ok"] { background: var(--green-tint); border-color: var(--green-line); color: var(--green-darker); }
.form-status[data-state="error"] { background: #fdf0ef; border-color: #f2c9c5; color: #8c1d18; }

.btn[aria-busy="true"] { opacity: .75; pointer-events: none; }

.contact-layout { display: grid; gap: clamp(2rem, 1.2rem + 4vw, 3.5rem); }
@media (min-width: 880px) { .contact-layout { grid-template-columns: 1.35fr 1fr; align-items: start; } }

.contact-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
}
.contact-card h2 { font-size: 1.4rem; }
.contact-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; gap: .85rem; align-items: flex-start; margin: 0; }
.contact-list svg { width: 20px; height: 20px; flex: none; margin-top: .22rem; color: var(--green); }
.contact-list a { font-weight: 500; word-break: break-word; }
.contact-list span { display: block; font-size: .8125rem; color: var(--ink-mute); }

/* --- Footer -------------------------------------------------------------- */
.site-footer {
  background: var(--slate);
  color: rgba(255, 255, 255, .78);
  padding-block: clamp(2.5rem, 2rem + 3vw, 4rem) 0;
  font-size: .9375rem;
}
.site-footer h2 { color: #fff; font-size: 1.5rem; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration-color: rgba(255, 255, 255, .3); }
.site-footer a:hover { color: #fff; text-decoration-color: #fff; }

.footer-grid {
  display: grid;
  gap: clamp(2rem, 1.2rem + 3vw, 3rem);
  padding-bottom: clamp(2rem, 1.5rem + 2vw, 3rem);
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }

.footer-brand { display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1rem; text-decoration: none; }
.footer-brand img { width: 34px; height: 34px; }
.footer-brand span { font-family: var(--display); font-size: 1.25rem; color: #fff; }

.footer-title {
  font-family: var(--body);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
  margin: 0 0 1rem;
}
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.footer-list li { margin: 0; }
.footer-list a { text-decoration: none; }
.footer-list a:hover { text-decoration: underline; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .14);
  padding-block: 1.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: space-between;
  font-size: .8125rem;
  color: rgba(255, 255, 255, .55);
}
.footer-bottom p { margin: 0; }

/* --- Reveal on scroll ---------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
  .reveal[data-visible="true"] { opacity: 1; transform: none; }
}

/* --- Print --------------------------------------------------------------- */
@media print {
  .utility, .site-header, .site-footer, .btn, .nav-toggle, .map-frame { display: none !important; }
  body { color: #000; font-size: 11pt; }
  .section { padding-block: 1rem; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; color: #555; }
}

/* --- Utilities ----------------------------------------------------------- */
.btn-row--center { justify-content: center; }
.text-center { text-align: center; }
.u-flush-bottom { padding-bottom: 0; }
.u-gap-top { margin-top: 1.75rem; }
/* Honeypot: off-screen but still focusable-free for real users */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
