/* Figma (node 506:2231): the map is the page's hero-position image — it
   sits at the same size/inset/radius a photo hero would, just with an
   <iframe> instead of an <img> filling the box. --space-hero-inset (not
   the wider --space-section-x the cards below use) matches the design's
   tighter ~20px side margin on this element specifically. */
.contact-hero {
  aspect-ratio: 390 / 400;
  padding: 0 var(--space-hero-inset);
}

@media (min-width: 1024px) {
  .contact-hero {
    aspect-ratio: 1728 / 500;
    padding: var(--space-xs) var(--space-hero-inset) 0;
  }
}

.contact-hero__map {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-hero);
  /* Leaflet needs to clip its own tile layer to the container's rounded
     corners itself (border-radius on the container alone doesn't clip a
     child canvas/tile-pane in every browser the way it does an <img>). */
  overflow: hidden;
}

.contact-cards {
  background: var(--color-cream);
  /* Top is intentionally much tighter than the other sides — this section
     sits directly under the map hero, which already has its own bottom
     inset, so the old matching --space-lg here doubled up into a much
     bigger gap than the equivalent space above the map. */
  padding: var(--space-xs) var(--space-section-x) var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-card {
  flex: 1;
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-md);
  color: var(--color-cream);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-card--olive {
  background: var(--color-olive);
}

.contact-card--maroon {
  background: var(--color-maroon);
}

.contact-card__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--fs-section-title);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.contact-card__detail {
  display: flex;
  flex-direction: column;
  gap: 0.4em;
}

.contact-card__label {
  /* Figma: full-opacity cream, not dimmed — unlike the equivalent label
     elsewhere on the site (e.g. .story__label), this one isn't faded. */
  font-size: var(--fs-label);
  text-transform: uppercase;
}

.contact-card__value {
  font-size: var(--fs-value);
  text-transform: uppercase;
  line-height: 1.4;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5em;
  overflow-wrap: anywhere;
}

.contact-card__link-icon {
  width: 1em;
  height: 1em;
}

.contact-card__value--email {
  text-transform: lowercase;
}

/* Pairs the "Get in touch" detail with the social row so the icons sit
   level with it — specifically with the email, its last line — on the
   opposite side of the card, instead of the icons dropping to the card's
   own bottom edge on their own. Replaces the plain stacked layout the
   other .contact-card__detail block (Address) still uses above this. */
.contact-card__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-md);
  margin-top: auto;
}

.contact-card__social {
  /* Figma (node 506:2508): the 3 icon assets are each a 60x56 box with
     generous built-in padding around the glyph, laid out with no extra
     gap between them — they read as one unbroken row, not 3 separated
     buttons. */
  display: flex;
  flex-shrink: 0;
}

.contact-card__social a {
  width: 3rem;
  aspect-ratio: 60 / 56;
  display: flex;
  opacity: 0.85;
  transition: opacity 0.15s ease;
}

.contact-card__social a:hover {
  opacity: 1;
}

.contact-card__social img {
  width: 100%;
  height: 100%;
}

@media (min-width: 1024px) {
  .contact-cards {
    flex-direction: row;
  }
}
