/* ==========================================================================
   Kitbedrijf Hoekstra — stylesheet
   Brand colors extracted from the original site:
   navy #263d7b · cyan #09a2d6 · accent blue #2ea3f2 · dark navy #081830
   ========================================================================== */

:root {
  --color-navy: #263d7b;
  --color-navy-dark: #081830;
  --color-cyan: #09a2d6;
  --color-accent: #2ea3f2;
  --color-light-bg: #e9f4fa;
  --color-lighter-bg: #f6fbfd;
  --color-text: #333333;
  --color-text-muted: #666666;
  --color-white: #ffffff;
  --font-primary: 'Montserrat', 'Open Sans', Arial, sans-serif;
  --font-secondary: 'Raleway', 'Open Sans', Arial, sans-serif;
  --container-width: 1200px;
  --radius: 10px;
}

* { box-sizing: border-box; }
/* overflow-x: hidden on html/body is a well-known way to break position:sticky
   on mobile Safari (and some Android browsers) — hidden turns the element into
   a scroll container, which changes what "the viewport" means for sticky
   descendants like the header. overflow: clip prevents the same horizontal
   overflow without creating a scroll container, so sticky keeps working.
   The plain "hidden" line is a fallback for the handful of older browsers
   that don't understand clip yet; browsers that do simply override it below. */
html { scroll-behavior: smooth; overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-primary);
  color: var(--color-text);
  line-height: 1.65;
  background: var(--color-white);
  overflow-x: hidden;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  color: var(--color-navy);
  margin: 0 0 .6em;
  line-height: 1.25;
  font-weight: 700;
}
p { margin: 0 0 1em; }
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 30px;
  background: var(--color-accent);
  color: var(--color-white);
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.btn:hover { background: var(--color-navy); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  border: 2px solid var(--color-white);
  color: var(--color-white);
}
.btn-outline:hover { background: var(--color-white); color: var(--color-navy); }
.btn-secondary {
  background: var(--color-white);
  color: var(--color-navy);
  border: 2px solid var(--color-light-bg);
}
.btn-secondary:hover { background: var(--color-lighter-bg); color: var(--color-navy); transform: translateY(-2px); }

/* ---- Icons (inline SVG, currentColor) ---- */
.icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon svg { width: 100%; height: 100%; }

/* ---- Accessibility: skip link + focus states ---- */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  z-index: 3000;
  background: var(--color-navy);
  color: var(--color-white);
  padding: 12px 20px;
  border-radius: 0 0 8px 0;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
  top: 0;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* ==========================================================================
   Top utility bar
   ========================================================================== */
.top-bar {
  background: var(--color-navy-dark);
  color: rgba(255,255,255,.9);
}
.top-bar-inner {
  display: flex;
  gap: 30px;
  padding: 9px 24px;
  font-size: 13px;
}
.top-bar a { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,.9); }
.top-bar a:hover { color: var(--color-accent); }
.top-bar .icon { width: 15px; height: 15px; }

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.site-header {
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(6px);
  box-shadow: 0 2px 12px rgba(8, 24, 48, .06);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow .2s ease, padding .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 8px 24px rgba(8, 24, 48, .12); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  transition: padding .2s ease;
}
.site-header.is-scrolled .header-inner { padding-top: 10px; padding-bottom: 10px; }

/* Sections targeted by in-page anchors need breathing room under the sticky header */
#faq, #contact-form { scroll-margin-top: 110px; }
.logo img { height: 56px; width: auto; }

/* Scoped to the direct child only — an unscoped ".main-nav ul" also matched
   the nested ".dropdown" submenu and forced it into a horizontal flex row
   instead of a vertical dropdown list. */
.main-nav > ul { display: flex; align-items: center; gap: 34px; }
.main-nav a {
  font-weight: 600;
  font-size: 15px;
  color: var(--color-navy);
  padding: 8px 0;
  transition: color .2s ease;
}
.main-nav li.active > a,
.main-nav a:hover { color: var(--color-cyan); }

.main-nav li.has-dropdown { position: relative; }
.main-nav .dropdown {
  position: absolute;
  top: 100%;
  left: -20px;
  min-width: 230px;
  background: var(--color-white);
  box-shadow: 0 12px 30px rgba(8, 24, 48, .15);
  border-radius: var(--radius);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .2s ease;
}
.main-nav li.has-dropdown:hover .dropdown,
.main-nav li.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.main-nav .dropdown li { width: 100%; }
.main-nav .dropdown a {
  display: block;
  padding: 10px 24px;
  font-weight: 500;
}
.main-nav .dropdown a:hover { background: var(--color-lighter-bg); }

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.mobile-menu-toggle span {
  width: 26px;
  height: 3px;
  background: var(--color-navy);
  border-radius: 2px;
  transition: all .2s ease;
}
.mobile-menu-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.mobile-menu-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ==========================================================================
   Load-in keyframes (played once, immediately, for whatever is already
   above the fold — hero copy, breadcrumbs — as opposed to the scroll-
   triggered reveals further down for content the user scrolls to).
   ========================================================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(.94); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes popIn {
  0%   { opacity: 0; transform: scale(.7); }
  70%  { opacity: 1; transform: scale(1.06); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes kenBurns {
  from { transform: scale(1); }
  to   { transform: scale(1.09); }
}

/* ==========================================================================
   Page hero / CTA banner (dark navy gradient, optionally with a photo)
   ========================================================================== */
.page-hero {
  position: relative;
  overflow: hidden;
  color: var(--color-white);
  padding: 70px 0 50px;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(120deg, var(--color-navy) 0%, var(--color-cyan) 130%);
}
.page-hero.has-photo::before {
  background: linear-gradient(100deg, rgba(19,31,66,.95) 0%, rgba(38,61,123,.88) 38%, rgba(9,162,214,.4) 100%);
}
.page-hero.has-photo::after {
  content: '';
  position: absolute;
  inset: -20px;
  z-index: 0;
  background: var(--hero-bg-image) center/cover no-repeat;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero .eyebrow {
  color: var(--color-lighter-bg);
  font-weight: 500;
  font-size: 17px;
  margin-bottom: .3em;
}
.page-hero h1 {
  color: var(--color-white);
  font-size: 46px;
  margin-bottom: .3em;
}
.page-hero p.tagline { color: var(--color-lighter-bg); font-size: 18px; max-width: 560px; }

.js .page-hero .eyebrow { animation: fadeUp .7s ease .05s both; }
.js .page-hero h1 { animation: fadeUp .7s ease .2s both; }
.js .page-hero p.tagline { animation: fadeUp .7s ease .35s both; }
.js .page-hero .breadcrumbs { animation: fadeUp .7s ease .5s both; }
.js .page-hero.has-photo::after { animation: kenBurns 20s ease-in-out infinite alternate; }

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-size: 14px;
  color: rgba(255,255,255,.85);
}
.breadcrumbs a { color: rgba(255,255,255,.85); }
.breadcrumbs a:hover { color: var(--color-white); }
.breadcrumbs .sep { opacity: .6; }

/* Home hero — full-bleed photo with gradient overlay, like the original */
.home-hero {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
  background: #16244d;
  padding: 140px 0 170px;
}
.home-hero::after {
  content: '';
  position: absolute;
  inset: -20px;
  z-index: 0;
  background: url('/assets/images/2025/04/Kitbedrijf-wallpaper-kitten-van-badkamer-badrand-scaled-1.webp') center 30%/cover no-repeat;
}
.js .home-hero::after { animation: kenBurns 20s ease-in-out infinite alternate; }
.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg, rgba(19,31,66,.97) 0%, rgba(38,61,123,.92) 32%, rgba(9,162,214,.45) 68%, rgba(9,162,214,.18) 100%);
}
.home-hero .container { position: relative; z-index: 2; }
.home-hero .hero-eyebrow {
  color: var(--color-lighter-bg);
  font-weight: 500;
  font-size: 19px;
  margin-bottom: .3em;
}
.home-hero h1 {
  color: var(--color-white);
  font-size: 52px;
  max-width: 600px;
  margin-bottom: 0;
}
.js .home-hero .hero-eyebrow { animation: fadeUp .8s ease .15s both; }
.js .home-hero h1 { animation: fadeUp .8s ease .35s both; }

/* ==========================================================================
   Sections (generic)
   ========================================================================== */
section { padding: 70px 0; }
.section-alt { background: var(--color-lighter-bg); }
.section-title { text-align: center; max-width: 700px; margin: 0 auto 3em; }
.section-title h2 { font-size: 34px; }
.section-title p { color: var(--color-text-muted); font-size: 17px; }

/* ---- Service tiles row: floats up over the bottom edge of the hero photo ---- */
.service-tiles {
  position: relative;
  z-index: 2;
  margin-top: -90px;
  padding: 0 0 70px;
}
.service-tiles .service-card:nth-child(2) .card-body { background: var(--color-accent); }
.service-tiles .service-card:nth-child(2) h3,
.service-tiles .service-card:nth-child(2) p { color: var(--color-white); }
.service-tiles .service-card:nth-child(2) .icon { color: var(--color-white); }
.service-tiles .service-card:nth-child(2) .btn { background: var(--color-white); color: var(--color-navy); }
.service-tiles .service-card:nth-child(2) .btn:hover { background: var(--color-navy); color: var(--color-white); }

/* ---- Two-column image + text ---- */
.split-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split-section.reverse .container { direction: rtl; }
.split-section.reverse .container > * { direction: ltr; }
/* ---- Image shapes: four organic, flowing blob silhouettes (never square
   or sharp-cornered) so photo sections don't all read as the same repeated
   shape, plus a soft color backdrop that peeks out behind each photo for
   a bit of depth. ---- */
.split-image {
  position: relative;
}
.split-image::before {
  content: '';
  position: absolute;
  inset: -12px -22px -22px -12px;
  z-index: -1;
  border-radius: inherit;
  background: var(--shape-accent, var(--color-light-bg));
}
.split-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3.4;
  border-radius: inherit;
  box-shadow: 0 30px 60px rgba(8,24,48,.15);
}

.split-image,
.split-image.shape-blob-a { border-radius: 60% 40% 55% 45% / 55% 45% 60% 40%; --shape-accent: var(--color-light-bg); }
.split-image.shape-blob-b { border-radius: 38% 62% 63% 37% / 42% 45% 55% 58%; --shape-accent: #dcecf6; }
.split-image.shape-blob-c { border-radius: 71% 29% 44% 56% / 42% 41% 59% 58%; --shape-accent: #e4f0f8; }
.split-image.shape-blob-d { border-radius: 42% 58% 68% 32% / 60% 42% 58% 40%; --shape-accent: var(--color-light-bg); }
.split-text h2, .split-text h3 { font-size: 30px; }
.split-text .stats-row { display: flex; flex-wrap: wrap; gap: 24px 40px; margin-top: 30px; }

/* ---- Checklist / benefit blurbs ---- */
.blurb-list { margin-top: 26px; display: flex; flex-direction: column; gap: 18px; }
.blurb-item { display: flex; align-items: flex-start; gap: 16px; }
.blurb-item .icon {
  width: 40px; height: 40px; min-width: 40px;
  border-radius: 50%;
  background: var(--color-light-bg);
  color: var(--color-cyan);
  padding: 9px;
}
.blurb-item h4 { font-size: 17px; margin-bottom: .15em; }
.blurb-item p { font-size: 15px; color: var(--color-text-muted); margin: 0; }

/* ---- Icon card grid (used for USP / benefits sections) ---- */
.icon-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 20px;
}
.icon-card {
  border: 1px solid var(--color-light-bg);
  border-radius: var(--radius);
  padding: 34px 28px;
  text-align: center;
}
.icon-card .icon {
  width: 54px; height: 54px;
  margin: 0 auto 16px;
  color: var(--color-cyan);
}
.icon-card h4 { font-size: 18px; }
.icon-card p { color: var(--color-text-muted); font-size: 14.5px; margin: 0; }

.blurb-item h4 a { color: inherit; transition: color .15s ease; }
.blurb-item h4 a:hover { color: var(--color-cyan); }

/* ---- Stats / counters ---- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}
.stats-strip.cols-3 { grid-template-columns: repeat(3, 1fr); }
.stat-item .stat-number {
  font-size: 36px;
  font-weight: 700;
  color: var(--color-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 128px; height: 128px;
  padding: 0 10px;
  border-radius: 50%;
  border: 3px solid var(--color-light-bg);
  margin: 0 auto 16px;
  white-space: nowrap;
}
.stat-item.in-view .stat-number { border-color: var(--color-accent); transition: border-color .8s ease; }
.stat-item p { color: var(--color-text-muted); font-size: 15px; margin: 0; }
.stat-footnote { text-align: center; color: var(--color-text-muted); font-size: 13px; margin-top: 20px; }

/* ---- Service cards (Diensten overview) ---- */
.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.service-card {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(8,24,48,.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(8,24,48,.15); }
.service-card .card-body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.service-card .icon { width: 44px; height: 44px; color: var(--color-cyan); margin-bottom: 14px; }
.service-card h3 { font-size: 21px; }
.service-card p { color: var(--color-text-muted); font-size: 15px; flex: 1; }
.service-card .btn { align-self: flex-start; margin-top: 10px; }
.service-card .card-image { aspect-ratio: 16/10; overflow: hidden; }
.service-card .card-image img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Testimonials ---- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.testimonial-card {
  background: var(--color-white);
  border: 1px solid var(--color-light-bg);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 6px 20px rgba(8,24,48,.05);
}
.testimonial-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.testimonial-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--color-navy);
  color: var(--color-white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px;
  flex-shrink: 0;
}
.testimonial-name-wrap { flex: 1; min-width: 0; }
.testimonial-name-wrap strong { display: block; font-size: 14px; color: var(--color-navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.testimonial-google { width: 18px; height: 18px; flex-shrink: 0; }
.testimonial-stars { color: #f2b400; letter-spacing: 2px; margin-bottom: 10px; font-size: 15px; }
.testimonial-card p.review-text { font-size: 14px; color: var(--color-text); }
.testimonial-meta { font-size: 13px; color: var(--color-text-muted); margin-top: 14px; }
.testimonials-cta { text-align: center; margin-top: 34px; }

/* ---- FAQ accordion ---- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--color-light-bg);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  text-align: left;
  padding: 22px 4px;
  cursor: pointer;
  font-family: var(--font-primary);
  font-size: 17px;
  font-weight: 600;
  color: var(--color-navy);
}
.faq-question .toggle-icon { color: var(--color-accent); font-size: 22px; line-height: 1; flex-shrink: 0; transition: transform .2s ease; }
.faq-item.open .faq-question .toggle-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.faq-answer p { padding: 0 4px 22px; color: var(--color-text-muted); }
.faq-item.open .faq-answer { max-height: 300px; }

/* ---- CTA banner (text only, centered) ---- */
.cta-banner { background: var(--color-navy); color: var(--color-white); text-align: center; }
.cta-banner h2 { color: var(--color-white); font-size: 32px; }
.cta-banner p { color: rgba(255,255,255,.85); max-width: 700px; margin: 0 auto; }

/* ---- Area / service-area pill list (used on location landing pages) ---- */
.area-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.area-list span {
  display: inline-block;
  background: var(--color-lighter-bg);
  color: var(--color-navy);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--color-light-bg);
}

/* ---- Contact form ---- */
.contact-section .container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-info h2 { font-size: 30px; }
.contact-timeline { margin-top: 30px; display: flex; flex-direction: column; gap: 20px; }
.contact-timeline-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-timeline-item .icon { width: 36px; height: 36px; min-width: 36px; color: var(--color-cyan); background: var(--color-light-bg); border-radius: 50%; padding: 8px; }
.contact-timeline-item h4 { font-size: 16px; margin-bottom: 2px; }
.contact-timeline-item p { margin: 0; color: var(--color-text-muted); font-size: 15px; }

.contact-form-wrap { background: var(--color-lighter-bg); border-radius: var(--radius); padding: 36px; }
.contact-reply-note { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 26px; }
.contact-reply-note .icon { width: 30px; height: 30px; color: var(--color-cyan); flex-shrink: 0; }
.contact-reply-note p { margin: 0; font-size: 14px; color: var(--color-text-muted); }

.form-row { display: flex; gap: 16px; margin-bottom: 16px; }
.form-group { flex: 1; display: flex; flex-direction: column; }
.form-group.full { flex: 0 0 100%; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--color-navy); margin-bottom: 6px; }
.form-group input,
.form-group textarea {
  border: 1px solid #d7e6ee;
  border-radius: 6px;
  padding: 12px 14px;
  font-family: var(--font-primary);
  font-size: 15px;
  background: var(--color-white);
}
.form-group input:focus,
.form-group textarea:focus { outline: 2px solid var(--color-accent); border-color: var(--color-accent); }
.form-group textarea { resize: vertical; min-height: 120px; }
.captcha-row { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; font-size: 14px; color: var(--color-text-muted); }
.captcha-row input { width: 70px; }
.form-message { padding: 14px 18px; border-radius: 6px; margin-bottom: 20px; font-size: 14px; }
.form-message.success { background: #e3f7e9; color: #1e7c3c; }
.form-message.error { background: #fdeaea; color: #b3261e; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--color-navy-dark); color: var(--color-white); }
.footer-cta { background: linear-gradient(120deg, var(--color-navy) 0%, var(--color-cyan) 140%); }
.footer-cta-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding: 50px 0;
}
.footer-cta-inner h2 { color: var(--color-white); font-size: 28px; max-width: 480px; margin: 0; }
.footer-contact-blurbs { display: flex; flex-direction: column; gap: 12px; }
.footer-blurb { display: flex; align-items: center; gap: 12px; color: var(--color-white); font-weight: 600; }
.footer-blurb .icon { width: 22px; height: 22px; color: var(--color-white); }

.footer-columns {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 30px;
  padding: 50px 0 30px;
}
.footer-col-logo img { height: 48px; filter: brightness(0) invert(1); }
.footer-col h4 { color: var(--color-white); font-size: 16px; margin-bottom: 1em; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: rgba(255,255,255,.75); font-size: 14px; }
.footer-col a:hover { color: var(--color-accent); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; }
.footer-bottom p { margin: 0; text-align: center; font-size: 13px; color: rgba(255,255,255,.6); }
.footer-bottom a { color: rgba(255,255,255,.85); font-weight: 600; }

/* ---- Back to top ---- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-navy);
  color: var(--color-white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(8,24,48,.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .2s ease, transform .2s ease, background .2s ease;
  z-index: 900;
}
.back-to-top svg { width: 20px; height: 20px; }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--color-accent); }

/* ---- Scroll reveal (progressive enhancement, gated behind the .js class
   set by an inline script in <head> so content stays visible without JS).
   The motion is chosen per content type: photos scale in like a lens
   focusing, text slides in from the side it visually sits on next to its
   photo, numbers pop with a little bounce, and card/list groups reveal
   one item at a time instead of all at once. ---- */
.js .section-title,
.js .cta-banner .container {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}

.js .split-image {
  opacity: 0;
  transform: scale(.93);
  transition: opacity .8s ease, transform .8s ease;
}
.js .split-text {
  opacity: 0;
  transform: translateX(36px);
  transition: opacity .7s ease, transform .7s ease;
}
.js .split-section.reverse .split-text { transform: translateX(-36px); }

.js .contact-info {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity .7s ease, transform .7s ease;
}
.js .contact-form-wrap {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity .7s ease, transform .7s ease;
}

/* Card / list groups: reveal one item at a time rather than all at once */
.js .service-cards .service-card,
.js .icon-card-grid .icon-card,
.js .testimonial-grid .testimonial-card,
.js .blurb-list .blurb-item,
.js .faq-list .faq-item {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .55s ease, transform .55s ease;
}
.js .service-cards.is-visible .service-card,
.js .icon-card-grid.is-visible .icon-card,
.js .testimonial-grid.is-visible .testimonial-card,
.js .blurb-list.is-visible .blurb-item,
.js .faq-list.is-visible .faq-item {
  opacity: 1;
  transform: none;
}

/* Stat numbers pop in with a little bounce instead of sliding */
.js .stats-strip .stat-item {
  opacity: 0;
  transform: scale(.75);
  transition: opacity .5s ease, transform .5s cubic-bezier(.34, 1.56, .64, 1);
}
.js .stats-strip.is-visible .stat-item {
  opacity: 1;
  transform: none;
}

/* Stagger: each item in a revealed group animates slightly after the previous one.
   Scoped under the same ".js .<grid> .<item>" prefix as the base reveal rule above
   so these delays actually win the cascade instead of losing to its shorthand. */
.js .service-cards .service-card:nth-child(1), .js .icon-card-grid .icon-card:nth-child(1),
.js .testimonial-grid .testimonial-card:nth-child(1), .js .blurb-list .blurb-item:nth-child(1),
.js .faq-list .faq-item:nth-child(1), .js .stats-strip .stat-item:nth-child(1) { transition-delay: 0ms; }

.js .service-cards .service-card:nth-child(2), .js .icon-card-grid .icon-card:nth-child(2),
.js .testimonial-grid .testimonial-card:nth-child(2), .js .blurb-list .blurb-item:nth-child(2),
.js .faq-list .faq-item:nth-child(2), .js .stats-strip .stat-item:nth-child(2) { transition-delay: 90ms; }

.js .service-cards .service-card:nth-child(3), .js .icon-card-grid .icon-card:nth-child(3),
.js .testimonial-grid .testimonial-card:nth-child(3), .js .blurb-list .blurb-item:nth-child(3),
.js .faq-list .faq-item:nth-child(3), .js .stats-strip .stat-item:nth-child(3) { transition-delay: 180ms; }

.js .service-cards .service-card:nth-child(4), .js .icon-card-grid .icon-card:nth-child(4),
.js .testimonial-grid .testimonial-card:nth-child(4), .js .blurb-list .blurb-item:nth-child(4),
.js .faq-list .faq-item:nth-child(4), .js .stats-strip .stat-item:nth-child(4) { transition-delay: 270ms; }

.js .testimonial-grid .testimonial-card:nth-child(5), .js .faq-list .faq-item:nth-child(5) { transition-delay: 360ms; }
.js .testimonial-grid .testimonial-card:nth-child(6) { transition-delay: 450ms; }

.js .is-visible { opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  .js .section-title, .js .cta-banner .container,
  .js .split-image, .js .split-text,
  .js .contact-info, .js .contact-form-wrap,
  .js .service-cards .service-card, .js .icon-card-grid .icon-card,
  .js .testimonial-grid .testimonial-card, .js .blurb-list .blurb-item,
  .js .faq-list .faq-item, .js .stats-strip .stat-item,
  .js .home-hero h1, .js .home-hero .hero-eyebrow,
  .js .page-hero .eyebrow, .js .page-hero h1, .js .page-hero p.tagline, .js .page-hero .breadcrumbs {
    opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important;
  }
  .js .home-hero::after, .js .page-hero.has-photo::after { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .icon-card-grid, .service-cards, .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .split-section .container { grid-template-columns: 1fr; }
  .split-section.reverse .container { direction: ltr; }
  .split-image { order: -1; }
  .home-hero { text-align: center; padding: 110px 0 130px; }
  .home-hero h1 { margin-left: auto; margin-right: auto; }
  .service-tiles { margin-top: -60px; }
  .contact-section .container { grid-template-columns: 1fr; }
  .footer-columns { grid-template-columns: 1fr 1fr; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); gap: 30px 20px; }
}

@media (max-width: 700px) {
  /* Full-screen mobile menu overlay. Hidden state is double-guarded with
     both visibility and transform (not transform alone) so it can never
     leave a stray sliver of content visible/clickable off to one side. */
  .main-nav {
    position: fixed;
    inset: 0;
    z-index: 1500;
    background: var(--color-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 90px 24px 40px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-16px);
    transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
  }
  .main-nav.open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition: opacity .25s ease, transform .25s ease, visibility 0s linear 0s;
  }
  .main-nav > ul { flex-direction: column; align-items: center; gap: 10px; width: 100%; max-width: 360px; padding: 0; }
  .main-nav > ul > li { width: 100%; border-bottom: none; text-align: center; }

  /* Every top-level item is a wide, rounded button — not just bare text —
     so "Diensten" lines up visually with the rest instead of looking like
     an odd one out once it grows a +/- badge. */
  .main-nav > ul > li > a {
    position: relative;
    display: block;
    width: 100%;
    color: var(--color-white);
    font-size: 21px;
    font-weight: 700;
    padding: 16px 24px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    transition: background .2s ease;
  }
  .main-nav > ul > li.active > a { color: var(--color-accent); background: rgba(255,255,255,.14); }

  /* The +/- badge is positioned absolutely, entirely outside the flow that
     centers the "Diensten" label — so the icon never shifts the text
     off-center, regardless of its own width. Padding stays symmetric on
     purpose: adding padding-right "for" the badge would re-introduce the
     same off-center text it's meant to avoid. */
  .dropdown-indicator {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,.5);
    font-size: 18px;
    line-height: 1;
    color: var(--color-white);
    transition: background .2s ease, border-color .2s ease;
  }
  .dropdown-indicator::before { content: '+'; }
  .main-nav li.has-dropdown.open .dropdown-indicator {
    background: var(--color-accent);
    border-color: var(--color-accent);
  }
  .main-nav li.has-dropdown.open .dropdown-indicator::before { content: '\2212'; }

  .main-nav .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: none;
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 6px 0 14px;
  }
  .main-nav li.has-dropdown.open .dropdown { display: flex; }
  .main-nav .dropdown li { width: auto; }
  .main-nav .dropdown a { color: rgba(255,255,255,.8); font-size: 18px; font-weight: 500; padding: 8px 0; }
  .main-nav .dropdown a:hover { color: var(--color-white); background: none; }

  body.nav-open { overflow: hidden; }

  /* backdrop-filter on .site-header creates a new containing block for its
     position:fixed descendants (per spec, same as filter/transform), which
     was silently confining .main-nav's "full screen" overlay to the header's
     own ~130px height instead of the real viewport. Disabling it on mobile
     lets the overlay size itself against the viewport as intended. */
  .site-header { backdrop-filter: none; }

  .mobile-menu-toggle { display: flex; position: relative; z-index: 1600; }
  .mobile-menu-toggle.open span { background: var(--color-white); }

  /* Top bar: icons only on mobile, each with a proper ~44px tap target
     and enough breathing room between them to tap accurately. */
  .top-bar-text { display: none; }
  .top-bar-inner { gap: 8px; padding: 4px 18px; }
  .top-bar a {
    width: 44px;
    height: 44px;
    justify-content: center;
    border-radius: 50%;
    gap: 0;
  }
  .top-bar a:active { background: rgba(255,255,255,.12); }
  .top-bar .icon { width: 19px; height: 19px; }
  .home-hero h1, .page-hero h1 { font-size: 32px; }
  .service-tiles { margin-top: -40px; }
  .icon-card-grid, .service-cards, .testimonial-grid, .stats-strip, .stats-strip.cols-3 { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; gap: 0; }
  .footer-main { padding: 48px 24px; }
  .footer-columns { grid-template-columns: 1fr; }
  .footer-cta-inner { flex-direction: column; align-items: flex-start; padding:24px 24px;}
  section { padding: 50px 0; }

}
