/* balanshuis.nl — één stylesheet voor één pagina.
   Afgeleid van balansstad/www/styles.css: dezelfde tokens, dezelfde letters, alleen wat deze
   pagina gebruikt. De film staat direct onder de kop, zo breed als de inhoud. */

@font-face {
  font-family: "Figtree";
  src: url("/fonts/Figtree-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/fonts/Figtree-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/fonts/Figtree-SemiBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/fonts/Figtree-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "PT Sans";
  src: url("/fonts/PTSans-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "PT Sans";
  src: url("/fonts/PTSans-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  /* Grond en vlakken */
  --bs-surface:       #ffffff;
  --bs-line:          #dde7ec;

  /* Tekst */
  --bs-ink:           #133c58;
  --bs-body:          #3a5f75;
  --bs-muted:         #5f8299;
  --bs-link:          #2b78a1;  /* 4,9:1 op wit */
  --bs-link-hover:    #1d5f83;

  /* Merk */
  --bs-green:         #5e9438;  /* tekst vanaf 24px: 3,1:1 op de lichtste hero-stop */
  --bs-green-bright:  #7fb457;  /* accenten, nooit als tekst */
  --bs-blue-bright:   #2e9bd0;

  /* Knoppen en donkere band */
  --bs-button:        #133c58;
  --bs-band:          #1d4e6e;
  --bs-on-band:       #d6e6ef;

  /* Gradiënten */
  --bs-hero:   linear-gradient(155deg, #e2f0d6 0%, #d6eceb 46%, #c6e2f4 100%);
  --bs-hero-mid: #d6eceb;   /* rand om de afspeelknop */
  --bs-film:   linear-gradient(140deg, #0d6f9e 0%, #0b8f9a 50%, #4f9f4a 100%);
  --bs-stripe: linear-gradient(90deg, #6cb33f, #1f9ad6);

  /* Vorm */
  --bs-radius:        16px;
  --bs-radius-button: 8px;
  --bs-shadow-film:   0 16px 44px rgba(19, 60, 88, 0.22);

  /* Zelf gehoste letterbestanden; zie fonts/OFL-Figtree.txt en fonts/OFL-PTSans.txt. */
  --bs-font: "Figtree", system-ui, sans-serif;
  --bs-heading: "PT Sans", system-ui, sans-serif;

  /* Maten */
  --bs-gutter:  clamp(22px, 5vw, 72px);
  --bs-content: 1280px;
  --bs-measure: 680px;                 /* maximale regelbreedte lopende tekst */
  --bs-section: clamp(56px, 8vw, 104px);
}

/* ---------- Basis ---------- */

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--bs-font);
  font-size: 19px;
  line-height: 1.6;
  color: var(--bs-body);
  background: var(--bs-surface);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-family: var(--bs-heading); font-weight: 700; color: var(--bs-ink); line-height: 1.2; }
h2 { font-size: 30px; }
p { margin: 0; max-width: var(--bs-measure); }
p + p { margin-top: 1em; }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: var(--bs-link); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--bs-link-hover); }

:focus-visible {
  outline: 3px solid var(--bs-blue-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: var(--bs-radius-button);
  background: var(--bs-button);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 16px; color: #fff; }

.wrap {
  width: 100%;
  max-width: calc(var(--bs-content) + 2 * var(--bs-gutter));
  margin: 0 auto;
  padding-left: var(--bs-gutter);
  padding-right: var(--bs-gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* Sectieritme: elke sectie dezelfde ruimte erboven, gescheiden door één haarlijn. */
.section { padding-top: var(--bs-section); }
.section--rule > .wrap::before {
  content: "";
  display: block;
  height: 1px;
  margin-bottom: calc(var(--bs-section) * 0.75);
  background: var(--bs-line);
}

/* Groen sectielabel: het merkmotief van balansstraat.nl. Alleen vanaf 24px. */
.label {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--bs-green);
}
.label + * { margin-top: 20px; }

/* ---------- Header ---------- */

.site-header {
  display: flex;
  align-items: center;
  min-height: 96px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  border-radius: 12px;
  text-decoration: none;
}
.brand img { width: 62px; height: auto; }
.brand-name { font-size: 26px; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
.brand-name .green { color: var(--bs-green); }
.brand-name .blue  { color: var(--bs-link); }

/* ---------- Hero: kop en film ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--bs-hero);
  padding-bottom: 64px;
}

/* Gestreepte ring: decoratie, loopt rechts van het beeld af. */
.hero-ring {
  position: absolute;
  top: 0;
  right: 0;
  width: 1440px;
  height: 900px;
  pointer-events: none;
}
.hero > .wrap { position: relative; }

.hero-body {
  display: flex;
  flex-direction: column;
  padding-top: 32px;
}

.stripe { width: 68px; height: 5px; background: var(--bs-stripe); }
.hero h1 {
  margin-top: 18px;
  max-width: 18ch;
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

/* Film: zo breed als de inhoud, afspeelknop in het midden */
.film { position: relative; margin-top: 40px; }
.film-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: var(--bs-film);
  box-shadow: var(--bs-shadow-film);
  color: #fff;
}
.film-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.film-stage:has(iframe) .film-poster { display: none; }          /* noscript-pad */
.film:has(.film-stage iframe) .play,
.film:has(.film-stage iframe) .film-caption { display: none; }

.film-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 120px;
  height: 120px;
  padding: 0;
  border: 6px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  background: var(--bs-button);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transform: translate(-50%, -50%);
  box-shadow: 0 10px 30px rgba(19, 60, 88, 0.35);
  transition: transform .15s, background-color .15s;
}
.play svg { width: 30%; height: auto; margin-left: 5%; }
.play:hover { background: var(--bs-ink); transform: translate(-50%, -50%) scale(1.06); }
.play:focus-visible { outline-offset: 4px; }

.film-caption {
  margin-top: 16px;
  font-size: 17px;
  font-weight: 500;
  color: var(--bs-ink);
}

/* ---------- Drie regels ---------- */

.punten { display: grid; gap: 18px; max-width: var(--bs-measure); }
.punten li {
  position: relative;
  padding-left: 30px;
  font-size: 20px;
  line-height: 1.55;
}
.punten li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--bs-stripe);
}

/* ---------- Contact ---------- */

.contact-tekst { font-size: 20px; line-height: 1.55; }
.contact-tekst a {
  display: inline-block;
  padding: 4px 0;      /* raakvlak ≥ 44px met de regelhoogte */
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: var(--bs-section);
  padding: 56px 0 64px;
  background: var(--bs-band);
  color: var(--bs-on-band);
}
.site-footer .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px 48px;
  align-items: end;
}
.site-footer p, .site-footer a { font-size: 17px; }
.site-footer img { width: 48px; height: auto; margin-bottom: 14px; }
.site-footer a { color: #fff; font-weight: 600; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .footer-brand a { display: inline-block; padding: 8px 0; margin: -8px 0; }   /* raakvlak 44px */
.afzender { margin-top: 10px !important; font-size: 15px !important; line-height: 1.6; }
.stats-note { font-size: 15px !important; }
.stats-note a { font-weight: 400; text-decoration: underline; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  body { font-size: 18px; }
  h2 { font-size: 26px; }
  .label { font-size: 28px; }

  .site-header { min-height: 80px; }
  .brand img { width: 52px; }
  .brand-name { font-size: 22px; }

  .hero-ring { display: none; }
  .hero { padding-bottom: 44px; }
  .hero-body { padding-top: 12px; }
  .stripe { width: 60px; }
  .hero h1 { margin-top: 14px; }
  .film { margin-top: 28px; }
  .film-stage { border-radius: 14px; }
  .play { width: 84px; height: 84px; border-width: 5px; }
  .film-caption { margin-top: 12px; }

  .punten li { font-size: 19px; }
  .contact-tekst { font-size: 19px; }

  .site-footer { padding: 40px 0 48px; }
  .site-footer .wrap { grid-template-columns: 1fr; gap: 20px; align-items: start; }
}

/* Op heel smalle schermen mag de film tot de schermrand, zonder kaderbreedte te verliezen. */
@media (max-width: 480px) {
  .film { margin-left: calc(-1 * var(--bs-gutter) + 12px); margin-right: calc(-1 * var(--bs-gutter) + 12px); }
}
