/* ============================================================
   WOODLEY COLLISION — AREAS WE SERVE (archive-service-area.php)
   Follows the site design system: Poppins, 20–24px card radius,
   36px pill buttons, gray-50 hairlines, red (#e11a17) accents.
   Reuses: .breadcrumb, .btn (+ .btn__icon), .cta-banner (home.css).
   Also holds the shared .areas-map block used by
   single-service-area.php and tmpl-areas.php.
   ============================================================ */

/* ---------- Shared bits ---------- */
.areas-hero,
.cities,
.areas-why {
  max-width: var(--container-outer);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Eyebrow pill — neutral bordered pill with a red dot (site style) */
.areas-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-8);
  width: fit-content;
  margin: 0 0 var(--sp-16);
  padding: var(--sp-8) var(--sp-12);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  font-size: 0.75rem;               /* 12px */
  font-weight: 500;
  line-height: 1.333;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #383838;
  white-space: nowrap;
}
.areas-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-red);
  flex-shrink: 0;
}

/* Section titles / subtitles — site standard (28 -> 36px) */
.cities__title,
.areas-services__head h2,
.areas-why h2 {
  margin: 0;
  font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.25rem);
  font-weight: 600;
  line-height: 1.22;
  color: var(--gray-900);
}
.cities__subtitle,
.areas-services__head p,
.areas-why__content p {
  margin: var(--sp-12) 0 0;
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.5;
  color: #555;
}

/* ============================================================
   HERO  (split: text + photo)
   ============================================================ */
.areas-hero {
  padding-top: var(--sp-16);
  padding-bottom: 120px;
}
.areas-hero--split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
}
.areas-hero__title {
  margin: 0;
  font-size: clamp(2.5rem, 1.6rem + 2.8vw, 3.875rem);   /* 40 -> 62px */
  font-weight: 600;
  line-height: 1.06;
  color: var(--gray-900);
  text-wrap: balance;
}
.areas-hero__subtitle {
  margin: var(--sp-20) 0 0;
  max-width: 600px;
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.5;
  color: #555;
}
.areas-hero__support {
  margin: var(--sp-12) 0 0;
  max-width: 600px;
  font-size: var(--fs-body-s);      /* 14px */
  font-weight: 400;
  line-height: 1.571;
  color: #717171;
}
.areas-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-8);
  margin-top: var(--sp-32);
}
.areas-hero__visual {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-50);
  background: var(--gray-100);
  box-shadow: var(--shadow-card);
}
.areas-hero__visual img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* ============================================================
   CITIES  (head + featured shop card + city grid)
   ============================================================ */
.cities {
  padding-bottom: 120px;
}
.cities__head {
  max-width: 760px;
  margin-bottom: var(--sp-36);
}

/* ---------- Featured shop card (dark panel) ---------- */
.shop-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  margin-bottom: var(--sp-16);
  padding: clamp(28px, 3.5vw, 48px);
  background: var(--gray-900);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--white);
}
/* soft red glow in the corner — subtle brand accent */
.shop-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(640px 320px at 0% 0%, rgba(225, 26, 23, 0.16), transparent 60%);
  pointer-events: none;
}
.shop-card__content,
.shop-card__actions { position: relative; }

.shop-card__label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-8);
  margin: 0 0 var(--sp-16);
  padding: var(--sp-8) var(--sp-12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-lg);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.333;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-200);
}
.shop-card__label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-red);
  flex-shrink: 0;
}
.shop-card__title {
  margin: 0;
  font-size: clamp(1.5rem, 1.15rem + 1vw, 2rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--white);
}
.shop-card__desc {
  margin: var(--sp-12) 0 0;
  max-width: 640px;
  font-size: var(--fs-body-s);
  font-weight: 400;
  line-height: 1.571;
  color: var(--gray-200);
}
.shop-card__meta {
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
  margin: var(--sp-20) 0 0;
}
.shop-card__meta li {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  font-size: var(--fs-body-s);
  font-weight: 500;
  line-height: 1.4;
  color: var(--white);
}
.shop-card__meta-icon {
  display: inline-flex;
  color: var(--color-red);
}
.shop-card__meta-icon svg {
  width: 16px;
  height: 16px;
}

.shop-card__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--sp-12);
}
.shop-card__actions .btn {
  justify-content: space-between;
  min-width: 236px;
}
/* White-on-dark buttons (mirrors .cta-banner variants in home.css) */
.shop-card .btn--on-photo {
  background: var(--white);
  color: var(--gray-900);
}
.shop-card .btn--on-photo .btn__icon { background: var(--gray-900); color: var(--white); }
.shop-card .btn--on-photo:hover {
  background: var(--color-red);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(225, 26, 23, 0.35);
}
.shop-card .btn--on-photo:hover .btn__icon { background: var(--white); color: var(--color-red); }
.shop-card .btn--ghost-light {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
}
.shop-card .btn--ghost-light .btn__icon { background: var(--white); color: var(--gray-900); }
.shop-card .btn--ghost-light:hover {
  border-color: var(--color-red);
  background: rgba(225, 26, 23, 0.12);
}
.shop-card .btn--ghost-light:hover .btn__icon { background: var(--color-red); color: var(--white); }

/* ---------- City grid ---------- */
.cities-visit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-16);
}

/* City card — text version of the site's .svc-card language */
.city-visit-card {
  display: flex;
  flex-direction: column;
  padding: var(--sp-24);
  background: var(--white);
  border: 1px solid var(--gray-50);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 2px rgba(0, 0, 0, 0.01);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.city-visit-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}
.city-visit-card__name {
  margin: 0;
  font-size: 1.25rem;               /* 20px */
  font-weight: 600;
  line-height: 1.2;
  color: var(--gray-900);
}
.city-visit-card__rule {
  width: 48px;
  height: 2px;
  margin: var(--sp-8) 0 0;
  background: var(--color-red);
  border: none;
  border-radius: 2px;
}
.city-visit-card__facts {
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
  margin-top: var(--sp-16);
}
.city-visit-card__facts li {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  font-size: var(--fs-body-s);      /* 14px */
  font-weight: 400;
  line-height: 1.4;
  color: #555;
}
.city-visit-card__facts svg {
  width: 16px;
  height: 16px;
  color: var(--color-red);
  flex-shrink: 0;
}
.city-visit-card__desc {
  margin: var(--sp-12) 0 var(--sp-16);
  font-size: var(--fs-body-s);
  font-weight: 400;
  line-height: 1.571;
  color: #555;
}
.city-visit-card__foot {
  display: flex;
  flex-direction: column;
  gap: var(--sp-16);
  margin-top: auto;
}
.city-visit-card__divider {
  height: 1px;
  margin: 0;
  background: var(--gray-50);
  border: none;
}
.city-visit-card__action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-12);
}
.city-visit-card__links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  min-width: 0;
}
.city-visit-card__view {
  font-size: var(--fs-body);        /* 16px */
  font-weight: 500;
  line-height: var(--lh-snug);
  color: var(--gray-900);
  transition: color var(--dur) var(--ease);
}
.city-visit-card__estimate {
  font-size: 0.8125rem;             /* 13px */
  font-weight: 500;
  line-height: 1.4;
  color: #717171;
  transition: color var(--dur) var(--ease);
}
.city-visit-card__estimate:hover { color: var(--color-red); }
.city-visit-card__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-round);
  color: var(--gray-900);
  flex-shrink: 0;
  transition: background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease);
}
.city-visit-card__arrow svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke-width: 1.75;
}
/* Hover: link goes red, arrow fills red (matches .svc-card) */
.city-visit-card:hover .city-visit-card__view { color: var(--color-red); }
.city-visit-card:hover .city-visit-card__arrow {
  background: var(--color-red);
  border-color: var(--color-red);
  color: var(--white);
}

/* ============================================================
   SERVICES  (light band + text service cards + estimate CTA row)
   ============================================================ */
.areas-services {
  background: var(--gray-50);
  padding-block: clamp(60px, 7vw, 96px);
}
.areas-services__head,
.areas-services__grid,
.areas-estimate-cta {
  max-width: var(--container-outer);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.areas-services__head { margin-bottom: var(--sp-36); }
.areas-services__head h2,
.areas-services__head p { max-width: 720px; }

.areas-services__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-16);
}
.areas-service-card {
  display: flex;
  flex-direction: column;
  padding: var(--sp-24);
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  color: inherit;
  text-decoration: none;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.areas-service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}
.areas-service-card h3 {
  margin: 0;
  font-size: 1.125rem;              /* 18px */
  font-weight: 600;
  line-height: 1.22;
  color: var(--gray-900);
}
.areas-service-card p {
  margin: var(--sp-8) 0 var(--sp-24);
  font-size: var(--fs-body-s);
  font-weight: 400;
  line-height: 1.571;
  color: #555;
}
.areas-service-card span {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-8);
  margin-top: auto;
  font-size: var(--fs-body-s);
  font-weight: 500;
  line-height: 1.4;
  color: var(--gray-900);
  transition: color var(--dur) var(--ease);
}
.areas-service-card span svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke-width: 2;
}
.areas-service-card:hover span { color: var(--color-red); }

/* Estimate CTA row (inside the band, below the grid) */
.areas-estimate-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--sp-28);
  align-items: center;
  margin-top: clamp(40px, 5vw, 56px);
  padding-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid var(--gray-200);
}
.areas-estimate-cta h2 {
  margin: 0;
  font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem);
  font-weight: 600;
  line-height: 1.22;
  color: var(--gray-900);
}
.areas-estimate-cta p {
  margin: var(--sp-12) 0 0;
  max-width: 720px;
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.5;
  color: #555;
}
.areas-estimate-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-12);
  justify-content: flex-end;
}
/* outline buttons need a solid fill on the gray band */
.areas-estimate-cta .btn--outline { background: var(--white); }

/* ============================================================
   WHY CHOOSE  (content + 3 feature cards)
   ============================================================ */
.areas-why {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-top: clamp(60px, 7vw, 110px);
  padding-bottom: 120px;
}
.areas-why__content {
  max-width: 640px;
  padding-top: var(--sp-24);
}
.areas-why__list {
  display: grid;
  gap: var(--sp-16);
}
.areas-why__list div {
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
  padding: var(--sp-24);
  background: var(--white);
  border: 1px solid var(--gray-50);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 2px rgba(0, 0, 0, 0.01);
}
.areas-why__list strong {
  display: flex;
  align-items: center;
  gap: var(--sp-12);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.22;
  color: var(--gray-900);
}
.areas-why__list strong::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-red);
  flex-shrink: 0;
}
.areas-why__list span {
  font-size: var(--fs-body-s);
  font-weight: 400;
  line-height: 1.571;
  color: #555;
}

/* ============================================================
   MAP  (shared: single-service-area.php + tmpl-areas.php)
   Same visual language as the contact page map.
   ============================================================ */
.areas-map {
  max-width: var(--container-outer);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-bottom: 120px;
  display: flex;
  flex-direction: column;
  gap: var(--sp-36);
}
.areas-map__head {
  display: flex;
  flex-direction: column;
  gap: var(--sp-12);
  max-width: 600px;
}
.areas-map__title {
  margin: 0;
  font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.25rem);
  font-weight: 600;
  line-height: 1.22;
  color: var(--gray-900);
}
.areas-map__subtitle {
  margin: 0;
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.5;
  color: #555;
}
.areas-map__frame {
  position: relative;
  height: 400px;
  border-radius: 32px;
  overflow: hidden;
  background: var(--gray-50);
}
.areas-map__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: grayscale(0.2) contrast(1.05);
}
.areas-map__card {
  position: absolute;
  top: var(--sp-24);
  left: var(--sp-24);
  max-width: calc(100% - var(--sp-48));
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
  padding: var(--sp-12) var(--sp-16);
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}
.areas-map__card-text {
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: var(--lh-snug);
  color: var(--gray-900);
}
.areas-map__open {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-8);
  font-size: var(--fs-body-s);
  font-weight: 500;
  line-height: 1.571;
  color: var(--color-red);
  transition: opacity var(--dur) var(--ease);
}
.areas-map__open:hover { opacity: 0.75; }
.areas-map__open svg { width: 16px; height: 16px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .areas-services__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .areas-hero--split,
  .shop-card,
  .areas-estimate-cta,
  .areas-why {
    grid-template-columns: 1fr;
  }
  .areas-hero__visual { order: -1; }
  .shop-card__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .shop-card__actions .btn { min-width: 0; }
  .areas-estimate-cta__actions { justify-content: flex-start; }
}

@media (max-width: 900px) {
  .cities-visit-grid,
  .areas-services__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .areas-hero { padding-bottom: 60px; }
  .areas-hero__visual img { aspect-ratio: 4 / 3; }
  .areas-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .areas-hero__actions .btn { width: 100%; justify-content: space-between; }
  .areas-hero__actions .btn--outline { justify-content: space-between; }

  .cities { padding-bottom: 60px; }
  .cities__head { margin-bottom: var(--sp-32); }

  .shop-card { padding: var(--sp-24); }
  .shop-card__actions { flex-direction: column; }
  .shop-card__actions .btn { width: 100%; justify-content: space-between; }

  .cities-visit-grid,
  .areas-services__grid {
    grid-template-columns: 1fr;
  }
  .city-visit-card { padding: var(--sp-20); }

  .areas-services { padding-block: 60px; }
  .areas-services__head { margin-bottom: var(--sp-32); }
  .areas-estimate-cta__actions { width: 100%; }
  .areas-estimate-cta__actions .btn { width: 100%; justify-content: space-between; }
  .areas-estimate-cta__actions .btn--outline { justify-content: space-between; }

  .areas-why {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .areas-map { padding-bottom: 60px; }
  .areas-map__frame { height: 300px; border-radius: 24px; }
}

/* ============================================================
   AREA SEARCH — live filter for the city grid.
   Sits under the main-location card, left-aligned; field + button
   mirror the blog archive search.
   ============================================================ */
.cities-search {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-8);
  margin-top: var(--sp-32);
  margin-bottom: var(--sp-24);
}
.cities-search__bar {
  display: flex;
  gap: var(--sp-12);
}
.cities-search__field {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  width: 343px;
  height: 54px;
  padding: var(--sp-12) var(--sp-16);
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.cities-search__field:focus-within {
  border-color: var(--gray-200);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.04);
}
.cities-search__icon {
  display: inline-flex;
  color: #8d8d8d;
  flex: 0 0 auto;
}
.cities-search__icon svg { width: 20px; height: 20px; }
.cities-search__input {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  color: var(--gray-900);
}
.cities-search__input::placeholder { color: var(--gray-300); }
.cities-search__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.cities-search__btn {
  width: 110px;
  flex-shrink: 0;
  justify-content: center;
}
.cities-search__count {
  font-size: var(--fs-body-s);
  color: var(--gray-300);
  min-height: 1.2em;
  margin: 0;
}
.cities-empty {
  margin-top: var(--sp-24);
  text-align: center;
  font-size: var(--fs-body);
  color: #555;
}
@media (max-width: 600px) {
  .cities-search { width: 100%; margin-top: var(--sp-24); }
  .cities-search__bar { flex-direction: column; width: 100%; }
  .cities-search__field { width: 100%; height: 48px; }
  .cities-search__btn { width: 100%; }
}
