/* =====================================================================
   Head Engineering – stylesheet
   ---------------------------------------------------------------------
   Opbouw van dit bestand (in dezelfde volgorde als de pagina):
     0. Instellingen: kleuren, lettertypes, schermbreedtes
     1. Lettertypes (font-face)
     2. Basis (body, tekst, links)
     3. Herbruikbare onderdelen (container, kopjes, knop, pictogrammen)
     4. Hero (openingsfoto)
     5. Menubalken (desktop en mobiel) + vastplakken bij scrollen
        5c. Uitschuifmenu voor telefoon en tablet
     6. Sectie "Over ons"
     7. Sectie "Diensten in het kort"
     8. Sectie "Toegevoegde waarde"
     9. Sectie "Advies"
    10. Sectie "Projecten" + vergrootweergave (lightbox)
    11. Sectie "Contact"
    12. Voettekst en "terug naar boven"-knop
    13. Tablet  (schermen van 778 t/m 989 pixels breed)
    14. Mobiel  (schermen tot en met 777 pixels breed)

   Schermbreedtes (breakpoints):
     desktop : 990px en breder
     tablet  : 778px – 989px
     mobiel  : 777px en smaller
   ===================================================================== */


/* ---------------------------------------------------------------------
   0. INSTELLINGEN
   Pas hier kleuren en lettertypes aan; ze worden overal hergebruikt.
   --------------------------------------------------------------------- */
:root {
  /* Kleuren */
  --color-blue:        #0376ea;   /* getallen, pictogrammen               */
  --color-blue-bright: #3b7eff;   /* kleine titels boven kopjes, knoppen  */
  --color-green:       #03d87d;   /* telefoonnummer, contactgegevens      */
  --color-navy:        #13286e;   /* achtergrond contactblok              */
  --color-tint:        rgba(3, 118, 234, 0.08); /* lichtblauwe vlakken   */
  --color-heading:     #000000;   /* kopteksten                           */
  --color-text:        #666666;   /* lopende tekst                        */
  --color-muted:       #999999;   /* links in de voettekst                */
  --color-white:       #ffffff;

  /* Lettertypes */
  --font-display: "Comfortaa", sans-serif;   /* titels en de meeste tekst */
  --font-ui:      "Manrope", sans-serif;     /* menu, kaarten, cijfers    */
  --font-base:    "Merriweather", Helvetica, Arial, Verdana, sans-serif;

  /* Maten */
  --container-width: 1200px;
}


/* ---------------------------------------------------------------------
   1. LETTERTYPES
   Alle lettertypes staan lokaal in de map /fonts (geen Google Fonts,
   dus geen gegevens naar derden).
   --------------------------------------------------------------------- */
@font-face {
  font-family: "Comfortaa";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/comfortaa-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Merriweather";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../fonts/merriweather-latin.woff2") format("woff2");
}

/* Pictogram-lettertypes (alleen de gebruikte tekens zitten erin) */
@font-face {
  font-family: "Feather Icons";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("../fonts/feather-icons.woff") format("woff");
}
@font-face {
  font-family: "Phone Icon";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("../fonts/phone-icon.woff") format("woff");
}
@font-face {
  font-family: "Font Awesome 5 Free";
  font-style: normal;
  font-weight: 900;
  font-display: block;
  src: url("../fonts/fontawesome-solid.woff2") format("woff2");
}
@font-face {
  font-family: "Font Awesome 5 Free";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("../fonts/fontawesome-regular.woff2") format("woff2");
}


/* ---------------------------------------------------------------------
   2. BASIS
   --------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color: var(--color-text);
}

body {
  margin: 0;
  background: var(--color-white);
  color: var(--color-text);
  font: 400 16px/24px var(--font-base);
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  color: var(--color-heading);
}

p {
  margin: 0 0 10px;
}

a {
  color: var(--color-muted);
  text-decoration: none;
}

a:hover,
a:focus,
a:active {
  outline: 0;
}

img {
  border: 0;
  vertical-align: middle;
}

/* Verborgen link voor toetsenbord- en schermlezergebruikers */
.skip-link {
  position: absolute;
  top: -10000px;
  left: -10000px;
  z-index: 100000;
  padding: 15px 23px 14px;
  background: #f1f1f1;
  color: #21759b;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.2);
}
.skip-link:focus {
  top: 5px;
  left: 5px;
}


/* ---------------------------------------------------------------------
   3. HERBRUIKBARE ONDERDELEN
   --------------------------------------------------------------------- */

/* Bij het klikken op een menu-item blijft er 70px ruimte boven deze
   secties (zelfde gedrag als de oorspronkelijke site) */
#over,
#waarde,
#projecten {
  scroll-margin-top: 70px;
}

/* Container: centreert de inhoud en begrenst de breedte */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
}

/* Sectiekop: kleine blauwe titel + groot kopje, gecentreerd */
.section-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px;
  text-align: center;
}

/* Kleine titel in hoofdletters boven een kopje (bijv. "WAARDE") */
.eyebrow {
  width: 100%;
  margin: 0;
  color: var(--color-blue-bright);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1em;
  text-align: center;
  text-transform: uppercase;
}
.eyebrow--large { font-size: 21px; }
.eyebrow--bold  { font-weight: 900; }
.eyebrow--light { color: var(--color-white); font-weight: 900; }

/* Groot sectiekopje */
.section-title {
  width: 900px;
  max-width: 100%;
  margin-top: 30px;
  color: var(--color-heading);
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 900;
  line-height: 1.3em;
  letter-spacing: -0.5px;
  text-align: center;
}
.section-title--values   { width: 700px; }
.section-title--projects { width: 723px; }

/* Blauwe knop ("Neem contact op") */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1px;
  padding: 12px 18px;
  border-radius: 3px;
  background: var(--color-blue-bright);
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1em;
  text-align: center;
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s, border-color 0.3s, transform 0.3s;
}
.button:hover,
.button:focus {
  color: var(--color-white);
}
.button--wide { min-width: 180px; }

/* Pictogrammen
   Een pictogram is een teken uit een pictogram-lettertype.
   Gebruik: <i class="icon icon--check"></i>                          */
.icon {
  position: relative;
  display: block;
  width: 1em;
  height: 1em;
  font-style: normal;
  font-weight: 400;
  font-variant: normal;
  line-height: 1em;
  text-align: center;
  text-transform: none;
  -webkit-font-smoothing: antialiased;
}
.icon::before {
  position: absolute;
  left: 50%;
  max-width: 100%;
  transform: translateX(-50%);
}

/* Feather-pictogrammen (lijntekeningen) */
.icon--check::before,
.icon--trending-up::before,
.icon--users::before,
.icon--map::before,
.icon--layers::before,
.icon--map-pin::before,
.icon--mail::before,
.icon--phone-call::before {
  font-family: "Feather Icons";
  font-weight: 400;
}
.icon--check::before       { content: "\e92b"; }
.icon--layers::before      { content: "\e987"; }
.icon--mail::before        { content: "\e992"; }
.icon--map::before         { content: "\e993"; }
.icon--map-pin::before     { content: "\e994"; }
.icon--phone-call::before  { content: "\e9b3"; }
.icon--trending-up::before { content: "\e9f4"; }
.icon--users::before       { content: "\ea05"; }

/* Telefoon-pictogram in de menubalk */
.icon--phone::before {
  font-family: "Phone Icon";
  content: "\e102";
}

/* Font Awesome-pictogrammen (gevulde vormen, op de waardekaarten) */
.icon--headset::before,
.icon--shipping-fast::before,
.icon--project-diagram::before,
.icon--people-arrows::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
}
.icon--lightbulb::before,
.icon--object-group::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 400;
}
.icon--headset::before         { content: "\f590"; }
.icon--lightbulb::before       { content: "\f0eb"; }
.icon--shipping-fast::before   { content: "\f48b"; }
.icon--object-group::before    { content: "\f247"; }
.icon--project-diagram::before { content: "\f542"; }
.icon--people-arrows::before   { content: "\e068"; }

/* Foto-vlak met blauwe kleurfilter (naast "Diensten" en "Advies") */
.photo-panel {
  position: relative;
  flex: 0 0 50%;
  width: 50%;
  min-height: 500px;
  background-position: center center;
  background-size: cover;
}
.photo-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--color-blue);
  opacity: 0.5;
  mix-blend-mode: overlay;
}
.photo-panel--office-1 { background-image: url("../img/kantoor-1.webp"); }
.photo-panel--office-2 { background-image: url("../img/kantoor-2.webp"); }


/* ---------------------------------------------------------------------
   4. HERO
   --------------------------------------------------------------------- */
.hero {
  position: relative;
  z-index: 2;
  background: url("../img/hero-buizen.webp") center center / cover no-repeat;
}

/* Donkerblauw kleurverloop over de foto */
.hero__overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(180deg, #000000 0%, #113edd 100%);
  opacity: 0.96;
  mix-blend-mode: overlay;
}

.hero__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding-bottom: 90px;
}

.hero__logo {
  width: 100%;
  padding: 13px 0 14px;
  text-align: center;
  animation: tada 1.25s;        /* logo "wiebelt" één keer bij het laden */
}
.hero__logo a {
  display: inline-block;
}
.hero__logo img {
  display: inline-block;
  width: 265px;
  max-width: 265%;
  height: auto;
  filter: brightness(106%) contrast(118%) saturate(139%);
}

.hero__title {
  width: 100%;
  margin-top: 60px;
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 80px;
  font-weight: 700;
  line-height: 1.2em;
  text-align: center;
}

.hero__subtitle {
  width: 100%;
  margin: 20px 0 0;
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.5em;
  text-align: center;
}

@keyframes tada {
  0%, 100%            { transform: scale3d(1, 1, 1); }
  10%, 20%            { transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg); }
  30%, 50%, 70%, 90%  { transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg); }
  40%, 60%, 80%       { transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__logo { animation: none; }
}


/* ---------------------------------------------------------------------
   5. MENUBALKEN
   De balken liggen over de onderrand van de hero (negatieve marge).
   js/main.js voegt de class "is-sticky" toe zodra de balk de bovenkant
   van het scherm raakt: de balk wordt dan zwart en blijft staan.
   --------------------------------------------------------------------- */
.sticky-bar {
  position: relative;
  z-index: 999;
  transition: background 0.3s, border 0.3s, border-radius 0.3s, box-shadow 0.3s;
}
.sticky-bar.is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  margin-top: 0;
  background-color: #000000;
}
.sticky-bar img {
  transition: min-height 0.3s, height 0.3s, width 0.3s, max-width 0.3s, opacity 0.3s;
}

/* Telefoonnummer met pictogram (in beide menubalken) */
.phone-link {
  display: flex;
  color: var(--color-green);
  font-family: var(--font-ui);
}
/* Omhulsel van het pictogram: mag smaller worden als er weinig ruimte is */
.phone-link__icon-wrap {
  display: flex;
  align-items: center;
  min-width: 0;
  overflow: hidden;
}
.phone-link__icon {
  display: flex;
  align-self: flex-end;
  align-items: center;
  justify-content: center;
  margin-right: 7px;
  padding: 0.5em;
  border-radius: 54% 54% 59%;
  color: var(--color-green);
  font-size: 20px;
  line-height: 1em;
  transition: 0.3s;
}
.phone-link__number {
  display: block;
  padding: 8px 0 10px;          /* zelfde ruimte als het origineel */
  color: var(--color-green);
  font-size: 17px;
  line-height: 24px;
  text-align: left;
}

/* --- 5a. Desktop-menubalk ------------------------------------------- */
.navbar {
  margin: -100px 0 20px;
  padding: 0 30px;
}
.navbar__inner {
  display: flex;
  align-items: stretch;
}

/* Logo links (15% van de breedte) */
.navbar__brand {
  display: flex;
  flex: 0 0 auto;
  width: 15%;
  min-width: 25px;
  align-items: center;
  margin-top: -9px;
  line-height: 0;
}
.navbar__logo {
  display: inline-block;
  line-height: 0;
}
.navbar__logo img {
  display: inline-block;
  width: 260px;
  max-width: 61%;
  height: auto;
  filter: brightness(170%);
}
.navbar.is-sticky .navbar__logo img {
  width: 142px;
  max-width: 62%;
}

/* Menu in het midden (73% van de breedte) */
.navbar__menu-area {
  display: flex;
  width: 73%;
  align-items: center;
  justify-content: center;
}
.navbar__menu {
  display: flex;
  flex: 1;
  justify-content: center;
  align-items: stretch;
  margin: 0 30px;
  padding: 0;
  list-style: none;
}
.navbar__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
}
.navbar__item:first-child { padding-left: 0; }
.navbar__item:last-child  { padding-right: 0; }

.navbar__link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px 0;
  color: var(--color-white);
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2em;
}
.navbar__link:hover,
.navbar__link:focus {
  color: var(--color-white);
}
/* Streepje onder een menu-item: groeit vanuit het midden */
.navbar__link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  margin: auto;
  background: transparent;
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.navbar__link:hover::after {
  width: 100%;
  background: var(--color-muted);
}
.navbar__item.is-active .navbar__link::after {
  width: 100%;
  background: var(--color-green);
}

/* Telefoonnummer rechts (11,3% van de breedte) */
.navbar__contact {
  display: flex;
  width: 11.332%;
  align-items: center;
  justify-content: flex-end;
  text-align: right;
}
.navbar__contact .phone-link {
  margin-bottom: 15px;
}

/* --- 5b. Mobiele menubalk (alleen zichtbaar op tablet en mobiel) ---- */
.mobile-bar {
  display: none;
  margin: -150px 0 0;
  padding: 0 20px;
}
.mobile-bar__inner {
  display: flex;
  align-items: center;
  min-height: 51px;
}
.mobile-bar__logo {
  display: block;
  flex: 0 1 auto;
  margin-top: -9px;
  line-height: 0;
}
.mobile-bar__logo img {
  display: inline-block;
  width: 102px;
  max-width: 120%;
  height: auto;
  filter: brightness(170%);
}
.mobile-bar .mobile-bar__logo img {
  width: 85px;
  max-width: 84%;
}
.mobile-bar__spacer {
  flex: 1 0 0;
  min-width: 25px;
  min-height: 1px;
}
.mobile-bar__contact {
  display: flex;
  flex: 1 0 0;
  flex-direction: column;
  align-items: center;
  min-width: 25px;
  padding-top: 5px;
}

/* Kleine variant van het telefoonnummer (mobiele balk) */
.phone-link--small {
  margin: -1px 0 11px;
  padding-top: 2px;
}
.phone-link--small .phone-link__icon {
  margin: 0 0 0 8px;
  padding: 0.9em;
  border-radius: 11%;
  font-size: 15px;
}
.phone-link--small .phone-link__number {
  color: #00ff00;
  font-size: 12px;
  text-align: right;
}


/* ---------------------------------------------------------------------
   6. OVER ONS
   --------------------------------------------------------------------- */
.about .container {
  padding: 90px 0;
}
.section-heading--about {
  margin-bottom: 30px;
}

.about__columns {
  display: flex;
}

/* Linkerkolom met tekst (55%) */
.about__text {
  width: 55%;
  padding: 30px;
}
.about__lead {
  margin-bottom: 30px;
  color: var(--color-heading);
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 500;
  line-height: 1.4em;
}
.about__body {
  font-family: var(--font-display);
}

/* Rechterkolom met vinkjes en knop (45%) */
.about__highlights {
  width: 45%;
  padding: 30px 30px 20px;
}

.checklist {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px 30px;
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
}
.checklist__item {
  display: flex;
  align-items: center;
}
.checklist__item .icon {
  flex: 0 0 auto;
  margin-right: 15px;
  color: var(--color-green);
  font-size: 24px;
}
.checklist__text {
  color: var(--color-heading);
  font-family: var(--font-ui);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6em;
}

.about__button {
  line-height: 0;
}

/* Kerncijfers (vier tellers naast elkaar) */
.stats {
  display: flex;
  margin-top: 20px;
  padding: 15px;
}
.stat {
  width: 25%;
  padding: 15px;
  text-align: center;
}
.stat__number {
  display: flex;
  margin: 0 0 15px;
  color: var(--color-blue);
  font-family: var(--font-ui);
  font-size: 50px;
  font-weight: 500;
  line-height: 1.1em;
}
/* Getal en "+" staan precies in het midden: het getal krijgt dezelfde
   ruimte links als het plusteken rechts */
.stat__number::before {
  content: "";
  flex-grow: 1;
}
.stat__suffix {
  flex-grow: 1;
  text-align: left;
}
.stat__label {
  width: 280px;
  max-width: 100%;
  margin: 0;
  color: var(--color-heading);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.6em;
  text-align: center;
}


/* ---------------------------------------------------------------------
   7. DIENSTEN IN HET KORT
   --------------------------------------------------------------------- */
.services {
  position: relative;
  z-index: 3;
  display: flex;
  background-color: var(--color-tint);
}
.services__content {
  display: flex;
  width: 50%;
  align-items: center;
  margin: 60px 0;
  padding: 0 30px;
}
.services__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  padding: 30px;
  list-style: none;
}
.service {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.service .icon {
  box-sizing: content-box;
  margin-bottom: 15px;
  padding: 5px;
  color: var(--color-blue);
  font-size: 32px;
}
.service__title {
  color: var(--color-heading);
  font-family: var(--font-ui);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4em;
}


/* ---------------------------------------------------------------------
   8. TOEGEVOEGDE WAARDE
   --------------------------------------------------------------------- */
.values .container {
  padding: 90px 0;
}
.values__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  margin-top: 60px;
  padding: 0 30px 30px;
}
.value-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.value-card__icon {
  display: inline-flex;
  margin-bottom: 20px;
  padding: 0.66em;
  border-radius: 50px;
  background: var(--color-green);
  color: var(--color-white);
  font-size: 32px;
}
.value-card__title {
  color: var(--color-heading);
  font-family: var(--font-ui);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.4em;
}
.value-card__text {
  margin: 15px 0 0;
  color: var(--color-text);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.7em;
}


/* ---------------------------------------------------------------------
   9. ADVIES
   --------------------------------------------------------------------- */
.advice {
  position: relative;
  z-index: 3;
  display: flex;
  background-color: var(--color-tint);
}
.advice__content {
  width: 50%;
  margin: 30px 0;
}
.advice__heading {
  max-width: 700px;
  margin: 0 auto;
  padding: 30px;
}
.advice__heading-wrap {
  padding: 0 30px;
}
.advice__body {
  padding: 10px 20px;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
}
.advice__list-title {
  margin-top: 44px;              /* witregel boven de lijst */
}
.advice__list-title strong {
  font-weight: 700;
}
.advice__list {
  margin: 0 0 10px 20px;
  padding: 0;
}
.advice__button {
  margin-left: 15px;
  padding: 10px;
  line-height: 0;
}


/* ---------------------------------------------------------------------
   10. PROJECTEN
   --------------------------------------------------------------------- */
.projects {
  position: relative;
  padding: 90px 0;
  background-color: var(--color-white);
}
.section-heading--projects {
  padding-bottom: 120px;     /* 30px kop-marge + 90px ruimte tot de foto's */
}
.projects__grid {
  display: flex;
}
.projects__grid--second-row {
  margin-top: 20px;
}

.project {
  width: 33.333%;
  margin: 0;
  padding: 10px;
  text-align: center;
}
.project__link {
  display: inline-block;
  line-height: 0;
}
.project__image {
  display: inline-block;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}
.project__title {
  width: 723px;
  max-width: 100%;
  margin-top: 10px;
  color: var(--color-heading);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3em;
  letter-spacing: -0.5px;
}

/* Vergrootweergave van een projectfoto (wordt door js/main.js gemaakt) */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.9);
}
.lightbox.is-open {
  display: flex;
}
.lightbox__image {
  width: auto;
  max-width: min(92vw, 1150px);
  height: auto;
  max-height: 86vh;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.lightbox__button {
  position: absolute;
  padding: 12px 18px;
  border: 0;
  background: none;
  color: var(--color-white);
  font: 300 44px/1 var(--font-ui);
  cursor: pointer;
  opacity: 0.8;
}
.lightbox__button:hover,
.lightbox__button:focus-visible {
  opacity: 1;
}
.lightbox__button--close { top: 10px; right: 10px; }
.lightbox__button--prev  { top: 50%; left: 10px;  transform: translateY(-50%); }
.lightbox__button--next  { top: 50%; right: 10px; transform: translateY(-50%); }


/* ---------------------------------------------------------------------
   11. CONTACT
   --------------------------------------------------------------------- */
.contact {
  position: relative;
  background-color: var(--color-navy);
}
.contact__inner {
  padding: 35px 10px 10px;
  text-align: center;
}
.contact__title {
  margin: 36px 0 50px;
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 400;
  line-height: 1em;
}
.contact__cards {
  display: flex;
  align-items: flex-start;
}
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 33.333%;
  padding: 10px;
}
.contact-card .icon {
  box-sizing: content-box;
  margin-bottom: 15px;
  padding: 5px;
  color: var(--color-blue);
  font-size: 32px;
}
/* Titel mag iets breder zijn dan de kaart, zodat een lang e-mailadres
   nooit wordt afgekapt; hij blijft netjes gecentreerd */
.contact-card__title {
  text-align: center;
}
.contact-card__title,
.contact-card__title a {
  color: var(--color-green);
  font-family: var(--font-ui);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.4em;
}
.contact-card__text {
  margin: 10px 0 0;
  color: var(--color-white);
  font-family: var(--font-ui);
  font-size: 15px;
}


/* ---------------------------------------------------------------------
   12. VOETTEKST EN "TERUG NAAR BOVEN"
   --------------------------------------------------------------------- */
.site-footer {
  padding: 10px;
  background-color: #000000;
  color: var(--color-white);
  font-size: 14px;
  text-align: center;
}

.to-top {
  position: fixed;
  right: 10px;
  bottom: 10px;
  z-index: -1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: 0.4s;
}
.to-top.is-visible {
  z-index: 109;
  opacity: 1;
}
.to-top:hover {
  background-color: rgba(0, 0, 0, 0.5);
}
.to-top svg {
  display: block;
  width: 24px;
  fill: var(--color-white);
}


/* --- 5c. Uitschuifmenu voor telefoon en tablet -----------------------
   De knop met drie streepjes staat links in de mobiele menubalk (5b).
   Die balk is op tablet en telefoon altijd zwart en vast bovenin.     */
.mobile-bar__menu-button,
.mobile-menu {
  display: none;
}

@media (max-width: 989px) {
  /* De mobiele balk staat altijd zwart en vast bovenin het scherm,
     ook boven op de foto met buizen. */
  .mobile-bar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    width: 100%;
    margin: 0;
    background-color: #000000;
  }

  /* Menuknop (drie streepjes) links in de mobiele balk */
  .mobile-bar__menu-button {
    display: block;
    flex: 0 0 auto;
    margin: -9px 12px 0 -6px;
    padding: 6px;
    color: #ffffff;
    background: none;
    border: 0;
    cursor: pointer;
  }
  .mobile-bar__menu-button svg {
    display: block;
    width: 26px;
    height: 30px;
    fill: currentColor;
  }
  /* Telefoonnummer op één regel houden naast de menuknop */
  .mobile-bar__contact {
    flex: 1 0 auto;
  }
  .mobile-bar .phone-link__number {
    white-space: nowrap;
  }

  /* Het uitschuifmenu (links) met donkere achtergrond erachter */
  .mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 300000;
    display: block;
    visibility: hidden;
    transition: visibility 0.5s;
  }
  .mobile-menu.is-open {
    visibility: visible;
  }
  .mobile-menu__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.83);
    opacity: 0;
    transition: opacity 0.5s;
  }
  .mobile-menu.is-open .mobile-menu__backdrop {
    opacity: 1;
  }
  .mobile-menu__panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 270px;
    height: 100%;
    overflow: auto;
    background-color: #f7f7f7;
    transform: translateX(-100%);
    transition: transform 0.5s;
  }
  .mobile-menu.is-open .mobile-menu__panel {
    transform: translateX(0);
  }
  /* Kruisje om te sluiten, rechtsboven in het menu */
  .mobile-menu__close {
    position: absolute;
    top: 0;
    right: 0;
    width: 42px;
    height: 30px;
    padding: 0 6px;
    color: #666666;
    background: none;
    border: 0;
    cursor: pointer;
  }
  .mobile-menu__close svg {
    display: block;
    width: 21px;
    height: 30px;
    margin: 0 auto;
    fill: currentColor;
  }
  .mobile-menu__list {
    margin: 45px 0 0;
    padding: 10px 0 120px;
    list-style: none;
  }
  .mobile-menu__link {
    display: block;
    padding: 10px 20px;
    color: #666666;
    font-family: var(--font-display);
    font-size: 16px;
    line-height: 1.5em;
    text-decoration: none;
  }
  .mobile-menu__item:hover {
    background-color: #666666;
  }
  .mobile-menu__item:hover .mobile-menu__link,
  .mobile-menu__link:focus {
    color: #ffffff;
  }

  /* Pagina niet laten meescrollen terwijl het menu open is */
  body.has-open-menu {
    overflow: hidden;
  }
}


/* ---------------------------------------------------------------------
   13. TABLET (778px t/m 989px) – en kleiner, tenzij hieronder anders
   --------------------------------------------------------------------- */
@media (max-width: 989px) {
  .container { max-width: 1024px; }

  /* Hero */
  .hero__content   { min-height: 90vh; padding-bottom: 60px; }
  .hero__logo img  { width: 163px; }
  .hero__title     { font-size: 66px; }
  .hero__subtitle  { max-width: 450px; font-size: 28px; }

  /* Menubalken: desktop-balk weg, mobiele balk zichtbaar */
  .navbar     { display: none; }
  .mobile-bar { display: block; }

  /* Kopjes */
  .section-title { font-size: 30px; }

  /* Over ons: kolommen onder elkaar, cijfers in twee rijen */
  .about__columns    { flex-wrap: wrap; }
  .about__text       { width: 100%; padding: 30px 30px 0; }
  .about__highlights { width: 100%; }
  .stats             { flex-wrap: wrap; }
  .stat              { width: 50%; }

  /* Diensten en Advies: foto onder of boven de tekst */
  .services,
  .advice               { flex-wrap: wrap; }
  .services__content,
  .advice__content      { width: 100%; }
  .photo-panel          { flex-basis: 100%; width: 100%; min-height: 400px; }

  /* Waarde: twee kaarten naast elkaar */
  .values__grid { grid-template-columns: repeat(2, 1fr); }

  /* Projecten */
  .project__title { font-size: 30px; }
}


/* ---------------------------------------------------------------------
   14. MOBIEL (tot en met 777px)
   --------------------------------------------------------------------- */
@media (max-width: 777px) {
  .container { max-width: 767px; }

  /* Hero */
  .hero__logo      { padding: 0; }
  .hero__logo img  { width: 121px; }
  .hero__title     { max-width: 300px; margin-top: 30px; font-size: 38px; }
  .hero__subtitle  { max-width: 300px; font-size: 20px; }

  .mobile-bar__logo img { width: 66px; }

  /* Kopjes */
  .eyebrow, .eyebrow--large { font-size: 16px; }
  .section-title            { font-size: 24px; }

  /* Over ons */
  .about__lead      { font-size: 20px; }
  .checklist__text  { font-size: 16px; }
  .about__button    { margin-bottom: 20px; }
  .about__button .button { width: 100%; }
  .stat__number     { font-size: 40px; }
  .stat__label      { font-size: 16px; }

  /* Diensten */
  .services__content { padding: 0; }
  .services__list    { grid-template-columns: 1fr; row-gap: 40px; }
  .photo-panel       { min-height: 250px; }

  /* Waarde */
  .values__grid      { grid-template-columns: 1fr; }
  .value-card__title { font-size: 20px; }

  /* Advies */
  .advice__heading-wrap { padding: 0; }
  .advice__button       { margin-bottom: 20px; }
  .advice__button .button { width: 100%; }

  /* Projecten: één foto per rij */
  .projects__grid               { flex-wrap: wrap; }
  .projects__grid--second-row   { margin-top: -9px; }
  .project                      { width: 100%; }
  .project__title               { font-size: 24px; }

  /* Contact: kaarten onder elkaar */
  .contact__title { font-size: 32px; }
  .contact__cards { flex-wrap: wrap; }
  .contact-card   { width: 100%; }
}
