/* ============================================================
   ST. MICHAEL'S PARISH — HARVEST & BAZAAR 2026
   Professional Church Website Stylesheet
   ============================================================ */

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
    /* Primary Palette */
    --gold: #C9A84C;
    --gold-light: #D4B96A;
    --gold-dark: #A88A35;
    --burgundy: #6B1D2F;
    --burgundy-dark: #4A1420;
    --burgundy-light: #8B2A42;
    --cream: #FFF8E7;
    --cream-dark: #F5ECD7;
    --brown: #2C1810;
    --brown-light: #3D2216;
    --green: #2D5A27;
    --green-light: #3A7332;

    /* Neutrals */
    --white: #FFFFFF;
    --off-white: #FAFAFA;
    --gray-50: #F8F9FA;
    --gray-100: #F0F1F3;
    --gray-200: #E2E4E7;
    --gray-300: #C4C8CE;
    --gray-400: #9DA3AE;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --black: #0A0A0A;

    /* Typography */
    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
    --shadow-inner: inset 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-gold: 0 4px 20px rgba(201, 168, 76, 0.3);

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    /* Container */
    --container-max: 1200px;
    --container-padding: 20px;

    /* Nav Height */
    --nav-height: 80px;
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.7;
    color: var(--gray-700);
    background-color: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-base);
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
}

input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ===== PRELOADER ===== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--brown);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-content {
    text-align: center;
}

.preloader-logo-stage {
    position: relative;
    width: 82px;
    height: 82px;
    margin: 0 auto 17px;
    display: grid;
    place-items: center;
    animation: preloaderFloat 2.2s ease-in-out infinite;
}

.preloader-logo-stage::before {
    content: '';
    position: absolute;
    inset: -6px;
    border: 2px solid rgba(201, 168, 76, 0.22);
    border-top-color: var(--gold);
    border-right-color: var(--gold);
    border-bottom-color: rgba(201, 168, 76, 0.55);
    border-radius: 50%;
    box-shadow: 0 0 22px rgba(201, 168, 76, 0.16);
    animation: preloaderRing 1.2s linear infinite;
}

.preloader-logo-stage::after {
    content: '';
    position: absolute;
    inset: 3px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    animation: preloaderHalo 1.6s ease-in-out infinite;
}

.preloader-logo {
    width: 66px;
    height: 66px;
    display: block;
    object-fit: contain;
    padding: 2px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    animation: preloaderLogo 1.6s ease-in-out infinite;
}

@keyframes preloaderRing {
    to { transform: rotate(360deg); }
}

@keyframes preloaderHalo {
    0%, 100% { opacity: 0.25; transform: scale(0.9); }
    50% { opacity: 0.9; transform: scale(1.08); }
}

@keyframes preloaderLogo {
    0%, 100% { transform: scale(0.92); filter: brightness(0.94); }
    50% { transform: scale(1); filter: brightness(1.08); }
}

@keyframes preloaderFloat {
    0%, 100% { transform: translateY(2px); }
    50% { transform: translateY(-5px); }
}

.preloader-text {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--gold);
    letter-spacing: 0;
    text-transform: uppercase;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all var(--transition-base);
    padding: 15px 0;
}

.navbar.scrolled {
    background: rgba(44, 24, 16, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: var(--shadow-lg);
    padding: 10px 0;
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--white);
}

.nav-logo i {
    font-size: 1.6rem;
    color: var(--gold);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    transition: all var(--transition-base);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    background: var(--gold);
    color: var(--brown);
    font-weight: 600;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--gold);
    color: var(--brown);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-gold);
}

.nav-cta:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(201, 168, 76, 0.4);
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 28px;
    height: 2.5px;
    background: var(--white);
    border-radius: 3px;
    transition: all var(--transition-base);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a0a06 0%, #2C1810 30%, #3D2216 60%, #1a0a06 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(201, 168, 76, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(107, 29, 47, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(45, 90, 39, 0.1) 0%, transparent 50%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(0deg, rgba(201, 168, 76, 0.03) 0px, rgba(201, 168, 76, 0.03) 1px, transparent 1px, transparent 40px),
        repeating-linear-gradient(90deg, rgba(201, 168, 76, 0.03) 0px, rgba(201, 168, 76, 0.03) 1px, transparent 1px, transparent 40px);
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 30%, rgba(26, 10, 6, 0.6) 100%);
    pointer-events: none;
}

/* Floating Particles */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--gold);
    opacity: 0;
    animation: floatUp linear infinite;
}

@keyframes floatUp {
    0% {
        opacity: 0;
        transform: translateY(100vh) scale(0);
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.2;
    }
    100% {
        opacity: 0;
        transform: translateY(-10vh) scale(1.5);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 850px;
    padding: 40px 20px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: rgba(201, 168, 76, 0.15);
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: var(--radius-full);
    color: var(--gold-light);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 30px;
    animation: fadeInDown 0.8s ease forwards;
}

.hero-badge i {
    animation: rotateGrain 3s ease-in-out infinite;
}

@keyframes rotateGrain {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(15deg); }
    75% { transform: rotate(-15deg); }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 10px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero-title-accent {
    color: var(--gold);
    font-style: italic;
}

.hero-year {
    display: block;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--gold);
    font-weight: 400;
    letter-spacing: 12px;
    margin-top: 5px;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.8);
    max-width: 650px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-subtitle em {
    color: var(--gold-light);
    font-style: italic;
}

/* Countdown */
.hero-countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    min-width: 100px;
}

.countdown-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.countdown-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 6px;
}

.countdown-divider {
    font-size: 2rem;
    color: var(--gold);
    font-weight: 300;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gold);
    color: var(--brown);
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.4);
}

.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(201, 168, 76, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-3px);
}

.btn-secondary {
    background: var(--brown);
    color: var(--cream);
}

.btn-secondary:hover {
    background: var(--brown-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-dark {
    background: transparent;
    color: var(--brown);
    border: 2px solid rgba(44, 24, 16, 0.3);
    font-size: 0.85rem;
    padding: 12px 28px;
}

.btn-outline-dark:hover {
    background: var(--brown);
    color: var(--cream);
    border-color: var(--brown);
}

.btn-block {
    width: 100%;
    justify-content: center;
    padding: 18px;
    font-size: 1.05rem;
}

/* Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 2;
}

.hero-scroll span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.5);
}

.scroll-mouse {
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    display: flex;
    justify-content: center;
}

.scroll-wheel {
    width: 4px;
    height: 10px;
    background: var(--gold);
    border-radius: 3px;
    margin-top: 8px;
    animation: scrollWheel 1.8s ease infinite;
}

@keyframes scrollWheel {
    0% { opacity: 1; transform: translateY(0); }
    50% { opacity: 0.5; transform: translateY(8px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ===== SECTION HEADERS ===== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: var(--radius-full);
    color: var(--gold-dark);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--brown);
    margin-bottom: 20px;
    line-height: 1.2;
}

.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.divider-line {
    display: block;
    width: 60px;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.divider-icon {
    color: var(--gold);
    font-size: 1.2rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-500);
    max-width: 600px;
    margin: 16px auto 0;
    line-height: 1.6;
}

/* ===== ABOUT SECTION ===== */
.about {
    padding: 100px 0;
    background: var(--cream);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-img-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-img-decoration {
    position: absolute;
    bottom: -15px;
    left: -15px;
    width: 120px;
    height: 120px;
    border: 4px solid var(--gold);
    border-radius: var(--radius-lg);
    z-index: -1;
}

/* Placeholder Images */
.placeholder-img {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--white);
    text-align: center;
}

.placeholder-img i {
    opacity: 0.8;
}

.placeholder-img span {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.9;
}

.placeholder-about {
    background: linear-gradient(135deg, var(--burgundy), var(--brown));
    height: 400px;
    font-size: 4rem;
}

.placeholder-about span {
    font-size: 1.2rem;
}

.placeholder-gallery {
    background: linear-gradient(135deg, var(--gold-dark), var(--brown));
    height: 220px;
    font-size: 2.5rem;
    border-radius: var(--radius-md);
}

.placeholder-gallery span {
    font-size: 0.85rem;
}

.about-text h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--brown);
    margin-bottom: 20px;
}

.about-text p {
    color: var(--gray-600);
    margin-bottom: 16px;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 24px 0;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.about-feature:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.about-feature i {
    color: var(--gold);
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.about-feature span {
    font-weight: 500;
    color: var(--gray-700);
    font-size: 0.9rem;
}

/* ===== EVENT SECTION ===== */
.event {
    padding: 100px 0;
    background: var(--white);
}

.event-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.event-card {
    text-align: center;
    padding: 36px 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-100);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--gold), var(--burgundy));
    transform: scaleX(0);
    transition: transform var(--transition-slow);
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.event-card:hover::before {
    transform: scaleX(1);
}

.event-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--white);
    box-shadow: var(--shadow-gold);
}

.event-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--brown);
    margin-bottom: 8px;
}

.event-card p {
    color: var(--gray-500);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Timeline */
.event-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.timeline-title {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--brown);
    margin-bottom: 40px;
}

.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--gold), var(--burgundy), var(--green));
    border-radius: 2px;
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 10px;
    width: 18px;
    height: 18px;
    background: var(--gold);
    border: 4px solid var(--white);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.3);
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.3); }
    50% { box-shadow: 0 0 0 12px rgba(201, 168, 76, 0); }
}

.timeline-content {
    width: calc(50% - 40px);
    padding: 24px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-100);
    transition: all var(--transition-base);
}

.timeline-content:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.timeline-time {
    display: inline-block;
    padding: 4px 12px;
    background: var(--gold);
    color: var(--brown);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.timeline-content h4 {
    font-family: var(--font-heading);
    color: var(--brown);
    margin-bottom: 4px;
}

.timeline-content p {
    color: var(--gray-500);
    font-size: 0.9rem;
}

/* ===== GALLERY SECTION ===== */
.gallery {
    padding: 100px 0;
    background: var(--gray-50);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item:nth-child(1) .placeholder-gallery {
    height: 480px;
}

.gallery-item:nth-child(6) {
    grid-column: span 2;
}

/* ===== IMPACT SECTION ===== */
.impact {
    position: relative;
    padding: 80px 0;
    background: linear-gradient(135deg, var(--brown), var(--burgundy-dark));
    overflow: hidden;
}

.impact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    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.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4h-4v2h2v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V4h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.impact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 24, 16, 0.9), rgba(107, 29, 47, 0.85));
}

.impact .container {
    position: relative;
    z-index: 2;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.impact-item {
    text-align: center;
    padding: 40px 20px;
}

.impact-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: rgba(201, 168, 76, 0.15);
    border: 2px solid rgba(201, 168, 76, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--gold);
    transition: all var(--transition-base);
}

.impact-item:hover .impact-icon {
    background: var(--gold);
    color: var(--brown);
    transform: scale(1.1);
}

.impact-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    margin-bottom: 8px;
}

.impact-label {
    color: var(--gold-light);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== DONATE SECTION ===== */
.donate {
    padding: 100px 0;
    background: var(--white);
}

.more-info-call {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 18px 20px;
    background: var(--white);
    border: 1px solid rgba(201, 168, 76, 0.25);
    border-left: 4px solid var(--gold);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.more-info-call-donate {
    max-width: 920px;
    margin: 0 auto 34px;
}

.more-info-call-contact {
    display: block;
}

.more-info-call-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.more-info-call-heading i {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    background: rgba(45, 90, 39, 0.1);
    color: var(--green);
    border-radius: var(--radius-md);
}

.more-info-call-heading h3 {
    margin: 0;
    color: var(--brown);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    line-height: 1.25;
}

.more-info-call-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.more-info-call-list a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 11px;
    background: var(--cream);
    border: 1px solid rgba(201, 168, 76, 0.22);
    border-radius: var(--radius-sm);
    color: var(--gray-700);
    text-decoration: none;
    line-height: 1.25;
}

.more-info-call-list strong {
    color: var(--brown);
    white-space: nowrap;
}

.more-info-call-list span {
    color: var(--green);
    font-weight: 800;
    white-space: nowrap;
}

.more-info-call-contact .more-info-call-list {
    justify-content: flex-start;
    margin-top: 12px;
}

/* Progress Bar */
.progress-section {
    max-width: 700px;
    margin: 0 auto 50px;
    padding: 30px;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--gray-700);
}

.progress-percent {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--green);
    font-weight: 700;
}

.progress-bar-container {
    width: 100%;
    height: 18px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
    box-shadow: var(--shadow-inner);
}

.progress-bar {
    height: 100%;
    width: 68%;
    background: linear-gradient(90deg, var(--green), var(--green-light));
    border-radius: var(--radius-full);
    position: relative;
    transition: width 2s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-glow {
    position: absolute;
    right: 0;
    top: 0;
    width: 40px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4));
    border-radius: var(--radius-full);
    animation: progressGlow 2s ease-in-out infinite;
}

@keyframes progressGlow {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--gray-500);
}

/* Donation Form */
.donation-form-wrapper {
    max-width: 650px;
    margin: 0 auto;
    padding: 40px;
    background: var(--cream);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(201, 168, 76, 0.15);
}

.donation-form h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--brown);
    margin-bottom: 24px;
    text-align: center;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--gray-700);
    font-size: 0.9rem;
}

.form-group label span {
    color: var(--burgundy);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    color: var(--gray-800);
    background: var(--white);
    transition: all var(--transition-base);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.1);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236B7280' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
}

.form-note {
    text-align: center;
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.form-note i {
    color: var(--green);
}

/* ===== SPONSORS SECTION ===== */
.sponsors {
    padding: 100px 0;
    background: var(--cream);
}

.sponsor-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.sponsor-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-100);
    transition: all var(--transition-base);
    text-align: center;
}

.sponsor-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.sponsor-card.featured {
    transform: scale(1.05);
    border-color: var(--gold);
    box-shadow: var(--shadow-gold);
    position: relative;
}

.sponsor-card.featured:hover {
    transform: scale(1.08);
}

.sponsor-badge {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 16px;
    background: var(--gold);
    color: var(--brown);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
    white-space: nowrap;
}

.sponsor-card-header {
    padding: 36px 20px 24px;
    color: var(--white);
}

.sponsor-card-header.bronze {
    background: linear-gradient(135deg, #CD7F32, #A0622E);
}

.sponsor-card-header.silver {
    background: linear-gradient(135deg, #A8A8A8, #808080);
}

.sponsor-card-header.gold {
    background: linear-gradient(135deg, #D4A017, #B8860B);
}

.sponsor-card-header.platinum {
    background: linear-gradient(135deg, #5E5E5E, #3A3A3A);
}

.sponsor-card-header i {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.sponsor-card-header h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.sponsor-price {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 8px;
}

.sponsor-benefits {
    padding: 28px 20px;
    text-align: left;
}

.sponsor-benefits li {
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-600);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sponsor-benefits li:last-child {
    border-bottom: none;
}

.sponsor-benefits li i {
    color: var(--green);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.sponsor-card .btn {
    margin: 0 20px 24px;
    display: flex;
    justify-content: center;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
    padding: 100px 0;
    background: var(--white);
}

.testimonial-slider {
    max-width: 750px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card {
    flex: 0 0 100%;
    padding: 40px;
    text-align: center;
}

.testimonial-quote-icon {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 20px;
    opacity: 0.4;
}

.testimonial-text {
    font-size: 1.15rem;
    color: var(--gray-600);
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.testimonial-avatar {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.3rem;
}

.testimonial-author h4 {
    font-family: var(--font-heading);
    color: var(--brown);
    font-weight: 600;
}

.testimonial-author span {
    color: var(--gray-500);
    font-size: 0.85rem;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.dot {
    width: 12px;
    height: 12px;
	padding: 0;
	border: 0;
    border-radius: 50%;
    background: var(--gray-300);
    cursor: pointer;
    transition: all var(--transition-base);
}

.dot.active {
    background: var(--gold);
    transform: scale(1.3);
}

.dot:hover {
    background: var(--gold-light);
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: 100px 0;
    background: var(--gray-50);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-card {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    transition: all var(--transition-base);
}

.contact-info-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
}

.contact-info-card h4 {
    font-family: var(--font-heading);
    color: var(--brown);
    margin-bottom: 4px;
}

.contact-info-card p {
    color: var(--gray-500);
    font-size: 0.9rem;
    line-height: 1.6;
}

.contact-social {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.contact-social a {
    width: 46px;
    height: 46px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    font-size: 1.1rem;
    transition: all var(--transition-base);
}

.contact-social a:hover {
    background: var(--gold);
    color: var(--brown);
    border-color: var(--gold);
    transform: translateY(-3px);
}

.contact-form-wrapper {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-100);
}

.contact-form h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--brown);
    margin-bottom: 24px;
}

.contact-form .btn {
    width: 100%;
    justify-content: center;
}

/* ===== FOOTER ===== */
.footer {
    position: relative;
    background: var(--brown);
    color: rgba(255, 255, 255, 0.7);
}

.footer-wave {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.footer-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.footer-content {
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-logo i {
    font-size: 1.5rem;
    color: var(--gold);
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 8px;
}

.footer-verse {
    color: var(--gold);
    font-weight: 500;
    font-style: normal !important;
}

.footer-col h4 {
    font-family: var(--font-heading);
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gold);
    border-radius: 1px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    transition: all var(--transition-base);
}

.footer-col ul li a:hover {
    color: var(--gold);
    padding-left: 5px;
}

.newsletter-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px;
    align-items: stretch;
    margin-top: 16px;
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    min-height: 48px;
}

@media (prefers-reduced-motion: reduce) {
    .preloader-logo-stage,
    .preloader-logo-stage::before,
    .preloader-logo-stage::after,
    .preloader-logo,
    .preloader-text {
        animation: none;
    }
}

.newsletter-form input {
    min-width: 0;
    height: 48px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.06);
    border: none;
    color: var(--white);
    outline: none;
    font-size: 0.9rem;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.newsletter-form button {
    width: 48px;
    height: 48px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gold);
    color: var(--brown);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: all var(--transition-base);
}

.newsletter-form button:hover {
    background: var(--gold-light);
}

.footer-bottom {
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.85rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
}

/* ===== FADE-IN ANIMATIONS (Fallback) ===== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1024px) {
    .event-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .sponsor-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .sponsor-card.featured {
        transform: scale(1);
    }

    .sponsor-card.featured:hover {
        transform: translateY(-8px);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: var(--brown);
        flex-direction: column;
        padding: 100px 30px 40px;
        gap: 6px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: var(--shadow-xl);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        width: 100%;
        padding: 14px 20px;
        font-size: 1rem;
    }

    .nav-cta {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .event-cards {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-item:nth-child(1) {
        grid-column: span 2;
        grid-row: span 1;
    }

    .gallery-item:nth-child(1) .placeholder-gallery {
        height: 220px;
    }

    .gallery-item:nth-child(6) {
        grid-column: span 1;
    }

    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        flex-direction: row;
    }

    .timeline-dot {
        left: 20px;
    }

    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-year {
        letter-spacing: 6px;
    }

    .countdown-item {
        padding: 14px 16px;
        min-width: 70px;
    }

    .countdown-number {
        font-size: 1.8rem;
    }

    .countdown-divider {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .more-info-call {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .more-info-call-list {
        justify-content: flex-start;
    }

    .donation-form-wrapper {
        padding: 24px;
    }

    .sponsor-cards {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-year {
        font-size: 1.5rem;
        letter-spacing: 4px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .event-cards {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item:nth-child(1) {
        grid-column: span 1;
    }

    .gallery-item:nth-child(6) {
        grid-column: span 1;
    }

    .impact-grid {
        grid-template-columns: 1fr 1fr;
    }

    .impact-item {
        padding: 20px 10px;
    }

    .impact-number {
        font-size: 2rem;
    }

    .impact-icon {
        width: 60px;
        height: 60px;
        font-size: 1.4rem;
    }

    .testimonial-card {
        padding: 20px;
    }
}
