/* =============================================================
   ecoPULSE.earth — styles.css
   Bootstrap 5 overrides + brand customisation
   ============================================================= */

/* ── CSS Custom Properties ────────────────────────────────── */
:root {
  /* Merkkleur primair — donker teal/navy */
  --color-primary:       #103b49;
  /* Merkkleur secundair — mid teal/groen */
  --color-secondary:     #3C786E;
  /* Lichte sectieachtergrond */
  --color-bg-light:      #eaf4f4;
  /* Witte achtergrond */
  --color-bg-white:      #ffffff;
  /* Donkere sectie-achtergrond */
  --color-bg-dark:       #103b49;
  /* Hero + CTA gradient */
  --gradient-brand:      linear-gradient(to right, #3C786E 0%, #103b49 100%);

  /* Tekst */
  --color-text-primary:  #103b49;
  --color-text-muted:    rgba(0, 0, 0, 0.6);
  --color-text-white:    #ffffff;
  --color-text-white75:  rgba(255, 255, 255, 0.75);

  /* Borders */
  --color-border:        rgba(16, 59, 73, 0.08);
  --color-divider:       #103b49;

  /* Spacing */
  --section-padding:     6rem 0;
  --max-width:           1200px;
}

/* ── Base ─────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
  overflow-x: hidden; /* voorkomt witte balk rechts op mobiel */
}

body {
  font-family: 'Merriweather', Georgia, serif;
  color: var(--color-text-primary);
  background-color: var(--color-bg-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
.navbar,
.btn,
.section-label {
  font-family: 'Merriweather Sans', sans-serif;
}

/* IBM Plex Mono — data, stats, specs */
.stat-number,
.stat-suffix,
.stat-prefix,
.tech-spec,
.mono {
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
}

/* ── Bootstrap override — max container width ─────────────── */
.container {
  max-width: var(--max-width);
}

/* ── Section utilities ────────────────────────────────────── */
.page-section {
  padding: var(--section-padding);
}

.bg-light-brand {
  background-color: var(--color-bg-light);
}

.bg-gradient-brand {
  background: var(--gradient-brand);
}

/* ── Section label ────────────────────────────────────────── */
.section-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-secondary);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-label-light {
  color: rgba(255, 255, 255, 0.6);
}

/* ── Divider ──────────────────────────────────────────────── */
hr.divider {
  height: 0.2rem;
  max-width: 3.25rem;
  background-color: var(--color-divider);
  border: none;
  border-radius: 0;
  opacity: 1;
  margin: 0.75rem 0 1.5rem;
}

hr.divider-light {
  background-color: #ffffff;
}

/* ── Navigation — altijd wit ──────────────────────────────── */
#mainNav {
  background-color: #ffffff;
  box-shadow: 0 2px 20px rgba(16, 59, 73, 0.08);
  transition:
    box-shadow 0.35s ease,
    transform 0.35s ease;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

#mainNav .navbar-brand img {
  height: 36px;
  width: auto;
}

/* Altijd dark logo zichtbaar */
#mainNav .logo-light { display: none;  }
#mainNav .logo-dark  { display: block; }

/* Hide on scroll down, show on scroll up */
#mainNav.navbar-hidden {
  transform: translateY(-100%);
}

/* Nav links — altijd donker */
#mainNav .nav-link {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
  padding: 0.25rem 0.75rem;
  transition: color 0.2s ease;
}

#mainNav .nav-link:hover {
  color: var(--color-secondary);
}

/* Nav CTA */
#mainNav .btn-nav-cta {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.45rem 1.25rem;
  border-radius: 4px;
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
  background-color: transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}

#mainNav .btn-nav-cta:hover {
  background-color: var(--color-primary);
  color: #ffffff;
}

/* Hamburger toggler */
#mainNav .navbar-toggler {
  border-color: rgba(16, 59, 73, 0.3);
}

#mainNav .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2816, 59, 73, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ── Language Toggle ──────────────────────────────────────── */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: 1rem;
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Merriweather Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.4rem;
  border-radius: 2px;
  color: rgba(16, 59, 73, 0.4);
  transition: color 0.2s ease;
  line-height: 1;
}

.lang-btn.active {
  color: var(--color-primary);
  background-color: rgba(16, 59, 73, 0.08);
}

.lang-btn:hover:not(.active) {
  color: var(--color-primary);
}

.lang-divider {
  color: rgba(16, 59, 73, 0.2);
  font-size: 0.65rem;
}

/* ── Hero Map Section (kaart als achtergrond, hero-content erbovenop) ── */
.hero-map-section {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
}

/* Horizon-fade bovenaan — kaart vervaagt naar wit (navbar-kleur) */
.hero-map-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 240px;
  z-index: 3;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 1.00) 0%,
    rgba(255, 255, 255, 0.88) 20%,
    rgba(255, 255, 255, 0.50) 50%,
    rgba(255, 255, 255, 0.10) 80%,
    transparent 100%
  );
  pointer-events: none;
}

/* Mapbox kaart vult de volledige sectie */
.hero-map-section #ecopulse-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Mobiel: kaart-canvas blokkeert verticaal scrollen — herstel pan-y */
@media (max-width: 767px) {
  #ecopulse-map canvas {
    touch-action: pan-y !important;
  }
}

/* Value-proposition zichtbaar op mobiel */
@media (max-width: 767px) {
  #value-proposition,
  .value-proposition-headline {
    display: block !important;
    font-size: 1.4rem !important;
    padding: 2rem 1.25rem !important;
  }
}

/* ── Kaart-loader (Option C — eDNA Particle Field) ───────── */
.map-loader {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease;
  overflow: hidden;
  pointer-events: none;
}

.map-loader--particles {
  background: #0d2f3b;
}

#particle-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

/* Label gecentreerd in het midden van de loader */
.map-loader-label {
  position: absolute;
  top: 58%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: rgba(255,255,255,0.72);
  font-family: 'Merriweather Sans', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-align: center;
}

.map-loader-label p { margin: 0; }

.map-loader-dots {
  display: flex;
  gap: 0.5rem;
}

.map-loader-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #7DD4D4;
  animation: dot-pulse 1.4s ease-in-out infinite;
}
.map-loader-dot:nth-child(2) { animation-delay: 0.2s; }
.map-loader-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes dot-pulse {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40%           { transform: scale(1.0); opacity: 1.0; }
}

/* Hero-overlay — rechter gradient voor tekstleesbaarheid */
.hero-map-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  display: flex;
  align-items: center;
  background: linear-gradient(
    to left,
    rgba(16, 59, 73, 0.82) 0%,
    rgba(16, 59, 73, 0.58) 38%,
    rgba(16, 59, 73, 0.18) 62%,
    transparent 78%
  );
}

/* Bootstrap-container binnen overlay */
.hero-map-overlay > .container {
  pointer-events: none;
  width: 100%;
}

/* Hero tekst — transparant, geen card of box */
.hero-content {
  pointer-events: auto;
  text-align: left;
  padding: 2rem 1.5rem 2.5rem 2rem;
  margin-top: 80px; /* ruimte voor navbar */
}

.hero-content h1 {
  font-size: clamp(1.5rem, 3.2vw, 2.75rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  font-family: 'Merriweather Sans', sans-serif;
  overflow-wrap: break-word;
  word-break: break-word;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.65), 0 1px 4px rgba(0, 0, 0, 0.45);
}

.hero-content .hero-subtitle {
  font-family: 'Merriweather', serif;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.90);
  line-height: 1.75;
  margin-bottom: 0.75rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
}

/* Masthead CTA knop — opvallend wit met teal accent */
.btn-masthead-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #ffffff;
  color: var(--color-primary);
  border: none;
  font-family: 'Merriweather Sans', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 0.9rem 2rem;
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(61, 214, 214, 0.35);
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  text-decoration: none;
}

.btn-masthead-cta:hover,
.btn-masthead-cta:focus {
  background-color: #e0f7f7;
  color: var(--color-primary);
  box-shadow: 0 6px 28px rgba(61, 214, 214, 0.55);
  transform: translateY(-1px);
}

/* Hero CTA knoppen — consistente grootte en uitlijning */
.hero-map-overlay .btn-outline-light.btn-lg {
  padding: 0.9rem 2rem !important;
  font-size: 1rem !important;
  font-family: 'Merriweather Sans', sans-serif;
  font-weight: 600;
  min-width: 160px;
  text-align: center;
}

/* Privacy noot onder contactformulier */
.form-privacy-note {
  font-family: 'Merriweather Sans', sans-serif !important;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75) !important;
  letter-spacing: 0.01em;
}

.form-privacy-note a {
  color: rgba(255, 255, 255, 0.9) !important;
  text-decoration: underline;
}

.form-privacy-note a:hover {
  color: #ffffff !important;
}

/* Scroll-down knop — prominente pill */
.hero-scroll-btn {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  text-decoration: none;
  pointer-events: auto;
}

.hero-scroll-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(16, 59, 73, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(61, 214, 214, 0.55);
  border-radius: 50px;
  padding: 0.65rem 1.5rem;
  color: rgba(255, 255, 255, 0.92);
  font-family: 'Merriweather Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.2s ease;
  animation: pill-bounce 2.4s ease-in-out infinite;
}

.hero-scroll-pill i {
  font-size: 0.9rem;
}

.hero-scroll-btn:hover .hero-scroll-pill {
  background: rgba(16, 59, 73, 0.95);
  border-color: rgba(61, 214, 214, 0.9);
  color: #ffffff;
}

@keyframes pill-bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

/* Laad-indicator (linksboven, geen blauwe box) */
#map-loading {
  position: absolute;
  bottom: 14px;
  left: 14px;
  z-index: 6;
  color: rgba(255, 255, 255, 0.75);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn-primary {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  font-family: 'Merriweather Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 4px;
  padding: 0.8rem 2rem;
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.5);
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.3);
}

.btn-outline-brand {
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
  background: transparent;
  font-family: 'Merriweather Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.65rem 1.5rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.btn-outline-brand:hover {
  background-color: var(--color-primary);
  color: #ffffff;
}

/* ── Value Proposition ────────────────────────────────────── */
/* Trekt sectie 3px omhoog — voorkomt schijfje van de hero-kaart na scrollen */
#value-proposition {
  margin-top: -3px;
}

.value-proposition-headline {
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

/* ── Use Cases ────────────────────────────────────────────── */
.usecase-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-secondary);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.usecase-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(16, 59, 73, 0.1);
}

.usecase-icon {
  font-size: 2rem;
  color: var(--color-secondary);
  margin-bottom: 1rem;
  display: block;
}

.usecase-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.usecase-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 0;
}

.usecases-footnote {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  border-left: 3px solid var(--color-border);
  padding-left: 1rem;
  font-style: italic;
}

/* ── Impact Statistics ────────────────────────────────────── */
.stat-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-secondary);
  border-radius: 8px;
  padding: 1.75rem;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-left-color 0.25s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(16, 59, 73, 0.12);
  border-left-color: var(--color-primary);
}

.stat-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-secondary);
  display: block;
  margin-bottom: 0.75rem;
}

.stat-number-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
  margin-bottom: 1rem;
}

.stat-prefix {
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1;
}

.stat-number {
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-suffix {
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 600;
  color: var(--color-secondary);
  line-height: 1;
  margin-left: 0.2rem;
  align-self: baseline;
}

.stat-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

/* ── Data Examples / Outputs ──────────────────────────────── */
.output-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 2rem;
  height: 100%;
}

.output-card-icon {
  font-size: 2.25rem;
  color: var(--color-secondary);
  margin-bottom: 1.25rem;
}

.output-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.output-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 0;
}

.outputs-footnote {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-secondary);
  background: #ffffff;
  padding: 1rem 1.25rem;
  border-radius: 0 6px 6px 0;
}

/* ── Sampling apparatuur foto (Technology-sectie) ─────────── */
.equipment-photo-wrap {
  width: 100%;
}

.equipment-photo {
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: center center;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(16, 59, 73, 0.18);
  display: block;
}

.equipment-caption {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  margin-top: 0.75rem;
  text-align: center;
  letter-spacing: 0.08em;
}

/* ── How It Works ─────────────────────────────────────────── */
.how-step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.how-step:last-child {
  border-bottom: none;
}

.how-step-number {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--color-bg-light);
  line-height: 1;
  min-width: 2.5rem;
  text-align: center;
  -webkit-text-stroke: 2px var(--color-secondary);
}

.how-step-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.how-step-content p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 0;
}

/* ── Service Models ───────────────────────────────────────── */
.service-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--color-border);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(16, 59, 73, 0.1);
}

.service-badge {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-secondary);
  border: 1px solid rgba(60, 120, 110, 0.3);
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
  margin-bottom: 1rem;
}

.service-card h4 {
  color: var(--color-primary);
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.service-ideal {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.service-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  flex: 1;
}

.service-card ul li {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.5;
}

.service-card ul li::before {
  content: '→';
  color: var(--color-secondary);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.service-card ul li:last-child {
  border-bottom: none;
}

.services-footnote {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-align: center;
  font-style: italic;
  margin-top: 2.5rem;
}

/* ── Service card — featured (meest gekozen) ──────────────── */
.service-card.service-card--featured {
  border-color: var(--color-secondary);
  box-shadow: 0 8px 32px rgba(60, 120, 110, 0.18);
  position: relative;
}

.service-card.service-card--featured:hover {
  box-shadow: 0 16px 48px rgba(60, 120, 110, 0.24);
}

.service-featured-ribbon {
  position: absolute;
  top: -1px;
  right: 1.25rem;
  background: var(--color-secondary);
  color: #fff;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.7rem 0.25rem;
  border-radius: 0 0 4px 4px;
  line-height: 1;
}

/* ── Contact Form ─────────────────────────────────────────── */
.contact-form-wrap {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 2.5rem;
}

.contact-form-wrap .form-label {
  font-family: 'Merriweather Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.4rem;
}

.contact-form-wrap .form-control {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border-radius: 4px;
  font-family: 'Merriweather', serif;
  font-size: 0.9rem;
  padding: 0.65rem 1rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.contact-form-wrap .form-control::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.contact-form-wrap .form-control:focus {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
  box-shadow: none;
  outline: none;
}

/* Form feedback messages */
#form-feedback {
  display: none;
  padding: 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  margin-top: 1rem;
}

#form-feedback.success {
  background-color: rgba(60, 120, 110, 0.3);
  border: 1px solid rgba(60, 120, 110, 0.5);
  color: #ffffff;
}

#form-feedback.error {
  background-color: rgba(200, 60, 60, 0.25);
  border: 1px solid rgba(200, 60, 60, 0.4);
  color: #ffffff;
}

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background-color: var(--color-primary);
  color: var(--color-text-white75);
  padding: 2.5rem 0;
  font-size: 0.875rem;
}

.site-footer .footer-logo img {
  height: 32px;
  width: auto;
  opacity: 0.85;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.footer-divider {
  border-color: rgba(255, 255, 255, 0.12);
  margin: 1.5rem 0;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 991.98px) {
  .page-section { padding: 4rem 0; }
  .masthead h1  { font-size: clamp(1.75rem, 6vw, 2.5rem); }
  .value-proposition-headline { font-size: clamp(1.5rem, 4vw, 2.5rem); }

  /* Mobile nav collapse — altijd wit */
  #mainNav .navbar-collapse {
    background-color: #ffffff;
    box-shadow: 0 4px 16px rgba(16, 59, 73, 0.12);
    margin-top: 0.5rem;
    border-radius: 8px;
    padding: 1rem 1.25rem;
  }

  .lang-toggle { margin-left: 0; margin-top: 0.5rem; }
}

@media (max-width: 575.98px) {
  .contact-form-wrap { padding: 1.5rem; }
  .how-step { flex-direction: column; gap: 0.75rem; }
  .how-step-number { font-size: 1.75rem; }
}

/* ── S2.2: Hero subheading zichtbaar op mobiel ───────────── */
@media (max-width: 768px) {
  .masthead .hero-subtitle {
    display: block !important;
    opacity: 1 !important;
    font-size: 1rem;
  }
}

/* ── Route start-puls (eenmalige ring op startcoördinaat) ─── */
.route-start-ring {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid rgba(61, 214, 214, 0.9);
  animation: start-pulse-ring 1.2s ease-out forwards;
  pointer-events: none;
  z-index: 20;
  transform: translate(-50%, -50%);
}

@keyframes start-pulse-ring {
  /* scaleY(0.574) = cos(55°) — maakt de ring elliptisch zodat hij
     op het kaartoppervlak lijkt te liggen bij 55° kanteling */
  0%   { transform: translate(-50%, -50%) scale(1)  scaleY(0.574); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(14) scaleY(0.574); opacity: 0; }
}

/* ── Map Animation — soort-markers en Mapbox-controls ─────── */

/* Soort-markers container */
#species-container {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
}

/* Soort-marker (circulaire foto + naam) */
.species-marker {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  z-index: 10;
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: species-appear 4.2s ease forwards;
}

/* Ronde foto */
.species-photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  object-fit: cover;
  display: block;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Naam-label onder foto — verborgen per verzoek */
.species-label {
  display: none;
}

/* Fallback gekleurde cirkel */
.species-fallback {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(60, 120, 110, 0.85);
  border: 2px solid rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

@keyframes species-appear {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.3); }
  12%  { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
  20%  { transform: translate(-50%, -50%) scale(1.0); }
  72%  { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -60%) scale(0.85); }
}

/* Mapbox: verberg logo en attributie, behoud zoom-knoppen */
.mapboxgl-ctrl-bottom-left,     /* Mapbox logo */
.mapboxgl-ctrl-attrib {         /* Attributie-tekst */
  display: none !important;
}

/* Zoom-knoppen stijl aanpassen aan merk */
.mapboxgl-ctrl-bottom-right {
  bottom: 1rem;
  right: 1rem;
  z-index: 6;
}

.mapboxgl-ctrl-group {
  background: rgba(16, 59, 73, 0.85) !important;
  border: 1px solid rgba(60, 120, 110, 0.4) !important;
  border-radius: 4px !important;
  backdrop-filter: blur(4px);
}

.mapboxgl-ctrl-group button {
  background-color: transparent !important;
}

.mapboxgl-ctrl-group button .mapboxgl-ctrl-icon {
  filter: brightness(0) invert(1) opacity(0.8);
}

.mapboxgl-ctrl-group button:hover .mapboxgl-ctrl-icon {
  filter: brightness(0) saturate(100%) invert(76%) sepia(39%) saturate(400%) hue-rotate(130deg);
}

/* Mobile — tekst onderaan, transparant, scroll-knop verborgen */
@media (max-width: 767.98px) {
  .hero-map-overlay {
    align-items: flex-end;
    padding-bottom: 2rem;
    /* Sterker verlopende gradient naar beneden zodat tekst beter uitkomt */
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.82) 0%,
      rgba(16, 59, 73, 0.60) 28%,
      rgba(16, 59, 73, 0.18) 55%,
      transparent 76%
    );
    /* Voorkom dat Bootstrap row-marges buiten scherm uitlopen */
    overflow: hidden;
  }

  /* Neutraliseer Bootstrap row negatieve marges in de hero */
  .hero-map-overlay > .container > .row {
    margin-left: 0;
    margin-right: 0;
  }

  .hero-content {
    text-align: center;
    margin-top: 0;
    padding: 0 1rem;
    margin-left: 0;
    margin-right: 0;
    /* Verticale swipe scrollt de pagina; kaartgebied boven de content
       blijft volledig interactief via de overlay (pointer-events: none) */
    pointer-events: auto;
    touch-action: pan-y;
  }

  /* Verberg Mapbox zoom-knoppen op mobiel */
  .hero-map-section .mapboxgl-ctrl-top-right {
    display: none;
  }

  .hero-content h1 {
    font-size: clamp(1.15rem, 5vw, 1.6rem);
    margin-bottom: 0.75rem;
  }

  .hero-content .hero-subtitle {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
  }

  /* Mobiele scroll-CTA: toon als vervanger voor contactknop */
  .hero-content .btn-masthead-cta {
    font-size: 0.9rem;
    padding: 0.75rem 1.75rem;
    pointer-events: auto;
    width: auto;
    display: inline-flex;
  }

  /* Verberg desktop contact-knop, toon mobiele scroll-knop */
  .masthead-cta-default { display: none !important; }
  .masthead-cta-mobile  { display: inline-flex !important; }

  .hero-scroll-btn {
    display: none;
  }
}

/* Tablet — tekst onderaan de kaart, net boven 'Meer informatie' pill */
@media (min-width: 768px) and (max-width: 1199.98px) {
  .hero-map-overlay {
    align-items: flex-end;
    padding-bottom: 6rem; /* ruimte boven de scroll-pill (≈ 80px) */
    /* Gradient naar beneden — tekst staat nu onderaan */
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.74) 0%,
      rgba(16, 59, 73, 0.45) 32%,
      rgba(16, 59, 73, 0.12) 58%,
      transparent 80%
    );
  }

  .hero-content {
    margin-top: 0;
  }
}

/* Mobiele CTA-knop standaard verborgen (getoond via mobile breakpoint hierboven) */
.masthead-cta-mobile { display: none; }

/* Mobile nav — CTA knop consistent met andere links */
@media (max-width: 991.98px) {
  #mainNav .btn-nav-cta {
    display: block;
    border: none;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-primary);
    background: none;
    text-align: left;
    text-decoration: none;
  }

  #mainNav .btn-nav-cta:hover {
    color: var(--color-secondary);
    background: none;
  }

  .lang-toggle {
    border-top: 1px solid var(--color-border);
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    align-items: center;
  }
}

/* Mobiel-alleen subtitel onder de hero map */
.hero-mobile-subtitle {
  display: none;
}

/* hero-mobile-subtitle niet meer nodig — subtitle staat nu in de hero overlay */
@media (max-width: 767.98px) {
  .hero-mobile-subtitle {
    display: none;
  }
}

/* ── Soortgroepen kaartjes (P3.1) ────────────────────────── */
.species-group-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0.75rem;
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

/* Species popover styling */
.species-popover .popover-header {
  background: #103b49;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  border-bottom: none;
}
.species-popover .popover-body {
  padding: 0.6rem 0.85rem;
}
.species-popover .popover-arrow::before,
.species-popover .popover-arrow::after {
  border-top-color: #103b49;
}

.species-group-card:hover {
  border-color: var(--color-secondary);
  box-shadow: 0 2px 10px rgba(60, 120, 110, 0.12);
}

.species-group-icon {
  font-size: 1.6rem;
  width: 1.8rem;
  text-align: center;
  color: var(--color-secondary);
}

.species-group-name {
  font-family: 'Merriweather Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
}

/* Soortgroep tooltips — kleinere tekst */
.tooltip-inner {
  font-size: 0.72rem;
  max-width: 200px;
  text-align: left;
  line-height: 1.45;
}

/* ── FAQ accordion (P3.3) ────────────────────────────────── */
#faq .accordion-item {
  border: 1px solid var(--color-border);
  border-radius: 6px !important;
  margin-bottom: 0.5rem;
  overflow: hidden;
}

#faq .accordion-button {
  font-family: 'Merriweather Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary);
  background-color: #fff;
  padding: 1.1rem 1.25rem;
}

#faq .accordion-button:not(.collapsed) {
  color: var(--color-secondary);
  background-color: #f4fafa;
  box-shadow: none;
}

#faq .accordion-button::after {
  filter: hue-rotate(150deg);
}

#faq .accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(60, 120, 110, 0.2);
}

#faq .accordion-body {
  font-family: 'Merriweather', serif;
  font-size: 0.875rem;
  line-height: 1.8;
  color: #2a2a2a;
  background-color: #f4fafa;
  padding: 0.75rem 1.25rem 1.1rem;
}

#faq .accordion-body a {
  color: var(--color-secondary);
}

/* ── Hero pilot note (S2.3) ──────────────────────────────── */
.hero-pilot-note {
  font-family: 'Merriweather Sans', sans-serif;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.25rem;
  font-style: normal;
  font-weight: 500;
}

/* ── Lab note in hoe-sectie (P1.3) ──────────────────────── */
.lab-note {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  font-style: italic;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

/* ── Services pilot note (P1.2) ──────────────────────────── */
.services-pilot-note {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-style: italic;
  margin-top: 0.25rem;
}

/* ── Form feedback (Fix 4) ───────────────────────────────── */
.form-feedback {
  margin-top: 1rem;
  padding: 0.875rem 1.25rem;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  border-left: 4px solid;
}

.form-feedback--success {
  background-color: #eaf4f4;
  border-left-color: var(--color-secondary, #3C786E);
  color: #103b49;
}

.form-feedback--error {
  background-color: #fff5f5;
  border-left-color: #dc3545;
  color: #7f1d1d;
}

/* ── Cookie consent banner ────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #103b49;
  color: #fff;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  z-index: 9999;
  font-size: 0.9rem;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.2);
}

.cookie-banner p {
  margin-bottom: 0;
  font-family: 'Merriweather Sans', sans-serif;
  line-height: 1.5;
}

.cookie-banner a {
  color: #7DD4D4;
  margin-left: 0.4rem;
}

.cookie-banner a:hover {
  color: #ffffff;
}

.cookie-btn {
  padding: 0.4rem 1.2rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: 'Merriweather Sans', sans-serif;
  transition: opacity 0.15s ease;
}

.cookie-btn:hover {
  opacity: 0.85;
}

.cookie-btn-accept {
  background: #3C786E;
  border: none;
  color: #fff;
}

.cookie-btn-reject {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  margin-left: 0.5rem;
}

/* ── Accessibility ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ═══════════════════════════════════════════════════════
   OVER ONS / MISSIE SECTIE
   ═══════════════════════════════════════════════════════ */

.about-mission-block {
  border-left: 4px solid var(--color-secondary, #3C786E);
  padding: 1.25rem 1.75rem;
  background-color: var(--color-bg-light, #eaf4f4);
  border-radius: 0 6px 6px 0;
}

.about-mission-text {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--color-primary, #103b49);
  margin: 0;
  line-height: 1.7;
}

@media (max-width: 767px) {
  .about-mission-text {
    font-size: 1rem;
  }
}

/* ═══════════════════════════════════════════════════════
   FORMULIER VALIDATIE — stijl passend bij het merk
   ═══════════════════════════════════════════════════════ */

/* Override Bootstrap's rode border op invalid velden */
.form-control.is-invalid,
.form-control.is-invalid:focus,
.form-select.is-invalid,
.form-select.is-invalid:focus {
  border-color: #F0A500;
  box-shadow: 0 0 0 0.2rem rgba(240, 165, 0, 0.15);
  background-image: none; /* verwijder Bootstrap's rode icon */
}

/* Override Bootstrap's rode kleur op invalid checkboxen */
.form-check-input.is-invalid {
  border-color: #F0A500;
  box-shadow: 0 0 0 0.2rem rgba(240, 165, 0, 0.15);
}
.form-check-input.is-invalid ~ .form-check-label {
  color: #F0A500;
}

/* Inline foutmelding */
.invalid-feedback {
  display: block;
  font-family: 'Merriweather Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: #F0A500;
  margin-top: 0.3rem;
  padding-left: 0.1rem;
  letter-spacing: 0.01em;
}


/* ═══════════════════════════════════════════════════════════
   PILOT INTRO SECTION
   ═══════════════════════════════════════════════════════════ */

/* Full-width trailer image wrap */
.pilot-intro-image-wrap {
  position: relative;
  width: 100%;
  max-height: 480px;
  overflow: hidden;
}
.pilot-intro-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

/* On desktop: taller image, fixed proportional height */
@media (min-width: 992px) {
  .pilot-intro-image-wrap {
    max-height: 50vh;
  }
  .pilot-intro-img {
    height: 50vh;
    object-position: center 40%;
  }
}
.pilot-intro-img-overlay {
  position: absolute;
  bottom: 1.5rem;
  left: 2rem;
}
.pilot-intro-img-caption {
  position: absolute;
  bottom: 0.5rem;
  right: 1rem;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.65);
  margin: 0;
  font-style: italic;
}

/* Light green background for pilot intro content */
.page-section-light-green {
  background-color: var(--color-bg-light);
}


/* ═══════════════════════════════════════════════════════════
   PILOT PAGE (pilot.html)
   ═══════════════════════════════════════════════════════════ */

/* Page header — gradient banner */
.pilot-page-header {
  background: linear-gradient(to right, #3C786E 0%, #103b49 100%);
  color: #fff;
  padding-top: 80px; /* clear fixed nav */
}
.pilot-page-header h1 { color: #fff; }
.pilot-page-header .lead { color: rgba(255,255,255,0.85); }
.pilot-page-header .section-label { color: #ffffff; }

/* Availability counter pill */
.pilot-counter {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  padding: 0.3rem 1rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.9);
}
.pilot-counter strong { color: #7fd4c8; }

/* ── Form section cards ── */
.pilot-form-section {
  background: #fff;
  border: 1px solid #cddfe0;
  border-radius: 12px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}
.pilot-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #103b49;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #eaf4f4;
}

/* ── Radio + checkbox groups ── */
.pilot-radio-group,
.pilot-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.pilot-radio-option,
.pilot-check-option {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.92rem;
  color: #1a1a1a;
}
.pilot-radio-option input[type=radio],
.pilot-check-option input[type=checkbox] {
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: #3C786E;
}
.pilot-radio-with-input { flex-wrap: wrap; align-items: center; }
.pilot-anders-input { flex: 1; min-width: 120px; }

/* ── Consent items ── */
.pilot-consent-item { border-left: 3px solid #eaf4f4; padding-left: 1rem; }

/* ── Legal note ── */
.pilot-legal-note {
  background: #f8fcfc;
  border-left: 4px solid #3C786E;
  border-radius: 0 8px 8px 0;
  padding: 0.9rem 1.1rem;
  font-size: 0.82rem;
  color: #5a6a70;
  line-height: 1.55;
}

/* ── Inline field errors ── */
.pilot-field-error {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.8rem;
  color: #F0A500;
}
.pilot-group-error {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.8rem;
  color: #F0A500;
}
.group-invalid {
  outline: 2px solid #F0A500;
  border-radius: 6px;
  padding: 0.5rem;
}

/* ── Success message ── */
.pilot-success-msg {
  background: #e6f7f4;
  border: 1.5px solid #3C786E;
  border-radius: 12px;
  padding: 2rem;
}
