/* ==========================================================================
   sections/locations.css — the locations hub city grid, plus the shared
   bits of the nine city pages (facts strip, map slot, review slot).
   Reuses hero, services cards, proof stats, how-we-work hours and the
   service-page sections for the content-won cities.
   ========================================================================== */

/* --- Hub: the city grid ------------------------------------------------- */
.loc-hub {
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
  border-bottom: 1px solid var(--paper-edge);
}

/* Inline clickable phone number in the copy */
.text-call {
  color: var(--red-ink);
  font-weight: 600;
  text-decoration: none;
}

.text-call:hover { color: var(--red); }

.loc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: var(--grid-gap);
  margin-top: clamp(2rem, 4vw, 3rem);
}

.loc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: clamp(1.25rem, 2.5vw, 1.6rem);
  background: var(--white);
  border: 1px solid var(--paper-edge);
  border-radius: var(--radius-lg);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.loc-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.loc-card__link { position: absolute; inset: 0; z-index: 1; }

.loc-card__link:focus-visible {
  outline: 2.5px solid var(--red);
  outline-offset: 3px;
  border-radius: var(--radius-lg);
}

.loc-card h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--step-1);
}

.loc-card h3 svg { width: 18px; height: 18px; flex: none; color: var(--red); }

.loc-card p { color: var(--ink-soft); font-size: var(--step--1); line-height: 1.5; }

.loc-card__cue {
  margin-top: var(--sp-2);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step--1);
  color: var(--red-ink);
}

.loc-card__cue svg { width: 15px; height: 15px; transition: transform 0.25s var(--ease); }
.loc-card:hover .loc-card__cue svg { transform: translateX(3px); }

/* --- Map slot: full-window-minus-gutter, like the parts-counter photo --- */
.loc-map {
  margin-top: clamp(2rem, 4vw, 3rem);
  margin-inline: calc(50% - 50vw + var(--gutter));
  aspect-ratio: 21 / 8;
  min-height: 280px;
}

/* Below 735px the ratio and the 280px floor would force this wider than the
   screen. Both agree on 280px at 735px, so the switch is seamless. */
@media (max-width: 735px) {
  .loc-map { aspect-ratio: auto; height: 280px; }
}

/* --- Light city pages: carded service block on white ------------------- */
.loc-services { background: var(--white); }

.loc-services .service-card {
  overflow: hidden;
  border: 1px solid var(--paper-edge);
  border-radius: var(--radius-lg);
  background: var(--paper);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.loc-services .service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.loc-services .service-card__media { border-radius: 0; }

.loc-services .service-card__body { padding: clamp(1.25rem, 2.5vw, 1.75rem); }

/* Even stat spacing on location pages: anchor the three columns to the left,
   centre, and right of the layout so they sit evenly across the container. */
.proof__stats--even .proof__stat:nth-child(1) { text-align: left; }
.proof__stats--even .proof__stat:nth-child(2) { text-align: center; }
.proof__stats--even .proof__stat:nth-child(3) { text-align: right; }

/* --- City page: facts strip (proof numbers + hours + walk-in) ----------- */
.loc-facts {
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
  background: var(--paper);
  border-bottom: 1px solid var(--paper-edge);
}

/* --- City page: second-pass review slot (per-city story lands later) ---- */
.loc-review { padding-block: clamp(3rem, 6vw, 5rem); }
.loc-review .slot { max-width: 640px; margin-inline: auto; }

/* Non-linked city cards (only Lodi links; the rest are info only) */
.loc-card--static { cursor: default; }
.loc-card--static:hover { transform: none; box-shadow: none; }
