/* =============================================================
   CONTACT PAGE (contact.html) — everything is scoped under .cx
   (and the .cx-wa / .cx-toast fixed controls), so nothing here
   leaks into other pages. Loaded after style.css.
============================================================= */

.cx {
  --cx-ivory: #f6f2ec;
  --cx-paper: #fffdf9;
  --cx-ink: #231d18;
  --cx-ink-2: #5c524a;
  --cx-rule: #ddd3c6;
  --cx-umber: #1f1813;
  --cx-on-umber: #f4ece2;
  --cx-on-umber-2: #bfb2a3;
  --cx-peach: #f0c3a5;
  --cx-peach-2: #e9a27a;
  --cx-clay: #c2612f;
  --cx-clay-ink: #a24d20;
  --cx-ok: #2f7a4f;
  --cx-err: #a3261a;
  --cx-serif: "Instrument Serif", "Cormorant Garamond", Georgia, serif;
  background: var(--cx-ivory);
  color: var(--cx-ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.cx *,
.cx *::before,
.cx *::after {
  box-sizing: border-box;
}

:where(.cx) h1,
:where(.cx) h2,
:where(.cx) h3 {
  margin: 0;
  text-wrap: balance;
}

:where(.cx) p {
  margin: 0;
}

.cx em {
  font-family: var(--cx-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}

.cx :focus-visible {
  outline: 2px solid var(--cx-clay);
  outline-offset: 3px;
  border-radius: 4px;
}

.cx-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

@media (min-width: 720px) {
  .cx-wrap {
    padding-left: max(32px, env(safe-area-inset-left, 0px));
    padding-right: max(32px, env(safe-area-inset-right, 0px));
  }
}

.cx-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cx-peach-2);
}

.cx-label--dark {
  color: var(--cx-clay-ink);
}

.cx-h2 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.cx-h2 em {
  font-size: 1.08em;
}

/* Buttons */
.cx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--cx-clay);
  color: #fff;
  font: 600 15px/1 var(--font-sans);
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}

.cx-btn:hover:not(:disabled) {
  background: var(--cx-clay-ink);
}

.cx-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* ---------------------------------------------------------
   Hero (dark) with the form card riding over the fold
--------------------------------------------------------- */
.cx-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--cx-umber);
  color: var(--cx-on-umber);
  padding-top: calc(var(--nav-height) + clamp(32px, 5vw, 72px));
  padding-bottom: clamp(48px, 6vw, 80px);
}

.cx-hero::before,
.cx-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}

.cx-hero::before {
  width: min(70vw, 720px);
  aspect-ratio: 1;
  right: -14%;
  top: -40%;
  background: radial-gradient(circle, rgba(226, 150, 72, 0.36), rgba(194, 97, 47, 0.12) 55%, transparent 70%);
  animation: cx-drift 22s ease-in-out infinite alternate;
}

.cx-hero::after {
  width: min(60vw, 560px);
  aspect-ratio: 1;
  left: -20%;
  bottom: -50%;
  background: radial-gradient(circle, rgba(31, 94, 96, 0.34), transparent 65%);
  animation: cx-drift 28s ease-in-out infinite alternate-reverse;
}

@keyframes cx-drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-6%, 8%) scale(1.12); }
  100% { transform: translate(5%, -4%) scale(0.94); }
}

.cx-hero-grid {
  display: grid;
  gap: 40px;
  align-items: start;
}

@media (min-width: 960px) {
  .cx-hero-grid {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 72px;
  }
}

.cx-intro,
.cx-card {
  min-width: 0;
}

.cx-h1 {
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.035em;
  margin: 16px 0 20px;
  color: var(--cx-on-umber);
}

.cx-h1 em {
  display: block;
  font-size: 1.08em;
  color: var(--cx-peach);
}

.cx-sub {
  font-size: clamp(16px, 1.6vw, 18px);
  color: var(--cx-on-umber-2);
  max-width: 44ch;
}

/* Direct lines */
.cx-lines {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  border-top: 1px solid rgba(244, 236, 226, 0.12);
}

.cx-lines li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(244, 236, 226, 0.12);
}

.cx-ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(244, 236, 226, 0.06);
  border: 1px solid rgba(244, 236, 226, 0.12);
  display: grid;
  place-items: center;
  color: var(--cx-peach);
}

.cx-ico svg {
  width: 20px;
  height: 20px;
}

.cx-line-text {
  min-width: 0;
}

.cx-lines small {
  display: block;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cx-on-umber-2);
}

.cx-val {
  display: block;
  font-size: 17px;
  font-weight: 500;
  color: var(--cx-on-umber);
  overflow-wrap: anywhere;
}

@media (max-width: 359px) {
  .cx-lines li {
    gap: 10px;
  }

  .cx-val {
    font-size: 14px;
  }

  .cx-copy {
    padding: 0 10px;
  }
}

a.cx-val:hover {
  color: var(--cx-peach);
}

.cx-copy {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(244, 236, 226, 0.25);
  background: transparent;
  color: var(--cx-on-umber);
  font: 500 13px var(--font-sans);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.cx-copy:hover {
  border-color: var(--cx-peach);
  color: var(--cx-peach);
}

.cx-go {
  font-size: 13px;
  font-weight: 600;
  color: var(--cx-peach);
  white-space: nowrap;
}

.cx-go:hover {
  text-decoration: underline;
}

/* ---------------------------------------------------------
   Form card
--------------------------------------------------------- */
.cx-card {
  background: var(--cx-paper);
  color: var(--cx-ink);
  border-radius: 24px;
  padding: clamp(22px, 3vw, 36px);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6);
  scroll-margin-top: calc(var(--nav-height) + 16px);
}

.cx-card-title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.cx-hint {
  font-size: 14.5px;
  color: var(--cx-ink-2);
  margin-top: 6px;
}

.cx-form {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.cx-fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.cx-fieldset legend,
.cx-field label {
  display: block;
  float: none;
  width: auto;
  padding: 0;
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.cx-opt {
  font-weight: 400;
  color: var(--cx-ink-2);
}

.cx-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cx-pills label {
  position: relative;
  margin: 0;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
}

.cx-pills input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.cx-pills span {
  display: inline-block;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--cx-rule);
  background: var(--cx-ivory);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.cx-pills label:hover span {
  border-color: var(--cx-clay);
}

.cx-pills input:checked + span {
  background: var(--cx-ink);
  color: var(--cx-ivory);
  border-color: var(--cx-ink);
}

.cx-pills input:focus-visible + span {
  outline: 2px solid var(--cx-clay);
  outline-offset: 2px;
}

.cx-two {
  display: grid;
  gap: 18px;
}

@media (min-width: 600px) {
  .cx-two {
    grid-template-columns: 1fr 1fr;
  }
}

.cx-field {
  display: grid;
  min-width: 0;
  align-content: start;
}

.cx-field input,
.cx-field select,
.cx-field textarea {
  width: 100%;
  font: 16px var(--font-sans);
  color: var(--cx-ink);
  background: var(--cx-ivory);
  border: 1px solid var(--cx-rule);
  border-radius: 12px;
  padding: 13px 14px;
}

.cx-field select {
  appearance: none;
  padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, var(--cx-ink-2) 50%), linear-gradient(135deg, var(--cx-ink-2) 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

.cx-field textarea {
  min-height: 130px;
  resize: vertical;
}

.cx-field input::placeholder,
.cx-field textarea::placeholder {
  color: #8a7f75;
}

.cx-field input:focus,
.cx-field select:focus,
.cx-field textarea:focus {
  outline: 2px solid var(--cx-clay);
  outline-offset: 0;
  border-color: transparent;
}

.cx-field [aria-invalid="true"] {
  border-color: var(--cx-err);
}

.cx-err {
  font-size: 13px;
  color: var(--cx-err);
  margin-top: 6px;
}

.cx-err:empty {
  display: none;
}

.cx-err--form {
  margin-top: 0;
}

.cx-foot-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  justify-content: space-between;
}

.cx-foot-row small {
  font-size: 13px;
  color: var(--cx-ink-2);
  max-width: 34ch;
}

.cx-foot-row small a {
  color: var(--cx-clay-ink);
  text-decoration: underline;
}

@media (max-width: 479px) {
  .cx-foot-row .cx-btn {
    width: 100%;
  }
}

/* Server messages */
.cx-flash-error {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #f0c4be;
  background: #fff3f1;
  color: var(--cx-err);
  font-size: 14px;
  font-weight: 500;
}

.cx-sent {
  display: grid;
  gap: 14px;
  justify-items: start;
  padding-block: 12px;
}

.cx-sent:focus {
  outline: none;
}

.cx-sent h2 {
  font-size: 28px;
  font-weight: 600;
}

.cx-sent p {
  color: var(--cx-ink-2);
}

.cx-sent a {
  color: var(--cx-clay-ink);
  font-weight: 600;
  text-decoration: underline;
}

.cx-tick {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #e4f1e9;
  color: var(--cx-ok);
  display: grid;
  place-items: center;
}

.cx-tick svg {
  width: 26px;
  height: 26px;
}

/* A success message replaces the form */
.cx-card:has(.cx-sent) > .cx-formwrap {
  display: none;
}

/* ---------------------------------------------------------
   Next steps
--------------------------------------------------------- */
.cx-band {
  padding-block: clamp(64px, 9vw, 104px);
}

.cx-band--flush {
  padding-top: 0;
}

.cx-head {
  display: grid;
  gap: 14px;
  max-width: 720px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.cx-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

@media (min-width: 860px) {
  .cx-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.cx-steps li {
  display: grid;
  gap: 8px;
  align-content: start;
  background: var(--cx-paper);
  border: 1px solid var(--cx-rule);
  border-radius: 20px;
  padding: 24px;
}

.cx-n {
  font-family: var(--cx-serif);
  font-style: italic;
  font-size: 28px;
  line-height: 1;
  color: var(--cx-clay);
}

.cx-steps h3 {
  font-size: 20px;
  font-weight: 600;
}

.cx-steps p {
  color: var(--cx-ink-2);
  font-size: 15.5px;
}

/* ---------------------------------------------------------
   Look around + FAQ
--------------------------------------------------------- */
.cx-split {
  display: grid;
  gap: 40px;
}

@media (min-width: 900px) {
  .cx-split {
    grid-template-columns: 1fr 1fr;
    gap: 72px;
  }
}

.cx-split > * {
  min-width: 0;
}

.cx-elsewhere {
  display: grid;
  gap: 12px;
}

.cx-tile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  background: var(--cx-paper);
  border: 1px solid var(--cx-rule);
  border-radius: 18px;
  padding: 18px 20px;
  color: var(--cx-ink);
  transition: border-color 0.2s, transform 0.25s;
}

.cx-tile:hover {
  border-color: var(--cx-clay);
  transform: translateY(-2px);
  color: var(--cx-ink);
}

.cx-tile b {
  display: block;
  font-size: 17px;
  font-weight: 600;
}

.cx-tile span {
  font-size: 14px;
  color: var(--cx-ink-2);
}

.cx-tile .cx-arr {
  font-size: 20px;
  color: var(--cx-clay);
}

.cx-faq details {
  border-top: 1px solid var(--cx-rule);
}

.cx-faq details:last-child {
  border-bottom: 1px solid var(--cx-rule);
}

.cx-faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  font-size: 17px;
  font-weight: 600;
}

.cx-faq summary::-webkit-details-marker {
  display: none;
}

.cx-faq summary::after {
  content: "+";
  font-weight: 400;
  font-size: 24px;
  line-height: 1;
  color: var(--cx-clay);
  transition: transform 0.25s;
}

.cx-faq details[open] summary::after {
  transform: rotate(45deg);
}

.cx-faq details p {
  padding: 0 0 18px;
  color: var(--cx-ink-2);
  max-width: 56ch;
}

.cx-faq details p a {
  color: var(--cx-clay-ink);
  font-weight: 600;
  text-decoration: underline;
}

/* ---------------------------------------------------------
   Fixed controls
--------------------------------------------------------- */
.cx-wa {
  position: fixed;
  right: calc(16px + env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #1f8f4e;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.45);
  transition: opacity 0.2s, transform 0.2s;
}

.cx-wa:hover {
  color: #fff;
}

.cx-wa svg {
  width: 28px;
  height: 28px;
}

/* Hidden on small screens while the hero (form + contact lines) is on screen, so it never covers fields, the submit button or errors */
.cx-wa.is-away {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}

.cx-toast {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 90;
  max-width: calc(100vw - 32px);
  background: #231d18;
  color: #f6f2ec;
  padding: 12px 18px;
  border-radius: 14px;
  font-size: 14px;
}

.cx-toast[hidden] {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .cx-hero::before,
  .cx-hero::after {
    animation: none;
  }

  .cx *,
  .cx-wa {
    transition: none !important;
  }
}
