/* Graphik Font Stack Setup */
@font-face {
    font-family: 'Graphik';
    src: url('../fonts/Graphik-Regular.woff2') format('woff2'),
         url('../fonts/Graphik-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Graphik';
    src: url('../fonts/Graphik-Medium.woff2') format('woff2'),
         url('../fonts/Graphik-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Graphik';
    src: url('../fonts/Graphik-Semibold.woff2') format('woff2'),
         url('../fonts/Graphik-Semibold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Graphik';
    src: url('../fonts/Graphik-Bold.woff2') format('woff2'),
         url('../fonts/Graphik-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary: #004146; /* WeCare Teal */
    --primary-light: #008489;
    --accent: #c64233; /* WeCare Red */
    --bg-color: #fafafa;
    --surface-color: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: rgba(0, 65, 70, 0.1);
    
    /* Animation timings */
    --anim-duration: 0.8s;
    --anim-easing: cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: 'Graphik', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Base Animations */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp var(--anim-duration) var(--anim-easing) forwards;
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

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

/* Skip link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 20px;
    background: var(--text-main);
    color: white;
    padding: 12px 24px;
    z-index: 1000;
    border-radius: 100px;
    font-weight: 600;
    text-decoration: none;
    transition: top 0.3s;
}
.skip-link:focus {
    top: 20px;
}

/* --- Header Layout --- */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    animation: slideUp 0.8s var(--anim-easing) forwards;
}

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

.logo-img {
    height: clamp(60px, 15vw, 150px);
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.03);
}

nav {
    display: flex;
    align-items: center;
    position: relative;
}

.nav-links {
    display: none; /* Mobile default */
    list-style: none;
    position: absolute;
    top: calc(100% + 16px);
    right: 0;
    min-width: 220px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 65, 70, 0.1);
    flex-direction: column;
    gap: 8px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 12px 24px;
    border-radius: 100px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    color: var(--primary);
    background: rgba(0, 65, 70, 0.06);
}

.menu-toggle {
    background: var(--primary);
    border: none;
    height: 44px;
    width: 44px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}
.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: 0.3s;
}

/* Mobile Menu Expanded State */
.nav-links.active {
    display: flex;
}

/* --- Layout & Sections --- */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px 80px 20px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.bento-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    max-width: 1200px;
}

.card {
    background: var(--surface-color);
    border-radius: 32px;
    padding: 32px 24px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.card-hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 60vh;
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    position: relative;
    overflow: hidden;
}

/* Typography */
h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--primary);
}

.hero-subtitle {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    font-weight: 400;
    color: var(--text-muted);
    max-width: 700px;
    margin-bottom: 48px;
    line-height: 1.4;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    color: var(--primary-light);
}

p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.card p {
    margin-left: 0;
    margin-right: 0;
}
.card-hero p {
    margin-left: auto;
    margin-right: auto;
}

/* --- Floating & Pulsing Animations --- */
@keyframes float-pulse {
    0% { transform: translateY(0); box-shadow: 0 0 0 0 rgba(198, 66, 51, 0.7); }
    50% { transform: translateY(-6px); }
    70% { box-shadow: 0 0 0 15px rgba(198, 66, 51, 0); }
    100% { transform: translateY(0); box-shadow: 0 0 0 0 rgba(198, 66, 51, 0); }
}

.btn-float-pulse {
    animation: float-pulse 3s ease-in-out infinite;
}
.btn-float-pulse:hover {
    animation: none;
}

/* Icon Spacing */
.btn i, .donate-nav-link i {
    margin-right: 8px;
}

/* Ultra-modern buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 40px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 500;
    border-radius: 100px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: scale(1.02) translateY(-2px);
    box-shadow: 0 20px 40px -10px rgba(0, 65, 70, 0.4);
    background: #002d30;
}

.btn-accent {
    background: var(--accent);
}
.btn-accent:hover {
    background: #a8382b;
    box-shadow: 0 20px 40px -10px rgba(198, 66, 51, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary-light);
}
.btn-secondary:hover {
    background: rgba(0, 65, 70, 0.05);
    box-shadow: none;
}

.actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

/* --- Vibe Outreach Card Styles --- */
.outreach-vibe-card {
    background: linear-gradient(to bottom right, #ffffff, #f0fdfa);
    border: 1px solid rgba(0, 65, 70, 0.08);
    position: relative;
    overflow: hidden;
    padding: 24px 12px;
}

/* Subtle glow behind the card */
.outreach-vibe-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 100%;
    background: radial-gradient(circle, rgba(198, 66, 51, 0.05) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.outreach-header {
    text-align: center;
    margin-bottom: 40px;
}
.outreach-badge {
    display: inline-block;
    background: rgba(0, 65, 70, 0.1);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}
.outreach-header h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--primary);
    margin-bottom: 12px;
}
.outreach-date {
    font-size: 1.25rem;
    color: var(--accent);
    font-weight: 600;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.outreach-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}

@media (min-width: 992px) {
    .outreach-content {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

.activities-vibe h4 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 24px;
}
.pill-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.activity-pill {
    background: #fff;
    border: 1px solid var(--border);
    padding: 12px 20px;
    border-radius: 100px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
}
.activity-pill i {
    color: var(--accent);
    font-size: 1.2rem;
}
.activity-pill:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    border-color: rgba(0, 65, 70, 0.2);
    color: var(--primary);
}

.support-card {
    background: #fff;
    border-radius: 24px;
    padding: 20px 12px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 65, 70, 0.05);
    text-align: center;
}
.support-card h4 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 8px;
}
.support-subtitle {
    color: var(--text-muted);
    margin-bottom: 24px;
    margin-left: auto;
    margin-right: auto;
}

.ussd-box {
    background: var(--primary);
    border-radius: 16px;
    padding: 16px 12px;
    margin-bottom: 24px;
    color: #fff;
    position: relative;
    overflow: hidden;
    width: 100%;
}
.ussd-box::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
}
.ussd-code {
    display: block;
    font-size: clamp(1.15rem, 5.5vw, 2.2rem);
    font-weight: 700;
    letter-spacing: 0px;
    margin-bottom: 8px;
    white-space: nowrap;
}
.ussd-name {
    display: block;
    font-size: 1rem;
    opacity: 0.8;
}

.contact-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
}
.contact-person, .contact-more {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #f8fafc;
    padding: 16px;
    border-radius: 12px;
}
.contact-person i {
    background: rgba(198, 66, 51, 0.1);
    color: var(--accent);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.contact-person div {
    display: flex;
    flex-direction: column;
}
.contact-person strong {
    color: var(--primary);
    font-size: 1.1rem;
}
.contact-person span, .contact-more span {
    color: var(--text-muted);
    font-weight: 500;
}
.contact-more {
    justify-content: center;
    text-align: center;
    flex-direction: column;
    gap: 4px;
}
.contact-more strong {
    color: var(--primary);
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 40px;
}

/* Tablet & Desktop Layouts */
@media (min-width: 768px) {
    header {
        padding: 0px 4%;
        margin-bottom: 40px;
    }
    
    .card, .outreach-vibe-card {
        padding: 40px 32px;
    }
    
    .support-card {
        padding: 32px;
    }
    
    .ussd-box {
        padding: 24px;
        margin-bottom: 32px;
    }
    
    .menu-toggle {
        display: none;
    }
    
    .nav-links {
        display: flex;
        flex-direction: row;
        position: static;
        background: rgba(255, 255, 255, 0.7);
        border: 1px solid rgba(0, 65, 70, 0.1);
        box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
        border-radius: 100px;
        padding: 12px 32px;
        width: auto;
        gap: 24px;
    }
    
    .card {
        padding: 80px;
    }
}

/* Large Desktop Layouts */
@media (min-width: 1200px) {
    header {
        padding: 0px 10%;
    }
}
