/* CSS Theme for New Hope Life NGO - Compassionate & Premium Design System */

:root {
    /* HSL Tailored Colors */
    --primary: hsl(168, 55%, 26%);       /* Rich Warm Emerald Teal */
    --primary-light: hsl(168, 45%, 94%); /* Ultra-light Teal for cards/sections */
    --primary-hover: hsl(168, 60%, 20%); /* Darker Teal for interaction */
    --accent: hsl(38, 95%, 52%);         /* Warm Hope Amber/Gold */
    --accent-hover: hsl(38, 95%, 45%);   /* Darker Gold */
    --text-dark: hsl(210, 24%, 16%);     /* Charcoal for readability */
    --text-muted: hsl(210, 12%, 46%);    /* Muted Slate Gray */
    --bg-light: #ffffff;
    --bg-warm: hsl(34, 40%, 98%);        /* Soft Cream Cream */
    --bg-footer: hsl(210, 24%, 12%);     /* Deep Charcoal */
    --white: #ffffff;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(15, 32, 39, 0.08);
    --shadow-lg: 0 20px 40px rgba(15, 32, 39, 0.12);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    background-color: var(--bg-warm);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.25;
    color: var(--text-dark);
}

p {
    color: var(--text-muted);
}

/* Main Container & Page Offsets */
.site-main {
    min-height: calc(100vh - 80px - 200px);
}

/* Navigation Header */
.site-header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(168, 55, 26, 0.06);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 80px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding: 8px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Buttons and CTAs */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(27, 85, 71, 0.2);
}

.btn-accent {
    background-color: var(--accent);
    color: var(--text-dark);
}

.btn-accent:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

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

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* Sections */
.section {
    padding: 100px 24px;
}

.section-bg {
    background-color: var(--primary-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Hero Section */
.hero {
    padding-top: 180px;
    padding-bottom: 100px;
    background: radial-gradient(circle at top right, var(--primary-light) 0%, var(--bg-warm) 60%);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--text-dark);
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero-content h1 span {
    color: var(--primary);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 36px;
    color: var(--text-muted);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    width: 110%;
    height: 110%;
    background-color: var(--accent);
    opacity: 0.1;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 55%;
    top: -5%;
    left: -5%;
    z-index: 1;
    animation: blobby 12s linear infinite alternate;
}

.hero-image {
    max-width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
    transform: rotate(1deg);
    transition: var(--transition);
}

.hero-image:hover {
    transform: rotate(0deg) scale(1.02);
}

@keyframes blobby {
    0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 55%; }
    100% { border-radius: 60% 40% 30% 70% / 50% 60% 40% 45%; }
}

/* Statistics Counter Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.stat-card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(168, 55, 26, 0.04);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

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

/* Program Cards Section */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.program-card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(168, 55, 26, 0.04);
    display: flex;
    flex-direction: column;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.program-img {
    height: 240px;
    width: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.program-card:hover .program-img {
    transform: scale(1.05);
}

.program-content {
    padding: 32px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.program-content h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.program-content p {
    font-size: 0.95rem;
    margin-bottom: 24px;
    color: var(--text-muted);
    flex-grow: 1;
}

.program-link {
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.program-link:hover {
    color: var(--primary-hover);
    gap: 12px;
}

/* Impact Stories/Testimonials */
.testimonial-section {
    background-color: var(--primary);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.testimonial-section h2, .testimonial-section h3 {
    color: var(--white);
}

.testimonial-card {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.testimonial-quote {
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 30px;
    font-style: italic;
    color: var(--primary-light);
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
}

.testimonial-info h4 {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--white);
}

.testimonial-info p {
    font-size: 0.9rem;
    color: var(--primary-light);
}

/* Call to Action Banner */
.cta-banner {
    background-color: var(--accent);
    color: var(--text-dark);
    border-radius: var(--radius-lg);
    padding: 60px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.cta-banner h2 {
    font-size: 2.8rem;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.cta-banner p {
    font-size: 1.2rem;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-dark);
    opacity: 0.85;
}

.cta-banner .btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.cta-banner .btn-primary:hover {
    background-color: var(--primary-hover);
}

/* Footer styling */
.site-footer {
    background-color: var(--bg-footer);
    color: var(--white);
    padding: 80px 24px 40px 24px;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 50px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 24px;
    position: relative;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent);
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 6px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--white);
    border-radius: 50%;
    transition: var(--transition);
    text-decoration: none;
}

.social-btn:hover {
    background-color: var(--accent);
    color: var(--text-dark);
    transform: translateY(-3px);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    flex-wrap: wrap;
    gap: 20px;
}

/* Form Styles */
.form-group {
    margin-bottom: 24px;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(15, 32, 39, 0.15);
    background-color: var(--white);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    color: var(--text-dark);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 24px;
    }
    
    .hero {
        padding-top: 140px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none; /* In a real app we'd have a mobile menu toggle */
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .cta-banner {
        padding: 40px 24px;
    }

    .cta-banner h2 {
        font-size: 2rem;
    }
}
