/* =========================================================
   Proland videolandingspagina — herbruikbare template
   Huisstijl volgens het Proland Brand Book (2025).
   Past binnen het scherm (geen scroll). Ondersteunt zowel
   horizontale (16:9) als verticale (9:16) video's.
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Ubuntu:wght@500;700&family=Inter:wght@400;500;600;700&display=swap");

:root {
  /* --- Huisstijl-kleuren (Brand Book) --- */
  --blue:        #255EAD;
  --blue-strong: #1E4E92;
  --ink:         #020617;
  --surface:     #E5ECF9;
  --bg:          #ffffff;

  --text-body: #3a4453;   /* rustige leeskleur voor intro + bodytekst (zelfde toon) */
  --muted: #5b6576;
  --muted-2: #8a94a3;
  --line:  #e4e9f2;

  --radius-lg: 16px;
  --radius:    10px;
  --shadow:    0 26px 64px -30px rgba(2, 6, 23, .38);

  /* Ruimte die header + footer + padding innemen; de rest is voor de video */
  --chrome: 168px;
  --vmax: calc(100dvh - var(--chrome));

  --font-head: "Ubuntu", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow: hidden;
}

a { color: var(--blue); }
img { max-width: 100%; display: block; }

/* ===== Header ===== */
.site-header {
  flex: 0 0 auto;
  padding: clamp(16px, 2.4vh, 26px) clamp(20px, 5vw, 48px);
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 24px; width: auto; }

/* ===== Midden ===== */
.page {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(20px, 5vw, 48px) clamp(10px, 2vh, 22px);
  width: 100%;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);   /* horizontaal */
  gap: clamp(28px, 3.6vw, 54px);
  align-items: center;
  width: 100%;
  max-width: 1160px;
  max-height: 100%;
}

/* ===== Video ===== */
.video { width: min(100%, calc(var(--vmax) * 16 / 9)); margin-inline: auto; }
.video__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ----- Verticale variant (desktop) ----- */
[data-orientation="vertical"] .hero {
  grid-template-columns: auto minmax(0, 34rem);
  gap: clamp(26px, 3vw, 46px);
  justify-content: center;
}
[data-orientation="vertical"] .video {
  width: min(calc(var(--vmax) * 9 / 16), 42vw);
  margin: 0;
}
[data-orientation="vertical"] .video__frame { aspect-ratio: 9 / 16; }

/* ===== Tekstkolom ===== */
.text { min-width: 0; max-width: 34rem; }

.eyebrow {
  margin: 0 0 12px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
}
.content__title {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.6rem, 2.9vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -.03em;
  color: var(--ink);
}
/* Introzin: rustige lead-paragraph — zelfde fontfamilie én kleurtoon als de
   bodytekst, alleen iets groter en met meer line-height voor net wat presence. */
.content__intro {
  margin: 16px 0 0;
  font-size: clamp(1.1rem, 1.5vw, 1.24rem);
  line-height: 1.65;
  color: var(--text-body);
}
.content__body {
  margin-top: 18px;
  font-size: clamp(.98rem, 1.1vw, 1.05rem);
  line-height: 1.6;
  color: var(--text-body);
}
.content__body p { margin: 0 0 .7em; }
.content__body p:last-child { margin-bottom: 0; }
/* Subtiele nadruk op de belangrijkste belofte (via **tekst** in de config) */
.content__intro strong,
.content__body strong { font-weight: 600; color: var(--ink); }

/* ===== CTA + downloadlink ===== */
.content__cta { margin-top: clamp(20px, 3vh, 32px); }
.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  font-size: 1.02rem;
  text-decoration: none;
  border-radius: var(--radius);
  box-shadow: 0 12px 24px -14px rgba(37, 94, 173, .8);
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.cta:hover { background: var(--blue-strong); transform: translateY(-1px); box-shadow: 0 16px 30px -14px rgba(37, 94, 173, .85); }
.cta:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.cta__arrow { font-size: 1.1em; line-height: 1; transition: transform .18s ease; }
.cta:hover .cta__arrow { transform: translateX(3px); }

.downloadline {
  margin: 14px 0 0;
  font-size: .9rem;
  color: var(--muted-2);
}
.downloadline a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color .15s ease;
}
.downloadline a:hover { color: var(--blue); }

/* ===== Not found ===== */
.state {
  width: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 12px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 6vw, 56px);
}
.state__title { margin: 0; font-family: var(--font-head); font-weight: 700; letter-spacing: -.02em; font-size: 1.6rem; color: var(--ink); }
.state__text { margin: 0; color: var(--muted); max-width: 34rem; }

/* ===== Footer ===== */
.site-footer {
  flex: 0 0 auto;
  padding: clamp(12px, 2vh, 20px) clamp(20px, 5vw, 48px);
  color: var(--muted);
  font-size: .82rem;
  border-top: 1px solid var(--line);
}

/* =========================================================
   MOBIEL / SMALLE SCHERMEN
   Altijd een compacte horizontale (16:9) player — ook voor
   verticale video's — met fullscreen-knop van de speler.
   ========================================================= */
@media (max-width: 880px) {
  /* Normale flow: inhoud stroomt van boven naar beneden, geen overlap.
     Past alles op het scherm? Dan geen scroll. Zo niet, dan scrollt de
     pagina netjes i.p.v. de video/knop over header of footer te laten vallen. */
  body { display: block; height: auto; min-height: 100dvh; overflow: visible; }
  .page { display: block; padding: 6px clamp(20px, 5vw, 48px) 28px; }

  .hero,
  [data-orientation="vertical"] .hero {
    grid-template-columns: 1fr;
    gap: clamp(16px, 3vh, 22px);
    max-height: none;
  }
  .video,
  [data-orientation="vertical"] .video { width: 100%; }
  .video__frame,
  [data-orientation="vertical"] .video__frame { aspect-ratio: 16 / 9; }

  .text { max-width: none; }
  .content__title { font-size: clamp(1.4rem, 6vw, 2rem); }
  .content__intro { font-size: clamp(1rem, 4vw, 1.1rem); }
}

/* Heel lage schermen op desktop: liever scrollen dan afknippen */
@media (min-width: 881px) and (max-height: 620px) {
  body { overflow: auto; height: auto; min-height: 100dvh; }
}
