/* ==========================================================================
   PAGE — CONTACT
   Sections A–E. Each block is self-contained so it can be pasted into the
   matching Elementor Container's Custom CSS. Classes are prefixed `ct-`.
   ========================================================================== */

/* --------------------------------------------------------------------------
   A — HERO · "Get in touch." + channel cards
   -------------------------------------------------------------------------- */
.ct-hero { padding-bottom: clamp(3rem, 6vw, 5.5rem); }
.ct-hero .rules { z-index: 0; }
.ct-hero__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.78fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: end;
  margin-top: clamp(2rem, 4.5vw, 3.75rem);
}
.ct-hero__eyebrow { display: flex; align-items: center; gap: 0.9rem; color: var(--fg-on-dark); margin-bottom: clamp(1.25rem, 2.5vw, 2rem); }
.ct-hero__title { color: var(--tw-white); }
.ct-hero__lead { color: var(--fg-muted-on-dark); max-width: 40ch; padding-bottom: 0.5rem; }

.ct-channels {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(0.75rem, 1.2vw, 1rem);
  margin-top: clamp(2.75rem, 5.5vw, 4.75rem);
}
.ct-channels > li { display: flex; }
.ct-channel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: clamp(230px, 20vw, 280px);
  padding: clamp(1.25rem, 2vw, 1.75rem);
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.015);
  color: var(--fg-on-dark);
  overflow: hidden;
  isolation: isolate;
  transition: border-color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}
/* A blue rule draws across the top on hover — the same gesture as the
   home page's solution columns. */
.ct-channel::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--tw-blue);
  scale: 0 1;
  transform-origin: left center;
  transition: scale var(--dur-slow) var(--ease-out);
}
.ct-channel:hover, .ct-channel:focus-visible { border-color: rgba(22, 184, 242, 0.55); background-color: rgba(22, 184, 242, 0.05); }
.ct-channel:hover::before, .ct-channel:focus-visible::before { scale: 1 1; }
.ct-channel__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: auto; padding-bottom: 2rem; }
.ct-channel__icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border: 1px solid var(--line-on-dark);
  border-radius: 50%;
  color: var(--tw-white);
}
.ct-channel__icon .wa-dot { box-shadow: 0 0 0 2px var(--tw-navy); }
.ct-channel__go {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--line-on-dark);
  border-radius: 50%;
  color: var(--fg-on-dark);
  transition: background-color var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast);
}
.ct-channel:hover .ct-channel__go, .ct-channel:focus-visible .ct-channel__go { background: var(--tw-blue); border-color: var(--tw-blue); color: var(--tw-navy); }
.ct-channel__label {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--tw-blue);
}
.ct-channel__title {
  margin-top: 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.1rem + 0.55vw, 1.625rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: var(--ls-tight);
  color: var(--tw-white);
}
.ct-channel__text { margin-top: 0.55rem; font-size: var(--fs-small); line-height: 1.55; color: var(--fg-muted-on-dark); max-width: 42ch; }
.ct-channel__value {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-on-dark);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--fg-on-dark);
  overflow-wrap: anywhere;
}
.ct-channel .ph-text { color: var(--fg-muted-on-dark); }

/* WhatsApp leads: tinted, blue-edged, a filled icon and a larger title. */
.ct-channel--wa {
  border-color: rgba(22, 184, 242, 0.42);
  background: linear-gradient(155deg, rgba(22, 184, 242, 0.16), rgba(22, 184, 242, 0.03) 62%);
}
.ct-channel--wa:hover { background-color: transparent; border-color: var(--tw-blue); }
.ct-channel--wa .ct-channel__icon { background: var(--tw-blue); border-color: var(--tw-blue); color: var(--tw-navy); }
.ct-channel--wa .ct-channel__icon .wa-dot { box-shadow: 0 0 0 2px var(--tw-blue); }
.ct-channel--wa .ct-channel__title { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.125rem); letter-spacing: var(--ls-mega); max-width: 14ch; }

@media (max-width: 960px) {
  .ct-hero__head { grid-template-columns: 1fr; align-items: start; }
  .ct-channels { grid-template-columns: 1fr 1fr; }
  .ct-channels > li:first-child { grid-column: 1 / -1; }
  .ct-channel { min-height: 0; }
}
@media (max-width: 560px) {
  .ct-channels { grid-template-columns: 1fr; }
  .ct-channel__top { padding-bottom: 1.5rem; }
}

/* --------------------------------------------------------------------------
   B — SEND A MESSAGE · sticky intro + form card
   -------------------------------------------------------------------------- */
/* Desktop: intro + "what happens next" on the left, the form spanning
   both rows on the right. Phones: intro → form → next steps. */
.ct-message__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  grid-template-areas: "intro form" "next form";
  grid-template-rows: auto 1fr;
  gap: 0 clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.ct-message__intro { grid-area: intro; }
.ct-form-wrap { grid-area: form; }
.ct-next { grid-area: next; }
.ct-message__title { margin-block: var(--space-5); max-width: 11ch; }
.ct-inline { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.ct-inline:hover { text-decoration-thickness: 2px; }

.ct-next { margin-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line); }
.ct-next li:last-child { border-bottom: 0; }
.ct-next li { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: var(--space-4); padding-block: var(--space-5); border-bottom: 1px solid var(--line); }
.ct-next .num { padding-top: 0.3rem; }
.ct-next p { font-size: var(--fs-small); line-height: 1.6; color: var(--fg-muted); }
.ct-next strong { display: block; margin-bottom: 0.25rem; font-family: var(--font-display); font-size: 1.0625rem; font-weight: 600; letter-spacing: var(--ls-tight); color: var(--fg); }

/* Form card */
.ct-form, .ct-done {
  padding: clamp(1.5rem, 3.5vw, 3rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: var(--shadow-lift);
}
.ct-form__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-6);
  border-bottom: 1px solid var(--line);
}
.ct-form__title { font-size: var(--fs-h4); }
.ct-form__req { font-size: var(--fs-xs); color: var(--fg-muted); }
.ct-req { color: #B42318; }
.ct-form__req span { color: #B42318; }

/* Inline error text lives inside each <label>, so a screen reader hears
   it as part of the field name — shown only while the field is invalid. */
.ct-err { display: none; font-size: var(--fs-xs); font-weight: 600; color: #B42318; }
.field:has([aria-invalid="true"]) .ct-err { display: inline; }

.ct-reply { border: 0; padding: 0; min-width: 0; }
.ct-reply legend { padding: 0; margin-bottom: 0.5rem; }
.ct-reply__choices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ct-reply .choice span { gap: 0.55rem; }
.ct-reply .choice svg { color: var(--fg-muted); flex: none; }
.ct-reply .choice input:checked + span svg { color: var(--accent-text); }

/* Consent — a custom box drawn on the span, the real checkbox on top. */
.ct-consent {
  position: relative;
  display: block;
  margin-top: var(--space-2);
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--fg-muted);
  cursor: pointer;
}
.ct-consent input { position: absolute; top: 0; left: 0; width: 22px; height: 22px; margin: 0; opacity: 0; cursor: pointer; }
.ct-consent > span { position: relative; display: block; padding-left: 2.1rem; }
.ct-consent > span::before {
  content: "";
  position: absolute;
  top: 0.05em; left: 0;
  width: 20px; height: 20px;
  border: 1.5px solid var(--fg-muted);
  border-radius: 3px;
  background: var(--bg) center / 11px no-repeat;
  transition: background-color var(--dur-fast), border-color var(--dur-fast);
}
.ct-consent input:checked + span::before {
  border-color: var(--tw-blue);
  background-color: var(--tw-blue);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10' fill='none'%3E%3Cpath d='M1 5l3.5 3.5L11 1.5' stroke='%23071421' stroke-width='2'/%3E%3C/svg%3E");
}
.ct-consent input:focus-visible + span::before { outline: 2px solid var(--focus); outline-offset: var(--focus-offset); }
.ct-consent input[aria-invalid="true"] + span::before { border-color: #D14343; box-shadow: 0 0 0 3px rgba(209, 67, 67, 0.12); }
.ct-consent input[aria-invalid="true"] + span { color: #B42318; }

.ct-form__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
}
.ct-form__foot .form-status { flex: 1 1 14rem; }

/* Success panel */
.ct-done { display: grid; justify-items: start; gap: var(--space-4); animation: ct-in var(--dur-slow) var(--ease-out); }
@keyframes ct-in { from { opacity: 0; translate: 0 12px; } }
.ct-done__mark { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: var(--space-3); border-radius: 50%; background: var(--tw-blue); color: var(--tw-navy); }
.ct-done__mark svg { width: 28px; height: 28px; }
.ct-done__title { max-width: 18ch; }
.ct-done__text { color: var(--fg-muted); max-width: 46ch; text-wrap: pretty; }
.ct-done .btn-row { margin-top: var(--space-4); gap: var(--space-4) var(--space-5); }

@media (max-width: 900px) {
  .ct-message__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "form" "next"; grid-template-rows: auto; }
  .ct-form-wrap { margin-top: var(--space-6); }
  .ct-message__title { max-width: 14ch; }
}
@media (max-width: 560px) {
  .ct-form, .ct-done { padding: 1.25rem; box-shadow: none; }
  .ct-reply__choices { grid-template-columns: 1fr; }
  .ct-form__submit { width: 100%; }
}

/* --------------------------------------------------------------------------
   C — VISIT · map placeholder + details
   A navy proof sheet with a registration mark where the pin will be. It
   is deliberately not a map: nothing here pretends to be a location.
   -------------------------------------------------------------------------- */
.ct-visit__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.ct-map { margin: 0; }
.ct-map__canvas { --crop-o: 12px; position: relative; aspect-ratio: 16 / 10; }
.ct-map__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: var(--radius-lg);
  /* Google's map is bright white; a light grade settles it into the page
     without hiding detail. Removed on hover so it reads normally in use. */
  filter: saturate(0.9) contrast(1.02);
  transition: filter var(--dur) var(--ease-out);
}
.ct-map__canvas:hover .ct-map__frame, .ct-map__frame:focus-within { filter: none; }

/* Address card over the map. */
.ct-map__card {
  position: absolute;
  left: clamp(0.75rem, 2vw, 1.25rem);
  bottom: clamp(0.75rem, 2vw, 1.25rem);
  z-index: 2;
  display: grid;
  gap: 0.5rem;
  width: min(320px, calc(100% - 1.5rem));
  padding: clamp(1rem, 2vw, 1.25rem);
  border-radius: var(--radius);
  background: rgba(7, 20, 33, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lift);
}
.ct-map__card .label { display: flex; align-items: center; gap: 0.45rem; color: var(--tw-blue); }
.ct-map__card address { font-size: var(--fs-small); color: var(--fg-on-dark); line-height: 1.5; }
.ct-map__card .btn-row { margin-top: 0.35rem; gap: 0.5rem 0.9rem; }
@media (max-width: 480px) { .ct-map__card { left: 0.6rem; right: 0.6rem; bottom: 0.6rem; width: auto; } }

.ct-map .cap { margin-top: calc(var(--space-3) + 12px); }

.ct-info__list { border-top: 1px solid var(--line); }
.ct-info__row { display: grid; gap: 0.5rem; padding-block: var(--space-5); border-bottom: 1px solid var(--line); }
.ct-info__row dt {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--fg-muted);
}
.ct-info__icon { display: inline-grid; color: var(--accent-text); }
.ct-info__row dd {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.75rem;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--fg);
  overflow-wrap: anywhere;
}
.ct-info__row dd a { transition: color var(--dur-fast); }
.ct-info__row dd a:hover { color: var(--accent-text); }
.ct-info__actions { margin-top: var(--space-6); }

@media (max-width: 960px) {
  .ct-visit__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .ct-map__canvas { aspect-ratio: 4 / 5; }
  .ct-map__ring--2 { inset: -64px; }
  .ct-map__place { left: 1rem; top: 1rem; }
  .ct-map__note { left: 0.75rem; right: 0.75rem; bottom: 0.75rem; max-width: none; }
}

/* --------------------------------------------------------------------------
   D — BEFORE YOU GET IN TOUCH · checklist grid
   Swiss cells: a heavy rule, an index, a title — like the home stats.
   -------------------------------------------------------------------------- */
.ct-prep__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 3rem);
}
.ct-prep__list { display: contents; }
.ct-prep__cell { display: flex; flex-direction: column; padding-top: var(--space-5); border-top: 2px solid var(--fg); }
.ct-prep__cell .num { margin-bottom: var(--space-5); }
.ct-prep__name { font-size: clamp(1.1875rem, 1.05rem + 0.5vw, 1.5rem); letter-spacing: var(--ls-tight); }
.ct-prep__cell p { margin-top: 0.5rem; font-size: var(--fs-small); line-height: 1.6; color: var(--fg-muted); max-width: 38ch; }
.ct-prep__cell--cta { border-top-color: var(--tw-blue); gap: var(--space-4); }
.ct-prep__cell--cta .regmark { color: var(--accent-text); opacity: 0.8; width: 28px; height: 28px; }
.ct-prep__cell--cta .ct-prep__cta-title { margin-top: 0; font-family: var(--font-display); font-size: clamp(1.1875rem, 1.05rem + 0.5vw, 1.5rem); font-weight: 600; line-height: 1.3; letter-spacing: var(--ls-tight); color: var(--fg); max-width: 20ch; }
@media (max-width: 900px) { .ct-prep__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ct-prep__grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   E — WHATSAPP CTA · topic shortcuts
   -------------------------------------------------------------------------- */
.ct-wa { overflow: hidden; isolation: isolate; }
.ct-wa::before {
  content: "";
  position: absolute;
  left: -15%; bottom: -40%;
  width: 70vw; height: 70vw;
  max-width: 900px; max-height: 900px;
  background: radial-gradient(circle, rgba(22, 184, 242, 0.14), transparent 62%);
  pointer-events: none;
  z-index: 0;
}
.ct-wa__grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: end;
}
.ct-wa__eyebrow { display: flex; align-items: center; gap: 0.65rem; color: var(--fg-on-dark); }
.ct-wa__eyebrow .wa-dot { box-shadow: 0 0 0 2px var(--tw-navy); }
.ct-wa__title { margin-block: var(--space-5); color: var(--tw-white); }
.ct-wa__lead { color: var(--fg-muted-on-dark); max-width: 40ch; }
.ct-wa__topics { border-top: 1px solid var(--line-on-dark); }
.ct-wa__topic {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-4);
  min-height: 64px;
  padding-block: clamp(0.9rem, 1.5vw, 1.2rem);
  border-bottom: 1px solid var(--line-on-dark);
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.5rem);
  font-weight: 600;
  letter-spacing: var(--ls-tight);
  line-height: 1.25;
  color: var(--tw-white);
  transition: color var(--dur-fast);
}
.ct-wa__topic .num { color: var(--tw-blue); }
.ct-wa__label { transition: translate var(--dur) var(--ease-out); }
.ct-wa__topic:hover, .ct-wa__topic:focus-visible { color: var(--tw-blue); }
.ct-wa__topic:hover .ct-wa__label, .ct-wa__topic:focus-visible .ct-wa__label { translate: 6px 0; }
.ct-wa__go {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--line-on-dark);
  border-radius: 50%;
  color: var(--fg-on-dark);
  transition: background-color var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast);
}
.ct-wa__topic:hover .ct-wa__go, .ct-wa__topic:focus-visible .ct-wa__go { background: var(--tw-blue); border-color: var(--tw-blue); color: var(--tw-navy); }
@media (max-width: 900px) {
  .ct-wa__grid { grid-template-columns: 1fr; align-items: start; }
}

/* Privacy / Terms line under the enquiry form's submit button. */
.ct-legal {
  margin-top: var(--space-4);
  font-size: var(--fs-xs);
  line-height: 1.6;
  color: var(--fg-muted);
}
.ct-legal a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.ct-legal a:hover { color: var(--fg); }
