/* ===================================
   RESOL Global Health - Light Theme
   Beautiful, warm, and inviting
   =================================== */

/* CSS Variables - Light Theme with Navy & Gold */
:root {
    --white: #FFFFFF;
    --off-white: #FAFAFA;
    --cream: #FDF9F3;
    --warm-gray: #E8E4DE;

    /* Brand Colors */
    --navy: #353551;
    --navy-light: #4A4A6A;
    --navy-soft: #6B6B8A;
    --gold: #D09A40;
    --gold-light: #E8B968;
    --gold-dark: #B8842C;
    --gold-pale: #F5E6C8;

    /* Text Colors */
    --text-primary: #353551;
    --text-secondary: #5C5C7A;
    --text-light: #8A8AA0;

    /* Soft shadows */
    --shadow-sm: 0 2px 8px rgba(53, 53, 81, 0.06);
    --shadow-md: 0 4px 20px rgba(53, 53, 81, 0.08);
    --shadow-lg: 0 8px 40px rgba(53, 53, 81, 0.1);
    --shadow-xl: 0 20px 60px rgba(53, 53, 81, 0.12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Karla', sans-serif;
    background-color: var(--off-white);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ===================================
   Navigation - Clean & Minimal
   =================================== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.25rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    animation: fadeDown 0.6s ease-out;
}

@keyframes fadeDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
}

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

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
    border-radius: 2px;
}

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

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

.donate-btn {
    background: var(--gold);
    color: var(--navy) !important;
    padding: 0.75rem 1.75rem;
    border-radius: 100px;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.donate-btn::after {
    display: none;
}

.donate-btn:hover {
    background: var(--gold-light);
    color: var(--navy) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(208, 154, 64, 0.35);
}

/* ===================================
   Hero Section - Light & Airy
   =================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 4rem 6rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--white) 0%, var(--cream) 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 80%;
    background: radial-gradient(ellipse at center, rgba(208, 154, 64, 0.1) 0%, transparent 70%);
    animation: float 15s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 50%;
    height: 60%;
    background: radial-gradient(ellipse at center, rgba(53, 53, 81, 0.05) 0%, transparent 70%);
    animation: float 18s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.05); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    animation: fadeInUp 0.8s ease-out;
}

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

.hero-text h1 {
    font-family: 'Libre Baskerville', serif;
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-weight: 400;
}

.hero-text h1 .highlight {
    color: var(--gold);
    font-style: italic;
    position: relative;
}

.tagline {
    font-size: 0.9rem;
    color: var(--gold-dark);
    margin-bottom: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero-text p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(208, 154, 64, 0.35);
}

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

.btn-secondary:hover {
    background: var(--navy);
    color: var(--white);
    transform: translateY(-3px);
}

.hero-image {
    position: relative;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-image-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(208, 154, 64, 0.15) 0%, transparent 50%);
    z-index: 1;
}

.hero-image img {
    width: 100%;
    height: 550px;
    object-fit: cover;
    display: block;
}

/* ===================================
   Mission Section - Clean Cards
   =================================== */
.mission {
    background: var(--white);
    padding: 8rem 4rem;
    position: relative;
}

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

.section-title {
    font-family: 'Libre Baskerville', serif;
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    text-align: center;
    font-weight: 400;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 4rem;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.mission-card {
    background: var(--off-white);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--warm-gray);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.mission-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

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

.mission-number {
    font-family: 'Libre Baskerville', serif;
    font-size: 3.5rem;
    color: var(--gold);
    margin-bottom: 1rem;
    opacity: 0.3;
    font-weight: 700;
    line-height: 1;
}

.mission-card h3 {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.35rem;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    font-weight: 400;
}

.mission-card ul {
    list-style: none;
}

.mission-card li {
    padding: 0.6rem 0 0.6rem 1.75rem;
    position: relative;
    line-height: 1.6;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.mission-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1rem;
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
}

/* ===================================
   Values Section - Elegant Design
   =================================== */
.values {
    background: linear-gradient(180deg, var(--cream) 0%, var(--off-white) 100%);
    padding: 8rem 4rem;
}

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

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.value-card {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--white);
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    border: 1px solid transparent;
}

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

.value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.value-card:hover .value-icon {
    transform: scale(1.05) rotate(3deg);
    border-radius: 24px;
}

.value-card h3 {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 400;
}

.value-card p {
    line-height: 1.8;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ===================================
   Programs Section - Modern Cards
   =================================== */
.programs {
    background: var(--white);
    padding: 8rem 4rem;
}

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

.programs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.program-card {
    background: var(--off-white);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--warm-gray);
    transition: all 0.4s ease;
    position: relative;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold-light);
}

.program-card h3 {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 400;
}

.program-card p {
    line-height: 1.8;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.program-label {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.program-card:nth-child(-n+4) .program-label {
    background: rgba(208, 154, 64, 0.15);
    color: var(--gold-dark);
}

.program-card:nth-child(n+5) .program-label {
    background: rgba(53, 53, 81, 0.1);
    color: var(--navy);
}

/* ===================================
   Location Section - Split Layout
   =================================== */
.location {
    background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
    padding: 8rem 4rem;
}

.location-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.location-text h2 {
    font-family: 'Libre Baskerville', serif;
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.location-text p {
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

.location-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.stat-box {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 16px;
    border-left: 4px solid var(--gold);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.stat-box:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.stat-box .stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-box .stat-value {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.35rem;
    color: var(--text-primary);
    font-weight: 400;
}

/* ===================================
   CTA Section - Warm & Inviting
   =================================== */
.cta-section {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    padding: 6rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 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 {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-family: 'Libre Baskerville', serif;
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 1.25rem;
    font-weight: 400;
}

.cta-content p {
    font-size: 1.15rem;
    color: var(--white);
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.7;
}

.cta-content .btn {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
    font-weight: 600;
    padding: 1.1rem 2.5rem;
}

.cta-content .btn:hover {
    background: var(--gold-light);
    color: var(--navy);
    border-color: var(--gold-light);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(208, 154, 64, 0.4);
}

/* ===================================
   Footer - Clean & Light
   =================================== */
footer {
    background: var(--navy);
    padding: 5rem 4rem 2rem;
    color: var(--white);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-about h3 {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.35rem;
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 400;
}

.footer-about p {
    line-height: 1.8;
    opacity: 0.75;
    font-size: 0.95rem;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.7;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-section ul li a:hover {
    opacity: 1;
    color: var(--gold-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.6;
}

/* ===================================
   Scroll Animations
   =================================== */
.mission-card,
.value-card,
.program-card,
.stat-box {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.mission-card.visible,
.value-card.visible,
.program-card.visible,
.stat-box.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation delays */
.mission-card:nth-child(1), .value-card:nth-child(1), .program-card:nth-child(1) { transition-delay: 0s; }
.mission-card:nth-child(2), .value-card:nth-child(2), .program-card:nth-child(2) { transition-delay: 0.1s; }
.mission-card:nth-child(3), .value-card:nth-child(3), .program-card:nth-child(3) { transition-delay: 0.2s; }
.program-card:nth-child(4) { transition-delay: 0.3s; }
.program-card:nth-child(5) { transition-delay: 0.4s; }
.program-card:nth-child(6) { transition-delay: 0.5s; }

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.75rem;
    }

    .cta-buttons {
        justify-content: center;
    }

    .hero-image {
        max-width: 600px;
        margin: 0 auto;
    }

    .mission-grid,
    .values-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

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

    .location-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .location-stats {
        max-width: 400px;
        margin: 2.5rem auto 0;
    }

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

/* ===================================
   Mobile Menu
   =================================== */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.mobile-overlay.active {
    display: block;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    nav {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.1rem;
    }

    .nav-links a:not(.donate-btn) {
        display: block;
    }

    .donate-btn {
        margin-top: 1rem;
    }

    .hero {
        padding: 6rem 1.5rem 4rem;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .tagline {
        font-size: 0.8rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .hero-image img {
        height: 400px;
    }

    .mission,
    .values,
    .programs,
    .location {
        padding: 5rem 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 3rem;
    }

    .cta-section {
        padding: 4rem 1.5rem;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    footer {
        padding: 3rem 1.5rem 2rem;
    }
}

/* ===================================
   Selection & Focus Styles
   =================================== */
::selection {
    background: var(--gold);
    color: var(--navy);
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

/* ===================================
   Smooth Page Load
   =================================== */
@keyframes pageLoad {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

body {
    animation: pageLoad 0.5s ease-out;
}
