/* /contact/ (layout d). The quote form sits high on this page, so its roofline meets a white section,
   and the FAQ (last section) carries the roofline into the footer instead. */
.ct-reach { padding-bottom: var(--s6); }
.ct-where { margin-top: var(--s5); color: var(--muted); max-width: 60ch; }
.page-contact .quote { padding-top: var(--s4); padding-bottom: var(--s8); background: linear-gradient(180deg, var(--bg-soft) 0 40%, #fff 40%); }
.page-contact .quote__roof { display: none; }

/* general contact form: one even rhythm between every field */
.ct-form { margin-top: var(--s5) !important; padding: var(--s5); border-radius: var(--r-xl); background: var(--bg-soft); display: grid; gap: var(--s5); }
@media (min-width: 768px) { .ct-form .field { margin-top: 0; } .ct-form .qform__pair { row-gap: var(--s5); } }
.ct-form .btn { justify-self: start; }
@media (min-width: 768px) { .ct-form { padding: var(--s6); } }
/* the photo only earns its space beside the form on wide screens */
@media (max-width: 1099px) { .page-contact .split__media { display: none; } }

.ct-faq { position: relative; padding-bottom: calc(var(--section) + var(--roof-h)); }
.ct-faq__roof { position: absolute; left: 0; right: 0; bottom: -1px; --roof-color: var(--em-950); }

/* ===== phones (shared tokens from css/d.css, phone queries only) ===== */
@media (max-width: 767px) {
  .ct-where { margin-top: 16px; font-size: var(--fs-compact); }
  .page-contact .quote { padding-bottom: var(--section); }
  /* fields, labels, pairs and the textarea take the shared field rhythm */
  .ct-form { padding: var(--card-pad-sm); gap: 0; }
  .ct-form > div:first-of-type .field:first-child { margin-top: 0; }
  .ct-form .btn { min-height: 48px; margin-top: var(--field-gap); }
  .ct-faq { padding-top: var(--section); padding-bottom: calc(var(--section) + var(--roof-h)); }
}
@media (min-width: 360px) and (max-width: 767px) {
  .ct-form > div:first-of-type .field { margin-top: 0; }
  /* the topic select needs the full width to show its longest option */
  .ct-form .ct-form__solo { grid-template-columns: minmax(0, 1fr); }
}

/* no hero: the page opens on the contact options */
.ct-reach { padding-top: calc(var(--hdr-h) + var(--s6)); }
.ct-reach .crumbs { margin-bottom: var(--s3); }
.ct-reach .crumbs__list { color: #4d5a51; }
.ct-reach .crumbs__item + .crumbs__item::before { color: var(--line); }
.ct-reach .crumbs a { color: var(--em-700); }
.ct-reach .crumbs [aria-current] { color: var(--ink); }
.ct-title { font-size: clamp(1.75rem, 1.1rem + 2.4vw, 2.6rem); margin-bottom: var(--s5); }
@media (max-width: 767px) { .ct-reach { padding-top: calc(var(--hdr-h) + 14px); } .ct-title { font-size: var(--fs-h1p); margin-bottom: var(--gap-head); } }
