/* ============================================================
   Bright future — gedeelde stijlen voor ALLE pagina's
   Eén keer aanpassen = overal doorgevoerd.

   VERSIE: 2026-09-21-a
   Open bright-future.nl/style.css in je browser en kijk naar deze regel
   om te zien welke versie er werkelijk op de server staat.
   ============================================================ */

:root {
  --blue:        #0081C2;
  --blue-deep:   #0056A7;
  --blue-light:  #E8F4FB;
  --amber:       #C8962E;
  --amber-deep:  #A0741A;
  --ink:         #282828;
  --muted:       #666;
  --line:        #E0E0E0;
  --paper:       #F9F9F9;
  --warm:        #FBF7EF;
  --warm-line:   #EFE4CF;
  --white:       #FFFFFF;
  /* Huisstijl-stippellijn (blauwe bolletjes, zoals in de PPT/site) */
  --dots: radial-gradient(circle, var(--blue) 1.7px, transparent 2.1px) left center / 12px 4px repeat-x;
  --radius-lg:   24px;
  --radius-md:   14px;
  --radius-pill: 999px;
  --font-display: 'Sora', sans-serif;
  --font-body:    'Inter', sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--ink); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.wrap {
  width: 100%; max-width: 1100px; margin: 0 auto;
  /* Veilige zijmarge zodat het zwevende (verkleinde) logo nooit tekst overlapt.
     Brede schermen hebben genoeg kantlijn → normaal 28px; smalle schermen krijgen extra ruimte. */
  padding-inline: max(28px, calc(80px - max(0px, (100vw - 1100px) / 2)));
}
@media (max-width: 600px) {
  /* LET OP: hier stond dezelfde formule als op desktop. Die rekent onder 1100px
     altijd uit op 64px, dus op een telefoon van 390px bleef er maar 262px over
     voor de inhoud. Vandaar de brede kantlijnen (04-08-2026). */
  .wrap { padding-inline: 18px; }
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; }

/* LABELS (eyebrow op homepage, label op dienstenpagina's) */
.eyebrow, .label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--blue);
}
.eyebrow { margin-bottom: 10px; }
.eyebrow::before, .label::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--blue); flex: none;
}

/* HUISSTIJL-STIPPELLIJN (blauwe bolletjes) */
.dotted-rule { height: 4px; background: var(--dots); border: none; }
/* Sectietitel-onderstreping, zoals de titelregel in de huisstijl-ppt */
.section-head h2 { position: relative; }
.section-head h2::after {
  content: ""; display: block; height: 4px; margin-top: 16px;
  background: var(--dots);
}

/* TAALWISSEL rechtsboven.
   Homepage: staat er altijd (die pagina heeft geen 'Meer over Bright-future').
   Expertisepagina's: hoort bij het ontvangstmoment. Zolang de welkomsfoto in beeld
   is (body.bf-intro zonder .bf-intro-passed, gezet in site.js) staat de taalwissel
   er en is 'Meer over Bright-future' verborgen. Scroll je eraan voorbij, dan
   wisselen ze om. Het welkomscherm verschijnt maar één keer per sessie, dus wie
   vanaf de homepage doorklikt ziet meteen 'Meer over Bright-future'. */
.lang-switch {
  position: fixed; top: 24px; right: 28px; z-index: 201;
  display: inline-flex; align-items: center;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(6px);
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: 4px; font-family: var(--font-body);
  font-size: 0.8rem; font-weight: 700; line-height: 1;
  transition: opacity .4s ease, transform .4s ease;
}
.lang-switch .lang-cur {
  background: var(--blue); color: #fff;
  border-radius: var(--radius-pill); padding: 6px 13px;
}
.lang-switch .lang-alt {
  color: var(--muted); padding: 6px 13px;
  border-radius: var(--radius-pill); transition: all .2s;
}
.lang-switch .lang-alt:hover { color: var(--blue-deep); background: var(--blue-light); }

/* variant voor de expertisepagina's: standaard weg, alleen tijdens het welkom zichtbaar */
.lang-welcome { opacity: 0; pointer-events: none; transform: translateY(-8px); }
body.bf-intro:not(.bf-intro-passed) .lang-welcome { opacity: 1; pointer-events: auto; transform: none; }
body.bf-intro:not(.bf-intro-passed) .nav-home { opacity: 0; pointer-events: none; transform: translateY(-8px); }

@media (max-width: 600px) {
  .lang-switch { top: 14px; right: 14px; font-size: 0.75rem; }
}

/* Groepje rechtsboven voor pagina's zonder welkomscherm waar de taalwissel
   permanent staat naast 'Meer over Bright-future' (over-niel / about-niel).
   Beide elementen worden hier statisch; .topbar bepaalt de positie. */
.topbar {
  position: fixed; top: 24px; right: 28px; z-index: 201;
  display: flex; align-items: center; gap: 10px;
}
.topbar .lang-switch,
.topbar .nav-home { position: static; top: auto; right: auto; }
/* Ze staan op dezelfde plek en wisselen elkaar af: zolang de herofoto in beeld is
   de taalwissel, daarna 'Meer over Bright-future'. Scroll je terug, dan komt de
   taalwissel weer terug — de foto blijft daar immers staan. Zie site.js punt 6. */
.topbar { display: grid; }
.topbar .lang-switch,
.topbar .nav-home { grid-area: 1 / 1; justify-self: end; }
.topbar .nav-home { opacity: 0; pointer-events: none; transform: translateY(-8px); }
body.hero-passed .topbar .lang-switch { opacity: 0; pointer-events: none; transform: translateY(-8px); }
body.hero-passed .topbar .nav-home { opacity: 1; pointer-events: auto; transform: none; }
@media (max-width: 600px) { .topbar { top: 14px; right: 14px; gap: 8px; } }

/* WhatsApp alleen op smalle schermen. Op een computer opent wa.me de webversie,
   waarvoor je eerst je telefoon moet koppelen — dat is een slechte eerste indruk
   bij iemand die net op een advertentie klikte. Op een telefoon opent gewoon de
   app. Vandaar: tonen tot 900px, daarboven verbergen. */
@media (min-width: 901px) { .btn-wa { display: none !important; } }
/* !important is hier nodig: .btn-white-outline staat in de inline stijl van
   index.html, dus ná style.css in het document. Bij gelijke specificiteit wint
   de laatste, en dan bleef de knop gewoon staan (vastgesteld 05-08-2026). */

/* FLOATING LOGO */
.logo-float {
  position: fixed;
  top: 36px;
  left: 36px;
  z-index: 200;
  line-height: 0;
  /* Geen CSS-transitie: hoogte en positie worden continu via JS gedreven */
  will-change: top, left;
}
.logo-float img {
  width: auto;
  max-width: none;
  display: block;
  will-change: height;
}

/* KLANTLOGO'S MARQUEE */
.marquee-wrap {
  overflow: hidden;
  width: 100%;
  padding: 10px 0;
}
.marquee-inner {
  display: flex;
  gap: 40px;
  align-items: center;
  width: max-content;
  /* GEEN will-change hier. Deze strook is na verdubbeling zo'n 15.000 pixels
     breed; will-change dwingt de browser die hele breedte als losse tekenlaag
     in het geheugen te houden. Ging je naar een ander venster, dan gooide de
     browser die laag weg en kwam hij stuk terug (04-08-2026). Zonder
     will-change beheert de browser het zelf en blijft hij heel. */
}
.marquee-inner img {
  height: 44px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
/* Geen voorsprong: de strook begint gevuld vanaf de linkerrand en loopt van
   daaruit door. De voorsprong die hier eerder stond hielp niet, omdat het echte
   probleem lag bij loading="lazy" op de logo's — zonder afmeting was de strook
   bij het openen bijna nul breed. */
.marquee-scroll { animation: marquee-scroll 80s linear infinite; }
.marquee-wrap:hover .marquee-scroll { animation-play-state: paused; }
@keyframes marquee-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* FOOTER */
footer { padding-block: 44px; border-top: none; position: relative; }
footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--dots);
}
footer .wrap {
  display: flex; flex-wrap: wrap;
  justify-content: space-between; gap: 20px;
  color: var(--muted); font-size: 0.88rem;
}
footer strong { color: var(--ink); }
footer a:hover { color: var(--blue); }

/* Actieve dienst-cross-navigatie (goud) */
.svc-links { margin-bottom: 8px; font-weight: 600; }
.svc-links a { color: var(--amber-deep); }
.svc-links a:hover { color: var(--amber); text-decoration: underline; }
/* Huidige pagina: standaard grijs, niet klikbaar-ogend */
.svc-links a.current, .svc-links a.current:hover { color: var(--muted); font-weight: 400; text-decoration: none; cursor: default; }

/* SCROLL REVEAL */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .65s ease, transform .65s ease; }
.reveal.in { opacity: 1; transform: none; }

/* HANDGESCHREVEN QUOTES */
.quote-band { padding-block: 16px 48px; }
.quote-handwritten { max-width: 620px; width: 100%; display: block; margin: 0 auto; }

/* TESTIMONIALS (gedeeld: homepage + dienstenpagina's) */
.testi-carousel { overflow: hidden; }
.testi-track { display: flex; transition: transform .4s ease; }
.testi-slide { min-width: 100%; }
.testi { background: var(--amber); border: 1px solid var(--amber-deep); border-radius: var(--radius-lg); padding: 36px; max-width: 720px; margin: 0 auto; position: relative; }
.testi::before { content: "\201D"; position: absolute; bottom: 4px; right: 22px; font-family: var(--font-display); font-weight: 700; font-size: 13rem; line-height: 0.7; color: rgba(255,255,255,0.4); pointer-events: none; z-index: 0; }
.testi p.quote, .testi .who { position: relative; z-index: 1; }
.testi p.quote { font-size: 1.03rem; line-height: 1.6; margin-bottom: 20px; color: var(--ink); }
.testi .who { display: flex; align-items: center; gap: 14px; font-size: 0.88rem; color: #4A3A12; }
.testi .who strong { color: var(--ink); display: block; font-size: 0.93rem; margin-bottom: 2px; }
.who-photo { width: 130px; height: 130px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid rgba(255,255,255,0.65); }
.testi-nav { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.testi-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); border: none; cursor: pointer; transition: background .2s; padding: 0; }
.testi-dot.active { background: var(--blue); }

/* VERMINDERDE BEWEGING (toegankelijkheid) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-scroll { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}


/* ============================================================
   MERKSCAN-KNOP (21-09-2026)
   Ronde blauwe knop naar /merkscan. Blauw en niet goud: de scan is
   een hulpmiddel, geen dienst. Pulseert elke 3 seconden; bij muis of
   toetsenbordfocus groeit hij naar de grootste stand en staat stil.
   ============================================================ */
.scanbol { position: relative; display: inline-block; flex: none;
           width: 155px; height: 155px; border-radius: 50%; background: var(--blue); color: #fff;
           box-shadow: 0 12px 28px -16px rgba(0,0,0,0.55);
           animation: scanpuls 3s ease-in-out infinite; transition: transform .25s ease-out; }
.scanbol .kop { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%) rotate(5deg);
                font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; line-height: 1.14; text-align: center; }
.scanbol .sub { position: absolute; left: 0; right: 0; top: 72%; transform: rotate(5deg);
                font-family: var(--font-body); font-weight: 400; font-size: 0.85rem; text-align: center; }
.scanbol:hover, .scanbol:focus-visible { animation: none; transform: scale(1.055); }
@keyframes scanpuls { 0%, 80%, 100% { transform: scale(1); } 87% { transform: scale(1.055); } 93% { transform: scale(0.995); } }
@media (prefers-reduced-motion: reduce) { .scanbol { animation: none; } }

/* knop naast de expertiselijst (homepage) */
.lijst-met-knop { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.lijst-met-knop .exp-list { flex: 1 1 420px; }

/* knop naast de BrandPersona-uitleg (positionering) */
.section-head.uitleg-met-knop { max-width: none; }
.uitleg-met-knop { display: flex; align-items: center; justify-content: space-between; gap: 46px; flex-wrap: wrap; }
.uitleg-met-knop .uitleg { flex: 1 1 420px; max-width: 660px; }

@media (max-width: 700px) {
  .scanbol { width: 138px; height: 138px; }
  .scanbol .kop { font-size: 1.32rem; }
  .scanbol .sub { font-size: 0.8rem; }
}
