/* CSS Reset and Variables */
:root {
    /* Color Palette - Warm, Earthy, Premium */
    --color-primary: #2b5c43; /* Deep Emerald */
    --color-primary-light: #438a65;
    --color-accent: #f2a900; /* Warm Gold */
    --color-text-dark: #1f2937;
    --color-text-muted: #4b5563;
    --color-bg-light: #faf9f6; /* Off-white/Cream */
    --color-bg-white: #ffffff;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing & Layout */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
    --container-max: 1200px;
    --border-radius: 16px;
    
    /* Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-text-dark);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Glassmorphism Utilities */
.glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1.125rem;
}

.btn-primary {
    background-color: var(--color-accent);
    color: #fff;
    box-shadow: 0 4px 15px rgba(242, 169, 0, 0.4);
}

.btn-primary:hover {
    background-color: #d99700;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 169, 0, 0.5);
}

.btn-secondary {
    background-color: #fff;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: #fff;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s ease;
    padding: 1.5rem 0;
}

.nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
}

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

.nav-brand {
    display: inline-block;
    line-height: 0;
    flex-shrink: 0;
}

.nav-brand:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 4px;
    border-radius: 4px;
}

.nav-brand-logos {
    position: relative;
    display: inline-block;
}

.brand-logo {
    display: block;
    height: clamp(46px, 6.25vw, 58px);
    width: auto;
    object-fit: contain;
    object-position: left center;
    transition: opacity 0.4s ease;
}

.brand-logo--on-dark {
    position: relative;
    z-index: 0;
}

.brand-logo--on-light {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 0;
    pointer-events: none;
}

.nav.scrolled .brand-logo--on-dark {
    opacity: 0;
    pointer-events: none;
}

.nav.scrolled .brand-logo--on-light {
    opacity: 1;
    pointer-events: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: #fff;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav.scrolled .nav-link {
    color: var(--color-text-dark);
}

.nav-link:hover {
    color: var(--color-accent);
}

.nav-link-cta {
    background-color: var(--color-accent);
    color: #fff !important;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
}

.nav-link-cta:hover {
    background-color: #d99700;
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--spacing-xl);
    overflow: hidden;
}

.hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%; /* Focus on the faces/box */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(20, 30, 20, 0.8) 0%, rgba(20, 30, 20, 0.4) 100%);
}

.hero-content {
    max-width: min(68rem, 100%);
    margin-left: auto;
    margin-right: auto;
    color: #fff;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
    padding-top: clamp(2rem, 6vw, 4rem);
}

.title-line {
    display: block;
    color: #fff;
}

.text-highlight {
    color: var(--color-accent);
    font-style: italic;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    margin-left: auto;
    margin-right: auto;
    max-width: min(34rem, 100%);
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: clamp(3rem, 10vw, var(--spacing-xl));
    width: 100%;
}

@media (min-width: 1024px) {
    .hero-title .text-highlight {
        white-space: nowrap;
    }
}

/* Sections */
.section {
    padding: var(--spacing-xl) 0;
}

.section-label {
    display: inline-block;
    color: var(--color-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

.section-description {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 700px;
}

.centered {
    text-align: center;
    margin: 0 auto 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Mission Section */
.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.mission-text {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: var(--color-text-muted);
}

.stats-row {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
}

.stat-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    flex: 1;
    border-bottom: 4px solid var(--color-primary);
}

.stat-num {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.stat-desc {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.mission-visual {
    position: relative;
}

.image-stack {
    position: relative;
}

.img-main {
    border-radius: 24px;
    width: 100%;
    box-shadow: var(--shadow-lg);
}

.floating-card {
    position: absolute;
    bottom: -2rem;
    left: -2rem;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    max-width: 280px;
    box-shadow: var(--shadow-lg);
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    animation: float 6s ease-in-out infinite;
}

.floating-card p {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-primary);
    margin: 0;
}

.icon-heart {
    flex-shrink: 0;
    margin-top: 0.25rem;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Impact Section */
.impact-section {
    background-color: #fff;
}

.process-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.step-card {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 0 1rem;
}

.step-icon {
    width: 80px;
    height: 80px;
    background-color: var(--color-primary-light);
    color: #fff;
    font-size: 2rem;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-md);
    border: 6px solid #fff;
}

.step-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.step-text {
    color: var(--color-text-muted);
    font-size: 1rem;
}

.step-line {
    flex-grow: 1;
    height: 2px;
    background-color: rgba(67, 138, 101, 0.2);
    margin-top: 40px; /* Half of icon height */
    z-index: 1;
}

/* Donate Section */
.donate-section {
    position: relative;
    padding: var(--spacing-xl) 0;
    background-color: var(--color-primary);
    color: #fff;
    overflow: hidden;
}

.donate-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at top right, var(--color-primary-light) 0%, transparent 60%);
    opacity: 0.5;
}

.donate-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 4rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.donate-title {
    color: #fff;
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.donate-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.impact-guarantee {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(242, 169, 0, 0.1);
    border-left: 4px solid var(--color-accent);
    border-radius: 4px;
    font-weight: 500;
}

.impact-guarantee svg {
    color: var(--color-accent);
}

.donate-form-wrapper {
    background: #fff;
    border-radius: 12px;
    padding: 1rem; /* Gives a nice white border effect around the iframe */
}

/* Footer */
.footer {
    background-color: #111827;
    color: #f3f4f6;
    padding: 4rem 0 2rem;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 3rem;
    margin-bottom: 2rem;
}

.footer-brand-info {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    max-width: 100%;
}

.footer-brand-thumb {
    width: 112px;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
}

.footer-brand-text {
    min-width: 0;
}

.footer-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.footer-desc {
    max-width: 400px;
    color: #9ca3af;
}

.footer-links-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-heading {
    color: #fff;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 1px;
}

.footer-links-group a {
    color: #9ca3af;
    transition: color 0.2s;
}

.footer-links-group a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
}

/* Scroll Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.active {
    opacity: 1;
    transform: translate(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .mission-grid, .donate-container {
        gap: 2rem;
    }
    
    .donate-container {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* simple mobile nav for now, could add hamburger */
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .mission-grid {
        grid-template-columns: 1fr;
    }
    
    .process-steps {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    
    .step-line {
        display: none;
    }
    
    .donate-container {
        grid-template-columns: 1fr;
    }
    
    .floating-card {
        bottom: -1rem;
        left: 0;
        right: 0;
        margin: 0 auto;
    }
    
    .footer-top {
        flex-direction: column;
        gap: 2rem;
    }
}
