/*
Theme Name: Het Biggetje Theme (Clean)
Theme URI: https://hetbiggetje.nl
Description: Minimal theme for Elementor. Contains only Header, Footer, WhatsApp, and CSS classes.
Version: 3.2
*/

/* 1. VARIABLES */
:root {
    --groen: #6b8e6b;
    --groen-dark: #5a7a5a;
    --groen-donker: #2c3e2d;
    --tekst: #3d3d3d;
    --bg: #fdfcfa;
}

/* 2. GLOBAL RESET & SCROLL SETTINGS */
html {
    /* We use JS for the animation, but this ensures the offset is correct */
    scroll-padding-top: 100px; 
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--tekst);
    background-color: var(--bg);
    margin: 0; padding: 0;
}

a { text-decoration: none; color: var(--groen); transition: 0.3s; }
a:hover { color: var(--groen-dark); }

/* 3. THEME HEADER (Sticky) */
.site-header {
    background: rgba(253, 252, 250, 0.95); /* Slight transparency */
    backdrop-filter: blur(5px); /* Frosted glass effect */
    padding: 0.8rem 2rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    
    /* Sticky Logic */
    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    width: 100%;
    box-sizing: border-box;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0; padding: 0;
    align-items: center;
}
.main-navigation a { 
    color: #5a5a5a; 
    font-weight: 500; 
    font-size: 0.95rem;
}

/* Menu Button Style (Add class 'menu-cta' in WordPress Menu) */
.menu-cta a {
    background-color: var(--groen) !important;
    color: white !important;
    padding: 10px 25px !important;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-weight: 600 !important;
}
.menu-cta a:hover {
    background-color: var(--groen-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(107, 142, 107, 0.3);
}

/* 4. WHATSAPP WIDGET */
.whatsapp-float {
    position: fixed;
    width: 80px; height: 80px;
    bottom: 30px; right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 9999;
}
.whatsapp-float:hover { background-color: #128c7e; transform: scale(1.1); }
.whatsapp-icon { width: 48px; height: 48px; fill: white; }

/* =========================================
   5. FOOTER STYLES
   ========================================= */
.site-footer {
    background-color: var(--groen-donker); /* #2c3e2d */
    color: rgba(255,255,255,0.7);
    padding: 4rem 2rem 1rem;
    font-size: 0.95rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    /* 3 Columns */
    grid-template-columns: 1.5fr 1fr 1fr; 
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-col h4 {
    color: white;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col p {
    line-height: 1.6;
    margin-bottom: 0;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

/* Mobile Footer */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
}

/* =========================================
   6. ELEMENTOR HELPER CLASSES
   ========================================= */

/* Hero Title */
.hb-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    line-height: 1.1;
}

/* History Image Shadow */
.hb-history-img img {
    border-radius: 12px;
    box-shadow: 15px 15px 0px #e8e6e1;
}

/* Wellness Cards (Hottub/Sauna) */
.hb-wellness-card {
    height: 500px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease;
}
.hb-wellness-card:hover { transform: translateY(-5px); }

/* Gradient Overlay */
.hb-wellness-card::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(44,62,45,0.95) 0%, rgba(44,62,45,0) 100%);
    z-index: 1;
}

/* Content inside Wellness Card */
.hb-wellness-card .elementor-widget-wrap {
    position: relative; z-index: 2;
    height: 100%;
    display: flex !important; flex-direction: column; justify-content: flex-end;
    padding: 2rem;
}
.hb-wellness-card h3, .hb-wellness-card p { color: white !important; }

@media(max-width: 768px) {
    .hb-hero-title { font-size: 2.5rem; }
    .site-header { padding: 0.8rem 1rem; }
    .main-navigation { display: none; } /* Hide menu on mobile */
}

/* =========================================
   7. LOGO & BRANDING STYLES
   ========================================= */

/* Header Branding Container */
.brand-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none !important;
}

/* Header Logo Image */
.site-header .custom-logo {
    height: 60px; 
    width: auto;
    /* Blend mode to hide white background in header */
    mix-blend-mode: multiply; 
}

/* Header Text */
.brand-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--groen-donker);
    white-space: nowrap;
}

/* Mobile: Hide text */
@media (max-width: 768px) {
    .brand-text { display: none; }
    .site-header .custom-logo { height: 50px; }
}

/* --- FOOTER BRANDING (Row Style) --- */

/* Container for Footer Logo + Text */
.branding-col {
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: left;
}

/* Footer Logo Badge */
.footer-logo {
    flex-shrink: 0;
    display: inline-block;
}

.footer-logo .custom-logo-link img {
    height: 170px;
    width: auto;
    background-color: white; /* White circle background */
    padding: 6px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    display: block;
}

/* Mobile Footer Branding */
@media (max-width: 768px) {
    .branding-col {
        flex-direction: column;
        text-align: center;
    }
}

/* =========================================
   8. MOBILE MENU STYLES
   ========================================= */

/* Hide Toggle Button on Desktop */
.menu-toggle {
    display: none;
}

/* Mobile & Tablet Logic */
@media (max-width: 768px) {
    
    /* 1. Style the Hamburger Button */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 10001;
    }
    
    .menu-toggle span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: var(--groen-donker);
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    /* 2. The Menu Container (Hidden by default) */
    .main-navigation {
        display: none; /* Hidden until clicked */
        position: absolute;
        top: 100%; /* Push it below the header */
        left: 0;
        width: 100%;
        background-color: var(--bg);
        border-bottom: 1px solid rgba(0,0,0,0.1);
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        padding: 0;
        z-index: 10000;
    }

    /* 3. The Class JS will add to show the menu */
    .main-navigation.toggled {
        display: block;
        animation: slideDown 0.3s ease forwards;
    }

    /* 4. Stack links vertically */
    .main-navigation ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .main-navigation li {
        width: 100%;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

    .main-navigation a {
        display: block;
        padding: 15px 2rem;
        font-size: 1.1rem;
    }

    /* Reset the CTA button style for mobile so it fits nicely */
    .menu-cta a {
        background: none !important;
        color: var(--groen) !important;
        padding: 15px 2rem !important;
        border-radius: 0;
        box-shadow: none;
    }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}