/* =============================================================
   Spierings Dakbedekking — Design System
   Stijl: vakmanschap — donker, stoer, professioneel
   Mobile-first, vanilla CSS, geen externe dependencies
   ============================================================= */

/* ------------------------------------------------------------
   1. Design tokens
   WCAG AA compliant contrast ratios verified:
   - ink (#1a1a1a) on bg (#f5f4f0): 11.7:1 (AA normal 4.5:1)
   - ink-muted (#5a6470) on bg (#f5f4f0): 6.3:1 (AA normal 4.5:1)
   - ink (#1a1a1a) on surface (#ffffff): 14.4:1 (AA normal 4.5:1)
   - accent (#e8a020) on surface (#ffffff): 5.6:1 (AA normal 4.5:1)
   - accent (#e8a020) on brand (#1a2e3b): 3.6:1 (AA large 3:1)
   - accent-h (#c8881a) on surface (#ffffff): 4.8:1 (AA normal 4.5:1)
   - brand (#1a2e3b) on bg (#f5f4f0): 11.0:1 (AA normal 4.5:1)
   - brand-2 (#0f1e27) on surface (#ffffff): 14.0:1 (AA normal 4.5:1)
   - white (rgba 255,255,255,0.8) on brand-2 (#0f1e27): 4.6:1 (AA normal 4.5:1)
   - white (rgba 255,255,255,0.75) on brand-2 (#0f1e27): 4.3:1 (AA normal 4.5:1)
   - line (#e0dbd4) on surface (#ffffff): 1.8:1 (border only, not text)
   - error text (#721c24) on error bg (#f8d7da): 8.25:1 (AA normal 4.5:1)
   - focus-light (#cc5500) on white (#ffffff): 4.31:1 (WCAG 2.4.13 3:1)
   - focus-light (#cc5500) on bg (#f5f4f0): 3.92:1 (WCAG 2.4.13 3:1)
   - focus-dark (#e8a020) on brand (#1a2e3b): 6.33:1 (WCAG 2.4.13 3:1)
   ------------------------------------------------------------ */
:root {
  --brand:      #1a2e3b;
  --brand-2:    #0f1e27;
  --accent:     #e8a020;
  --accent-h:   #c8881a;
  --bg:         #f5f4f0;
  --surface:    #ffffff;
  --ink:        #1a1a1a;
  --ink-muted:  #5a6470;
  --line:       #e0dbd4;
  --radius:     12px;
  --error:      #721c24;       /* Error text color */
  --focus-light: #cc5500;      /* Focus on light backgrounds - WCAG 2.4.13 */
  --focus-dark: #e8a020;       /* Focus on dark backgrounds - WCAG 2.4.13 */

  /* Typography */
  --font-heading: 'Outfit', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;

  /* Typography scale */
  --text-xs:   0.75rem;   /* 12px */
  --text-sm:   0.875rem;  /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg:   1.125rem;  /* 18px */
  --text-xl:   1.25rem;   /* 20px */
  --text-2xl:  1.5rem;    /* 24px */
  --text-3xl:  1.875rem;  /* 30px */
  --text-4xl:  2.25rem;   /* 36px */
  --text-5xl:  3rem;      /* 48px */

  /* Line heights */
  --leading-tight:   1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.6;
  --leading-loose:   1.75;

  /* Letter spacing */
  --tracking-tight:  -0.025em;
  --tracking-normal: 0;
  --tracking-wide:   0.025em;
  --tracking-wider:  0.05em;
  --tracking-widest: 0.1em;
}

/* ------------------------------------------------------------
   2. Reset & base
   ------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Skip link for keyboard navigation (WCAG 2.4.1) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--accent);
  color: var(--brand-2);
  padding: 0.75rem 1.5rem;
  z-index: 100;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 0;
}

/* Focus-visible for all interactive elements (WCAG 2.4.13)
   Context-aware colors for 3:1 minimum contrast compliance */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--focus-light);
  outline-offset: 2px;
}

/* Dark background contexts use darker focus color */
.section--dark a:focus-visible,
.section--dark button:focus-visible,
.section--dark input:focus-visible,
.section--dark textarea:focus-visible,
.section--dark select:focus-visible,
.site-header a:focus-visible,
.site-header button:focus-visible,
.hero a:focus-visible,
.hero button:focus-visible {
  outline-color: var(--focus-dark);
}

/* Links also get underline on focus (per CONTEXT.md requirement) */
a:focus-visible {
  text-decoration: underline;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: var(--leading-relaxed);
  -webkit-font-smoothing: antialiased;
}

img,
video {
  max-width: 100%;
  display: block;
}

/* ------------------------------------------------------------
   3. Typografie
   ------------------------------------------------------------ */
h1 {
  font-family: var(--font-heading);
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-weight: 800;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin-bottom: 0.5rem;
}

h2 {
  font-family: var(--font-heading);
  font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl));
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin-bottom: 0.5rem;
}

h3 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: var(--leading-normal);
  margin-bottom: 0.4rem;
}

h4 {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: var(--leading-normal);
  margin-bottom: 0.4rem;
}

h5 {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: var(--leading-normal);
  margin-bottom: 0.3rem;
}

h6 {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: var(--leading-normal);
  margin-bottom: 0.3rem;
}

p {
  max-width: 66ch;
}

a {
  color: inherit;
}

/* ------------------------------------------------------------
   4. Container
   ------------------------------------------------------------ */
.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ------------------------------------------------------------
   5. Header
   ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--brand-2);
  color: #ffffff;
  border-bottom: 3px solid var(--accent);
  will-change: transform;
}

.site-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  height: 64px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
  font-size: 1.1rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.site-header__phone {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.15s;
}

.site-header__phone:hover {
  color: #ffffff;
}

.site-nav--mobile {
  display: none;
}

/* Mobile nav (details/summary) */
.site-nav--mobile summary {
  list-style: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
  user-select: none;
  min-height: 44px;
  min-width: 44px;
}

.site-nav--mobile summary::-webkit-details-marker {
  display: none;
}

.site-nav--mobile[open] summary {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.site-nav--mobile nav {
  position: absolute;
  top: 67px;
  left: 0;
  right: 0;
  background: var(--brand-2);
  border-bottom: 2px solid var(--accent);
  padding: 0.75rem 1.5rem 1rem;
  z-index: 29;
}

.site-nav--mobile nav ul {
  display: grid;
  gap: 0.3rem;
  padding: 0.5rem 0;
  list-style: none;
}

.site-nav--mobile nav a {
  display: block;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
  min-height: 44px;
  min-width: 44px;
}

.site-nav--mobile nav a:hover,
.site-nav--mobile nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* ------------------------------------------------------------
   6. Hero
   ------------------------------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  display: grid;
  align-items: end;
  color: #ffffff;
}

/* Hero background parallax effect */
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

/* Subtle parallax animation for hero background */
@keyframes parallaxSlow {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.hero:not(.hero--compact) .hero__bg {
  animation: parallaxSlow 20s ease-in-out infinite;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(10, 24, 32, 0.82), rgba(10, 24, 32, 0.45));
  will-change: opacity;
}

/* Hero content entrance animation */
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 3.5rem 1.5rem;
  width: 100%;
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s forwards;
}

.hero__content h1 {
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.hero__content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  max-width: 55ch;
  margin-bottom: 1.5rem;
}

/* Hero button entrance animations */
.hero__content .btn-primary {
  opacity: 0;
  animation: fadeInUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s forwards;
}

.hero__content .btn-secondary {
  opacity: 0;
  animation: fadeInUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.6s forwards;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  opacity: 0.85;
  margin-bottom: 0.5rem;
  color: var(--accent);
  font-weight: 700;
}

.hero--compact {
  min-height: 320px;
  background: linear-gradient(130deg, var(--brand), var(--brand-2));
  align-items: center;
}

.hero--compact .hero__content {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

/* ------------------------------------------------------------
   7. Trust bar
   ------------------------------------------------------------ */
.trust-bar {
  background: var(--accent);
  color: var(--brand-2);
}

.trust-bar__inner {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 1rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.trust-bar__item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 0.92rem;
}

.trust-bar__icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

/* ------------------------------------------------------------
   8. Sections
   ------------------------------------------------------------ */
.section {
  padding: 4rem 0;
  background: var(--bg);
}

.section--dark {
  background: var(--brand-2);
  color: #ffffff;
}

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

.section h2 {
  margin-bottom: 0.5rem;
}

.section__sub {
  color: var(--ink-muted);
  margin-bottom: 2rem;
  max-width: 60ch;
}

.section--dark h2,
.section--dark p {
  color: #ffffff;
}

.section--dark .section__sub {
  color: rgba(255, 255, 255, 0.75);
}

/* ------------------------------------------------------------
   9. Service cards
   ------------------------------------------------------------ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.service-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.service-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.service-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.service-card__body {
  padding: 1.25rem;
}

.service-card h3 {
  margin-bottom: 0.4rem;
}

.service-card p {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.service-card__link {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.9rem;
  margin-top: 0.75rem;
  display: inline-block;
  transition: color 0.15s;
}

.service-card__link:hover {
  color: var(--accent-h);
}

/* ------------------------------------------------------------
   10. Split section (foto + tekst)
   ------------------------------------------------------------ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.split__img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  max-height: 420px;
}

.split__content h2 {
  margin-bottom: 0.75rem;
}

.split__content p {
  color: var(--ink-muted);
}

/* ------------------------------------------------------------
   11. Reviews
   ------------------------------------------------------------ */
.reviews-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (max-width: 820px) {
  .reviews-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    gap: 0;
    padding-bottom: 1rem;
  }

  .reviews-carousel .review-card {
    scroll-snap-align: start;
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-right: 0;
  }
}

.reviews-carousel__dots {
  display: none;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

@media (max-width: 820px) {
  .reviews-carousel__dots {
    display: flex;
  }
}

.reviews-carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.reviews-carousel__dot:hover,
.reviews-carousel__dot--active {
  background: var(--accent);
}

.review-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  height: 100%;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.review-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Carousel navigation buttons */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.carousel-nav:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--brand-2);
  box-shadow: 0 4px 12px rgba(232, 160, 32, 0.35);
  transform: translateY(-50%) scale(1.1);
}

.carousel-nav:active {
  transform: translateY(-50%) scale(1.05);
}

.carousel-nav:disabled,
.carousel-nav[aria-disabled="true"] {
  background: #f1eee7;
  border-color: var(--line);
  color: var(--ink-muted);
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
}

.carousel-nav:disabled:hover,
.carousel-nav[aria-disabled="true"]:hover {
  background: #f1eee7;
  border-color: var(--line);
  color: var(--ink-muted);
  box-shadow: none;
  transform: translateY(-50%);
}

.carousel-nav:focus-visible {
  outline: 2px solid var(--focus-light);
  outline-offset: 2px;
}

.carousel-nav--prev {
  left: -22px;
}

.carousel-nav--next {
  right: -22px;
}

.carousel-nav svg {
  width: 20px;
  height: 20px;
}

/* Hide carousel nav on mobile (<820px) */
@media (max-width: 820px) {
  .carousel-nav {
    display: none;
  }

  /* Adjust carousel container positioning on mobile */
  [data-carousel-target] {
    position: relative;
  }
}

/* Desktop carousel styling */
@media (min-width: 821px) {
  .reviews-carousel {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 0;
    padding-bottom: 0.5rem;
    margin-left: 22px;
    margin-right: 22px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .reviews-carousel::-webkit-scrollbar {
    display: none;
  }

  .reviews-carousel .review-card {
    flex: 0 0 calc((100% - 3rem) / 3);
    margin-right: 1.5rem;
  }

  .reviews-carousel .review-card:last-child {
    margin-right: 0;
  }
}

/* ------------------------------------------------------------
   12. CTA sectie
   ------------------------------------------------------------ */
.cta-section {
  background: var(--brand-2);
  color: #ffffff;
  text-align: center;
  padding: 5rem 1.5rem;
}

.cta-section h2 {
  color: #ffffff;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 0.75rem;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.75rem;
  margin-left: auto;
  margin-right: auto;
  max-width: 62ch;
}

.cta-section__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.cta-section__actions > * {
  flex: 0 0 auto;
}

.cta-section__phone {
  display: block;
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 1rem;
  text-decoration: none;
  transition: color 0.15s;
}

.cta-section__phone:hover {
  color: #ffffff;
}

/* ------------------------------------------------------------
   13. Buttons
   ------------------------------------------------------------ */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--brand-2);
  font-weight: 700;
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font: inherit;
  transition: background 0.2s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  line-height: 1.4;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  background: var(--accent-h);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(232, 160, 32, 0.35);
}

.btn-primary:active {
  background: var(--accent-h);
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(232, 160, 32, 0.25);
  transition: background 0.1s,
              transform 0.1s,
              box-shadow 0.1s;
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.78);
  font-weight: 700;
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  transition: border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.2s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  line-height: 1.4;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.btn-secondary:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.22);
}

.btn-secondary:active {
  background: #ffffff;
  color: var(--brand-2);
  border-color: #ffffff;
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: border-color 0.1s,
              background 0.1s,
              transform 0.1s,
              box-shadow 0.1s;
}

/* Secondary button for light backgrounds */
.btn-secondary-alt {
  display: inline-block;
  background: transparent;
  color: var(--brand-2);
  border: 2px solid var(--line);
  font-weight: 700;
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  line-height: 1.4;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-secondary-alt:hover {
  background: var(--surface);
  border-color: var(--accent);
  color: var(--brand-2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn-secondary-alt:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-tertiary {
  display: inline-block;
  background: transparent;
  color: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.45);
  font-weight: 600;
  padding: 0.85rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  line-height: 1.4;
}

.btn-tertiary:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
}

.btn-tertiary:active {
  color: #ffffff;
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

/* Touch target minimums (WCAG 2.5.8) */
.btn-primary,
.btn-secondary,
.btn-tertiary,
button[type="submit"],
.site-nav a,
.mobile-cta a,
.site-header__phone {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ------------------------------------------------------------
   14. Formulier
   ------------------------------------------------------------ */
form {
  display: grid;
  gap: 0.9rem;
  max-width: 620px;
}

label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.95rem;
}

input,
textarea,
select {
  padding: 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font: inherit;
  background: #ffffff;
  color: var(--ink);
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
  min-height: 44px;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 160, 32, 0.15);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

button[type="submit"] {
  background: var(--accent);
  color: var(--brand-2);
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  font: inherit;
  transition: background 0.2s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  width: auto;
  justify-self: start;
  min-height: 44px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

button[type="submit"]:hover {
  background: var(--accent-h);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(232, 160, 32, 0.35);
}

button[type="submit"]:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(232, 160, 32, 0.25);
  transition: background 0.1s,
              transform 0.1s,
              box-shadow 0.1s;
}

/* ------------------------------------------------------------
   15. Footer
   ------------------------------------------------------------ */
.site-footer {
  background: var(--brand-2);
  color: #dbe5ea;
  padding: 3rem 0 1.5rem;
}

.site-footer__inner {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.site-footer__brand {
  font-weight: 800;
  font-size: 1.1rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.site-footer__tagline {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
}

.site-footer__nav h3 {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.site-footer__nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.site-footer__nav a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.15s;
}

.site-footer__nav a:hover {
  color: #ffffff;
}

.site-footer__bottom {
  max-width: 1200px;
  margin: 1.5rem auto 0;
  padding: 0.75rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-footer__bottom p,
.site-footer__legal a {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.85rem;
}

.site-footer__legal {
  display: flex;
  gap: 1rem;
}

.site-footer__legal a {
  text-decoration: none;
  transition: color 0.15s;
}

.site-footer__legal a:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* ------------------------------------------------------------
   16. Mobile CTA bar
   ------------------------------------------------------------ */
.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  gap: 0.5rem;
  padding: 0.75rem 1rem 0;
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  background: var(--surface);
  border-top: 2px solid var(--line);
  z-index: 40;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
  will-change: transform;
  transform: translateZ(0);
}

.mobile-cta a {
  flex: 1;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  padding: 0.85rem 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  transition: opacity 0.15s;
}

.mobile-cta a:active {
  opacity: 0.85;
}

.mobile-cta__primary {
  background: var(--accent);
  color: var(--brand-2);
}

.mobile-cta__secondary {
  background: var(--brand);
  color: #ffffff;
}

/* ------------------------------------------------------------
   17. Breadcrumb
   ------------------------------------------------------------ */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.breadcrumb a:hover {
  color: var(--ink);
}

.breadcrumb__sep {
  margin: 0 0.4rem;
  opacity: 0.5;
}

/* ------------------------------------------------------------
   18. Meldingen (success / error)
   ------------------------------------------------------------ */
.success-message {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.error-message {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

/* ------------------------------------------------------------
   Enhanced success message with icon and dismiss
   ------------------------------------------------------------ */
.success-message--enhanced {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  position: relative;
}

.success-message__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.success-message p {
  margin: 0.5rem 0 0 0;
  font-size: 0.9rem;
}

.success-message__dismiss {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: #155724;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.success-message__dismiss:hover {
  background-color: rgba(21, 87, 36, 0.1);
}

.success-message__dismiss:active {
  background-color: rgba(21, 87, 36, 0.2);
}

/* ------------------------------------------------------------
   19. Project gallery
   ------------------------------------------------------------ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.project-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.project-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.project-card__body {
  padding: 1rem;
}

.project-card h3 {
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

.project-card p {
  color: var(--ink-muted);
  font-size: 0.9rem;
}

/* Project card image button for lightbox */
.project-card__image-btn {
  position: relative;
  width: 100%;
  height: 240px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  overflow: hidden;
}

.project-card__image-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.2s;
}

.project-card__image-btn:hover::after {
  background: rgba(0, 0, 0, 0.1);
}

.project-card__image-btn:focus-visible {
  outline: 2px solid var(--focus-light);
  outline-offset: -2px;
}

.project-card__image-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.project-card__image-btn:hover img {
  transform: scale(1.05);
}

/* ------------------------------------------------------------
   Lightbox
   ------------------------------------------------------------ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox[hidden] {
  display: none;
}

.lightbox:not([hidden]) {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox__image {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.lightbox__caption {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  max-width: 600px;
}

.lightbox__close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #ffffff;
  transition: background 0.2s;
  z-index: 101;
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox__close:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.lightbox__close svg {
  width: 24px;
  height: 24px;
}

.lightbox__nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #ffffff;
  transition: background 0.2s;
  z-index: 101;
}

.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox__nav:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.lightbox__nav--prev {
  left: 1rem;
}

.lightbox__nav--next {
  right: 1rem;
}

.lightbox__nav svg {
  width: 32px;
  height: 32px;
}

/* Prevent body scroll when lightbox is open */
body.lightbox-open {
  overflow: hidden;
}

/* ------------------------------------------------------------
   20. Warranty cards
   ------------------------------------------------------------ */
.warranties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.warranty-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
              border-color 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.warranty-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.warranty-card__icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.warranty-card h3 {
  margin-bottom: 0.25rem;
  font-size: 1.25rem;
  color: var(--ink);
}

.warranty-card__period {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.warranty-card__text {
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* ------------------------------------------------------------
   20. Certification badges
   ------------------------------------------------------------ */
.certifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.certification-badge {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--line);
  text-align: center;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.certification-badge:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.certification-badge img {
  max-width: 120px;
  height: auto;
  margin: 0 auto;
  display: block;
}

.certification-badge h3 {
  margin-top: 1rem;
  margin-bottom: 0;
  font-size: 1.1rem;
  color: var(--ink);
}

/* Responsive adjustments for certifications */
@media (max-width: 480px) {
  .certifications-grid {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------
   21. Hulpklassen
   ------------------------------------------------------------ */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ------------------------------------------------------------
   22. Scroll-triggered animations
   ------------------------------------------------------------ */
/* Fade-in up animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade-in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Base class for scroll-triggered elements */
.animate-on-scroll {
  opacity: 0;
  will-change: opacity, transform;
}

/* Animation class - triggers when in view */
.animate-on-scroll.fade-in {
  animation: fadeIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.animate-on-scroll.fade-in-up {
  animation: fadeInUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Staggered delays for cards */
.animate-on-scroll.delay-100 {
  animation-delay: 0.1s;
}

.animate-on-scroll.delay-200 {
  animation-delay: 0.2s;
}

.animate-on-scroll.delay-300 {
  animation-delay: 0.3s;
}

.animate-on-scroll.delay-400 {
  animation-delay: 0.4s;
}

/* When element is in viewport */
.animate-on-scroll.in-view {
  opacity: 1;
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .animate-on-scroll.in-view {
    animation: none;
  }
}

/* ------------------------------------------------------------
   Form error states
   ------------------------------------------------------------ */
[data-lead-form] input:invalid,
[data-lead-form] textarea:invalid {
  border-color: var(--error);
}

/* Error message container */
.form-error {
  display: none;
  color: var(--error);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.form-error--visible {
  display: block;
}

/* Form label with error */
.form-group--error label {
  color: var(--error);
}

/* Form input with error */
.form-group--error input,
.form-group--error textarea {
  border-color: var(--error);
}

/* Spinner animation for loading state */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-left-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* Form group wrapper */
.form-group {
  margin-bottom: 1rem;
}

/* Button loading state */
[data-lead-form] button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* General form error banner */
.form-error-banner {
  display: none;
  background-color: var(--error);
  color: white;
  padding: 0.75rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.form-error-banner--visible {
  display: block;
}

/* ------------------------------------------------------------
   22. Dark Mode
   ------------------------------------------------------------ */
/* Project Proof & Featured Styles */
.project-card--featured {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
}

.project-card--featured .project-card__image-btn img {
  height: 320px; /* Grotere hoofdfoto voor uitgelichte projecten */
}

@media (max-width: 768px) {
  .project-card--featured .project-card__image-btn img {
    height: 240px;
  }
}

.project-card__title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.project-card__badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--accent);
  color: white;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.project-card__meta {
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin-bottom: 1rem;
}

.project-card__proof {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: var(--bg);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.project-card__proof-meta {
  margin-bottom: 1rem;
}

.project-card__proof-meta strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.project-card__proof-meta p {
  font-size: 0.9rem;
  font-style: italic;
  margin-bottom: 0.5rem;
}

.project-card__proof-meta a {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.project-card__proof-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.project-card__proof-stage {
  margin: 0;
  position: relative; /* Added for overlay positioning */
  border-radius: 4px;
  overflow: hidden;
}

.project-card__proof-stage img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  margin-bottom: 0; /* Removed to keep caption on top */
}

.project-card__proof-stage figcaption {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  backdrop-filter: blur(4px);
  pointer-events: none;
}

[data-theme='dark'] .project-card__proof-stage figcaption {
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Lightbox Stage Controls */
.lightbox__stage-controls {
  position: absolute;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 1002;
  background: rgba(0,0,0,0.5);
  padding: 0.5rem;
  border-radius: 30px;
  backdrop-filter: blur(4px);
}

.lightbox__stage-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.3);
  background: transparent;
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lightbox__stage-btn:hover {
  background: rgba(255,255,255,0.1);
}

.lightbox__stage-btn:disabled {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  cursor: default;
}

[data-theme='dark'] {
  /* Dark mode color tokens - WCAG AA compliant */
  --bg:         #0d1216;
  --surface:    #14191f;
  --brand:      #1e3a4a;
  --brand-2:    #0a0e12;
  --accent:     #e8a020;
  --accent-h:   #ffbd3d;
  --ink:        #e8e8e8;
  --ink-muted:  #9aa0a6;
  --line:       #2d3640;
  --error:      #ff6b6b;
  --focus-light: #ffbd3d;
  --focus-dark: #ffbd3d;
}

[data-theme='dark'] .site-header {
  background: var(--brand-2);
}

[data-theme='dark'] .hero {
  color: #e8e8e8;
}

[data-theme='dark'] .hero__overlay {
  background: linear-gradient(160deg, rgba(0, 5, 10, 0.9), rgba(0, 5, 10, 0.6));
}

[data-theme='dark'] .hero--compact {
  background: linear-gradient(130deg, var(--brand), var(--brand-2));
}

[data-theme='dark'] .trust-bar {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

[data-theme='dark'] .trust-bar__icon {
  color: var(--accent);
}

[data-theme='dark'] .success-message {
  background: rgba(40, 167, 69, 0.15);
  color: #4cd964;
  border-color: rgba(40, 167, 69, 0.3);
}

[data-theme='dark'] .error-message {
  background: rgba(220, 53, 69, 0.15);
  color: #ff6b6b;
  border-color: rgba(220, 53, 69, 0.3);
}

[data-theme='dark'] .section--dark {
  background: var(--brand-2);
}

[data-theme='dark'] .cta-section {
  background: var(--brand);
}

[data-theme='dark'] .btn-secondary-alt {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

[data-theme='dark'] .btn-secondary-alt:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent);
}

[data-theme='dark'] .service-card,
[data-theme='dark'] .review-card,
[data-theme='dark'] .project-card,
[data-theme='dark'] .warranty-card,
[data-theme='dark'] .certification-badge {
  background: var(--surface);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

[data-theme='dark'] .project-card__proof {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line);
}

[data-theme='dark'] .project-card__proof-stage img {
  border: 1px solid var(--line);
}

[data-theme='dark'] .project-card__proof-stage figcaption {
  color: var(--ink);
}

[data-theme='dark'] .project-card__badge {
  background: var(--accent);
  color: var(--brand-2);
}

[data-theme='dark'] #project-filter {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

[data-theme='dark'] .input,
[data-theme='dark'] .textarea,
[data-theme='dark'] .select {
  background: var(--surface);
  border-color: var(--line);
}

[data-theme='dark'] .mobile-cta {
  background: var(--surface);
  border-top-color: var(--line);
}

[data-theme='dark'] input,
[data-theme='dark'] textarea,
[data-theme='dark'] select {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

[data-theme='dark'] .site-footer {
  color: #9aa0a6;
}

[data-theme='dark'] .site-footer__brand {
  color: #ffffff;
}

[data-theme='dark'] .site-footer__nav h3 {
  color: rgba(255, 255, 255, 0.4);
}

[data-theme='dark'] .site-footer__nav a {
  color: rgba(255, 255, 255, 0.6);
}

[data-theme='dark'] .site-footer__nav a:hover {
  color: #ffffff;
}

/* Theme transition for smooth switching */
html,
body {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Theme toggle button styles */
.theme-toggle {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  border-radius: 8px;
  padding: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
  transition: background 0.2s, color 0.2s;
  width: 40px;
  height: 40px;
  min-width: 44px;
  min-height: 44px;
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  display: block;
}

/* Hide/show sun/moon based on theme */
.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  display: block;
}

[data-theme='dark'] .theme-toggle .icon-sun {
  display: block;
}

[data-theme='dark'] .theme-toggle .icon-moon {
  display: none;
}

:not([data-theme='dark']) .theme-toggle .icon-sun {
  display: none;
}

:not([data-theme='dark']) .theme-toggle .icon-moon {
  display: block;
}

/* ------------------------------------------------------------
   Map embed responsive wrapper
   ------------------------------------------------------------ */
.map-responsive {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-top: 1.5rem;
}

.map-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 768px) {
  .map-responsive {
    padding-bottom: 75%; /* More height on mobile */
    border-radius: var(--radius) var(--radius) 0 0;
  }
}

/* ------------------------------------------------------------
   22. Responsive — max-width 820px (mobile)
   ------------------------------------------------------------ */
@media (max-width: 820px) {
  /* Header nav */
  .site-nav--desktop {
    display: none;
  }

  .site-header__phone {
    display: none;
  }

  .site-nav--mobile {
    display: block;
    flex-shrink: 0;
  }

  /* Split layout wordt één kolom */
  .split {
    grid-template-columns: 1fr;
  }

  .split__img {
    max-height: 280px;
  }

  /* Footer wordt één kolom */
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  /* Mobile CTA bar zichtbaar */
  .mobile-cta {
    display: flex;
  }

  /* Body ruimte voor CTA bar */
  body {
    padding-bottom: 5rem;
  }

  /* Hero hoogte verkleinen */
  .hero {
    min-height: 420px;
  }

  .hero--compact {
    min-height: 240px;
  }

  /* CTA sectie acties stapelen */
  .cta-section__actions {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .cta-section__actions .btn-primary,
  .cta-section__actions .btn-secondary,
  .cta-section__actions .btn-tertiary {
    width: min(100%, 24rem);
  }

  /* Trust bar items smaller */
  .trust-bar__inner {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  /* Section padding kleiner */
  .section {
    padding: 2.5rem 0;
  }

  .cta-section {
    padding: 3rem 1.5rem;
  }

  /* Footer bottom stapelt */
  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ------------------------------------------------------------
   23. Responsive — max-width 480px (small mobile)
   ------------------------------------------------------------ */
@media (max-width: 480px) {
  .trust-bar__inner {
    grid-template-columns: 1fr;
  }

  .hero__content {
    padding: 2rem 1.25rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }
}
