/* assets/css/style.css */

:root {
    /* --- BRANDING: Melbourne Navy & Gold --- */
    --theme-primary: #1B2F52; /* Main Church Navy */
    --theme-gold: #D6C08D;    /* Gold Accent */
    --theme-secondary: #0e182b; /* Darker Navy (Footer Bottom) */
    
    --theme-danger: #d9534f;
    --theme-dark-bg: #1a1d20;
    --theme-dark-text: #e9ecef;
    --theme-dark-heading: #ffffff;

    /* --- Light Mode (Default) --- */
    --color-background: #f8f9fa;
    --color-surface: #ffffff;
    --color-surface-light: #f8f9fa;
    --color-text: #333;
    --color-text-muted: #6c757d;
    --color-border: rgba(0, 0, 0, 0.12);
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
    
    /* Icon for Accordions */
    --accordion-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231B2F52'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

body.dark-mode {
    --theme-primary: #5c7cfa; /* Lighter blue for dark mode legibility */
    --theme-gold: #f0d694;
    --color-background: #121212;
    --color-surface: #1e1e1e;
    --color-surface-light: #2a2a2a;
    --color-text: rgba(255, 255, 255, 0.87);
    --color-text-muted: rgba(255, 255, 255, 0.6);
    --color-border: rgba(255, 255, 255, 0.12);
    --accordion-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='rgba(255,255,255,0.87)'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--color-background);
    color: var(--color-text);
    transition: background-color 0.2s ease, color 0.2s ease;
    overflow-x: hidden;
}

/* =========================================
   1. NAVIGATION
   ========================================= */
.navbar {
    background-color: #1B2F52 !important; /* Always Navy */
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    padding: 0.8rem 0;
    
    /* --- FIX: Visual Separator --- */
    /* This adds a subtle 10% white line to separate Menu from Header */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); 
}

.navbar-brand { 
    font-weight: 700; 
    font-size: 1.6rem; 
    color: #fff !important; 
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    font-weight: 600;
    padding: 0.5rem 1rem;
    /* FIX: Add a transparent border so the size doesn't change on hover */
    border-bottom: 2px solid transparent; 
    transition: color 0.2s, border-color 0.2s; /* Animate border-color instead of border-bottom */
}

.navbar-dark .navbar-nav .nav-link:hover, 
.navbar-dark .navbar-nav .nav-link.active {
    color: #ffffff !important;
    border-bottom: 2px solid var(--theme-gold);
}

/* Theme Toggle Button */
.btn-theme-toggle {
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    width: 40px; 
    height: 40px;
    display: flex; 
    align-items: center; 
    justify-content: center;
    margin-left: 10px;
    border: none !important;
}
.btn-theme-toggle:hover {
    background: var(--theme-gold);
    color: #1B2F52 !important;
}
body.dark-mode .fa-moon { display: none; }
body:not(.dark-mode) .fa-sun { display: none; }

/* Dark Mode Dropdowns */
.dropdown-menu {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
}
.dropdown-item {
    color: var(--color-text);
}
.dropdown-item:hover {
    background-color: var(--color-surface-light);
    color: var(--theme-primary);
}

/* =========================================
   2. HERO SECTION
   ========================================= */
.hero-section {
    position: relative;
    height: 80vh;
    background: #000;
    overflow: hidden;
    text-align: center;
    color: white;
}

.hero-slider-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.hero-content-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 100%;
    max-width: 900px;
    padding: 2rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.hero-content-overlay h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #fff !important;
}

.hero-content-overlay p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: rgba(255,255,255,0.95);
    font-weight: 300;
}

@media (max-width: 768px) {
    .hero-section { height: 60vh; }
    .hero-content-overlay h1 { font-size: 2.2rem; }
    .hero-content-overlay p { font-size: 1rem; }
}

/* =========================================
   3. GLOBAL TYPOGRAPHY & LAYOUT
   ========================================= */
.page-content {
    padding: 5rem 0;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--theme-primary);
    font-weight: 700;
    margin-bottom: 1.2rem;
    line-height: 1.3;
}
body.dark-mode h1, body.dark-mode h2, body.dark-mode h3, 
body.dark-mode h4, body.dark-mode h5, body.dark-mode h6 {
    color: #fff;
}

/* Specific spacing for content inside pages */
.page-content h2, 
.page-content h3 {
    margin-top: 3rem;
}
.page-content h2:first-child, 
.page-content h3:first-child {
    margin-top: 0;
}

p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 1.05rem;
}

/* =========================================
   4. COMPONENTS
   ========================================= */

/* --- PAGE HEADER (Colored Navy) --- */
.page-header {
    background-color: var(--theme-primary); /* Navy Background */
    color: #ffffff;
    border-bottom: none;
    padding: 5rem 0;
    margin-bottom: 3rem;
    text-align: center;
}
.page-header h1 { 
    color: #ffffff !important; 
    font-weight: 700; 
    margin-bottom: 0.5rem; 
}
.page-header .lead { 
    margin-bottom: 0; 
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.25rem;
    font-weight: 300;
}
body.dark-mode .page-header {
    background-color: #121212; 
    border-bottom: 1px solid var(--color-border);
}

/* Content Cards */
.content-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border-top: 4px solid var(--theme-gold);
}

.card-title {
    color: var(--theme-primary);
    font-weight: 700;
    margin-bottom: 1rem;
}
body.dark-mode .card-title { color: #fff; }

/* Buttons */
.btn-primary {
    background-color: var(--theme-primary);
    border-color: var(--theme-primary);
    padding: 0.6rem 1.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.btn-primary:hover {
    background-color: #13223d;
    border-color: var(--theme-gold);
}

.btn-outline-light {
    border-width: 2px;
    font-weight: 600;
}
.btn-outline-light:hover {
    color: var(--theme-primary);
    background-color: var(--theme-gold);
    border-color: var(--theme-gold);
}

.btn-outline-primary {
    color: var(--theme-primary);
    border-color: var(--theme-primary);
    font-weight: 600;
}
.btn-outline-primary:hover {
    background-color: var(--theme-primary);
    color: #fff;
}

/* =========================================
   5. ACCORDIONS & FORMS
   ========================================= */
.accordion-item {
    background-color: var(--color-surface);
    border-color: var(--color-border);
}
.accordion-button {
    background-color: var(--color-surface);
    color: var(--color-text);
    font-weight: 600;
    padding: 1.2rem 1.25rem;
}
.accordion-button:not(.collapsed) {
    background-color: rgba(27, 47, 82, 0.05);
    color: var(--theme-primary);
}
.accordion-button::after {
    background-image: var(--accordion-icon);
}

.form-control, .form-select {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    padding: 0.75rem 1rem;
}
.form-control:focus, .form-select:focus {
    background-color: var(--color-surface);
    color: var(--color-text);
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 0.25rem rgba(27, 47, 82, 0.25);
}

/* Bible Verse Blockquote */
.bible-verse, blockquote {
    border-left: 4px solid var(--theme-gold);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

/* =========================================
   6. FOOTER (Two-Tone Design)
   ========================================= */
.footer {
    background-color: #1B2F52; /* Main Navy */
    color: rgba(255, 255, 255, 0.8);
    padding-top: 5rem;
    margin-top: 5rem;
    font-size: 0.95rem;
    padding-bottom: 0;
}

.footer h5 {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.footer h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--theme-gold);
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.2s;
    display: block;
    margin-bottom: 10px;
}
.footer a:hover {
    color: var(--theme-gold);
    padding-left: 5px;
}

.footer .social-links { margin-top: 1rem; }
.footer .social-links a {
    display: inline-block;
    font-size: 1.4rem;
    margin-right: 15px;
    color: rgba(255, 255, 255, 0.7);
}
.footer .social-links a:hover {
    color: #fff;
    transform: scale(1.1);
}
.text-gold {
    color: var(--theme-gold) !important;
}

/* Bottom Copyright Bar */
.footer-bottom {
    background-color: #0e182b; /* Darker Midnight Navy */
    color: rgba(255, 255, 255, 0.5);
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* =========================================
   7. UTILITIES
   ========================================= */
.announcement-banner {
    background-color: var(--theme-gold);
    color: #1B2F52;
    text-align: center;
    padding: 8px;
    font-weight: bold;
    font-size: 0.9rem;
    animation: pulse 3s infinite;
}
@keyframes pulse {
    0% { opacity: 0.95; }
    50% { opacity: 1; }
    100% { opacity: 0.95; }
}

.stripe-form-container {
    margin-top: 15px;
    padding: 15px;
    border: 1px solid var(--color-border);
    border-radius: 5px;
    background-color: var(--color-surface-light);
}
.amount-buttons button.active {
    background-color: var(--theme-primary);
    color: white;
    border-color: var(--theme-primary);
}

/* Utility Colors */
.bg-light { background-color: var(--color-surface-light) !important; }
.text-primary { color: var(--theme-primary) !important; }
body.dark-mode .text-primary { color: #5c7cfa !important; }

