/* Desert Line Auto Glass: location (service-area) pages only, after homepage.css + inner.css.
   No photography: the hero's windshield pane is tinted glass holding the route map; why and mobile run without
   their homepage photos. Everything else comes from the homepage's own section styles. */

/* ---------- hero: the city line, the glass route map ---------- */
.h1--loc .h1-main { font-size: clamp(44px, 6vw, 92px); line-height: .94; }
.h1--loc .h1-rest { max-width: 26ch; }
.h1-brand { display: block; margin-top: .4em; font-family: var(--mono); font-size: .58em; font-weight: 500; letter-spacing: .02em; color: var(--e3); }

.wp .pane { background: none; }
.wp-pane {
  background:
    radial-gradient(70% 60% at 60% 85%, rgba(255, 130, 46, .16), rgba(255, 130, 46, 0) 70%),
    linear-gradient(158deg, rgba(150, 178, 240, .2) 0%, rgba(60, 90, 170, .1) 45%, rgba(20, 30, 70, .2) 100%);
  -webkit-backdrop-filter: blur(1.5px) saturate(1.2); backdrop-filter: blur(1.5px) saturate(1.2);
}
.wp-pane::after {   /* the ceramic frit along the top of a windshield */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 13%; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(3, 5, 12, .9) 0 1.3px, transparent 1.6px) 0 0 / 7px 7px;
  -webkit-mask-image: linear-gradient(180deg, #000 35%, transparent); mask-image: linear-gradient(180deg, #000 35%, transparent);
}
.wp-map { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.wp-grid line { stroke: rgba(237, 242, 251, .07); stroke-width: .15; }
.wp-dots circle { fill: rgba(237, 242, 251, .55); }
.wp-route { stroke: url(#wpLine); stroke-width: .55; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: wpDraw 1.6s var(--ease) 1.2s forwards; }
.wp-glow { fill: url(#wpGlow); opacity: 0; animation: fade 1s var(--ease) 2.4s forwards; }
.wp-home { fill: var(--e1); stroke: #fff; stroke-width: .3; }
.wp-here { fill: var(--e4); }
.wp-ring { fill: none; stroke: var(--e3); stroke-width: .3; transform-box: fill-box; transform-origin: center; animation: wpRing 2.8s var(--ease) 2.6s infinite; opacity: 0; }
@keyframes wpDraw { to { stroke-dashoffset: 0; } }
@keyframes wpRing { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(3.2); opacity: 0; } }
.wp-label {
  position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) / 69 * 100%); transform: translate(12px, -50%);
  font-stretch: 122%; font-size: 10.5px; font-weight: 650; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; color: var(--mist2);
}
.wp-label--l { transform: translate(calc(-100% - 12px), -50%); }
/* placed by site.js (data-pos: r l t b tl tr bl br), which measures the label against the windshield outline */
.wp-pane .wp-label[data-pos="r"] { transform: translate(12px, -50%); }
.wp-pane .wp-label[data-pos="l"] { transform: translate(calc(-100% - 12px), -50%); }
.wp-pane .wp-label[data-pos="t"] { transform: translate(-50%, calc(-100% - 12px)); }
.wp-pane .wp-label[data-pos="b"] { transform: translate(-50%, 12px); }
.wp-pane .wp-label[data-pos="tl"] { transform: translate(calc(-100% + 4px), calc(-100% - 12px)); }
.wp-pane .wp-label[data-pos="tr"] { transform: translate(-4px, calc(-100% - 12px)); }
.wp-pane .wp-label[data-pos="bl"] { transform: translate(calc(-100% + 4px), 12px); }
.wp-pane .wp-label[data-pos="br"] { transform: translate(-4px, 12px); }
.wp-label--here { color: var(--e4); font-size: 12px; opacity: 0; animation: fade .8s var(--ease) 2.4s forwards; }
.wp-coord { position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%); font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--mist2); white-space: nowrap; }

/* ---------- why: no photo; the items in one row under the heading ---------- */
.why--loc { background: var(--g1); }
.why-items--row { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(40px, 5vw, 60px); }
.why-items--row .why-item, .why-items--row .why-item:nth-child(odd), .why-items--row .why-item:nth-child(even) { padding: 30px 26px 34px 0; border-right: 0; }
.why-items--row .why-item + .why-item { padding-left: 26px; border-left: 1px solid var(--line); }
.why-items--row .why-item:nth-child(even)::before { left: 0; }
.why-items--row .why-item + .why-item::before { left: 26px; }

/* ---------- mobile: copy beside the checklist plate ---------- */
.mob-grid--loc { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.mob-plate { padding: clamp(22px, 2.8vw, 34px); border: 1px solid var(--g2); border-radius: 18px; background: rgba(255, 255, 255, .6); }
.mob-plate .checks-label { margin-top: 0; }

@media (max-width: 1180px) { .why-items--row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-items--row .why-item:nth-child(odd) { padding-left: 0; border-left: 0; }
  .why-items--row .why-item:nth-child(odd)::before { left: 0; } }
@media (max-width: 980px) {
  .phero--loc .phero-grid { grid-template-areas: "copy" "media"; }
  .mob-grid--loc { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  /* narrow pane: the city's label above its dot, the main location's below (no clipping at the glass edge) */
  .wp-label, .wp-label--l { transform: translate(-50%, calc(-100% - 12px)); }
  .wp-label--home, .wp-label--home.wp-label--l { transform: translate(-50%, 12px); }
  .why-items--row { grid-template-columns: minmax(0, 1fr); }
  .why-items--row .why-item, .why-items--row .why-item + .why-item { padding: 26px 0 30px; border-left: 0; }
  .why-items--row .why-item + .why-item::before { left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .wp-route { stroke-dashoffset: 0; }
  .wp-glow, .wp-label--here { opacity: 1; }
  .wp-ring { display: none; }
}
