
:root {
    --primary: #ffffff;
    --secondary: #d32f2f;
    --accent: #c5a059;
    --text-main: #1f1f1f;
    --text-muted: #666666;
    --glass-bg: rgba(255, 255, 255, 0.2);
    --glass-border: rgba(255, 255, 255, 0.1);
    --radius: 8px;
    --font-heading: "Playfair Display", serif;
    --font-body: "Montserrat", sans-serif;
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: var(--font-body);
    background-color: #fafafa;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

*, *::before, *::after {
    box-sizing: border-box;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin: 0 0 1rem;
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Nav */
header.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    flex-wrap: wrap;
    gap: 1rem;
}

.brand-name {
    font-family: var(--font-heading);
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
}

.nav-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.nav-toggle-bar {
    position: relative;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
    transition: background 0.2s ease;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
    transition: transform 0.2s ease, top 0.2s ease, bottom 0.2s ease;
}

.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { bottom: -6px; }

.site-header.nav-open .nav-toggle-bar {
    background: transparent;
}

.site-header.nav-open .nav-toggle-bar::before {
    top: 0;
    transform: rotate(45deg);
}

.site-header.nav-open .nav-toggle-bar::after {
    bottom: 0;
    transform: rotate(-45deg);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--secondary);
    color: var(--primary);
}

.btn-primary:hover {
    background-color: #b71c1c;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.4);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    backdrop-filter: blur(5px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Base Layout Classes */
.section-padding {
    padding: 8rem 5%;
}
.section-padding-sm {
    padding: 4rem 5%;
}


.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--primary);
    background: #000;
    overflow: hidden;
    padding: 3rem 5%;
}

.home-hero {
    padding-top: clamp(2rem, 6vw, 4rem);
    padding-bottom: clamp(2.5rem, 7vw, 5rem);
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
}

.hero-background {
    pointer-events: none;
}

.welcome-image-wrap {
    width: 100%;
    max-width: 100%;
}

.welcome-image {
    width: 100%;
    height: auto;

}

.welcome-section-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
    gap: clamp(2rem, 4vw, 4.5rem);
    align-items: center;
}

.welcome-section-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

.welcome-section-copy p {
    max-width: 40rem;
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.95;
}

.welcome-image-wrap {
    justify-self: center;
    max-width: 640px;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 6rem);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

.hero p.subtitle {
    font-size: clamp(0.9rem, 3vw, 1.5rem);
    font-weight: 500;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent);
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Floating Banner */
.floating-word-banner {
    background: #000;
    color: var(--primary);
    padding: 3rem 5%;
    text-align: center;
    border-top: 4px solid var(--accent);
    position: relative;
    z-index: 10;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.5);
}

.floating-word-banner h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-family: var(--font-heading);
    color: var(--accent);
    text-transform: uppercase;
    margin: 0.5rem 0;
}

/* Shared Grids */
/* Pastor Section Enhancements */
.pastor-section .image-rounded:hover {
    transform: scale(1.02);
}

.pastor-section .section-eyebrow {
    display: inline-block;
    color: var(--secondary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    background: rgba(211, 47, 47, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 1px solid rgba(211, 47, 47, 0.1);
}

/* Ensure the grid stacks properly on mobile */
@media (max-width: 991px) {
    .pastor-section .container, .pastor-layout-container {
        grid-template-columns: 1fr !important;
        gap: 4rem !important;
        text-align: center;
    }
    .pastor-section .glass {
        padding: 2rem !important;
        border-left: none !important;
        border-top: 5px solid var(--secondary);
    }
}



/* Ministry Cards */
.ministry-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 300px;
    box-shadow: var(--shadow);
}

.ministry-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ministry-card:hover img {
    transform: scale(1.1);
}

.ministry-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: var(--primary);
}

/* Service Times */
.worship-times-section {
    background:
        radial-gradient(circle at 8% 16%, rgba(197, 160, 89, 0.15), transparent 30%),
        radial-gradient(circle at 92% 0%, rgba(211, 47, 47, 0.1), transparent 34%),
        #f6f6f8;
    border-top: 1px solid rgba(197, 160, 89, 0.3);
    border-bottom: 1px solid rgba(197, 160, 89, 0.18);
}

.worship-times-intro {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 3rem;
}

.section-eyebrow {
    display: inline-block;
    margin-bottom: 0.9rem;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--secondary);
    background: rgba(211, 47, 47, 0.08);
    border: 1px solid rgba(211, 47, 47, 0.2);
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
}

.worship-times-intro h2 {
    margin: 0 0 0.8rem;
    font-size: clamp(2rem, 5vw, 2.8rem);
    text-transform: uppercase;
    color: var(--text-main);
}

.worship-times-intro p {
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto;
}

.worship-services-grid {
    margin-top: 0;
}

.service-time-card {
    background: linear-gradient(145deg, #ffffff, #fcfcfc);
    padding: 2rem;
    border-radius: var(--radius);
    border-left: 4px solid var(--secondary);
    border: 1px solid rgba(211, 47, 47, 0.12);
    box-shadow: 0 16px 35px rgba(16, 16, 22, 0.08);
    position: relative;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.service-time-card::after {
    content: "";
    position: absolute;
    inset: auto -60px -60px auto;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(197, 160, 89, 0.18), transparent 70%);
    pointer-events: none;
}

.service-time-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(16, 16, 22, 0.12);
}

.service-time-card .service-tag {
    margin: 0 0 1rem;
    font-size: 0.72rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--secondary);
}

.service-time-card h3 {
    margin: 0 0 0.7rem;
    font-size: 1.25rem;
    color: var(--text-main);
}

.service-time-card .service-meta {
    color: var(--text-muted);
    margin: 0;
    font-weight: 500;
}

.service-time-card .service-time {
    color: var(--accent);
    font-size: 1.35rem;
    font-family: var(--font-heading);
    font-weight: 600;
    margin: 0.55rem 0 0;
}

.service-time-card.featured {
    background: linear-gradient(165deg, #fff, rgba(197, 160, 89, 0.08));
    border-left: 4px solid var(--accent);
    border-color: rgba(197, 160, 89, 0.35);
}

/* Footer Styles */
.site-footer {
    background-color: var(--text-main);
    color: var(--primary);
    padding: 4rem 5% 1rem;
    margin-top: 4rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-col h4 {
    color: var(--accent);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}
.footer-col p {
    margin-bottom: 0.75rem;
    opacity: 0.9;
}
.footer-col a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}
.footer-col a:hover {
    color: var(--accent);
}
.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.social-links a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* RESPONSIVENESS */
@media (max-width: 900px) {
    .section-padding { padding: 5rem 5%; }
    header.site-header { flex-direction: column; text-align: center; justify-content: center; }
    .nav-links { width: 100%; justify-content: center; }
    .worship-times-intro { margin-bottom: 2.4rem; }
}

@media (max-width: 768px) {
    header.site-header {
        position: sticky;
        top: 0;
        padding: 0.75rem 4%;
        gap: 0.4rem;
        align-items: center;
        flex-direction: row;
        justify-content: space-between;
        overflow: visible;
    }
    .brand-name {
        width: auto;
        max-width: calc(100% - 108px);
        text-align: left;
        font-size: 1.2rem;
    }
    .nav-toggle {
        display: inline-flex;
        order: 3;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        margin: 0;
        padding: 1rem 4% 1.2rem;
        background: rgba(15, 15, 15, 0.96);
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35);
        flex-direction: column;
        align-items: stretch;
        gap: 0.45rem;
        z-index: 1001;
    }
    .site-header.nav-open .nav-links {
        display: flex;
    }
    .nav-links li {
        width: 100%;
    }
    .nav-links a {
        display: block;
        width: 100%;
        padding: 0.7rem 0.85rem;
        border-radius: 7px;
        font-size: 0.95rem;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.06);
        white-space: normal;
        text-align: left;
    }
    header.site-header > .btn {
        display: inline-block;
        margin: 0;
        margin-left: auto;
        padding: 0.45rem 0.95rem;
        font-size: 0.78rem;
        line-height: 1.2;
        order: 2;
    }

    .welcome-grid, .pastor-section { 
        grid-template-columns: 1fr; 
        gap: 2rem; 
        text-align: center;
    }
    .welcome-section-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .welcome-section-copy,
    .welcome-image-wrap {
        width: 100%;
        max-width: 100%;
    }
    .welcome-section-copy {
        order: 2;
    }
    .welcome-image-wrap {
        order: 1;
        flex-basis: auto !important;
    }
    .pastor-section,
    .worship-times-section,
    .section-padding {
        padding-left: 4%;
        padding-right: 4%;
    }
    .pastor-section img, .welcome-grid img { max-height: 400px; }
    .welcome-image {
        max-height: 440px;
        object-fit: cover;
    }
    .hero-actions { flex-direction: column; width: 100%; max-width: 300px; margin: 0 auto; }
    .hero-actions .btn { width: 100%; }
    .home-hero {
        padding-top: 2rem;
        padding-bottom: 2.5rem;
    }
}


@media (max-width: 900px) {
    .pastor-section, .worship-times-section {
        padding: 5rem 5%;
    }
}


@media (max-width: 600px) {
    .nav-links a {
        font-size: 0.92rem;
    }
    .brand-name {
        font-size: 1rem;
        max-width: calc(100% - 94px);
    }
    header.site-header > .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.72rem;
    }
    .section-padding, .pastor-section, .worship-times-section {
        padding: 3rem 4%;
    }
    .ministries-grid, .services-grid, .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    .ministry-card {
        height: 240px;
    }
    .service-time-card {
        padding: 1.5rem;
    }
    .service-time-card .service-time {
        font-size: 1.2rem;
    }
    .hero-actions {
        width: 100%;
    }
    .hero-actions a.btn {
        width: 100%;
        display: block;
        box-sizing: border-box;
    }
}

/* Cross-page responsive helpers for page-specific layouts */
@media (max-width: 1024px) {
    .page-header h1 {
        font-size: clamp(2rem, 8vw, 3rem) !important;
    }
    .grid-2,
    .giving-container {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 4rem 4% !important;
    }
    .page-header p {
        font-size: 0.95rem;
    }
    .team-grid,
    .values-grid,
    .services-container,
    .outreach-grid,
    .events-list,
    .giving-container,
    .grid-2 {
        margin: 2.5rem 4% !important;
    }
    .team-grid,
    .values-grid,
    .services-container,
    .outreach-grid {
        gap: 1.25rem !important;
    }
    .team-card img {
        height: 300px !important;
    }
    .event-card {
        flex-direction: column;
    }
    .event-date {
        min-width: auto;
        flex-direction: row;
        justify-content: flex-start;
        gap: 1rem;
        padding: 1rem 1.2rem;
    }
    .event-details,
    .bank-details,
    .justgiving-wrap,
    .outreach-content,
    .value-card,
    .service-card {
        padding: 1.25rem !important;
    }
    .history-box,
    .impact-section {
        padding: 3rem 4% !important;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 3.2rem 4% !important;
    }
    .team-grid,
    .values-grid,
    .services-container,
    .outreach-grid,
    .events-list,
    .giving-container,
    .grid-2 {
        margin: 2rem 4% !important;
    }
    .team-grid,
    .values-grid,
    .services-container,
    .outreach-grid {
        grid-template-columns: 1fr !important;
    }
    .team-grid,
    .services-container,
    .outreach-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)) !important;
    }
    .giving-container .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }
}


/* --- Extracted Inline Styles for First Load Fix --- */

.home-hero {
    background: none; 
    overflow: hidden; 
    position: relative; 
    display: flex; 
    justify-content: center;
}

.hero-background-layer {
    position: absolute; 
    top:0; left:0; 
    width: 100%; 
    height: 100%; 
    z-index: 1; 
    background: url('./assets/Pearly-gate-img-4.jpeg') center/cover no-repeat;
}

.hero-overlay-layer {
    position: absolute; 
    top:0; left:0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.72);
}

.hero-content-layer {
    position: relative; 
    z-index: 2; 
    width: 100%; 
    max-width: 1200px; 
    padding: 0 5%; 
    text-align: center;
}

.prophetic-word-eyebrow {
    text-transform: uppercase; 
    letter-spacing: 3px; 
    margin: 0; 
    font-size: 1rem;
}

.welcome-layout-container {
    max-width: 1100px; 
    margin: 0 auto; 
    padding: 0 5%;
}

.welcome-image {
    width: 100%; 
    height: auto; 
    aspect-ratio: 1 / 1; 
    object-fit: cover; 
    border-radius: var(--radius); 
    border: 1px solid rgba(197,160,89,0.3);
}

.pastor-section {
    background: linear-gradient(to bottom, #fafafa, #ffffff); 
    overflow: hidden;
}

.pastor-layout-container {
    max-width: 1200px; 
    margin: 0 auto; 
    display: grid; 
    grid-template-columns: 1fr 1.1fr; 
    gap: 4rem; 
    align-items: center;
}

.pastor-image {
    width: 100%; 
    height: auto; 
    aspect-ratio: 3 / 4; 
    object-fit: cover; 
    border: 1px solid rgba(197, 160, 89, 0.2);
}

.ministries-grid-container {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 2rem;
}

.ministry-card-style {
    height: 420px; 
    border: 1px solid rgba(255,255,255,0.1); 
    position: relative; 
    overflow: hidden;
}

.ministry-card-image {
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    filter: brightness(0.7);
    position: absolute;
    top: 0;
    left: 0;
}



/* --- Extracted Inline Styles: Services --- */
.services-grid-container {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 2rem; 
    margin-bottom: 5rem;
}


/* --- Extracted Generic Classes for FOUC --- */
.full-width { width: 100%; }
.max-w-700 { max-width: 700px; margin: 0 auto; }
.card-flex-col { display: flex; flex-direction: column; justify-content: space-between; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }




@media (max-width: 600px) {
    .contact-container { padding: 0 1rem; }
    .contact-hero { height: 35vh; }
    .form-card { padding: 1.5rem; }
    .contact-info-card { padding: 1.5rem; flex-direction: column; text-align: center; align-items: center; }
    .contact-info-card i { margin-top: 0; margin-bottom: 0.5rem; }
    input, textarea, .btn { font-size: 1rem; }
}


.form-card-column { display: flex; flex-direction: column; gap: 1.5rem; }
input:focus, textarea:focus { outline: 2px solid var(--secondary); outline-offset: -1px; }

