/* ==========================================================================
   Migos Schilderen — Additive moderne verbeteringen
   Structuur & bestaande styling blijven ongewijzigd; dit bestand voegt
   enkel veilige, niet-destructieve verbeteringen toe en laadt NA de
   hoofd-CSS zodat het nooit de React-layout breekt.
   ========================================================================== */

:root { color-scheme: dark; }

/* --- Vloeiend scrollen & nette tekstweergave --- */
html { scroll-behavior: smooth; }
body { text-rendering: optimizeLegibility; }

/* --- Responsieve media: nooit breder dan de container (canvas-achtergrond
       uitgesloten; die is full-screen en mag niet beperkt worden) --- */
img:not([class*="logo"]), svg, video { max-width: 100%; height: auto; }

/* --- Snellere taps op mobiel + geen blauwe tap-flits --- */
a, button, [role="button"], summary, input, label, select, textarea {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* --- Toegankelijke, zichtbare focus (alleen bij toetsenbordnavigatie) --- */
:focus-visible {
  outline: 2px solid #C9A227;          /* goud-accent, past bij het thema */
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- Respecteer gebruikers die minder beweging willen --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* --- Mooiere selectie-kleur --- */
::selection { background: #C9A227; color: #0A0F0D; }

/* --- Slankere, thematische scrollbar (desktop) --- */
@media (pointer: fine) {
  * { scrollbar-width: thin; scrollbar-color: #C9A227 #0A0F0D; }
  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-track { background: #0A0F0D; }
  ::-webkit-scrollbar-thumb { background: #4a4a4a; border-radius: 8px; }
  ::-webkit-scrollbar-thumb:hover { background: #C9A227; }
}

/* ==========================================================================
   Lightbox (galerij) — verplaatst uit de body en hersteld
   ========================================================================== */
.lightbox-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.92);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.lightbox-overlay.active { display: flex; opacity: 1; }
.lightbox-overlay img {
  max-width: 92%;
  max-height: 88%;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.lightbox-close {
  position: absolute;
  top: 18px; right: 26px;
  color: #fff;
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s ease, transform 0.2s ease;
}
.lightbox-close:hover { color: #C9A227; transform: scale(1.1); }
.lightbox-zoomable { cursor: zoom-in; }

/* ==========================================================================
   Zwevende knoppen (WhatsApp + "terug naar boven") — overlap/afsnijding fix
   De twee knoppen stonden te dicht op elkaar (beide right-6) en overlapten.
   We stapelen ze netjes verticaal rechtsonder met voldoende tussenruimte.
   ========================================================================== */
/* WhatsApp-knop: blijft rechtsonder, met veilige marges */
a[href*="wa.me"] {
  bottom: 1.5rem !important;
  right: 1.5rem !important;
}
/* "Terug naar boven"-knop: duidelijk bóven de WhatsApp-knop, niet afgesneden.
   WhatsApp-pill staat op bottom:1.5rem en is ~56-72px hoog; we plaatsen deze
   knop ruim erboven zodat ze elkaar nooit raken. */
button[aria-label="Terug naar boven"] {
  bottom: 8.5rem !important;    /* ~136px: duidelijk los van de WhatsApp-pill */
  right: 1.5rem !important;
}
/* Op smalle schermen iets compacter, maar nog steeds duidelijk gescheiden */
@media (max-width: 480px) {
  button[aria-label="Terug naar boven"] {
    bottom: 7.5rem !important;  /* ~120px */
    right: 1.5rem !important;
  }
}

/* ==========================================================================
   Hero-slider titel — afsnijden/overlopen van lange woorden oplossen
   De titel splitst elk woord in een regel met overflow-hidden en elk teken
   in een eigen span. Lange NL-woorden (VAKMANSCHAP, TRANSFORMEERT) pasten
   niet in de halve-breedte kolom en werden afgesneden / verschoven.
   We verkleinen de tekengrootte responsief zodat alles netjes past.
   ========================================================================== */
.hero-title-char {
  font-size: clamp(32px, 6vw, 76px) !important;
  word-break: normal;
}
.hero-subtitle { overflow-wrap: anywhere; }
