:root {
    --color-teal: #0d9488;       
    --color-gold: #f59e0b;       
    --color-coral: #fb7185;     
    --color-mint: #34d399;       
    
    --bg-cream: #fffbf5;         
    --text-dark: #374151;        
    --text-heading: #111827;     
    
    --border-radius-card: 24px;  
    --font-head: 'Nunito', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

* { box-sizing: border_box; margin: 0; padding: 0; }

h1, h2, h3, h4 {
    font-family: var(--font-head);
    color: var(--text-heading);
    font-weight: 800;
    line-height: 1.2;
}
h1 { 
    font-size: 3rem; 
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}
.highlight-line {
    position: relative;
    display: inline-block;
}
.highlight-line::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 6px;
    background-color: var(--color-coral);
    border-radius: 3px;
}

h2 { font-size: 2.2rem; }

a { text-decoration: none; transition: 0.3s; }

.container {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 25px;
    position: relative;
    z-index: 2;
}

body.no-scroll {
    overflow: hidden;
    touch-action: none;
}

.blob-bg {
    position: absolute;
    z-index: -1;
    border-radius: 40% 60% 70% 30% / 40% 50% 60%;
    opacity: 0.15;
    filter: blur(40px);
    pointer-events: none;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    will-change: transform;
}

.hero { position: relative; padding: 80px 0 160px 0; overflow: visible; }
.hero-blob-1 { position: absolute; top: -100px; left: -100px; width: 600px; height: 600px; background: var(--color-teal);}
.hero-blob-2 { position: absolute; top: 200px; right: 50px; width: 500px; height: 500px; background: var(--color-gold); opacity: 0.1;}

.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-text h1 span { color: var(--color-teal); }
.hero-text p { font-size: 1.15rem; margin: 25px 0 35px 0; max-width: 500px; }

.hero-image {
    width: 100%; height: 450px; object-fit: cover;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    position: relative; z-index: 2;
}
.hero-image-container { position: relative; }
.hero-image-accent {
    position: absolute; top: 20px; left: 20px; right: -20px; bottom: -20px;
    background: var(--color-coral);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; 
    z-index: 1;
    opacity: 0.2;
}

.routing-wrapper { margin-top: -100px; position: relative; z-index: 10; padding-bottom: 80px; }
.routing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }

.route-card {
    background: white; padding: 35px; border-radius: var(--border-radius-card);
    box-shadow: 0 15px 40px rgba(0,0,0,0.06); transition: all 0.3s ease;
    display: flex; flex-direction: column; justify-content: space-between; height: 100%;
    border: 2px solid transparent;
}
.route-card:hover { transform: translateY(-10px); box-shadow: 0 25px 50px rgba(0,0,0,0.08); }

.card-ouders h3 { color: var(--color-coral); } .card-ouders:hover { border-color: var(--color-coral); } .card-ouders .link-text { color: var(--color-coral); }
.card-jongeren h3 { color: var(--color-teal); } .card-jongeren:hover { border-color: var(--color-teal); } .card-jongeren .link-text { color: var(--color-teal); }
.card-pro h3 { color: var(--color-gold); } .card-pro:hover { border-color: var(--color-gold); } .card-pro .link-text { color: var(--color-gold); }

.route-card h3 { font-size: 1.5rem; margin-bottom: 15px; }
.route-card p { font-size: 1rem; color: #374151; margin-bottom: 25px; }
.link-text { font-weight: 700; display: flex; align-items: center; gap: 8px; font-size: 1rem; font-family: var(--font-head); }

.about-section { padding: 80px 0; position: relative; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.divider-left { height: 6px; width: 80px; background-color: var(--color-coral); margin-bottom: 30px; border-radius: 3px; }
.about-text p { font-size: 1.05rem; color: var(--text-dark); margin-bottom: 20px; opacity: 0.9; }

.methods-list { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.method-tag { 
    background: #ecfeff; color: var(--color-teal); padding: 8px 18px; 
    border-radius: 30px; font-size: 0.9rem; font-weight: 700; border: 1px solid #ccfbf1; 
}
.about-image {
    background-image: url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80');
    height: 500px; width: 100%; background-size: cover; 
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; 
    box-shadow: 0 20px 40px rgba(13, 148, 136, 0.1);
}

.services-section { padding: 100px 0; position: relative; overflow: hidden; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 60px auto; position: relative; z-index: 2; }
.section-header h2 span { color: var(--color-teal); }

.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 35px; position: relative; z-index: 2; }

.service-item {
    background: white; border-radius: var(--border-radius-card); overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05); transition: all 0.3s ease;
    border: 2px solid white; display: flex; flex-direction: column;
    cursor: pointer; 
}
.service-item:hover { transform: translateY(-7px); border-color: var(--color-teal); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }

.service-img-container { height: 220px; background-size: cover; background-position: center; }

.service-content { padding: 30px; flex: 1; display: flex; flex-direction: column; }
.service-content h3 { margin-bottom: 12px; font-size: 1.4rem; color: var(--text-heading); }
.service-content p { font-size: 1rem; color: #6b7280; margin-bottom: 25px; }

.read-more-btn { 
    margin-top: auto; align-self: flex-start; 
    color: var(--color-teal); font-weight: 800; 
    border-bottom: 3px solid rgba(13, 148, 136, 0.2); 
    transition: 0.2s;
}
.service-item:hover .read-more-btn { border-color: var(--color-teal); }

.modal-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5); z-index: 2000; backdrop-filter: blur(5px);
    align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s;
    transform: translateZ(0);
    will-change: opacity;
}
.modal-overlay.active { display: flex; opacity: 1; }

.modal-content {
    background: white; width: 90%; max-width: 600px;
    border-radius: 24px; padding: 40px; position: relative;
    transform: translateY(20px); transition: transform 0.3s;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15); border: 2px solid var(--color-teal);
    max-height: 85vh;
    overflow-y: auto;
    overscroll-behavior: none;
    backface-visibility: hidden;
    -webkit-overflow-scrolling: touch;
    will-change: transform, scroll-position;
}
.modal-overlay.active .modal-content { transform: translateY(0) translateZ(0); }

.close-modal {
    position: absolute; top: 15px; right: 15px; background: #f3f4f6; border: none;
    width: 35px; height: 35px; border-radius: 50%; font-size: 1.5rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center; color: #374151;
}
.close-modal:hover { background: var(--color-teal); color: white; }

.modal-content h3 { color: var(--color-teal); margin-bottom: 15px; font-size: 1.8rem; }
.modal-content p { font-size: 1rem; color: #4b5563; line-height: 1.6; margin-bottom: 20px; }
.modal-content ul { padding-left: 20px; margin-bottom: 20px; color: #4b5563; }
.modal-content li { margin-bottom: 8px; }

.modal-cta-btn {
    display: inline-block; background-color: var(--color-teal); color: white; 
    padding: 12px 30px; border-radius: 50px; font-weight: 700; text-decoration: none; margin-top: 10px;
    box-shadow: 0 10px 20px rgba(13, 148, 136, 0.2);
}
.modal-cta-btn:hover { background-color: #0f766e; transform: translateY(-2px); }

.steps-section { padding: 80px 0; position: relative; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 35px; text-align: center; margin-top: 50px; }

.step-item { 
    background: white; padding: 40px 25px; border-radius: var(--border-radius-card); 
    box-shadow: 0 5px 20px rgba(0,0,0,0.03); transition: 0.3s; position: relative;
}
.step-item:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.08); }

.step-number { 
    width: 60px; height: 60px; font-size: 1.5rem; font-weight: 800; color: white;
    border-radius: 50%; display: flex; align-items: center; justify-content: center; 
    margin: 0 auto 20px auto; 
}
.step-1 .step-number { background-color: var(--color-coral); }
.step-2 .step-number { background-color: var(--color-teal); }
.step-3 .step-number { background-color: var(--color-gold); }
.step-4 .step-number { background-color: var(--color-mint); }

.cta-container-wrapper { padding: 60px 0; position: relative; }
.cta-blob { bottom: -10%; left: -10%; width: 600px; height: 600px; background: var(--color-mint); opacity: 0.15; position: absolute; border-radius: 50%; filter: blur(50px); z-index: 0; }

.cta-bar {
    background: white; color: var(--text-heading); padding: 80px 40px; text-align: center;
    border-radius: var(--border-radius-card); margin: 0 auto; max-width: 900px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08); border: 1px solid #f3f0e7;
    position: relative; border-top: 6px solid var(--color-teal); z-index: 2;
}
.cta-bar h2 { color: var(--color-teal); margin-bottom: 15px; }
.cta-btn {
    background-color: var(--color-teal); color: white; padding: 15px 45px; font-weight: 800;
    border-radius: 50px; font-size: 1.1rem; display: inline-block; margin-top: 25px;
    box-shadow: 0 10px 20px rgba(13, 148, 136, 0.2); transition: 0.3s;
}
.cta-btn:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(13, 148, 136, 0.3); background-color: #0f766e; }

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .hero-text p { margin: 25px auto; }
    .hero-image { height: 350px; }
    .nav-menu { display: none; } 
    .about-grid { grid-template-columns: 1fr; }
    .about-image { height: 300px; order: -1; }
    .logo-img { height: 70px; } 
    .routing-grid { 
        grid-template-columns: 1fr; 
        gap: 90px;
    }
    .routing-wrapper { 
        margin-top: 0; 
        padding-top: 40px;
    }
    .hero-blob-1 {
        width: 300px !important;
        height: 300px !important;
        top: -50px !important;
        left: -50px !important;
    }
    .hero-blob-2 {
        top: 650px;
        width: 250px !important;
        height: 250px !important;
        right: -30px !important;
    }
    .modal-content {
        padding: 25px;
        width: 95%;
    }
}