/* Contact us: one question, one route. Shared by the draft (10413) and the live page (555).
   Every rule hangs off a cu- class, so the old content on 555 is untouched until it is replaced. */

body.page-id-10413,
body.page-id-555 {
  --cu-red: #d60000;
  --cu-red-dark: #a80000;
  --cu-ink: #1a1a1a;
  --cu-muted: #5c5c5c;
  --cu-rule: #d7d7cd;
  --cu-paper: #f6f6f3;
  --cu-slate: #2c4143;
  --cu-slate-2: #58707b;
  overflow-x: hidden;
}

/* The hero carries the page heading, so the theme title steps aside. */
body.page-id-10413 article:has(.cu-hero) .entry-header,
body.page-id-555 article:has(.cu-hero) .entry-header { display: none; }

/* Full-bleed bands. --cu-vw is the viewport minus any scrollbar, set by contact-page.js;
   plain 100vw would sit off-centre wherever scrollbars take space. */
.cu-hero,
.cu-hello {
  width: var(--cu-vw, 100vw);
  margin-left: calc(50% - var(--cu-vw, 100vw) / 2);
  margin-right: calc(50% - var(--cu-vw, 100vw) / 2);
}

/* 1. Hero */
.cu-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: var(--cu-slate);
  color: #fff;
  margin-top: -1px;
  margin-bottom: 72px;
  min-height: 460px;
}
.cu-hero__text {
  align-self: center;
  justify-self: end;
  max-width: 600px;
  padding: 64px 56px 64px 24px;
}
.cu-eyebrow {
  margin: 0 0 18px !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #b4c6cd !important;
}
.cu-eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 3px;
  margin: 0 12px 4px 0;
  background: var(--cu-red);
  vertical-align: middle;
}
h1.cu-hero__title {
  margin: 0 0 22px;
  font-size: clamp(36px, 4.2vw, 58px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -.02em;
  color: #fff !important;
}
h1.cu-hero__title em {
  font-style: normal;
  color: #fff !important;
  background: linear-gradient(transparent 72%, var(--cu-red) 72%, var(--cu-red) 92%, transparent 92%);
}
.cu-hero__lede {
  margin: 0 0 32px !important;
  font-size: 19px;
  line-height: 1.55;
  color: #dfe7ea !important;
  max-width: 34em;
}
a.cu-hero__cue {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 16px;
  color: #fff !important;
  text-decoration: none !important;
}
a.cu-hero__cue::after {
  content: "\2193";
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--cu-red);
  transition: transform .2s ease;
}
a.cu-hero__cue:hover::after { transform: translateY(4px); }
.cu-hero__photo {
  position: relative;
  margin: 0;
  min-height: 100%;
}
/* Site CSS forces image height; the body-level selector outranks it. */
body.page-id-10413 .cu-hero__photo img,
body.page-id-555 .cu-hero__photo img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  object-fit: cover;
  object-position: 50% 40%;
}
.cu-hero__photo::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  background: var(--cu-red);
  z-index: 1;
}

/* 2. The journey: a route line with numbered stops */
.cu-journey {
  position: relative;
  max-width: 1040px;
  margin: 0 auto 0;
  padding-left: 76px;
}
.cu-journey::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 22px;
  bottom: 0;
  width: 3px;
  background: linear-gradient(var(--cu-red), var(--cu-red) 60%, var(--cu-rule));
}
.cu-stop {
  position: relative;
  margin: 0 0 28px;
}
.cu-stop__n {
  position: absolute;
  left: -76px;
  top: 0;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--cu-red);
  color: var(--cu-red);
  font-weight: 900;
  font-size: 18px;
  transition: background .25s ease, color .25s ease;
}
.cu-stop.is-reached .cu-stop__n,
.cu-stop:first-child .cu-stop__n {
  background: var(--cu-red);
  color: #fff;
}
h2.cu-stop__q {
  margin: 0 !important;
  padding: 4px 0 0 !important;
  border: 0 !important;
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -.01em;
  color: var(--cu-ink) !important;
}
.cu-stop__hint {
  margin: 8px 0 0 !important;
  color: var(--cu-muted);
  font-size: 16px;
}

/* Choices */
.cu-choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 64px;
}
a.cu-choice {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 26px 24px 28px;
  background: #fff;
  border: 2px solid var(--cu-rule);
  border-radius: 6px;
  color: var(--cu-ink) !important;
  text-decoration: none !important;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease, background .2s ease;
}
a.cu-choice:hover {
  border-color: var(--cu-ink);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(26, 26, 26, .08);
}
a.cu-choice:focus-visible {
  outline: 3px solid var(--cu-red);
  outline-offset: 3px;
}
.cu-choice__n {
  font-size: 44px;
  line-height: 1;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--cu-red);
  margin-bottom: 10px;
}
.cu-choice__t {
  font-size: 21px;
  line-height: 1.25;
  font-weight: 900;
}
.cu-choice__s {
  font-size: 15px;
  line-height: 1.45;
  color: var(--cu-muted) !important;
}
a.cu-choice[aria-expanded="true"] {
  background: var(--cu-red);
  border-color: var(--cu-red);
  color: #fff !important;
  transform: none;
  box-shadow: 0 14px 30px rgba(214, 0, 0, .22);
}
a.cu-choice[aria-expanded="true"] .cu-choice__n { color: #fff; -webkit-text-stroke: 0; }
a.cu-choice[aria-expanded="true"] .cu-choice__s { color: #ffe3e3 !important; }
a.cu-choice[aria-expanded="true"]::after {
  content: "";
  position: absolute;
  left: 32px;
  bottom: -11px;
  width: 20px;
  height: 20px;
  background: var(--cu-red);
  transform: rotate(45deg);
}

/* Route panels: all stacked without script, one at a time with it */
.cu-panels { margin: 0 0 80px; }
.cu-placeholder { display: none; }
.cu-journey.is-ready .cu-placeholder {
  display: block;
  padding: 28px 32px;
  border: 2px dashed var(--cu-rule);
  border-radius: 6px;
  color: var(--cu-muted);
  font-size: 17px;
}
.cu-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 48px;
  padding: 40px 0 0;
  border-top: 3px solid var(--cu-ink);
  margin-bottom: 48px;
}
.cu-journey.is-ready .cu-panel { margin-bottom: 0; }
.cu-panel[hidden] { display: none; }
.cu-panel.is-entering { animation: cu-rise .35s ease both; }
@keyframes cu-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cu-panel.is-entering { animation: none; }
  a.cu-choice, a.cu-hero__cue::after { transition: none; }
}
.cu-panel__kicker {
  margin: 0 0 10px !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cu-red) !important;
}
h3.cu-panel__title {
  margin: 0 0 16px;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 900;
  color: var(--cu-ink) !important;
}
.cu-panel__body p {
  font-size: 18px;
  line-height: 1.65;
  color: var(--cu-ink) !important;
  margin: 0 0 16px;
}
.cu-panel__body ul {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}
.cu-panel__body li {
  position: relative;
  color: var(--cu-ink) !important;
  padding: 14px 0 14px 28px;
  border-top: 1px solid var(--cu-rule);
  font-size: 17px;
  line-height: 1.5;
}
.cu-panel__body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 23px;
  width: 12px;
  height: 3px;
  background: var(--cu-red);
}
.cu-panel__body a { color: var(--cu-ink) !important; text-decoration: underline !important; text-decoration-color: var(--cu-red) !important; text-underline-offset: 3px; }

.cu-act {
  align-self: start;
  padding: 32px;
  background: var(--cu-paper);
  border-radius: 6px;
}
.cu-act__label {
  margin: 0 0 6px !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cu-muted) !important;
}
.cu-act__lead {
  margin: 0 0 22px !important;
  font-size: 19px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--cu-ink) !important;
}
a.cu-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--cu-red);
  border-radius: 4px;
  color: #fff !important;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none !important;
  transition: background .2s ease;
}
a.cu-btn::after { content: "\2192"; font-size: 20px; transition: transform .2s ease; }
a.cu-btn:hover { background: var(--cu-red-dark); }
a.cu-btn:hover::after { transform: translateX(4px); }
a.cu-link {
  display: inline-block;
  margin-top: 16px;
  font-weight: 700;
  color: var(--cu-ink) !important;
  text-decoration: underline !important;
  text-decoration-color: var(--cu-red) !important;
  text-underline-offset: 4px;
}
.cu-partners {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 22px !important;
  padding: 0 !important;
  list-style: none;
}
.cu-partners a {
  display: block;
  padding: 14px 16px;
  background: #fff;
  border-left: 4px solid var(--cu-slate);
  font-weight: 700;
  color: var(--cu-ink) !important;
  text-decoration: none !important;
}
.cu-partners a:hover { border-left-color: var(--cu-red); }

/* 3. Say hello */
.cu-hello {
  background: var(--cu-red);
  color: #fff;
  margin-bottom: -1px;
}
.cu-hello__in {
  max-width: 1040px;
  margin: 0 auto;
  padding: 72px 24px 64px 100px;
  position: relative;
}
.cu-hello__in::before {
  content: "3";
  position: absolute;
  left: 24px;
  top: 72px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  color: var(--cu-red);
  font-weight: 900;
  font-size: 18px;
}
h2.cu-hello__q {
  margin: 0 0 8px !important;
  padding: 4px 0 0 !important;
  border: 0 !important;
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 900;
  color: #fff !important;
}
.cu-hello__sub { margin: 0 0 28px !important; font-size: 18px; color: #ffe3e3 !important; }
a.cu-hello__mail {
  display: inline-block;
  font-size: clamp(22px, 3.4vw, 44px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -.01em;
  color: #fff !important;
  text-decoration: none !important;
  border-bottom: 3px solid rgba(255, 255, 255, .45);
  word-break: break-word;
  transition: border-color .2s ease;
}
a.cu-hello__mail:hover { border-bottom-color: #fff; }
.cu-hello__row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  margin: 32px 0 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .3);
  font-size: 16px;
}
.cu-hello__row p { margin: 0 !important; color: #fff !important; }
.cu-hello__row span { color: #ffe3e3 !important; margin-right: 8px; }
.cu-hello__row a { color: #fff !important; font-weight: 700; text-decoration: underline !important; text-underline-offset: 3px; }

/* Small touches */
body.page-id-10413 ::selection,
body.page-id-555 ::selection { background: var(--cu-red); color: #fff; }
.cu-journey,
.cu-panel { scroll-margin-top: 24px; }

/* The cue nudges twice after the page settles, then rests. */
a.cu-hero__cue::after { animation: cu-nudge 1.4s ease-in-out 1.2s 2; }
@keyframes cu-nudge {
  0%, 100% { transform: none; }
  50% { transform: translateY(6px); }
}

/* An outlined number fills in when its card is hovered. */
a.cu-choice:not([aria-expanded="true"]):hover .cu-choice__n { color: var(--cu-red); }

/* Keyboard focus is always visible: red on light ground, white on the red band and slate hero. */
a.cu-btn:focus-visible,
a.cu-link:focus-visible,
.cu-partners a:focus-visible,
.cu-change:focus-visible,
.cu-panel__body a:focus-visible { outline: 3px solid var(--cu-red); outline-offset: 3px; }
a.cu-hero__cue:focus-visible,
.cu-hello a:focus-visible,
.cu-copy:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }

/* The route stop names the chosen route and offers a way back. */
.cu-stop__picked:not(:empty)::before { content: ": "; color: var(--cu-ink); }
.cu-stop__picked { color: var(--cu-red); }
.cu-change {
  display: none;
  position: absolute;
  right: 0;
  top: 10px;
  padding: 6px 2px;
  background: none;
  border: 0;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--cu-ink);
  text-decoration: underline;
  text-decoration-color: var(--cu-red);
  text-underline-offset: 4px;
  cursor: pointer;
}
.cu-change::before { content: "\2191\00a0"; color: var(--cu-red); }
.cu-stop.is-reached .cu-change { display: block; }

/* Copy the address in one tap. */
.cu-copy {
  display: table;
  margin: 18px 0 0;
  padding: 7px 14px;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, .7);
  border-radius: 999px;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.cu-copy:hover { background: #fff; color: var(--cu-red); }
.cu-copy.is-done { background: #fff; color: var(--cu-red); border-color: #fff; }
.cu-copy.is-done::before { content: "\2713\00a0"; }
.cu-clock {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: #ffe3e3;
}

@media (prefers-reduced-motion: reduce) {
  a.cu-hero__cue::after { animation: none; }
  .cu-copy { transition: none; }
}

/* Phone and small tablet */
@media (max-width: 991px) {
  .cu-hero { grid-template-columns: 1fr; min-height: 0; margin-bottom: 48px; }
  .cu-hero__photo { order: -1; aspect-ratio: 2 / 1; min-height: 0; }
  .cu-hero__photo::before { width: auto; height: 6px; top: auto; right: 0; }
  .cu-hero__text { justify-self: start; max-width: none; padding: 36px 20px 44px; }
  .cu-hero__lede { font-size: 17px; }
  .cu-choices { grid-template-columns: 1fr; gap: 12px; margin-bottom: 44px; }
  a.cu-choice { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; padding: 18px 18px 20px; }
  .cu-choice__n { grid-row: span 2; font-size: 34px; margin: 0; }
  .cu-panel { grid-template-columns: 1fr; gap: 28px; padding-top: 28px; }
  .cu-panels { margin-bottom: 56px; }
}
@media (max-width: 767px) {
  .cu-journey { padding-left: 52px; }
  .cu-journey::before { left: 15px; }
  .cu-stop__n { left: -52px; width: 34px; height: 34px; font-size: 15px; }
  .cu-act { padding: 22px; }
  .cu-panel__body p { font-size: 17px; }
  .cu-hello__in { padding: 52px 20px 48px 68px; }
  .cu-hello__in::before { left: 20px; top: 52px; width: 34px; height: 34px; font-size: 15px; }
  .cu-change { position: static; margin-top: 6px; }
}
