/* ========================================
   SHILOH WORD MIRACLE CENTER - DARK LUXURY DESIGN SYSTEM
   Inspired by Elevation Church Aesthetic
   ======================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Montserrat:wght@400;800&display=swap');

/* CSS Variables - AFM Logo Inspired Palette */
:root {
    --royal-blue: #003380;
    --deep-blue: #003380;
    --red-accent: #E3000F;
    --gold-accent: #FFD700;
    --pure-white: #ffffff;
    --light-gray: #ffffff;
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--deep-blue);
    background-color: var(--pure-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: 2px;
    color: var(--deep-blue);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography Scale */
h1 { font-size: 4rem; }
h2 { font-size: 3rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
    color: rgba(0, 51, 128, 0.8);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: var(--transition);
    border: 2px solid var(--gold-accent);
    cursor: pointer;
    font-size: 13px;
}

.btn-gold {
    background: var(--gold-accent);
    color: var(--royal-blue);
}

.btn-gold:hover {
    background: var(--red-accent);
    border-color: var(--red-accent);
    color: var(--pure-white);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(227, 0, 15, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--gold-accent);
    color: var(--gold-accent);
}

.btn-outline:hover {
    background: var(--gold-accent);
    color: var(--royal-blue);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 10px 24px;
    font-size: 11px;
}

.text-center {
    text-align: center;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--gold-accent);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.gold-divider {
    width: 60px;
    height: 3px;
    background: var(--gold-accent);
    margin: 15px auto;
}

/* ========================================
   NAVIGATION - Ultra Transparent with Blur
   ======================================== */
.navbar {
    background: rgba(0, 51, 128, 0.05);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 15px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.navbar-logo img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 10px;
    align-items: center;
}

.nav-menu li a {
    padding: 10px 18px;
    color: var(--deep-blue);
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--red-accent);
    transition: var(--transition);
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
    width: 80%;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: var(--red-accent);
}

.btn-give {
    background: var(--gold-accent) !important;
    color: var(--royal-blue) !important;
    padding: 12px 28px !important;
    border-radius: 8px !important;
}

.btn-give::after {
    display: none !important;
}

.btn-give:hover {
    background: var(--red-accent) !important;
    color: var(--pure-white) !important;
    border: 2px solid var(--red-accent);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--deep-blue);
    cursor: pointer;
}

/* Mobile Menu - Always Hidden on Mobile Regardless of Zoom */
@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--pure-white);
        flex-direction: column;
        padding: 80px 30px 30px;
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
        z-index: 999;
        gap: 0;
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu li a {
        display: block;
        padding: 15px;
        border-bottom: 1px solid rgba(0, 51, 128, 0.1);
        color: var(--royal-blue);
    }

    .nav-menu li a::after {
        display: none;
    }
}

/* Ensure menu stays hidden on mobile even when zoomed out */
@media screen and (max-device-width: 992px) {
    .nav-menu {
        display: none !important;
    }
    
    .nav-menu.active {
        display: flex !important;
    }
    
    .mobile-menu-toggle {
        display: block !important;
    }
}

/* Touch device detection - hide menu by default */
@media (hover: none) and (pointer: coarse) {
    .nav-menu {
        display: none;
        background: var(--pure-white);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li a {
        color: var(--royal-blue);
    }
    
    .mobile-menu-toggle {
        display: block;
    }
}

/* ========================================
   HERO SECTION - Cinematic Full Viewport
   ======================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--pure-white);
    overflow: hidden;
}

/* Hero Slideshow */
.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 51, 128, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    line-height: 1;
    color: var(--pure-white);
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
    color: var(--pure-white);
    letter-spacing: 1px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* ========================================
   LATEST SERMON SECTION
   ======================================== */
.latest-sermon {
    padding: 100px 0;
    background: var(--pure-white);
}

.sermon-card-large {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: center;
}

.sermon-thumbnail {
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(245, 166, 35, 0.3);
}

.sermon-thumbnail img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: var(--transition);
}

.sermon-thumbnail:hover img {
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(245, 166, 35, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--deep-black);
    transition: var(--transition);
}

.sermon-thumbnail:hover .play-overlay {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--gold-accent);
}

.sermon-info h3 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.sermon-meta {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.7);
}

.sermon-meta p {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sermon-meta i {
    color: var(--gold-accent);
}

.watch-more-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--gold-accent);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 20px;
}

.watch-more-link:hover {
    gap: 15px;
}

@media (max-width: 992px) {
    .sermon-card-large {
        grid-template-columns: 1fr;
    }
    
    .sermon-thumbnail img {
        height: 300px;
    }
}

/* ========================================
   PLAN YOUR VISIT - Bold CTA
   ======================================== */
.plan-visit {
    padding: 120px 0;
    background: var(--pure-white);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.plan-visit-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.plan-visit h2 {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--deep-blue);
}

.plan-visit p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: var(--deep-blue);
}

@media (max-width: 768px) {
    .plan-visit h2 {
        font-size: 2.5rem;
    }
    
    .plan-visit p {
        font-size: 1rem;
    }
}

/* ========================================
   MINISTRIES SECTION
   ======================================== */
.ministries-preview {
    padding: 120px 0;
    background: var(--pure-white);
}

.ministries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 3rem;
}

.ministry-card {
    background: var(--deep-blue);
    padding: 35px 25px;
    text-align: center;
    border: 1px solid rgba(255, 215, 0, 0.2);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    color: var(--pure-white);
}

.ministry-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--red-accent);
    transform: scaleX(0);
    transition: var(--transition);
}

.ministry-card:hover::before {
    transform: scaleX(1);
}

.ministry-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold-accent);
}

.ministry-icon {
    font-size: 3.5rem;
    color: var(--gold-accent);
    margin-bottom: 20px;
}

.ministry-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--pure-white);
}

.ministry-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

/* ========================================
   FOOTER - Royal Blue Theme
   ======================================== */
.footer {
    background: var(--deep-blue);
    color: var(--pure-white);
    padding: 80px 0 30px;
    border-top: 3px solid var(--gold-accent);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer h3,
.footer h4 {
    color: var(--pure-white);
    margin-bottom: 25px;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 2px;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 45px;
    height: 45px;
    border: 2px solid rgba(245, 166, 35, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pure-white);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--gold-accent);
    border-color: var(--gold-accent);
    color: var(--deep-black);
    transform: translateY(-3px);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--gold-accent);
    padding-left: 8px;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-contact i {
    color: var(--gold-accent);
    width: 20px;
}

/* Social Media Links in Footer - Premium Design */
.social-links {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 215, 0, 0.15);
}

.social-icons {
    display: flex;
    gap: 15px;
    flex-direction: row;
    align-items: center;
}

.social-icons a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(0, 51, 128, 0.8), rgba(0, 51, 128, 0.9));
    color: var(--pure-white);
    border: 1px solid rgba(255, 215, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.3rem;
    overflow: hidden;
}

.social-icons a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3), transparent);
    transition: left 0.5s;
}

.social-icons a:hover::before {
    left: 100%;
}

.social-icons a:hover {
    background: linear-gradient(135deg, var(--gold-accent), #FFA500);
    color: var(--royal-blue);
    border-color: var(--gold-accent);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4), 0 0 30px rgba(255, 215, 0, 0.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(245, 166, 35, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}
