/* ==========================================================================
   Premium Stucwerk — design tokens
   ========================================================================== */
:root{
  /* Brand palette, sampled from Logo.png */
  --espresso:      #2A1F18;
  --espresso-700:  #3D2E22;
  --bronze:        #6B4A36;
  --bronze-600:    #7C5A43;
  --bronze-300:    #C9A98A;
  --tan:           #B08A63;
  --tan-200:       #D8C0A0;
  --cream:         #FBF3EA;
  --cream-alt:     #F3E7D8;
  --white:         #FFFFFF;

  --text:          #2C221B;
  --text-muted:    #6E5D4F;
  --text-on-dark:  #F3E7D8;
  --text-on-dark-muted: #C9B8A6;

  --success:       #2F7D5A;
  --danger:        #B3261E;

  --font-display: 'Fraunces', ui-serif, Georgia, serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, sans-serif;

  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;
  --space-9: 96px;

  --radius-sm: 8px; --radius-md: 14px; --radius-lg: 24px; --radius-pill: 999px;

  --shadow-sm: 0 1px 3px rgba(42,31,24,0.08), 0 1px 2px rgba(42,31,24,0.06);
  --shadow-md: 0 8px 24px rgba(42,31,24,0.10), 0 2px 8px rgba(42,31,24,0.06);
  --shadow-lg: 0 20px 48px rgba(42,31,24,0.16), 0 6px 16px rgba(42,31,24,0.08);

  --ease-out: cubic-bezier(.16,1,.3,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --dur-fast: 150ms;
  --dur-base: 250ms;
  --dur-slow: 450ms;

  --header-h: 76px;
  --container-w: 1200px;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul, ol{ margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4{ font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0; color: var(--espresso); text-wrap: balance; }
p{ margin: 0; }
button{ font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select{ font: inherit; color: inherit; }
svg.icon{ display: inline-block; vertical-align: middle; flex-shrink: 0; }

.container{
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

.skip-link{
  position: absolute; left: 0; top: -48px;
  background: var(--espresso); color: var(--white);
  padding: var(--space-3) var(--space-5);
  z-index: 1000; border-radius: 0 0 var(--radius-sm) 0;
  transition: top var(--dur-base) var(--ease-out);
}
.skip-link:focus{ top: 0; }

:focus-visible{
  outline: 2.5px solid var(--bronze);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.btn:active{ transform: translateY(1px) scale(0.98); }
.btn-sm{ padding: 10px 20px; font-size: 14px; }
.btn-lg{ padding: 16px 32px; font-size: 16px; }

.btn-primary{
  background: var(--espresso);
  color: var(--cream);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover{ background: var(--espresso-700); box-shadow: var(--shadow-md); transform: translateY(-2px); }

.btn-ghost{
  background: transparent;
  color: var(--espresso);
  border: 1.5px solid var(--tan-200);
}
.btn-ghost:hover{ background: var(--cream-alt); border-color: var(--tan); transform: translateY(-2px); }

.btn-invert{
  background: var(--cream);
  color: var(--espresso);
}
.btn-invert:hover{ background: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header{
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(251,243,234,0.85);
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), height var(--dur-base) var(--ease-out);
}
.site-header.is-scrolled{
  box-shadow: var(--shadow-sm);
  border-bottom-color: rgba(176,138,99,0.25);
}
.header-inner{
  width: 100%;
  /* Unlike the page-content .container, the header isn't capped at 1200px
     — but full edge-to-edge turned out to feel too spread out. This inset
     sits 25% of the way back from the true edge toward where the old
     1200px-centered layout would have placed things, and scales with the
     viewport instead of using a fixed max-width. */
  max-width: none;
  padding-inline: max(var(--space-5), calc(12.5vw - 132px));
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-5);
}
.brand{ display: inline-flex; align-items: center; gap: var(--space-3); }
.brand-mark{ border-radius: 10px; }
.brand-name{
  font-family: var(--font-display); font-weight: 600; font-size: 19px;
  color: var(--espresso); letter-spacing: 0.01em;
}
.brand-name span{ display: block; font-size: 11px; font-weight: 500; letter-spacing: 0.18em; color: var(--bronze); text-transform: uppercase; margin-top: -2px; }

.main-nav ul{ display: flex; gap: var(--space-6); }
.main-nav a{
  font-size: 15px; font-weight: 500; color: var(--text-muted);
  position: relative; padding: 6px 0;
  transition: color var(--dur-fast) var(--ease-out);
}
.main-nav a::after{
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--bronze); border-radius: 2px;
  transition: right var(--dur-base) var(--ease-out);
}
.main-nav a:hover{ color: var(--espresso); }
.main-nav a:hover::after{ right: 0; }
.main-nav a[aria-current="page"]{ color: var(--espresso); }
.main-nav a[aria-current="page"]::after{ right: 0; }

.header-actions{ display: flex; align-items: center; gap: var(--space-4); }
.header-phone{
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-weight: 600; font-size: 14.5px; color: var(--espresso);
  white-space: nowrap;
  flex-shrink: 0;
}
.header-phone .icon{ color: var(--bronze); }

.nav-toggle{
  display: none; padding: 8px; border-radius: var(--radius-sm);
  color: var(--espresso);
}
.nav-toggle .icon-close{ display: none; }
.nav-toggle[aria-expanded="true"] .icon-open{ display: none; }
.nav-toggle[aria-expanded="true"] .icon-close{ display: block; }

/* ==========================================================================
   Hero
   ========================================================================== */
/* .hero-screen groups .hero + .trust-strip and pins them to exactly one
   screen's worth of height below the header. Flexbox — not a guessed pixel
   reservation — is what makes this robust: .trust-strip (flex: none) takes
   whatever its real rendered height turns out to be (one row, two on
   narrow screens, different font metrics, whatever), and .hero (flex: 1)
   absorbs precisely what's left, so the pair always sums to exactly
   100vh - header height, no matter what. */
.hero-screen{
  /* A hard cap, not a floor: this is what guarantees no scroll, on every
     browser. (An earlier min-height version left sizing to each browser's
     own — inconsistent — handling of `min-height: auto` on a nested flex
     item, which is a known cross-browser rough edge.) The extra 20px is
     deliberate slack — an exact 100vh fit left zero margin for browser
     chrome/scrollbar/rounding differences, so the strip could still end up
     a hair below the fold. This pulls it just clear of that without
     leaving a large empty gap underneath. */
  height: calc(100vh - var(--header-h) - 20px);
  height: calc(100dvh - var(--header-h) - 20px);
  display: flex;
  flex-direction: column;
}
.hero{
  position: relative;
  flex: 1 1 auto;
  min-height: 0; /* let this shrink to fit the space left after .trust-strip, instead of forcing .hero-screen taller than the cap above */
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: var(--space-6) var(--space-5);
  overflow: clip;
  background:
    radial-gradient(1100px 520px at 82% -10%, rgba(176,138,99,0.22), transparent 60%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream) 100%);
}
.hero-texture{
  position: absolute; inset: 0; pointer-events: none; z-index: -1;
  opacity: 0.5;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(107,74,54,0.18) 1px, transparent 1px),
    radial-gradient(1px 1px at 30% 70%, rgba(107,74,54,0.14) 1px, transparent 1px),
    radial-gradient(1.5px 1.5px at 60% 30%, rgba(107,74,54,0.16) 1px, transparent 1px),
    radial-gradient(1px 1px at 80% 60%, rgba(107,74,54,0.14) 1px, transparent 1px),
    radial-gradient(1.5px 1.5px at 90% 85%, rgba(107,74,54,0.14) 1px, transparent 1px);
  background-size: 260px 260px;
}
/* --- Hero background video ---
   Hidden by default (and whenever prefers-reduced-motion is set); only
   shown once `.hero.has-video` is confirmed — see the media-query block
   below. This keeps the original static cream hero as the true fallback
   for reduced-motion users and for autoplay failures (main.js removes
   `has-video` on a play() rejection or an `error` event). */
.hero-video, .hero-overlay{ display: none; }
.hero-video{
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
  /* No bottom border: the .trust-strip section sits flush underneath with
     no gap, so its dark espresso band reads as the video's bottom frame.
     No left/right border either — only the top edge keeps the cream frame. */
  border-top: 15px solid var(--cream);
}
.hero-overlay{
  position: absolute; z-index: 1;
  /* Matches .hero-video's border inset exactly, so the cream frame reads
     as clean cream instead of getting darkened by the overlay too. */
  inset: 15px 0 0 0;
  /* espresso brand color at 55% — within the 45–60% contrast requirement */
  background: rgba(42, 31, 24, 0.55);
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference){
  .hero.has-video .hero-video,
  .hero.has-video .hero-overlay{
    display: block;
  }
  /* Initial page-load reveal: main.js adds `.is-visible` once the video
     starts playing, and this transition fades it in instead of a hard cut. */
  .hero.has-video .hero-video{
    opacity: 0;
    transition: opacity 1.2s ease;
  }
  .hero.has-video .hero-video.is-visible{
    opacity: 1;
  }

  /* Text/button contrast: swap the light-hero (dark-on-cream) palette for
     the dark-hero (light-on-overlay) tokens already used elsewhere on the
     site (trust strip, CTA banner, footer) — same tokens, different context. */
  .hero.has-video .eyebrow{ color: var(--tan-200); }
  .hero.has-video .hero-title{ color: var(--cream); }
  .hero.has-video .hero-title em{ color: var(--tan-200); }
  .hero.has-video .hero-sub{ color: var(--text-on-dark-muted); }
  .hero.has-video .hero-stats{ border-top-color: rgba(243,231,216,0.25); }
  .hero.has-video .stat dt{ color: var(--cream); }
  .hero.has-video .stat dd{ color: var(--text-on-dark-muted); }
  .hero.has-video .btn-ghost{
    color: var(--cream);
    border-color: rgba(243,231,216,0.4);
  }
  .hero.has-video .btn-ghost:hover{
    background: rgba(243,231,216,0.1);
    border-color: var(--text-on-dark);
  }
}

.hero-inner{ position: relative; z-index: 2; max-width: 820px; }
.eyebrow{
  font-size: 13.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--bronze); margin-bottom: var(--space-4);
}
.hero-title{
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 16ch;
  margin-bottom: var(--space-5);
}
.hero-title em{ font-style: italic; color: var(--bronze); }
.hero-sub{
  font-size: 18px; color: var(--text-muted); max-width: 56ch;
  margin-bottom: var(--space-6);
}
.hero-actions{ display: flex; flex-wrap: wrap; gap: var(--space-4); margin-bottom: var(--space-6); }

.hero-stats{
  display: grid; grid-template-columns: repeat(4, auto); gap: var(--space-7);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(176,138,99,0.3);
}
.stat dt{ font-family: var(--font-display); font-size: 32px; font-weight: 600; color: var(--espresso); display: flex; align-items: baseline; gap: 2px; }
.stat dd{ font-size: 13.5px; color: var(--text-muted); margin-top: 2px; }

/* ==========================================================================
   Trust strip
   ========================================================================== */
.trust-strip{
  flex: none;
  background: var(--espresso);
  color: var(--text-on-dark);
  padding-block: var(--space-5);
}
.trust-strip-inner{
  display: flex; flex-wrap: wrap; gap: var(--space-6) var(--space-8);
  justify-content: center;
}
.trust-item{
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: 14px; font-weight: 500; color: var(--text-on-dark-muted);
}
.trust-item .icon{ color: var(--tan); }

/* ==========================================================================
   3D logo showcase
   Scroll-scrubbed via GSAP ScrollTrigger + Three.js, see assets/js/logo3d.js.
   Fallback-first: the static logo image is what renders by default;
   logo3d.js only adds `.is-active` to `.logo3d-section` once WebGL,
   Three.js, GSAP and the real Images/Logo.png texture have all loaded
   successfully, which is what swaps in the canvas and the pinned scroll
   choreography. No JS, a WebGL failure, a failed image fetch, or
   prefers-reduced-motion all just leave the fallback in place — there is no
   separate failure path to maintain.
   `.logo3d-stage` is CSS-pinned with `position: sticky` (not GSAP's JS pin)
   so it never fights the page's own reveal-on-scroll observers.
   ========================================================================== */
.logo3d-section{
  position: relative;
  background: var(--cream);
  padding-block: var(--space-9);
}
.logo3d-stage{
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.logo3d-canvas{
  display: none;
  width: min(52vw, 480px);
  height: min(52vw, 480px);
  touch-action: pan-y;
  position: relative;
  z-index: 2; /* stays above .logo3d-side at the point they overlap */
}
.logo3d-fallback{
  display: block;
  width: 200px;
  height: auto;
  position: relative;
  z-index: 2;
}

/* Two project photos flanking the mark, only part of the enhanced/pinned
   experience (never the plain fallback) — faded in by logo3d.js in step
   with the same scroll progress that drives the 3D mark itself, so they
   read as part of one scroll-triggered composition rather than static
   decoration. Positioned to tuck slightly under the mark's outer edges;
   the z-index above keeps the mark on top of that overlap at all times. */
.logo3d-side{
  display: none;
  position: absolute;
  /* Matches the canvas's own vertical centre (14vh top offset from
     .logo3d-stage's padding-top, plus half its own min(52vw,480px) size)
     rather than the stage's literal 50% — the canvas isn't centred on
     that line, it's pinned nearer the top, so top:50% here would have
     hung these visibly below it. */
  top: calc(14vh + min(26vw, 240px));
  width: clamp(188px, 20vw, 300px);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 1;
  opacity: 0; /* logo3d.js fades this in with scroll progress */
  transform: translateY(-50%);
}
.logo3d-side-left{ left: max(24px, calc(50% - 480px)); }
.logo3d-side-right{ right: max(24px, calc(50% - 480px)); }

/* Enhanced state: JS confirmed WebGL + GSAP are up and the mesh is built. */
@media (prefers-reduced-motion: no-preference){
  .logo3d-section.is-active{
    height: 200vh;
    padding-block: 0;
  }
  .logo3d-section.is-active .logo3d-stage{
    position: sticky;
    top: 0;
    height: 100vh;
    justify-content: flex-start;
    padding-top: 14vh;
  }
  .logo3d-section.is-active .logo3d-canvas{ display: block; }
  .logo3d-section.is-active .logo3d-fallback{ display: none; }
  .logo3d-section.is-active .logo3d-side{ display: block; } /* opacity still starts at 0 — logo3d.js fades it in */

  @media (max-width: 720px){
    .logo3d-section.is-active{ height: 160vh; }
    .logo3d-section.is-active .logo3d-canvas{ width: 68vw; height: 68vw; max-width: 300px; max-height: 300px; }
    .logo3d-section.is-active .logo3d-stage{ padding-top: 10vh; }
    /* No room next to the mark at phone widths — keep the composition to just the logo there. */
    .logo3d-section.is-active .logo3d-side{ display: none; }
  }
}

/* ==========================================================================
   Sections (shared)
   ========================================================================== */
.section{ padding-top: var(--space-9); padding-bottom: calc(var(--space-9) + var(--space-3)); scroll-margin-top: var(--header-h); }
#contact, #diensten, #waarom-ons, #werkwijze, #portfolio, #reviews{ scroll-margin-top: var(--header-h); }
.section-alt{ background: var(--cream-alt); }
.section-head{ max-width: 640px; margin-bottom: var(--space-8); }
.section-head .eyebrow{ margin-bottom: var(--space-3); }
.section-head h2{ font-size: clamp(1.75rem, 3.4vw, 2.5rem); letter-spacing: -0.01em; margin-bottom: var(--space-4); }
.section-lead{ color: var(--text-muted); font-size: 17px; }

.grid{ display: grid; gap: var(--space-5); }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-4{ grid-template-columns: repeat(4, 1fr); }

/* Portfolio carousel — 9 photos (a .grid-3-shaped page) at a time, paged
   with the prev/next buttons below. See assets/js/main.js for the paging
   logic; every page's markup already exists in the DOM (just [hidden]),
   so this degrades to a single static 3x3 grid with JS disabled. */
.portfolio-page{ display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.portfolio-page[hidden]{ display: none; }
.portfolio-nav{ display: flex; align-items: center; justify-content: center; gap: var(--space-4); margin-top: var(--space-7); }
.portfolio-nav-btn{
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  background: var(--white); color: var(--espresso); box-shadow: var(--shadow-sm);
  transition: background-color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out);
}
.portfolio-nav-btn:hover:not(:disabled){ background: var(--cream-alt); transform: translateY(-2px); }
.portfolio-nav-btn:disabled{ opacity: 0.35; cursor: not-allowed; }
.portfolio-page-indicator{ font-size: 13.5px; font-weight: 600; color: var(--text-muted); min-width: 52px; text-align: center; }

.card{
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}

/* Services */
.service-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-md); }
.service-icon{
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: var(--radius-sm);
  background: var(--cream-alt); color: var(--bronze);
  margin-bottom: var(--space-4);
  transition: transform var(--dur-base) var(--ease-spring), background-color var(--dur-base) var(--ease-out);
}
.service-card:hover .service-icon{ background: var(--bronze); color: var(--cream); transform: scale(1.08) rotate(-4deg); }
.service-card h3{ font-size: 19px; margin-bottom: var(--space-2); }
.service-card p{ color: var(--text-muted); font-size: 15px; }
.service-card .service-desc{ margin-bottom: var(--space-4); }
.service-list{ margin-bottom: var(--space-4); }
.service-list li{
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 14px; color: var(--text-muted); padding-block: 4px;
}
.service-list .icon{ color: var(--bronze); margin-top: 3px; flex-shrink: 0; }
.service-meta{ display: flex; flex-direction: column; gap: 4px; padding-top: var(--space-3); border-top: 1px solid var(--cream-alt); font-size: 13px; color: var(--text-muted); }
.service-card .link-more{ margin-top: var(--space-4); }
.service-meta strong{ color: var(--espresso); font-weight: 600; }

.compare-card h3{ display: flex; align-items: center; gap: var(--space-3); font-size: 19px; margin-bottom: var(--space-4); }
.compare-card h3 .icon{ color: var(--bronze); }
.compare-list li{ display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--text-muted); padding-block: 7px; }
.compare-list .icon{ color: var(--bronze); margin-top: 3px; flex-shrink: 0; }

/* USPs */
.usp{ text-align: left; }
.usp-icon{
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--white); color: var(--bronze);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-4);
}
.usp h3{ font-size: 18px; margin-bottom: var(--space-2); }
.usp p{ color: var(--text-muted); font-size: 14.5px; }

/* Process — two-column row of icon + text tiles */
.process{
  display: grid; grid-template-columns: repeat(2, 1fr);
  column-gap: var(--space-7); row-gap: var(--space-7);
}
.process-step{ display: flex; align-items: flex-start; gap: var(--space-5); }
.process-icon{
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--white); color: var(--bronze);
  box-shadow: var(--shadow-sm);
}
.process-num{
  font-family: var(--font-display); font-weight: 600; font-size: 13px;
  color: var(--bronze); letter-spacing: 0.06em; text-transform: uppercase;
  display: block; margin-bottom: var(--space-1);
}
.process-body h3{ font-size: 18px; margin-bottom: var(--space-2); }
.process-body p{ color: var(--text-muted); font-size: 14.5px; }

@media (max-width: 760px){
  .process{ grid-template-columns: 1fr; row-gap: var(--space-6); }
}

/* Portfolio */
.portfolio-item{ margin: 0; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); background: var(--white); transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out); }
.portfolio-item:hover{ transform: translateY(-6px); box-shadow: var(--shadow-md); }
.portfolio-media{
  aspect-ratio: 4/3;
  position: relative; overflow: hidden;
  background: var(--cream-alt);
}
.portfolio-media img{
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  display: block;
  transition: transform var(--dur-slow) var(--ease-out);
}
.portfolio-item:hover .portfolio-media img{ transform: scale(1.06); }

.stars{ display: flex; justify-content: center; gap: 3px; color: var(--bronze); margin-bottom: var(--space-4); }

/* ==========================================================================
   Review marquee — reused on the homepage teaser and the full reviews
   archive alike: every card drifts past in one continuous row. No-JS/
   static fallback: a plain horizontally-scrollable strip of
   .werkspot-card. When main.js runs (and the visitor hasn't asked for
   reduced motion), it clones the card set enough times to comfortably
   outrun the visible width (so a short 3-card teaser never runs dry
   mid-loop the way one duplication of it would) and adds .is-animating,
   which is what actually sets the track adrift on a seamless, pausable
   loop. Both --marquee-distance (one set's width, in px) and
   --marquee-duration are set per-instance by JS, so rows of any length
   drift at the same visual speed and loop back exactly on a repeat.
   ========================================================================== */
.review-marquee{
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
          mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}
.review-marquee-track{
  display: flex;
  gap: var(--space-4);
  width: max-content;
  padding-block: var(--space-2) var(--space-5);
  padding-inline: var(--space-5);
}
.review-marquee.is-animating{ overflow-x: hidden; }
.review-marquee.is-animating .review-marquee-track{
  animation: marquee-drift var(--marquee-duration, 75s) linear infinite;
}
.review-marquee.is-animating:hover .review-marquee-track,
.review-marquee.is-animating:focus-within .review-marquee-track{
  animation-play-state: paused;
}
@keyframes marquee-drift{
  from{ transform: translateX(0); }
  to{ transform: translateX(calc(-1 * var(--marquee-distance, 50%))); }
}
@media (prefers-reduced-motion: reduce){
  .review-marquee.is-animating .review-marquee-track{ animation: none; }
}

/* Photo marquee — same drift mechanic as .review-marquee above (driven by
   the same [data-marquee] JS), sized for project photos instead of cards. */
.photo-marquee-item{
  flex-shrink: 0; width: 280px; aspect-ratio: 4/3;
  border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm);
  background: var(--cream-alt);
}
.photo-marquee-item img{ width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 640px){
  .photo-marquee-item{ width: 220px; }
}

/* ==========================================================================
   CTA banner
   ========================================================================== */
.cta-banner{ background: var(--espresso); color: var(--text-on-dark); padding-block: var(--space-8); }
.cta-banner-inner{ text-align: center; max-width: 640px; margin-inline: auto; }
.cta-banner h2{ color: var(--cream); font-size: clamp(1.75rem, 3.4vw, 2.4rem); margin-bottom: var(--space-3); }
.cta-banner p{ color: var(--text-on-dark-muted); margin-bottom: var(--space-6); font-size: 16.5px; }

/* ==========================================================================
   Approach card — dark rounded panel used on service detail pages
   ("Hoe pakken wij dit aan?"): heading on one side, short process
   summary + button on the other.
   ========================================================================== */
.approach-card{
  background: var(--espresso);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-7);
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: var(--space-7);
  align-items: center;
}
.approach-card h2{ color: var(--cream); font-size: clamp(1.75rem, 3.2vw, 2.3rem); line-height: 1.15; }
.approach-card p{ color: var(--text-on-dark-muted); margin-bottom: var(--space-4); font-size: 15.5px; line-height: 1.65; }
.approach-card p:last-of-type{ margin-bottom: var(--space-6); }

.btn-outline-invert{
  background: transparent;
  color: var(--cream);
  border: 1.5px solid rgba(243,231,216,0.35);
}
.btn-outline-invert:hover{ background: rgba(243,231,216,0.08); border-color: var(--cream); transform: translateY(-2px); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid{ display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--space-8); align-items: start; }
.contact-form{ background: var(--white); padding: var(--space-7); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.form-row{ display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.form-field{ margin-bottom: var(--space-5); }
.form-field label{ display: block; font-size: 14px; font-weight: 600; color: var(--espresso); margin-bottom: var(--space-2); }
.form-field label span{ color: var(--danger); }
.form-field input, .form-field textarea, .form-field select{
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--tan-200); background: var(--cream);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus{
  border-color: var(--bronze); box-shadow: 0 0 0 4px rgba(107,74,54,0.12); outline: none;
}
.form-field textarea{ resize: vertical; min-height: 100px; }
.field-error{ display: none; color: var(--danger); font-size: 13px; margin-top: 6px; }
.form-field.has-error input, .form-field.has-error textarea, .form-field.has-error select{ border-color: var(--danger); }
.form-field.has-error .field-error{ display: block; }

.contact-form .btn{ width: 100%; }
.form-success{
  display: none; align-items: center; gap: var(--space-2);
  margin-top: var(--space-4); padding: 12px 16px; border-radius: var(--radius-sm);
  background: rgba(47,125,90,0.12); color: var(--success); font-size: 14.5px; font-weight: 600;
}
.form-success.is-visible{ display: flex; }
.form-note{ display: none; }

.contact-info{ display: flex; flex-direction: column; gap: var(--space-5); }
.info-card{ background: var(--white); border-radius: var(--radius-lg); padding: var(--space-6); box-shadow: var(--shadow-sm); }
.info-card h3{ font-size: 18px; margin-bottom: var(--space-4); }
.info-list li{ display: flex; align-items: center; gap: var(--space-3); padding-block: var(--space-2); font-size: 15px; }
.info-list .icon{ color: var(--bronze); }
.info-list a:hover{ color: var(--bronze); }

.info-map{
  background: linear-gradient(135deg, var(--bronze), var(--espresso));
  color: var(--cream); border-radius: var(--radius-lg);
  min-height: 160px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-2);
  font-size: 14px; font-weight: 600; text-align: center; padding: var(--space-5);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer{ background: var(--espresso); color: var(--text-on-dark); }
.footer-inner{
  padding-block: var(--space-8);
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: var(--space-7);
}
.footer-brand .brand-name{ color: var(--cream); }
.footer-brand .brand-name span{ color: var(--tan); }
.footer-brand p{ color: var(--text-on-dark-muted); font-size: 14.5px; margin-block: var(--space-4); max-width: 34ch; }
.social-links{ display: flex; gap: var(--space-3); }
.social-links a{
  width: 38px; height: 38px; border-radius: 50%; background: rgba(243,231,216,0.08);
  display: flex; align-items: center; justify-content: center; color: var(--text-on-dark);
  transition: background-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.social-links a:hover{ background: var(--bronze); transform: translateY(-3px); }

.footer-nav h3, .footer-contact h3{ font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--tan); margin-bottom: var(--space-4); }
.footer-nav li, .footer-contact li{ padding-block: 6px; font-size: 14.5px; color: var(--text-on-dark-muted); }
.footer-nav a:hover, .footer-contact a:hover{ color: var(--cream); }

.footer-bottom{ border-top: 1px solid rgba(243,231,216,0.12); }
.footer-bottom-inner{
  padding-block: var(--space-5);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-3);
  font-size: 13.5px; color: var(--text-on-dark-muted);
}
.footer-legal{ display: flex; gap: var(--space-5); }
.footer-legal a:hover{ color: var(--cream); }

/* ==========================================================================
   Fixed corner actions (WhatsApp + back to top)
   ========================================================================== */
.fixed-actions{
  position: fixed; right: var(--space-5); bottom: var(--space-5); z-index: 90;
  display: flex; flex-direction: column; align-items: center; gap: var(--space-3);
}

.whatsapp-float{
  width: 46px; height: 46px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.whatsapp-float:hover{ transform: translateY(-3px) scale(1.04); box-shadow: var(--shadow-lg); }

.back-to-top{
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--espresso); color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(12px) scale(0.9); pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.back-to-top.is-visible{ opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.back-to-top:hover{ background: var(--espresso-700); transform: translateY(-3px) scale(1.04); }

/* ==========================================================================
   Page hero (inner pages)
   ========================================================================== */
.page-hero{
  position: relative; overflow: clip;
  padding-block: var(--space-8) var(--space-7);
  background:
    radial-gradient(900px 420px at 85% -20%, rgba(176,138,99,0.22), transparent 60%),
    var(--cream);
}
.page-hero-inner{ position: relative; z-index: 1; max-width: 760px; }
.breadcrumb{ display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-muted); margin-bottom: var(--space-4); }
.breadcrumb a:hover{ color: var(--bronze); }
.page-hero h1{ font-size: clamp(2rem, 4.2vw, 3.2rem); margin-bottom: var(--space-4); }
.page-hero-lead{ font-size: 17.5px; color: var(--text-muted); max-width: 60ch; }

/* ==========================================================================
   Teasers (Home page section previews)
   ========================================================================== */
.teaser-head{ display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-5); margin-bottom: var(--space-7); flex-wrap: wrap; }
.teaser-head .section-head{ margin-bottom: 0; }
.link-more{
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: 15px; color: var(--bronze);
  white-space: nowrap; padding-bottom: 2px;
  transition: gap var(--dur-fast) var(--ease-out);
}
.link-more:hover{ gap: 10px; color: var(--espresso-700); }
.link-more .icon{ transition: transform var(--dur-fast) var(--ease-out); }

/* ==========================================================================
   FAQ (native details/summary — accessible, no JS needed)
   ========================================================================== */
.faq-list{ max-width: 760px; }
.faq-item{
  border-bottom: 1px solid var(--tan-200);
  padding-block: var(--space-5);
}
.faq-item summary{
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--espresso);
}
.faq-item summary::-webkit-details-marker{ display: none; }
.faq-item summary .faq-plus{
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--cream-alt); color: var(--bronze);
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--dur-base) var(--ease-out), background-color var(--dur-base) var(--ease-out);
}
.faq-item[open] summary .faq-plus{ transform: rotate(45deg); background: var(--bronze); color: var(--cream); }
.faq-plus .icon{ transform: rotate(90deg); }
.faq-item p{ color: var(--text-muted); margin-top: var(--space-3); max-width: 65ch; font-size: 15.5px; }
.faq-item[open] p{ animation: faq-reveal var(--dur-base) var(--ease-out); }
@keyframes faq-reveal{ from{ opacity: 0; transform: translateY(-4px); } to{ opacity: 1; transform: translateY(0); } }

/* ==========================================================================
   Story / About layout
   ========================================================================== */
.story-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: center; }
.story-media{
  aspect-ratio: 4/3; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(135deg, var(--bronze), var(--espresso));
  display: flex; align-items: center; justify-content: center; color: var(--cream);
  position: relative;
}
.story-media::before{
  content:''; position:absolute; inset:0;
  background-image: radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.3) 1px, transparent 1px), radial-gradient(1px 1px at 70% 60%, rgba(255,255,255,0.25) 1px, transparent 1px), radial-gradient(1px 1px at 40% 80%, rgba(255,255,255,0.2) 1px, transparent 1px);
  background-size: 90px 90px;
}
.story-media:has(img)::before{ display: none; }
.story-media img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.story-text h2{ margin-bottom: var(--space-4); font-size: clamp(1.6rem, 3vw, 2.2rem); }
.story-text p{ color: var(--text-muted); margin-bottom: var(--space-4); font-size: 16px; }
.story-text p:last-child{ margin-bottom: 0; }
.story-text .btn{ margin-top: var(--space-5); }

.teaser-more{ margin-top: var(--space-7); text-align: center; }

/* ==========================================================================
   Team
   ========================================================================== */
.team-card{ text-align: center; }
.team-avatar{
  width: 96px; height: 96px; border-radius: var(--radius-lg); margin-inline: auto;
  background: linear-gradient(135deg, var(--tan), var(--bronze-600));
  display: flex; align-items: center; justify-content: center; color: var(--cream);
  margin-bottom: var(--space-4);
}
.team-card h3{ font-size: 17px; margin-bottom: 2px; }
.team-role{ font-size: 13.5px; color: var(--bronze); font-weight: 600; margin-bottom: var(--space-2); }
.team-card p{ color: var(--text-muted); font-size: 14.5px; }

/* ==========================================================================
   Certifications strip
   ========================================================================== */
.cert-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
.cert-item{
  display: flex; align-items: flex-start; text-align: left; gap: var(--space-4);
  padding-top: var(--space-5); border-top: 2px solid var(--tan-200);
}
.cert-item .icon{ color: var(--bronze); width: 26px; height: 26px; flex-shrink: 0; margin-top: 2px; }
.cert-item h3{ font-size: 15.5px; margin-bottom: 2px; }
.cert-item p{ font-size: 13.5px; color: var(--text-muted); }

/* ==========================================================================
   Rating summary (Reviews page)
   ========================================================================== */
.rating-summary{
  display: flex; align-items: center; gap: var(--space-7);
  background: var(--white); border-radius: var(--radius-lg); padding: var(--space-7);
  box-shadow: var(--shadow-sm); margin-bottom: var(--space-8); flex-wrap: wrap;
}
.rating-score{ text-align: center; }
.rating-score .num{ font-family: var(--font-display); font-size: 56px; font-weight: 600; color: var(--espresso); line-height: 1; }
.rating-score .stars{ margin-block: var(--space-2) 4px; justify-content: center; }
.rating-score .count{ font-size: 13.5px; color: var(--text-muted); }
.rating-bars{ flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 8px; }
.rating-bar-row{ display: grid; grid-template-columns: 56px 1fr 34px; align-items: center; gap: var(--space-3); font-size: 13.5px; color: var(--text-muted); }
.rating-bar-track{ height: 8px; border-radius: var(--radius-pill); background: var(--cream-alt); overflow: hidden; }
.rating-bar-fill{ height: 100%; background: var(--bronze); border-radius: var(--radius-pill); }

/* ==========================================================================
   Review grid (full list, non-carousel)
   ========================================================================== */
.review-card{ display: flex; flex-direction: column; gap: var(--space-3); }
.review-card .stars{ color: var(--bronze); display: flex; gap: 2px; }
.review-card p{ color: var(--text); font-size: 15px; line-height: 1.55; }
.review-meta{ display: flex; align-items: center; gap: var(--space-3); margin-top: auto; padding-top: var(--space-3); }
.review-avatar{
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--tan), var(--bronze-600));
}
.review-meta strong{ display: block; font-size: 14px; color: var(--espresso); }
.review-meta span{ font-size: 12.5px; color: var(--text-muted); }

/* ==========================================================================
   Werkspot review card — the card style used inside .review-marquee
   (adapted from stukadoorsclub.nl's testimonial strip: fixed-width
   rounded cards, soft shadow, star row, clamped quote — reworked into
   our own cream/bronze palette instead of copying their white/orange one).
   ========================================================================== */
.werkspot-card{
  flex: 0 0 280px;
  scroll-snap-align: start;
  display: flex; flex-direction: column; gap: var(--space-3);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-5);
}
.werkspot-card .stars{ display: flex; gap: 2px; color: var(--bronze); }
.werkspot-card p{
  font-size: 14px; color: var(--text); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden;
}
.werkspot-meta{ margin-top: auto; padding-top: var(--space-3); border-top: 1px solid var(--cream-alt); }
.werkspot-meta strong{ display: block; font-size: 13.5px; color: var(--espresso); }
.werkspot-meta span{ font-size: 12px; color: var(--text-muted); }

@media (max-width: 640px){
  .werkspot-card{ flex-basis: 240px; }
}

/* ==========================================================================
   Category cards ("Wat wil je laten doen?") — large photo tiles linking
   into the offerte flow, each labelled with a project scope.
   ========================================================================== */
.container-wide{ max-width: 1480px; }
.category-section{ padding-top: var(--space-4); } /* pulled up from the default .section spacing, sits closer to the 3D logo section above it */
.category-title{ text-align: center; max-width: 720px; margin: 0 auto var(--space-7); }
.category-grid{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-5);
}
.category-card{
  position: relative;
  display: block;
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.category-card:hover, .category-card:focus-visible{ transform: translateY(-4px); box-shadow: var(--shadow-md); }
.category-card img{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.category-card:hover img, .category-card:focus-visible img{ transform: scale(1.06); }
.category-card::after{
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(42,31,24,0.8) 100%);
}
.category-card span{
  position: absolute; left: var(--space-5); right: var(--space-5); bottom: var(--space-5);
  z-index: 1;
  color: var(--cream);
  font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 1.2;
}

@media (max-width: 1024px){
  .category-grid{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px){
  .category-grid{ grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.reveal{
  opacity: 0;
  transform: translateY(22px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
  transition-delay: calc(var(--d, 0) * 60ms);
}
.reveal.is-visible{ opacity: 1; transform: translateY(0); }

/* stagger children of grids automatically */
.grid .reveal:nth-child(1){ --d: 0; } .grid .reveal:nth-child(2){ --d: 1; } .grid .reveal:nth-child(3){ --d: 2; }
.grid .reveal:nth-child(4){ --d: 3; } .grid .reveal:nth-child(5){ --d: 4; } .grid .reveal:nth-child(6){ --d: 5; }
.process .reveal:nth-child(1){ --d: 0; } .process .reveal:nth-child(2){ --d: 1; } .process .reveal:nth-child(3){ --d: 2; } .process .reveal:nth-child(4){ --d: 3; }
.trust-strip-inner .reveal:nth-child(1){ --d: 0; } .trust-strip-inner .reveal:nth-child(2){ --d: 1; } .trust-strip-inner .reveal:nth-child(3){ --d: 2; } .trust-strip-inner .reveal:nth-child(4){ --d: 3; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px){
  .grid-4{ grid-template-columns: repeat(2, 1fr); }
  .process{ grid-template-columns: repeat(2, 1fr); row-gap: var(--space-7); }
  .contact-grid{ grid-template-columns: 1fr; }
  .footer-inner{ grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand{ grid-column: 1 / -1; }
  .story-grid{ grid-template-columns: 1fr; }
  .story-media{ aspect-ratio: 16/9; order: -1; }
  .cert-grid{ grid-template-columns: repeat(2, 1fr); }
  .approach-card{ grid-template-columns: 1fr; padding: var(--space-7) var(--space-5); }
}

/* Nav collapses to the hamburger menu earlier than the 1180px grid
   breakpoint below — the longer "Plan uw project in 2 minuten" button plus
   the 6th nav item ("Veelgestelde vragen") need close to 1250px to lay out
   in one row without wrapping, so this has its own, wider threshold. */
@media (max-width: 1250px){
  .main-nav{
    position: fixed; inset: var(--header-h) 0 0 auto; width: min(320px, 84vw);
    background: var(--cream); box-shadow: var(--shadow-lg);
    padding: var(--space-6) var(--space-5);
    transform: translateX(100%);
    transition: transform var(--dur-base) var(--ease-out);
  }
  .main-nav.is-open{ transform: translateX(0); }
  .main-nav ul{ flex-direction: column; gap: var(--space-2); }
  .main-nav a{ display: block; padding: var(--space-3) 0; font-size: 17px; }
  .header-phone span{ display: none; }
  .nav-toggle{ display: flex; }
  .header-actions .btn-sm{ display: none; }
}

@media (max-width: 1180px){
  .grid-3, .portfolio-page{ grid-template-columns: repeat(2, 1fr); }
  .hero-stats{ grid-template-columns: repeat(2, 1fr); row-gap: var(--space-5); }
}

@media (max-width: 640px){
  :root{ --header-h: 68px; }
  .container{ padding-inline: var(--space-4); }
  .hero{ padding-block: var(--space-5) var(--space-4); }
  .grid-2, .grid-3, .grid-4, .portfolio-page{ grid-template-columns: 1fr; }
  .process{ grid-template-columns: 1fr; }
  .hero-stats{ grid-template-columns: repeat(2, 1fr); }
  .form-row{ grid-template-columns: 1fr; }
  .footer-inner{ grid-template-columns: 1fr; }
  .brand-name{ font-size: 16px; }
  .cert-grid{ grid-template-columns: 1fr 1fr; }
  .rating-summary{ flex-direction: column; text-align: center; }
  .rating-bars{ width: 100%; }
  .teaser-head{ align-items: flex-start; }
}
