:root {
    --primary-color: #500000; /* Maroon from Calallen ISD */
    --primary-light: #7a0000;
    --primary-dark: #300000;
    --text-color: #1a1a1a;
    --text-light: #666666;
    --bg-color: #f8f9fa;
    --white: #ffffff;
    --radius: 16px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

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

html {
    scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.2;
}

h1 { font-size: 1.5rem; }
h2 { font-size: 2.5rem; margin-bottom: 1rem; color: var(--text-color); }
h3 { font-size: 1.75rem; margin-bottom: 0.5rem; color: var(--primary-color); }
h4 { font-size: 1.25rem; margin-bottom: 0.5rem; margin-top: 1.5rem; }

/* Layout Containers */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.05rem;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nav-link:hover::after, .nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: opacity 0.3s;
}

.logo-wrapper:hover {
    opacity: 0.8;
}

.logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(80, 0, 0, 0.15);
}

.site-title h1 {
    color: var(--primary-color);
    margin: 0;
    font-size: 1.25rem;
    letter-spacing: 0.5px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 14px rgba(80, 0, 0, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(80, 0, 0, 0.4);
}

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

.btn-outline:hover, .btn-outline.active {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Page Layouts (Non-Hero pages) */
.page-layout {
    padding-top: 100px;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-content {
    flex: 1;
    padding: 4rem 0;
}

.content-header {
    text-align: center;
    margin-bottom: 3rem;
}

.content-card {
    background: var(--white);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    max-width: 900px;
    margin: 0 auto;
}

.content-card p {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.highlight-box {
    background-color: rgba(80, 0, 0, 0.05);
    border-left: 5px solid var(--primary-color);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border-radius: 0 12px 12px 0;
}

.highlight-box h3 {
    margin: 0;
    font-size: 1.4rem;
    line-height: 1.4;
    color: var(--primary-color);
    font-style: italic;
}

.values-list {
    list-style-type: none;
    margin-top: 1rem;
}

.values-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.values-list li::before {
    content: "•";
    color: var(--primary-color);
    font-size: 2rem;
    position: absolute;
    left: 0;
    top: -0.5rem;
}

/* Hero Section (Homepage) */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
}

.hero-bg {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(80,0,0,0.08) 0%, rgba(80,0,0,0) 70%);
    border-radius: 50%;
    z-index: 0;
    animation: float 10s ease-in-out infinite;
}

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

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

/* Glassmorphism Card */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    padding: 4rem;
    max-width: 800px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.badge {
    display: inline-block;
    background-color: rgba(80, 0, 0, 0.1);
    color: var(--primary-color);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.mission-text {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Info Grid (Homepage) */
.info-section {
    padding: 6rem 0;
    background-color: var(--white);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.info-card {
    background: linear-gradient(180deg, var(--white) 0%, #fcfcfc 100%);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.read-more {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: padding-left 0.3s ease;
}

.read-more:hover {
    padding-left: 5px;
}

/* Contact Section */
.contact-section {
    padding: 6rem 0;
}

.contact-card {
    background: linear-gradient(180deg, var(--white) 0%, #fcfcfc 100%);
    border-radius: var(--radius);
    padding: 4rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background-color: rgba(80, 0, 0, 0.05);
    color: var(--primary-color);
    border-radius: 50%;
    margin-bottom: 1.5rem;
}

.contact-card p {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.email-link {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    position: relative;
    padding-bottom: 5px;
}

.email-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.email-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Footer */
.site-footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3rem 0;
    margin-top: auto; /* Pushes footer to bottom if page is short */
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    align-items: start;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--white);
    padding: 2px;
}

.footer-details {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-weight: 800;
    font-size: 1.25rem;
}

.footer-charity {
    font-size: 0.85rem;
    opacity: 0.8;
}

.footer-address {
    font-size: 0.95rem;
    opacity: 0.9;
}

.footer-links p {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Animations */
.fade-in-up, .slide-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.75rem;
    color: var(--primary-color);
    cursor: pointer;
    z-index: 1001;
}

.mobile-only {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 900px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-container > .btn-outline {
        display: none;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out, padding 0.4s ease-out;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

    .nav-links.mobile-active {
        max-height: 500px;
        padding: 0;
    }

    .nav-link {
        text-align: left;
        padding: 1rem 2rem;
        display: block;
        width: 100%;
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .nav-link::after {
        display: none;
    }

    .nav-link:hover, .nav-link.active {
        background-color: transparent;
        text-decoration: underline;
        text-underline-offset: 6px;
    }
    
    .mobile-only {
        display: block !important;
    }
}

@media (max-width: 768px) {
    .glass-card {
        padding: 2.5rem 1.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .mission-text {
        font-size: 1.1rem;
    }
    
    .contact-card, .content-card {
        padding: 2.5rem 1.5rem;
    }
    
    .email-link {
        font-size: 1.25rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .site-title h1 {
        display: none;
    }
}
