/* ==========================================================================
   WORLD POSSIBLE KENYA - Main Stylesheet
   A warm, trustworthy design inspired by Kenyan sunrise colors
   ========================================================================== */

/* Google Fonts - Distinctive Typography */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Source+Sans+3:wght@300;400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

/* CSS Custom Properties */
:root {
    /* Primary Colors - Inspired by Kenyan Sunrise */
    --sunrise-gold: #F7931E;
    --sunrise-orange: #E8505B;
    --deep-blue: #003D6E;
    --ocean-blue: #00548C;
    --sky-blue: #4A90D9;
    
    /* Neutral Colors */
    --charcoal: #2D3436;
    --slate: #636E72;
    --silver: #B2BEC3;
    --cloud: #DFE6E9;
    --snow: #F8F9FA;
    --white: #FFFFFF;
    
    /* Accent Colors */
    --success-green: #00B894;
    --earth-brown: #8B6914;
    --savanna-gold: #FDCB6E;
    
    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'Space Mono', monospace;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 8rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    --shadow-glow: 0 0 40px rgba(247, 147, 30, 0.3);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
    
    /* Container */
    --container-max: 1200px;
    --container-narrow: 800px;
}

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

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

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.7;
    color: var(--charcoal);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Selection */
::selection {
    background: var(--sunrise-gold);
    color: var(--white);
}

/* Links */
a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

/* Lists */
ul, ol {
    list-style: none;
}

/* Buttons */
button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */

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

.container-narrow {
    max-width: var(--container-narrow);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Text Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--deep-blue);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.01em;
}

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

h4 {
    font-size: 1.25rem;
    font-family: var(--font-body);
    font-weight: 600;
}

p {
    margin-bottom: 1em;
}

.lead {
    font-size: 1.25rem;
    color: var(--slate);
    line-height: 1.8;
}

.highlight {
    color: var(--sunrise-orange);
}

.highlight-gold {
    color: var(--sunrise-gold);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left var(--transition-slow);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--sunrise-orange) 0%, var(--sunrise-gold) 100%);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(232, 80, 91, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(232, 80, 91, 0.4);
}

.btn-secondary {
    background: var(--deep-blue);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--ocean-blue);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background: var(--white);
    color: var(--deep-blue);
}

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

.btn-outline-dark:hover {
    background: var(--deep-blue);
    color: var(--white);
}

.btn-lg {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
}

/* Button with icon */
.btn svg {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) 0;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--deep-blue) 0%, var(--ocean-blue) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text strong {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--deep-blue);
    letter-spacing: -0.02em;
}

.logo-text span {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--sunrise-orange);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Navigation */
.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-menu a {
    font-weight: 500;
    color: var(--charcoal);
    position: relative;
    padding: var(--space-sm) 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--sunrise-orange);
    transition: width var(--transition-base);
}

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

.nav-menu a:hover {
    color: var(--deep-blue);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-sm);
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--charcoal);
    transition: all var(--transition-base);
}

/* Header CTA */
.header-cta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(80px + var(--space-2xl)) 0 var(--space-2xl);
    background: linear-gradient(135deg, var(--deep-blue) 0%, var(--ocean-blue) 50%, #0A5F8A 100%);
    overflow: hidden;
}

/* Animated Background Pattern */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(247, 147, 30, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(232, 80, 91, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 30%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Decorative Elements */
.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(247, 147, 30, 0.2), rgba(232, 80, 91, 0.1));
    animation: float 6s ease-in-out infinite;
}

.hero-shape:nth-child(1) {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.hero-shape:nth-child(2) {
    width: 200px;
    height: 200px;
    bottom: 20%;
    left: 10%;
    animation-delay: 2s;
}

.hero-shape:nth-child(3) {
    width: 150px;
    height: 150px;
    top: 40%;
    right: 15%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.hero-text {
    color: var(--white);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: var(--space-lg);
    animation: fadeInUp 0.8s ease-out;
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--success-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    color: var(--white);
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--sunrise-gold), var(--sunrise-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: var(--space-xl);
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    animation: fadeInRight 1s ease-out 0.5s backwards;
}

.hero-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--sunrise-gold), var(--sunrise-orange));
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.hero-stat {
    text-align: center;
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.hero-stat:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.hero-stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--sunrise-gold);
    line-height: 1;
}

.hero-stat-label {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: var(--space-sm);
}

/* Floating Image Cards */
.hero-image-float {
    position: absolute;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: var(--space-sm);
    animation: floatCard 4s ease-in-out infinite;
}

.hero-image-float:nth-child(1) {
    top: -40px;
    right: -40px;
    animation-delay: 0s;
}

.hero-image-float:nth-child(2) {
    bottom: -30px;
    left: -30px;
    animation-delay: 2s;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==========================================================================
   IMPACT STATS SECTION
   ========================================================================== */

.impact-section {
    padding: var(--space-3xl) 0;
    background: var(--white);
    position: relative;
}

.impact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(180deg, var(--snow), transparent);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-2xl);
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--sunrise-orange);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-md);
}

.section-label::before,
.section-label::after {
    content: '';
    width: 20px;
    height: 2px;
    background: var(--sunrise-orange);
}

.section-title {
    margin-bottom: var(--space-md);
}

.section-description {
    font-size: 1.1rem;
    color: var(--slate);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.stat-card {
    background: var(--snow);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
    border: 1px solid transparent;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--deep-blue), var(--ocean-blue));
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

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

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--space-md);
    background: linear-gradient(135deg, var(--deep-blue), var(--ocean-blue));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--deep-blue);
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.stat-label {
    font-size: 1rem;
    color: var(--slate);
    font-weight: 500;
}

/* ==========================================================================
   MISSION SECTION
   ========================================================================== */

.mission-section {
    padding: var(--space-3xl) 0;
    background: var(--snow);
    position: relative;
    overflow: hidden;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.mission-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.mission-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--sunrise-gold), var(--sunrise-orange));
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

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

.mission-card:hover::after {
    transform: scaleX(1);
}

.mission-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(0, 61, 110, 0.1), rgba(0, 84, 140, 0.05));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: var(--space-lg);
}

.mission-card h3 {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--deep-blue);
    margin-bottom: var(--space-md);
}

.mission-card p {
    color: var(--slate);
    line-height: 1.8;
    margin: 0;
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */

.cta-section {
    padding: var(--space-3xl) 0;
    background: linear-gradient(135deg, var(--sunrise-orange) 0%, var(--sunrise-gold) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: var(--space-md);
}

.cta-content p {
    font-size: 1.25rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto var(--space-xl);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

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

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

/* ==========================================================================
   PARTNERS SECTION
   ========================================================================== */

.partners-section {
    padding: var(--space-2xl) 0;
    background: var(--white);
    border-top: 1px solid var(--cloud);
    border-bottom: 1px solid var(--cloud);
}

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

.partners-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--slate);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-lg);
}

.partners-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-2xl);
    flex-wrap: wrap;
}

.partner-logo {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--slate);
    opacity: 0.7;
    transition: opacity var(--transition-base);
}

.partner-logo:hover {
    opacity: 1;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
    background: var(--deep-blue);
    color: var(--white);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-brand p {
    opacity: 0.8;
    margin-top: var(--space-md);
    max-width: 300px;
    line-height: 1.8;
}

.footer-column h4 {
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: all var(--transition-fast);
    padding: var(--space-xs) 0;
}

.footer-links a:hover {
    color: var(--sunrise-gold);
    padding-left: var(--space-sm);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.footer-contact-item svg {
    flex-shrink: 0;
    margin-top: 4px;
    color: var(--sunrise-gold);
}

.footer-bottom {
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer-legal {
    display: flex;
    gap: var(--space-lg);
}

.footer-legal a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

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

.footer-copy {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Social Icons */
.social-links {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all var(--transition-base);
}

.social-link:hover {
    background: var(--sunrise-gold);
    transform: translateY(-3px);
}

/* ==========================================================================
   FORMS
   ========================================================================== */

.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: var(--space-sm);
}

.form-label span {
    color: var(--sunrise-orange);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: var(--space-md);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--charcoal);
    background: var(--white);
    border: 2px solid var(--cloud);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--ocean-blue);
    box-shadow: 0 0 0 4px rgba(0, 84, 140, 0.1);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.form-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--sunrise-orange);
}

/* Form Grid */
.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

/* Form Messages */
.form-message {
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
}

.form-message.success {
    background: rgba(0, 184, 148, 0.1);
    border: 1px solid var(--success-green);
    color: var(--success-green);
}

.form-message.error {
    background: rgba(232, 80, 91, 0.1);
    border: 1px solid var(--sunrise-orange);
    color: var(--sunrise-orange);
}

/* ==========================================================================
   PAGE TEMPLATES
   ========================================================================== */

/* Page Header */
.page-header {
    padding: calc(80px + var(--space-2xl)) 0 var(--space-2xl);
    background: linear-gradient(135deg, var(--deep-blue) 0%, var(--ocean-blue) 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 30% 70%, rgba(247, 147, 30, 0.1) 0%, transparent 50%);
}

.page-header h1 {
    color: var(--white);
    margin-bottom: var(--space-md);
    position: relative;
}

.page-header .lead {
    color: rgba(255, 255, 255, 0.9);
    position: relative;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    font-size: 0.9rem;
    position: relative;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
}

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

.breadcrumb span {
    color: rgba(255, 255, 255, 0.5);
}

/* Page Content */
.page-content {
    padding: var(--space-2xl) 0;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all var(--transition-base);
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

.card-body {
    padding: var(--space-xl);
}

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
    padding: var(--space-xl) 0;
}

.trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    text-align: center;
}

.trust-badge-icon {
    width: 50px;
    height: 50px;
    background: var(--snow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--deep-blue);
}

.trust-badge span {
    font-size: 0.85rem;
    color: var(--slate);
    font-weight: 500;
}

/* ==========================================================================
   LANDING PAGE STYLES
   ========================================================================== */

/* Landing Hero - No Nav */
.landing-page .site-header {
    background: transparent;
    box-shadow: none;
}

.landing-hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-3xl) var(--space-lg);
    background: linear-gradient(135deg, var(--deep-blue) 0%, var(--ocean-blue) 100%);
    color: var(--white);
    position: relative;
}

.landing-hero-content {
    max-width: 700px;
}

.landing-hero h1 {
    color: var(--white);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: var(--space-lg);
}

/* Donation Amounts */
.donation-amounts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.donation-amount {
    position: relative;
}

.donation-amount input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.donation-amount label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-lg);
    background: var(--snow);
    border: 2px solid var(--cloud);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
}

.donation-amount input[type="radio"]:checked + label {
    border-color: var(--sunrise-orange);
    background: rgba(232, 80, 91, 0.05);
}

.donation-amount label:hover {
    border-color: var(--sunrise-orange);
}

.donation-amount .amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--deep-blue);
}

.donation-amount .impact {
    font-size: 0.8rem;
    color: var(--slate);
    text-align: center;
    margin-top: var(--space-xs);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-visual {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mission-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: var(--space-lg);
        box-shadow: var(--shadow-lg);
        gap: var(--space-md);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .header-cta .btn {
        display: none;
    }
    
    .hero {
        min-height: auto;
        padding: calc(80px + var(--space-xl)) 0 var(--space-xl);
    }
    
    .hero-card {
        padding: var(--space-lg);
    }
    
    .hero-stats {
        gap: var(--space-md);
    }
    
    .hero-stat-number {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-md);
    }
    
    .stat-card {
        padding: var(--space-lg);
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .mission-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .partners-logos {
        gap: var(--space-lg);
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* ==========================================================================
   ANIMATIONS & SCROLL EFFECTS
   ========================================================================== */

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Stagger Animation */
.stagger > * {
    opacity: 0;
    transform: translateY(20px);
}

.stagger.visible > *:nth-child(1) { animation: fadeInUp 0.5s ease forwards 0.1s; }
.stagger.visible > *:nth-child(2) { animation: fadeInUp 0.5s ease forwards 0.2s; }
.stagger.visible > *:nth-child(3) { animation: fadeInUp 0.5s ease forwards 0.3s; }
.stagger.visible > *:nth-child(4) { animation: fadeInUp 0.5s ease forwards 0.4s; }

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    .site-header,
    .site-footer,
    .cta-section,
    .btn {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
}

/* ==========================================================================
   GALLERY STYLES
   ========================================================================== */

.gallery-item {
    cursor: pointer;
    transition: transform var(--transition-base);
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item img {
    transition: transform 0.5s ease;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr !important;
    }
    
    .gallery-item {
        grid-column: span 1 !important;
    }
}

/* ==========================================================================
   MOBILE RESPONSIVE FIXES - Text Cutoff & Layout Issues
   ========================================================================== */

/* Prevent horizontal scroll and text cutoff */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Ensure all text containers respect viewport */
.container,
.container-narrow,
.card-body,
.page-content,
section {
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

/* Mobile-specific fixes */
@media (max-width: 768px) {
    /* Container padding adjustments */
    .container {
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }
    
    /* Card body padding on mobile */
    .card-body {
        padding: var(--space-lg) !important;
    }
    
    /* Page header text alignment */
    .page-header {
        padding: calc(80px + var(--space-lg)) 0 var(--space-lg);
    }
    
    .page-header h1 {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
        word-wrap: break-word;
    }
    
    .page-header .lead {
        font-size: 1rem;
        padding: 0 var(--space-sm);
    }
    
    /* Breadcrumb mobile fix */
    .breadcrumb {
        font-size: 0.8rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    /* Hero section mobile fixes */
    .hero {
        min-height: auto;
        padding-top: calc(70px + var(--space-xl));
        padding-bottom: var(--space-xl);
    }
    
    .hero-title {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
        line-height: 1.2;
    }
    
    .hero-description {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: var(--space-xs) var(--space-sm);
    }
    
    /* Button adjustments for mobile */
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    /* Stats grid mobile */
    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: var(--space-md);
    }
    
    .hero-stat {
        flex: 1 1 45%;
        min-width: 120px;
    }
    
    .hero-stat-number {
        font-size: 1.75rem;
    }
    
    .hero-stat-label {
        font-size: 0.8rem;
    }
    
    /* Section headings mobile */
    h2 {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }
    
    h3 {
        font-size: clamp(1.2rem, 4vw, 1.5rem);
    }
    
    /* Footer mobile fixes */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-column {
        margin-bottom: var(--space-lg);
    }
    
    .footer-legal {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .footer-legal a {
        display: block;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Logo text mobile */
    .logo-text strong {
        font-size: 0.95rem;
    }
    
    .logo-text span {
        font-size: 0.6rem;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    /* CTA section mobile */
    .cta-section {
        padding: var(--space-xl) 0;
    }
    
    .cta-section h2 {
        font-size: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    /* Program cards mobile */
    .program-card,
    .mission-item,
    .stat-card {
        padding: var(--space-lg);
    }
    
    /* Lists in content */
    ul, ol {
        padding-left: var(--space-lg);
    }
    
    li {
        word-wrap: break-word;
    }
}

/* Extra small screens (under 480px) */
@media (max-width: 480px) {
    /* Tighter padding on very small screens */
    .container {
        padding-left: var(--space-sm);
        padding-right: var(--space-sm);
    }
    
    .card-body {
        padding: var(--space-md) !important;
    }
    
    /* Smaller text for readability */
    body {
        font-size: 15px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    /* Navigation adjustments */
    .nav-menu {
        padding: var(--space-md);
    }
    
    .nav-menu a {
        font-size: 0.95rem;
        padding: var(--space-sm) 0;
    }
    
    /* Button size reduction */
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .btn-sm {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    /* Header adjustments */
    .header-inner {
        padding: var(--space-sm) 0;
    }
    
    /* Stat cards smaller */
    .stat-number {
        font-size: 2rem;
    }
    
    /* Form adjustments */
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px; /* Prevents iOS zoom on focus */
    }
    
    /* Page header compact */
    .page-header {
        padding: calc(60px + var(--space-md)) 0 var(--space-md);
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    /* Trust badges */
    .trust-badges {
        gap: var(--space-md);
    }
    
    .trust-badge-icon {
        width: 40px;
        height: 40px;
    }
    
    /* Footer compact */
    .footer-bottom {
        padding: var(--space-md) 0;
    }
    
    .footer-copy {
        font-size: 0.8rem;
    }
}

/* Fix for iOS Safari viewport issues */
@supports (-webkit-touch-callout: none) {
    .hero {
        min-height: -webkit-fill-available;
    }
}

/* Ensure images don't overflow on mobile */
img {
    max-width: 100%;
    height: auto;
}

/* Fix long URLs or email addresses breaking layout */
a {
    word-break: break-word;
}

/* Fix tables on mobile */
@media (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}
