/* ------------------------------------------------------------------ *
 * Contact page (p589)                                                  *
 * Built on the shared tokens in ui.css — no new colours or fonts.      *
 * ------------------------------------------------------------------ */

.p589 main { padding-block: 0 56px; }

/* --- hero ----------------------------------------------------------- */
.cx-hero {
  position: relative;
  margin: 0 auto 0;
  max-width: 1180px;
  padding-inline: 20px;
}
.cx-hero-media {
  position: relative;
  border-radius: var(--ui-r-lg);
  overflow: hidden;
  aspect-ratio: 21 / 9;
  box-shadow: var(--ui-sh);
}
.cx-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cx-hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(12,16,22,.86) 0%, rgba(12,16,22,.62) 46%, rgba(12,16,22,.12) 100%);
}
.cx-hero-inner {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  max-width: 620px;
  padding: 0 clamp(22px, 4vw, 54px);
  color: #fff;
}
.cx-eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #f1ddce;
}
.cx-title {
  font-family: 'Staatliches', 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: clamp(38px, 5.4vw, 66px);
  line-height: 1.04;
  margin: 0;
  color: #fff;
}
.cx-lede {
  margin: 0;
  font-size: clamp(14.5px, 1.25vw, 16.5px);
  line-height: 1.6;
  color: rgba(255,255,255,.9);
  max-width: 52ch;
}
.cx-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.cx-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px;
  padding: 15px 26px;
  border: 1.5px solid rgba(255,255,255,.6);
  border-radius: 999px;
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  transition: background-color .18s var(--ui-ease), border-color .18s var(--ui-ease);
}
.cx-ghost:hover, .cx-ghost:focus { background: rgba(255,255,255,.14); border-color: #fff; color: #fff; }

/* --- quick contact cards -------------------------------------------- */
.cx-quick { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.cx-quick-grid {
  list-style: none;
  margin: -56px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  position: relative;
  z-index: 2;
}
.cx-qcard {
  background: #fff;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-r);
  box-shadow: var(--ui-sh);
  padding: 24px 22px;
}
.cx-qico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--ui-brand-tint);
  margin-bottom: 12px;
}
.cx-qico .e-i { width: 18px; height: 18px; fill: var(--ui-brand-dk); }
.cx-qico-sm { width: 32px; height: 32px; border-radius: 9px; margin: 0 10px 0 0; vertical-align: middle; }
.cx-qico-sm .e-i { width: 14px; height: 14px; }
.cx-qcard h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase;
  color: var(--ui-muted);
  margin: 0 0 6px;
}
.cx-qcard p { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--ui-ink); font-weight: 600; }
.cx-qcard a { color: var(--ui-ink); }
.cx-qcard a:hover, .cx-qcard a:focus { color: var(--ui-brand-dk); text-decoration: underline; text-underline-offset: 3px; }
.cx-qmeta { margin-top: 6px !important; font-size: 13px !important; font-weight: 400 !important; color: var(--ui-muted) !important; }

/* --- form + sidebar grid -------------------------------------------- */
.cx-main { max-width: 1180px; margin: 0 auto; padding: 44px 20px 0; }
.cx-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.cx-form-card, .cx-hours, .cx-map-card, .cx-before-inner {
  background: #fff;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-r-lg);
  box-shadow: var(--ui-sh);
}
.cx-form-card { padding: 34px 34px 30px; }
.cx-h2 {
  font-family: 'Staatliches', 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: 1.15;
  color: var(--ui-ink);
  margin: 0 0 10px;
}
.cx-h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: var(--fs-h4);
  line-height: 1.3;
  color: var(--ui-ink);
  margin: 0 0 12px;
  display: flex; align-items: center;
}
.cx-sub { margin: 0 0 22px; color: var(--ui-body); font-size: 15px; line-height: 1.65; max-width: 62ch; }

/* --- form ----------------------------------------------------------- */
.cx-hp { position: absolute; left: -9999px; }
.cx-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cx-field { display: flex; flex-direction: column; margin-bottom: 16px; }
.cx-field label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ui-ink);
  margin-bottom: 6px;
}
.cx-req { color: var(--ui-brand-dk); }
.cx-opt { color: var(--ui-muted); font-weight: 400; }
.cx-field input, .cx-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  color: var(--ui-ink);
  background: #fff;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-r-sm);
  transition: border-color .16s var(--ui-ease), box-shadow .16s var(--ui-ease);
}
.cx-field textarea { min-height: 128px; resize: vertical; line-height: 1.6; }
.cx-field input:hover, .cx-field textarea:hover { border-color: #cfd5de; }
.cx-field input:focus, .cx-field textarea:focus {
  outline: none;
  border-color: var(--ui-brand);
  box-shadow: var(--ui-ring);
}
.cx-hint { margin-top: 6px; font-size: 12.5px; line-height: 1.5; color: var(--ui-muted); }
.cx-actions { margin-top: 6px; }
.cx-actions .btn-e { min-height: 48px; }

/* --- sidebar -------------------------------------------------------- */
.cx-side { display: flex; flex-direction: column; gap: 24px; }
.cx-map-card { padding: 14px; }
.p589 .map { position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--ui-r-sm); overflow: hidden; border: 1px solid var(--ui-line); }
.p589 .map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-fallback { margin: 10px 4px 2px; font-size: 13.5px; line-height: 1.5; }
.map-fallback a { color: var(--ui-brand-dk); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.cx-hours { padding: 26px 24px; }
.cx-dl { margin: 0 0 16px; display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; font-size: 14.5px; }
.cx-dl dt { color: var(--ui-body); }
.cx-dl dd { margin: 0; color: var(--ui-ink); font-weight: 600; text-align: end; }
.cx-note-sm { margin: 0; font-size: 13px; line-height: 1.65; color: var(--ui-muted); }
.cx-note-sm a { color: var(--ui-brand-dk); text-decoration: underline; text-underline-offset: 3px; }

/* --- how we can help ------------------------------------------------ */
.cx-help { max-width: 1180px; margin: 0 auto; padding: 44px 20px 0; }
.cx-help-inner { padding: 0; }
.cx-help .cx-h2 { margin-bottom: 20px; }
.cx-help-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.cx-help-card {
  background: #fff;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-r);
  box-shadow: var(--ui-sh-sm);
  padding: 24px 24px 22px;
  transition: transform .2s var(--ui-ease), box-shadow .2s var(--ui-ease);
}
.cx-help-card:hover { transform: translateY(-3px); box-shadow: var(--ui-sh); }
.cx-help-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: #eaf6f0;
  margin-bottom: 12px;
}
.cx-help-ico .e-i { width: 16px; height: 16px; fill: #2e7d63; }
.cx-help-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 16.5px; font-weight: 700; letter-spacing: .1px;
  color: var(--ui-ink); margin: 0 0 6px; line-height: 1.35;
}
.cx-help-card p { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--ui-body); }

/* --- before you call ------------------------------------------------ */
.cx-before { max-width: 1180px; margin: 0 auto; padding: 24px 20px 0; }
.cx-before-inner { padding: 30px 32px; border-left: 4px solid var(--ui-brand); }
.cx-before p { margin: 0 0 12px; font-size: 15px; line-height: 1.7; color: var(--ui-body); max-width: 78ch; }
.cx-before p:last-child { margin-bottom: 0; }

/* --- responsive ------------------------------------------------------ */
@media (max-width: 1024px) {
  .cx-grid { grid-template-columns: 1fr; }
  .cx-hero-media { aspect-ratio: 16 / 9; }
}
@media (max-width: 860px) {
  .cx-quick-grid { grid-template-columns: 1fr; margin-top: 24px; gap: 14px; }
  .cx-hero-inner { position: static; padding: 26px 4px 0; max-width: none; color: inherit; }
  .cx-hero-media { aspect-ratio: 16 / 10; }
  .cx-hero-media::after { background: linear-gradient(180deg, rgba(12,16,22,.15), rgba(12,16,22,.05)); }
  .cx-title { color: var(--ui-ink); }
  .cx-lede { color: var(--ui-body); max-width: none; }
  .cx-eyebrow { color: var(--ui-brand-dk); }
  .cx-ghost { border-color: var(--ui-line); color: var(--ui-ink); }
  .cx-ghost:hover, .cx-ghost:focus { background: var(--ui-brand-tint); border-color: var(--ui-brand); color: var(--ui-brand-dk); }
  .cx-help-grid { grid-template-columns: 1fr; }
  .cx-form-card { padding: 26px 22px 24px; }
  .cx-before-inner { padding: 24px 22px; }
}
@media (max-width: 560px) {
  .cx-row { grid-template-columns: 1fr; gap: 0; }
  .cx-hero-cta .btn-e, .cx-hero-cta .cx-ghost { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .cx-help-card, .cx-ghost, .cx-field input, .cx-field textarea { transition: none; }
  .cx-help-card:hover { transform: none; }
}
