/* ==========================================================================
   1. CSS Variabelen
   ========================================================================== */
:root {
    /* Kleurenpalet */
    --color-primary: #2d5a27;       /* Hoofdkleur groen */
    --color-primary-dark: #20411c;  /* Donkerder groen (hover/menu) */
    --color-text-main: #2e382e;     /* Hoofdtekst donkergrijs */
    --color-text-muted: #5b705e;    /* Subtiele tekst / bedrijfstitel */
    --color-bg-light: #f4f6f4;      /* Pagina achtergrond */
    --color-white: #ffffff;         /* Wit */
    --color-border: #e2e8e2;        /* Subtiele randen */

	/* Standaard hoogte vaststellen*/
	--header-top-height: 60px;
}

/* ==========================================================================
   2. Algemene Instellingen & Reset
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
	scroll-padding-top: var(--header-height, 80px);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--color-text-main);
    background-color: var(--color-bg-light);
    line-height: 1.6;
}

/* ==========================================================================
   3. Header, Topbalk & Banner (Desktop)
   ========================================================================== */

/* De header zelf is niet sticky */
header {
    position: static;
    background-color: var(--color-white);
    width: 100%;
	padding-top: 60px;
}

/* --------------------------------------------------------------------------
   Witte topbalk - sticky
   -------------------------------------------------------------------------- */

.header-top {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;

    width: 100%;
	height: 60px;
    padding: 0px 40px;

    background-color: var(--color-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* --------------------------------------------------------------------------
   Beperkte inhoudsbreedte binnen de topbalk
   -------------------------------------------------------------------------- */

/*
   Omdat .header-top zelf 100% breed moet blijven voor de achtergrond,
   gebruiken we hier een eenvoudige aanpak met padding.

   Bij een scherm breder dan 1400px blijft de inhoud visueel netjes
   binnen de beschikbare ruimte.
*/

@media screen and (min-width: 1480px) {
    .header-top {
        padding-left: max(40px, calc((100vw - 1400px) / 2));
        padding-right: max(40px, calc((100vw - 1400px) / 2));
    }
}

.brand-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary);
    justify-self: start;
}

.company-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    justify-self: center;
}

.top-right {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 15px;
}

.lang-switch {
    font-size: 0.9rem;
    font-weight: 600;
}

.lang-switch a {
    color: #666666;
    text-decoration: none;
}

.lang-switch a.active,
.lang-switch a:hover {
    color: var(--color-primary);
    font-weight: bold;
}


/* Duidelijke focus-rand voor toetsenbordnavigatie */

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 3px;
    border-radius: 3px;
}


/* --------------------------------------------------------------------------
   Visuele Hero Banner - scrollt weg
   -------------------------------------------------------------------------- */

.hero-banner {
    width: 100%;
    height: 180px;
    background-image: url('images/banner-bg.jpg');
    background-size: cover;
    background-position: center;
    background-color: var(--color-primary);
}

.banner-overlay {
    width: 100%;
    height: 100%;
    background: rgba(32, 65, 28, 0.7);

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 0 20px;
    text-align: center;
}

.banner-overlay h1 {
    color: var(--color-white);
    font-size: 1.6rem;
    font-weight: 400;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}


/* --------------------------------------------------------------------------
   Navigatiemenu Desktop - sticky onder de witte topbalk
   -------------------------------------------------------------------------- */

nav {
    position: sticky;
    top: var(--header-top-height, 60px);
    z-index: 999;

    background-color: var(--color-primary);
    width: 100%;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

nav ul {
    display: flex;
    justify-content: center;

    list-style: none;
    max-width: 1400px;

    margin: 0 auto;
}

nav ul li a {
    display: block;
    padding: 14px 25px;

    color: var(--color-white);
    text-decoration: none;
    font-weight: 500;

    transition: background-color 0.3s ease;
}

nav ul li a:hover {
    background-color: var(--color-primary-dark);
}
/* ==========================================================================
   4. Main Content & Grids
   ========================================================================== */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

section {
    background: var(--color-white);
    margin-bottom: 40px;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

h2 {
    color: var(--color-primary);
    margin-bottom: 25px;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 8px;
    font-size: 1.6rem;
}

/* Grids */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 25px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
    gap: 25px;
}

article.card {
    background: #fdfdfd;
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-primary);
    padding: 25px;
    border-radius: 6px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

article.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

article.card h3 {
    color: #1c261c;
    margin-top: 0;
    margin-bottom: 12px;
}

p {
    margin-bottom: 15px;
}

.cta-button {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-white);
    text-decoration: none;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 6px;
    transition: background-color 0.2s ease,
                transform 0.2s ease;
}

.cta-button:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-1px);
}
/* ==========================================================================
   5. Contact Card (Visitekaartje)
   ========================================================================== */
.contact-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 24px;
    max-width: 380px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.card-avatar {
    width: 44px;
    height: 44px;
    background-color: var(--color-primary);
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.5px;
}

.card-title {
    display: flex;
    flex-direction: column;
}

.card-title strong {
    font-size: 1.1rem;
    color: #1c261c;
}

.card-title span {
    font-size: 0.9rem;
    color: #666666;
}

.card-divider {
    height: 1px;
    background-color: var(--color-border);
    margin: 18px 0;
}

.card-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-links li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-links .icon {
    width: 18px;
    height: 18px;
    stroke: var(--color-primary);
    flex-shrink: 0;
}

.card-links a {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
}

.card-links a:hover {
    text-decoration: underline;
}
/* ==========================================================================
   6. Footer
   ========================================================================== */

footer {
    width: 100%;
    background-color: var(--color-primary);
    color: var(--color-white);
}

footer p {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}
/* ==========================================================================
   7. Mobiele Aanpassingen & Hamburgermenu (Fixed Topbar)
   ========================================================================== */
.hamburger-btn {
    display: none;
}

@media screen and (max-width: 768px) {
    
    /* Zorg dat de body op mobiel ruimte vrijhoudt voor de vaste topbalk */
    body {
        padding-top: 50px;
    }

    header {
        position: static; 
        box-shadow: none;
		padding-top: 0;
    }

    /* HARD VASTE TOPBALK (Fixed): Blijft ALTIJD in beeld op mobiel - FK260830
    .header-top {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 50px;
        z-index: 2000; 
        background-color: var(--color-white);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 15px;
    }*/
	.header-top {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    height: 50px;
    z-index: 2000;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 16px;

    background-color: var(--color-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);

    /* Belangrijk */
    box-sizing: border-box;
    }
    .top-right {
        display: flex;
        align-items: center;
        gap: 12px;
        flex-shrink: 0;
    }
    .brand-name {
        font-size: 1.15rem;
    }

    .company-name {
        display: none;
    }

    .lang-switch {
        font-size: 0.85rem;
    }

    /* Hamburger Knop - FK260830
    .hamburger-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 26px;
        height: 18px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
    } */
    .hamburger-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    
        width: 32px;
        height: 32px;
    
        background: transparent;
        border: none;
        cursor: pointer;
    
        padding: 7px 3px;
        flex-shrink: 0;
    }

/* FK260830 
    .hamburger-btn span {
        display: block;
        height: 3px;
        width: 100%;
        background-color: var(--color-primary);
        border-radius: 2px;
        transition: all 0.3s ease;
    } */
	.hamburger-btn span {
        display: block;
        width: 100%;
        height: 3px;
    
        background-color: var(--color-primary);
        border-radius: 2px;
    
        transition: all 0.3s ease;
    }

    /* Uitvouwbaar menu op mobiel (Vast onder de vaste topbalk) */
    nav {
        background-color: var(--color-primary-dark);
        display: none;
        width: 100%;
        position: fixed;
        top: 50px; /* Sluit direct aan onder de vaste topbalk */
        left: 0;
        z-index: 1999;
        box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    }

    nav.is-open {
        display: block;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        padding: 5px 0;
    }

    nav ul li a {
        padding: 14px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        display: block;
        color: var(--color-white);
    }

    /* Kruisje animatie */
    .hamburger-btn.is-open span:nth-child(1) {
        transform: rotate(45deg) translate(4px, 4px);
    }
    .hamburger-btn.is-open span:nth-child(2) {
        opacity: 0;
    }
    .hamburger-btn.is-open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero-banner {
        height: 140px;
    }

    .banner-overlay h1 {
        font-size: 1.25rem;
        line-height: 1.4;
    }

    /* MOBIELE SCROLL-UITLIJNING:
       Iedere sectie stopt nu exact onder de vaste witte topbalk van 50px! */
    section {
        padding: 20px;
        margin-bottom: 20px;
        /*scroll-margin-top: 65px;*/
    }
}