/* ====================================
   GLOBAL STYLES - Food2Grow
   ==================================== */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Kleuren */
    --primary-green: #2E8B57;
    --primary-green-dark: #256d44;
    --primary-orange: #FF8C00;
    --primary-orange-dark: #e67e00;
    --logo-orange: #FF6B35; /* Oranje uit het logo */
    --primary-blue: #005A9C;
    --background-cream: #FFFFF0;
    --text-dark: #333;
    --text-medium: #555;
    --text-light: #777;
    --white: #ffffff;
    --gray-light: #eee;
    --gray-medium: #ccc;
    --gray-dark: #333;
    
    /* Typografie */
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --line-height: 1.6;
    
    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 80px 20px;
    --section-padding-mobile: 60px 20px;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-cream);
    color: var(--text-dark);
    line-height: var(--line-height);
    overflow-x: hidden;
}

/* Container */
.container {
    width: 90%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-green);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-green);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(46, 139, 87, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 139, 87, 0.3);
}

.btn-secondary {
    background-color: var(--primary-orange);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(255, 140, 0, 0.2);
}

.btn-secondary:hover {
    background-color: var(--primary-orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
}

.btn-outline:hover {
    background-color: var(--primary-green);
    color: var(--white);
}

/* Navigation */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-image {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--logo-orange);
    transition: width 0.3s ease;
}

.nav-menu a:not(.btn):hover::after {
    width: 100%;
}

.nav-menu a:hover {
    color: var(--logo-orange);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background-color: var(--primary-green);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
        gap: 1rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu a:not(.btn)::after {
        display: none;
    }
}

/* Footer */
.footer {
    background-color: var(--gray-dark);
    color: var(--gray-medium);
    padding: 60px 20px 20px;
    margin-top: 0;
}

.footer-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer-section p,
.footer-section a {
    color: var(--gray-medium);
    line-height: 1.8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--white);
}

.social-icon:hover {
    background-color: var(--primary-green);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: var(--gray-medium);
    font-size: 0.9rem;
}

/* Utility Classes */

/* Prevent body scroll when a modal is open */
body.modal-open {
    overflow: hidden;
}

.text-center {
    text-align: center;
}

/* Dividers */
hr {
    margin: 0;
    padding: 0;
    border: 0;
    border-top: 2px solid var(--gray-light);
    width: 100%;
    background: transparent;
}

.info-divider {
    margin: 0;
    padding: 0;
    border: 0;
    border-top: 2px solid var(--gray-light);
    width: 100%;
    background: transparent;
    display: block;
}

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* Animation Classes - Bidirectional */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}


/* ====================================
   SHARED COMPONENTS (cross-page)
   ==================================== */

/* Page Hero (subpages) */
.page-hero {
    position: relative;
    overflow: hidden;
    padding: 120px 20px 80px;
    background: linear-gradient(135deg, #FFFFF0 0%, #f0f9ff 100%);
    text-align: center;
    margin-bottom: 0;
}

.page-hero h1 {
    color: var(--primary-green);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-medium);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* Decorative blur circles (used in hero & page-hero) */
.hero-blur-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    pointer-events: none;
    animation: float 20s ease-in-out infinite;
}

.hero-blur-circle.top-right {
    top: -80px;
    right: -100px;
    height: 350px;
    width: 350px;
    background-color: #BFDBFE;
}

.hero-blur-circle.bottom-left {
    bottom: -80px;
    left: -100px;
    height: 350px;
    width: 350px;
    background-color: #BBF7D0;
}

/* Shared CTA Section (full-width blocks on subpages) */
.cta-section {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfeff 100%);
    padding: 100px 20px;
    text-align: center;
    margin-top: 0;
}

.cta-section h2 {
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.25rem;
    color: var(--text-medium);
    max-width: 700px;
    margin: 0 auto 2rem;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* Inline CTA wrapper (e.g., inside content blocks) */
.cta-inline {
    margin-top: 2rem;
}

/* Standard content section wrapper (used on multiple pages) */
.content-section {
    padding: var(--section-padding);
    background-color: var(--white);
}

/* Section intro blocks (used on multiple pages) */
.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-intro h2 {
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.section-intro p,
p.section-intro {
    font-size: 1.125rem;
    color: var(--text-medium);
    line-height: 1.8;
}

/* Fly-in/out animation helper (paired with global.js IntersectionObserver) */
.fly-in-out {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fly-in-out.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Shared keyframes */
@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, 20px); }
}

@keyframes shimmer {
    to { transform: translateX(100%); }
}

/* Responsive (shared components) */
@media (max-width: 768px) {
    .page-hero {
        padding: 100px 20px 60px;
    }

    .cta-section {
        padding: 60px 20px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .hero-subtitle {
        font-size: 1.1rem;
    }
}


/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    :root {
        --section-padding: var(--section-padding-mobile);
    }
    
    .container {
        width: 95%;
        padding: 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
}
