/* assets/nbsx/pages/contact.css — templates/contact.php
   (blueprint v2 §5 "Contact", pages 85 / 87). Loaded after core.css, pages.css
   and sections/students.css by inc/nbsx-enqueue.php, so it is last and never
   has to fight a section.

   Screens: hero (light, page kit) → #find (light, contact details beside the
   legacy #map container) → #nbsx-contact-form (ink, the page kit's enquiry form) →
   #ambassadors (light, the six ambassador cards, reusing the shared
   .nbsx-students__* card classes the section CSS already carries) → #follow
   (warm, social links as text + the newsletter field).

   Everything new is namespaced .nbsx-contact__*; the only rules that touch a
   shared class are the id-scoped heading resets below, which undo the legacy
   bundle and change nothing outside this page's sections.
   Motion: transform / opacity only (plus background-size, a paint-only
   exception of §3.9, inherited from .nbsx-link). No !important, no Swiper,
   no new observer. Mobile ≤700, tablet ≤1024. */

/* ══ headings: undo the legacy element rules, scoped to this page ══════════
   assets/css/main.min.css (still loaded site-wide) styles the bare elements —
   `h1..h6{font-family:"Epiloque";font-weight:700;color:var(--clr-blue)}` (a
   typo family with no @font-face) and `h1{color:var(--clr-white);
   text-transform:uppercase}`, `h3{font-family:"Gilroy";font-size:52px}` — and
   an element rule beats an inherited value, so a rebuilt hero would render
   white on white. Same fix as pages/career-services.css: colour, family and
   case restored for THIS page's headings only, keyed to its own section ids,
   so the eventual core fix is a no-op here. */
#contact-hero .nbsx-pagehero__h1,
#find .nbsx-h2,
#nbsx-contact-form .nbsx-h2,
#ambassadors .nbsx-h2,
#follow .nbsx-h2,
#follow .nbsx-h2--s{color:var(--fg);font-family:inherit;text-transform:none}

/* ══ the two split screens (#find, #follow) ════════════════════════════════ */
.nbsx-contact__split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(32px,5vw,80px);align-items:start}
.nbsx-contact__col{min-width:0}

/* ══ #find — the contact details ═══════════════════════════════════════════ */
.nbsx-contact__details{margin:40px 0 0;padding:0;display:grid;gap:28px}
.nbsx-contact__detail{display:grid;gap:6px}
.nbsx-contact__label{margin:0;letter-spacing:.06em;text-transform:uppercase}
.nbsx-contact__value{margin:0;font-size:var(--t-title);font-weight:400;line-height:1.4}
.nbsx-contact__address{font-style:normal}
.nbsx-contact__value .nbsx-contact__a{font-size:var(--t-title)}
.nbsx-contact__value .nbsx-contact__a + .nbsx-contact__a{margin-left:20px}

/* ══ #find — the map card ══════════════════════════════════════════════════
   #map is the legacy Google Maps container. Until (or unless) the map script
   is loaded, the card carries the link to the same place on Google Maps, so the
   box is never an empty grey rectangle; google.maps.Map() replaces its content
   when it runs. */
.nbsx-contact__map-wrap{margin:0}
.nbsx-contact__map{aspect-ratio:4/3;width:100%;display:flex;align-items:flex-end;padding:clamp(20px,3vw,32px)}
.nbsx-contact__map-cta{margin:0}

/* ══ #ambassadors ══════════════════════════════════════════════════════════
   The cards are the shared .nbsx-students__* markup (sections/students.css is
   enqueued for this template), so only the spacing under the heading is new. */
.nbsx-contact__amb-grid{margin-top:48px}

/* ══ #follow — social links as text + the newsletter field ═════════════════ */
.nbsx-contact__social{list-style:none;margin:32px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:12px 28px}
.nbsx-contact__news{min-width:0;padding-top:8px}
.nbsx-contact__news-h{margin:0 0 20px;max-width:24ch}
.nbsx-contact__news-form{margin:0}
.nbsx-contact__news-field{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.nbsx-contact__news-input{flex:1 1 220px;min-width:0;height:48px;padding:0 16px;border:1px solid var(--hair);border-radius:999px;background:var(--paper);color:var(--fg);font-family:inherit;font-size:var(--t-small);line-height:1.2;-webkit-appearance:none;appearance:none;transition:border-color .2s var(--ease)}
.nbsx-contact__news-input::placeholder{color:var(--muted)}
.nbsx-contact__news-input:hover{border-color:var(--indigo)}
.nbsx-contact__news-btn{flex:none}
.nbsx-contact__news-note{margin:14px 0 0;max-width:46ch}
.nbsx-contact__news-msg{margin:12px 0 0;min-height:1.4em}
.nbsx-contact__news-msg.is-err{color:var(--magenta)}
.nbsx-contact__news-msg.is-ok{color:var(--indigo)}
.nbsx-contact__news-form.is-done .nbsx-contact__news-field{display:none}

/* ══ tablet ≤1024 ══════════════════════════════════════════════════════════ */
@media (max-width:1024px){
  .nbsx-contact__split{gap:clamp(28px,4vw,48px)}
  .nbsx-contact__details{margin-top:32px;gap:24px}
  .nbsx-contact__amb-grid{margin-top:40px}
}

/* ══ mobile ≤700 ═══════════════════════════════════════════════════════════ */
@media (max-width:700px){
  .nbsx-contact__split{grid-template-columns:minmax(0,1fr);gap:40px}
  .nbsx-contact__details{margin-top:28px;gap:22px}
  .nbsx-contact__value{font-size:17px}
  .nbsx-contact__value .nbsx-contact__a{font-size:17px}
  .nbsx-contact__value .nbsx-contact__a + .nbsx-contact__a{margin-left:16px}
  .nbsx-contact__map{aspect-ratio:3/2;padding:20px}
  .nbsx-contact__amb-grid{margin-top:32px}
  .nbsx-contact__social{margin-top:24px;gap:10px 20px}
  .nbsx-contact__news{padding-top:0}
  .nbsx-contact__news-field{gap:10px}
  .nbsx-contact__news-input{flex:1 1 100%}
  .nbsx-contact__news-btn{width:100%}
}

/* ══ reduced motion ════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion:reduce){
  .nbsx-contact__news-input{transition:none}
}
