/* =========================================================================
   Contact (/contact-us/) — page styles
   Sections: contact details + map (.contact-top), groups & events form
   (.contact-groups / .contact-gform), closing photo band (.contact-banner).
   The navbar is the solid default (no data-nav on <body>), threshold 40.
   ========================================================================= */

/* Reveal: the HIFI rises 30px with no scale over 700ms, at every width (its
   phone rule `[data-reveal="in"]{transform:none}` only pins the end state, so
   phones rise too). Higher specificity than base.css's 24px phone value.
   contact.js also plays it on load for the blocks already on screen. */
body[data-page="contact"] [data-reveal] {
  --reveal-y: 30px;
  --reveal-scale: 1;
  --reveal-fade: 700ms;
  --reveal-move: 700ms;
}

/* Display heading shared by the h1 ("contact") and the h2 ("groups & events"). */
.contact-title {
  font-size: clamp(36px, 4.4vw, 52px);
  line-height: 1.06;
}

/* ---- 1. Contact details + map ------------------------------------------ */
.contact-top {
  padding: 140px 24px 88px; /* the 140px top clears the fixed navbar */
  background: var(--stucco-50);
}
.contact-top__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  align-items: stretch;
  gap: 56px;
  max-width: 1168px; /* one-off HIFI column, wider than .eb-container */
  margin: 0 auto;
}
.contact-top__info {
  display: grid;
  align-content: start;
  gap: 28px;
}
.contact-top__heading {
  display: grid;
  gap: 16px;
  margin-bottom: 8px;
}
.contact-top__eyebrow { line-height: 1; }

.contact-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.contact-row__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-circle);
  background: var(--vermillion-100);
  color: var(--vermillion-600);
}
.contact-row__link,
.contact-row__label {
  color: var(--text-heading);
  font: 600 18px/1.3 var(--font-sans);
  text-decoration: none;
}
.contact-row__link:hover { color: var(--vermillion-500); }
.contact-row__link--mail { word-break: break-word; }
.contact-row__text {
  display: grid;
  gap: 4px;
}
.contact-row__note {
  color: var(--ink-700);
  font: 400 15px/1.5 var(--font-sans);
}

.contact-map {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  background: var(--stucco-200);
}
.contact-map iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---- 2. Groups & events ------------------------------------------------- */
/* Driving directions: three routes, numbered steps. */
.contact-directions { padding: 64px 24px 72px; }
.contact-directions__inner {
  display: grid;
  gap: 28px;
  max-width: 1168px;
  margin: 0 auto;
}
.contact-directions__heading { display: grid; gap: 12px; }
.contact-directions__lede {
  max-width: 62ch;
  color: var(--text-body);
  line-height: 1.7;
}
.contact-directions__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 28px 40px;
}
.contact-directions__from { margin-bottom: 4px; }
.contact-directions__total {
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: var(--text-small);
  line-height: 1.5;
}
.contact-directions__steps {
  display: grid;
  gap: 8px;
  padding-left: 1.25em;
  list-style: decimal;
  color: var(--text-body);
  font-size: var(--text-small);
  line-height: 1.7;
}
.contact-directions__steps li::marker { color: var(--text-muted); }
.contact-directions__note {
  color: var(--text-muted);
  font-size: var(--text-small);
  line-height: 1.7;
}

.contact-groups {
  padding: 64px 24px 72px;
  border-top: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
  background: var(--white);
}
.contact-groups__inner,
.contact-groups__body {
  display: grid;
  gap: 28px;
}
.contact-groups__inner {
  max-width: 1168px;
  margin: 0 auto;
}
.contact-groups__body[hidden] { display: none; }
.contact-groups__heading {
  display: grid;
  gap: 12px;
}
/* 64ch is measured in the 16px body font, so it sits on the paragraph itself. */
.contact-groups__text {
  max-width: 64ch;
  color: var(--ink-700);
  font-size: 16px;
  line-height: 1.7;
  text-wrap: pretty;
}
.contact-groups__success-title { font-size: 28px; }

.contact-gform {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 20px;
}
.contact-gform__type { grid-column: span 2; }
.contact-gform__wide,
.contact-gform__actions { grid-column: 1 / -1; }
.contact-gform__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}
.contact-gform__call strong { font-weight: 800; }
/* The HIFI submit is borderless with 28px side padding (198 x 52). */
.contact-gform__submit {
  padding: 0 28px;
  border: 0;
}

/* ---- 3. Closing photo band --------------------------------------------- */
.contact-banner { --band-min-mobile: 440px; }
.contact-banner__actions {
  flex-wrap: nowrap;
  gap: 16px;
}

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 980px) {
  .contact-top { padding-top: 120px; }
  .contact-top__grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-map { min-height: 340px; }
  .contact-gform { grid-template-columns: 1fr 1fr; }
  .contact-gform__type { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .contact-gform { grid-template-columns: 1fr; }
}
/* Landscape phones keep the banner's desktop minimum height and padding
   (the HIFI's 440px / 40px 20px phone values are portrait-only). */
@media (max-width: 760px) and (orientation: landscape) {
  .contact-banner { --band-min-mobile: min(52vh, 400px); }
  .contact-banner .eb-photo-band__inner { padding: 48px 24px; }
}
/* Phones upright: one column, the form pairs only Check-in and Check-out,
   and the actions stack with Send enquiry on top. */
@media (max-width: 760px) and (orientation: portrait) {
  .contact-top { padding: 96px 18px 48px; }
  .contact-top__grid { gap: 28px; }
  .contact-map { min-height: 300px; }
  .contact-groups { padding: 44px 18px 52px; }
  .contact-gform {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .contact-gform > :not(.contact-gform__date) { grid-column: 1 / -1; }
  .contact-gform__actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .contact-gform__actions > * {
    width: 100%;
    justify-content: center;
  }
}
/* Below 360px two date fields side by side cut the date off ("12/09/202"), so each takes the full width (FX-67). */
@media (max-width: 359px) {
  .contact-gform__date { grid-column: 1 / -1; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .contact-top { padding: 84px 28px 44px; }
  .contact-top__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px;
  }
  .contact-map { min-height: 300px; }
  .contact-groups { padding: 40px 28px 48px; }
  .contact-gform { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* 44px chips on landscape phones too (components.css only does this at ≤760). */
  .contact-gform .eb-chip__text { height: 44px; }
  .contact-banner .eb-photo-band__inner {
    display: flex;
    justify-content: center;
  }
  .contact-banner .eb-photo-band__card { text-align: center; }
}
/* The details and the map sit side by side only from 568px wide. In a narrower short window (a desktop window at
   400% zoom is 320 × 256) each column was 118px: Firefox doesn't break "707-963-3216", so the details ran under the
   map and the phone, email and address were cut off. They stack there instead (WCAG 1.4.10; EB-097, 13 Nov 2026). */
@media (orientation: landscape) and (max-height: 500px) and (max-width: 567px) {
  .contact-top__grid { grid-template-columns: minmax(0, 1fr); }
}

/* Touch screens: 44×44px minimum hit area for the phone, email and address rows,
   as components.css does for buttons and text links. Nothing moves. */
@media (pointer: coarse) {
  .contact-row__link { position: relative; }
  .contact-row__link::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: max(100%, 44px);
    height: max(100%, 44px);
    transform: translate(-50%, -50%);
  }
}
