/* ============================================================
   Cariva Website — Gedeelde stylesheet
   ============================================================ */

/* ── Reset ── */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root { color-scheme: light only; }

/* ── Basis typografie ── */
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #2d3748;
    line-height: 1.7;
    background: #ffffff;
}

a { color: #2b6cb0; text-decoration: none; }
a:hover { color: #1a365d; }

/* ── Navigatie ── */
.topnav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(26, 54, 93, 0.95);
    backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 2rem; height: 56px;
    transition: background 0.3s, box-shadow 0.3s;
}
.topnav.scrolled {
    background: rgba(255,255,255,0.97);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.topnav-brand {
    display: flex; align-items: center; gap: 0.5rem;
    text-decoration: none;
}
.topnav-brand img {
    height: 42px;
    filter: brightness(0) invert(1);
    transition: filter 0.3s;
}
.topnav.scrolled .topnav-brand img { filter: none; }

.topnav-links {
    display: flex; align-items: center; gap: 1.5rem;
}
.topnav-links a {
    font-size: 0.85rem; font-weight: 500; text-decoration: none;
    color: rgba(255,255,255,0.8); transition: color 0.3s;
}
.topnav-links a:hover { color: white; }
.topnav.scrolled .topnav-links a { color: #718096; }
.topnav.scrolled .topnav-links a:hover { color: #2d3748; }

.topnav-cta {
    padding: 0.45rem 1.2rem;
    background: white;
    color: #1a365d !important;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}
.topnav-cta:hover { background: #ebf8ff; }
.topnav.scrolled .topnav-cta {
    background: #2b6cb0;
    color: white !important;
}
.topnav.scrolled .topnav-cta:hover { background: #1a365d; }

/* Hamburger menu (mobiel) */
.topnav-toggle {
    display: none;
    background: none; border: none; cursor: pointer;
    padding: 0.5rem;
}
.topnav-toggle span {
    display: block; width: 22px; height: 2px;
    background: white; margin: 5px 0;
    transition: background 0.3s;
}
.topnav.scrolled .topnav-toggle span { background: #2d3748; }

/* ── Hero (gedeeld basispatroon) ── */
.hero {
    padding: 7rem 2rem 4rem;
    background: linear-gradient(135deg, #1a365d 0%, #2b6cb0 50%, #4c9ed9 100%);
    color: white;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: -30%; right: -10%;
    width: 600px; height: 600px; border-radius: 50%;
    background: rgba(255,255,255,0.03);
}
.hero::after {
    content: ''; position: absolute; bottom: -20%; left: -10%;
    width: 400px; height: 400px; border-radius: 50%;
    background: rgba(255,255,255,0.02);
}
.hero-inner {
    max-width: 1100px; margin: 0 auto;
    position: relative; z-index: 1;
}
.hero h1 {
    font-size: 2.4rem; font-weight: 800; line-height: 1.15;
    margin-bottom: 1rem;
}
.hero-sub {
    font-size: 1.05rem; color: rgba(255,255,255,0.85);
    line-height: 1.6; margin-bottom: 1.5rem; max-width: 520px;
}

/* ── CTA knoppen ── */
.btn-primary {
    display: inline-block;
    padding: 0.65rem 1.5rem;
    background: white;
    color: #1a365d !important;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-primary:hover { background: #ebf8ff; }

.btn-secondary {
    display: inline-block;
    padding: 0.65rem 1.5rem;
    background: transparent;
    color: white !important;
    border: 2px solid rgba(255,255,255,0.35);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-secondary:hover { border-color: rgba(255,255,255,0.7); }

.btn-blue {
    display: inline-block;
    padding: 0.65rem 1.5rem;
    background: #2b6cb0;
    color: white !important;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-blue:hover { background: #1a365d; }

.btn-outline {
    display: inline-block;
    padding: 0.65rem 1.5rem;
    background: white;
    color: #2b6cb0 !important;
    border: 2px solid #2b6cb0;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-outline:hover { background: #ebf8ff; }

/* ── Secties ── */
.section {
    padding: 4rem 2rem;
}
.section-inner {
    max-width: 900px;
    margin: 0 auto;
}
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}
.section-header h2 {
    font-size: 1.8rem; font-weight: 800; color: #1a202c;
    margin-bottom: 0.5rem;
}
.section-header p {
    font-size: 1rem; color: #718096;
    max-width: 500px; margin: 0 auto;
}

/* ── CTA balk ── */
.cta-bar {
    background: #1a365d;
    padding: 3.5rem 2rem;
    text-align: center;
    color: white;
}
.cta-bar h2 {
    font-size: 1.5rem; font-weight: 700;
    margin-bottom: 0.5rem;
}
.cta-bar p {
    font-size: 0.95rem; opacity: 0.8;
    margin-bottom: 1.5rem;
    max-width: 450px; margin-left: auto; margin-right: auto;
}

/* ── Footer ── */
.footer {
    text-align: center;
    padding: 2rem;
    color: #a0aec0;
    font-size: 0.8rem;
    border-top: 1px solid #e2e8f0;
    background: white;
}
.footer a { color: #718096; text-decoration: none; }
.footer a:hover { color: #2d3748; }
.footer-links {
    margin-top: 0.5rem;
}
.footer-links a {
    margin: 0 0.75rem;
}

/* ── Scroll animaties ── */
.reveal {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal.from-left { transform: translateX(-50px); }
.reveal.from-right { transform: translateX(50px); }
.reveal.from-left.visible,
.reveal.from-right.visible { transform: translateY(0) translateX(0); }

/* ── Quote sectie ── */
.quote-section {
    background: #fffbeb; padding: 3.5rem 2rem;
    border-top: 1px solid #fde68a; border-bottom: 1px solid #fde68a;
}
.quote-inner { max-width: 600px; margin: 0 auto; text-align: center; }
.quote-inner blockquote {
    font-size: 1.3rem; font-style: italic; color: #92400e;
    line-height: 1.5; margin-bottom: 0.5rem;
}
.quote-inner .author { font-size: 0.85rem; color: #b45309; }

/* ── Responsive ── */
@media (max-width: 800px) {
    .hero h1 { font-size: 1.8rem; }
    .hero { padding: 6rem 1.5rem 3rem; }

    .topnav-links {
        display: none;
        position: absolute;
        top: 56px; left: 0; right: 0;
        background: rgba(26, 54, 93, 0.98);
        flex-direction: column;
        padding: 1rem 2rem;
        gap: 0.75rem;
    }
    .topnav.scrolled .topnav-links {
        background: rgba(255,255,255,0.98);
    }
    .topnav-links.open { display: flex; }
    .topnav-toggle { display: block; }

    .section { padding: 3rem 1.5rem; }
    .section-header h2 { font-size: 1.4rem; }
}
