/* ================================================================
   OPPASSERWILMA.NL — STIJLBLAD

   KLEUREN AANPASSEN:
   Verander de waarden hieronder — alle kleuren worden dan
   automatisch overal op de pagina bijgewerkt.
   ================================================================ */

:root {
    --petrol:   #28808a;
    --bosgroen: #114015;
    --oranje:   #f57c35;
    --creme:    #fefac5;
    --mint:     #cbfbfc;

    /* Tekst & neutrale tinten — normaal niet nodig om aan te passen */
    --wit:      #ffffff;
    --donker:   #1c1c1c;
    --grijs:    #5a5a5a;

    /* Typografie */
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans:  'Inter', system-ui, -apple-system, sans-serif;

    /* Lay-out */
    --max-breedte:      1200px;
    --container-padding: clamp(20px, 5vw, 60px);
    --sectie-padding:    clamp(50px, 7vw, 100px);

    /* Animaties */
    --overgang: 0.3s ease;
}


/* ================================================================
   RESET & BASIS
   ================================================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--donker);
    line-height: 1.75;
    overflow-x: hidden;
    background: var(--wit);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}


/* ================================================================
   TYPOGRAFIE
   ================================================================ */

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    line-height: 1.12;
    font-weight: 700;
}

h1 { font-size: clamp(3.5rem, 9vw, 7.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: 1.3rem; font-weight: 700; }

p {
    margin-bottom: 1.1rem;
}
p:last-child {
    margin-bottom: 0;
}

.intro {
    font-size: 1.13rem;
    font-weight: 500;
    color: var(--donker);
    line-height: 1.65;
}

.licht { color: var(--wit); }

/* Klein label boven koppen */
.label {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--petrol);
    margin-bottom: 1rem;
}

.label-licht { color: var(--mint); }


/* ================================================================
   CONTAINER
   ================================================================ */

.container {
    max-width: var(--max-breedte);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.container-smal {
    max-width: 740px;
}


/* ================================================================
   KNOPPEN
   ================================================================ */

.btn-primary {
    display: inline-block;
    background: var(--oranje);
    color: var(--wit);
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    padding: 0.9rem 2.3rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    letter-spacing: 0.01em;
    transition: background var(--overgang), transform var(--overgang), box-shadow var(--overgang);
    box-shadow: 0 4px 20px rgba(245, 124, 53, 0.35);
}

.btn-primary:hover {
    background: #d96820;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(245, 124, 53, 0.45);
}

.btn-secundair {
    display: inline-block;
    color: var(--petrol);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.75rem 1.8rem;
    border-radius: 50px;
    border: 2px solid var(--petrol);
    cursor: pointer;
    margin-top: 1.5rem;
    transition: background var(--overgang), color var(--overgang), transform var(--overgang);
}

.btn-secundair:hover {
    background: var(--petrol);
    color: var(--wit);
    transform: translateY(-2px);
}

.btn-nav {
    display: inline-block;
    background: var(--oranje);
    color: var(--wit) !important;
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.55rem 1.4rem;
    border-radius: 50px;
    transition: background var(--overgang), transform var(--overgang);
}

.btn-nav:hover {
    background: #d96820;
    transform: translateY(-1px);
}

.btn-breed {
    width: 100%;
    text-align: center;
    font-size: 1.05rem;
    padding: 1rem 2rem;
}


/* ================================================================
   NAVIGATIE
   ================================================================ */

#nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.4rem 0;
    transition: background var(--overgang), box-shadow var(--overgang), padding var(--overgang);
}

/* Stijl nadat gebruiker heeft gescrold — toegevoegd via JS */
#nav.gescrold {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.07);
    padding: 0.85rem 0;
}

.nav-inner {
    max-width: var(--max-breedte);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--wit);
    letter-spacing: -0.01em;
    transition: color var(--overgang);
    position: relative;
    z-index: 1001;
}

#nav.gescrold .nav-logo {
    color: var(--bosgroen);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
    transition: color var(--overgang);
    position: relative;
}

/* Oranje lijn onder nav-link bij hover */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--oranje);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--overgang);
}

.nav-link:hover::after {
    transform: scaleX(1);
}

#nav.gescrold .nav-link {
    color: var(--donker);
}

/* Hamburger knop (mobiel) */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    position: relative;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--wit);
    border-radius: 2px;
    transition: all var(--overgang);
}

#nav.gescrold .hamburger span {
    background: var(--donker);
}

/* Hamburger → kruisje animatie */
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ================================================================
   WAVE DIVIDERS (diagonale overgangen tussen secties)
   De SVG polygon-kleur bepaalt de kleur van de volgende sectie.
   ================================================================ */

.wave-bottom {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    overflow: hidden;
    line-height: 0;
    pointer-events: none;
}

.wave-bottom svg {
    display: block;
    width: 100%;
    height: 80px;
}


/* ================================================================
   HERO SECTIE

   FOTO AANPASSEN:
   Vervang de url() hieronder door jouw eigen foto.
   Voorbeeld: url('images/hero.jpg')
   Zet je foto dan in de map 'images/' naast index.html.
   ================================================================ */

#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px var(--container-padding) 120px;
    overflow: hidden;

    /* ↓↓ VERANDER HIER DE ACHTERGROND-FOTO ↓↓ */
    background-image: url('images/wilmahero.jpg');
    background-size: cover;
    background-position: center;
    background-color: var(--bosgroen); /* fallback als foto niet laadt */
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        150deg,
        rgba(17, 64, 21, 0.85) 0%,
        rgba(40, 128, 138, 0.65) 55%,
        rgba(17, 64, 21, 0.55) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 860px;
}

.hero-content .label {
    color: var(--mint);
    margin-bottom: 0.75rem;
}

.hero-content h1 {
    color: var(--creme);
    margin-bottom: 1.2rem;
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.25);
}

.hero-tagline {
    font-size: clamp(1.1rem, 2.5vw, 1.45rem);
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
    line-height: 1.65;
    margin-bottom: 2.5rem;
}


/* ================================================================
   OVER WILMA SECTIE
   ================================================================ */

#over-wilma {
    position: relative;
    background: var(--creme);
    padding: var(--sectie-padding) 0;
    padding-bottom: calc(var(--sectie-padding) + 120px);
}

/* Twee-koloms grid: foto links, tekst rechts */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 100px);
    align-items: center;
}

/* Foto */
.foto-kolom {
    position: relative;
}

.foto-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: var(--petrol);
}

/* Gekleurde plaatshouder zolang er geen foto is */
.foto-plaatshouder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--petrol) 0%, var(--bosgroen) 100%);
    font-family: var(--font-serif);
    font-size: 9rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.18);
    user-select: none;
}

.profiel-foto {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Decoratief oranje vlak achter de foto */
.foto-wrapper::after {
    content: '';
    position: absolute;
    bottom: -18px;
    right: -18px;
    width: 55%;
    height: 55%;
    background: var(--oranje);
    opacity: 0.18;
    border-radius: 12px;
    z-index: -1;
    pointer-events: none;
}

/* Tekst */
.tekst-kolom {
    padding: 1rem 0;
}

.tekst-kolom h2 {
    color: var(--bosgroen);
    margin-bottom: 1.5rem;
}

.tekst-kolom p {
    color: var(--grijs);
    font-size: 1rem;
    line-height: 1.8;
}


/* ================================================================
   VERSPRINGENDE FOTOBALK
   ================================================================ */

.foto-balk-wrapper {
    max-width: var(--max-breedte);
    margin: 4rem auto 0;
    padding: 0 var(--container-padding);
}

.foto-balk {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: clamp(20px, 4vw, 56px);
}

.foto-balk-item {
    border-radius: 50%;
    overflow: hidden;
    flex: 0 0 clamp(160px, 26vw, 300px);
    aspect-ratio: 1 / 1;
}

.foto-balk-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.foto-balk-item:hover img {
    transform: scale(1.06);
}

/* Alle drie op gelijke hoogte */
.foto-balk-1,
.foto-balk-2,
.foto-balk-3 {
    margin-top: 0;
}

/* Homeless & Happy: iets naar rechts zodat gezicht goed in cirkel valt */
.foto-balk-1 img {
    object-position: 60% center;
}

@media (max-width: 640px) {
    .foto-balk {
        gap: 16px;
    }
    .foto-balk-item {
        flex: 0 0 clamp(100px, 28vw, 160px);
    }
    .foto-balk-1 { margin-top: 24px; }
    .foto-balk-2 { margin-top: 0; }
    .foto-balk-3 { margin-top: 40px; }
}


/* ================================================================
   DE LEZING SECTIE
   ================================================================ */

#de-lezing {
    position: relative;
    background: var(--bosgroen);
    padding: var(--sectie-padding) 0;
    padding-bottom: calc(var(--sectie-padding) + 60px);
    text-align: center;
}

#de-lezing h2 {
    margin-bottom: 1.2rem;
}

.sectie-intro {
    font-size: 1.08rem;
    max-width: 680px;
    margin: 0 auto 3.5rem;
    line-height: 1.8;
}

.sectie-intro.licht {
    color: rgba(255, 255, 255, 0.72);
}

/* Drie blokken naast elkaar */
.blokken-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(16px, 3vw, 36px);
    margin-bottom: 4.5rem;
    text-align: left;
}

.blok {
    background: var(--oranje);
    border: none;
    border-radius: 16px;
    padding: clamp(24px, 3vw, 40px);
    transition: background var(--overgang), transform var(--overgang);
}

.blok:hover {
    background: #e06820;
    transform: translateY(-5px);
}

.blok h3 {
    color: var(--bosgroen);
    margin-bottom: 0.7rem;
    font-size: 1.2rem;
}

.blok p {
    color: rgba(17, 64, 21, 0.85);
    font-size: 0.96rem;
    line-height: 1.78;
    margin-bottom: 0;
}

/* Grote quote */
.grote-quote {
    max-width: 680px;
    margin: 0 auto;
    padding: 2.5rem 3rem;
    background: var(--creme);
    border-left: 4px solid var(--oranje);
    border-radius: 0 16px 16px 0;
    text-align: left;
}

.grote-quote p {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: var(--bosgroen);
    line-height: 1.4;
    margin-bottom: 1rem;
}

.grote-quote cite {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--petrol);
    font-style: normal;
    letter-spacing: 0.04em;
}


/* ================================================================
   CONTACT SECTIE
   ================================================================ */

#contact {
    position: relative;
    background: var(--mint);
    padding: var(--sectie-padding) 0 calc(var(--sectie-padding) + 20px);
    text-align: center;
}

#contact .label {
    color: var(--petrol);
}

#contact h2 {
    color: var(--bosgroen);
    margin-bottom: 0.75rem;
}

#contact .sectie-intro {
    color: var(--grijs);
    margin-bottom: 2.5rem;
}

/* Formulier kaart */
.form {
    background: var(--wit);
    padding: clamp(30px, 5vw, 56px);
    border-radius: 20px;
    box-shadow: 0 12px 60px rgba(17, 64, 21, 0.1);
    text-align: left;
    margin-bottom: 1.5rem;
}

.form-rij {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-groep {
    margin-bottom: 1.5rem;
}

.form-groep:last-of-type {
    margin-bottom: 2rem;
}

label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--donker);
    margin-bottom: 0.5rem;
    letter-spacing: 0.01em;
}

.ster {
    color: var(--oranje);
}

input,
textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.97rem;
    color: var(--donker);
    background: #f7f8f9;
    border: 1.5px solid #dde3e8;
    border-radius: 10px;
    outline: none;
    transition: border-color var(--overgang), box-shadow var(--overgang), background var(--overgang);
}

input:focus,
textarea:focus {
    border-color: var(--petrol);
    box-shadow: 0 0 0 3px rgba(40, 128, 138, 0.15);
    background: var(--wit);
}

input::placeholder,
textarea::placeholder {
    color: #aab3be;
}

textarea {
    resize: vertical;
    min-height: 130px;
}

/* Direct contact onder het formulier */
.contact-direct {
    font-size: 0.95rem;
    color: var(--grijs);
    margin-top: 1.5rem;
}

.contact-direct a {
    color: var(--petrol);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--overgang);
}

.contact-direct a:hover {
    color: var(--bosgroen);
}


/* ================================================================
   FOOTER
   ================================================================ */

#footer {
    background: var(--bosgroen);
    padding: 3rem 0 1.5rem;
    color: rgba(255, 255, 255, 0.65);
}

.footer-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--wit);
    margin-bottom: 0.3rem;
}

.footer-sub {
    font-size: 0.87rem;
    margin: 0;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    text-align: right;
}

.footer-nav a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--overgang);
}

.footer-nav a:hover {
    color: var(--mint);
}

.footer-copy {
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.35);
    padding-top: 1.5rem;
}


/* ================================================================
   ANIMATIES — fade-in bij scrollen
   Elementen met data-animate starten onzichtbaar.
   script.js voegt de class 'zichtbaar' toe als het element
   in beeld komt, waarna de CSS-transitie afspeelt.
   ================================================================ */

[data-animate] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}

[data-animate].zichtbaar {
    opacity: 1;
    transform: translateY(0);
}


/* ================================================================
   RESPONSIVE — TABLET (max 900px)
   ================================================================ */

@media (max-width: 900px) {

    /* Toon hamburger, verberg normale menu */
    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: fixed;
        inset: 0;
        background: var(--bosgroen);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2.2rem;
        z-index: 1000;
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-menu .nav-link {
        color: var(--wit);
        font-size: 1.3rem;
    }

    .nav-menu .nav-link::after {
        display: none;
    }

    /* Lezing blokken onder elkaar */
    .blokken-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    .grote-quote {
        padding: 2rem;
    }
}


/* ================================================================
   RESPONSIVE — MOBIEL (max 640px)
   ================================================================ */

@media (max-width: 640px) {

    /* Over Wilma: kolommen onder elkaar */
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .foto-kolom {
        max-width: 320px;
        margin: 0 auto;
    }

    /* Formulier: twee velden naast elkaar → onder elkaar */
    .form-rij {
        grid-template-columns: 1fr;
    }

    /* Footer: gecentreerd */
    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-nav {
        text-align: center;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.2rem;
    }

    /* Quote: geen linker border maar bovenkant */
    .grote-quote {
        border-left: none;
        border-top: 4px solid var(--oranje);
        border-radius: 0 0 16px 16px;
    }
}
