/* 
   --------------------------------------------------------------
   ULTRA-PREMIUM DESIGN SYSTEM - OPTION A: EARTHY LUXURY
   --------------------------------------------------------------
*/

:root {
    /* --- COLOR PALETTE: Earthy Luxury --- */
    --primary-color: #1A3C34;
    /* Deep Forest Green */
    --primary-dark: #0f2621;
    /* Darker Forest Green */
    --secondary-color: #D4AF37;
    /* Champagne Gold */
    --secondary-dark: #b5952f;
    /* Darker Gold */
    --secondary-light: #f3e5ab;
    /* Light Gold */

    /* Backgrounds */
    --bg-main: #F9F8F6;
    /* Warm Stone (Main Body) */
    --bg-pure: #FFFFFF;
    /* Pure White (Cards/sections) */
    --bg-dark: #121212;
    /* Nearly Black (Footer/Dark Mode) */

    /* Text */
    --text-primary: #2C2C2C;
    /* Dark Charcoal (Headings) */
    --text-secondary: #555555;
    /* Soft Grey (Body) */
    --text-light: #F9F8F6;
    /* Off-white for dark backgrounds */

    /* Fonts */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;

    /* Spacing & Layout */
    --container-width: 1400px;
    --section-padding: clamp(4rem, 8vw, 8rem);

    /* Effects */
    --shadow-soft: 0 10px 40px -10px rgba(26, 60, 52, 0.08);
    --shadow-hover: 0 20px 50px -10px rgba(26, 60, 52, 0.15);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: 1px solid rgba(255, 255, 255, 0.5);
    --blur: blur(20px);

    /* Transitions */
    --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
    --transition: all 0.4s var(--ease-out);
}

/* --- RESET & BASE --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    scroll-padding-top: 100px;
    /* Offset for fixed header */
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-secondary);
    line-height: 1.8;
    overflow-x: hidden;
}

/* --- TYPOGRAPHY --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.subheading {
    display: block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

/* --- UTILITIES --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 5%;
}

.text-center {
    text-align: center;
}

.section-padding {
    padding: var(--section-padding) 0;
}

/* Wrapper for 'split' sections to give them white background */
.bg-white {
    background-color: var(--bg-pure);
}

/* --- PRICING CARDS --- */
.pricing-card {
    background: var(--bg-pure);
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.pricing-card.featured {
    transform: scale(1.05);
    border: 1px solid var(--secondary-color);
    box-shadow: 0 20px 50px rgba(212, 175, 55, 0.15);
    z-index: 2;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.pricing-card.featured:hover {
    transform: translateY(-10px) scale(1.05);
}

.price-tag {
    font-size: 3rem;
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 700;
    margin: 1.5rem 0;
}

.price-tag span {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
    font-family: var(--font-body);
}

.feature-list {
    text-align: left;
    list-style: none;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.feature-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.feature-list i {
    color: var(--secondary-color);
    margin-right: 10px;
    font-size: 1.1rem;
}

.badge-popular {
    background: var(--secondary-color);
    color: var(--bg-pure);
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

/* --- FORM CONTAINER --- */
.form-card {
    background: var(--bg-pure);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

/* --- HEADER (GLASSMORPHISM) --- */
/* --- HEADER (GLASSMORPHISM & ANIMATION) --- */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    /* Start transparent */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    /* Subtle border for structure */
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    /* Smooth transition */
    animation: slideDown 0.8s ease-out forwards;
    padding: 1.5rem 0;
    /* Taller initially for grandeur */
}

/* Scrolled State (Added by JS) */
header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    /* High opacity for readability */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 0.8rem 0;
    /* Sleek compact height */
    border-bottom: none;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.logo img {
    height: 60px;
    width: auto;
    transition: var(--transition);
    /* Make logo white initially for dark hero overlap */
    filter: brightness(0) invert(1);
}

header.scrolled .logo img {
    height: 50px;
    /* Scale down slightly */
    filter: none;
    /* Restore original colors */
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--bg-pure);
    /* White text initially */
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    letter-spacing: 0.02em;
    transition: var(--transition);
    opacity: 0.9;
}

header.scrolled .nav-link {
    color: var(--text-primary);
    /* Dark text on scroll */
}

/* Premium Underline Hover */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: var(--secondary-color);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.nav-link:hover {
    color: var(--secondary-color);
    /* Gold on hover */
    opacity: 1;
}

.nav-link:hover::after {
    width: 100%;
}

/* --- PREMIUM BUTTONS --- */
.btn-primary,
.nav-btn-donate,
.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2.2rem;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    color: var(--bg-pure);
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px -10px rgba(212, 175, 55, 0.5);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

/* Nav Button Specifics */
.nav-btn-donate {
    padding: 0.6rem 1.8rem;
    background: transparent;
    border: 1px solid var(--bg-pure);
    /* Outline initially */
    box-shadow: none;
}

.nav-btn-donate:hover {
    background: var(--bg-pure);
    color: var(--primary-color);
}

header.scrolled .nav-btn-donate {
    background: var(--primary-color);
    /* Green solid on scroll */
    border-color: var(--primary-color);
    color: var(--bg-pure);
    box-shadow: 0 10px 20px -10px rgba(26, 60, 52, 0.4);
}

header.scrolled .nav-btn-donate:hover {
    background: var(--primary-dark);
    box-shadow: 0 15px 30px -10px rgba(26, 60, 52, 0.6);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -10px rgba(212, 175, 55, 0.7);
}


/* --- MOBILE MENU (FULLSCREEN OVERLAY) --- */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1002;
}

.bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 6px auto;
    transition: var(--transition);
    background-color: var(--primary-color);
}

@media (max-width: 992px) {
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-main);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateY(-100%);
        /* Hidden top */
        transition: transform 0.6s var(--ease-out);
        z-index: 1001;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-link {
        font-size: 1.5rem;
        font-family: var(--font-heading);
    }

    .hamburger {
        display: block;
    }

    /* Hamburger Animation */
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}


/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Gradient Overlay */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(26, 60, 52, 0.6), rgba(26, 60, 52, 0.3));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--bg-pure);
    max-width: 900px;
    padding: 0 20px;
}

.hero h1 {
    color: var(--bg-pure);
    margin-bottom: 2rem;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 3rem;
    font-weight: 300;
}

/* Keyframe Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeInUp 1.2s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}


/* --- SECTIONS: SPLIT, CARDS, IMPACT --- */

/* Split Section (Image Left/Right) */
.split-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}

.split-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    /* Slight round */
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.split-image img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: var(--bg-pure);
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    /* Modern Easing */
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.card:hover {
    transform: translateY(-12px) scale(1.01);
    box-shadow: 0 20px 60px -15px rgba(26, 60, 52, 0.15);
    border-color: rgba(212, 175, 55, 0.3);
}

.card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.card:hover::after {
    transform: scaleX(1);
}

.card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    /* Gold icons */
    margin-bottom: 1.5rem;
}

/* Impact Section */
.impact-section {
    background-color: var(--primary-color);
    color: var(--bg-pure);
    margin-bottom: -1px;
    /* Fix sub-pixel gaps */
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    text-align: center;
}

.impact-card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.impact-card h4 {
    color: var(--bg-pure);
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}


/* Small Hero for Utility Pages */
.hero.small-hero {
    min-height: 40vh;
    height: 40vh;
}

.hero.small-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 0;
}

form {
    width: 100%;
}

input,
textarea,
select {
    width: 100%;
    padding: 1rem;
    background: var(--bg-main);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--bg-pure);
    box-shadow: 0 0 0 3px rgba(26, 60, 52, 0.1);
}

/* Donation Specific Buttons */
.btn-amount {
    transition: var(--transition);
    font-weight: 600;
}

.btn-amount:hover {
    transform: translateY(-2px);
}


/* --- FOOTER --- */
footer {
    background-color: #0d1e1a;
    /* Very dark green close to black */
    color: rgba(255, 255, 255, 0.7);
    padding: 5rem 0 2rem;
    font-size: 0.95rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand h3 {
    color: var(--bg-pure);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-pure);
    text-decoration: none;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: rotate(360deg);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 900px) {
    .hero {
        background-attachment: scroll;
        /* Fix for mobile jitter */
        background-position: center;
    }

    .split-container {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }

    .hero {
        min-height: 100svh;
    }
}

/* --- CONTACT PAGE UTILITIES --- */
.contact-info-panel {
    background: var(--primary-color);
    color: var(--bg-pure);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: var(--shadow-hover);
    height: 100%;
}

.contact-info-panel h3,
.contact-info-panel h4 {
    color: var(--bg-pure);
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.contact-item i {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-top: 5px;
}

.social-icon-light {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon-light:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
}