/* service-area.css: the Service Area page (src\pages\service-area.mjs, plan.md "## Service Area"). */

/* ---------- 1. the header: a wide oval window (the logo's oval) over South Louisiana fields, the words on its left
   half in white on a grade, the form box over its right edge; the loop rings the oval once ---------- */
.ohero { --form-w: clamp(350px, 29vw, 410px); padding: clamp(12px, 0.4rem + 1vw, 26px) var(--gutter) 0; }
.ohero__in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) var(--form-w); align-items: center; max-width: var(--max-w); margin-inline: auto; }
.ohero__oval { grid-area: 1 / 1; position: relative; z-index: 1; aspect-ratio: 1.9 / 1; margin: 18px calc(-0.5 * var(--form-w)) 18px 0; }
.ohero__window { position: absolute; inset: 0; overflow: hidden; clip-path: ellipse(50% 50% at 50% 50%); background: var(--c-ink); isolation: isolate; }
.ohero__grade { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(90deg, color-mix(in srgb, var(--c-ink) 70%, transparent) 0%, color-mix(in srgb, var(--c-ink) 52%, transparent) 34%, color-mix(in srgb, var(--c-ink) 10%, transparent) 58%, transparent 72%); }
.ohero__copy { grid-area: 1 / 1; position: relative; z-index: 5; align-self: center; width: min(48%, 32rem); margin-left: 10%; gap: 0.9rem; }
.ohero__copy .ihero__title { font-size: clamp(2.2rem, 1.1rem + 2.3vw, 3.35rem); }
.ohero__copy .ihero__line { max-width: 26rem; }
.ohero__formwrap { grid-area: 1 / 2; z-index: 6; }
.ohero .oloop { z-index: 4; }
.oloop ellipse { cx: 50%; cy: 50%; rx: calc(50% + 11px); ry: calc(50% + 11px); fill: none; }
.ohero .ohero__stop { top: auto; right: auto; left: 21%; bottom: 8%; }
/* the parish chips of the form: each parish's own shape; "Another parish" a pin */
.pchip__shape .icon { width: 24px; height: 24px; color: var(--c-cobalt); }
.pchip__shape .icon path { fill: none; stroke: currentColor; stroke-width: 2; vector-effect: none; }
.pchip--parish[data-kit-on] .pchip__shape .icon path { fill: none; stroke: currentColor; }
@media (max-width: 1099px) { .ohero__copy { width: 46%; margin-left: 8%; } }
@media (max-width: 899px) {
  .ohero { padding: 8px 8px 0; }
  .ohero__in { grid-template-columns: minmax(0, 1fr); }
  .ohero__copy, .ohero__oval, .ohero__formwrap { grid-area: auto; }
  .ohero__copy { width: auto; margin: 0; padding: 1rem 0.5rem 0; }
  .ohero__copy .ihero__title { color: var(--c-ink); text-shadow: none; font-size: clamp(2rem, 1.4rem + 3vw, 3rem); }
  .ohero__copy .ihero__line { color: var(--c-ink-soft); text-shadow: none; font-size: 1.02rem; margin-top: 0.6rem; }
  .ohero__oval { aspect-ratio: 1.5 / 1; margin: 1.1rem 10px 0; }
  .ohero__grade { display: none; }
  .ohero .ohero__stop { left: auto; right: 15%; bottom: auto; top: 13%; }
  .ohero__formwrap { margin-top: -2.4rem; padding: 0 6px; }
}

/* ---------- 2. is your town on Rusty's route? the town finder on the parish map ---------- */
.route__head { margin-bottom: clamp(1.25rem, 1rem + 1vw, 2rem); }
.route__tool { display: grid; grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr); grid-template-areas: "side map" "parishes map"; gap: 1.25rem clamp(1.5rem, 1rem + 2vw, 3rem); align-items: start; }
.route__side { grid-area: side; display: grid; gap: 1rem; }
.route__map { grid-area: map; position: relative; aspect-ratio: 658 / 474; }
.route__parishes { grid-area: parishes; display: grid; gap: 0.6rem; }
.route__search { display: grid; gap: 0.5rem; }
.route__q { font: var(--fw-ui) var(--fs-small) var(--font-ui); color: var(--c-ink); }
.route__field { display: flex; align-items: center; gap: 8px; padding: 5px 5px 5px 14px; border: 2px solid var(--c-line); border-radius: var(--radius-pill); background: var(--c-white); box-shadow: var(--shadow-s); }
.route__field:focus-within { border-color: var(--c-cobalt); }
.route__field > .icon { flex: none; width: 22px; height: 22px; color: var(--c-cobalt); }
.route__field input { flex: 1; min-width: 0; padding: 10px 0; border: 0; outline: 0; background: transparent; font: 400 1.05rem var(--font-text); color: var(--c-ink); }
.route__field input::placeholder { color: color-mix(in srgb, var(--c-ink) 45%, transparent); }
.route__go { flex: none; }
.route__sugg { display: grid; gap: 2px; padding: 6px; border: 1px solid var(--c-line); border-radius: var(--radius-m); background: var(--c-white); box-shadow: var(--shadow-m); }
.route__sugg[hidden] { display: none; }
.route__sugg button { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 12px; border: 0; border-radius: 10px; background: transparent; text-align: left; font: var(--fw-ui) 1rem var(--font-ui); color: var(--c-ink); cursor: pointer; }
.route__sugg button span { font: 400 var(--fs-small) var(--font-text); color: var(--c-ink-soft); }
.route__sugg button:hover, .route__sugg button:focus-visible { background: var(--c-brand-tint); outline: none; }
.route__answer { min-height: 13.5rem; }
.route__card { display: grid; gap: 0.35rem; padding: 20px 22px; border: 1px solid var(--c-line); border-radius: var(--radius-l); background: var(--c-paper); animation: route-card 0.4s var(--ease-out) both; }
.route__card--yes { background: color-mix(in srgb, var(--c-lawn-light) 50%, var(--c-white)); border-color: color-mix(in srgb, var(--c-lawn) 32%, transparent); }
.route__card--no { background: var(--c-paper-alt); }
.route__kicker { display: flex; align-items: center; gap: 8px; margin: 0; font: var(--fw-ui) var(--fs-small) var(--font-ui); color: var(--c-lawn-text); }
.route__card--home .route__kicker { color: var(--c-brand-text); }
.route__card--no .route__kicker { color: var(--c-ink-soft); }
.route__kicker .icon { width: 18px; height: 18px; }
.route__big { margin: 0; font: var(--fw-display) clamp(1.6rem, 1.2rem + 1.1vw, 2.1rem)/1.15 var(--font-display); color: var(--c-ink); }
.route__text { margin: 0; color: var(--c-ink); line-height: 1.5; }
.route__towns { display: flex; flex-wrap: wrap; gap: 6px; }
.route__town { padding: 5px 11px; border: 1px solid color-mix(in srgb, var(--c-lawn) 30%, transparent); border-radius: var(--radius-pill); background: var(--c-white); font: var(--fw-ui) 0.92rem var(--font-ui); color: var(--c-ink); cursor: pointer; }
.route__town:hover, .route__town:focus-visible { border-color: var(--c-cobalt); color: var(--c-brand-text); }
.route__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.1rem; margin-top: 0.6rem; }
.route__call { display: inline-flex; align-items: center; gap: 6px; font: var(--fw-ui) 1rem var(--font-ui); color: var(--c-brand-text); text-decoration: none; }
.route__call .icon { width: 18px; height: 18px; }
@keyframes route-card { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
.route__hint { margin: 0; font-size: var(--fs-small); color: var(--c-ink-soft); }
.route__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.route__chip { padding: 6px 12px; border: 1px solid var(--c-line); border-radius: var(--radius-pill); background: var(--c-white); font: var(--fw-ui) var(--fs-small) var(--font-ui); color: var(--c-ink); cursor: pointer; }
.route__chip:hover { border-color: var(--c-cobalt); }
.route__chip:focus-visible, .route__town:focus-visible { outline: 3px solid var(--c-cobalt); outline-offset: 2px; }
.route__chip[aria-pressed="true"] { background: var(--c-cobalt); border-color: var(--c-cobalt); color: var(--c-on-brand); }
/* the map: the 15 parishes light outward from Maurice once; a pick lights its parish and draws the line from Maurice */
.route__map .map__svg { display: block; width: 100%; height: 100%; border-radius: var(--radius-l); box-shadow: var(--shadow-m); }
.route__map .map__water { fill: var(--c-brand-light); }
.route__map .parish { fill: var(--c-white); stroke: var(--c-line-cool); stroke-width: 0.9; }
.route__map .parish--served { cursor: pointer; fill: color-mix(in srgb, var(--c-lawn-light) 28%, var(--c-white)); stroke: color-mix(in srgb, var(--c-lawn) 30%, var(--c-white)); transition: fill 0.7s var(--ease-out) calc(var(--d, 0) * 1.4s + 0.25s), stroke 0.7s var(--ease-out) calc(var(--d, 0) * 1.4s + 0.25s); }
.route__map[data-on] .parish--served { fill: var(--c-lawn-light); stroke: color-mix(in srgb, var(--c-lawn) 55%, var(--c-white)); }
.route__map[data-picked] .parish--served { transition-duration: 0.35s; transition-delay: 0s; }
.route__map[data-on] .parish--served:hover { fill: color-mix(in srgb, var(--c-lawn) 40%, var(--c-lawn-light)); }
.route__map[data-on] .parish--served.is-pick { fill: color-mix(in srgb, var(--c-cobalt) 32%, var(--c-white)); stroke: var(--c-cobalt); stroke-width: 1.8; }
.route__map .map__town circle { fill: var(--c-brand); stroke: var(--c-white); stroke-width: 1.5; }
.route__map .map__town text { font: var(--fw-strong) 15px var(--font-text); fill: var(--c-ink); paint-order: stroke; stroke: var(--c-white); stroke-width: 3.5px; stroke-linejoin: round; transition: opacity 0.3s ease; }
.route__map[data-target] .map__town text { opacity: 0.18; }
.route__map .map__dot { fill: var(--c-cobalt); stroke: var(--c-white); stroke-width: 3; }
.route__map .map__ring { fill: none; stroke: var(--c-cobalt); stroke-width: 2.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.route__map[data-on] .map__ring { animation: route-ring 1.6s var(--ease-out) 0.15s 2; }
.route__map .map__home-label { font: var(--fw-ui) 17px var(--font-text); fill: var(--c-brand-text); paint-order: stroke; stroke: var(--c-white); stroke-width: 4.5px; stroke-linejoin: round; }
.route__halo { fill: none; stroke: var(--c-white); stroke-width: 9; stroke-opacity: 0.85; stroke-linecap: round; }
.route__path { fill: none; stroke: var(--c-cobalt); stroke-width: 3.2; stroke-dasharray: var(--loop-dash); stroke-linecap: round; }
.route__mask { fill: none; stroke: #fff; stroke-width: 22; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.route__target { opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.route__map[data-target] .route__target { opacity: 1; }
.route__dot { fill: var(--c-cobalt); stroke: var(--c-white); stroke-width: 3; }
.route__ring { fill: none; stroke: var(--c-cobalt); stroke-width: 2.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.route__map[data-target] .route__ring { animation: route-ring 1.4s var(--ease-out) 0.9s 2; }
.route__label { font: var(--fw-ui) 17px var(--font-ui); fill: var(--c-ink); paint-order: stroke; stroke: var(--c-white); stroke-width: 5px; stroke-linejoin: round; }
@keyframes route-ring { from { opacity: 0.9; transform: scale(1); } to { opacity: 0; transform: scale(3.2); } }
@media (max-width: 899px) {
  .route__tool { grid-template-columns: minmax(0, 1fr); grid-template-areas: "side" "map" "parishes"; }
  .route__answer { min-height: 0; }
}
@media (max-width: 640px) {
  .route__map .map__town { display: none; }
  .route__map .map__home-label { font-size: 28px; }
  .route__label { font-size: 28px; stroke-width: 7px; }
  .route__target { transform-origin: 0 0; }
  .route__go { padding-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .route__map .parish--served { transition: none; }
  .route__map .map__ring, .route__map .route__ring { animation: none; }
  .route__card { animation: none; }
}

/* ---------- 3. who comes: the I-Fence truck as a print, ringed by the loop, beside the shop, the hours, the number ---------- */
.who__in { align-items: center; }
.who__facts { display: grid; gap: 0.95rem; margin: 1.4rem 0 0; padding: 0; list-style: none; }
.who__facts li { display: flex; align-items: flex-start; gap: 12px; }
.who__facts .icon { flex: none; width: 24px; height: 24px; margin-top: 2px; color: var(--c-cobalt); }
.who__facts span { color: var(--c-ink); line-height: 1.45; }
.who__facts b { display: block; font: var(--fw-ui) var(--fs-small) var(--font-ui); color: var(--c-ink-soft); }
.who__facts a { font-weight: var(--fw-strong); color: var(--c-brand-text); }
.who__media { display: grid; justify-items: center; }
.who__print { width: min(100%, 620px); }
@media (max-width: 899px) { .who__in { grid-template-columns: minmax(0, 1fr); } .who__media { order: 2; } }
