/* ============================================================
   STALBEHEER.COM — Gedeelde stijlen
   ============================================================ */

:root {
  --green-dark:  #0b2a19;
  --green:       #1a5c3a;
  --green-mid:   #256b46;
  --green-light: #ebf5ef;
  --amber:       #f59e0b;
  --amber-dark:  #d97706;
  --white:  #ffffff;
  --gray-50:  #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --text:       #111827;
  --text-muted: #4b5563;
  --r:    12px;
  --r-lg: 20px;
  --shadow:    0 1px 3px rgba(0,0,0,.10), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.10), 0 2px 4px -1px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.10), 0 4px 6px -2px rgba(0,0,0,.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.10), 0 10px 10px -5px rgba(0,0,0,.04);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ── NAV ─────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 28px;
  height: 66px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
}
.nav-logo-mark {
  width: 36px; height: 36px;
  background: var(--green); border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; font-weight: 900; color: white;
  font-family: 'Inter', sans-serif; letter-spacing: -0.04em;
  flex-shrink: 0; user-select: none;
}
.nav-logo-text {
  font-size: 19px; font-weight: 800; letter-spacing: -.03em;
  color: var(--green-dark);
}
.nav-logo-text span { color: var(--green); }
.nav-links {
  display: flex; align-items: center; gap: 4px; list-style: none;
}
.nav-links a {
  text-decoration: none; color: var(--gray-600);
  font-size: 15px; font-weight: 500;
  padding: 7px 14px; border-radius: 8px;
  transition: all .15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--green); background: var(--green-light); }
.nav-right { display: flex; align-items: center; gap: 10px; }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: 10px;
  font-size: 15px; font-weight: 600; font-family: inherit;
  text-decoration: none; border: none; cursor: pointer;
  transition: all .15s; line-height: 1; white-space: nowrap;
}
.btn-primary { background: var(--green); color: white; }
.btn-primary:hover { background: var(--green-mid); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-amber { background: var(--amber); color: var(--gray-900); }
.btn-amber:hover { background: var(--amber-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline-white { background: transparent; color: white; border: 2px solid rgba(255,255,255,.35); }
.btn-outline-white:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.6); }
.btn-ghost { background: transparent; color: var(--green); border: 2px solid var(--green); }
.btn-ghost:hover { background: var(--green-light); }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: 12px; }
.btn-sm { padding: 8px 16px; font-size: 14px; border-radius: 8px; }

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(140deg, var(--green-dark) 0%, #1a5c3a 55%, #266348 100%);
  color: white; padding: 96px 28px 80px; text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle at 20% 50%, rgba(255,255,255,.03) 0%, transparent 60%),
                    radial-gradient(circle at 80% 20%, rgba(245,158,11,.06) 0%, transparent 50%);
}
.hero-inner { max-width: 820px; margin: 0 auto; position: relative; }
.hero-label {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.9); font-size: 13px; font-weight: 600;
  padding: 6px 14px; border-radius: 20px; margin-bottom: 28px;
  letter-spacing: .03em;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 66px); font-weight: 900;
  line-height: 1.06; letter-spacing: -.035em; margin-bottom: 22px; color: white;
}
.hero h1 em { font-style: normal; color: var(--amber); }
.hero-sub {
  font-size: clamp(17px, 2.2vw, 21px); color: rgba(255,255,255,.78);
  max-width: 620px; margin: 0 auto 38px; line-height: 1.55;
}
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 20px; font-size: 13px; color: rgba(255,255,255,.45); }

/* stats strip */
.hero-stats {
  display: flex; justify-content: center; gap: 48px;
  flex-wrap: wrap; margin-top: 56px;
  padding-top: 40px; border-top: 1px solid rgba(255,255,255,.12);
}
.hero-stat-value {
  font-size: 32px; font-weight: 900; letter-spacing: -.03em; color: white;
}
.hero-stat-label { font-size: 13px; color: rgba(255,255,255,.55); margin-top: 2px; }

/* ── PAGE HERO (inner pages) ─────────────────────────────── */
.page-hero {
  background: linear-gradient(140deg, var(--green-dark), var(--green));
  color: white; padding: 64px 28px 56px;
}
.page-hero-inner { max-width: 1100px; margin: 0 auto; }
.page-hero h1 {
  font-size: clamp(34px, 5vw, 54px); font-weight: 900;
  letter-spacing: -.03em; line-height: 1.08; margin-bottom: 12px;
}
.page-hero p { font-size: 18px; color: rgba(255,255,255,.75); max-width: 560px; }

/* ── SECTIONS ────────────────────────────────────────────── */
.section { padding: 80px 28px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section.bg-gray { background: var(--gray-50); }
.section.bg-dark { background: var(--gray-900); }

.section-eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--green); margin-bottom: 8px;
}
.section-title {
  font-size: clamp(28px, 4vw, 44px); font-weight: 800;
  letter-spacing: -.025em; color: var(--gray-900); line-height: 1.12;
  margin-bottom: 14px;
}
.section-sub { font-size: 18px; color: var(--text-muted); max-width: 580px; line-height: 1.6; }
.section-header { margin-bottom: 48px; }
.section-header.center { text-align: center; }
.section-header.center .section-sub { margin: 0 auto; }

/* ── PROBLEM CARDS ───────────────────────────────────────── */
.problems-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px; margin-top: 40px;
}
.problem-card {
  background: white; border: 1px solid var(--gray-200); border-radius: var(--r);
  padding: 20px 22px; display: flex; align-items: flex-start; gap: 14px;
  box-shadow: var(--shadow);
}
.problem-icon { font-size: 26px; flex-shrink: 0; line-height: 1; }
.problem-text { font-size: 15px; color: var(--gray-800); font-weight: 500; line-height: 1.5; }

/* ── FEATURE GRID ────────────────────────────────────────── */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 22px; margin-top: 48px;
}
.feature-card {
  background: white; border: 1px solid var(--gray-200); border-radius: var(--r-lg);
  padding: 28px; transition: all .2s;
}
.feature-card:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-lg);
  border-color: #b6ddc5;
}
.feature-icon {
  width: 50px; height: 50px;
  background: var(--green-light); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 18px;
}
.feature-title { font-size: 17px; font-weight: 700; color: var(--gray-900); margin-bottom: 8px; }
.feature-text { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

/* ── STEPS ───────────────────────────────────────────────── */
.steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px; margin-top: 48px; position: relative;
}
.step { display: flex; flex-direction: column; align-items: flex-start; }
.step-num {
  width: 42px; height: 42px; background: var(--green); color: white;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 800; margin-bottom: 18px; flex-shrink: 0;
}
.step-title { font-size: 18px; font-weight: 700; color: var(--gray-900); margin-bottom: 8px; }
.step-text { font-size: 15px; color: var(--text-muted); line-height: 1.65; }

/* ── CTA BANNER ──────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(140deg, var(--green-dark), var(--green));
  color: white; padding: 80px 28px; text-align: center;
}
.cta-banner h2 {
  font-size: clamp(28px, 4vw, 44px); font-weight: 800;
  letter-spacing: -.025em; margin-bottom: 14px;
}
.cta-banner p { font-size: 18px; color: rgba(255,255,255,.75); max-width: 520px; margin: 0 auto 32px; }
.cta-banner .hero-note { margin-top: 16px; }

/* ── FUNCTIES DETAIL ─────────────────────────────────────── */
.functies-block {
  padding: 56px 0; border-bottom: 1px solid var(--gray-200);
}
.functies-block:last-child { border-bottom: none; }
.functies-layout {
  display: grid; grid-template-columns: 320px 1fr; gap: 64px; align-items: start;
}
.functies-list { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-top: 0; }
.functies-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 15px; color: var(--gray-700); line-height: 1.55;
}
.functies-list li::before {
  content: '✓'; color: var(--green); font-weight: 800;
  flex-shrink: 0; margin-top: 1px;
}
.functies-icon-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.functies-badge {
  background: var(--green-light); color: var(--green);
  font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 20px;
  letter-spacing: .03em;
}

/* ── CONTACT ─────────────────────────────────────────────── */
.contact-grid {
  display: grid; grid-template-columns: 1fr 420px; gap: 72px; align-items: start;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-group label { font-size: 14px; font-weight: 600; color: var(--gray-700); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 14px; border: 1.5px solid var(--gray-200); border-radius: 10px;
  font-size: 15px; font-family: inherit; color: var(--text); background: white;
  transition: border-color .15s; outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(26,92,58,.1); }
.form-group textarea { min-height: 130px; resize: vertical; }
.contact-info { display: flex; flex-direction: column; gap: 0; }
.contact-info-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 20px 0; border-bottom: 1px solid var(--gray-100);
}
.contact-info-item:first-child { padding-top: 0; }
.contact-info-item:last-child { border-bottom: none; }
.contact-info-icon {
  width: 46px; height: 46px; background: var(--green-light); border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.contact-info-title { font-size: 14px; font-weight: 700; color: var(--gray-900); margin-bottom: 3px; }
.contact-info-text { font-size: 14px; color: var(--text-muted); line-height: 1.5; }
.success-msg {
  display: none; background: var(--green-light); border: 1px solid #a7d7b9;
  color: var(--green); border-radius: 10px; padding: 14px 18px;
  font-size: 15px; font-weight: 500; margin-bottom: 16px;
}

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  background: var(--gray-900); color: rgba(255,255,255,.55);
  padding: 52px 28px 32px;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-top {
  display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap;
  padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 24px;
}
.footer-brand-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand-mark {
  width: 32px; height: 32px; background: var(--green); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 900; color: white;
  font-family: 'Inter', sans-serif; letter-spacing: -0.04em; user-select: none;
}
.footer-brand-name { font-size: 16px; font-weight: 800; color: white; letter-spacing: -.02em; }
.footer-desc { font-size: 14px; line-height: 1.65; max-width: 280px; }
.footer-links { display: flex; gap: 52px; flex-wrap: wrap; }
.footer-col-title {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: white; margin-bottom: 14px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { text-decoration: none; font-size: 14px; transition: color .15s; }
.footer-col a:hover { color: white; }
.footer-bottom { font-size: 13px; text-align: center; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links, .nav-right { display: none; }
  .hero { padding: 64px 20px 52px; }
  .hero-stats { gap: 28px; }
  .section { padding: 56px 20px; }
  .features-grid { grid-template-columns: 1fr; }
  .functies-layout { grid-template-columns: 1fr; gap: 32px; }
  .talen-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-top { flex-direction: column; }
  .page-hero { padding: 48px 20px 40px; }
  .cta-banner { padding: 56px 20px; }
}


/* ============================================================
   ANIMATIES — Apple-stijl scroll-triggered + hero entrance
   ============================================================ */

/* ── Nav: schaduw bij scrollen ──────────────────────────────── */
.nav { transition: box-shadow 0.3s ease; }
.nav--scrolled { box-shadow: 0 2px 24px rgba(0,0,0,0.10); }

/* ── Hero entrance: elementen komen één voor één binnen ─────── */
@keyframes heroEnter {
  from { opacity: 0; transform: translateY(22px); filter: blur(2px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0);   }
}

.hero-enter {
  opacity: 0;
  animation: heroEnter 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ── Scroll-triggered fade-up ───────────────────────────────── */
[data-anim] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity  0.72s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.72s cubic-bezier(0.16, 1, 0.3, 1);
  /* stagger: elk kind is iets later */
  transition-delay: calc(var(--stagger-i, 0) * 0.09s);
}

[data-anim="fade"] {
  transform: none; /* alleen fade, geen translate */
}

[data-anim="scale"] {
  transform: scale(0.95);
  transition:
    opacity   0.65s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-anim].in-view {
  opacity: 1;
  transform: none;
}

/* ── Feature cards: extra hover-lift ───────────────────────── */
.feature-card {
  transition: transform 0.25s cubic-bezier(0.16,1,0.3,1),
              box-shadow 0.25s cubic-bezier(0.16,1,0.3,1),
              border-color 0.25s ease,
              opacity 0.72s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Smooth underline op nav-links ─────────────────────────── */
.nav-links a {
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 12px; right: 12px;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

/* ── Buttons: vloeiendere hover ─────────────────────────────── */
.btn {
  transition: background 0.18s ease,
              transform  0.18s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.18s ease;
}

/* ── Reduced motion: respecteer gebruikersinstellingen ──────── */
@media (prefers-reduced-motion: reduce) {
  [data-anim], [data-hero], .hero-enter, .feature-card, .btn {
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}


/* ============================================================
   INTRO — Cinematische binnenkomer bij laden
   ============================================================ */
#intro {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--green-dark);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 0;
  pointer-events: all;
}
#intro.intro-exit {
  transform: translateY(-100%);
  transition: transform 1s cubic-bezier(0.76, 0, 0.24, 1);
}
.intro-inner {
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  text-align: center;
}
.intro-mark {
  width: 80px; height: 80px;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 22px;
  display: flex; align-items: center; justify-content: center;
  font-size: 46px; font-weight: 900; color: white;
  font-family: 'Inter', sans-serif; letter-spacing: -0.05em;
  user-select: none;
  opacity: 0;
  animation: introMark 0.7s cubic-bezier(0.16,1,0.3,1) 0.15s forwards;
}
.intro-word {
  font-size: 32px; font-weight: 900; letter-spacing: -0.04em;
  color: white;
  opacity: 0;
  animation: introSlideUp 0.65s cubic-bezier(0.16,1,0.3,1) 0.45s forwards;
}
.intro-word span { color: var(--amber); }
.intro-tag {
  font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.4);
  letter-spacing: 0.02em;
  opacity: 0;
  animation: introSlideUp 0.65s cubic-bezier(0.16,1,0.3,1) 0.65s forwards;
}
.intro-bar {
  width: 40px; height: 2px;
  background: var(--amber);
  border-radius: 2px;
  margin-top: 4px;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  animation: introBar 0.8s cubic-bezier(0.16,1,0.3,1) 0.85s forwards;
}

@keyframes introMark {
  from { opacity: 0; transform: scale(0.6) rotate(-8deg); }
  to   { opacity: 1; transform: scale(1) rotate(0deg); }
}
@keyframes introSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes introBar {
  from { opacity: 0; transform: scaleX(0); }
  to   { opacity: 1; transform: scaleX(1); }
}

