/* --- THEMA VARIABELEN --- */
:root[data-theme="light"] {
  --bg-main: #ffffff; --bg-card: #fcfcfc; --text-main: #624734;
  --text-soft: rgba(98, 71, 52, 0.75); --accent: #f16e12; 
  --accent-hover: #d85f0f; --accent-pale: rgba(241, 110, 18, 0.08); --border: rgba(98, 71, 52, 0.15);
  
  /* Fluid Typography Variabelen */
  --font-h1: clamp(1.8rem, 8vw, 2.8rem);
  --font-h2: clamp(1.5rem, 6vw, 2.2rem);
  --font-subtitle: clamp(1.1rem, 3vw, 1.3rem);
  --section-padding: clamp(40px, 10vw, 80px);
}
:root[data-theme="dark"] {
  --bg-main: #1a1512; --bg-card: #251e1a; --text-main: #f5f0ed;
  --text-soft: rgba(245, 240, 237, 0.85); --accent: #ff8b3d; 
  --accent-hover: #f16e12; --accent-pale: rgba(255, 139, 61, 0.15); --border: rgba(245, 240, 237, 0.2);
}

/* --- BASE FIXES --- */
*, *::before, *::after { box-sizing: border-box; }
body { 
    margin: 0; padding: 0; font-family: 'Inter', sans-serif; 
    background-color: var(--bg-main); color: var(--text-main); 
    transition: 0.3s; line-height: 1.6; overflow-x: hidden; 
}
h1, h3 { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; margin-top: 0; }
h2 { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; margin-top: 0; color: var(--accent); font-size: var(--font-h2); }
.container { max-width: 1150px; margin: 0 auto; padding: 0 20px; width: 100%; }

/* --- TOP BAR --- */
.top-bar { background: #fdfdfd; border-bottom: 1px solid var(--border); padding: 8px 0; }
.top-bar-inner { display: flex; justify-content: center; align-items: center; gap: 15px; flex-wrap: wrap; }
.top-group { display: flex; gap: 8px; align-items: center; }
.top-btn { background: var(--bg-main); border: 1px solid var(--border); padding: 5px 12px; border-radius: 8px; cursor: pointer; font-weight: 700; font-size: 0.75rem; color: var(--text-main); display: flex; align-items: center; gap: 6px; transition: 0.2s; }
.top-btn:hover { border-color: var(--accent); color: var(--accent); }

/* --- HEADER & NAV --- */
header { padding: clamp(15px, 4vw, 30px) 0; border-bottom: 1px solid var(--border); background: var(--bg-main); }
.header-inner { display: flex; justify-content: space-between; align-items: center; width: 100%; flex-wrap: wrap; gap: 20px; }
.brand { display: flex; flex-direction: column; align-items: flex-start; text-decoration: none; }
.brand img { height: clamp(60px, 15vw, 100px) !important; width: auto; display: block; margin-bottom: 8px; }
.brand small { color: var(--text-soft); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; line-height: 1.2; }

nav { display: flex; gap: 5px; align-items: center; flex-wrap: wrap; justify-content: center; }
nav a { text-decoration: none; color: var(--text-main); padding: 8px 15px; font-size: 14px; font-weight: 700; transition: 0.2s; border-radius: 8px; display: flex; align-items: center; }
nav a:hover { color: var(--accent); background: var(--accent-pale); }

/* --- BADGES --- */
.badge-new-nav { background: var(--accent); color: #fff !important; padding: 2px 7px; border-radius: 4px; font-size: 9px; font-weight: 900; margin-right: 8px; display: inline-block; text-transform: uppercase; animation: blinker 1.5s linear infinite; }
@keyframes blinker { 50% { opacity: 0.3; } }
.badge-coming { display: table; margin-left: auto; margin-right: 0; background: var(--accent-pale); color: var(--accent); padding: 4px 12px; border-radius: 6px; font-size: 11px; font-weight: 800; text-transform: uppercase; border: 1px solid var(--accent); margin-bottom: 15px; }

/* --- KNOPPEN --- */
.cta { background: var(--accent) !important; color: #fff !important; border-radius: 50px !important; padding: 14px 35px !important; font-weight: 800 !important; text-decoration: none !important; display: inline-block; border: none; cursor: pointer; transition: 0.3s; text-align: center; }
.cta-outline { background: transparent !important; color: var(--accent) !important; border: 2px solid var(--accent) !important; border-radius: 50px !important; padding: 12px 30px !important; font-weight: 800 !important; text-decoration: none !important; display: inline-block; transition: 0.3s; text-align: center; }
.cta:hover, .cta-outline:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(241, 110, 18, 0.25); }
.btn-story { display: inline-flex; align-items: center; gap: 12px; background: #fff; border: 2px solid var(--accent); color: var(--accent); font-weight: 800; font-size: 1.1rem; cursor: pointer; border-radius: 50px; padding: 14px 28px; transition: 0.3s; margin-top: 20px; box-shadow: 0 4px 15px rgba(241, 110, 18, 0.1); max-width: 100%; justify-content: center; }
.btn-story:hover { background: var(--accent); color: #fff; transform: translateX(8px); }

/* --- INDEX HERO & STATS --- */
.hero-home { display: flex; gap: clamp(30px, 8vw, 60px); align-items: center; padding: var(--section-padding) 0; flex-wrap: wrap; width: 100%; }
.hero-text { flex: 1; min-width: 280px; }
.hero-text h1 { font-size: var(--font-h1); margin-bottom: 15px; line-height: 1.1; color: var(--text-main); }
.hero-photo { flex: 0 1 400px; width: 100%; }
.hero-photo img { width: 100%; height: auto; border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.08); display: block; }
.subtitle { font-size: var(--font-subtitle); color: var(--accent); font-weight: 700; margin-bottom: 30px; }

.stats-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 15px; margin-bottom: 35px; width: 100%; }
.stat-box { padding: 20px; border-radius: 12px; border: 1px solid var(--border); text-align: center; background: var(--bg-main); transition: 0.3s; }
.stat-box:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-7px); box-shadow: 0 15px 30px rgba(241, 110, 18, 0.2); }
.stat-box:hover h3, .stat-box:hover p { color: #fff !important; }
.stat-box h3 { color: var(--accent); font-size: clamp(1.5rem, 5vw, 2rem); margin: 0; }
.stat-box p { font-size: 10px; font-weight: 800; text-transform: uppercase; margin: 5px 0 0; }

.growth-section { padding: var(--section-padding) 0; background: var(--bg-card); text-align: center; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 50px; text-align: left; }
.service-card { background: var(--bg-main); padding: clamp(25px, 5vw, 40px); border-radius: 20px; border: 1px solid var(--border); transition: 0.4s; position: relative; display: flex; flex-direction: column; }
.service-card:hover { transform: translateY(-10px); box-shadow: 0 0 0 3px var(--accent), 0 20px 40px rgba(241, 110, 18, 0.15); border-color: transparent; }
.btn-group { display: flex; gap: 10px; margin-top: auto; flex-wrap: wrap; }
.btn-group .cta-outline { flex: 1; min-width: 140px; text-align: center; padding: 12px 10px !important; font-size: 0.95rem; }

/* --- SUSTAINABLE PERFORMANCE SPECIFIEK --- */
.sp-hero-watermark { position: relative; padding: clamp(60px, 15vw, 120px) 20px; background: linear-gradient(rgba(255,255,255,0.6), rgba(255,255,255,0.85)), url('../img/Picture_SustainablePerformanceCoaching_2.webp') center/cover no-repeat; text-align: center; border-bottom: 1px solid var(--border); }
.sp-hero-content-inner { max-width: 950px; margin: 0 auto; position: relative; z-index: 2; }
.sp-hero-content-inner h1 { font-size: clamp(2rem, 8vw, 3.2rem); color: var(--text-main); margin-bottom: 10px; }
.sp-hero-content-inner .subtitle { font-size: clamp(1.2rem, 4vw, 1.6rem); color: var(--accent); font-weight: 800; margin-bottom: 30px; }
.sp-hero-content-inner p.intro-text { font-size: clamp(1.1rem, 3vw, 1.3rem); line-height: 1.8; margin-bottom: 40px; color: var(--text-main); font-weight: 700; }

.sp-target-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin: 40px 0; }
.sp-target-card { background: #fff; border: 2px solid var(--accent); color: var(--accent); padding: 20px 30px; border-radius: 15px; font-weight: 800; font-size: 1.15rem; display: flex; flex-direction: column; align-items: center; gap: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: 0.3s; cursor: default; }
.sp-target-card:hover { transform: translateY(-8px); background: var(--accent); color: #fff; box-shadow: 0 15px 40px rgba(241,110,18,0.2); }

.voor-wie-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 30px; }
.signalen-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 15px; margin-top: 30px; }

.sp-investment-box { background: var(--bg-card); border-left: 6px solid var(--accent); padding: clamp(20px, 5vw, 40px); border-radius: 0 25px 25px 0; box-shadow: 0 10px 30px rgba(0,0,0,0.03); margin: 30px 0; }
.sp-value-box { border: 2px solid var(--accent); padding: clamp(25px, 5vw, 35px) clamp(20px, 5vw, 50px); border-radius: 20px; text-align: center; margin-top: 50px; background: #fff; box-shadow: 0 10px 30px rgba(241, 110, 18, 0.08); }

.sp-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 40px; }
.sp-kotje { background: #fff; border: 1px solid var(--border); border-radius: 24px; padding: 35px 20px; text-align: center; transition: 0.3s; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 200px; }

.sp-theme-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 40px; }
.sp-action-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin: 40px 0; }

.basis-blokjes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin-top: 30px; }

.sp-final-kader { border: 2px solid rgba(241, 110, 18, 0.3); background: var(--bg-main); border-radius: 35px; padding: clamp(30px, 8vw, 60px) clamp(20px, 5vw, 40px); text-align: center; box-shadow: 0 15px 40px rgba(241, 110, 18, 0.05); margin-bottom: 60px; }
.sp-quality-box { background: linear-gradient(145deg, #ffffff, var(--bg-card)); border: 1px solid var(--border); border-left: 6px solid var(--accent); padding: clamp(25px, 5vw, 50px); border-radius: 20px; box-shadow: 0 15px 40px rgba(0,0,0,0.04); display: flex; gap: clamp(20px, 5vw, 40px); align-items: center; flex-wrap: wrap; justify-content: center; }
.sp-quality-icon { flex: 0 0 80px; width: 80px; height: 80px; background: var(--accent-pale); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--accent); }
.sp-quality-content { flex: 1; min-width: 250px; text-align: left; }

/* --- FOOTER & MODALS --- */
.final-cta { text-align: center; padding: var(--section-padding) 0; background: var(--bg-main); border-top: 1px solid var(--border); }
.site-footer { background: var(--bg-card); border-top: 1px solid var(--border); padding: 60px 0 0; width: 100%; clear: both; }
.newsletter-bar { background: var(--accent-pale); padding: clamp(40px, 8vw, 80px) 0; text-align: center; border-bottom: 1px solid var(--border); margin-bottom: 40px; }
#newsletterForm { max-width: 550px; margin: 30px auto 0; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
#newsletterForm input { padding: 12px 20px; border-radius: 50px; border: 1px solid var(--border); flex: 1; min-width: 250px; }

.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; padding: 0 0 60px; }

.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); display: none; align-items: center; justify-content: center; z-index: 3000; padding: 15px; backdrop-filter: blur(5px); }
.modal-overlay.active { display: flex; }
.modal-box { background: var(--bg-main); border-radius: 24px; padding: clamp(30px, 8vw, 60px); position: relative; box-shadow: 0 30px 100px rgba(0,0,0,0.4); width: 100%; }
.story-modal-box { max-width: 850px; max-height: 90vh; overflow-y: auto; text-align: left; }

/* --- TRAJECTEN PAGINA --- */
.traject-row { display: flex; gap: clamp(30px, 6vw, 60px); align-items: stretch; flex-wrap: wrap; margin-bottom: clamp(50px, 10vw, 100px); background: #fff; padding: clamp(25px, 5vw, 50px); border-radius: 30px; box-shadow: 0 15px 50px rgba(0,0,0,0.03); border: 1px solid var(--border); }
.traject-row.reverse { flex-direction: row-reverse; }
.traject-content { flex: 1.2; min-width: 280px; display: flex; flex-direction: column; justify-content: center; }
.traject-img-container { flex: 1; min-width: 280px; }
.traject-img-container img { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; min-height: 300px; }
.traject-title { font-size: clamp(1.5rem, 5vw, 2rem); margin-bottom: 10px; color: var(--text-main); margin-top: 0; }

/* --- AUTOMATISCH RESPONSIVE SCRIPT (AANVULLING ONDERAAN) --- */

@media (max-width: 1024px) {
    .header-inner { flex-direction: column; text-align: center; }
    .brand { align-items: center; }
}

@media (max-width: 768px) {
    .hero-home { flex-direction: column; text-align: center; }
    .hero-text { order: 2; }
    .hero-photo { order: 1; max-width: 300px; margin: 0 auto; }
    
    .sp-quality-box { flex-direction: column; text-align: center; }
    .sp-quality-content { text-align: center; }
    
    .traject-row { flex-direction: column !important; }
    .traject-content { order: 2; }
    .traject-img-container { order: 1; }
    
    .top-bar-inner { flex-direction: column; gap: 10px; }

    /* --- SPECIFIEKE LOGO & MOTTO FIX --- */
    .brand img { 
        height: 55px !important; 
        margin-bottom: 2px; 
    }
    .brand small { 
        font-size: 8px; 
        line-height: 1.1; 
        text-align: center;
    }
}

/* Universele fix voor mobiele vulling en scrollen */
img { max-width: 100%; height: auto; }
.container { width: 100%; padding-left: 20px; padding-right: 20px; }

/* Buttons altijd volledig breed op heel kleine schermen */
@media (max-width: 480px) {
    .cta, .cta-outline, .btn-story { width: 100%; }
    .btn-group { flex-direction: column; }
}

/* --- EXTRA VOOR PWA BANNER --- */
#pwa-install-banner {
    position: fixed; bottom: 20px; left: 20px; right: 20px;
    background: #fff; border: 2px solid var(--accent);
    border-radius: 15px; padding: 20px; z-index: 10001;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
}