/* ==========================================================================
   CELES GLOBAL — Contact page
   --------------------------------------------------------------------------
   Loads AFTER styles.css and only adds what this page needs. Tokens, nav,
   footer, buttons, .form / .field / .form__msg, .section and .container are
   all inherited — nothing below re-declares a colour, a radius, a shadow or a
   spacing step that already has a token.

   THE PAGE IS ONE SURFACE. No alternating scenes, no scroll story: a contact
   page is a destination the reader arrived at on purpose, and it should end
   where the answer is rather than carry on.

   CONTENTS
     1  Page frame + the nav at rest
     2  The split
     3  Left column — statement and routes
     4  Right column — the form panel and its confirmation
     5  Responsive
   ========================================================================== */

/* ---------------------------------------------------------- 1. Page frame */
.page-contact {
  background: var(--cream);
}

/* THE NAV IS FROSTED FROM THE FIRST PIXEL. script.js adds .nav--solid past
   40px of scroll, which is right on a page that opens on a full-bleed video
   and wrong on one that opens on cream — there, a transparent bar is an
   invisible bar and the links sit on nothing.

   THE TREATMENT IS ATTACHED TO THE PAGE, NOT TO .nav--solid. Putting that
   class in the markup does not work: the scroll handler REMOVES it at the top
   of the page, so it would be stripped on the first frame. Styling
   .page-contact .nav directly is the thing the toggle cannot undo. */
.page-contact .nav {
  background: rgba(253, 252, 250, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 rgba(27, 24, 34, .07), 0 10px 30px rgba(27, 24, 34, .05);
}
/* .nav::before is the scrim that lifts the bar off the homepage hero footage.
   There is no footage here, so it would only be a grey wash over cream. */
.page-contact .nav::before { opacity: 0; }

/* --------------------------------------------------------------- 2. Split */
/* The founders section's composition and the founders section's ratio, for
   the same reason: a short statement holding one column against a single
   substantial object in the other. Written out rather than shared, because
   .founders__* is named for what it contains. */
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 88px);
  align-items: center;
}

/* ------------------------------------------------- 3. Left — the statement */
.contact__title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  color: var(--ink);
}
.contact__lead {
  margin-top: clamp(16px, 1.6vw, 22px);
  max-width: 42ch;
  font-size: 1.06rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* THE ROUTES SIT ABOVE THE FORM IN READING ORDER, deliberately. The form is
   front-end only; the address beside it is not, and the thing that actually
   works should not be the thing the reader finds second. */
.contact__routes {
  margin-top: clamp(30px, 3.4vw, 46px);
  display: grid;
  gap: 18px;
  list-style: none;
  padding: 0;
}
.contact__route {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}
/* The .clinic__icon chip at the same size — lavender-100 tile, lavender-700
   mark, the page's small radius. One icon treatment across the site. */
.contact__route-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: var(--r-xs);
  background: var(--lav-100);
  color: var(--lav-700);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.contact__route-icon svg { width: 22px; height: 22px; }
.contact__route:hover .contact__route-icon {
  transform: scale(1.08);
  box-shadow: 0 10px 26px rgba(145, 121, 210, .28);
}
.contact__route-label {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 3px;
}
.contact__route-value {
  display: block;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--ink-2);
  text-decoration: none;
}
/* The underline draws from the left, same as the footer and nav links (§19d). */
a.contact__route-value {
  position: relative;
  display: inline-block;
}
a.contact__route-value::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 0; height: 1px;
  background: var(--lav-600);
  transition: width .35s var(--ease);
}
a.contact__route-value:hover { color: var(--lav-700); }
a.contact__route-value:hover::after { width: 100%; }

/* ------------------------------------------------- 4. Right — the form panel */
/* The site's card build: translucent white over the cream with a blur behind
   it, a lavender-tinted hairline and a lavender-tinted shadow — the same
   construction as .clinic__points li and .founder. */
.contact__panel {
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 40px);
  box-shadow: 0 18px 48px rgba(145, 121, 210, .13);
}
.contact__form { gap: 18px; }
/* The one thing .field does not already say, because it is the only textarea
   on the site. */
.contact__form textarea {
  resize: vertical;
  min-height: 128px;
  line-height: 1.55;
}
.contact__fine {
  font-size: .82rem;
  line-height: 1.5;
  color: var(--ink-mute);
  text-align: center;
}

.contact__done { text-align: center; }
.contact__done:focus { outline: none; }
.contact__check {
  width: 54px; height: 54px;
  margin: 0 auto 18px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--lav-100);
  color: var(--lav-700);
}
.contact__check svg { width: 26px; height: 26px; }
.contact__done h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.contact__done p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.contact__done a {
  color: var(--lav-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------------------------------------------------------- 5. Responsive */
/* The split collapses where the founders split does, so the two pages break
   at the same width and the site has one stacking point, not two. */
@media (max-width: 1120px) {
  .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .contact__intro { max-width: 620px; }
}
