/* H2 Pure Life — Contact page
 * Centred hero, two-column contact grid, success state.
 * Form-field base styles live in base.css; this file styles the panels and layout.
 */

/* ------------------------------------------------------------------
   Hero — centred, text-only, light background
------------------------------------------------------------------ */
.contact-hero {
  background: var(--cream);
  padding: clamp(72px, 11vw, 140px) 0 clamp(48px, 7vw, 88px);
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.contact-hero__inner {
  text-align: center;
}
.contact-hero__inner .eyebrow {
  margin-bottom: 14px;
}
.contact-hero__h1 {
  margin: 0 0 22px;
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
}
.contact-hero__sub {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  line-height: 1.5;
  color: var(--ink-soft);
  font-style: italic;
  max-width: 56ch;
  margin: 0 auto;
  font-weight: 400;
}

/* ------------------------------------------------------------------
   Call-us panel — primary contact method, sits above the grid
------------------------------------------------------------------ */
.contact-call {
  background: var(--cream-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(40px, 6vw, 64px) 0;
  text-align: center;
}
.contact-call__inner {
  text-align: center;
}
.contact-call__inner .eyebrow {
  margin-bottom: 14px;
}
.contact-call__number {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 4vw, 2.25rem);
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--teal-deep);
  padding-bottom: 4px;
  margin: 4px 0 14px;
  text-decoration: none;
  transition: color var(--tx) var(--ease), border-color var(--tx) var(--ease);
}
.contact-call__number:hover,
.contact-call__number:focus-visible {
  color: var(--teal-deep);
  border-bottom-color: var(--teal);
}
.contact-call__hours {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0 0 14px;
}
.contact-call__fallback {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 56ch;
  margin: 0 auto;
}
.contact-call__fallback a {
  color: var(--teal-readable);
  border-bottom: 1px solid currentColor;
}
.contact-call__fallback a:hover {
  color: var(--teal-deep);
}

/* ------------------------------------------------------------------
   Contact grid — two columns at desktop, stacks below 900px
------------------------------------------------------------------ */
.contact-grid-section {
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: clamp(56px, 8vw, 96px);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: stretch;
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* Shared panel base */
.contact-panel {
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
}
.contact-panel .eyebrow { margin-bottom: 14px; }
.contact-panel__h {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  line-height: 1.18;
  margin: 0 0 14px;
}
.contact-panel__lede {
  color: var(--ink-soft);
  font-size: 1rem;
  margin: 0 0 24px;
}

/* ------------------------------------------------------------------
   LEFT panel — direct email, stone background, teal left border
------------------------------------------------------------------ */
.contact-panel--email {
  background: var(--cream-2);
  border-left: 2px solid var(--teal-deep);
  border-top-left-radius: var(--radius);
  border-bottom-left-radius: var(--radius);
}
.contact-panel__email {
  margin: 8px 0 28px;
}
.contact-panel__email a {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--teal-deep);
  padding-bottom: 4px;
  word-break: break-all;
  transition: color var(--tx) var(--ease), border-color var(--tx) var(--ease);
}
.contact-panel__email a:hover {
  color: var(--teal-deep);
  border-bottom-color: var(--teal);
}
.contact-panel__hours {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0 0 18px;
}
.contact-panel__privacy {
  font-size: 0.85rem;
  color: var(--ink-mute);
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin: auto 0 0;
  font-style: italic;
}

/* ------------------------------------------------------------------
   RIGHT panel — form
------------------------------------------------------------------ */
.contact-panel--form {
  background: var(--white);
  border: 1px solid var(--line);
}
.contact-form {
  display: flex;
  flex-direction: column;
}
.contact-form .form-field:last-of-type {
  margin-bottom: 28px;
}
.contact-form__actions {
  display: flex;
  justify-content: flex-start;
}
.contact-form__actions .btn {
  width: auto;
  min-width: 200px;
}
@media (max-width: 540px) {
  .contact-form__actions .btn { width: 100%; }
}

/* Italic helper text below an input */
.form-field__hint {
  display: block;
  font-size: 0.85rem;
  color: var(--ink-mute);
  margin-top: 6px;
  font-style: italic;
}

/* Consent line beneath the Send button */
.contact-form__consent {
  font-size: 0.85rem;
  color: var(--ink-mute);
  margin: 14px 0 0;
}

/* Inline error message styling — paired with aria-describedby.
   The [hidden] override is required because `display: block` here would
   otherwise override the user-agent stylesheet's `[hidden] { display: none }`,
   leaving the error spans visible on page load before any submit attempt. */
.form-field__error {
  display: block;
  font-size: 0.82rem;
  color: #B0322B;
  margin-top: 2px;
  font-weight: 500;
}
.form-field__error[hidden] { display: none; }
.form-field input[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] {
  border-color: #B0322B;
  box-shadow: 0 0 0 3px rgba(176, 50, 43, 0.12);
}

/* ------------------------------------------------------------------
   Success state — replaces the form once submitted
------------------------------------------------------------------ */
.contact-success {
  padding: 8px 0;
}
.contact-success .eyebrow { margin-bottom: 14px; }
.contact-success__h {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  line-height: 1.18;
  margin: 0 0 16px;
}
.contact-success p {
  color: var(--ink-soft);
  font-size: 1rem;
}
.contact-success a {
  color: var(--teal-readable);
  border-bottom: 1px solid currentColor;
}
.contact-success a:hover { color: var(--teal-deep); }

/* When the form is hidden, let the success block claim the panel comfortably */
.contact-form[hidden] + .contact-success { display: block; }
