:root {
  --color-bg: #f5f3ee;
  --color-surface: #fffdf9;
  --color-surface-soft: #e9e7df;
  --color-text: #1c2927;
  --color-muted: #66716e;
  --color-primary: #173f3b;
  --color-primary-2: #285d55;
  --color-accent: #c6a57b;
  --color-line: rgba(28, 41, 39, .14);
  --color-white: #fff;
  --shadow-soft: 0 1.5rem 4rem rgba(22, 36, 33, .08);
  --radius-sm: .4rem;
  --radius-md: 1rem;
  --radius-lg: 1.8rem;
  --container: 1360px;
  --gutter: clamp(1.15rem, 3vw, 3rem);
  --section-space: clamp(2.5rem, 6vw, 5rem);
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
  --transition: 240ms cubic-bezier(.2,.7,.2,1);
  color-scheme: light dark;
}
.mx_logged_in .site-header {
    top: 55px !important;
}
.mx_logged_in .subhero {
margin-top:59px !important;
}
.mx_logged_in .hero-media .mx_buttons {
    position: absolute;
    top: 160px !important;   /* 55px adminbalk + hoogte header + wat ruimte */
    left: 1rem;
    z-index: 20;             /* boven .hero-photo-overlay */
    margin: 0;
    pointer-events: auto;
}
.mx_logged_in .hero-content .mx_buttons {
    position: relative;
    z-index: 20;
}
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; }

a { color: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

button { font: inherit; }

.container {
  width: min(var(--container), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: .75rem;
  left: .75rem;
  padding: .7rem 1rem;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: .5rem;
  transform: translateY(-150%);
  transition: transform var(--transition);
}
.skip-link:focus { transform: translateY(0); }

.eyebrow {
  margin: 0 0 1rem;
  color: var(--color-primary-2);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1.3;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1, h2 {
  margin-bottom: 1.25rem;
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: .98;
}

h1 {
  max-width: 21ch;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
}

h2 {
  font-size: clamp(1.85rem, 3.4vw, 3rem);
}
h1 em, h2 em {
  color: var(--color-accent);
  font-family: var(--font-display);
  font-weight: 400;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.15;
}

.rich-text {
  max-width: 65ch;
  color: var(--color-muted);
}
.rich-text > :last-child { margin-bottom: 0; }
.rich-text p { margin-bottom: 1rem; }
.rich-text h2, .rich-text h3 { margin-top: 1.75rem; }
.rich-text ul { padding-left: 1.2rem; }
.rich-text a { color: var(--color-link); text-underline-offset: .2em; }

.section { padding-block: var(--section-space); }

.section-dark {
  background: var(--color-primary);
  color: var(--color-white);
}
.section-dark .eyebrow { color: #cbb08b; }
.section-dark .rich-text { color: rgba(255,255,255,.72); }

.section-soft { background: var(--color-surface-soft); }

/* Hero */
.hero {
  position: relative;
  min-height: min(850px, 92svh);
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: #e9e4da;
}

.hero-content { position: relative; z-index: 2; padding-block: 7rem 5rem; }

.hero-copy {
  max-width: 37rem;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
}

.button {
  min-height: 3.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  padding: .75rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 750;
  text-decoration: none;
  transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--color-primary); color: var(--color-white); }
.button-primary:hover { background: var(--color-primary-2); }
.button-ghost { border-color: var(--color-text); background: transparent; }
.button-light { background: var(--color-white); color: var(--color-primary); }
.button-outline { border-color: var(--color-line); }

 .hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #d5d0c5;
}
.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.78) contrast(.98);
}
.hero-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(245,243,238,.97) 0%, rgba(245,243,238,.82) 37%, rgba(245,243,238,.16) 72%, rgba(245,243,238,.05) 100%);
}

/* Intro */
.intro { background: var(--color-surface); }
.intro-grid {
  display: grid;
  gap: 2.5rem;
  container-type: inline-size;
}
.rich-text-large { font-size: clamp(1.05rem, 1.6vw, 1.3rem); }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin-top: 1rem;
  font-size: .84rem;
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: .35rem;
}
.text-link span { transition: transform var(--transition); }
.text-link:hover span { transform: translate(3px, -3px); }


/* Layered / overlapping editorial layout */
.intro-overlap {
  position: relative;
  z-index: 5;
  margin-top: clamp(-7rem, -8vw, -4rem);
  padding-top: 0;
  background: transparent;
}
.intro-card {
  position: relative;
  padding: clamp(2.5rem, 6vw, 6rem) clamp(1.4rem, 6vw, 6rem);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
  overflow: visible;
}
.intro-accent {
  position: absolute;
  width: clamp(9rem, 18vw, 15rem);
  height: clamp(9rem, 18vw, 15rem);
  right: clamp(1rem, 5vw, 5rem);
  bottom: clamp(-5rem, -6vw, -3rem);
  background: var(--color-accent);
  opacity: .16;
  border-radius: 50%;
  z-index: -1;
}

.feature-overlap {
  position: relative;
  z-index: 2;
  padding-top: clamp(7rem, 12vw, 11rem);
  margin-top: clamp(-3rem, -4vw, -1.5rem);
  clip-path: inset(0 0 0 0);
}
.feature-overlap::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5rem;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.08));
  pointer-events: none;
}
.feature-visual-overlap {
  transform: translateY(clamp(-3rem, -5vw, -1rem));
  box-shadow: 0 2rem 4rem rgba(0,0,0,.18);
}

.categories-overlap {
  position: relative;
  z-index: 3;
  margin-top: clamp(-2.5rem, -4vw, -1rem);
  background: var(--color-surface);
}
.categories-overlap .section-heading {
  position: relative;
  z-index: 2;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}
.category-card-large {
  box-shadow: 0 1.75rem 3.5rem rgba(22,36,33,.12);
}
.category-card:nth-child(2) {
  transform: translateY(clamp(1rem, 3vw, 2.5rem));
}
.category-card:nth-child(3) {
  transform: translateY(clamp(-.5rem, -1vw, -.15rem));
}

.showroom-overlap {
  position: relative;
  z-index: 4;
  margin-top: clamp(-4rem, -6vw, -2rem);
  padding-top: clamp(6rem, 10vw, 10rem);
}
.showroom-visual-overlap {
  transform: translateY(clamp(-3rem, -5vw, -1rem));
  box-shadow: 0 2rem 4rem rgba(22,36,33,.13);
}
.showroom-copy {
  position: relative;
  z-index: 2;
}

.projects-overlap {
  position: relative;
  z-index: 2;
  margin-top: clamp(-3rem, -4vw, -1rem);
  padding-top: clamp(7rem, 10vw, 10rem);
}
.project-card {
  transition: transform var(--transition);
}
.project-card:nth-child(1) { transform: translateY(clamp(-2rem, -3vw, -.5rem)); }
.project-card:nth-child(2) { transform: translateY(clamp(1rem, 4vw, 3.5rem)); }
.project-card:nth-child(3) { transform: translateY(clamp(-1rem, -2vw, -.25rem)); }
.project-card:hover { transform: translateY(-4px); }
.project-card:nth-child(2):hover { transform: translateY(calc(clamp(1rem, 4vw, 3.5rem) - 4px)); }

.trust-overlap {
  position: relative;
  z-index: 3;
  padding-top: clamp(7rem, 11vw, 10rem);
  margin-top: clamp(-3rem, -4vw, -1rem);
}
.trust-overlap .partner-list {
  margin-top: clamp(2rem, 4vw, 4rem);
  box-shadow: 0 -1rem 3rem rgba(0,0,0,.08);
}

.cta-overlap {
  position: relative;
  z-index: 4;
  margin-top: clamp(-2.5rem, -3vw, -1rem);
  padding-top: clamp(6rem, 9vw, 8rem);
  box-shadow: 0 -1.5rem 3rem rgba(0,0,0,.05);
}

/* Feature */
.feature-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
.feature-visual {
  min-height: 32rem;
  position: relative;
  overflow: hidden;
  background: #77796d;
}
.feature-visual img,
.category-image img,
.project-image img,
.showroom-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.feature-visual img { object-position: center; }
.visual-label {
  position: absolute;
  z-index: 2;
  left: 1.25rem;
  bottom: 1.25rem;
  padding: .45rem .7rem;
  background: rgba(23,63,59,.88);
  color: white;
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.feature-content { padding-block: 1rem; }
.feature-content .cms h2 { max-width: 21ch; color: var(--color-white); }

/* Categories */
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  margin-bottom: 3rem;
}
.heading-copy { max-width: 30rem; }
.category-grid {
  display: grid;
  gap: 1rem;
}
.category-card {
  min-height: 22rem;
  position: relative;
  overflow: hidden;
  color: white;
  text-decoration: none;
  container-type: inline-size;
}
.category-card-large { min-height: 29rem; }
.category-image, .project-image {
  position: absolute;
  inset: 0;
  transition: transform 600ms cubic-bezier(.2,.7,.2,1);
}
.category-card:hover .category-image { transform: scale(1.045); }
.category-overlay {
  position: absolute;
  inset: auto 1.5rem 1.5rem;
  z-index: 2;
}
.category-overlay::before {
  content: "";
  position: absolute;
  inset: -8rem -3rem -2rem;
  z-index: -1;
  background: linear-gradient(transparent, rgba(0,0,0,.58));
}
.category-overlay span {
  font-size: .72rem;
  opacity: .7;
  letter-spacing: .14em;
}
.category-overlay h3 { margin: .35rem 0; font-size: clamp(1.55rem, 3cqw, 2.4rem); }
.category-overlay p { margin: 0; opacity: .78; }

/* Showroom */
.showroom { background: var(--color-surface); }
.showroom-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
.opening-hours {
  max-width: 28rem;
  margin: 2rem 0;
  border-top: 1px solid var(--color-line);
}
.opening-hours div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--color-line);
  font-size: .88rem;
}
.opening-hours span { color: var(--color-muted); }
.showroom-visual {
  min-height: 38rem;
  position: relative;
  overflow: hidden;
  background: #7b766a;
}
.showroom-visual img { object-position: center; }
.showroom-card {
  position: absolute;
  z-index: 2;
  right: 1.5rem;
  bottom: 1.5rem;
  display: grid;
  gap: .15rem;
  min-width: 12rem;
  padding: 1.2rem;
  background: rgba(23,63,59,.92);
  color: white;
}
.showroom-card .card-number { color: #cbb08b; font-size: .75rem; letter-spacing: .12em; }
.showroom-card strong { font-size: 1.15rem; }
.showroom-card span:last-child { font-size: .75rem; opacity: .72; }

/* Projects */
.project-grid {
  display: grid;
  gap: 2.5rem 1.5rem;
}
.project-card { position: relative; }
.project-card-offset { margin-top: 3rem; }
.project-image {
  position: relative;
  aspect-ratio: 1 / 1.15;
  margin-bottom: 1rem;
}
.project-meta { display: flex; justify-content: space-between; gap: 1rem; color: var(--color-muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .11em; }
.project-card h3 { margin: .5rem 0 0; font-size: 1.3rem; font-weight: 550; }

/* Trust */
.trust { background: var(--color-primary); color: white; }
.trust .eyebrow { color: #cbb08b; }
.trust-intro h2 { max-width: 9ch; }
.partner-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid rgba(255,255,255,.2);
}
.partner-list span {
  padding: 1.25rem .5rem;
  border-bottom: 1px solid rgba(255,255,255,.2);
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 650;
}

/* CTA */
.cta {
  background: #d7c8b2;
  color: var(--color-primary);
}
.cta-inner { display: grid; gap: 2rem; }
.cta h2 { max-width: 12ch; }
.cta-actions { max-width: 31rem; }
.cta-actions .rich-text { color: rgba(23,63,59,.72); margin-bottom: 1.5rem; }

/* Footer */
.site-footer {
  padding-top: 4rem;
  background: #102d2a;
  color: white;
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 3rem;
}


.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.0rem;
  line-height: 1;
  color: inherit;
}

.social-links a:hover,
.social-links a:focus-visible {
  color: var(--color-accent);
}


.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: inherit;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 2.7rem;
  aspect-ratio: 1;
  border: 1px solid currentColor;
  font-family: var(--font-display);
  font-size: 1.4rem;
}
.brand-text { display: grid; line-height: 1; }
.brand-text strong { font-size: 1rem; letter-spacing: .12em; }
.brand-text small { margin-top: .35rem; font-size: .52rem; letter-spacing: .31em; }
.brand-footer { margin-bottom: 1.5rem; }
.footer-brand .rich-text { color: rgba(255,255,255,.6); }
.site-footer h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: .5rem 0; }
.footer-links, .footer-links a, .site-footer address, .site-footer > .container a { color: rgba(255,255,255,.65); text-decoration: none; font-style: normal; }
.footer-links a:hover, .site-footer a:hover { color: white; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.45);
  font-size: .72rem;
}

/* Responsive */
@media (min-width: 700px) {
  .intro-grid, .showroom-grid, .cta-inner { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1.1fr .9fr; }
  .category-grid { grid-template-columns: 1.2fr .8fr; }
  .category-card-large { grid-row: span 2; min-height: 100%; }
  .category-card:not(.category-card-large) { min-height: 19rem; }
  .project-grid { grid-template-columns: repeat(3, 1fr); }
  .partner-list { grid-template-columns: repeat(5, 1fr); }
  .partner-list span { border-right: 1px solid rgba(255,255,255,.2); padding: 1.5rem; }
  .partner-list span:last-child { border-right: 0; }
 .footer-grid {
  grid-template-columns: repeat(4, 1fr); 
}
}

@media (min-width: 1000px) {
  .hero-content { padding-block: 8rem 6rem; }
  .intro-card { padding-right: clamp(3rem, 7vw, 8rem); }
  .intro-grid { gap: clamp(3rem, 8vw, 8rem); }

  .intro-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid { gap: clamp(3rem, 8vw, 9rem); }
  .showroom-grid { grid-template-columns: .8fr 1.2fr; }
  .cta-inner { grid-template-columns: 1.25fr .75fr; align-items: end; }
}

@media (min-width: 1200px) {
  .hero-content { padding-left: max(var(--gutter), calc((60vw - var(--container)) / 2)); }
  .feature-visual { min-height: 45rem; }
  .showroom-visual { min-height: 48rem; }
}

/* Container query enhancement */
@container (min-width: 720px) {
  .intro-grid { grid-template-columns: 1fr 1fr; }
}


@media (max-width: 699px) {
  .intro-overlap { margin-top: -3rem; }
  .intro-card { margin-inline: 1rem; width: calc(100% - 2rem); }
  .feature-overlap { margin-top: -1rem; padding-top: 5rem; }
  .feature-visual-overlap, .showroom-visual-overlap { transform: none; }
  .showroom-overlap, .projects-overlap, .trust-overlap, .cta-overlap { margin-top: -1.25rem; }
  .category-card:nth-child(2), .category-card:nth-child(3),
  .project-card:nth-child(1), .project-card:nth-child(2), .project-card:nth-child(3) { transform: none; }
  .category-card:nth-child(2), .category-card:nth-child(3) { margin-top: .75rem; }
  .project-card + .project-card { margin-top: 1rem; }
}

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

/* CSS dark mode */
@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #151c1a;
    --color-surface: #1c2523;      /* nu anders dan bg → intro-card e.d. weer zichtbaar als laag */
    --color-surface-soft: #25302d; /* was #666: grijze tekst haalde daar geen leesbaar contrast */
    --color-text: #edf2ef;
    --color-muted: #aeb9b5;
    --color-primary: #1f4a45;      /* was #333: donkere secties vielen weg tegen de achtergrond */
    --color-primary-2: #3c756b;
    --color-link: #8cc5b8;         /* lichtgroen, goed leesbaar op donker */
    --color-line: rgba(237, 242, 239, .15);
    --color-white: #fff;
    --shadow-soft: 0 1.5rem 4rem rgba(0, 0, 0, .45); /* oude schaduw was onzichtbaar op donker */
  }

  .hero { background: #202522; }
  .hero-photo { filter: saturate(.72) brightness(.7) contrast(1.02); }
  .hero-photo-overlay { background: linear-gradient(90deg, rgba(16,24,22,.9) 0%, rgba(16,24,22,.7) 44%, rgba(16,24,22,.2) 78%, rgba(16,24,22,.08) 100%); }

  /* eyebrow gebruikte --color-primary-2: te weinig contrast op donker */
  .eyebrow { color: #cbb08b; }

  /* primaire knop iets lichter zodat hij loskomt van de donkergroene secties */
  .button-primary { background: var(--color-primary-2); }
  .button-primary:hover { background: #2f6158; }
  .button-ghost { border-color: rgba(255, 255, 255, .45); }

  .text-link { color: var(--color-text); }
  .showroom-visual { opacity: .9; }
  .cta { background: #504837; color: #fff; }
  .cta-actions .rich-text { color: rgba(255, 255, 255, .72); }
}
@media (prefers-color-scheme: dark) {
    .brand-logo img {
        filter: brightness(0) invert(1);
    }
}

/* Kuipers Badkamers logo */
.brand-logo {
  flex: 0 0 auto;
}
.brand-logo img {
  display: block;
  width: clamp(6.5rem, 10vw, 9rem);
  height: auto;
}
.brand-logo-footer {
  width: fit-content;
  padding: .45rem .65rem;
        filter: brightness(0) invert(1);
 
}
.brand-logo-footer img {
  width: clamp(8rem, 12vw, 10rem);
}

/* Van idee tot oplevering */
.process-overlap {
  position: relative;
  z-index: 7;
  margin-top: clamp(-2.5rem, -3.5vw, -1rem);
  padding-top: clamp(6rem, 9vw, 8rem);
  background: #f7f3ed;
  color: var(--color-text);
}
.process-heading {
  margin-bottom: clamp(2.5rem, 5vw, 4.25rem);
}
.process-heading h2 {
  margin-bottom: 0;
}
.process-grid {
  display: grid;
  gap: 2.25rem;
}
.process-step {
  padding-top: 1.3rem;
  border-top: 1px solid rgba(198,165,123,.55);
}
.process-number {
  display: flex;
  gap: .35rem;
  align-items: baseline;
  margin-bottom: .85rem;
  font-family: var(--font-display);
  font-size: 1rem;
}
.process-number em {
  color: var(--color-accent);
  font-style: normal;
}
.process-step h3 {
  margin-bottom: .7rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 500;
}
.process-step .rich-text {
  font-size: .96rem;
}

/* Elfsight Google reviews */
.reviews-overlap {
  position: relative;
  z-index: 8;
  margin-top: clamp(-2.25rem, -3vw, -.75rem);
  background: #ececec;
  color: #181818;
}
.reviews-heading {
  text-align: center;
  margin-bottom: 2.25rem;
}
.reviews-heading .cms h2 {
  margin-inline: auto;
}
.reviews-heading .cms {
  max-width: none;
  margin-inline: auto;
}
.reviews-demo {
  display: grid;
  gap: 1.25rem;
}
.reviews-demo-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.5rem;
  background: #fff;
  border-radius: .8rem;
}
.reviews-demo-top strong {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}
.rating-line {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-top: .35rem;
}
.rating-line b {
  font-size: 1.35rem;
}
.stars {
  color: #ef6500;
  letter-spacing: .05em;
}
.reviews-demo-label {
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
  padding: .55rem .9rem;
  border-radius: .35rem;
  background: #ef6500;
  color: white;
  font-size: .75rem;
  font-weight: 750;
}
.review-cards {
  display: grid;
  gap: 1rem;
}
.review-card {
  min-width: 0;
  padding: 1.4rem;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 1.2rem;
}
.review-card strong,
.review-card .stars {
  display: block;
}
.review-card .stars {
  margin: .65rem 0;
}
.review-card p {
  margin: 0;
  color: #5d5d5d;
  line-height: 1.55;
}

@media (min-width: 700px) {
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .review-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .process-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-color-scheme: dark) {
  .process-overlap {
    background: #18211f;
    color: var(--color-text);
  }
  .reviews-overlap {
    background: #111715;
  }
  .reviews-heading {
    color: var(--color-text);
  }
  .reviews-demo-top,
  .review-card {
    color: #181818;
    background: #f7f7f7;
  }
  .brand-logo-footer {
    background-color: transparent;
  }
}


/* Fibo-sectie correctie
   - foto vult het volledige linkervak
   - label blijft onderin over de foto
   - knop staat netjes onder de tekst uitgelijnd
*/
.feature-overlap .feature-visual,
.feature .feature-visual {
  position: relative;
  min-height: clamp(32rem, 50vw, 45rem);
  overflow: hidden;
  background: #817f74;
}

.feature-overlap .feature-visual > img,
.feature .feature-visual > img,
.feature-cover-image {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  display: block;
  object-fit: cover !important;
  object-position: center center;
  z-index: 0;
}

.feature-overlap .feature-visual::before,
.feature-overlap .feature-visual::after,
.feature .feature-visual::before,
.feature .feature-visual::after {
  pointer-events: none;
}

.feature-overlap .feature-visual .visual-label,
.feature .feature-visual .visual-label {
  z-index: 3;
}

.feature-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.feature-content .rich-text {
  width: 100%;
  margin-bottom: 0;
}

.feature-button {
  align-self: flex-start;
  margin-top: 1.5rem;
}

@media (min-width: 700px) {
  .feature-grid {
    align-items: stretch;
  }

  .feature-overlap .feature-visual,
  .feature .feature-visual {
    min-height: 100%;
    height: 100%;
  }

  .feature-content {
    justify-content: center;
  }
}

@media (max-width: 699px) {
  .feature-overlap .feature-visual,
  .feature .feature-visual {
    min-height: 27rem;
    aspect-ratio: 4 / 5;
  }

  .feature-button {
    margin-top: 1.25rem;
  }
}


/* Fotoblokken correctie v9 */

/* Categorieën: geen overlap meer tussen de twee rechter kaarten */
.category-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 1rem !important;
  align-items: stretch !important;
}

.category-card {
  position: relative !important;
  display: block !important;
  min-height: 22rem !important;
  overflow: hidden !important;
  transform: none !important;
  margin: 0 !important;
}

.category-card-large {
  min-height: 30rem !important;
  transform: none !important;
}

.category-image {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
  transform: none !important;
}

.category-image img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center center !important;
  transform: none !important;
}

.category-card:hover .category-image img {
  transform: scale(1.035) !important;
  transition: transform 500ms cubic-bezier(.2,.7,.2,1);
}

.category-overlay {
  z-index: 3 !important;
}

/* =====================================================
   PROJECTEN
===================================================== */

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem 1.5rem;
    align-items: start;
}

/* Detailpagina: alle galerijfoto's strak uitlijnen */
.project-detail .project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.project-detail .project-card,
.project-detail .project-card-offset,
.project-detail .project-grid .project-card:nth-child(n) {
    margin-top: 0 !important;
    transform: none !important;
}

.project-card,
.project-card-offset {
    position: relative;
    margin-top: 0;
    transform: none;
}

.project-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    margin-bottom: 1rem;
    overflow: hidden;
    background: #d8d4cc;
}

.project-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    display: block;
    object-fit: cover;
    object-position: center center;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--color-muted);
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .11em;
}

.project-card h3 {
    margin: .5rem 0 0;
    font-size: 1.3rem;
    font-weight: 550;
}


/* Bekijk meer overlay */
.project-card-link--active .project-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background .3s ease;
    pointer-events: none;
}

.project-more {
    position: absolute;
    inset: 0;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
}

.project-more span {
    padding: .7rem 1.1rem;
    background: #fff;
    color: #111;
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
}

/* Alleen kaarten met een detailpagina */
@media (hover: hover) {

    .project-card-link--active:hover .project-image::after {
        background: rgba(0, 0, 0, .28);
    }

    .project-card-link--active:hover .project-more {
        opacity: 1;
    }

}

/* Keyboard */
.project-card-link--active:focus-visible .project-image::after {
    background: rgba(0, 0, 0, .28);
}

.project-card-link--active:focus-visible .project-more {
    opacity: 1;
}



/* =====================================================
   PROJECT DETAIL
===================================================== */

.project-detail {
    padding: clamp(3rem, 6vw, 6rem) 0;
}


/* Tekst links / foto rechts */
.project-detail-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: top;
}

.project-detail-content {
    max-width: 650px;
}

.project-detail-content .project-meta {
    justify-content: flex-start;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.project-detail-content h1 {
    margin: 0 0 1.5rem;
}

.project-detail-text {
    line-height: 1.8;
}

.project-detail-text p {
    margin: 0 0 1.25rem;
}

.project-detail-text p:last-child {
    margin-bottom: 0;
}


/* Hoofdfoto rechts */
.project-detail-main-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
background: var(--color-surface-soft);
}

.project-detail-main-image img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center center;
}


/* Dunne lijn */
.project-detail-divider {
    width: 100%;
    height: 1px;
    margin: clamp(3rem, 6vw, 5rem) 0;
    background: var(--color-line);
}


/* Galerij detailpagina */
.project-detail .project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.project-detail .project-card {
    display: block;
    margin: 0;
    text-decoration: none;
}

.project-detail .project-image {
    aspect-ratio: 4 / 5;
    margin-bottom: 0;
}

.project-detail .project-image img {
    transition: transform .4s ease;
}

@media (hover: hover) {

    .project-detail .project-card:hover .project-image img {
        transform: scale(1.035);
    }

}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 900px) {

    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-detail-intro {
        grid-template-columns: 1fr;
    }

    .project-detail-content {
        max-width: none;
    }

    .project-detail-main-image {
        aspect-ratio: 16 / 10;
    }

    .project-detail .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* =====================================================
   MOBIEL
===================================================== */

@media (max-width: 600px) {

    .project-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .project-detail {
        padding: 2.5rem 0;
    }

    .project-detail-intro {
        gap: 2rem;
    }

    .project-detail-main-image {
        aspect-ratio: 4 / 3;
    }

    .project-detail-divider {
        margin: 2.5rem 0;
    }

    .project-detail .project-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .project-detail .project-image {
        aspect-ratio: 4 / 3;
    }

}

@media (min-width: 700px) {
  .category-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr) !important;
    grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
    gap: 1rem !important;
  }

  .category-card-large {
    grid-row: 1 / span 2 !important;
    min-height: 38rem !important;
  }

  .category-card:not(.category-card-large) {
    min-height: 18.5rem !important;
  }

  .project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .project-card-offset {
    margin-top: 3.5rem !important;
  }
}

@media (min-width: 1000px) {
  .category-card-large {
    min-height: 42rem !important;
  }

  .category-card:not(.category-card-large) {
    min-height: 20.5rem !important;
  }

  .project-image {
    aspect-ratio: 4 / 5 !important;
  }
}


/* ==========================================================================
   Volgpagina template
   Smalle herobanner + 1-koloms en 2-koloms content-indeling voor subpagina's
   (gebruikt op alle pagina's behalve de homepage)
   ========================================================================== */

/* Smalle herobanner */
.subhero {
  position: relative;
  min-height: clamp(19rem, 30vw, 26rem);
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: var(--color-primary);
  color: var(--color-white);
}

.subhero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #12332f;
}

.subhero-media img,
.subhero-photo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  filter: brightness(.9);
}

.subhero-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 26, 24, .55) 0%, rgba(10, 26, 24, .2) 45%, rgba(10, 26, 24, 0) 75%);
}

.subhero-content {
  position: relative;
  z-index: 2;
  padding-block: 6.5rem 3rem;
}

.subhero-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin: 0 0 1.25rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: rgba(255,255,255,.7);
}
.subhero-breadcrumb a { color: rgba(255,255,255,.88); text-decoration: none; }
.subhero-breadcrumb a:hover { color: #fff; text-decoration: underline; }
.subhero-breadcrumb span[aria-hidden] { opacity: .5; }
.subhero-breadcrumb [aria-current] { color: #fff; }

.subhero h1 {
  max-width: 20ch;
  margin-bottom: 1rem;
  font-size: clamp(2.25rem, 4.6vw, 3.75rem);
}

.subhero-copy {
  max-width: 42rem;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: rgba(255,255,255,.82);
}

.subhero .button-row { margin-top: 1.75rem; }
.subhero .button-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.subhero .button-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }

@media (min-width: 1200px) {
 /* .subhero-content { padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2)); }*/
}

/* Content na de herobanner, licht overlappend zoals de rest van de site */
.page-content-overlap {
  position: relative;
  z-index: 2;
  margin-top: clamp(-2.5rem, -3.5vw, -1.25rem);
  padding-top: clamp(4.5rem, 7vw, 6.5rem);
  background: var(--color-surface);
}

/* 1-koloms indeling */
.page-single {
   margin-inline: auto;
}
.page-single > .rich-text { max-width: none; }
.page-single .rich-text h2,
.page-single .rich-text h3 { margin-top: 2.25rem; }

/* Uitgelichte afbeelding binnen de tekst */
.page-media {
  margin-block: 2.5rem;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-md);
}
.page-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.page-media-caption {
  margin-top: .75rem;
  color: var(--color-muted);
  font-size: .82rem;
}

/* Highlights / USP-rij, herbruikbaar in beide indelingen */
.page-highlights {
  display: grid;
  gap: 1rem;
  margin-block: 2.5rem;
  padding: 0;
  list-style: none;
}
.page-highlight {
  padding: 1.5rem;
  background: var(--color-surface-soft);
  border-radius: var(--radius-sm);
}
.page-highlight strong {
  display: block;
  margin-bottom: .35rem;
  font-size: 1rem;
}
.page-highlight p { margin: 0; color: var(--color-muted); font-size: .9rem; }

@media (min-width: 700px) {
  .page-highlights { grid-template-columns: repeat(3, 1fr); }
}

/* 2-koloms indeling: hoofdtekst + zijkolom */
.page-grid {
  display: grid;
  gap: 3rem;
  align-items: start;
}
.page-main .rich-text { max-width: 60ch; }
.page-aside { display: grid; gap: 1.5rem; }

.aside-card {
  padding: 1.75rem;
  background: var(--color-surface-soft);
  border-radius: var(--radius-md);
}
.aside-card h3 {
  margin-bottom: .75rem;
  font-size: 1.05rem;
}
.aside-card .rich-text { font-size: .92rem; }
.aside-card .opening-hours { margin: 1rem 0 0; max-width: none; }

.aside-card-dark {
  background: var(--color-primary);
  color: var(--color-white);
}
.aside-card-dark .rich-text { color: rgba(255,255,255,.75); }
.aside-card-dark h3 { color: #fff; }
.aside-card-dark .button { width: 100%; margin-top: .5rem; }

@media (min-width: 900px) {
  .page-grid { grid-template-columns: 1.7fr 1fr; }
  .page-aside { position: sticky; top: 6.5rem; align-self: start; }
}

@media (max-width: 699px) {
  .subhero-content { padding-block: 6rem 2.5rem; }
}
