/* ============================================================
   WILDMAN - Contact page
   Ported from the "contact" route of the design prototype.
   Values (clamps, ratios, shadows) are carried across as-authored.
   ============================================================ */

/* Hero ------------------------------------------------------ */

/* .wm-pagehead already supplies the padding, rule and gradient
   the prototype specifies; only the corner glow is extra. */
.wm-contact__head-glow {
  position: absolute;
  width: 680px;
  height: 680px;
  right: -14%;
  top: -46%;
  background: radial-gradient(circle, rgba(12, 86, 191, 0.24) 0%, transparent 66%);
  pointer-events: none;
}
.wm-contact__head .wm-pagehead__inner { position: relative; }
.wm-contact .wm-badge--outline {
  letter-spacing: 0.13em;
  background: rgba(90, 155, 255, 0.06);
}
.wm-contact__head .wm-h1 { margin-top: 22px; }
.wm-contact__lead { margin-top: 22px; max-width: 52ch; }

/* The two-column body --------------------------------------- */

.wm-contact__main {
  padding: clamp(60px, 8vw, 110px) var(--wm-gutter);
}
.wm-contact__split {
  max-width: var(--wm-maxw);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: clamp(24px, 3.4vw, 48px);
}

/* Strategy-call card ---------------------------------------- */

.wm-bookcard {
  flex: 2 1 340px;
  min-width: min(100%, 300px);
  background: #fff;
  border: 1px solid var(--wm-border-light);
  border-radius: var(--wm-radius-lg);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.wm-bookcard__head {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: clamp(22px, 2.6vw, 32px);
  border-bottom: 1px solid var(--wm-border-light);
}
.wm-bookcard__title {
  font-family: var(--wm-font-heading);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: var(--wm-weight-bold);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--wm-text-dark);
}
.wm-bookcard__blurb {
  font-family: var(--wm-font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--wm-text-dark-secondary);
  margin-top: 10px;
}
.wm-bookcard__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: var(--wm-radius-pill);
  background: rgba(12, 86, 191, 0.1);
  font-family: var(--wm-font-heading);
  font-size: 12px;
  font-weight: var(--wm-weight-semibold);
  letter-spacing: 0.06em;
  color: var(--wm-blue);
  white-space: nowrap;
}

/* The 1px grid gap over a tinted background is what draws the
   hairline dividers between cells - there are no borders here. */
.wm-bookcard__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr));
  gap: 1px;
  background: var(--wm-border-light);
  border-bottom: 1px solid var(--wm-border-light);
}
.wm-bookstep {
  background: #fff;
  padding: clamp(20px, 2.2vw, 26px);
}
.wm-bookstep__icon {
  width: 38px;
  height: 38px;
  border-radius: var(--wm-radius-btn);
  background: rgba(12, 86, 191, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wm-blue);
}
.wm-bookstep__label {
  font-family: var(--wm-font-heading);
  font-size: 11px;
  font-weight: var(--wm-weight-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wm-blue);
  margin-top: 16px;
}
.wm-bookstep__copy {
  font-family: var(--wm-font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--wm-text-dark-secondary);
  margin-top: 7px;
}

.wm-bookcard__embed { padding: clamp(22px, 2.6vw, 32px); }

/* Third-party booking widgets ship a hard min-width inline, which
   would push the page wider than the viewport on small phones. */
.wm-bookcard__widget { max-width: 100%; }
.wm-bookcard__widget > * {
  max-width: 100% !important;
  min-width: 0 !important;
}

/* Shown only when no embed code is saved. */
.wm-bookcard__fallback {
  border: 1px dashed rgba(12, 86, 191, 0.35);
  border-radius: var(--wm-radius-card);
  padding: clamp(22px, 2.6vw, 34px);
  background: rgba(12, 86, 191, 0.05);
  text-align: center;
}
.wm-bookcard__fallback-label {
  font-family: var(--wm-font-heading);
  font-size: 10px;
  font-weight: var(--wm-weight-semibold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wm-blue);
}
.wm-bookcard__fallback-copy {
  font-family: var(--wm-font-body);
  font-size: 14px;
  line-height: 1.65;
  color: var(--wm-text-dark-secondary);
  margin: 9px auto 0;
  max-width: 44ch;
}
.wm-bookcard__fallback .wm-btn { margin-top: 20px; }

/* Contact tiles --------------------------------------------- */

.wm-contact__aside {
  flex: 1 1 280px;
  min-width: min(100%, 280px);
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.8vw, 18px);
}

.wm-ctile {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--wm-border-light);
  border-radius: var(--wm-radius-lg);
  box-shadow: var(--wm-shadow-card);
  color: inherit;
  text-decoration: none;
  transition: transform var(--wm-transition-spring), box-shadow var(--wm-transition-spring);
}
a.wm-ctile:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.13);
  color: inherit;
}
.wm-ctile__row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  padding: clamp(22px, 2.4vw, 28px);
}
.wm-ctile__icon {
  width: 46px;
  height: 46px;
  border-radius: var(--wm-radius-btn);
  background: var(--wm-gradient-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}
.wm-ctile__text { min-width: 0; }
.wm-ctile__label {
  display: block;
  font-family: var(--wm-font-heading);
  font-size: 11px;
  font-weight: var(--wm-weight-semibold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wm-text-dark-secondary);
}
.wm-ctile__value {
  display: block;
  font-family: var(--wm-font-heading);
  font-size: clamp(18px, 1.9vw, 23px);
  font-weight: var(--wm-weight-semibold);
  color: var(--wm-text-dark);
  margin-top: 5px;
}
.wm-ctile__value--email {
  font-size: clamp(15px, 1.6vw, 19px);
  word-break: break-word;
}

.wm-ctile__map {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  min-height: 170px;
  background: #e9eef4;
  border-top: 1px solid var(--wm-border-light);
}
.wm-ctile__map img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Closing band ---------------------------------------------- */

.wm-contact__cta {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 8vw, 110px) var(--wm-gutter);
  background: var(--wm-gradient-blue);
}
.wm-contact__cta-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 120% at 12% 0%, rgba(27, 174, 205, 0.35) 0%, transparent 58%);
  pointer-events: none;
}
.wm-contact__cta-inner {
  position: relative;
  max-width: var(--wm-maxw);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}
.wm-contact__cta-title {
  font-family: var(--wm-font-heading);
  font-size: clamp(20px, 2.4vw, 32px);
  font-weight: var(--wm-weight-bold);
  letter-spacing: -0.02em;
  color: #fff;
}

/* The embed needs the card's full width before the padding gets
   tight enough to squeeze it on small phones. */
@media (max-width: 480px) {
  .wm-bookcard__embed { padding-inline: 0; }
}

/* Contact form card ----------------------------------------- */

/* Same chrome as the strategy-call card so the two read as one
   system; the embedded widget draws its own 1px border inside. */
.wm-formcard {
  flex: 2 1 340px;
  min-width: min(100%, 300px);
  background: #fff;
  border: 1px solid var(--wm-border-light);
  border-radius: var(--wm-radius-lg);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}
.wm-formcard__head {
  padding: clamp(22px, 2.6vw, 32px);
  border-bottom: 1px solid var(--wm-border-light);
}
.wm-formcard__title {
  font-family: var(--wm-font-heading);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: var(--wm-weight-bold);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--wm-text-dark);
}
.wm-formcard__blurb {
  font-family: var(--wm-font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--wm-text-dark-secondary);
  margin-top: 10px;
  max-width: 52ch;
}
.wm-formcard__embed { padding: clamp(22px, 2.6vw, 32px); }

/* The widget ships inline sizing of its own, same as the booking
   embed, so it needs the same guard against overflowing a phone. */
.wm-formcard__widget { max-width: 100%; }
.wm-formcard__widget > * {
  max-width: 100% !important;
  min-width: 0 !important;
}

.wm-formcard__fallback {
  border: 1px dashed rgba(12, 86, 191, 0.35);
  border-radius: var(--wm-radius-card);
  padding: clamp(22px, 2.6vw, 34px);
  background: rgba(12, 86, 191, 0.05);
  text-align: center;
}
.wm-formcard__fallback-label {
  font-family: var(--wm-font-heading);
  font-size: 10px;
  font-weight: var(--wm-weight-semibold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wm-blue);
}
.wm-formcard__fallback-copy {
  font-family: var(--wm-font-body);
  font-size: 14px;
  line-height: 1.65;
  color: var(--wm-text-dark-secondary);
  margin: 9px auto 0;
  max-width: 44ch;
}

/* Strategy call, now a full-width band below the split -------- */

.wm-contact__book {
  padding: 0 var(--wm-gutter) clamp(60px, 8vw, 110px);
}
.wm-contact__book-inner {
  max-width: var(--wm-maxw);
  margin-inline: auto;
}

/* No longer a flex child, so the card spans the container and the
   three step cells share the full width instead of stacking. */
.wm-contact__book .wm-bookcard {
  flex: none;
  width: 100%;
}

@media (max-width: 480px) {
  .wm-formcard__embed { padding-inline: 0; }
}
