/* Contact page (site/contact.js): banner with quick Call / WhatsApp / Email buttons, then the enquiry form and one
   contact details card. Same design on PC and phone; on phones the cards stack with the form first.
   Look is set in Admin › Contacts › Contact Page (site/includes/contact-look.js). */
.cx {
  --cx-deep: #071a3d; --cx-deep2: #0d2d63; --cx-accent: #d9b25a; --cx-accent2: #f3dc9c;
  --cx-bg: #f7f2e7; --cx-ink: #071a3d; --cx-text: #33475f; --cx-soft: #fbf1d8; --cx-soft-ink: #7a5a14; --cx-line: #ecdcb4;
  background: var(--cx-bg);
  padding-bottom: clamp(48px, 6vw, 88px);
  font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
}
.cx-ocean { --cx-deep: #062a4f; --cx-deep2: #0b4f8a; --cx-accent: #38bdf8; --cx-accent2: #bae6fd; --cx-bg: #eef7fd; --cx-ink: #062a4f; --cx-soft: #e0f2fe; --cx-soft-ink: #075985; --cx-line: #c7e3f6; }
.cx-sunset { --cx-deep: #3b0d2e; --cx-deep2: #7c2d12; --cx-accent: #fb923c; --cx-accent2: #fde68a; --cx-bg: #fff5ec; --cx-ink: #3b0d2e; --cx-soft: #ffedd5; --cx-soft-ink: #9a3412; --cx-line: #f6d5b8; }

.cx-wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

/* Banner */
.cx-hero {
  position: relative;
  padding: clamp(40px, 6vw, 84px) 0 clamp(96px, 10vw, 150px);
  color: #fff;
  background:
    linear-gradient(100deg, color-mix(in srgb, var(--cx-deep) 94%, transparent) 0%, color-mix(in srgb, var(--cx-deep) 72%, transparent) 50%, color-mix(in srgb, var(--cx-deep) 25%, transparent) 100%),
    var(--cx-photo, linear-gradient(135deg, #0e7490, #38bdf8 55%, #fde68a)) center / cover no-repeat;
  overflow: hidden;
}
.cx-hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 90px;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--cx-deep) 55%, transparent));
  pointer-events: none;
}
.cx-hero-in { position: relative; z-index: 1; max-width: 1180px; }
.cx-kicker {
  display: inline-flex; gap: 10px; align-items: center; margin: 0 0 12px;
  color: var(--cx-accent2); font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
}
.cx-kicker::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: var(--cx-accent); }
.cx-hero h1 {
  max-width: 15ch; margin: 0 0 12px;
  color: #fff !important; font: 700 clamp(2rem, 4.6vw, 3.6rem)/1.08 "Fraunces", Georgia, serif !important;
  letter-spacing: -.01em; text-wrap: balance; text-shadow: 0 6px 30px rgba(0, 0, 0, .3);
}
.cx-line { max-width: 52ch; margin: 0 0 26px; color: rgba(255, 255, 255, .88); font-size: clamp(.98rem, 1.3vw, 1.1rem); line-height: 1.6; }
.cx-quick { display: flex; flex-wrap: wrap; gap: 12px; }
.cx-q {
  display: inline-flex; gap: 10px; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 22px; border-radius: 999px;
  font-weight: 800; font-size: 15px; text-decoration: none !important;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.cx-q svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cx-q-call { background: linear-gradient(135deg, var(--cx-accent2), var(--cx-accent)); color: var(--cx-deep) !important; box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--cx-accent) 80%, transparent); }
.cx-q-wa { background: #22c55e; color: #052e16 !important; box-shadow: 0 10px 24px -8px rgba(34, 197, 94, .7); }
.cx-q-mail { border: 1.5px solid rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .1); color: #fff !important; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cx-q:hover { transform: translateY(-2px); }
.cx-q:active { transform: scale(.97); }
.cx-q:focus-visible, .cx-row a:focus-visible, .cx-map:focus-visible { outline: 3px solid var(--cx-accent2); outline-offset: 3px; }

/* Cards */
.cx-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); grid-template-areas: "details form";
  gap: clamp(16px, 2.4vw, 28px); align-items: start;
  margin-top: clamp(-110px, -8vw, -64px);
}
.cx-form { grid-area: form; min-width: 0; }
.cx-card {
  grid-area: details; min-width: 0;
  padding: clamp(20px, 2.4vw, 30px);
  border: 1px solid var(--cx-line); border-radius: 24px; background: #fff;
  box-shadow: 0 24px 50px -28px color-mix(in srgb, var(--cx-deep) 55%, transparent);
}
.cx-card h2 { margin: 0 0 18px; color: var(--cx-ink) !important; font: 700 clamp(1.35rem, 2vw, 1.7rem)/1.2 "Fraunces", Georgia, serif !important; }
.cx-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.cx-row { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; }
.cx-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--cx-soft); color: var(--cx-soft-ink); }
.cx-ic svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.cx-ic-wa { background: #dcfce7; color: #15803d; }
.cx-row small { display: block; margin-bottom: 2px; color: var(--cx-text); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .8; }
.cx-row a, .cx-row span.cx-val { display: block; color: var(--cx-ink) !important; font-size: 16px; font-weight: 700; line-height: 1.45; text-decoration: none; overflow-wrap: anywhere; }
.cx-row a:hover { color: var(--cx-soft-ink) !important; }
.cx-row p { margin: 0; color: var(--cx-text); font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.cx-map {
  display: inline-flex; gap: 6px; align-items: center; min-height: 40px; margin-top: 8px; padding: 0 14px;
  border: 1.5px solid var(--cx-line); border-radius: 999px; background: var(--cx-soft);
  color: var(--cx-soft-ink) !important; font-size: 14px; font-weight: 800; text-decoration: none !important;
}
.cx-map svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cx-map:hover { background: #fff; }

/* The enquiry form card keeps its navy-gold look; other colour styles recolour it. */
.cx-ocean #enquiryModal { --eq-gold: #38bdf8; --eq-gold-2: #bae6fd; --eq-gold-ink: #075985; --eq-navy: #062a4f; --eq-navy-2: #0b4f8a; }
.cx-sunset #enquiryModal { --eq-gold: #fb923c; --eq-gold-2: #fde68a; --eq-gold-ink: #9a3412; --eq-navy: #3b0d2e; --eq-navy-2: #7c2d12; }
.cx #enquiryModal.eq-inline-wrap .eq-card { border-radius: 24px !important; }

/* Phones: same design, stacked, form first */
@media (max-width: 900px) {
  .cx-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "form" "details"; }
}
@media (max-width: 600px) {
  .cx-wrap { width: calc(100% - 24px); }
  .cx-hero { padding: 30px 0 84px; }
  .cx-hero h1 { font-size: clamp(1.75rem, 8.4vw, 2.2rem) !important; }
  .cx-line { margin-bottom: 18px; font-size: .95rem; }
  .cx-quick { display: grid; grid-template-columns: repeat(var(--cx-n, 3), minmax(0, 1fr)); gap: 8px; }
  .cx-q { flex-direction: column; gap: 4px; min-height: 64px; padding: 8px 4px; border-radius: 16px; font-size: 13px; }
  .cx-grid { margin-top: -54px; gap: 14px; }
  .cx-card { padding: 18px 16px; border-radius: 20px; }
  .cx-row { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
  .cx-ic { width: 40px; height: 40px; border-radius: 12px; }
  .cx-row a, .cx-row span.cx-val { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .cx-q, .cx-q:hover { transition: none; transform: none; }
}

/* Win over the site-wide text colours and heading fonts (some use !important). */
html body .cx .cx-hero h1 { font-family: "Fraunces", Georgia, serif !important; font-weight: 700 !important; color: #fff !important; }
html body .cx .cx-line { color: rgba(255, 255, 255, .88) !important; }
html body .cx .cx-card { background: #fff !important; }
html body .cx .cx-card h2 { font-family: "Fraunces", Georgia, serif !important; color: var(--cx-ink) !important; }
html body .cx .cx-row p { color: var(--cx-text) !important; }
html body .cx .cx-row small { color: var(--cx-text) !important; }
html body .cx .cx-row a.cx-map { display: inline-flex; width: auto; font-size: 14px; color: var(--cx-soft-ink) !important; }
@media (min-width: 901px) { .cx-card { position: sticky; top: 96px; } }
html body .cx .cx-row a[href^="mailto:"] { overflow-wrap: break-word; }
/* The enquiry card's gold sweep (eqSweep) moves past the right edge while it plays; keep it inside the page so no
   sideways scrollbar flashes on PC while the Contact page opens. clip (not hidden) keeps the sticky details card working. */
html body .cx { overflow-x: clip; }
html body .cx #enquiryModal .eq-card { overflow: hidden; }
