:root {
    --navy: #0F172A;
    --navy-light: #1E293B;
    --gold: #D4AF37;
    --gold-light: #E4C25A;
    --gold-dark: #B8941F;
    --white: #FFFFFF;
    --cream: #F8F6F0;
    --text-light: #94A3B8;
    --text-dark: #1E293B;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --radius: 16px;
    --shadow: 0 4px 30px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a { text-decoration: none; transition: var(--transition); }
img { max-width: 100%; height: auto; }

.container { max-width: 1200px; padding: 0 20px; margin: 0 auto; }
.container-wide { max-width: 1400px; padding: 0 20px; margin: 0 auto; }

/* Navigation */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 16px 0; transition: var(--transition);
}
.navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px 0;
    box-shadow: 0 1px 30px rgba(0,0,0,0.3);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.navbar-brand { font-family: var(--font-heading); font-size: 1.6rem; color: var(--white); font-weight: 700; }
.navbar-brand span { color: var(--gold); }
.navbar-brand:hover { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { color: rgba(255,255,255,0.85); font-size: 0.9rem; font-weight: 500; position: relative; padding: 4px 0; }
.nav-links a::after {
    content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px;
    background: var(--gold); transition: var(--transition);
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
    background: var(--gold); color: var(--navy) !important; padding: 10px 24px !important;
    border-radius: 10px; font-weight: 600 !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--gold-light); color: var(--navy) !important; transform: translateY(-2px); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { width: 28px; height: 2px; background: var(--white); transition: var(--transition); border-radius: 2px; }

@media (max-width: 991px) {
    .hamburger { display: flex; }
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
        background: var(--navy); flex-direction: column; padding: 80px 32px 32px;
        transition: var(--transition); gap: 16px; z-index: 1001;
    }
    .nav-links.active { right: 0; box-shadow: -10px 0 40px rgba(0,0,0,0.3); }
    .mobile-overlay {
        position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1000;
        display: none; backdrop-filter: blur(4px);
    }
    .mobile-overlay.active { display: block; }
}

/* Hero Section */
.hero {
    position: relative; min-height: 100vh; display: flex; align-items: center;
    background: var(--navy); overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0; z-index: 0;
}
.hero-bg img {
    width: 100%; height: 100%; object-fit: cover; opacity: 0.4;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(15,23,42,0.9) 0%, rgba(15,23,42,0.6) 50%, rgba(15,23,42,0.8) 100%);
    z-index: 1;
}
.hero-content {
    position: relative; z-index: 2; max-width: 800px; padding: 120px 0 80px;
}
.hero-badge {
    display: inline-block; padding: 8px 20px; background: rgba(212,175,55,0.15);
    border: 1px solid rgba(212,175,55,0.3); border-radius: 50px;
    color: var(--gold); font-size: 0.85rem; font-weight: 500; margin-bottom: 24px;
    backdrop-filter: blur(10px);
}
.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem); color: var(--white); margin-bottom: 20px;
    line-height: 1.1;
}
.hero-title span { color: var(--gold); }
.hero-verse {
    font-size: 1.2rem; color: rgba(255,255,255,0.7); margin-bottom: 32px;
    font-style: italic; font-family: var(--font-heading); max-width: 600px;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--gold); color: var(--navy); padding: 14px 32px;
    border-radius: 12px; font-weight: 600; font-size: 0.95rem;
    transition: var(--transition); border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-3px); box-shadow: 0 12px 40px rgba(212,175,55,0.35); color: var(--navy); }
.btn-outline {
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent; color: var(--white); padding: 14px 32px;
    border-radius: 12px; font-weight: 500; font-size: 0.95rem;
    border: 2px solid rgba(255,255,255,0.2); transition: var(--transition); cursor: pointer;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-3px); }
.btn-outline-gold {
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent; color: var(--gold); padding: 14px 32px;
    border-radius: 12px; font-weight: 500; font-size: 0.95rem;
    border: 2px solid var(--gold); transition: var(--transition); cursor: pointer;
}
.btn-outline-gold:hover { background: var(--gold); color: var(--navy); transform: translateY(-3px); }

/* Hero Parallax */
.hero-parallax { transform: translateZ(0); will-change: transform; }

/* Sections */
.section { padding: 100px 0; }
.section-dark { background: var(--navy); color: var(--white); }
.section-cream { background: var(--cream); }
.section-white { background: var(--white); }

.section-header {
    text-align: center; max-width: 650px; margin: 0 auto 60px;
}
.section-subtitle {
    display: inline-block; color: var(--gold); font-size: 0.85rem;
    font-weight: 600; text-transform: uppercase; letter-spacing: 3px; margin-bottom: 12px;
}
.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem); margin-bottom: 16px;
}
.section-description { color: var(--text-light); font-size: 1.05rem; line-height: 1.7; }

/* Cards */
.card-premium {
    background: var(--white); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); transition: var(--transition);
}
.card-premium:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.card-premium .card-img { width: 100%; height: 200px; object-fit: cover; }
.card-premium .card-body { padding: 24px; }
.card-premium .card-title { font-size: 1.2rem; margin-bottom: 8px; }
.card-premium .card-text { color: var(--text-light); font-size: 0.9rem; line-height: 1.6; }

.card-dark {
    background: var(--navy-light); border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius); overflow: hidden;
    transition: var(--transition); color: var(--white);
}
.card-dark:hover { transform: translateY(-8px); border-color: rgba(212,175,55,0.3); box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.card-dark .card-body { padding: 28px; }
.card-dark .card-title { font-size: 1.2rem; margin-bottom: 8px; }

/* Glassmorphism */
.glass {
    background: rgba(255,255,255,0.05); backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
}

/* Grid layouts */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

@media (max-width: 991px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Service Cards */
.service-card {
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius); padding: 32px; text-align: center;
    transition: var(--transition);
}
.service-card:hover { background: rgba(212,175,55,0.08); border-color: rgba(212,175,55,0.3); transform: translateY(-4px); }
.service-card .day { color: var(--gold); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 8px; }
.service-card .time { font-size: 1.8rem; font-weight: 700; font-family: var(--font-heading); margin-bottom: 4px; }
.service-card .label { color: var(--text-light); font-size: 0.9rem; }

/* Countdown / Counters */
.counter-item { text-align: center; }
.counter-number { font-size: 3rem; font-weight: 700; font-family: var(--font-heading); color: var(--gold); line-height: 1; }
.counter-label { color: var(--text-light); font-size: 0.9rem; margin-top: 8px; text-transform: uppercase; letter-spacing: 1px; }

/* Testimonials */
.testimonial-card {
    background: var(--white); border-radius: var(--radius); padding: 36px;
    box-shadow: var(--shadow); position: relative;
}
.testimonial-card::before {
    content: '"'; position: absolute; top: 16px; left: 24px;
    font-size: 5rem; color: rgba(212,175,55,0.15); font-family: var(--font-heading); line-height: 1;
}
.testimonial-text { font-size: 1rem; line-height: 1.7; color: var(--text-light); margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.testimonial-author strong { display: block; font-size: 0.95rem; }
.testimonial-author span { font-size: 0.8rem; color: var(--text-light); }

/* Pastors */
.pastor-card {
    text-align: center; border-radius: var(--radius); overflow: hidden;
    background: var(--white); box-shadow: var(--shadow); transition: var(--transition);
}
.pastor-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.pastor-card img { width: 100%; height: 320px; object-fit: cover; }
.pastor-card .pastor-info { padding: 24px; }
.pastor-card h4 { font-size: 1.2rem; margin-bottom: 4px; }
.pastor-card .pastor-title { color: var(--gold); font-size: 0.9rem; font-weight: 500; }
.pastor-social { display: flex; justify-content: center; gap: 12px; margin-top: 12px; }
.pastor-social a { color: var(--text-light); width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.1); display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.pastor-social a:hover { background: var(--gold); color: var(--white); border-color: var(--gold); }

/* Ministries */
.ministry-card {
    position: relative; border-radius: var(--radius); overflow: hidden;
    height: 300px; cursor: pointer; group: true;
}
.ministry-card img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.ministry-card:hover img { transform: scale(1.1); }
.ministry-card .overlay {
    position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,23,42,0.9) 0%, rgba(15,23,42,0.2) 100%);
    display: flex; flex-direction: column; justify-content: flex-end; padding: 32px;
    transition: var(--transition);
}
.ministry-card:hover .overlay { background: linear-gradient(to top, rgba(15,23,42,0.95) 0%, rgba(15,23,42,0.4) 100%); }
.ministry-card h4 { color: var(--white); font-size: 1.4rem; margin-bottom: 6px; }
.ministry-card p { color: rgba(255,255,255,0.7); font-size: 0.9rem; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery-item { position: relative; border-radius: 8px; overflow: hidden; cursor: pointer; aspect-ratio: 1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item .gallery-overlay {
    position: absolute; inset: 0; background: rgba(15,23,42,0.6);
    display: flex; align-items: center; justify-content: center; opacity: 0; transition: var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item .gallery-overlay i { color: var(--white); font-size: 2rem; }

@media (max-width: 767px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--navy) 0%, #1a2744 100%);
    position: relative; overflow: hidden;
}
.stats-section::before {
    content: ''; position: absolute; inset: 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='%23D4AF37' fill-opacity='0.03'%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");
}

/* Donation Banner */
.donation-banner {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border-radius: var(--radius); padding: 60px; text-align: center; position: relative; overflow: hidden;
}
.donation-banner::before {
    content: ''; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='50' cy='50' r='40' fill='none' stroke='rgba(255,255,255,0.1)' stroke-width='2'/%3E%3C/svg%3E") 0 0/100px 100px;
}
.donation-banner h2 { color: var(--navy); font-size: 2.2rem; margin-bottom: 12px; position: relative; }
.donation-banner p { color: rgba(15,23,42,0.7); max-width: 500px; margin: 0 auto 24px; position: relative; }
.btn-dark {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--navy); color: var(--white); padding: 14px 32px;
    border-radius: 12px; font-weight: 600; transition: var(--transition); border: none; cursor: pointer; position: relative;
}
.btn-dark:hover { background: #1a2744; transform: translateY(-3px); box-shadow: 0 12px 40px rgba(15,23,42,0.3); color: var(--white); }

/* Prayer Form */
.prayer-form { background: var(--navy-light); border-radius: var(--radius); padding: 40px; border: 1px solid rgba(255,255,255,0.08); }
.prayer-form textarea { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; color: var(--white); padding: 14px; min-height: 120px; width: 100%; }
.prayer-form textarea:focus { border-color: var(--gold); outline: none; }
.prayer-form input { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; color: var(--white); padding: 12px 14px; width: 100%; }
.prayer-form input:focus { border-color: var(--gold); outline: none; }

/* Newsletter */
.newsletter-form { display: flex; gap: 12px; max-width: 500px; margin: 0 auto; }
.newsletter-form input { flex: 1; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: 12px; padding: 14px 20px; color: var(--white); font-size: 0.95rem; }
.newsletter-form input:focus { border-color: var(--gold); outline: none; }
.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }

/* Footer */
.footer {
    background: var(--navy); color: var(--white); border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-top { padding: 80px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand { font-family: var(--font-heading); font-size: 1.6rem; color: var(--white); margin-bottom: 16px; }
.footer-brand span { color: var(--gold); }
.footer-about { color: var(--text-light); font-size: 0.9rem; line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
    width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center;
    color: var(--text-light); transition: var(--transition);
}
.footer-social a:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); transform: translateY(-3px); }
.footer h4 { font-size: 1.1rem; margin-bottom: 20px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--text-light); font-size: 0.9rem; }
.footer-links a:hover { color: var(--gold); padding-left: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding: 24px 0; display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; color: var(--text-light); }
.footer-bottom a { color: var(--gold); }

@media (max-width: 991px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575px) { .footer-grid { grid-template-columns: 1fr; } }

/* Animations */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in-left.visible { opacity: 1; transform: translateX(0); }
.fade-in-right { opacity: 0; transform: translateX(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in-right.visible { opacity: 1; transform: translateX(0); }
.fade-in-scale { opacity: 0; transform: scale(0.9); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in-scale.visible { opacity: 1; transform: scale(1); }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

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

@keyframes pulse-gold {
    0%, 100% { box-shadow: 0 0 0 0 rgba(212,175,55,0.4); }
    50% { box-shadow: 0 0 0 20px rgba(212,175,55,0); }
}

/* Articles */
.article-card { border-radius: var(--radius); overflow: hidden; background: var(--white); box-shadow: var(--shadow); transition: var(--transition); }
.article-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.article-card img { width: 100%; height: 220px; object-fit: cover; }
.article-card .article-body { padding: 24px; }
.article-card .article-meta { font-size: 0.8rem; color: var(--text-light); margin-bottom: 8px; display: flex; gap: 12px; }
.article-card .article-meta span { display: flex; align-items: center; gap: 4px; }
.article-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.article-card h3 a { color: var(--text-dark); }
.article-card h3 a:hover { color: var(--gold); }
.article-card p { color: var(--text-light); font-size: 0.9rem; line-height: 1.6; }

/* Map */
.map-container { border-radius: var(--radius); overflow: hidden; height: 400px; }

/* Page Header */
.page-header {
    background: var(--navy); padding: 160px 0 80px; text-align: center; position: relative; overflow: hidden;
}
.page-header h1 { color: var(--white); font-size: clamp(2rem, 4vw, 3rem); }
.page-header p { color: var(--text-light); margin-top: 12px; font-size: 1.1rem; }

/* Search */
.search-form { max-width: 600px; margin: 0 auto; position: relative; }
.search-form input { width: 100%; padding: 16px 20px; border-radius: 12px; border: 1px solid var(--card-border); background: var(--white); font-size: 1rem; }
.search-form input:focus { border-color: var(--gold); outline: none; }

/* Event Calendar */
.event-card { display: flex; gap: 20px; background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); transition: var(--transition); }
.event-card:hover { transform: translateX(8px); box-shadow: var(--shadow-lg); }
.event-date-box { text-align: center; min-width: 80px; padding: 12px; background: var(--navy); border-radius: 12px; color: var(--white); }
.event-date-box .day { font-size: 2rem; font-weight: 700; font-family: var(--font-heading); line-height: 1; }
.event-date-box .month { font-size: 0.85rem; text-transform: uppercase; color: var(--gold); margin-top: 4px; }
.event-info h3 { font-size: 1.2rem; margin-bottom: 6px; }
.event-info p { color: var(--text-light); font-size: 0.9rem; margin-bottom: 4px; }
.event-info .event-time { color: var(--gold); font-weight: 500; font-size: 0.85rem; }

/* Mobile adjustments */
@media (max-width: 575px) {
    .section { padding: 60px 0; }
    .hero-content { text-align: center; }
    .hero-buttons { justify-content: center; }
    .newsletter-form { flex-direction: column; }
    .donation-banner { padding: 40px 24px; }
}
