/* Contact-page additions. The shared stylesheet remains the source of the
   brand's colors, typography, controls, container and global rhythm. */
.contacts-page {
  --contacts-section-space: 130px;
  --contacts-divider-space: 65px;
  --contacts-value-size: clamp(20px, 2.1vw, 28px);
}

.contacts-hero {
  padding-bottom: 0;
}

.contacts-hero .hero-top {
  margin-bottom: 0;
}

/* Mirrors the dedicated About-page hero scale so the route title remains
   the first typographic level before the editorial section headings. */
.contacts-hero .hero-title {
  font-size: clamp(40px, 4vw, 54px);
}

@media (min-width: 961px) {
  .contacts-hero .hero-top {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 440px) minmax(0, 1fr);
  }

  .contacts-hero .hero-lead {
    width: 100%;
    max-width: none;
    justify-self: center;
    text-align: center;
  }
}

.contacts-page .section {
  margin-top: var(--contacts-divider-space);
  padding-top: var(--contacts-divider-space);
  border-top: 1px solid var(--border);
}

.contacts-details-layout {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: stretch;
}

.contacts-details-image {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: var(--bg-alt);
}

.contacts-details-image {
  width: 100%;
}

.contacts-details-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.contacts-details-placeholder {
  display: grid;
  width: 100%;
  min-height: 0;
  align-self: stretch;
  place-items: center;
  padding: 24px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-head);
  font-size: clamp(22px, 2vw, 32px);
  font-weight: 400;
  font-synthesis: none;
  line-height: .98;
  text-align: center;
}

.contact-list {
  margin: 0;
  border-top: 1px solid var(--border);
}

.contact-list-item {
  display: grid;
  grid-template-columns: minmax(130px, .35fr) minmax(0, 1fr);
  gap: 24px;
  padding: clamp(22px, 2.5vw, 36px) 0;
  border-bottom: 1px solid var(--border);
}

.contact-list dt {
  color: var(--text-muted);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--ls-label);
  line-height: var(--lh-label);
}

.contact-list dd {
  min-width: 0;
  max-width: 100%;
  margin: 0;
  font-family: var(--font-head);
  font-size: var(--contacts-value-size);
  font-weight: 400;
  font-synthesis: none;
  line-height: 1.05;
  justify-self: end;
  text-align: right;
  overflow-wrap: anywhere;
}

.contact-list-item-phone dd {
  font-size: var(--contacts-value-size);
}

.contact-list dd > a,
.contact-socials dd {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-end;
  gap: 12px 24px;
}

.contact-list dd a {
  text-decoration-line: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

.contact-list dd a:hover {
  color: var(--text-muted);
  text-decoration-color: currentColor;
}

.contact-placeholder {
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 500;
  line-height: 1.4;
}

.contact-socials dd {
  font-size: var(--contacts-value-size);
}

.contacts-map-heading {
  margin-bottom: clamp(32px, 4vw, 56px);
}

.contacts-map {
  position: relative;
  width: 100%;
  min-height: clamp(520px, 38vw, 600px);
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}

.contacts-map iframe {
  display: block;
  width: 100%;
  height: clamp(520px, 38vw, 600px);
  border: 0;
}

.contacts-map-open {
  position: absolute;
  right: 20px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg);
  color: var(--text);
  font-size: var(--fs-body-small);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.contacts-map-open:hover {
  background: var(--text);
  color: var(--bg);
}

.contacts-map-caption {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding-top: 20px;
}

.contacts-map-caption p {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

.contacts-map-caption .contact-placeholder {
  font-size: inherit;
  line-height: inherit;
}

.contacts-route {
  flex-shrink: 0;
  font-size: var(--fs-body-small);
  line-height: var(--lh-body-small);
  text-decoration-line: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

.contacts-route:hover {
  color: var(--text-muted);
  text-decoration-color: currentColor;
}

.contacts-form-section {
  padding-bottom: clamp(72px, 8vw, 120px);
}

@media (max-width: 960px) {
  .contacts-page {
    --contacts-section-space: var(--section-space-mobile);
    --contacts-divider-space: 40px;
  }

  .contacts-details-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .contacts-details-image {
    width: min(100%, 620px);
    aspect-ratio: 4 / 5;
  }

  .contacts-map,
  .contacts-map iframe {
    min-height: 480px;
    height: 480px;
  }
}

@media (max-width: 768px) {
  .contacts-page {
    --mobile-x: 20px;
    --contacts-section-space: 64px;
    --contacts-divider-space: 32px;
    --contacts-value-size: 22px;
    --header-height: 69px;
  }

  .contacts-page .container {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-left: var(--mobile-x);
    padding-right: var(--mobile-x);
  }

  .contacts-page .header-inner {
    height: 68px;
  }

  .contacts-page .logo-mark {
    height: 42px;
  }

  .contacts-page .nav-toggle {
    display: flex;
    width: 40px;
    height: 40px;
  }

  .contacts-page .mobile-nav {
    top: 68px;
    height: calc(100dvh - 68px);
    padding: 20px 20px max(24px, env(safe-area-inset-bottom));
  }

  .contacts-page .hero {
    padding-top: 38px;
  }

  .contacts-hero .hero-title {
    margin-bottom: 16px;
    font-size: 44px;
    line-height: .95;
  }

  .contacts-hero .hero-lead {
    margin-bottom: 22px;
    font-size: 16px;
    line-height: 1.5;
  }

  .contacts-details-section .section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: start;
  }

  .contacts-details-section .section-heading h2 {
    min-width: 0;
    font-size: 34px;
    line-height: .95;
  }

  .contacts-details-section .section-number {
    margin-left: 0;
    font-size: 38px;
    line-height: .9;
  }

  .contacts-details-layout {
    gap: 28px;
  }

  .contacts-details-image {
    width: 100%;
    aspect-ratio: 4 / 3;
  }

  .contacts-details-placeholder {
    min-height: clamp(180px, 50vw, 280px);
    aspect-ratio: auto;
  }

  .contact-list-item {
    grid-template-columns: minmax(120px, .35fr) minmax(0, 1fr);
    gap: 16px;
    align-items: baseline;
    padding: 24px 0;
  }

  .contact-list dt {
    white-space: nowrap;
  }

  .contact-socials dd {
    flex-wrap: nowrap;
  }

  .contact-placeholder {
    font-size: 17px;
    line-height: 1.45;
  }

  .contacts-map-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: start;
  }

  .contacts-map-heading h2 {
    min-width: 0;
    font-size: 34px;
    line-height: .95;
  }

  .contacts-map-heading .section-number {
    margin-left: 0;
    font-size: 38px;
    line-height: .9;
  }

  .contacts-map,
  .contacts-map iframe {
    min-height: clamp(400px, 110vw, 450px);
    height: clamp(400px, 110vw, 450px);
  }

  .contacts-map-open {
    right: 12px;
    bottom: 12px;
    padding: 11px 12px;
    font-size: 14px;
  }

  .contacts-map-caption {
    flex-direction: column;
    gap: 12px;
    padding-top: 16px;
  }

  .contacts-map-caption p {
    font-size: 16px;
    line-height: 1.5;
  }

  .contacts-route {
    font-size: 16px;
  }

}
