:root {
    --burgundy: #6B1C23;
    --burgundy-dark: #4a1318;
    --red: #C41E3A;
    --cream: #FAF8F5;
    --sage: #8B9A7D;
    --gold: #D4AF37;
    --text-dark: #2D2D2D;
}

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

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-dark);
    background-color: var(--cream);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--burgundy);
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-img {
    height: 60px;
    width: auto;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s;
}

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

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.6)),
                url("../images/lights-barn-truck.8441157fb9bd.webp") center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    position: relative;
}

.hero-content {
    color: white;
    max-width: 900px;
}

.hero-logo {
    width: 200px;
    height: auto;
    margin-bottom: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero h1 {
    font-size: 4rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 1rem;
    letter-spacing: 3px;
}

.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.divider-arrow {
    color: var(--red);
    font-size: 1.5rem;
}

.divider-line {
    width: 60px;
    height: 2px;
    background-color: var(--red);
}

.hero-tagline {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.8rem;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

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

/* Section Styles */
section {
    padding: 5rem 2rem;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
}

.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.section-divider span {
    color: var(--red);
    font-size: 1.2rem;
}

.section-divider hr {
    width: 40px;
    border: none;
    height: 2px;
    background-color: var(--red);
}

/* Welcome Section */
.welcome {
    background-color: var(--cream);
}

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

.welcome h2 {
    font-size: 2.5rem;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.welcome p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

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

.welcome-images img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center top;
    border-radius: 8px;
    transition: transform 0.3s;
}

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

/* Foundation Section */
.foundation {
    background: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)),
                url("../images/pixabay-christmas-ornaments.dae5dc7659cc.webp") center/cover;
    color: white;
    text-align: center;
}

.foundation-content {
    max-width: 800px;
    margin: 0 auto;
}

.foundation h2 {
    font-size: 3rem;
}

.foundation p {
    font-size: 1.15rem;
    line-height: 1.9;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--sage);
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: background-color 0.3s, transform 0.3s;
}

.btn:hover {
    background-color: #7a8a6e;
    transform: translateY(-2px);
}

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

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

.btn-burgundy-outline {
    padding: 0.75rem 1.5rem;
    font-size: 0.8rem;
    background: transparent;
    border: 2px solid var(--burgundy);
    color: var(--burgundy);
    text-align: center;
}

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

/* Programs Section */
.programs {
    background-color: var(--cream);
}

.programs-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.program-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.program-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center center;
}

.program-card img.align-top {
    object-position: center top;
}

.program-card-content {
    padding: 1.5rem;
}

.program-card h3 {
    color: var(--red);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.program-card p {
    color: #666;
    font-size: 0.95rem;
}

.program-card .btn {
    margin-top: 1rem;
    padding: 0.6rem 1.5rem;
    font-size: 0.8rem;
}

/* Donate Section */
.donate {
    background: linear-gradient(rgba(107, 28, 35, 0.92), rgba(107, 28, 35, 0.92)),
                url("../images/pixabay-gift-red.e1175d1bd8c9.webp") center/cover;
    color: white;
    text-align: center;
}

.donate h2 {
    font-size: 3rem;
    font-style: italic;
}

.donate p {
    max-width: 700px;
    margin: 0 auto 2rem;
    font-size: 1.15rem;
    line-height: 1.8;
}

/* Santa Community Section */
.community {
    background-color: var(--sage);
    color: white;
}

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

.community h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.community p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.community-image {
    position: relative;
}

.community-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.community-quote {
    position: absolute;
    top: 2rem;
    right: -1rem;
    background: rgba(255,255,255,0.95);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--burgundy);
    font-size: 0.9rem;
    max-width: 200px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Events Section */
.events {
    background-color: var(--cream);
}

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

.event-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.event-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 220px;
}

.event-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-card h3 {
    color: var(--red);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.event-date {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.event-card .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.8rem;
    background: transparent;
    border: 2px solid var(--burgundy);
    color: var(--burgundy);
    text-align: center;
}

.event-card .btn:hover {
    background: var(--burgundy);
    color: white;
}

/* Contact Section */
.contact {
    background-color: white;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

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

.contact-item h4 {
    color: var(--burgundy);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-item p, .contact-item a {
    color: #666;
    text-decoration: none;
}

.contact-item a:hover {
    color: var(--red);
}

/* Page Hero (subpages) */
.page-hero {
    padding: 8rem 2rem 4rem;
    background: linear-gradient(rgba(107, 28, 35, 0.88), rgba(107, 28, 35, 0.88)),
                url("../images/pixabay-christmas-ornaments.dae5dc7659cc.webp") center/cover;
    color: white;
    text-align: center;
}

.page-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Page Content (subpages) */
.page-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.page-content h2 {
    font-size: 2rem;
    color: var(--burgundy);
    margin-bottom: 1rem;
    margin-top: 3rem;
}

.page-content h2:first-child {
    margin-top: 0;
}

.page-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
}

.page-content ul, .page-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.page-content li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 0.5rem;
}

/* Info cards grid for subpages */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.info-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.info-card h3 {
    color: var(--red);
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.info-card p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Tier table for subpages */
.tier-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.tier-table th {
    background: var(--burgundy);
    color: white;
    padding: 1rem;
    text-align: left;
    font-family: 'Playfair Display', serif;
}

.tier-table td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    color: #555;
}

.tier-table tr:last-child td {
    border-bottom: none;
}

/* CTA Banner */
.cta-banner {
    background-color: var(--burgundy);
    color: white;
    text-align: center;
    padding: 4rem 2rem;
}

.cta-banner h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-banner p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

/* Footer */
footer {
    background-color: var(--burgundy);
    color: white;
    padding: 3rem 2rem 1rem;
}

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

.footer-section h4 {
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.footer-section p, .footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-section a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--burgundy);
    font-size: 1.2rem;
    transition: transform 0.3s, background 0.3s;
}

.social-links a:hover {
    transform: scale(1.1);
    background: var(--gold);
}

.footer-pattern {
    height: 10px;
    background: repeating-linear-gradient(
        90deg,
        var(--red) 0px,
        var(--red) 10px,
        var(--burgundy-dark) 10px,
        var(--burgundy-dark) 20px
    );
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
}

/* Responsive */
@media (max-width: 1024px) {
    .welcome-content,
    .community-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu {
        display: flex;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-tagline {
        font-size: 1.3rem;
    }

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

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

    .welcome-images {
        grid-template-columns: 1fr;
    }

    .event-card {
        grid-template-columns: 1fr;
    }

    .event-card img {
        height: 200px;
    }

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

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

    .community-quote {
        position: relative;
        top: 0;
        right: 0;
        margin-top: 1rem;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .info-cards {
        grid-template-columns: 1fr;
    }
}

/* Scroll to top button */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background-color: var(--burgundy);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: scale(1.1);
    background-color: var(--red);
}

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

.animate {
    animation: fadeInUp 0.8s ease-out forwards;
}
