/* ================= GLOBAL VARIABLES & THEME ================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Playfair+Display:wght@700;900&display=swap');

:root {
    /* BRAND COLORS */
    --primary: #1a1a1a;      /* Dark Charcoal */
    --accent: #f97316;       /* Vibrant Orange */
    --accent-gradient: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    --light-bg: #ffffff;     
    --off-white: #f8fafc;    
    --text-dark: #333333;
    --card-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body { 
    font-family: 'Inter', sans-serif; 
    color: var(--text-dark); 
    background-color: var(--light-bg); 
    line-height: 1.6;
    padding-top: 80px; 
    overflow-x: hidden; 
}

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
img { max-width: 100%; height: auto; display: block; }

/* ================= HEADER & NAVIGATION ================= */
header {
    background: rgba(255, 255, 255, 0.98);
    height: 80px;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed; top: 0; left: 0; width: 100%;
    z-index: 9999;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

/* --- UPDATED LOGO STYLE (Fits Horizontal Logo) --- */
.logo img { 
    height: auto; 
    max-height: 55px; /* Fits perfectly inside the 80px header */
    width: auto; 
    max-width: 280px; /* Prevents it from getting too wide on mobile */
}

/* DESKTOP MENU */
nav ul { display: flex; gap: 25px; align-items: center; list-style: none; }
nav ul li a { 
    font-weight: 700; font-size: 0.85rem; text-transform: uppercase; 
    color: var(--primary); letter-spacing: 0.5px; position: relative;
}
nav ul li a:hover { color: var(--accent); }

/* Navigation Button */
.nav-btn { 
    background: var(--accent-gradient); color: #fff !important; 
    padding: 10px 24px; border-radius: 4px;
    box-shadow: 0 4px 10px rgba(249, 115, 22, 0.3);
    transition: transform 0.3s ease;
}
.nav-btn:hover { transform: translateY(-2px); }

/* Hamburger Menu (Hidden on Desktop) */
.hamburger { display: none; color: var(--primary); font-size: 1.8rem; cursor: pointer; }

/* ================= HERO SECTION ================= */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 70vh; /* Standard Height for inner pages */
    padding: 0 20px;
    background-size: cover; background-position: center;
    display: flex; flex-direction: column; 
    align-items: center; justify-content: center;
    text-align: center;
}

/* --- NEW: Full Screen Hero (For Home Page Only) --- */
.hero-fullscreen {
    min-height: calc(100vh - 80px); /* Fills screen minus header */
}

.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
    z-index: 1;
}

.hero-content { 
    position: relative; z-index: 10; max-width: 900px; width: 100%;
}

.hero-section h1 {
    font-family: 'Playfair Display', serif; 
    color: #ffffff;
    font-size: 4rem; 
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
    line-height: 1.1;
}

.hero-subtitle {
    color: rgba(255,255,255,0.95);
    font-size: 1.3rem; font-weight: 500;
    margin-bottom: 30px;
}

/* ================= SECTIONS & CARDS ================= */
.badge-section { padding: 80px 20px; background: var(--off-white); }

.badge-container {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
}

/* Badge Card (Standard Box) */
.badge-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 4px solid transparent;
}
.badge-card:hover { 
    transform: translateY(-10px); 
    border-bottom: 4px solid var(--accent); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.badge-icon-svg { width: 50px; height: 50px; margin-bottom: 20px; fill: var(--primary); }
.badge-card h3 { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--primary); margin-bottom: 10px; }

/* Split Section (Image Left, Text Right) */
.split-section {
    padding: 100px 20px;
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.split-text h2 { 
    font-family: 'Playfair Display', serif; font-size: 3rem; color: var(--primary); margin-bottom: 20px;
}
.split-image {
    width: 100%; height: 500px;
    border-radius: 12px;
    background-size: cover; background-position: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

/* Map Container */
.map-container {
    width: 100%; height: 450px; border-radius: 20px; overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* ================= EVENTS & SCHEDULE STYLES ================= */
.schedule-card {
    background: white; padding: 40px; border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border-left: 5px solid var(--accent);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.schedule-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 15px 40px rgba(0,0,0,0.1); 
}

.day-header {
    font-family: 'Playfair Display', serif; font-size: 2.5rem;
    color: var(--primary); margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 15px;
}

/* For Calendar Logic */
.event-row { padding: 15px 0; border-bottom: 1px dashed #eee; }
.event-row:last-child { border-bottom: none; }
.event-mini-header { display: flex; align-items: center; gap: 10px; margin-bottom: 5px; }
.event-mini-icon { font-size: 1.2rem; }
.event-time { font-weight: 700; color: var(--accent); font-size: 0.9rem; text-transform: uppercase; display: block; }
.event-title { font-size: 1.2rem; font-weight: 600; color: #333; margin: 3px 0; }
.event-desc { font-size: 0.95rem; color: #666; line-height: 1.5; }

/* ================= BUTTONS (WITH HOVER EFFECTS) ================= */
.btn {
    display: inline-block; padding: 15px 35px;
    font-weight: 700; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px;
    border-radius: 4px; cursor: pointer; transition: all 0.3s ease; border: none; text-align: center;
}

/* Primary Button (Orange) */
.btn-primary { background: var(--accent-gradient); color: white; }
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.4);
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
}

/* White Button */
.btn-white { background: white; color: var(--primary); }
.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.3);
    color: var(--accent);
}

/* Transparent Button */
.btn-transparent { background: rgba(255,255,255,0.2); border: 2px solid white; color: white; backdrop-filter: blur(5px); }
.btn-transparent:hover {
    background: white; color: var(--primary); transform: translateY(-3px);
}

/* ================= FOOTER ================= */
footer { background: #111; color: white; padding: 80px 20px; margin-top: 60px;}
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1200px; margin: 0 auto; gap: 40px; }
.footer-col h4 { color: var(--accent); margin-bottom: 20px; text-transform: uppercase; letter-spacing: 2px; }
.footer-col a { color: #9ca3af; display: block; margin-bottom: 10px; }
.footer-col a:hover { color: white; padding-left: 5px; } /* Footer link hover */

/* ================= MOBILE OPTIMIZATION ================= */
@media (max-width: 1024px) {
    /* Header Fixes */
    body { padding-top: 70px; }
    header { height: 70px; padding: 0 20px; }
    
    /* --- UPDATED: MOBILE LOGO SIZE --- */
    .logo img { max-height: 40px; }

    /* Force Hamburger to Right */
    .hamburger { display: block; margin-left: auto; }
    
    /* Mobile Menu Drawer */
    nav { position: absolute; width: 100%; top: 70px; left: 0; }
    nav ul {
        display: none; background: white; flex-direction: column; 
        padding: 0; margin: 0; box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    }
    nav ul.active { display: flex; }
    nav ul li { width: 100%; border-bottom: 1px solid #f5f5f5; }
    nav ul li a { display: block; padding: 15px 20px; color: #333; }
    
    /* Grids to 1 Column */
    .badge-container, .split-section, .footer-grid {
        grid-template-columns: 1fr !important; gap: 30px;
    }
    
    /* Hero Fixes */
    .hero-section { min-height: 60vh; } 
    .split-image { height: 250px !important; }
}

/* Phone Specifics (Below 768px) */
@media (max-width: 768px) {
    .badge-section { padding: 40px 15px; }
    .badge-card, .schedule-card { padding: 25px 20px; } 

    .day-header { font-size: 1.8rem; margin-bottom: 15px; }
    .event-title { font-size: 1.1rem; }
    
    /* Big Buttons on Mobile */
    .btn { display: block; width: 100%; margin-bottom: 10px; }
    .hero-content div { display: block !important; }
    .hero-content .btn { margin: 5px 0; width: 100%; }
    
    .hero-section h1 { font-size: 2.2rem; line-height: 1.15; }
    .split-text h2 { font-size: 2rem; }
}

/* ================= HEADER DROPDOWN ================= */
.dropdown {
    position: relative;
    display: inline-block;
}
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 220px;
    box-shadow: 0px 10px 30px rgba(0,0,0,0.1);
    z-index: 1000;
    border-radius: 8px;
    overflow: hidden;
    top: 100%;
    left: 0;
    border: 1px solid #f1f5f9;
}
.dropdown-content a {
    color: var(--primary) !important;
    padding: 12px 20px !important;
    text-decoration: none;
    display: block;
    text-transform: none !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    border-bottom: 1px solid #f8fafc;
}
.dropdown-content a:hover {
    background-color: #f8fafc;
    color: var(--accent) !important;
    padding-left: 25px !important; /* Smooth indent on hover */
}
.dropdown:hover .dropdown-content {
    display: block;
}

/* ================= FOOTER SMOOTH EXPAND ================= */
.footer-dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    padding-left: 15px;
}
.footer-dropdown-content.open {
    max-height: 120px; /* Expands smoothly */
}
.footer-dropdown-content a {
    font-size: 0.9rem;
    margin-bottom: 8px !important;
    color: #9ca3af !important;
}
.footer-dropdown-content a:hover {
    color: white !important;
}
.footer-dropbtn {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}





/* ================= BULLETPROOF FLOATING BUBBLE ================= */
/* ================= BULLETPROOF SOLID WHITE FAB CONTAINER ================= */
.fab-container {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    width: 80px !important;
    height: 80px !important;
    z-index: 99999 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ================= MAIN BUBBLE (now the only bubble - The Pastor's Pen) ================= */
.fab-main {
    position: absolute !important;
    bottom: 0 !important; 
    right: 0 !important;
    width: 80px !important; 
    height: 80px !important;
    border-radius: 50% !important;
    
    /* CHANGE: Solid White Background */
    background: #ffffff !important;
    /* Removed backdrop-filter blur */
    border: 2px solid rgba(0, 0, 0, 0.1) !important; /* Soft edge border */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 0 10px rgba(0, 0, 0, 0.05) !important;
    
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    cursor: pointer;
    z-index: 10 !important;
    overflow: hidden !important; 
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.fab-container:hover .fab-main {
    transform: scale(1.05) !important;
    box-shadow: 0 12px 40px rgba(14, 165, 233, 0.2), inset 0 0 10px rgba(0, 0, 0, 0.05) !important;
}

.water-text {
    position: relative; z-index: 10; font-size: 0.75rem; font-weight: 800;
    color: #0369a1; text-align: center; line-height: 1.2; letter-spacing: 0.5px;
    text-shadow: 0px 1px 3px rgba(255, 255, 255, 0.9);
}

.fab-main::before {
    content: ''; position: absolute; width: 200%; height: 200%;
    top: 45%; left: -50%; background: rgba(56, 189, 248, 0.4);
    border-radius: 40%; animation: waveFlow 6s infinite linear; z-index: 1;
}

.fab-main::after {
    content: ''; position: absolute; width: 200%; height: 200%;
    top: 55%; left: -50%; background: rgba(2, 132, 199, 0.5);
    border-radius: 42%; animation: waveFlow 4s infinite linear reverse; z-index: 2;
}

@keyframes waveFlow { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* ================= 2. SUB-BUBBLES (BASE STYLES) ================= */
.fab-item {
    position: absolute !important;
    bottom: 7.5px !important; 
    right: 7.5px !important;
    width: 65px !important; 
    height: 65px !important;
    border-radius: 50% !important;
    
    background-color: #ffffff !important; /* Solid White */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-decoration: none !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    z-index: 5 !important;
    opacity: 0;
    pointer-events: none; /* Can't be clicked when hidden */
}

/* Hover Actions - Using fixed positioning inside the expanding container */
.fab-container:hover .fab-item { opacity: 1; pointer-events: auto; }

.fab-container:hover .fab-item.pastor { 
    bottom: 100px !important; /* Shoots UP */
    right: 7.5px !important; 
}

.fab-container:hover .fab-item.caleigh { 
    bottom: 7.5px !important; 
    right: 100px !important; /* Shoots LEFT */
}

.fab-item:hover { transform: scale(1.1) !important; z-index: 20 !important; }

/* ================= 3. PASTOR'S PEN (SOLID WHITE & EMOJIS) ================= */
.fab-item.pastor {
    background: #ffffff !important; /* Solid White */
    /* Removed backdrop-filter blur */
    border: 2px solid rgba(0, 0, 0, 0.1) !important; /* Soft edge border */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 0 10px rgba(0, 0, 0, 0.05) !important;
    overflow: visible !important;
}

.bubble-text {
    position: relative; z-index: 10; font-size: 0.65rem; font-weight: 800;
    color: #0c4a6e; text-align: center; line-height: 1.1;
}

.emoji-stream-external {
    position: absolute; bottom: 50%; left: 0; width: 100%; height: 1px; z-index: 1;
    overflow: visible; pointer-events: none;
}

.floating-fire {
    position: absolute; bottom: 0; opacity: 0;
    animation: smoothFloat 3.5s ease-in-out infinite;
}

.floating-fire:nth-child(1) { left: 15%; animation-delay: 0s; font-size: 1.3rem; animation-duration: 3s; }
.floating-fire:nth-child(2) { left: 35%; animation-delay: 1.2s; font-size: 0.9rem; animation-duration: 3.6s; }
.floating-fire:nth-child(3) { left: 55%; animation-delay: 0.6s; font-size: 1.1rem; animation-duration: 3.2s; }
.floating-fire:nth-child(4) { left: 75%; animation-delay: 1.8s; font-size: 1.0rem; animation-duration: 3.8s; }

@keyframes smoothFloat {
    0% { transform: translate(0px, 0px) scale(0.5); opacity: 0; }
    20% { opacity: 0.9; }
    50% { transform: translate(12px, -60px) scale(1.1); }
    80% { opacity: 0.7; }
    100% { transform: translate(-8px, -130px) scale(0.8); opacity: 0; }
}

/* ================= 4. CALEIGH'S PLACE (FIREWORKS) ================= */
.fab-item.caleigh {
    border: 2px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
    overflow: visible !important;
}

.fab-item.caleigh img {
    width: 100% !important; height: 100% !important; object-fit: contain !important;
    border-radius: 50% !important; padding: 5px !important; z-index: 2;
}

.fab-item.caleigh::before, .fab-item.caleigh::after {
    content: ''; position: absolute; top: 50%; left: 50%;
    width: 4px; height: 4px; border-radius: 50%;
    transform: translate(-50%, -50%); z-index: 1; opacity: 0; pointer-events: none;
}
.fab-item.caleigh::before { animation: miniFireworks 1.5s infinite ease-out; }
.fab-item.caleigh::after { animation: miniFireworks 1.5s infinite ease-out 0.75s; }

@keyframes miniFireworks {
    0% { box-shadow: 0 0 0 0px #f97316, 0 0 0 0px #fbbf24, 0 0 0 0px #ea580c, 0 0 0 0px #dc2626, 0 0 0 0px #3b82f6, 0 0 0 0px #a855f7; opacity: 1; }
    100% { box-shadow: 40px -40px 0 1px #f97316, -40px -40px 0 1px #fbbf24, 40px 40px 0 1px #ea580c, -40px 40px 0 1px #dc2626, 0 -55px 0 1px #3b82f6, 0 55px 0 1px #a855f7; opacity: 0; }
}

/* ================= 5. TEXT LABELS ================= */
.fab-label {
    position: absolute; 
    background: #0f172a !important; /* Dark slate for perfect contrast */
    color: white !important;
    padding: 6px 14px !important; 
    border-radius: 20px !important; 
    font-size: 0.8rem !important;
    font-weight: 700 !important; 
    white-space: nowrap !important; 
    opacity: 0;
    pointer-events: none; 
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2) !important; 
    z-index: 30 !important;
    
    right: 75px !important;
    top: 50% !important;
    transform: translateY(-50%) translateX(10px) !important;
}

/* Little arrow pointing right */
.fab-label::after {
    content: ''; position: absolute; right: -5px; top: 50%; transform: translateY(-50%);
    border-width: 6px 0 6px 6px; border-style: solid; border-color: transparent transparent transparent #0f172a;
}

.fab-item:hover .fab-label { 
    opacity: 1; 
    transform: translateY(-50%) translateX(0) !important; 
}

/* ================= SMART CALENDAR STYLES ================= */
.cal-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 20px; padding: 0 10px;
}
.cal-title {
    font-family: 'Playfair Display', serif; font-size: 2.5rem; color: var(--primary);
}
.cal-btn {
    background: white; border: 2px solid #eee; border-radius: 50%;
    width: 40px; height: 40px; font-size: 1.2rem; cursor: pointer;
    color: var(--primary); transition: 0.3s;
}
.cal-btn:hover { background: var(--accent); color: white; border-color: var(--accent); }

.calendar-wrapper {
    width: 100%; overflow-x: auto; /* Allows scrolling on small phones */
    background: white; border-radius: 12px; box-shadow: var(--card-shadow);
    border: 1px solid #f0f0f0;
}
.cal-grid {
    display: grid; grid-template-columns: repeat(7, minmax(120px, 1fr));
    border-top: 1px solid #f0f0f0; border-left: 1px solid #f0f0f0;
    min-width: 800px; /* Forces calendar to stay structured on mobile */
}

.cal-day-name {
    background: #f8fafc; font-weight: 700; color: var(--primary);
    text-align: center; padding: 15px 10px; text-transform: uppercase;
    font-size: 0.85rem; border-right: 1px solid #f0f0f0; border-bottom: 1px solid #f0f0f0;
}

.cal-cell {
    min-height: 120px; padding: 10px; background: white;
    border-right: 1px solid #f0f0f0; border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s;
}
.cal-cell:hover { background: #fafafa; }
.cal-cell.empty { background: #fdfdfd; }

.cal-date-number {
    font-weight: 700; color: #9ca3af; font-size: 1.1rem;
    margin-bottom: 10px;
}
.cal-cell.today .cal-date-number {
    background: var(--accent); color: white; 
    width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.cal-cell.today { background: #fffaf5; }

.cal-event-container { display: flex; flex-direction: column; gap: 5px; }

.cal-event {
    background: rgba(249, 115, 22, 0.1); border-left: 3px solid var(--accent);
    color: var(--primary); padding: 5px 8px; border-radius: 3px;
    font-size: 0.75rem; line-height: 1.3;
}
.cal-event strong { display: block; color: var(--accent); font-size: 0.7rem; }
