/* ==========================================================================
   Ocuma — Lifeguard Assistant landingspagina
   Stylesheet (gedeeld door index.html en styleguide.html)
   ========================================================================== */

:root {
  --petrol:       #386c77;
  --petrol-dark:  #2f5b65;
  --teal:         #4f8f96;   /* accent: links, kleine labels */
  --teal-num:     #5e9aa1;   /* statistiek-cijfers */
  --cream:        #f1eee7;
  --ink:          #1b1b1b;
  --ink-2:        #51514e;
  --white:        #ffffff;
  --line:         rgba(27, 27, 27, .14);
  --line-light:   rgba(255, 255, 255, .24);

  --container: 1200px;
  --gutter: clamp(20px, 5vw, 80px);

  --ff: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ff);
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(64px, 9vw, 130px); }
.bg-cream { background: var(--cream); }
.bg-petrol { background: var(--petrol); color: var(--white); }

.eyebrow {
  color: var(--teal);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .02em;
}

/* ---------- Type scale ---------- */
.display {
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -.015em;
}
.h-lg {
  font-weight: 400;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -.01em;
}
.lead {
  font-weight: 400;
  font-size: clamp(1.25rem, 2.4vw, 1.95rem);
  line-height: 1.32;
  letter-spacing: -.005em;
}
.muted { color: var(--ink-2); }

/* ==========================================================================
   Navigatie
   ========================================================================== */
.nav {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px var(--gutter);
}
.nav--solid { position: relative; background: var(--petrol); color: var(--white); }

.wordmark {
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: .14em;
  color: var(--white);
}
.nav--solid .wordmark { color: var(--white); }

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 9px 9px 9px 22px;
  background: var(--white);
  color: var(--ink);
  border-radius: 999px;
  font-weight: 500;
  font-size: .95rem;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.btn-pill .dot {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  transition: transform .4s var(--ease);
}
.btn-pill:hover { box-shadow: 0 10px 30px rgba(0,0,0,.18); transform: translateY(-1px); }
.btn-pill:hover .dot { transform: rotate(45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background: url("../images/hero.jpg") center 35% / cover no-repeat;
  transform: scale(1.06);
  animation: heroZoom 14s var(--ease) forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,52,58,.45) 0%, rgba(20,52,58,.05) 30%, rgba(20,52,58,.55) 100%);
  z-index: 1;
}
/* zachte OCUMA-watermark zoals in het ontwerp */
.hero__watermark {
  position: absolute;
  left: var(--gutter); bottom: 8%;
  z-index: 1;
  font-weight: 800;
  font-size: clamp(8rem, 22vw, 20rem);
  letter-spacing: .04em;
  color: rgba(255,255,255,.07);
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: clamp(96px, 22vw, 124px) var(--gutter) clamp(48px, 7vw, 96px);
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
  gap: 40px;
}
.hero__title { max-width: 16ch; }
.hero__sub {
  margin-top: 18px;
  font-weight: 300;
  font-size: clamp(1.2rem, 2.3vw, 1.7rem);
  line-height: 1.3;
  color: rgba(255,255,255,.92);
  max-width: 28ch;
}
.hero__body {
  margin-top: 22px;
  max-width: 46ch;
  font-size: .98rem;
  line-height: 1.6;
  color: rgba(255,255,255,.86);
}
.hero__body strong { font-weight: 600; color: #fff; }

/* Hero "in het nieuws" kaart */
.news-card {
  position: relative;
  background: rgba(31, 70, 78, .72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 96px;
  gap: 18px 20px;
  max-width: 460px;
}
.news-card__title { font-size: 1.2rem; font-weight: 500; }
.news-card__text { margin-top: 8px; font-size: .9rem; line-height: 1.55; color: rgba(255,255,255,.82); }
.news-card__thumb {
  grid-row: 1 / span 2;
  grid-column: 2;
  width: 96px; height: 120px;
  border-radius: 10px;
  background: #d9d4c9 url("../images/ref-telegraaf.jpg") center/cover;
  align-self: start;
}
.news-card__cta {
  grid-column: 1;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.4);
  display: grid; place-items: center;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.news-card__cta:hover { background: rgba(255,255,255,.16); transform: translateX(2px); }

@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1.4fr auto; }
  .news-card { align-self: end; }
}

/* ==========================================================================
   Intro-tekst (technische uitleg)
   ========================================================================== */
.intro { padding-block: clamp(64px, 10vw, 140px); }
.intro__text {
  max-width: 66ch;
  font-size: clamp(1.02rem, 1.3vw, 1.18rem);
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0;
  color: var(--ink);
}
.intro__text p + p { margin-top: 1.2em; }
.intro__text strong { font-weight: 600; }

/* ==========================================================================
   3 foto-kaarten
   ========================================================================== */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 48px);
}
@media (min-width: 720px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card__img {
  aspect-ratio: 21 / 20;
  width: 100%;
  object-fit: cover;
  border-radius: 2px;
}
.card__title { margin-top: 18px; font-size: 1.25rem; font-weight: 500; }
.card__text { margin-top: 12px; font-size: .92rem; line-height: 1.6; color: var(--ink-2); }

/* ==========================================================================
   Statistieken
   ========================================================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(28px, 4vw, 44px);
}
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat__num {
  font-size: clamp(3rem, 6vw, 4.6rem);
  font-weight: 200;
  color: var(--teal-num);
  line-height: 1;
  letter-spacing: -.02em;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.stat__label { margin-top: 14px; font-size: 1.05rem; font-weight: 400; }

/* ==========================================================================
   Statement-blokken
   ========================================================================== */
.statement {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px 48px;
  padding-block: clamp(28px, 4vw, 40px);
}
.statement + .statement { border-top: 1px solid var(--line); }
.statement__title { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 400; letter-spacing: -.01em; }
.statement__body { font-size: .96rem; line-height: 1.65; color: var(--ink-2); max-width: 70ch; }
@media (min-width: 820px) {
  .statement { grid-template-columns: 200px 1fr; align-items: start; }
  .statement .eyebrow { padding-top: 6px; }
}

/* ==========================================================================
   Referenties (carrousel)
   ========================================================================== */
.refs__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}
.refs__nav { display: flex; gap: 12px; }
.refs__nav button {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  background: var(--white);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s;
}
.refs__nav button:hover { background: var(--petrol); color: #fff; border-color: var(--petrol); }
.refs__nav button:disabled { opacity: .35; cursor: default; background: var(--white); color: inherit; }

.refs__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 360px);
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.refs__track::-webkit-scrollbar { display: none; }

.ref-card {
  scroll-snap-align: start;
  border-radius: 4px;
  min-height: 440px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}
.ref-card--text { background: var(--white); padding: 30px; justify-content: space-between; }
.ref-card--text p { font-size: 1.05rem; line-height: 1.45; }
.ref-card--quote { background: var(--petrol); color: #fff; padding: 32px; justify-content: space-between; }
.ref-card--quote .q { font-size: 1.5rem; font-weight: 400; line-height: 1.3; letter-spacing: -.01em; }
.ref-card--quote .src { font-size: .82rem; line-height: 1.5; color: rgba(255,255,255,.82); }
.ref-card--quote .src b { display: block; font-weight: 600; color: #fff; }

.ref-card--media {
  color: #fff;
  justify-content: flex-end;
  padding: 28px;
  background-size: cover;
  background-position: center;
  text-align: left;
  cursor: pointer;
}
.ref-card--media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,52,58,.05), rgba(20,52,58,.72));
  z-index: 0;
}
.ref-card--media > * { position: relative; z-index: 1; }
.ref-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 64px; height: 64px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .92);
  color: var(--petrol);
  padding-left: 3px;
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.ref-card--media:hover .ref-play,
.ref-card--media:focus-visible .ref-play { transform: translate(-50%, -50%) scale(1.08); background: #fff; }
.ref-card__meta { display: block; }
.ref-card__label { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.ref-card__date { font-size: .82rem; opacity: .85; margin-top: 2px; }
.ref-card__title { font-size: 1.5rem; font-weight: 400; margin-bottom: 14px; }
.ref-arrow {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid currentColor;
  margin-top: 14px;
  transition: transform .3s var(--ease);
}
.ref-card:hover .ref-arrow { transform: translateX(3px); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { text-align: center; }
.contact__inner { max-width: 60ch; margin-inline: auto; }
.contact__lead { margin: 22px auto 8px; }
.contact__details {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 48px;
}
.contact__details a {
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 400;
  color: var(--petrol);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: opacity .25s;
}
.contact__details a:hover { opacity: .65; }
.contact__details span { font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); display: block; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { padding-block: clamp(56px, 7vw, 90px) 30px; }
.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer__title { font-weight: 400; font-size: clamp(1.8rem, 3.5vw, 2.6rem); line-height: 1.05; letter-spacing: -.01em; }
.footer__sub { margin-top: 16px; font-weight: 300; color: rgba(255,255,255,.78); font-size: 1.15rem; }
.footer__right { text-align: left; }
.footer__wordmark { font-weight: 800; font-size: clamp(2.6rem, 6vw, 4rem); letter-spacing: .1em; }
.footer__contact { margin-top: 8px; font-size: .92rem; color: rgba(255,255,255,.82); }
.footer__contact a:hover { color: #fff; }
@media (min-width: 860px) {
  .footer__contact { font-size: .8rem; color: rgba(255, 255, 255, .55); letter-spacing: .01em; }
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 26px;
  border-top: 1px solid var(--line-light);
  font-size: .85rem;
  color: rgba(255,255,255,.78);
}
.footer__bottom-left { display: flex; flex-direction: column; gap: 10px; }
.footer__copy { color: rgba(255,255,255,.78); }
@media (min-width: 560px) {
  .footer__bottom-left { flex-direction: row; align-items: center; gap: 28px; }
}
.footer__links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer__links a:hover { color: #fff; }
@media (min-width: 860px) {
  .footer__top { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .footer__right { text-align: right; }
}

/* ==========================================================================
   Scroll-reveal animatie
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__bg { animation: none; transform: none; }
}

/* ==========================================================================
   Styleguide-pagina (basis-elementen)
   ========================================================================== */
.guide { max-width: 760px; margin: 0 auto; padding: clamp(48px,7vw,90px) var(--gutter); }
.guide h1, .guide h2, .guide h3, .guide h4 { font-weight: 400; letter-spacing: -.01em; line-height: 1.12; }
.guide h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: .4em; }
.guide h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin: 1.6em 0 .5em; }
.guide h3 { font-size: clamp(1.3rem, 2.6vw, 1.6rem); margin: 1.4em 0 .4em; }
.guide h4 { font-size: 1.12rem; font-weight: 600; margin: 1.2em 0 .4em; }
.guide p { font-size: 1.02rem; line-height: 1.7; color: var(--ink); margin-bottom: 1em; }
.guide a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.guide ul, .guide ol { margin: 0 0 1.2em 1.4em; }
.guide li { font-size: 1.02rem; line-height: 1.7; margin-bottom: .35em; }
.guide hr { border: none; border-top: 1px solid var(--line); margin: 2.4em 0; }
.guide .eyebrow { display: block; margin-bottom: 2em; }

/* ==========================================================================
   Utility-klassen (vervangen inline styles t.b.v. strikte CSP)
   ========================================================================== */
.pt-0 { padding-top: 0 !important; }
.mt-8 { margin-top: 8px; }

/* Referentie-kaart achtergronden (i.p.v. inline background-image) */
.ref-card--telegraaf { background-image: url("../images/ref-telegraaf.jpg"); }
.ref-card--brabant   { background-image: url("../images/ref-brabant.jpg"); }

/* ==========================================================================
   Logo (afbeelding i.p.v. tekst-wordmark)
   ========================================================================== */
.logo {
  display: inline-flex;
  align-items: center;
  height: 52px;
  padding: 0 22px;
  background: #fff;
  border-radius: 999px;
}
.logo img { height: 34px; width: auto; display: block; }
@media (max-width: 600px) {
  .nav { padding: 16px var(--gutter); }
  .logo { height: 44px; padding: 0 14px; }
  .logo img { height: 24px; }
  .btn-pill { gap: 10px; padding: 7px 7px 7px 18px; font-size: .88rem; }
  .btn-pill .dot { width: 30px; height: 30px; }
}

.footer__logo-wrap {
  display: inline-block;
  background: #fff;
  padding: 9px 15px;
  border-radius: 12px;
}
.footer__logo { height: 32px; width: auto; display: block; }
@media (max-width: 600px) { .footer__logo { height: 28px; } }

/* Media-tegel meta (label + titel onderin) */
.ref-card__meta .ref-card__label { display: block; margin-bottom: 4px; }
.ref-card__meta .ref-card__title { display: block; font-size: 1.35rem; margin-bottom: 0; }

/* ==========================================================================
   Lightbox (video / audio)
   ========================================================================== */
.lb-open { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(10, 24, 28, .82); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.lightbox__dialog { position: relative; z-index: 1; width: 100%; max-width: 900px; }
.lightbox__body video { width: 100%; max-height: 80vh; display: block; border-radius: 8px; background: #000; }
.lightbox__audio { background: #fff; border-radius: 12px; overflow: hidden; max-width: 440px; margin: 0 auto; }
.lightbox__audio img { width: 100%; display: block; }
.lightbox__audio figcaption { padding: 16px 18px 4px; font-weight: 500; color: var(--ink); line-height: 1.4; }
.lightbox__audio audio { width: 100%; padding: 12px 18px 18px; display: block; }
.lightbox__close {
  position: fixed; top: 18px; right: 18px; z-index: 2;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.16); color: #fff;
  display: grid; place-items: center;
  transition: background .3s var(--ease);
}
.lightbox__close:hover { background: rgba(255,255,255,.32); }
