/* ==========================================================================
   CONTACT PAGE
   Extends the existing token system in styles.css (colors, spacing, radius,
   typography). No new tokens are introduced — this file only adds new
   COMPONENTS: a two-column info split, a social links row, and a full-width
   map container. Load this file AFTER styles.css.
   ========================================================================== */

/* ----- Page intro header (title + short standfirst) ----- */
.contact-hero {
  text-align: center;
  padding-block: var(--section-padding-y) 0;
}

.contact-hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.01em;
}

.contact-hero__subtitle {
  margin-top: 0.75rem;
  font-size: var(--fs-body-lg);
  color: var(--surface-text-secondary);
  max-width: 34rem;
  margin-inline: auto;
}

/* ----- Two-column layout: "Get in Touch" | "Our Office" -----
   Mobile-first: single column, stacked. Side-by-side from 768px up,
   matching the breakpoint already used by .feature-split in styles.css. */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Shared card shell for both columns — reuses the same padding/radius/border
   language as .testimonial-card so it feels native to the rest of the site. */
.contact-block {
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  border: 1px solid var(--surface-border);
}

.contact-block__title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: var(--fw-semibold);
  margin-bottom: 1.25rem;
}

/* A single row of contact info: icon + label/value stack */
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.contact-item + .contact-item {
  margin-top: 1.25rem;
}

.contact-item__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--color-accent);
}

.contact-item__icon svg {
  width: 100%;
  height: 100%;
}

.contact-item__label {
  font-size: var(--fs-caption);
  color: var(--surface-text-secondary);
  margin-bottom: 0.15rem;
}

.contact-item__value {
  font-size: var(--fs-body-lg);
  color: var(--surface-text);
  line-height: var(--lh-body);
}

.contact-item__value a:hover {
  color: var(--color-accent);
}

/* ----- Social links row -----
   Sits below the two-column grid, full width, cleanly integrated rather
   than boxed separately — a thin top border ties it to the grid above. */
.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(2rem, 6vw, 4rem);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}

.social-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: var(--fw-semibold);
  color: var(--surface-text);
  transition: color var(--transition-base);
}

.social-link:hover {
  color: var(--color-accent);
}

.social-link__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--surface-border);
  color: var(--surface-text);
  transition: background var(--transition-base), border-color var(--transition-base), color var(--transition-base);
}

.social-link__icon svg {
  width: 24px;
  height: 24px;
}

.social-link:hover .social-link__icon {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #ffffff;
}

/* ----- Map section -----
   Full-bleed slab beneath the contact details. The iframe/container is
   capped with a fixed aspect ratio so it never collapses or overflows,
   and rounded to match the rest of the site's card language. */
.map-section {
  margin-top: clamp(3rem, 6vw, 5rem);
}

.map-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--surface-border);
  background: var(--color-bg-secondary);
}

.map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 600px) {
  .map-frame { aspect-ratio: 4 / 5; }
}
