/*
Theme Name: Green August Foundation
Theme URI: https://www.greenaugustfoundation.org
Author: Green August Team
Description: A premium, accessible, and purpose-driven theme designed to communicate impact, transparency, and trust.
Version: 1.0.0
Text Domain: green-august
*/

/* ==========================================================================
   1. CSS Variables & Root
   ========================================================================== */
:root {
    /* Color Palette */
    --primary-green: #0B6B2E;
    --light-green: #7ED957;
    --deep-forest: #044C1F;
    --neutral-grey: #F5F5F5;
    --white: #FFFFFF;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', 'Open Sans', sans-serif;
    
    /* UI Styles */
    --soft-shadow: 0 4px 20px rgba(4, 76, 31, 0.08);
    --border-radius: 12px;
    --transition-speed: 0.3s ease-in-out;
}

/* ==========================================================================
   2. Reset & Base Typographic Setup
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: #333333; /* Dark grey for accessibility/contrast */
    background-color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--deep-forest);
    font-weight: 700;
    margin-bottom: 1rem;
}

a {
    color: var(--primary-green);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--light-green);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Accessibility */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* ==========================================================================
   3. Utility Classes
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.text-primary-green { color: var(--primary-green); }
.text-light-green { color: var(--light-green); }
.text-deep-forest { color: var(--deep-forest); }
.text-white { color: var(--white); }

.bg-neutral-grey { background-color: var(--neutral-grey); }
.bg-deep-forest { background-color: var(--deep-forest); }
.bg-white { background-color: var(--white); }

.soft-shadow { box-shadow: var(--soft-shadow); }
.rounded-card { border-radius: var(--border-radius); overflow: hidden; }

/* Flexbox Utilities */
.flex-row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}
.half-width {
    flex: 1 1 calc(50% - 15px);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-family: var(--font-body);
    font-weight: 600;
    text-align: center;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-speed);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-green);
    color: var(--white);
}
.btn-primary:hover {
    background-color: var(--deep-forest);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}
.btn-outline:hover {
    background-color: var(--white);
    color: var(--deep-forest);
}

.btn-large {
    padding: 15px 35px;
    font-size: 1.1rem;
}
.btn-full {
    width: 100%;
    display: block;
}

/* ==========================================================================
   4. Header & Navigation
   ========================================================================== */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-title a {
    color: var(--deep-forest);
    font-size: 1.5rem;
    font-family: var(--font-heading);
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.main-navigation a {
    color: #333;
    font-weight: 500;
}

.main-navigation a:hover {
    color: var(--primary-green);
}

.menu-toggle {
    display: none; /* Hidden on desktop */
}

/* ==========================================================================
   5. Hero Section & Slider
   ========================================================================== */
.hero-section {
    position: relative;
    padding: 120px 0;
    color: var(--white);
    text-align: center;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden; /* Prevents slides from spilling out */
}

/* Slider Container */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-color: var(--deep-forest); /* Base color while loading */
}

/* Individual Slides */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    /* Change 'center center' to 'center top' to save the heads! */
    background-position: center top; 
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 0;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Lowered from 0.7 to 0.3 so the images shine through */
    background: linear-gradient(rgba(4, 76, 31, 0.3), rgba(11, 107, 46, 0.3));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3); /* Pop against images */
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.95;
    text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* ==========================================================================
   6. Impact Statistics Section
   ========================================================================== */
.impact-stats-section {
    padding: 80px 0;
    background-color: var(--white);
    margin-top: -50px; /* Pulls it up slightly over the hero */
    position: relative;
    z-index: 10;
}

.section-heading {
    margin-bottom: 50px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.stat-card {
    background: var(--white);
    padding: 40px 20px;
    text-align: center;
    border-radius: var(--border-radius);
    box-shadow: var(--soft-shadow);
    transition: transform var(--transition-speed);
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 40px;
    color: var(--light-green);
    margin-bottom: 15px;
    height: 40px;
    width: 40px;
}

.stat-number {
    font-size: 2.5rem;
    color: var(--deep-forest);
    margin-bottom: 5px;
}

/* ==========================================================================
   7. Donation Section
   ========================================================================== */
.donation-section {
    padding: 80px 0;
}

.donation-benefits {
    list-style: none;
    margin-top: 30px;
}

.donation-benefits li {
    margin-bottom: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.donation-cards .card {
    padding: 40px;
}

.donation-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.donation-tabs .btn-tab {
    flex: 1;
    background-color: var(--neutral-grey);
    color: #333;
}

.donation-tabs .btn-tab.active {
    background-color: var(--primary-green);
    color: var(--white);
}

.donation-amounts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.amount-btn {
    border-color: var(--primary-green);
    color: var(--primary-green);
}

.custom-amount-input {
    grid-column: span 3;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
}

/* ==========================================================================
   8. Volunteer CTA Section
   ========================================================================== */
.volunteer-cta-section {
    padding: 160px 0; /* Increased padding from 100px to 160px to show more of the photo */
    position: relative;
    background-size: cover;
    /* This is the magic line: it pulls the image down to show the heads */
    background-position: center 20%; 
    background-attachment: fixed; 
    min-height: 600px; /* Ensures the section is tall enough to show the people */
}

.volunteer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* A sleek gradient from 40% black to 70% black at the bottom */
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7));
    z-index: 1;
}

.volunteer-cta-section h2 {
    color: var(--white);
}

.lead-text {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

.volunteer-form-wrapper {
    max-width: 500px;
    margin: 0 auto;
    padding: 40px;
}

/* ==========================================================================
   9. Footer
   ========================================================================== */
.site-footer {
    background-color: #1a1a1a;
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-widgets {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
    justify-content: space-between;
}

.footer-about, .footer-links {
    flex: 1 1 300px;
}

.footer-about h3 {
    color: var(--white);
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: #ccc;
}

.footer-links a:hover {
    color: var(--light-green);
}

.site-info {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
    color: #888;
    font-size: 0.9rem;
}

/* ==========================================================================
   10. Mobile Responsiveness
   ========================================================================== */
@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
    }
    
    .main-navigation {
        display: none; /* Add JS to toggle this class */
        width: 100%;
        margin-top: 15px;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 10px;
    }
    
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 1.2rem;
        cursor: pointer;
    }
    
    .header-cta {
        display: none; /* Hide donate button in header on small mobile to save space */
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .half-width {
        flex: 1 1 100%;
    }
    
    .impact-stats-section {
        margin-top: 0;
    }
}

/* ==========================================================================
   11. Contact & Form Styling
   ========================================================================== */
.contact-form-area input[type="text"],
.contact-form-area input[type="email"],
.contact-form-area input[type="tel"],
.contact-form-area textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition-speed);
}

.contact-form-area input:focus,
.contact-form-area textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 2px rgba(11, 107, 46, 0.2);
}

.contact-form-area button[type="submit"],
.contact-form-area input[type="submit"] {
    background-color: var(--primary-green);
    color: var(--white);
    padding: 15px 30px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    width: 100%;
    transition: background-color var(--transition-speed);
}

.contact-form-area button[type="submit"]:hover,
.contact-form-area input[type="submit"]:hover {
    background-color: var(--deep-forest);
}