/* ==========================================================================
   Bouwbedrijf Texel — main.css
   1-op-1 overgezet van de Joomla/Helix3-site naar Kirby.
   ========================================================================== */

@font-face {
  font-family: "Open Sans";
  src: url("../fonts/opensans-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("../fonts/opensans-latin-italic.woff2") format("woff2");
  font-weight: 300 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --yellow: #f5c801;
  --black: #000;
  --grey: #ccc;
  --grey-card: #ddd;
  --dark: #222;
  --white: #fff;
  --link: #1a8bba;
  --font: "Open Sans", Arial, sans-serif;
  --container: 1140px;
  --gutter: 15px;
  --header-h: 120px;
  --header-h-scrolled: 100px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 24px;
  font-weight: 300;
  color: var(--black);
  background: var(--yellow);
}
img, svg, picture { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
a { color: var(--link); text-decoration: none; transition: color .2s; }
a:hover { color: #177aa4; }
p { margin: 0 0 10px; font-weight: 600; }
h1, h2, h3, h4, h5, h6 { color: var(--black); margin: 20px 0 10px; line-height: 1.1; }
h1 { font-size: 33px; font-weight: 800; text-transform: uppercase; }
h2 { font-size: 23px; font-weight: 600; text-transform: uppercase; }
h3 { font-size: 16px; font-weight: 700; padding: 0 0 5px; margin: 30px 0 0; }
h4 { font-size: 18px; font-weight: 400; text-transform: uppercase; }
strong, b { font-weight: 800; }
ul { padding-left: 32px; }

:focus-visible { outline: 2px solid var(--black); outline-offset: 2px; }
.site-header :focus-visible, .site-footer :focus-visible, .btn:focus-visible, .label-bar a:focus-visible { outline-color: var(--yellow); }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.sr-only, .skip-link:not(:focus) {
  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: absolute; z-index: 1000; top: 8px; left: 8px; background: var(--yellow); color: var(--black); padding: 8px 12px; }
.icon { width: 1em; height: 1em; display: inline-block; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--black);
  height: var(--header-h);
}
.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: none;
  width: 90%;
  padding: 0;
}
@media (min-width: 1200px) { .site-header__inner { width: 1170px; padding: 0 15px; } }
.site-logo { display: block; flex: none; }
.site-logo img { width: 140px; height: auto; transition: width .3s var(--ease); }
.site-header { transition: height .3s var(--ease); }
.site-header.is-scrolled { height: var(--header-h-scrolled); }
.site-header.is-scrolled .site-logo img { width: 120px; }
@media (max-width: 991px) {
  :root { --header-h: 100px; --header-h-scrolled: 86px; }
  .site-logo img { width: 120px; }
  .site-header.is-scrolled .site-logo img { width: 105px; }
}

.menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.menu__item { position: relative; }
.menu__item > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 15px;
  line-height: 40px;
  font-size: 13px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--yellow);
}
.menu__item > a .icon { width: 10px; height: 10px; transition: transform .25s var(--ease); }
/* Onderstreping die van links naar rechts intekent (en bij weggaan naar rechts wegloopt) */
.menu__label { position: relative; }
.menu__label::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .1s ease-in; /* weggaan: vrijwel direct weg */
}
.menu__item > a:hover .menu__label::after,
.menu__item > a:focus-visible .menu__label::after { transform: scaleX(1); transform-origin: left center; transition: transform .6s var(--ease); /* hover: rustig intekenen */ }
.menu__item:last-child > a { padding-right: 0; }

/* Items met uitklapmenu: geen onderstreping (het uitklapmenu is de hover-feedback) */
.menu__item.has-children .menu__label::after { display: none; }

/* Facebook-icoon in het menu */
.menu__item.menu__item--social > a { padding-right: 0; height: 40px; display: inline-flex; align-items: center; color: var(--yellow); }
.menu__item.menu__item--social > a .icon { width: 22px; height: 22px; display: block; transition: transform .25s var(--ease); }
.menu__item.menu__item--social > a:hover .icon { transform: scale(1.15); }
@media (max-width: 1199px) { /* hamburger tot 1200px: volledig menu past daaronder niet */
  .menu__item.menu__item--social { margin-top: 14px; }
  .menu__item.menu__item--social > a { justify-content: center; }
  .menu__item.menu__item--social > a .icon { width: 30px; height: 30px; }
}

.submenu {
  list-style: none;
  margin: 0;
  padding: 20px;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--black);
  box-shadow: 0 3px 5px 0 rgb(0 0 0 / 20%);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.menu__item.has-children:hover > .submenu,
.menu__item.has-children:focus-within > .submenu { opacity: 1; visibility: visible; transform: none; }
.menu__item.has-children:hover > a .icon { transform: rotate(180deg); }
.submenu a {
  display: block;
  padding: 2px 8px;
  line-height: 24px;
  font-size: 14px;
  color: var(--yellow);
  transition: background-color .2s, color .2s;
}
.submenu a:hover, .submenu .is-active > a { background: var(--yellow); color: var(--black); }

.menu-toggle, .menu-close { display: none; }

@media (max-width: 1199px) { /* hamburger tot 1200px: volledig menu past daaronder niet */
  .site-header__inner { width: 100%; padding: 0 var(--gutter); }
  .menu-toggle {
    display: inline-grid; place-items: center;
    width: 44px; height: 44px; margin-right: -10px; /* ruim tikvlak, icoon lijnt uit met de rand */
    background: none; border: 0; color: var(--yellow);
    cursor: pointer; padding: 0;
  }
  .menu-toggle .icon { width: 24px; height: 24px; }
  .site-nav {
    position: fixed; inset: 0; z-index: 200;
    background: rgb(0 0 0 / .96);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: opacity .3s var(--ease), visibility .3s;
    overflow-y: auto;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; }
  .menu-close {
    display: block; position: absolute; top: 24px; right: 24px;
    background: none; border: 0; color: var(--yellow); cursor: pointer; padding: 8px;
  }
  .menu-close .icon { width: 26px; height: 26px; }
  .menu { flex-direction: column; text-align: center; gap: 6px; padding: 80px 0 40px; }
  .menu__item > a { font-size: 22px; font-weight: 600; color: var(--white); letter-spacing: 0; padding: 6px 0; line-height: 1.3; text-transform: none; }
  .menu__item > a .icon { display: none; }
  .submenu {
    position: static; opacity: 1; visibility: visible; transform: none;
    background: none; box-shadow: none; padding: 0 0 8px; min-width: 0;
  }
  .submenu a { font-size: 17px; color: var(--yellow); padding: 4px 0; }
  .submenu a:hover { background: none; color: var(--white); }
  body.menu-open { overflow: hidden; }
}

/* ---------- Header-slider ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--yellow);
  aspect-ratio: 1920 / 400;
}
.hero--high { aspect-ratio: 1920 / 520; }
.hero--low { aspect-ratio: 1920 / 250; }
.hero__track, .gallery__track {
  display: flex;
  height: 100%;
  transition: transform .8s cubic-bezier(.25, .46, .45, .94);
  will-change: transform;
}
.hero__slide { flex: 0 0 100%; height: 100%; }
.hero__slide picture, .hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero__arrow {
  position: absolute; top: 50%; translate: 0 -50%;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--yellow); color: var(--white);
  border: 0; border-radius: 3px; cursor: pointer;
  opacity: 0; transition: opacity .3s, transform .2s var(--ease);
}
.hero__arrow .icon { width: 14px; height: 22px; }
.hero:hover .hero__arrow, .hero__arrow:focus-visible { opacity: .9; }
.hero__arrow:hover { transform: scale(1.08); }
.hero__arrow--prev { left: 15px; }
.hero__arrow--next { right: 15px; }
.hero--low .hero__arrow { opacity: .9; }

/* ---------- Toolbar (Terug + iconen) ---------- */
.toolbar { background: var(--yellow); }
.toolbar__inner { display: flex; align-items: flex-start; }
/* Op pagina's met de foto-kolom springt die 15px in: Terug-knop lijnt daarmee uit */
@media (min-width: 992px) { .toolbar:has(+ .page-body .layout-side) .toolbar__inner { padding-left: 30px; } }

/* Terug-knop: zelfde stijl als de "Lees meer"-knoppen, pijl beweegt naar links */
.btn-back {
  display: inline-flex; align-items: center; gap: 14px;
  margin: 20px 0 0;
  padding: 10px 20px 10px 16px;
  border: 0;
  border-radius: 4px;
  background: var(--black);
  color: var(--yellow);
  font: 600 14px/20px var(--font);
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 1px 2px rgb(0 0 0 / .15);
  transition: background-color .25s, color .25s, transform .25s var(--ease), box-shadow .25s;
}
.btn-back .icon { width: 9px; height: 14px; transition: transform .25s var(--ease); }
.btn-back:hover, .btn-back:focus-visible { background: var(--dark); color: var(--yellow); transform: translateY(-1px); box-shadow: 0 6px 14px rgb(0 0 0 / .18); }
.btn-back:hover .icon { transform: translateX(-4px); }
.btn-back:active { transform: none; box-shadow: 0 1px 2px rgb(0 0 0 / .15); }

/* ---------- Secties ---------- */
.section--yellow { background: var(--yellow); }
.section--grey { background: var(--grey); }
.features { padding: 50px 0; }
.services { padding: 50px 0; }
.page-body { padding: 60px 0 60px; }
.toolbar + .page-body { padding-top: 35px; } /* onder de Terug-knop iets minder */
@media (max-width: 767px) { .page-body { padding-top: 40px; } }

.grid { display: grid; gap: 30px; }
@media (min-width: 768px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Knop ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 10px 16px 10px 20px;
  border-radius: 4px;
  background: var(--black);
  color: var(--yellow);
  font: 600 14px/20px var(--font);
  letter-spacing: .06em;
  text-transform: uppercase;
  box-shadow: 0 1px 2px rgb(0 0 0 / .15);
  transition: background-color .25s, color .25s, transform .25s var(--ease), box-shadow .25s;
}
.btn .icon { width: 9px; height: 14px; transition: transform .25s var(--ease); }
.btn:hover, .btn:focus-visible { background: var(--dark); color: var(--yellow); transform: translateY(-1px); box-shadow: 0 6px 14px rgb(0 0 0 / .18); }
.btn:hover .icon { transform: translateX(4px); }
.btn:active { transform: none; box-shadow: 0 1px 2px rgb(0 0 0 / .15); }

/* ---------- Vloeiende foto-zoom bij hover (eigen GPU-laag, alleen transform) ---------- */
.card__media, .project-tile, .project-teaser__media, .person__photo { overflow: hidden; }
.person:hover .person__photo img { transform: translate3d(0, 0, 0) scale(1.04) rotate(.02deg); }
/* rotate(.02deg) = onzichtbaar, maar dwingt subpixel-rendering af: voorkomt het
   'trillen' in stapjes van 1px tijdens het schalen in Firefox (macOS). */
.card__media img, .project-tile img, .project-teaser__media img, .person__photo img {
  transform: translate3d(0, 0, 0) scale(1) rotate(.02deg);
  transform-origin: center;
  backface-visibility: hidden;
  will-change: transform;
  transition: transform .7s cubic-bezier(.45, 0, .25, 1);
}

/* ---------- Kaarten (homepage) ---------- */
.card { display: flex; flex-direction: column; }
.card__media { display: block; overflow: hidden; }
.card__media img { width: 100%; height: auto; }
.card:hover .card__media img { transform: translate3d(0, 0, 0) scale(1.05) rotate(.02deg); }
.card__title { margin: 20px 0 10px; font-size: 23px; }
.card__text { margin: 0 0 30px; }
.card__footer { margin-top: auto; padding-bottom: 5px; }
.features .card__footer { margin-top: 0; }

.services .card { background: var(--grey-card); padding-bottom: 0; box-shadow: 0 1px 2px rgb(0 0 0 / .06); }
/* Subtiele glans op het tekstvlak */
.services .card__body {
  padding: 0 22px 45px;
  background: linear-gradient(160deg, rgb(255 255 255 / .55) 0%, rgb(255 255 255 / .2) 35%, rgb(255 255 255 / 0) 70%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .7);
}
.services .card__title { margin-top: 20px; }
.services .card__footer { text-align: center; margin-bottom: -20px; position: relative; }

/* ---------- Video met zigzag ---------- */
.video-section { padding: 25px 0 75px; }
.zigzag-box { position: relative; background: var(--white); padding: 100px 50px; }
.zigzag { position: absolute; left: 0; width: 100%; height: 50px; fill: var(--yellow); }
.zigzag--top { top: -1px; }
.zigzag--bottom { bottom: -1px; transform: rotate(180deg); }
.video-section__grid { display: grid; gap: 30px; align-items: center; }
@media (min-width: 992px) { .video-section__grid { grid-template-columns: 1fr 2fr; gap: 80px; padding: 0 50px; } }
.video-section__text h2 { margin-top: 0; font-size: 23px; line-height: 28px; }
.video { position: relative; aspect-ratio: 16 / 9; background: var(--black); overflow: hidden; }
.video__poster, .video picture, .video img { width: 100%; height: 100%; object-fit: cover; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__play {
  position: absolute; inset: 0; margin: auto; width: 68px; height: 48px;
  background: none; border: 0; padding: 0; cursor: pointer;
  transition: transform .2s var(--ease);
}
.video__play .icon { width: 68px; height: 48px; }
.video__play:hover { transform: scale(1.1); }
.video__note { position: absolute; left: 10px; bottom: 6px; margin: 0; font-size: 11px; color: var(--white); text-shadow: 0 0 4px #000; font-weight: 400; }
.video.is-playing .video__play, .video.is-playing .video__note { display: none; }
@media (max-width: 767px) { .zigzag-box { padding: 70px 20px; } .zigzag { height: 30px; } }

/* ---------- Tekstpagina (afbeelding + zwart blok links) ---------- */
.layout-side { display: grid; gap: 30px; }
@media (min-width: 992px) {
  .layout-side { grid-template-columns: 1fr 3fr; padding: 0 15px; }
}
/* Linkerkolom schuift mee tijdens scrollen (alleen desktop, binnen de gele sectie) */
@media (min-width: 992px) {
  .layout-side > .side {
    position: sticky;
    top: calc(var(--header-h-scrolled) + 24px);
    align-self: start;
  }
}
/* Optie D "strak met accent": foto en titelblok sluiten aan, geel lijntje bovenin */
.side__image { margin-bottom: 0; }
.side__image img { width: 100%; }
.title-block {
  background: var(--black);
  box-shadow: inset 0 4px 0 var(--yellow);
  padding: 42px 14px 38px; /* 4px extra boven i.v.m. het gele lijntje */
  margin-bottom: 15px;
  text-align: center;
}
.title-block h1, .title-block p {
  margin: 0;
  color: var(--yellow);
  font-size: 25px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  hyphens: manual;          /* woorden nooit afbreken */
  overflow-wrap: normal;
  text-wrap: balance;       /* regels netjes verdeeld */
}
.title-block--category { margin-top: 0; padding: 27px 14px 23px; text-align: center; }
.title-block--category p { font-size: 15px; letter-spacing: .14em; }
/* letter-spacing komt ook ná de laatste letter: vak naar rechts verlengen zodat gecentreerde tekst echt in het midden staat */
.title-block h1, .title-block p { margin-right: -.12em; }
.title-block--category p { margin-right: -.14em; }
.title-block--category a { color: var(--yellow); }
.title-block--category a:hover { color: var(--white); }

.content { min-width: 0; }
@media (min-width: 992px) { .content { margin-right: 25%; } .content--wide { margin-right: 0; } }
.content--full { margin-right: 0; }

/* Tekstblok — optie B "rustiger lezen" */
.text { font-size: 15px; line-height: 27px; }
.text p { margin: 0 0 14px; font-weight: 500; }
.text strong, .text b { font-weight: 700; }
.text h1 { font-size: 30px; line-height: 1.15; font-weight: 700; margin: 0 0 22px; }
.text h2 { font-size: 27px; line-height: 1.15; font-weight: 700; padding: 28px 0 12px; margin: 0; }
.text > h2:first-child { padding-top: 0; margin-top: 4px; }
/* Kort zwart accentstreepje onder de paginakop (optie C), alleen bovenaan tekstpagina's */
.content.text > h1:first-child::after,
.content.text > h2:first-child::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  margin-top: 14px;
  background: var(--black);
}
.content.text > h1:first-child, .content.text > h2:first-child { padding-bottom: 18px; margin-bottom: 0; }
.text h3 { font-size: 18px; line-height: 1.3; font-weight: 700; text-transform: none; margin: 28px 0 4px; padding: 0; }
.text h3 + p, .text h3 + div > p:first-child { margin-top: 0; }
.text a {
  color: var(--black);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: text-decoration-color .2s, color .2s;
}
.text a:hover { color: var(--black); text-decoration-color: rgb(0 0 0 / .35); }
/* Twee tekstblokken direct na elkaar = aparte alinea-groepen: extra ruimte ertussen */
.text-block + .text-block { margin-top: 32px; }
/* Uitgelichte tekst: licht glanzend kader met zwart accent links */
.text-highlight {
  margin: 32px 0 14px;
  max-width: 680px;
  padding: 22px 26px 10px;
  border-left: 4px solid var(--black);
  border-radius: 0;
  background: linear-gradient(160deg, rgb(255 255 255 / .5) 0%, rgb(255 255 255 / .22) 60%, rgb(255 255 255 / .14) 100%);
  box-shadow: 0 2px 10px rgb(0 0 0 / .06), inset 0 1px 0 rgb(255 255 255 / .6);
}
.text-highlight p { margin: 0 0 12px; }
.text-highlight p:first-child { font-weight: 700; font-size: 16px; }

/* Contactgegevens-blok: 2 kolommen met iconen */
.contact-details { display: grid; gap: 18px 64px; margin: 6px 0 14px; align-items: center; } /* linkerkolom verticaal gecentreerd t.o.v. rechts */
@media (min-width: 576px) { .contact-details { grid-template-columns: repeat(2, max-content); } }
.contact-details p { margin: 0; }
.contact-details__name { margin-bottom: 0 !important; }
.text .contact-details__list { list-style: none; margin: 0; padding: 0; }
.contact-details__list li { font-weight: 500; }
.text .contact-details__list a { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; }
.contact-details__address { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.contact-details .icon { width: 16px; height: 16px; flex: none; }
.contact-details__list .icon { transition: transform .25s var(--ease); }
.contact-details__list a:hover .icon { transform: scale(1.15); }
.text figure { margin: 22px 0; }
.text figure img { width: 100%; }
.text ul { margin: 0 0 14px; }
.text li { font-weight: 500; }
.text li p { margin: 0; }
@media (max-width: 767px) {
  .text h2 { font-size: 23px; }
  .text h1 { font-size: 26px; }
}

/* ---------- Team ---------- */
.page-title { font-size: 33px; font-weight: 800; margin: 0 0 60px; padding-left: 15px; }
.page-title--overview { font-size: 27px; line-height: 1.15; font-weight: 700; padding-left: 0; margin: 10px 0 40px; }
.page-title--overview::after { content: ""; display: block; width: 40px; height: 3px; margin-top: 14px; background: var(--black); }
/* TEAM-kop in dezelfde stijl als de koppen op de tekstpagina's (optie B + accentstreepje) */
.template-team .page-title { font-size: 27px; line-height: 1.15; font-weight: 700; margin-bottom: 40px; }
.template-team .page-title::after { content: ""; display: block; width: 40px; height: 3px; margin-top: 14px; background: var(--black); }
@media (max-width: 767px) { .template-team .page-title { font-size: 23px; margin-bottom: 28px; } }
.team-grid { list-style: none; margin: 0; padding: 0 15px; display: grid; gap: 30px; }
@media (min-width: 576px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
/* <picture> moet het vaste fotokader vullen, anders blijft er een randje over */
.person__photo picture, .project-tile picture, .project-teaser__media picture { width: 100%; height: 100%; }
.person { margin-bottom: 30px; }
/* Foto en naambalk sluiten aan (zelfde stijl als het titelblok, optie D) */
.person__photo { aspect-ratio: 580 / 356; overflow: hidden; margin-bottom: 0; }
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person__name {
  margin: 0;
  background: var(--black);
  box-shadow: inset 0 3px 0 var(--yellow);
  color: var(--yellow);
  padding: 13px 14px 11px;
  font-size: 15px;
  font-weight: 600;
  line-height: 22px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.person__role {
  margin: 0;
  padding: 12px 14px 0;
  font-size: 12px;
  line-height: 18px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgb(0 0 0 / .65);
}

/* ---------- Projectenoverzicht ---------- */
.project-group { margin-bottom: 30px; }
/* Categoriebalk: zelfde stijl als de naambalken op de teampagina */
.label-bar {
  display: block;
  max-width: 320px;
  margin: 30px 0 15px;
  padding: 12px 14px 10px;
  background: var(--black);
  box-shadow: inset 0 3px 0 var(--yellow);
  color: var(--yellow);
  font-size: 15px;
  font-weight: 600;
  line-height: 22px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.label-bar a { color: var(--yellow); }
.label-bar a:hover { color: var(--white); }
.project-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 30px; }
@media (min-width: 576px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .project-grid { grid-template-columns: repeat(3, 1fr); } }
.project-tile { display: block; aspect-ratio: 580 / 360; overflow: hidden; background: rgb(0 0 0 / .08); }
.project-tile img { width: 100%; height: 100%; object-fit: cover; }
.project-tile:hover img { transform: translate3d(0, 0, 0) scale(1.05) rotate(.02deg); }

/* Glazen naamlabel op projectfoto's: verschijnt bij hover */
.project-tile { position: relative; isolation: isolate; }
.project-tile picture { position: relative; z-index: 0; }
.project-tile__label { z-index: 2; } /* altijd boven de (zoomende) foto, ook in Firefox */
.project-tile__label {
  position: absolute;
  left: 12px; right: 12px; bottom: 12px;
  padding: 10px 14px;
  border-radius: 6px;
  background: rgb(0 0 0 / .38);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  backdrop-filter: blur(10px) saturate(140%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .25);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .02em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s var(--ease), transform .45s var(--ease);
  pointer-events: none;
}
.project-tile:hover .project-tile__label,
.project-tile:focus-visible .project-tile__label { opacity: 1; transform: translateY(0); }
/* Touchscreens (geen hover): naam altijd tonen */
@media (hover: none) { .project-tile__label { opacity: 1; transform: none; } }

/* ---------- Project-detail ---------- */
.gallery { position: relative; overflow: hidden; background: rgb(0 0 0 / .06); }
.gallery__slide { flex: 0 0 100%; }
.gallery__slide picture, .gallery__slide img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.gallery__arrow {
  position: absolute; top: 50%; translate: 0 -50%;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgb(245 200 1 / .75); color: rgb(0 0 0 / .45);
  border: 0; cursor: pointer;
  transition: background-color .2s, transform .2s var(--ease);
}
.gallery__arrow .icon { width: 12px; height: 18px; }
.gallery__arrow:hover { background: var(--yellow); color: var(--black); transform: scale(1.08); }
.gallery__arrow--prev { left: 20px; }
.gallery__arrow--next { right: 20px; }
.project-text { padding: 50px 8.333% 30px; }

/* ---------- Projecten-carrousel (grijs) ---------- */
.projects-strip { background: var(--grey); padding: 70px 0; }
.carousel { position: relative; }
/* ruimte boven/onder zodat de schaduw van de foto's niet wordt afgesneden */
.carousel__viewport { overflow: hidden; padding: 6px 0 18px; margin: -6px 0 -18px; }
.carousel__track {
  list-style: none; margin: 0 -15px; padding: 0;
  display: flex;
  transition: transform .65s cubic-bezier(.45, 0, .25, 1);
}
.carousel__item { flex: 0 0 100%; padding: 0 15px; }
@media (min-width: 768px) { .carousel__item { flex-basis: 50%; } }
@media (min-width: 992px) { .carousel__item { flex-basis: calc(100% / 3); } }
.project-teaser { display: block; color: var(--black); }
.project-teaser:hover { color: var(--black); }
.project-teaser__media {
  display: block; aspect-ratio: 352 / 218; overflow: hidden;
  border-radius: 6px;
  isolation: isolate;
  box-shadow: 0 2px 6px rgb(0 0 0 / .08);
  transition: box-shadow .4s var(--ease);
}
.project-teaser:hover .project-teaser__media { box-shadow: 0 10px 24px rgb(0 0 0 / .16); }
.project-teaser__media img { width: 100%; height: 100%; object-fit: cover; }
.project-teaser:hover .project-teaser__media img { transform: translate3d(0, 0, 0) scale(1.05) rotate(.02deg); }
/* Onderschrift: kleine categorie + strakke titel */
.project-teaser__caption { display: block; margin-top: 16px; }
.project-teaser__category {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgb(0 0 0 / .5);
}
.project-teaser__title { display: block; font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: -.005em; color: var(--black); }

.carousel__arrow {
  position: absolute; top: 36%; translate: 0 -50%; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgb(255 255 255 / .55); border: 0; color: var(--black); cursor: pointer;
  box-shadow: 0 2px 6px rgb(0 0 0 / .08);
  transition: background-color .25s, color .25s, transform .25s var(--ease), opacity .25s, box-shadow .25s;
}
.carousel__arrow .icon { width: 11px; height: 18px; }
.carousel__arrow--prev { left: -66px; }
.carousel__arrow--next { right: -66px; }
.carousel__arrow--prev .icon { margin-left: -2px; }
.carousel__arrow--next .icon { margin-right: -2px; }
.carousel__arrow:hover, .carousel__arrow:focus-visible { background: var(--black); color: var(--yellow); box-shadow: 0 6px 14px rgb(0 0 0 / .18); }
.carousel__arrow--prev:hover { transform: translateX(-2px); }
.carousel__arrow--next:hover { transform: translateX(2px); }
.carousel__arrow[disabled] { opacity: .35; cursor: default; transform: none; background: rgb(255 255 255 / .35); color: var(--black); box-shadow: none; }
@media (max-width: 1300px) {
  .carousel { padding: 0 54px; }
  .carousel__arrow--prev { left: 0; }
  .carousel__arrow--next { right: 0; }
}
/* Dot-navigatie: alleen op mobiel, pijlen daar verborgen */
.carousel__dots { display: none; }
@media (max-width: 767px) {
  .carousel { padding: 0; }
  .carousel__arrow { display: none; }
  .carousel__dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; margin-top: 18px; }
  .carousel__dot {
    width: 22px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer;
    display: grid; place-items: center;
  }
  .carousel__dot::before {
    content: ""; width: 8px; height: 8px; border-radius: 4px;
    background: rgb(0 0 0 / .25);
    transition: width .3s var(--ease), background-color .3s;
  }
  .carousel__dot.is-active { width: 34px; }
  .carousel__dot.is-active::before { width: 22px; background: var(--yellow); box-shadow: 0 0 0 1px rgb(0 0 0 / .12); }
  .carousel__dot:focus-visible { outline: 2px solid var(--black); outline-offset: 0; border-radius: 6px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--yellow); padding: 50px 0 30px; }
/* Logo (verticaal gecentreerd) + groep met 3 tekstkolommen (bovenkant gelijk) */
.site-footer__cols { display: grid; gap: 20px; }
.site-footer__info { display: grid; gap: 20px; align-items: start; }
@media (min-width: 768px) { .site-footer__info { grid-template-columns: repeat(3, 1fr); gap: 30px; } }
@media (min-width: 992px) { .site-footer__cols { grid-template-columns: 1fr 3fr; gap: 30px; } }
.site-footer p { color: var(--yellow); font-size: 15px; font-weight: 600; margin: 0 0 10px; }
.site-footer a { color: var(--yellow); }
.site-footer a:hover { color: var(--white); }
.site-footer__cols { align-items: center; }
.site-footer__col p:last-child { margin-bottom: 0; }
.site-footer__logo { display: block; width: fit-content; line-height: 0; }
.site-footer__logo img { width: 200px; height: auto; transition: transform .25s var(--ease); }
@media (max-width: 767px) { .site-footer__logo img { width: 180px; } }
.site-footer__logo:hover img { transform: scale(1.04); }

/* Facebook-icoon in de footer */
/* Kolom 4: Facebook-icoon gecentreerd onder de tekst; het blok zelf blijft links uitgelijnd */
.site-footer__col--legal { display: flex; flex-direction: column; align-items: center; width: fit-content; }
.site-footer__social { display: inline-block; margin-top: 10px; color: var(--yellow); }
.site-footer__social .icon { width: 26px; height: 26px; transition: transform .25s var(--ease); }
.site-footer__social:hover .icon { transform: scale(1.12); }

/* Contactgegevens met iconen */
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { font-size: 15px; font-weight: 600; line-height: 24px; }
.contact-list a { display: inline-flex; align-items: center; gap: 10px; }
.contact-list .icon { width: 15px; height: 15px; flex: none; transition: transform .25s var(--ease); }
.contact-list a:hover .icon { transform: scale(1.15); }

/* Mobiel: footer gecentreerd */
@media (max-width: 767px) {
  .site-footer__cols, .site-footer__info { justify-items: center; text-align: center; }
  .site-footer__logo { margin: 0 auto; }
  .contact-list a { justify-content: center; }
  .copyright__part { display: block; }
  .copyright__sep { display: none; }
}

/* Onderregel: copyright + Webjongens-credit */
.site-footer__credits { display: flex; flex-direction: column; align-items: center; gap: .6rem; margin-top: 40px; text-align: center; }
.site-footer__credits p { margin: 0; }
.site-footer__credits a { color: #ccc; }
.site-footer__credits a:hover { color: var(--yellow); }

/* Webjongens-credit met typewriter */
.credit { --credit-heart: var(--yellow);
  display: inline-flex; align-items: center; gap: .4rem; margin: 0 !important; white-space: nowrap; font-size: 15px; font-weight: 400 !important; }
.site-footer .credit__link { display: inline-flex; align-items: center; gap: .35rem; color: #fff; text-decoration: none; letter-spacing: .02em; }
.credit__link strong { font-weight: 700; }
.site-footer .credit__link:hover { color: #fff; }
.credit__link:hover span { text-decoration: underline; text-underline-offset: .2em; }
.credit__link:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }
.credit__heart { width: 1.1rem; height: 1.1rem; fill: var(--credit-heart); transition: transform 200ms cubic-bezier(.16, 1, .3, 1); }
.credit__link:hover .credit__heart { transform: scale(1.2); }
.credit__typed { display: inline-flex; align-items: center; gap: .4rem; min-width: 5em; color: rgb(255 255 255 / .72); }
.credit__cursor { display: inline-block; width: 2px; height: 1.1em; margin-left: 1px; background: currentColor; animation: credit-blink 1s step-end infinite; }
@keyframes credit-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .credit__cursor { animation: none; } .credit__heart { transition: none; } }

/* ---------- Mobiel ---------- */
@media (max-width: 767px) {
  .hero, .hero--high { aspect-ratio: 16 / 7; }
  .hero--low { aspect-ratio: 16 / 5; }
  .page-title { padding-left: 0; margin-bottom: 30px; }
  .title-block { padding: 32px 12px 28px; }
  .title-block--category { padding: 21px 12px 17px; }
  .project-teaser__title { font-size: 17px; }
  .projects-strip { padding: 40px 0; }
}
