/* ==========================================================================
   Noord Sporting Group
   Colour and type both follow styl.inc, so the site and the booking flow feel
   like one place. STYL light #f0f8fa / dark #051621 / primary #116379.
   The NSG logo keeps its own forest, orange and gold and is never recoloured;
   orange #D66A2A carries the calls to action and reads as a complement to
   STYL's teal.
   ========================================================================== */

:root {
  /* Site chrome follows styl.inc, so the handoff to booking feels continuous.
     Values read from STYL's own stylesheets, light and dark token sets.
     The NSG logo keeps its own forest/orange/gold and is never recoloured. */
  --forest:      #051621;   /* STYL dark background   */
  --forest-deep: #03101a;   /* a shade under, for the footer */
  --forest-mid:  #0c222e;   /* STYL dark card         */
  --forest-line: #243b47;   /* STYL dark border       */

  --orange:      #D66A2A;   /* from the NSG logo; complements STYL's teal */
  --orange-btn:  #B8551E;   /* button fill: white label clears AA at 4.82:1 */
  --orange-text: #A94C16;   /* orange as text on a light ground: 5.23:1     */
  --orange-deep: #A94C16;   /* hover */
  --orange-dark: #B8551E;
  --amber:       #efa244;   /* STYL's own warm accent */

  --ivory:       #f0f8fa;   /* STYL light background  */
  --ivory-warm:  #e9f4f7;   /* STYL muted             */
  --paper:       #f6fbfc;   /* STYL card              */
  --teal:        #116379;   /* STYL primary (light)   */
  --teal-bright: #1fc4ef;   /* STYL primary (dark)    */
  --secondary:   #d2eef4;

  --gold:        #B8854F;   /* logo foil, unchanged   */
  --gold-light:  #EACFA6;
  --gold-mid:    #C4925C;
  --gold-deep:   #9D6A3B;

  --ink:         #1a2931;   /* STYL foreground        */
  --muted:       #566d75;   /* STYL muted-foreground  */
  --muted-light: rgba(220, 231, 234, .78);
  --line:        #d8e4e7;   /* STYL border            */

  --sans:  "DM Sans", ui-sans-serif, system-ui, sans-serif;
  /* Lora is styl.inc's serif; add it to the font link if a page starts using it */
  --serif: "Lora", Georgia, serif;
  --mono:  "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --shell: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 14px;
  --radius-lg: 22px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --foil: linear-gradient(135deg, var(--gold-deep) 0%, var(--gold-light) 45%, var(--gold-mid) 70%, var(--gold-deep) 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--ivory); color: var(--ink);
  font-family: var(--sans); font-size: clamp(1rem, .97rem + .16vw, 1.0625rem);
  line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--sans); font-weight: 700; line-height: 1.08; letter-spacing: -.02em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 1.5rem + 4.2vw, 4.75rem); }
h2 { font-size: clamp(1.9rem, 1.3rem + 2.3vw, 3rem); }
h3 { font-size: clamp(1.1rem, 1rem + .5vw, 1.4rem); letter-spacing: -.01em; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
::selection { background: var(--orange); color: #fff; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.shell { width: min(100% - var(--gutter) * 2, var(--shell)); margin-inline: auto; }
.section { padding-block: clamp(3.5rem, 2rem + 7vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }
.section--ivory { background: var(--ivory); }
.section--warm  { background: var(--ivory-warm); }
.section--paper { background: var(--paper); }
.section--forest { background: var(--forest); color: var(--ivory); }
.section--forest h2, .section--forest h3 { color: #fff; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 50%; translate: -50% -120%; background: var(--orange); color: #fff; padding: .7rem 1.25rem; border-radius: 0 0 10px 10px; z-index: 200; font-weight: 700; text-decoration: none; transition: translate .2s var(--ease); }
.skip-link:focus { translate: -50% 0; }

/* --- Eyebrow / label ------------------------------------------------------ */
.eyebrow {
  font-family: var(--mono); font-size: .72rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--orange-text);
  margin: 0 0 1rem; display: flex; align-items: center; gap: .7rem;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; flex: none; }
.eyebrow--plain::before { display: none; }
.section--forest .eyebrow, .hero .eyebrow, .build-band .eyebrow { color: var(--gold-light); }
.section--forest .textlink { color: var(--orange); }
.lede { font-size: clamp(1.05rem, 1rem + .5vw, 1.3rem); line-height: 1.6; color: var(--muted); }
.section--forest .lede { color: var(--muted-light); }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 1rem + 3vw, 3.25rem); }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--orange-btn); color: #fff; border: 1.5px solid var(--orange-btn);
  padding: .9rem 1.6rem; border-radius: 999px; cursor: pointer; text-decoration: none;
  font-family: var(--sans); font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  transition: transform .18s var(--ease), background-color .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); background: var(--orange-deep); border-color: var(--orange-deep); box-shadow: 0 14px 26px -16px rgba(214, 106, 42, .85); }
.btn--ghost { background: transparent; color: var(--forest); border-color: rgba(5, 22, 33, .28); }
.btn--ghost:hover { background: var(--forest); border-color: var(--forest); color: var(--ivory); box-shadow: none; }
.btn--light { background: transparent; color: var(--ivory); border-color: rgba(220, 231, 234, .4); }
.btn--light:hover { background: var(--ivory); border-color: var(--ivory); color: var(--forest); box-shadow: none; }
.btn--gold { background: var(--foil); color: var(--forest-deep); border-color: transparent; font-weight: 700; }
.btn--gold:hover { box-shadow: 0 14px 30px -14px rgba(184, 133, 79, .9); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.arrow { transition: transform .18s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.textlink {
  display: inline-flex; align-items: center; gap: .45rem; text-decoration: none;
  font-weight: 600; font-size: .92rem; color: var(--orange-text);
  border-bottom: 1.5px solid rgba(214, 106, 42, .35); padding-bottom: 2px;
  transition: border-color .18s var(--ease), gap .18s var(--ease);
}
.textlink:hover { border-color: var(--orange-text); gap: .75rem; }

/* --- Header --------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(3, 16, 26, .94);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(220, 231, 234, .12);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; padding-block: .5rem; }
.brand img { width: 34px; }
.brand__text { line-height: 1.05; color: var(--ivory); }
.brand__name { display: block; font-size: 1rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.brand__sub { display: block; font-family: var(--mono); font-size: .56rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(220, 231, 234, .62); margin-top: .18rem; }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.nav a { color: rgba(220, 231, 234, .82); text-decoration: none; font-size: .92rem; font-weight: 500; padding-block: .4rem; border-bottom: 1.5px solid transparent; transition: color .16s var(--ease), border-color .16s var(--ease); }
.nav a:hover { color: #fff; border-color: var(--orange); }
.nav .btn { padding: .6rem 1.2rem; font-size: .88rem; }
.nav-toggle { display: none; background: none; border: 1px solid rgba(220, 231, 234, .28); border-radius: 10px; padding: .5rem .6rem; cursor: pointer; color: var(--ivory); }
.nav-toggle span { display: block; width: 20px; height: 2px; background: currentColor; margin: 4px 0; transition: transform .2s var(--ease), opacity .2s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 72px 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--forest-deep); padding: .5rem var(--gutter) 1.6rem;
    border-bottom: 1px solid rgba(220, 231, 234, .12);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .2s var(--ease), transform .2s var(--ease);
    max-height: calc(100dvh - 72px); overflow-y: auto;
  }
  .nav[data-open="true"] { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: .9rem 0; border-bottom: 1px solid rgba(220, 231, 234, .1); font-size: 1rem; }
  .nav .btn { margin-top: 1.1rem; justify-content: center; }
}

/* --- Hero ----------------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden; color: var(--ivory);
  background: radial-gradient(120% 90% at 78% 8%, rgba(31, 196, 239, .14), transparent 58%),
              radial-gradient(90% 70% at 18% 92%, rgba(214, 106, 42, .12), transparent 60%),
              linear-gradient(170deg, var(--forest-mid) 0%, var(--forest) 60%, var(--forest-deep) 100%);
  padding-block: clamp(3.5rem, 2rem + 8vw, 6.5rem) clamp(3rem, 2rem + 5vw, 5rem);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } }
.hero h1 { color: #fff; }
.hero h1 .accent { background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lede { font-size: clamp(1.05rem, 1rem + .55vw, 1.35rem); color: var(--muted-light); max-width: 38ch; }
.hero__badge {
  display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 1.4rem;
  background: rgba(220, 231, 234, .08); border: 1px solid rgba(220, 231, 234, .2);
  padding: .4rem 1rem .4rem .65rem; border-radius: 999px;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(220, 231, 234, .9);
}
.hero__badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(214, 106, 42, .22); }
.hero__mark { justify-self: center; width: min(100%, 300px); filter: drop-shadow(0 26px 44px rgba(0, 0, 0, .4)); }
@media (max-width: 900px) { .hero__mark { width: min(62%, 230px); } }
.hero .btn-row { margin-top: 2rem; }
.hero__meta { margin-top: clamp(2.25rem, 4vw, 3.5rem); padding-top: 1.6rem; border-top: 1px solid rgba(220, 231, 234, .16); display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.4rem; }
.hero__meta dt { font-family: var(--mono); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(220, 231, 234, .58); margin-bottom: .3rem; }
.hero__meta dd { margin: 0; font-weight: 600; font-size: .98rem; color: #fff; }

/* --- Offer cards ---------------------------------------------------------- */
.grid { display: grid; gap: clamp(1rem, 2vw, 1.6rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.offer {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1rem + 1.4vw, 2.1rem); display: flex; flex-direction: column;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.offer:hover { transform: translateY(-4px); border-color: rgba(5, 22, 33, .3); box-shadow: 0 1px 2px rgba(5, 22, 33, .05), 0 18px 40px -24px rgba(5, 22, 33, .4); }
.offer__no { font-family: var(--mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); margin-bottom: .9rem; }
.offer h3 { margin-bottom: .4rem; }
.offer p { color: var(--muted); font-size: .96rem; }
.offer__meta { margin-top: auto; padding-top: 1.2rem; border-top: 1px solid var(--line); display: grid; gap: .3rem; }
.offer__when { font-weight: 600; font-size: .92rem; color: var(--forest); }
.offer__price { font-family: var(--mono); font-size: .8rem; letter-spacing: .06em; color: var(--muted); }
.offer__cta { margin-top: 1.1rem; }

/* --- Schedule list -------------------------------------------------------- */
.schedule { display: grid; gap: 1px; background: rgba(220, 231, 234, .16); border-block: 1px solid rgba(220, 231, 234, .16); }
.schedule__row { background: var(--forest); display: grid; grid-template-columns: minmax(0, .5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; padding: 1.15rem 0; align-items: baseline; }
.schedule__day { font-family: var(--mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); }
.schedule__what { font-weight: 600; color: #fff; }
.schedule__where { color: var(--muted-light); font-size: .94rem; }
@media (max-width: 720px) { .schedule__row { grid-template-columns: 1fr; gap: .25rem; padding: 1rem 0; } }

/* --- Forms ---------------------------------------------------------------- */
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 1rem + 2vw, 2.6rem); box-shadow: 0 1px 2px rgba(5, 22, 33, .05), 0 20px 50px -34px rgba(5, 22, 33, .4); }
.field { display: grid; gap: .4rem; margin-bottom: 1.05rem; }
.field label { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--forest); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--ivory);
  border: 1px solid var(--line); border-radius: 10px; padding: .8rem .95rem; width: 100%;
  transition: border-color .16s var(--ease), background-color .16s var(--ease);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--forest-mid); background: #fff; outline: 2px solid rgba(214, 106, 42, .35); outline-offset: 1px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 1.05rem; }
.hp { position: absolute; left: -9999px; opacity: 0; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 1rem; }

/* --- Campus Noord cross-link band ----------------------------------------- */
.build-band {
  position: relative; isolation: isolate; overflow: hidden; color: var(--ivory);
  background: linear-gradient(135deg, var(--forest-deep) 0%, var(--forest) 50%, var(--forest-mid) 100%);
  border-top: 3px solid transparent; border-image: var(--foil) 1;
  padding-block: clamp(3rem, 2rem + 5vw, 5.5rem);
}
.build-band__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
@media (max-width: 860px) { .build-band__grid { grid-template-columns: 1fr; } }
.build-band h2 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.1rem); }
.build-band h2 .accent { background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent; }
.build-band p { color: var(--muted-light); max-width: 48ch; }
.build-band__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 1.4rem; margin-top: 2rem; }
.build-band__stats dt { font-family: var(--mono); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(220, 231, 234, .55); margin-bottom: .25rem; }
.build-band__stats dd { margin: 0; font-size: 1.35rem; font-weight: 700; color: #fff; letter-spacing: -.02em; line-height: 1.2; text-wrap: balance; }

/* --- Footer --------------------------------------------------------------- */
.site-footer { background: var(--forest-deep); color: rgba(220, 231, 234, .72); padding-block: clamp(2.75rem, 2rem + 3vw, 4rem) 2rem; }
.site-footer a { color: rgba(220, 231, 234, .72); text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(140px, 1fr)); gap: clamp(2rem, 4vw, 3.5rem); }
.footer-brand img { width: 150px; margin-bottom: 1rem; }
.footer-brand p { font-size: .94rem; max-width: 34ch; }
.footer-col h4 { font-family: var(--mono); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(220, 231, 234, .5); margin: 0 0 1rem; font-weight: 500; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; font-size: .94rem; }
.footer-col a[href^="mailto:"] { overflow-wrap: anywhere; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-bottom { margin-top: clamp(2.25rem, 4vw, 3.25rem); padding-top: 1.4rem; border-top: 1px solid rgba(220, 231, 234, .14); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .82rem; color: rgba(220, 231, 234, .5); }

/* --- Reveal --------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .offer:hover { transform: none; }
}

/* --- STYL booking embed ---------------------------------------------------
   The calendar is served by styl.inc/embed.js. It is embedded transparent and
   unthemed, so it inherits STYL's light theme and draws dark text: it must sit
   on a LIGHT section or its header band becomes dark-on-dark. Keep this
   section light unless the snippet regains data-ls-theme="dark".            */
.embed-frame {
  min-height: 420px; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--paper); border: 1px solid var(--line);
  padding: clamp(.5rem, 1.5vw, 1.25rem);
  box-shadow: 0 1px 2px rgba(5, 22, 33, .04), 0 20px 50px -34px rgba(5, 22, 33, .35);
}
.embed-frame > div { width: 100%; }
.embed-note { margin-top: 1rem; font-size: .88rem; color: var(--muted); }
.embed-note a { color: var(--orange-text); }

/* If the embed is ever themed dark again, add this to its section + frame. */
.section--forest .embed-frame { background: rgba(220, 231, 234, .03); border-color: rgba(220, 231, 234, .14); box-shadow: none; }
.section--forest .embed-note { color: rgba(220, 231, 234, .6); }
.section--forest .embed-note a { color: var(--gold-light); }

/* --- Hero background montage ----------------------------------------------
   Footage sits behind the headline, desaturated and darkened so the type
   keeps the AA contrast it was tuned for. The scrim does the heavy lifting:
   if a clip is ever swapped for a brighter one, deepen the scrim rather than
   lighten the text.                                                        */
.hero--video { position: relative; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: var(--forest); }
.hero__video {
  width: 100%; height: 100%; object-fit: cover; object-position: center 42%;
  /* "whitewashed": pull the colour out and lift it, then tint it navy.
     Dark enough for white headline text, light enough that you can see it. */
  filter: saturate(.34) contrast(1.0) brightness(1.02);
  opacity: 0; transition: opacity 1.1s var(--ease);
}
.hero__video.is-playing, .hero--video .hero__video[poster] { opacity: 1; }
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(5, 22, 33, .74) 0%, rgba(5, 22, 33, .62) 42%, rgba(5, 22, 33, .34) 72%, rgba(5, 22, 33, .50) 100%),
    linear-gradient(180deg, rgba(5, 22, 33, .36) 0%, rgba(5, 22, 33, .10) 35%, rgba(3, 16, 26, .80) 100%);
}
@media (max-width: 900px) {
  .hero__video { object-position: center 38%; }
  .hero__scrim {
    background: linear-gradient(180deg, rgba(5, 22, 33, .66) 0%, rgba(5, 22, 33, .56) 45%, rgba(3, 16, 26, .88) 100%);
  }
}
/* No motion wanted, or no file present: the poster carries the section. */
@media (prefers-reduced-motion: reduce) { .hero__video { transition: none; } }
