/* Contact-page composition for the Wild Expedition design. */

.rt-page-contact .rt-page-hero {
  min-height: 480px;
  background-position: center 40%;
}

.rt-page-contact .rt-page-hero-copy {
  max-width: 760px;
}

.rt-contact-section {
  padding-block: 62px 72px;
}

.rt-contact-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 430px);
  align-items: end;
  gap: 42px;
  margin-bottom: 30px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--rt-page-line);
}

.rt-contact-heading h2 {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--rt-page-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4vw, 3.55rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.rt-contact-heading > p {
  margin: 0;
  color: var(--rt-page-muted);
  line-height: 1.65;
}

.rt-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  gap: 24px;
}

.rt-contact-card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid rgba(42, 35, 25, .18);
  border-radius: 12px;
  box-shadow: var(--rt-page-shadow);
}

.rt-contact-card--primary {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(32px, 5vw, 58px);
  color: #f4efe3;
  background:
    linear-gradient(90deg, rgba(7, 11, 8, .96), rgba(7, 11, 8, .76) 58%, rgba(7, 11, 8, .34)),
    linear-gradient(180deg, rgba(7, 11, 8, .1), rgba(7, 11, 8, .7)),
    url('/assets/images/wild-expedition/hero-background.png') 70% center / cover no-repeat;
}

.rt-contact-card--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 76% 18%, rgba(201, 177, 125, .18), transparent 22rem),
    radial-gradient(circle at 18% 82%, rgba(151, 163, 107, .14), transparent 20rem);
}

.rt-contact-card--primary > * {
  position: relative;
  z-index: 1;
}

.rt-contact-label {
  margin: 0 0 14px;
  color: #aebc82;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.rt-contact-card h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 4vw, 3.7rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.rt-contact-card--primary > p:not(.rt-contact-label) {
  max-width: 590px;
  margin: 18px 0 0;
  color: rgba(244, 239, 227, .82);
  font-size: 16px;
  line-height: 1.65;
}

.rt-contact-email {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin-top: 28px;
  padding: 14px 18px;
  border: 1px solid rgba(225, 215, 188, .14);
  border-radius: 8px;
  background: linear-gradient(180deg, #7e8e56, #637341);
  color: #fff;
  font-size: clamp(.95rem, 2vw, 1.08rem);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.rt-contact-email::after {
  content: "→";
  margin-left: 12px;
}

.rt-contact-card--details {
  padding: clamp(28px, 4vw, 42px);
  color: var(--rt-page-ink);
  background:
    linear-gradient(rgba(252, 248, 239, .88), rgba(239, 229, 213, .92)),
    url('/assets/images/wild-expedition/paper-texture.png') center / cover no-repeat;
}

.rt-contact-card--details h2 {
  font-size: clamp(1.9rem, 3vw, 2.65rem);
}

.rt-contact-details {
  margin: 28px 0 0;
}

.rt-contact-detail {
  display: grid;
  gap: 5px;
  padding: 18px 0;
  border-top: 1px solid var(--rt-page-line);
}

.rt-contact-detail:last-child {
  border-bottom: 1px solid var(--rt-page-line);
}

.rt-contact-detail dt {
  color: #746b5d;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.rt-contact-detail dd {
  margin: 0;
  color: #342f27;
  font-size: 16px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.rt-contact-detail a {
  color: #4f6537;
  font-weight: 700;
}

.rt-contact-note {
  margin: 22px 0 0;
  color: var(--rt-page-muted);
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 820px) {
  .rt-contact-heading,
  .rt-contact-grid {
    grid-template-columns: 1fr;
  }

  .rt-contact-heading {
    align-items: start;
    gap: 18px;
  }

  .rt-contact-card {
    min-height: 0;
  }

  .rt-contact-card--primary {
    min-height: 390px;
  }
}

@media (max-width: 640px) {
  .rt-page-contact .rt-page-hero {
    min-height: 420px;
    background-position: 62% top;
  }

  .rt-page-contact .rt-page-hero-copy {
    padding-block: 48px 92px;
  }

  .rt-contact-section {
    padding-block: 40px 50px;
  }

  .rt-contact-heading {
    margin-bottom: 22px;
  }

  .rt-contact-card--primary,
  .rt-contact-card--details {
    padding: 26px 22px;
  }

  .rt-contact-card--primary {
    min-height: 360px;
  }

  .rt-contact-email {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}
