/* ---------------------------------------------------------------------------
 * home-locations — Locations (Figma 560:656). Moved out of home.css so the
 * block carries its own stylesheet (see inc/block-assets.php).
 *
 * The map itself comes from template-parts/map-embed.php; `.map-embed` stays
 * in shared.css because Contact renders the same part.
 * ------------------------------------------------------------------------- */

.home-locations {
  display: grid;
  grid-template-columns: minmax(0, 1113px) minmax(0, 545px);
  align-items: center;
  justify-content: center;
  gap: 79px;
  padding-block: 58px;
  background: var(--bg, #ffffff);
}

.home-locations .map {
  width: 100%;
  height: auto;
  aspect-ratio: 1113 / 504;
  object-fit: cover;
  border-radius: var(--radius-lg, 11px);
}

.home-locations .details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 31px;
}

.home-locations h2 {
  margin: 0;
  font-size: clamp(32px, 3.33vw, 64px);
  line-height: 1.234;
  color: var(--muted, #909091);
}

.home-locations .contact {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 71px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-locations .contact li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 18px;
  line-height: 1.4444;
  color: var(--muted, #909091);
}

.home-locations .contact .cnm-icon {
  flex: none;
  width: 30px;
  height: 30px;
  color: var(--brand, #008AF7);
}

.home-locations .contact a {
  color: inherit;
}

.home-locations .contact a:hover,
.home-locations .contact a:focus-visible {
  color: var(--brand, #008AF7);
}

/* The Get Directions button and the "See All Locations" link belong together,
   closer to each other than to the contact list above them, so they share the
   theme's `.buttons` wrapper (always parent-scoped — there is no global
   `.buttons` rule) instead of inheriting the 31px `.details` gap. The link
   targets `#locations` on the Contact page; `html { scroll-behavior: smooth }`
   in base.css is what makes it scroll rather than jump. */
.home-locations .buttons {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.home-locations .see-all {
  font-size: 18px;
  line-height: 1.4444;
  color: var(--brand, #008AF7);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-locations .see-all:hover,
.home-locations .see-all:focus-visible {
  text-decoration: none;
}

/* --- Responsive ---------------------------------------------------------- */

@media (max-width: 1399px) {
  .home-locations {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 48px;
  }
}

@media (max-width: 991px) {
  .home-locations {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-block: 48px;
  }

  .home-locations .details {
    padding-inline: var(--gutter);
  }
}

@media (max-width: 767px) {
  .home-locations .contact {
    flex-direction: column;
    gap: 16px;
  }
}

/* --- Editor mirrors ------------------------------------------------------ *
 * See blocks/theme/hero/theme-hero.css for why these exist. Inert on the front
 * end; the `crush-block` container is declared only in assets/css/editor.css.
 * ------------------------------------------------------------------------- */

@container crush-block (max-width: 1399px) {
  .home-locations {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 48px;
  }
}

@container crush-block (max-width: 991px) {
  .home-locations {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-block: 48px;
  }

  .home-locations .details {
    padding-inline: var(--gutter);
  }
}

@container crush-block (max-width: 767px) {
  .home-locations .contact {
    flex-direction: column;
    gap: 16px;
  }
}
