/* ================================================================== */
/* 1. FONTS INLADEN                                                   */
/* ================================================================== */

/* --- BNC Ringe Sans (Heading Font) --- */
@font-face {
    font-family: 'BNC Ringe Sans';
    src: url('./fonts/BNCRINGESANS-LIGHT.woff2') format('woff2'),
         url('./fonts/BNCRINGESANS-LIGHT.OTF') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}   
@font-face {
    font-family: 'BNC Ringe Sans';
    src: url('./fonts/BNCRINGESANS-REGULAR.woff2') format('woff2'),
         url('./fonts/BNCRINGESANS-REGULAR.OTF') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
} 
@font-face {
    font-family: 'BNC Ringe Sans';
    src: url('./fonts/BNCRINGESANS-MEDIUM.woff2') format('woff2'),
         url('./fonts/BNCRINGESANS-MEDIUM.OTF') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
} 
@font-face {
    font-family: 'BNC Ringe Sans';
    src: url('./fonts/BNCRINGESANS-BOLD.woff2') format('woff2'),
         url('./fonts/BNCRINGESANS-BOLD.OTF') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
} 
@font-face {
    font-family: 'BNC Ringe Sans';
    src: url('./fonts/BNCRINGESANS-BLACK.woff2') format('woff2'),
         url('./fonts/BNCRINGESANS-BLACK.OTF') format('opentype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
} 

/* Fallback voor oude benaming */
@font-face {
    font-family: 'BNCringeSans';
    src: url('./fonts/BNCRINGESANS-BOLD.woff2') format('woff2'),
         url('./fonts/BNCRINGESANS-BOLD.OTF') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
} 
@font-face {
    font-family: 'BNCringeSans';
    src: url('./fonts/BNCRINGESANS-REGULAR.woff2') format('woff2'),
         url('./fonts/BNCRINGESANS-REGULAR.OTF') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
} 

/* --- EB Garamond (Body Font) --- */
@font-face {
    font-family: 'EBGaramond';
    src: url('./fonts/EBGaramond-VariableFont_wght.woff2') format('woff2'),
         url('./fonts/EBGaramond-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
} 
@font-face {
    font-family: 'EBGaramond';
    src: url('./fonts/EBGaramond-Italic-VariableFont_wght.woff2') format('woff2'),
         url('./fonts/EBGaramond-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
} 

/* ================================================================== */
/* 2. HUISSTIJL VARIABELEN & BASIS                                    */
/* ================================================================== */
:root {
    /* Fonts */
    --font-heading: 'BNC Ringe Sans', 'BNCringeSans', sans-serif; 
    --font-body: 'EBGaramond', serif;

    /* Kleuren */
    --color-mana-dark: #1A241D;    /* Diep donkergroen/zwart */
    --color-mana-olive: #4d4830;   
    --color-mana-gold: #d8b888;    
    --color-mana-paper: #F8F6F2;   /* Off-white */
    --color-mana-green: #D97706;   /* Agency Accent (Warm Orange) */

    /* Functioneel */
    --color-text: var(--color-mana-dark);
    --color-background: var(--color-mana-paper);
}

/* --- SCROLL GEDRAG & OFFSET FIX --- */
html {
    scroll-padding-top: 64px;
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 64px; 
    }
}

body {
    font-family: var(--font-body);
    background-color: var(--color-mana-paper);
    color: var(--color-text);
    
    /* AANPASSING: Achtergrond afbeelding verwijderd */
    background-image: none;
    
    -webkit-font-smoothing: antialiased;
}
/* ------------------------------------------------------------------ */
/* Glass card utility                                                 */
/* ------------------------------------------------------------------ */
.glass-card {
    background-color: rgba(255,255,255,0.04); /* subtle tint */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.06);
    transition: background-color 200ms ease, backdrop-filter 200ms ease, -webkit-backdrop-filter 200ms ease;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
.glass-card:hover {
    background-color: rgba(255,255,255,0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.glass-card--dark {
    background-color: rgba(0,0,0,0.18);
    border: 1px solid rgba(255,255,255,0.03);
}
@media (max-width: 768px) {
    .glass-card {
        background-color: rgba(255,255,255,0.08);
    }
}


/* Noise Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    mix-blend-mode: multiply;
}

::selection {
    background: var(--color-mana-green);
    color: white;
}

/* ================================================================== */
/* 3. TYPOGRAFIE                                                      */
/* ================================================================== */

h1, h2, h3, h4, h5, .font-heading { 
    font-family: var(--font-heading) !important; 
    font-weight: 700;
    letter-spacing: 0.04em; 
    text-transform: uppercase;
    line-height: 1.1;
    color: var(--color-mana-dark);
}

.text-white { color: #ffffff !important; }
.text-mana-brown { color: var(--color-mana-dark); }
.text-accent-orange { color: var(--color-mana-green); }

/* Navigatie Link */
.nav-link { 
    position: relative; 
    padding-bottom: 4px; 
    font-family: var(--font-heading);
    color: var(--color-mana-dark);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    transition: color 0.3s;
}
.nav-link::after { 
    content: ''; 
    position: absolute; width: 0; height: 2px; bottom: 0; left: 50%; 
    background-color: var(--color-mana-green); 
    transition: width 0.3s ease-in-out, left 0.3s ease-in-out; 
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; left: 0; }
.nav-link:hover, .nav-link.active { color: var(--color-mana-green); }

/* --- Over MANA: paragraphs use Garamond --- */
.section-mana-top .poetic-text,
.section-mana-top .poetic-text p {
    font-family: var(--font-body) !important;
}

/* ================================================================== */
/* 4. COMPONENTEN                                                     */
/* ================================================================== */

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    border-radius: 2px;
    background-color: var(--color-mana-dark);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700; 
    text-transform: uppercase;
    transition: all 0.18s ease, transform 0.18s ease;
    border: 2px solid var(--color-mana-dark);
    cursor: pointer;
    letter-spacing: 0.1em;
    line-height: 1;
    box-shadow: 5px 5px 0px rgba(77, 72, 48, 0.3);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--color-mana-green);
    border-color: var(--color-mana-green);
    color: var(--color-mana-dark) !important; /* Tekst donker bij hover */
    transform: translate(2px, 2px) scale(1.02);
    box-shadow: 2px 2px 0px rgba(77, 72, 48, 0.3);
    outline: none;
}

.btn-primary:focus-visible {
    box-shadow: 0 0 0 4px rgba(217,119,6,0.12);
}

/* Zwevende Knop */
.floating-contact {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    width: auto; 
    background-color: var(--color-mana-green);
    color: white;
    border-radius: 50px; 
    box-shadow: 0 4px 14px rgba(0,0,0,0.3);
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.floating-contact:hover {
    background-color: var(--color-mana-dark);
    transform: translateY(-2px);
}

/* Icon Invert Effect */
.icon-invert {
    filter: invert(1) brightness(100%);
    transition: transform 0.3s ease, filter 0.3s ease;
}
.group:hover .icon-invert {
    filter: invert(78%) sepia(26%) saturate(688%) hue-rotate(358deg) brightness(93%) contrast(88%);
    transform: scale(1.1);
}

/* Path Cards - FIX: Hardware Acceleration toegevoegd */
.path-card, .path-card img {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0); /* Activeert GPU */
    will-change: transform, filter; /* Vertelt browser wat er gaat veranderen */
}

.path-card {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid transparent;
}
/* Zoek dit blok in je style.css en vervang het */
.path-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px -5px rgba(217, 119, 6, 0.25); 
    border-color: var(--color-mana-green); 
    /* filter: brightness(1.1);  <-- DEZE REGEL VERWIJDEREN */
}

/* ================================================================== */
/* 5. SPECIFIEKE SECTIES (HOME)                                       */
/* ================================================================== */

/* HERO ACHTERGROND */
.hero-bg-home {
    position: relative;     
    width: 100%;
    background-color: #1a1512;
    overflow: hidden;
    /* FIX: Standaard scroll voor mobiele prestaties */
    background-attachment: scroll !important;
}

.hero-bg-home::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('./images/optimized-webp/shutterstock_2526315165.webp') !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* FIX: Scroll hier ook afdwingen */
    background-attachment: scroll; 
    filter: blur(3px);
    transform: scale(1.02);
    z-index: 0;
}

/* --- VOEG DIT STUKJE HIER TOE --- */
.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Dit zorgt dat je staande video het hele scherm vult */
    z-index: 0;        /* Video op de achtergrond */
    opacity: 0.6;      /* OPTIONEEL: Maak video iets donkerder zodat tekst leesbaar blijft */
}

/* Zorg dat je tekst en blob boven de video liggen */
.hero-bg-home > * {
    position: relative;
    z-index: 2;
}

/* --- Nieuwe Blob Frame Styling --- */
.blob-frame {
    position: absolute;
    top: 40%;
    left: 2%;
    
    /* Grootte afgestemd op de 'dikke' blob */
    width: 440px; 
    height: 440px;
    
    /* Klein beetje draaien om het organische effect te versterken */
    transform: translateY(-50%) rotate(-10deg); 
    
    z-index: 30;
    display: block;
    
    /* CRUCIAAL: Dit overschrijft alle standaard cirkels/rounded classes */
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;

    /* Dit zorgt voor de schaduw achter de blob-vorm */
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.25));
    transition: all 0.3s ease;
}

/* Zorg dat de afbeelding BINNEN de SVG ook zeker geen cirkel is */
.blob-frame img, 
.blob-frame image {
    border-radius: 0 !important;
}

.blob-frame:hover {
    filter: drop-shadow(0 30px 50px rgba(0,0,0,0.35));
    transform: translateY(-50%) rotate(-10deg) scale(1.02);
}

@media (max-width: 1024px) {
    .blob-frame {
        display: none;
    }
}

/* FIX: Parallax effect alleen inschakelen op desktop */
@media (min-width: 1024px) {
    .hero-bg-home::before,
    .hero-bg-home {
        background-attachment: fixed !important;
    }
}

/* --- 2. HERO BACKGROUND MET BLUR --- */
    .hero-bg-filosofie {
        position: relative;
        overflow: hidden;
        /* Geen background-image hier meer, die gaat naar ::before */
    }

    /* Het pseudo-element met de foto en de blur */
    .hero-bg-filosofie::before {
        content: '';
        position: absolute;
        inset: 0;
        z-index: 0; /* Helemaal achteraan */
        
        background-image: url('./images/optimized-webp/shutterstock_2565708459.webp'); 
        background-size: cover;
        background-position: center bottom;
        background-repeat: no-repeat;
        
        /* DE BLUR MAGIC */
        filter: blur(3px);
        transform: scale(1.02); /* Iets inzoomen om wazige randjes te voorkomen */
        
        background-attachment: scroll;
    }

    /* Zorg dat de donkere overlay boven de foto ligt, maar onder de tekst */
    .hero-bg-filosofie .absolute.inset-0 {
        z-index: 1;
    }

    /* Zorg dat de tekst en content boven alles liggen */
    .hero-bg-filosofie .relative.z-10 {
        z-index: 10;
    }

    /* Parallax effect alleen op desktop */
    @media (min-width: 1024px) {
        .hero-bg-filosofie::before {
            background-attachment: fixed;
        }
    }

/* --- MANA Manifest Secties --- */
.mana-manifest-section {
    font-family: 'BNC Ringe Sans', sans-serif;
}
.section-mana-top {
    position: relative;
    background-image: url('./images/optimized-webp/bg-groen.webp');
    background-size: cover;
    background-position: center;
    color: #ffffff;
    padding: 80px 20px;
    overflow: hidden;
}
.section-mana-top .content-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}
.section-mana-top h2 {
    font-weight: 400; 
    font-size: 2.5rem;
    margin-bottom: 40px;
    letter-spacing: 1px;
    color: white;
}
.poetic-text p {
    font-weight: 300; 
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    max-width: 600px;
}
.deco-spiral-top {
    position: absolute;
    top: 50%;
    right: -100px;
    transform: translateY(-50%);
    opacity: 0.4;
    width: 500px;
    z-index: 1;
    pointer-events: none;
    filter: invert(1) brightness(2); 
}

@media (max-width: 768px) {
    .deco-spiral-top {
        width: 300px;
        right: -50px;
        top: 10%;
        opacity: 0.2;
    }
    .section-mana-top h2 { font-size: 2rem; }
}

/* --- TESTIMONIALS --- */
.testimonial-item {
    display: none; 
    animation: fadeIn 0.8s ease-in-out;
}
.testimonial-item.active {
    display: block; 
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.dot {
    height: 10px;
    width: 10px;
    background-color: rgba(255,255,255,0.2);
    display: inline-block;
    margin: 0 4px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}
.dot.active, .dot:hover {
    background-color: var(--color-mana-green);
}

/* --- MOBIELE TICKER --- */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}
.animate-marquee {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 25s linear infinite;
}

/* FIX VOOR MOBIELE NAVIGATIE */
@media (max-width: 768px) {
    /* 1. Forceer altijd een donkere achtergrond op mobiel, ook bovenaan */
    #nav-placeholder {
        /* background-color: #1A241D !important; /* Mana Brown */
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }

    /* 2. Maak het hamburger icoon altijd Oranje op mobiel */
    #mobile-menu-btn {
        color: #D97706 !important; /* Accent Orange */
        position: relative; /* Of absolute, afhankelijk van je header */
        z-index: 10001; /* Zorgt dat hij ALTIJD bovenop ligt */
        cursor: pointer;
}
    /* 3. Zorg dat het logo altijd wit is op mobiel (vanwege de donkere achtergrond) */
    #nav-placeholder img {
        filter: brightness(0) invert(1) !important;
    }
}

/* FIX VOOR WITTE BALK RECHTS OP MOBIEL */
html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
    position: relative;
}

@media (max-width: 768px) {
    /* Maak de verborgen content geforceerd zichtbaar */
    .hover-reveal-content {
        transform: translateY(0) !important;
        opacity: 1 !important;
        position: relative !important;
        padding-top: 1rem !important;
    }

    /* Zorg dat de titel niet omhoog springt of van kleur verandert */
    .hover-reveal-card:hover .hover-title, 
    .hover-title {
        transform: none !important;
        color: white !important; /* Of #D97706 als je de accentkleur wilt */
        scale: 1 !important;
    }

    /* Verwijder de absolute positionering zodat de kaart meegroeit met de tekst */
    .hover-reveal-card .absolute.inset-0 {
        position: relative !important;
        height: auto !important;
        background: rgba(26, 36, 29, 0.9) !important; /* Zorgt voor leesbaarheid */
    }
}
