/* BBWest Bouwkundige Brandpreventie — Custom styles (light) */

:root {
  --color-bg: #FFFFFF;          /* zuiver wit */
  --color-bg-2: #F5F7FB;        /* zeer licht koel blauw — zebra sectie */
  --color-bg-3: #FFFFFF;        /* wit voor cards */
  --color-text: #14213D;        /* diep marineblauw, hoofdtekst */
  --color-text-soft: #475569;   /* slate-600, body */
  --color-text-muted: #64748B;  /* slate-500, meta */
  --color-accent: #E63946;      /* signaalrood (uit logo) */
  --color-accent-hover: #C92330;
  --color-brand-blue: #1E2D5C;  /* logo-blauw */
  --color-brand-blue-deep: #14213D; /* nog dieper */
  --color-line: #E2E8F0;        /* slate-200 */
  --color-line-soft: #F1F5F9;   /* slate-100 */

  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Inter', -apple-system, system-ui, sans-serif;
}

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

html {
  scroll-behavior: smooth;
  background: var(--color-bg);
}

body {
  background: transparent;
  color: var(--color-text);
  font-family: var(--font-body);
  font-feature-settings: 'ss01', 'cv01';
}

.font-display { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.02em; }
.font-body { font-family: var(--font-body); }

/* Hero typography */
.headline-xl {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 7vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
  font-weight: 400;
  color: var(--color-text);
}
.headline-lg {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--color-text);
}
.headline-md {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1.1;
  color: var(--color-text);
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
}

/* Accent text */
.accent { color: var(--color-accent); }
.accent-line {
  display: inline-block;
  width: 2.5rem;
  height: 2px;
  background: var(--color-accent);
  vertical-align: middle;
  margin-right: 0.75rem;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  background: var(--color-accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 14px rgba(230, 57, 70, 0.25);
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(230, 57, 70, 0.35);
}
.btn-primary svg { transition: transform 0.2s ease; }
.btn-primary:hover svg { transform: translateX(3px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  background: transparent;
  color: var(--color-brand-blue);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  border: 1.5px solid var(--color-brand-blue);
  transition: all 0.2s ease;
}
.btn-ghost:hover {
  background: var(--color-brand-blue);
  color: #fff;
}

/* Cards */
.card {
  background: var(--color-bg-3);
  border: 1px solid var(--color-line);
  border-radius: 1rem;
  transition: all 0.25s ease;
  box-shadow: 0 1px 3px rgba(20, 33, 61, 0.04);
}
.card:hover {
  border-color: var(--color-accent);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(20, 33, 61, 0.08);
}

/* Stat numbers */
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1;
  font-weight: 400;
  font-feature-settings: 'tnum';
  color: var(--color-accent);
}

/* Subtle warm gradient accent */
.warm-glow {
  position: relative;
  isolation: isolate;
}
.warm-glow::before {
  content: '';
  position: absolute;
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 57, 70, 0.08) 0%, transparent 65%);
  top: -20%;
  right: -25%;
  pointer-events: none;
  z-index: -1;
  filter: blur(60px);
}

/* Nav */
.nav-link {
  position: relative;
  font-size: 0.95rem;
  color: var(--color-text);
  padding: 0.5rem 0;
  transition: color 0.2s;
  font-weight: 500;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.25s ease;
}
.nav-link:hover::after { width: 100%; }
.nav-link:hover { color: var(--color-accent); }

/* Drempelverhoging tegen kopiëren — werkt samen met JS in main.js */
img, video, picture, source {
  -webkit-user-select: none;
          user-select: none;
  -webkit-user-drag: none;
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { opacity: 0; }
.fade-up.in-view {
  animation: fadeUp 0.8s cubic-bezier(0.2, 0.6, 0.2, 1) forwards;
}

/* Marquee — langzaam scrollende strip (klantlogo's, partner-namen) */
.marquee {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 50s linear infinite;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
.marquee-item {
  flex-shrink: 0;
  padding: 0 2.5rem;
}
@media (min-width: 1024px) {
  .marquee-item { padding: 0 4rem; }
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* Sticky mobile call button */
.sticky-call {
  display: none;
}
@media (max-width: 768px) {
  .sticky-call {
    display: flex;
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    width: 3.5rem;
    height: 3.5rem;
    background: var(--color-accent);
    color: #fff;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(230, 57, 70, 0.4);
    z-index: 50;
    animation: pulse 2.5s infinite;
  }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 10px 30px rgba(230, 57, 70, 0.4); }
  50% { box-shadow: 0 10px 35px rgba(230, 57, 70, 0.65); }
}

/* Section divider */
.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-line), transparent);
}

/* Donkere hero variant — voor optionele drama-secties */
.dark-section {
  background: var(--color-brand-blue);
  color: var(--color-cream);
}
.dark-section .headline-xl,
.dark-section .headline-lg,
.dark-section .headline-md {
  color: var(--color-cream);
}

/* Header backdrop on scroll */
[data-header].scrolled [data-header-bg] {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-line);
  box-shadow: 0 1px 12px rgba(20, 33, 61, 0.04);
}

/* Hero-tekst over video: extra dikte + leesbaarheid */
section[aria-label="BBWest in beeld"] p,
section[aria-label="BBWest in beeld"] .ed-eyebrow {
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.5),
    0 4px 24px rgba(10, 20, 41, 0.7);
}
section[aria-label="BBWest in beeld"] h1,
section[aria-label="BBWest in beeld"] .display-italic {
  -webkit-text-stroke: 0.7px currentColor;
  paint-order: stroke fill;
  text-shadow:
    0 2px 6px rgba(0, 0, 0, 0.6),
    0 8px 40px rgba(10, 20, 41, 0.85),
    0 0 80px rgba(10, 20, 41, 0.4);
}
/* Body in hero ook iets steviger */
section[aria-label="BBWest in beeld"] p {
  font-weight: 500;
}

/* Header initial state (boven video): witte tekst + lichte logo */
[data-header]:not(.scrolled) .nav-link,
[data-header]:not(.scrolled) a[href^="tel:"] {
  color: rgba(255, 255, 255, 0.92);
}
[data-header]:not(.scrolled) .nav-link:hover {
  color: #fff;
}
[data-header]:not(.scrolled) [data-menu-toggle] {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
/* Logo blijft zichtbaar boven video door subtle white drop-shadow */
[data-header]:not(.scrolled) img[alt*="BBWest"] {
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.4));
}

/* ============================================================
   EDITORIAL LAYER — premium magazine-feel
   ============================================================ */

/* Atmosphere — grain alleen, grid is verplaatst naar de echte blueprint */
.atmosphere {
  position: relative;
  isolation: isolate;
}
.atmosphere::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.5'/></svg>");
  opacity: 0.025;
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* Soft accent halos — minder agressief, meer atmosfeer */
.halo-accent {
  position: relative;
}
.halo-accent::before {
  content: '';
  position: absolute;
  width: 50vw;
  height: 50vw;
  max-width: 700px;
  max-height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 57, 70, 0.13) 0%, transparent 60%);
  top: -15%;
  right: -10%;
  z-index: -1;
  filter: blur(40px);
  pointer-events: none;
}
.halo-blue {
  position: relative;
}
.halo-blue::before {
  content: '';
  position: absolute;
  width: 45vw;
  height: 45vw;
  max-width: 600px;
  max-height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 45, 92, 0.08) 0%, transparent 60%);
  bottom: -10%;
  left: -10%;
  z-index: -1;
  filter: blur(50px);
  pointer-events: none;
}

/* Display typography — extreem groot, editorial */
.display-mega {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.5rem, 12vw, 11rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  color: var(--color-text);
}
.display-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.display-numeric {
  font-family: var(--font-display);
  font-weight: 400;
  font-feature-settings: 'lnum';
  font-size: clamp(5rem, 14vw, 14rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
}

/* Editorial eyebrow — micro-eyebrow met lange streep */
.ed-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-text-soft);
}
.ed-eyebrow .bullet {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
}
.ed-eyebrow .rule {
  display: inline-block;
  width: clamp(2rem, 4vw, 4rem);
  height: 1px;
  background: var(--color-text-soft);
}

/* Vertical spine — terugkerend rood lijn-element */
.spine {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--color-accent) 15%, var(--color-accent) 85%, transparent);
  z-index: 0;
  opacity: 0.85;
}

/* Underline-draw on headline italic */
.draw-underline {
  position: relative;
  display: inline-block;
}
.draw-underline::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0.05em;
  height: 0.08em;
  background: var(--color-accent);
  width: 0;
  transition: width 0.9s cubic-bezier(0.65, 0, 0.35, 1) 0.6s;
}
.draw-underline.in-view::after {
  width: 100%;
}

/* Marker (handgemaakt voelend) underline */
.marker-line {
  background-image: linear-gradient(transparent 70%, rgba(230, 57, 70, 0.35) 70%);
  padding: 0 0.05em;
}

/* Premium button — met arrow sleeve */
.btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 1.7rem;
  background: var(--color-accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  transition: background 0.25s ease;
  box-shadow: 0 4px 14px rgba(230, 57, 70, 0.25);
}
.btn-arrow:hover {
  background: var(--color-accent-hover);
}
.btn-arrow .arrow-wrap {
  position: relative;
  width: 14px;
  height: 14px;
  overflow: hidden;
}
.btn-arrow .arrow-wrap svg {
  position: absolute;
  inset: 0;
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}
.btn-arrow .arrow-wrap svg:nth-child(2) {
  transform: translateX(-130%);
}
.btn-arrow:hover .arrow-wrap svg:nth-child(1) {
  transform: translateX(130%);
}
.btn-arrow:hover .arrow-wrap svg:nth-child(2) {
  transform: translateX(0);
}

/* Editorial link — onderlijning slowdraw on hover */
.ed-link {
  position: relative;
  font-weight: 500;
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.ed-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  height: 1.5px;
  background: var(--color-accent);
  width: 100%;
  transform-origin: right;
  transform: scaleX(0);
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}
.ed-link:hover::after {
  transform-origin: left;
  transform: scaleX(1);
}

/* Diagonal section divider */
.diag-divider {
  position: relative;
  height: 80px;
  background: var(--color-bg);
  overflow: hidden;
}
.diag-divider::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-bg-2);
  transform-origin: top left;
  transform: skewY(-1.8deg);
}

/* Marquee ticker (certificeringen) */
.ticker-track {
  display: flex;
  gap: 4rem;
  animation: ticker 40s linear infinite;
  white-space: nowrap;
  width: max-content;
}
@keyframes ticker {
  to { transform: translateX(-50%); }
}
.ticker-item {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-text-soft);
  display: inline-flex;
  align-items: center;
  gap: 4rem;
}
.ticker-item::after {
  content: '';
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--color-accent);
}
.ticker-mask {
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

/* Subtle blueprint corners (ankertekens) */
.corner-marks {
  position: relative;
}
.corner-marks::before,
.corner-marks::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--color-accent);
}
.corner-marks::before {
  top: -1px;
  left: -1px;
  border-right: none;
  border-bottom: none;
}
.corner-marks::after {
  bottom: -1px;
  right: -1px;
  border-left: none;
  border-top: none;
}

/* Surface — premium glass-light card */
.surface {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--color-line);
  border-radius: 1.25rem;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 30px 60px -30px rgba(20, 33, 61, 0.12);
}

/* Gradient mesh-like soft bg */
.mesh-bg {
  background-image:
    radial-gradient(at 20% 20%, rgba(230, 57, 70, 0.06) 0px, transparent 50%),
    radial-gradient(at 80% 80%, rgba(30, 45, 92, 0.06) 0px, transparent 50%),
    radial-gradient(at 80% 0%, rgba(245, 247, 251, 0.6) 0px, transparent 50%);
}

/* Index number badge — voor 01/02/03 in editorial timelines */
.idx-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1;
  color: var(--color-accent);
  letter-spacing: -0.02em;
}

/* Caption text (foto-onderschriften, magazine-stijl) */
.caption {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* Page-load orchestration — staggered reveal */
@keyframes editorialRise {
  0% { opacity: 0; transform: translateY(28px); filter: blur(8px); }
  60% { filter: blur(0); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}
.rise { opacity: 0; animation: editorialRise 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.rise-1 { animation-delay: 0.05s; }
.rise-2 { animation-delay: 0.18s; }
.rise-3 { animation-delay: 0.32s; }
.rise-4 { animation-delay: 0.48s; }
.rise-5 { animation-delay: 0.64s; }
.rise-6 { animation-delay: 0.82s; }

@keyframes spineGrow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}
.spine {
  transform-origin: top;
  animation: spineGrow 1.6s cubic-bezier(0.65, 0, 0.35, 1) 0.3s both;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .rise, .spine, .draw-underline::after, .ticker-track {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================================================
   COOKIE BANNER — AVG-conform
   ============================================================ */

.cookie-banner {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  max-width: 28rem;
  background: white;
  border: 1px solid var(--color-line);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 24px 60px -20px rgba(20, 33, 61, 0.35),
    0 8px 24px -8px rgba(20, 33, 61, 0.15);
  z-index: 100;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s ease;
}
.cookie-banner.visible {
  transform: translateY(0);
  opacity: 1;
}
@media (min-width: 768px) {
  .cookie-banner {
    left: 1.5rem;
    bottom: 1.5rem;
  }
}
.cookie-banner__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}
.cookie-banner__title .accent {
  color: var(--color-accent);
}
.cookie-banner__text {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--color-text-soft);
  margin-bottom: 1.25rem;
}
.cookie-banner__text a {
  color: var(--color-text);
  border-bottom: 1px solid var(--color-line);
  transition: border-color 0.2s;
}
.cookie-banner__text a:hover {
  border-color: var(--color-accent);
}
.cookie-banner__buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.cookie-banner__btn {
  flex: 1;
  min-width: 120px;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.cookie-banner__btn--primary {
  background: var(--color-accent);
  color: white;
  box-shadow: 0 4px 14px rgba(230, 57, 70, 0.25);
}
.cookie-banner__btn--primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}
.cookie-banner__btn--ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-line);
}
.cookie-banner__btn--ghost:hover {
  border-color: var(--color-text);
  background: var(--color-bg-2);
}
.cookie-banner__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.cookie-banner__close:hover {
  background: var(--color-bg-2);
  color: var(--color-text);
}

/* ============================================================
   BLUEPRINT ACHTERGROND — bouwtekening parallax
   ============================================================ */

.blueprint-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.blueprint-bg__layer {
  position: absolute;
  top: -10%;
  left: -10%;
  right: -10%;
  bottom: -10%;
  opacity: 0.22;
  filter: saturate(0.85) blur(0.6px);
  will-change: transform;
  mix-blend-mode: multiply;
}
.blueprint-bg__layer svg,
.blueprint-bg__layer img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* Zorg dat alle content ABOVE de blueprint komt */
header, main, section, footer, .sticky-call {
  position: relative;
  z-index: 1;
}

/* In donkere secties (CTA-afsluiter, footer) niet meedraaien — de blueprint hoort bij de lichte hoofdpagina */
.dark-section-clip {
  position: relative;
  isolation: isolate;
}
.dark-section-clip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  z-index: -1;
}
