/* ==========================================================================
   SubjectRX — contact.css
   Page-specific styles for contact.html only.
   Form field base styles (field-input, field-label, field-error, consent)
   come from global.css. This file handles contact-page layout only.
   ========================================================================== */


/* ─────────────────────────────────────────────────────────────────────────
   PAGE WRAP — 2-column full-viewport layout
   Left: cream form column. Right: dark green context panel.
   Starts below the fixed nav via padding-top: var(--nav-h).
   ───────────────────────────────────────────────────────────────────────── */
.page-wrap {
  padding-top: var(--nav-h, 52px);
  display: grid;
  grid-template-columns: 1fr 320px;
  min-height: 100dvh;
  align-items: stretch;
}


/* ─────────────────────────────────────────────────────────────────────────
   LEFT — form column
   ───────────────────────────────────────────────────────────────────────── */
.form-col {
  background: var(--cream);
  border-right: 1px solid var(--bdr);
  padding: 48px 52px 64px 44px;
}

.page-label {
  font-family: 'DM Mono', monospace;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sage);
  display: block;
  margin-bottom: 12px;
}

/* Contact page H1 — Cormorant italic, light cream background */
.page-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.04;
  letter-spacing: -.01em;
  color: var(--ink);
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--bdr);
}

/* Field row — 2-up grid for name fields */
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.field-row .field {
  margin-bottom: 0;
}


/* ─────────────────────────────────────────────────────────────────────────
   HELPER REVEAL — dotted underline trigger for project type context
   ───────────────────────────────────────────────────────────────────────── */
.helper-wrap {
  margin-bottom: 6px;
}

.helper-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--sage);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 2px;
  transition: color .15s;
}

.helper-trigger:hover {
  color: var(--g);
}

.helper-trigger:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.helper-chevron {
  font-size: 8px;
  transition: transform .2s;
  display: inline-block;
}

.helper-chevron.open {
  transform: rotate(180deg);
}

.helper-reveal {
  overflow: hidden;
  max-height: 0;
  transition: max-height .32s cubic-bezier(0.4, 0, 0.2, 1);
}

.helper-reveal.open {
  max-height: 260px;
  margin-top: 8px;
}

.helper-reveal-inner {
  background: var(--bdr-lt);
  border-left: 2px solid var(--sage);
  border-radius: 0 3px 3px 0;
  padding: 12px 16px;
}

.helper-sentence {
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 8px;
}

.helper-list {
  padding-left: 14px;
  list-style: disc;
}

.helper-list li {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--sage);
  line-height: 1.8;
}


/* ─────────────────────────────────────────────────────────────────────────
   RIGHT — dark green context panel
   ───────────────────────────────────────────────────────────────────────── */
.context-col {
  background: linear-gradient(160deg, #2A4A3D 0%, #1E3830 100%);
  padding: 48px 40px 48px 44px;
  display: flex;
  flex-direction: column;
}

.ctx-item {
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.ctx-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.ctx-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(110, 146, 130, .5);
  display: block;
  margin-bottom: 8px;
}

.ctx-value {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, .86);
  line-height: 1.3;
}

.ctx-note {
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .38);
  line-height: 1.68;
  margin-top: 6px;
}

.ctx-email {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, .5);
  margin-top: 6px;
  display: block;
  text-decoration: none;
  transition: color .15s;
}

.ctx-email:hover {
  color: rgba(255, 255, 255, .78);
}


/* ─────────────────────────────────────────────────────────────────────────
   RESPONSIVE — stack columns on mobile
   ───────────────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .page-wrap {
    grid-template-columns: 1fr;
  }

  .form-col {
    border-right: none;
    border-bottom: 1px solid var(--bdr);
    padding: 40px 22px 52px;
  }

  .context-col {
    padding: 40px 22px;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 0;
  }
}

@media (max-width: 600px) {
  .form-col {
    padding: 32px 22px 44px;
  }
}
