/* ═══════════════════════════════════════════════════════
   Nomade Educatie — Nomade Digitaal (/nomade-digitaal)
   Page-specific styles only. Everything generic (tokens,
   .nh-btn, .nh-badge, .nh-chip, .nh-mark, .nh-reveal,
   .nh-ticker, .nh-secthead, .nh-tile, .nh-checklist,
   .nh-darkblock, .nh-slot) comes from css/home.css, which
   is why <main> carries both .nh-home and .nh-digitaal.
   Scoped to .nh-digitaal so nothing leaks to other pages.
   ═══════════════════════════════════════════════════════ */

/* ─── 1. Primitive tweaks to the design's spec ─── */

/* The design's numerals are a touch smaller than the homepage's */
.nh-digitaal .nh-secthead__num {
  font-size: clamp(56px, 8vw, 96px);
}

/* Design: hero marker starts at .5s (homepage waits 1s) */
.nh-digitaal .nh-mark--hero {
  animation-delay: 0.5s;
}

/* Design speed is 28s for a 2-copy marquee; with 8 copies (2 halves of 4)
   the same visual speed needs 28s × 4 = 112s for one -50% slide. */
.nh-digitaal .nh-ticker__track {
  animation-duration: 112s;
}

/* Design slotquote: 88px padding, 24ch measure */
.nh-digitaal .nh-slot {
  padding: 88px 32px;
}

.nh-digitaal .nh-slot__quote {
  font-size: clamp(28px, 4vw, 44px);
  max-width: 24ch;
}


/* ─── 2. Section rhythm ───────────────────────────────
   Only the vertical padding is set here so .nh-section's
   horizontal padding (32px, 20px under 640px) keeps working. */
.nh-digitaal .nd-sect--leerling  { padding-top: 80px; padding-bottom: 32px; }
.nh-digitaal .nd-sect--darkwrap  { padding-top: 0;    padding-bottom: 40px; }
.nh-digitaal .nd-sect--cards-a   { padding-top: 0;    padding-bottom: 72px; }
.nh-digitaal .nd-sect--leraar    { padding-top: 24px; padding-bottom: 32px; }
.nh-digitaal .nd-sect--kompas    { padding-top: 0;    padding-bottom: 32px; }
.nh-digitaal .nd-sect--cards-b   { padding-top: 16px; padding-bottom: 72px; }
.nh-digitaal .nd-sect--actueel   { padding-top: 0;    padding-bottom: 72px; }
.nh-digitaal .nd-sect--toegang   { padding-top: 0;    padding-bottom: 72px; }

/* The site header is fixed — keep deep links clear of it */
.nh-digitaal #dhero,
.nh-digitaal #leerling,
.nh-digitaal #leraar,
.nh-digitaal #toegang,
.nh-digitaal #faq {
  scroll-margin-top: var(--header-height, 72px);
}


/* ─── 3. Hero ─── */
.nh-digitaal .nd-hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: calc(var(--header-height, 72px) + 56px) 32px 40px;
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(300px, 1.05fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.nh-digitaal .nd-hero__text,
.nh-digitaal .nd-hero__art { min-width: 0; }

.nh-digitaal .nd-hero__title {
  font-weight: 700;
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.14;
  margin: 24px 0 0;
  text-wrap: balance;
}

.nh-digitaal .nd-hero__title .nh-mark { padding: 2px 10px; }

.nh-digitaal .nd-hero__lead {
  font-size: 17px;
  line-height: 1.8;
  color: var(--home-body);
  max-width: 52ch;
  margin: 20px 0 0;
  text-wrap: pretty;
}

.nh-digitaal .nd-hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.nh-digitaal .nd-hero__meta {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--home-body);
  margin: 18px 0 0;
}

.nh-digitaal .nd-hero__meta a { font-weight: 600; }

/* Collage: brede wereldkaart als anker, klasoverzicht en telefoon
   overlappen de onderrand als gelaagd cluster */
.nh-digitaal .nd-hero__art {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 16px;
  align-items: start;
}

.nh-digitaal .nd-shot {
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(29, 29, 31, 0.14);
  transform: rotate(var(--r, 0deg));
}

.nh-digitaal .nd-shot > img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.nh-digitaal .nd-shot--1 {
  grid-column: 1 / -1;
  --r: -1.5deg;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(29, 29, 31, 0.16);
  z-index: 1;
  animation: nh-landIn 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) 0.15s both,
             nh-floaty 7s ease-in-out 1.2s infinite;
}

.nh-digitaal .nd-shot--2 {
  --r: 2.5deg;
  /* schuift over de linkeronderhoek van de wereldkaart heen */
  margin-top: -46px;
  z-index: 2;
  animation: nh-landIn 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) 0.3s both,
             nh-floaty 6.5s ease-in-out 1.5s infinite;
}

.nh-digitaal .nd-shot--3 {
  --r: -4deg;
  /* de telefoon steekt vooraan over de rechteronderrand van de kaart uit */
  margin-top: -140px;
  z-index: 3;
  animation: nh-landIn 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) 0.45s both,
             nh-floaty 7.5s ease-in-out 1.8s infinite;
  /* geen witte kaart om de telefoon: het beeld is strak uitgesneden met
     alpha-transparantie en een eigen zachte schaduw */
  background: none;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
  display: flex;
  justify-content: flex-end;
  padding-right: 6px;
}

.nh-digitaal .nd-shot--3 > img {
  width: auto;
  max-width: 84%;
  max-height: 400px;
  object-fit: contain;
}

/* Slot ratios (the delivered crops are close but not exact) */
.nh-digitaal .nd-shot--1 > img { aspect-ratio: 16 / 10; }
.nh-digitaal .nd-shot--2 > img { aspect-ratio: 4 / 3; }


/* ─── 4. Featurekaart-screenshots ─── */
.nh-digitaal .nd-card__shot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--home-hairline);
  background: #fff;
  /* net als de oude placeholder: onderkant van elke kaart in de rij gelijk */
  margin-top: auto;
}

/* ─── 4b. Screenshot placeholders (interim) ─── */
.nh-digitaal .nd-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px;
  border: 1.5px dashed #d5cfc2;
  border-radius: 12px;
  background: var(--home-chip);
  color: #8b8474;
  font-weight: 600;
  font-size: 12.5px;
  line-height: 1.6;
  letter-spacing: 0.02em;
}

.nh-digitaal .nd-ph--16x10 { aspect-ratio: 16 / 10; }
.nh-digitaal .nd-ph--4x3   { aspect-ratio: 4 / 3; }

/* Inside the hero collage the wrapper already supplies the radius */
.nh-digitaal .nd-shot .nd-ph {
  border-radius: inherit;
  background: #faf9f6;
}


/* ─── 5. Section intros ─── */
.nh-digitaal .nd-lead {
  font-weight: 600;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.5;
  color: var(--home-teal);
  margin: 16px 0 0;
  text-wrap: balance;
}

.nh-digitaal .nd-intro {
  color: var(--home-body);
  font-size: 16.5px;
  line-height: 1.7;
  max-width: 62ch;
  margin: 14px 0 0;
  text-wrap: pretty;
}


/* ─── 6. Fake browser frame (two variants) ─── */
.nh-digitaal .nd-frame {
  min-width: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}

.nh-digitaal .nd-frame__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
}

.nh-digitaal .nd-frame__dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.nh-digitaal .nd-frame__url {
  flex: 1;
  height: 16px;
  min-width: 40px;
  margin-left: 8px;
  border-radius: 99px;
}

.nh-digitaal .nd-frame__shot {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
}

/* Sticky scroll-interactie (sectie 01): de kolom van het kader is even hoog
   als de tiles-kolom; het kader plakt onder de header en reist zo mee naar
   beneden door de lege ruimte terwijl de bezoeker langs het blok scrollt. */
.nh-digitaal .nd-frame-col {
  min-width: 0;
  align-self: stretch;
}

.nh-digitaal .nd-frame-col .nd-frame {
  position: sticky;
  top: calc(var(--header-height, 72px) + 24px);
}

/* Dark variant — sits inside the #10393d block */
.nh-digitaal .nd-frame--dark {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.nh-digitaal .nd-frame--dark .nd-frame__bar {
  background: var(--home-chip);
  border-bottom: 1px solid #e2ded4;
}

.nh-digitaal .nd-frame--dark .nd-frame__dot { background: #d9d4c8; }
.nh-digitaal .nd-frame--dark .nd-frame__url { background: #e7e3d9; }

/* Light variant — sits on the page background */
.nh-digitaal .nd-frame--light {
  border: 1.5px solid var(--home-border);
  box-shadow: 0 12px 32px rgba(29, 29, 31, 0.1);
}

.nh-digitaal .nd-frame--light .nd-frame__bar {
  background: #f6f4ef;
  border-bottom: 1px solid var(--home-border);
}

.nh-digitaal .nd-frame--light .nd-frame__dot { background: #dcd7cb; }
.nh-digitaal .nd-frame--light .nd-frame__url { background: #efece4; }


/* ─── 7. 01 · dark block (screenshot + feature tiles) ─── */
.nh-digitaal .nd-dark {
  border-radius: 24px;
  padding: clamp(26px, 3.5vw, 48px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(24px, 3.5vw, 44px);
  align-items: start;
  /* nh-darkblock zet overflow:hidden, maar dat maakt dit blok een scroll-
     container en breekt position:sticky — clip knipt zonder dat effect. */
  overflow: clip;
}

.nh-digitaal .nd-tiles {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}


/* ─── 8. Feature cards (used by 01, 02 and the price row) ─── */
.nh-digitaal .nd-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 20px;
}

.nh-digitaal .nd-card,
.nh-digitaal .nd-price {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1.5px solid var(--home-border);
  border-radius: 18px;
  padding: 24px;
}

.nh-digitaal .nd-price { padding: 26px; }

.nh-digitaal .nd-card h3 {
  font-weight: 600;
  font-size: 18px;
  line-height: 1.35;
  margin: 0 0 10px;
}

.nh-digitaal .nd-price h3 {
  font-weight: 600;
  font-size: 17px;
  line-height: 1.35;
  margin: 0 0 10px;
}

.nh-digitaal .nd-card p,
.nh-digitaal .nd-price p {
  color: var(--home-body);
  font-size: 14.5px;
  line-height: 1.7;
  margin: 0;
  text-wrap: pretty;
}

.nh-digitaal .nd-card p { margin-bottom: 14px; }

/* Keep the image slot flush with the bottom of every card in the row */
.nh-digitaal .nd-card .nd-ph { margin-top: auto; }


/* ─── 9. 02 · klasoverzicht + checklist ─── */
.nh-digitaal .nd-kompas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(24px, 3.5vw, 44px);
  align-items: start;
}

.nh-digitaal .nd-kompas__body { min-width: 0; }

.nh-digitaal .nd-kompas__title {
  font-weight: 600;
  font-size: 19px;
  line-height: 1.35;
  margin: 0 0 12px;
}


/* ─── 10. Nomade Actueel — gedeelde teal-kaart, stijlen staan in home.css
   (.nh-home .nd-actueel*), zodat homepage en deze pagina identiek zijn ─── */


/* ─── 11. Toegang & prijzen ─── */
.nh-digitaal .nd-toegang__title {
  font-weight: 700;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.2;
  text-align: center;
  margin: 0 0 32px;
  text-wrap: balance;
}

.nh-digitaal .nd-toegang__cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}


/* ─── 12. FAQ — het sitepatroon (.section--faq uit style.css/home.css);
   dot-grid.js maskeert de dots achter .faq__list, dus geen extra stijlen nodig ─── */


/* ═══════════════════════════════════════════════════════
   13. Responsive
   ═══════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .nh-digitaal .nd-hero {
    grid-template-columns: 1fr;
    padding: calc(var(--header-height, 72px) + 40px) 20px 32px;
  }

  /* text first, collage below */
  .nh-digitaal .nd-hero__text { order: -1; }

  .nh-digitaal .nd-hero__art {
    max-width: 420px;
    margin: 24px auto 0;
  }

  /* Same guard as the homepage hero: the land-in/float pair leaves the tiles
     at opacity 0 until it ticks, which is not worth the risk on phones. */
  .nh-digitaal .nd-shot {
    animation: none;
    opacity: 1;
    transform: rotate(var(--r, 0deg));
  }

  /* kleinere collage → kleinere overlap */
  .nh-digitaal .nd-shot--2 { margin-top: -26px; }
  .nh-digitaal .nd-shot--3 { margin-top: -72px; }
  .nh-digitaal .nd-shot--3 > img { max-height: 280px; }

  .nh-digitaal .nd-sect--leerling { padding-top: 64px; }
}

@media (max-width: 640px) {
  .nh-digitaal .nd-sect {
    padding-left: 20px;
    padding-right: 20px;
  }

  .nh-digitaal .nh-slot { padding: 72px 24px; }
  .nh-digitaal .nd-toegang__cta .nh-btn { flex: 1 1 220px; }
}

@media (max-width: 420px) {
  .nh-digitaal .nd-hero { padding-left: 16px; padding-right: 16px; }
  .nh-digitaal .nd-hero__art { gap: 12px; }
  .nh-digitaal .nd-dark { border-radius: 20px; }
  .nh-digitaal .nd-frame__url { display: none; }
}


/* ═══════════════════════════════════════════════════════
   14. Reduced motion — the collage still renders finished
   (home.css already kills animations inside .nh-home)
   ═══════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .nh-digitaal .nd-shot {
    opacity: 1 !important;
    transform: rotate(var(--r, 0deg)) !important;
  }
}
