:root {
    /* Crest Vitality Foundation Brand Colors */
    --primary: #1E3A5F;           /* Dark Navy - CREST text */
    --secondary: #F29234;         /* Orange - VITALITY text */
    --accent: #F9C74F;            /* Yellow/Gold - Sun */
    --health-blue: #2D9CDB;       /* Light Blue - Medical Cross */
    --light: #F8FAFC;             /* Very Light Blue-Gray */
    --dark: #0F172A;              /* Darker Navy for contrast */
    --text: #334155;              /* Slate Gray for body text */
    --white: #ffffff;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; color: var(--text); line-height: 1.6; background-color: var(--white); }
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; color: var(--primary); }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Buttons */
.btn { display: inline-block; padding: 12px 28px; border-radius: 6px; font-weight: 600; cursor: pointer; border: none; transition: var(--transition); }
.btn-primary { background: var(--secondary); color: var(--white); }
.btn-primary:hover { background: var(--primary); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(30, 58, 95, 0.3); }
.btn-secondary { background: var(--accent); color: var(--primary); }
.btn-secondary:hover { background: var(--health-blue); color: var(--white); transform: translateY(-2px); }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: var(--white); }

/* Header */
.site-header { background: var(--white); box-shadow: 0 2px 15px rgba(30, 58, 95, 0.1); position: sticky; top: 0; z-index: 1000; }
.header-container { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; }
.logo { 
    font-size: 1.8rem; 
    font-weight: 700; 
    color: var(--primary); 
    display: flex; 
    align-items: center; 
    gap: 10px;
    font-family: 'Inter', sans-serif;
}
.logo-icon { 
    color: var(--health-blue); 
    font-size: 2rem;
    font-weight: bold;
}
.logo-text-crest { color: var(--primary); }
.logo-text-vitality { color: var(--secondary); }

.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { font-weight: 500; color: var(--primary); position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--secondary); }
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }

.mobile-menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 10px; }
.mobile-menu-toggle span { display: block; width: 25px; height: 3px; background: var(--primary); margin: 5px 0; transition: var(--transition); }

/* Hero Section with Logo-Inspired Design */
.hero {
    background: linear-gradient(135deg, var(--light) 0%, #E0F2FE 50%, #FEF3C7 100%);
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Ultrasound/Sun Ray Effect - Inspired by Logo */
.hero::before {
    content: '';
    position: absolute;
    top: -50%; 
    left: 50%; 
    transform: translateX(-50%);
    width: 1000px; 
    height: 1000px;
    background: repeating-radial-gradient(
        circle at 50% 50%, 
        transparent 0, 
        transparent 50px, 
        rgba(249, 199, 79, 0.1) 51px, 
        transparent 52px
    );
    animation: sunPulse 15s infinite linear;
    pointer-events: none;
}

@keyframes sunPulse {
    0% { transform: translateX(-50%) scale(1) rotate(0deg); opacity: 0.5; }
    50% { transform: translateX(-50%) scale(1.2) rotate(180deg); opacity: 0.8; }
    100% { transform: translateX(-50%) scale(1) rotate(360deg); opacity: 0.5; }
}

/* Decorative Health Cross Pattern */
.hero::after {
    content: '+';
    position: absolute;
    font-size: 400px;
    color: rgba(45, 156, 219, 0.03);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 300;
    pointer-events: none;
}

.hero-content { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; padding: 0 20px; }
.hero h1 { 
    font-size: 3.2rem; 
    margin-bottom: 20px; 
    color: var(--primary);
    line-height: 1.2;
}
.hero h1 span { color: var(--secondary); }
.hero p { font-size: 1.3rem; margin-bottom: 40px; color: var(--text); max-width: 700px; margin-left: auto; margin-right: auto; }
.hero-buttons { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

/* Logo Display Section */
.logo-showcase {
    background: var(--white);
    padding: 60px 0;
    text-align: center;
    border-bottom: 3px solid var(--accent);
}
.logo-showcase img {
    max-width: 400px;
    height: auto;
    margin-bottom: 20px;
}

/* Sections */
.section { padding: 100px 0; }
.section-title { 
    text-align: center; 
    margin-bottom: 60px; 
    font-size: 2.5rem; 
    color: var(--primary);
    position: relative;
    padding-bottom: 20px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 2px;
}

/* Pillars/Programs Grid */
.pillars-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 35px; }
.pillar-card { 
    background: var(--white); 
    padding: 40px 30px; 
    border-radius: 12px; 
    box-shadow: 0 4px 20px rgba(30, 58, 95, 0.08); 
    border-top: 5px solid var(--health-blue);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(249, 199, 79, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.pillar-card:hover::before { opacity: 1; }
.pillar-card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 12px 40px rgba(30, 58, 95, 0.15);
    border-top-color: var(--secondary);
}
.pillar-card h3 { 
    color: var(--primary); 
    margin-bottom: 15px; 
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.pillar-card p { color: var(--text); line-height: 1.8; }

/* Impact Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--primary) 0%, #2D5A7B 100%);
    color: var(--white);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.stats-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: rgba(249, 199, 79, 0.1);
    border-radius: 50%;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
    position: relative;
    z-index: 1;
}
.stat-item h3 {
    font-size: 3.5rem;
    color: var(--accent);
    margin-bottom: 10px;
    font-weight: 700;
}
.stat-item p {
    font-size: 1.1rem;
    opacity: 0.9;
    color: var(--white);
}

/* Contact & Forms */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 50px; }
.contact-info-box { 
    background: var(--primary); 
    color: var(--white); 
    padding: 50px 40px; 
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}
.contact-info-box::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: rgba(242, 146, 52, 0.2);
    border-radius: 50%;
}
.contact-info-box h3 { color: var(--white); margin-bottom: 25px; font-size: 1.8rem; }
.contact-info-box p { margin-bottom: 30px; opacity: 0.9; line-height: 1.8; }
.contact-info-box ul { line-height: 2.5; }
.contact-info-box a { color: var(--accent); transition: var(--transition); }
.contact-info-box a:hover { color: var(--secondary); text-decoration: underline; }
.contact-info-box li { display: flex; align-items: flex-start; gap: 10px; }

.form-group { margin-bottom: 25px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--primary); }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; 
    padding: 14px 16px; 
    border: 2px solid #E2E8F0; 
    border-radius: 8px; 
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { 
    outline: none; 
    border-color: var(--health-blue); 
    box-shadow: 0 0 0 3px rgba(45, 156, 219, 0.1);
}
.form-group textarea { resize: vertical; min-height: 150px; }

/* Donate Section */
.donate-section {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    color: var(--white);
    text-align: center;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}
.donate-section::before {
    content: '✚';
    position: absolute;
    font-size: 300px;
    color: rgba(255, 255, 255, 0.1);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.donate-section h2 { color: var(--white); margin-bottom: 20px; font-size: 2.5rem; }
.donate-section p { max-width: 650px; margin: 0 auto 40px; font-size: 1.2rem; opacity: 0.95; }
.donation-channels {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
    position: relative;
    z-index: 1;
}
.channel-card {
    background: var(--white);
    color: var(--primary);
    padding: 30px;
    border-radius: 10px;
    min-width: 200px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: var(--transition);
}
.channel-card:hover { transform: translateY(-5px); box-shadow: 0 12px 35px rgba(0,0,0,0.2); }
.channel-card h4 { color: var(--primary); margin-bottom: 10px; }

/* Footer */
.site-footer { 
    background: var(--dark); 
    color: #94A3B8; 
    padding: 80px 0 30px;
    position: relative;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 50px; margin-bottom: 60px; }
.footer-col h3, .footer-col h4 { color: var(--white); margin-bottom: 25px; }
.footer-col h3 { font-size: 1.6rem; margin-bottom: 20px; }
.footer-col p { line-height: 1.8; margin-bottom: 20px; }
.footer-col a { transition: var(--transition); display: inline-block; }
.footer-col a:hover { color: var(--accent); transform: translateX(5px); }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: #94A3B8; }
.footer-col ul li a:hover { color: var(--secondary); }
.contact-details li { 
    display: flex; 
    align-items: flex-start; 
    gap: 12px; 
    margin-bottom: 15px;
    line-height: 1.6;
}

.newsletter-form { display: flex; gap: 10px; margin-top: 15px; }
.newsletter-form input { 
    flex: 1; 
    padding: 12px; 
    border: 1px solid #334155; 
    border-radius: 6px; 
    background: #1E293B;
    color: var(--white);
}
.newsletter-form input::placeholder { color: #64748B; }
.newsletter-form button { padding: 12px 20px; background: var(--secondary); color: var(--white); border: none; border-radius: 6px; cursor: pointer; font-weight: 600; transition: var(--transition); }
.newsletter-form button:hover { background: var(--accent); color: var(--primary); }

.footer-bottom { 
    border-top: 1px solid #334155; 
    padding-top: 30px; 
    text-align: center; 
    font-size: 0.95rem;
    color: #64748B;
}
.footer-bottom a { color: var(--health-blue); }
.footer-bottom a:hover { color: var(--accent); }

/* Responsive */
@media (max-width: 968px) {
    .contact-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.5rem; }
    .section-title { font-size: 2rem; }
}

@media (max-width: 768px) {
    .nav-links { 
        display: none; 
        position: absolute; 
        top: 100%; 
        left: 0; 
        width: 100%; 
        background: var(--white); 
        flex-direction: column; 
        padding: 30px 20px; 
        box-shadow: 0 8px 20px rgba(30, 58, 95, 0.15);
        gap: 20px;
    }
    .nav-links.active { display: flex; }
    .mobile-menu-toggle { display: block; }
    .mobile-menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
    .mobile-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }
    .hero { padding: 80px 0; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1.1rem; }
    .section { padding: 60px 0; }
    .stats-grid { grid-template-columns: 1fr; gap: 30px; }
    .stat-item h3 { font-size: 2.5rem; }
    .donation-channels { flex-direction: column; align-items: center; }
    .channel-card { width: 100%; max-width: 350px; }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}