/* Contact: a calm white hero, then one section on the site grid (label in column 1, the form and its
   details in columns 2 to 4), then the Daylight close and footer. Tokens come from ../css/site.css;
   the nav and the close from ../css/nav.css. */

.nav { position: sticky; top: 0; z-index: 20; }
/* The grain filter's <svg> is the first child of body; it takes no space (as on About). */
body > svg:first-child { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---- Section: label left, form right, on the four-column grid (as the About Team head). ---- */
.contact-sec { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; padding: 96px var(--margin); }
.contact-sec > .sec-title { grid-column: 1; }
.contact-body { grid-column: 2 / -1; display: grid; gap: 64px; max-width: 880px; }

/* ---- Form: one bottom rule per field, 18px text, 56px tall; labels above in the label style. ---- */
.contact-form { display: grid; gap: 40px; }
.field { display: grid; gap: 8px; }
.field__label { font: var(--t-label); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.field__help { font: var(--t-small); color: var(--muted); margin: 0; }
.field input, .field textarea { display: block; width: 100%; margin: 0; padding: 14px 0; border: 0; border-bottom: 1px solid var(--rule-strong);
  border-radius: 0; background: transparent; color: var(--ink); font: 400 18px/28px var(--font); -webkit-appearance: none; appearance: none; }
.field input { height: 56px; }
.field textarea { min-height: 168px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

/* Send: the site's .cta (ink underline, colour flood on hover). A button needs the reset; the tap
   height is raised to 44px so it meets the touch target on phones. */
.contact-form__send { display: flex; }
.contact-form .cta { display: inline-flex; align-items: center; min-height: 44px; padding: 7px 0; background: none; border: 0; color: var(--ink); cursor: pointer; font: 500 20px/30px var(--font); }

/* Details under the form: plain lines, no links until the real details are set. */
.contact-details { display: grid; gap: 8px; font: var(--t-lead); color: var(--body); }

@media (max-width: 760px) {
  .contact-hero { padding: 64px var(--margin) 48px; }
  .contact-sec { grid-template-columns: minmax(0, 1fr); row-gap: 32px; padding: 48px var(--margin); }
  .contact-sec > .sec-title, .contact-body { grid-column: 1; }
  .contact-body { gap: 48px; }
  .contact-form { gap: 32px; }
}

/* On Contact the close keeps its Daylight band and footer but drops its own headline and
   "Contact" link: the page already is the call, and the link pointed at itself. */
.close__inner { display: none; }
.close .footer--night { margin-top: 0; }
