/* Custom CSS for Coast To Coast Revival Society */

/* --- Color Variables --- */
:root {
    --c-primary-red: #D52B1F; /* updated red per request */
    --c-secondary-black: #111;
    --c-light: #f8f9fa;
    --c-white: #fff;
    --c-dark: #212529;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 150px;
}

/* 🔹 Hide scrollbars but keep scrolling*/
html, body {
    overflow-x: hidden !important;
    overflow: auto;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    scrollbar-width: none;       /* Firefox */
    -ms-overflow-style: none;    /* Internet Explorer & Edge (old) */
}

a {
    text-decoration: none;
    color: inherit;
}

* {
    box-sizing: border-box;
}
/* Chrome, Safari, and newer Edge */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
} 

/* --- Base & Typography --- */
/* Body text (non-headings) -> Lora Regular */
body {
    font-family: 'Lora', serif;
    color: var(--c-dark);
}

.row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Headings: Montserrat Bold by default */
h1, h2, h3, h4, .display-5 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700; /* Montserrat Bold for headings */
    line-height: 1.1;
}

/* Specific: ARISE (big hero) -> Montserrat ExtraBold */
.display-2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900; /* ExtraBold for ARISE */
    letter-spacing: 8px;       /* 🔹 Adds spacing between letters */
    font-size: 6rem;           /* 🔹 Makes it larger (default is ~5rem) */
    text-transform: uppercase; /* Optional: ensures all caps if not already */
}

.accent-text {
    color: var(--c-primary-red);
    font-weight: 700;
}

/* --- Bootstrap Overrides (Theme Colors) --- */
.btn-primary, .btn-primary:hover, .btn-primary:active, .btn-primary:focus {
    background-color: var(--c-primary-red);
    border-color: var(--c-primary-red);
    color: var(--c-white);
    font-weight: 700;
    transition: background-color 0.3s, border-color 0.3s;
}

.btn-primary:hover {
    background-color: #b82319; /* Slightly darker on hover - retained */
    border-color: #b82319;
}

.btn-outline-light {
    color: var(--c-white);
    border-color: var(--c-white);
}

.btn-outline-dark {
    color: var(--c-dark);
    border-color: var(--c-dark);
}

/* --- Navbar Styling (CORRECTED: Fixed and Transparent) --- */
.navbar {
    /* Now Transparent */
    background-color: transparent !important;
    box-shadow: none !important;
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
    /* padding-top: 1rem;
    padding-bottom: 1rem; */
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

/* 🔹 Adjust logo height to fit tighter navbar */
.navbar-brand img.navbar-logo {
    height: 100px !important; /* was 100px before */
    object-fit: contain;
    width: auto;
}

/* Styles for when the navbar is fixed but transparent */
.navbar-dark .nav-link {
    font-weight: 700;
    text-transform: uppercase;
    color: var(--c-white) !important;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    transition: color 0.3s;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.navbar-dark .nav-link:hover, .navbar-dark .nav-link.active {
    color: var(--c-primary-red) !important;
}

.navbar-red {
    background-color: var(--c-primary-red) !important;
    transition: background-color 0.3s ease;
}

/* Logo Styling */
/* .navbar-logo {
    height: 40px;
    width: auto;
} */

#countdown {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900; /* same as ARISE */
    letter-spacing: 8px;
    font-size: 3rem;
    color: #fff;
    text-transform: uppercase;
}

/* Smooth fade-out animation */
.fade-out {
    opacity: 0;
    transition: opacity 1s ease-out;
}

/* Optional tweak for muted label visibility on dark backgrounds */
.text-muted {
    color: rgba(255, 255, 255, 0.5) !important;
    letter-spacing: 6px;
}

/* --- Hero Banner (HOME) --- */
.hero-banner {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)), url('HomePageBackgroundIMage.jpg') no-repeat center center/cover;
    height: 100vh;
    padding-top: 56px;
}

/* --- Content Sections --- */
.content-section {
    padding-top: 100px;
    padding-bottom: 100px;
    min-height: 80vh;
}

.verse-highlight {
    background-color: var(--c-light);
    color: var(--c-dark);
    border-left: 5px solid var(--c-primary-red);
    font-style: italic;
    padding: 1.5rem;
}

.verse-highlight-dark {
    background-color: #343a40;
    color: var(--c-white);
    border-left: 5px solid var(--c-primary-red);
    font-style: italic;
    padding: 1.5rem;
}

.worship-image {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    overflow: hidden;
    padding: 0;
}

/* Adjust the image itself */
.worship-image img {
    width: 100%;
    height: auto;
    max-height: 60vh; /* 🔹 Limits image to 50% of viewport height */
    object-fit: cover; /* 🔹 Shows full image without cropping */
    border-radius: 5px;
}

.media-image {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    overflow: hidden;
    padding: 0;
}

.media-image img {
    width: 100%;
    height: auto;
    max-height: 60vh; /* 🔹 Limits image to 50% of viewport height */
    object-fit: cover; /* 🔹 Shows full image without cropping */
    border-radius: 5px;
}

.community-image {
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    opacity: 1; /* Optional: make image fully visible */
    overflow: hidden; /* Keeps image neatly inside */
}

.community-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Makes it fill the area nicely */
    border-radius: 5px; 
}


/* --- Navbar Scroll Behavior --- */
.scrolled {
    background-color: #D52B1F !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4) !important;
}

/* Navbar links when scrolled (red background) */
.navbar.scrolled .nav-link {
    color: #fff !important;
}

/* Active link on red navbar */
.navbar.scrolled .nav-link.active {
    color: #000 !important;
}

/* small utility: ensure links in body use Lora for normal text but keep headings styling */
p, li, a, span, label, small {
    font-family: 'Lora', serif;
    font-weight: 400;
}

/* Smooth modal fade-in */
.modal.fade .modal-dialog {
    transform: translateY(-10%);
    transition: all 0.4s ease-in-out;
}
.modal.show .modal-dialog {
    transform: translateY(0);
}


/* --- Footer Styling --- */
footer {
    background-color: #D52B1F !important; /* primary red background */
    color: #fff !important;              /* white text */
}

footer p,
footer a {
    color: #fff !important;              /* make sure text and links are white */
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #000 !important;              /* black on hover */
    text-decoration: none;
}

/* Fade + Slide animation base */
/* fades out and in */
.content-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.content-section.section-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 🧩 Floating Accessibility Button */
.accessibility-btn {
    position: fixed;
    bottom: 30px;
    right: 10px;
    background-color: #D52B1F;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}
.accessibility-btn:hover {
    background-color: #000;
}

/* ⚙️ Accessibility Panel */
.accessibility-panel {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background-color: #D52B1F;
    color: #fff;
    padding: 15px;
    border-radius: 12px;
    width: 200px;
    z-index: 2001;
    font-family: 'Montserrat', sans-serif;
    opacity: 0;
    transform: translateY(15px);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.accessibility-panel.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.accessibility-panel button {
    font-size: 0.9rem;
    color: #fff !important;
    border-color: rgba(255,255,255,0.6);
}
.accessibility-panel button:hover {
    background-color: #fff;
    color: #D52B1F !important;
}

/* ♿ High Contrast Mode */
body.high-contrast {
    background-color: #000 !important;
    color: #fff !important;
}
body.high-contrast a {
    color: #FFD700 !important;
    text-decoration: underline !important;
}
body.high-contrast footer {
    background-color: #111 !important;
}

/* 🔠 Text resize helpers */
body.large-text {
    font-size: 1.1em !important;
}
body.extra-large-text {
    font-size: 1.25em !important;
}

/* Enhance High Contrast Mode for better readability */
body.high-contrast .hero-banner,
body.high-contrast .content-section,
body.high-contrast footer,
body.high-contrast .navbar,
body.high-contrast .scrolled {
    background-color: #000 !important;
    color: #fff !important;
    background-image: none !important;
    box-shadow: none !important;
}

/* Override your red accent areas to be white text on black background */
body.high-contrast .accent-text,
body.high-contrast .navbar-brand,
body.high-contrast .nav-link {
    color: #FFD700 !important; /* Bright yellow for contrast */
}

/* 🌓 Ensure verse highlights are visible in High Contrast mode */
body.high-contrast .verse-highlight {
    background-color: #222 !important;  /* dark background */
    color: #fff !important;              /* white text */
    border-left: 5px solid #FFD700 !important; /* yellow contrast border */
    font-style: italic;
}

/* Buttons inside high contrast mode */
body.high-contrast .btn-primary,
body.high-contrast .btn-outline-light,
body.high-contrast .btn-outline-dark {
    background-color: #fff !important;
    color: #000 !important;
    border-color: #fff !important;
}
body.high-contrast .btn-primary:hover {
    background-color: #FFD700 !important;
    color: #000 !important;
}

/* High contrast modal backgrounds */
body.high-contrast .modal-content {
    background-color: #000 !important;
    color: #fff !important;
}

/* Ensure all section texts remain visible */
body.high-contrast h1, 
body.high-contrast h2, 
body.high-contrast h3, 
body.high-contrast h4, 
body.high-contrast p, 
body.high-contrast li {
    color: #fff !important;
}

body.high-contrast :focus {
    outline: 3px solid #FFD700 !important;
    outline-offset: 3px;
}

body.readable-font {
    font-family: 'OpenDyslexic', 'Arial', sans-serif !important;
}


/* Force correct active link colors only when menu is open in mobile view */
@media (max-width: 991px) {
    .navbar-collapse.show .nav-link.active {
        color: #000 !important;
        background-color: #D52B1F !important; /* your brand red */
    }
    .navbar-collapse.show .nav-link {
        color: #fff !important;
    }
}

/* Prevent navbar red flash before JS applies logic */
.navbar:not(.ready) {
    background-color: transparent !important;
}