/* =========================================================
   FIRST NEW ZION MISSIONARY BAPTIST CHURCH
   Presentation styling — purple / forest / gold / parchment
   ========================================================= */

:root {
    --purple-deep: #23042f;
    --purple-dark: #351046;
    --purple: #56206c;
    --purple-soft: #7a4588;
    --green-deep: #003529;
    --green-dark: #004332;
    --green: #0a5a43;
    --gold-dark: #a87518;
    --gold: #d6a93d;
    --gold-light: #f3d978;
    --parchment: #fffaf0;
    --parchment-deep: #efe0c8;
    --ink: #31163d;
    --muted: #6f6271;
    --white: #ffffff;
    --content-width: 1450px;
    --shadow: 0 18px 45px rgba(30, 5, 38, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--parchment); }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background: var(--parchment);
    font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    font-size: 18px;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }

/* ---------------------------------------------------------
   HEADER
   --------------------------------------------------------- */
.site-header {
    position: relative;
    z-index: 30;
    min-height: 112px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 34px;
    padding: 12px max(28px, calc((100% - var(--content-width)) / 2));
    color: var(--white);
    background:
        radial-gradient(circle at 12% -25%, rgba(164, 86, 194, 0.42), transparent 42%),
        radial-gradient(circle at 82% 30%, rgba(84, 23, 112, 0.42), transparent 35%),
        linear-gradient(105deg, #24042f 0%, #4b125f 48%, #260633 100%);
    border-bottom: 1px solid rgba(243, 217, 120, 0.75);
    box-shadow: 0 8px 26px rgba(30, 3, 39, 0.22);
}
.site-header::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-light) 28%, var(--gold) 70%, transparent);
    opacity: 0.75;
}
.header-brand { display: flex; align-items: center; gap: 18px; min-width: 0; }
.brand-mark {
    position: relative;
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #fff9d7;
    border: 1px solid rgba(243, 217, 120, 0.75);
    border-radius: 50% 50% 44% 44%;
    background:
        radial-gradient(circle at 50% 42%, rgba(255,255,255,0.12), transparent 45%),
        linear-gradient(150deg, rgba(214,169,61,0.18), rgba(255,255,255,0.03));
    box-shadow: inset 0 0 25px rgba(214,169,61,0.12), 0 0 0 5px rgba(255,255,255,0.018);
    font-size: 49px;
    line-height: 1;
    text-shadow: 0 2px 0 #7c5311, 0 0 14px rgba(243,217,120,0.26);
}
.brand-mark::before,
.brand-mark::after {
    content: "";
    position: absolute;
    bottom: 12px;
    width: 31px;
    height: 12px;
    border-bottom: 2px solid var(--gold-light);
    opacity: 0.9;
}
.brand-mark::before { left: 12px; border-radius: 0 0 80% 0; transform: rotate(7deg); }
.brand-mark::after { right: 12px; border-radius: 0 0 0 80%; transform: rotate(-7deg); }
.church-name {
    color: var(--gold-light);
	white-space: nowrap;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 700;
    line-height: 0.88;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.church-subtitle {
    margin-top: 5px;
    color: #fff8ef;
    font-family: "Great Vibes", "Brush Script MT", "Segoe Script", cursive;
    font-size: clamp(1.5rem, 2.5vw, 2.35rem);
    line-height: 1;
}
.church-motto {
    margin-top: 7px;
    color: #fff9de;
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
    font-size: 0.63rem;
    font-weight: 500;
    letter-spacing: 0.28em;
    white-space: nowrap;
}
.header-contact {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 23px;
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
    font-size: 0.78rem;
    line-height: 1.4;
}
.header-contact > span { color: rgba(255,255,255,0.9); }
.header-contact a:not(.give-button):hover { color: var(--gold-light); }
.social-cluster { display: flex; gap: 9px; }
.social-link {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(243,217,120,0.38);
    border-radius: 50%;
    color: #fff;
    background: rgba(255,255,255,0.08);
    font: 700 0.85rem "Montserrat", Arial, sans-serif;
    transition: 0.18s ease;
}
.social-link:hover { color: var(--purple-deep) !important; background: var(--gold-light); border-color: var(--gold-light); transform: translateY(-2px); }

/* ---------------------------------------------------------
   BUTTONS
   --------------------------------------------------------- */
.gold-button,
.give-button {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 27px;
    border: 1px solid #9f731e;
    border-radius: 3px;
    color: #26172b;
    background: linear-gradient(180deg, #f8df82 0%, #d8aa3c 100%);
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
    font-size: 0.77rem;
    font-weight: 700;
    letter-spacing: 0.035em;
    box-shadow: inset 0 1px rgba(255,255,255,0.48), 0 6px 15px rgba(0,0,0,0.18);
    transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}
.gold-button::before,
.give-button::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 -55%;
    width: 45%;
    transform: skewX(-22deg);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28), transparent);
    transition: left 0.4s ease;
}
.gold-button:hover::before,
.give-button:hover::before { left: 120%; }
.gold-button:hover,
.give-button:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: inset 0 1px rgba(255,255,255,0.5), 0 10px 20px rgba(0,0,0,0.22); }
.gold-button.small { min-height: 38px; padding: 0 19px; font-size: 0.68rem; }

/* ---------------------------------------------------------
   NAVIGATION
   --------------------------------------------------------- */
.main-nav {
    position: sticky;
	top: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    min-height: 54px;
    background: linear-gradient(180deg, #2c073a, #25052f);
    border-bottom: 1px solid var(--gold);
    box-shadow: 0 5px 15px rgba(24, 2, 31, 0.18);
}
.nav-links {
    width: min(100%, var(--content-width));
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}
.nav-links a {
    position: relative;
    padding: 18px 22px 16px;
    color: rgba(255,255,255,0.93);
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.035em;
    transition: color 0.18s ease, background 0.18s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold-light); background: rgba(255,255,255,0.035); }
.nav-links a.active::after {
    content: "";
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 6px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
}
.mobile-menu-button {
    display: none;
    margin: 8px 14px 8px auto;
    border: 1px solid var(--gold);
    border-radius: 3px;
    color: var(--gold-light);
    background: transparent;
    font-size: 1.45rem;
    cursor: pointer;
}

/* ---------------------------------------------------------
   HERO
   --------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 585px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #24132e;
    border-bottom: 2px solid var(--gold);
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(circle at 9% 20%, rgba(107,44,129,0.35), transparent 26%),
        linear-gradient(180deg, transparent 65%, rgba(14,4,18,0.12));
}
.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 62% center;
    z-index: 0;
    filter: saturate(1.05) contrast(1.02);
}
.hero-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg,
            rgba(45,4,61,0.985) 0%,
            rgba(60,8,79,0.94) 25%,
            rgba(67,14,85,0.72) 38%,
            rgba(67,14,85,0.27) 57%,
            rgba(0,0,0,0.02) 79%),
        linear-gradient(180deg, rgba(24,0,32,0.16), transparent 30%);
}
.hero-content {
    position: relative;
    z-index: 3;
    width: min(100%, var(--content-width));
    margin: 0 auto;
    padding: 62px 48px 66px;
    color: var(--white);
}
.hero-content h1 {
    margin: 0;
    max-width: none;
    color: var(--gold-light);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(3.7rem, 6.1vw, 6.5rem);
    font-weight: 700;
    line-height: 0.78;
    letter-spacing: 0.005em;
    text-transform: uppercase;
    text-shadow: 0 4px 14px rgba(26,0,35,0.55);
}
.hero-script {
    margin-top: 10px;
    color: #fff;
    font-family: "Great Vibes", "Brush Script MT", "Segoe Script", cursive;
    font-size: clamp(2.8rem, 5vw, 5rem);
    line-height: 0.92;
    text-shadow: 0 4px 14px rgba(23,0,31,0.55);
}
.hero-motto {
    margin-top: 27px;
    color: rgba(255,255,255,0.94);
    font-family: "Montserrat", Arial, sans-serif;
    font-size: clamp(0.68rem, 1.1vw, 0.9rem);
    font-weight: 500;
    letter-spacing: 0.34em;
}
.hero-divider {
    position: relative;
    width: min(390px, 78%);
    height: 1px;
    margin: 22px 0 18px;
    background: linear-gradient(90deg, var(--gold-light), rgba(243,217,120,0.15));
}
.hero-divider::after {
    content: "✝";
    position: absolute;
    top: 50%;
    left: 45%;
    transform: translate(-50%, -50%);
    padding: 0 10px;
    color: var(--gold-light);
    background: rgba(57,7,74,0.88);
    font-size: 1rem;
}
.hero-content blockquote {
    margin: 0 0 7px;
    max-width: 520px;
    font-size: clamp(1.55rem, 2.35vw, 2.3rem);
    font-style: italic;
    line-height: 1.18;
    text-shadow: 0 2px 8px rgba(0,0,0,0.45);
}
.scripture {
    margin-bottom: 27px;
    color: #fff3c2;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.15em;
}

/* ---------------------------------------------------------
   WORSHIP / GROW / SERVE / GO
   --------------------------------------------------------- */
.pillars {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    min-height: 118px;
    color: var(--white);
    background:
        radial-gradient(circle at 16% 30%, rgba(18,111,82,0.24), transparent 22%),
        radial-gradient(circle at 84% 70%, rgba(12,83,62,0.34), transparent 28%),
        linear-gradient(110deg, #003a2c, #00503b 48%, #00382b);
    border-bottom: 2px solid var(--gold);
    box-shadow: inset 0 12px 25px rgba(0,0,0,0.12);
}
.pillars::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.07;
    background-image:
        linear-gradient(30deg, rgba(255,255,255,0.24) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,0.24) 87.5%, rgba(255,255,255,0.24)),
        linear-gradient(150deg, rgba(255,255,255,0.24) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,0.24) 87.5%, rgba(255,255,255,0.24));
    background-size: 28px 49px;
    pointer-events: none;
}
.pillar {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 1.28rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: 0.18s ease;
}
.pillar:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 19%;
    bottom: 19%;
    right: 0;
    width: 1px;
    background: linear-gradient(transparent, rgba(243,217,120,0.8), transparent);
}
.pillar:hover { color: var(--gold-light); background: rgba(255,255,255,0.035); }
.pillar-icon {
    color: var(--gold-light);
    font-family: Georgia, serif;
    font-size: 2.65rem;
    line-height: 1;
    text-shadow: 0 4px 8px rgba(0,0,0,0.18);
}

/* ---------------------------------------------------------
   SHARED SECTION ORNAMENTS
   --------------------------------------------------------- */
section h2 {
    margin: 0;
    color: var(--purple);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 700;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.015em;
}
.section-cross {
    position: relative;
    width: min(310px, 60%);
    margin: 10px auto 23px;
    color: var(--gold-dark);
    text-align: center;
    font-size: 1rem;
    line-height: 1;
}
.section-cross::before,
.section-cross::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 42%;
    height: 1px;
    background: linear-gradient(90deg, transparent, currentColor);
}
.section-cross::before { left: 0; }
.section-cross::after { right: 0; transform: rotate(180deg); }
.section-cross.gold { color: var(--gold); }
.patterned-section { position: relative; overflow: hidden; isolation: isolate; }
.patterned-section::before,
.patterned-section::after {
    content: "✣";
    position: absolute;
    z-index: -1;
    top: 50%;
    transform: translateY(-50%);
    color: var(--purple);
    font-size: clamp(13rem, 23vw, 24rem);
    opacity: 0.055;
    line-height: 1;
    pointer-events: none;
}
.patterned-section::before { left: -4%; }
.patterned-section::after { right: -4%; transform: translateY(-50%) rotate(180deg); }

/* ---------------------------------------------------------
   WORSHIP TIMES
   --------------------------------------------------------- */
.worship-section {
    padding: 36px 25px 39px;
    background:
        radial-gradient(circle at -5% 50%, rgba(104,35,125,0.26), transparent 20%),
        radial-gradient(circle at 105% 50%, rgba(104,35,125,0.26), transparent 20%),
        linear-gradient(90deg, #ead8e9 0%, #fffaf1 18%, #fffdf8 50%, #fffaf1 82%, #ead8e9 100%);
    border-bottom: 2px solid var(--gold);
}
.worship-grid {
    width: min(100%, 1050px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}
.worship-grid article {
    position: relative;
    padding: 3px 44px 12px;
    text-align: center;
}
.worship-grid article:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 2%;
    width: 1px;
    height: 96%;
    background: linear-gradient(transparent, rgba(168,117,24,0.62), transparent);
}
.service-icon {
    margin-bottom: 5px;
    color: var(--purple);
    font-size: 2.35rem;
    line-height: 1;
}
.worship-grid h3 {
    margin: 0 0 1px;
    color: var(--purple-deep);
    font-size: 1.06rem;
    font-weight: 700;
}
.worship-grid strong { color: #4c2859; font-size: 1.03rem; }
.worship-grid p { min-height: 38px; margin: 5px 0 12px; color: #4d3653; font-size: 0.98rem; line-height: 1.3; }

/* ---------------------------------------------------------
   PASTOR
   --------------------------------------------------------- */
.pastor-section {
    min-height: 410px;
    display: grid;
    grid-template-columns: minmax(340px, 0.9fr) minmax(520px, 1.75fr);
    align-items: stretch;
    background:
        radial-gradient(circle at 0% 54%, rgba(117,56,132,0.25), transparent 23%),
        radial-gradient(circle at 100% 50%, rgba(113,45,128,0.20), transparent 22%),
        linear-gradient(100deg, #e6d2c2 0%, #fff4e5 35%, #fffaf1 70%, #ead9e6 100%);
    border-bottom: 2px solid var(--gold);
}
.pastor-photo {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 410px;
    overflow: hidden;
}
.pastor-photo::before {
    content: "";
    position: absolute;
    inset: 12% 6% 0 0;
    z-index: 0;
    border-radius: 55% 55% 0 0;
    background: radial-gradient(circle at 50% 35%, rgba(90,25,110,0.15), transparent 65%);
}
.pastor-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, transparent 63%, rgba(255,247,232,0.98) 99%);
    pointer-events: none;
}
.pastor-photo img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 15px 17px rgba(45,12,52,0.20));
}
.pastor-message { position: relative; z-index: 2; align-self: center; max-width: 900px; padding: 45px 70px 45px 34px; }
.pastor-message h2 { text-align: left; }
.pastor-message .section-cross { margin-left: 0; text-align: center; }
.pastor-message p { max-width: 800px; margin: 9px 0; color: #43274b; font-size: 1.08rem; line-height: 1.42; }
.pastor-signature {
    margin: 20px 0 18px;
    color: var(--purple);
    font-family: "Great Vibes", "Brush Script MT", "Segoe Script", cursive;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1;
}

/* ---------------------------------------------------------
   EVENTS
   --------------------------------------------------------- */
.events-section {
    position: relative;
    overflow: hidden;
    padding: 29px max(30px, calc((100% - var(--content-width)) / 2)) 34px;
    color: var(--white);
    background:
        radial-gradient(circle at 20% 10%, rgba(137,55,163,0.22), transparent 26%),
        radial-gradient(circle at 78% 90%, rgba(108,37,129,0.22), transparent 28%),
        linear-gradient(110deg, #2a0538, #501364 52%, #2e073b);
    border-bottom: 2px solid var(--gold);
}
.events-section::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.06;
    pointer-events: none;
    background-image: radial-gradient(circle, #fff 1px, transparent 1.3px);
    background-size: 28px 28px;
}
.events-section h2 { color: #fff; }
.section-heading-row {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    width: min(100%, 1220px);
    margin: 0 auto 18px;
}
.section-heading-row > div { flex: 1; }
.section-heading-row .section-cross { margin-bottom: 0; }
.events-grid {
    position: relative;
    z-index: 1;
    width: min(100%, 1220px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(243,217,120,0.32);
    border-top: 1px solid rgba(243,217,120,0.45);
    border-bottom: 1px solid rgba(243,217,120,0.35);
}
.event-card {
    position: relative;
    min-height: 155px;
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 16px;
    align-items: center;
    padding: 20px 18px;
    background:
        radial-gradient(circle at 10% 30%, rgba(243,217,120,0.07), transparent 30%),
        linear-gradient(145deg, rgba(255,255,255,0.055), rgba(255,255,255,0.012));
}
.event-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    bottom: 18px;
    width: 3px;
    background: linear-gradient(transparent, var(--gold), transparent);
    opacity: 0.72;
}
.event-card h3 { margin: 0 0 3px; color: #fff; font-size: 1rem; font-weight: 700; }
.event-card > div:last-child > strong { color: var(--gold-light); font-size: 0.88rem; }
.event-card p { margin: 8px 0 0; color: rgba(255,255,255,0.83); font-size: 0.94rem; line-height: 1.27; }
.event-date {
    width: 75px;
    height: 88px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(180deg, #4f1265, #2f073c);
    border: 1px solid var(--gold);
    box-shadow: inset 0 0 0 3px rgba(255,255,255,0.025), 0 8px 18px rgba(0,0,0,0.18);
}
.event-date span { color: var(--gold-light); font-family: "Montserrat", Arial, sans-serif; font-size: 0.62rem; letter-spacing: 0.12em; }
.event-date strong { font-size: 2.1rem; font-weight: 500; line-height: 1; }

/* ---------------------------------------------------------
   MINISTRIES
   --------------------------------------------------------- */
.ministries-section {
    position: relative;
    overflow: hidden;
    padding: 35px 28px 42px;
    background:
        radial-gradient(circle at 10% 100%, rgba(214,169,61,0.08), transparent 24%),
        radial-gradient(circle at 90% 0%, rgba(84,32,105,0.08), transparent 26%),
        linear-gradient(180deg, #fffdf7, #fff8ea);
    border-bottom: 1px solid #e5c66c;
}
.ministries-grid {
    width: min(100%, 1250px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 18px;
}
.ministries-grid a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    color: var(--purple-deep);
    font-size: 0.81rem;
    font-weight: 700;
    line-height: 1.05;
    text-align: center;
    text-transform: uppercase;
    transition: transform 0.18s ease, color 0.18s ease;
}
.ministries-grid a:hover { color: var(--purple); transform: translateY(-4px); }
.ministries-grid span {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    color: var(--gold-dark);
    background: radial-gradient(circle at 35% 30%, #fff 0%, #fff9e7 45%, #ead2a1 100%);
    border: 1px solid #d3a84c;
    border-radius: 50%;
    box-shadow: inset 0 0 0 6px rgba(255,255,255,0.43), 0 7px 16px rgba(102,64,16,0.12);
    font-size: 2rem;
}

/* ---------------------------------------------------------
   FOOTER
   --------------------------------------------------------- */
.site-footer {
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.8fr auto;
    align-items: center;
    gap: 34px;
    padding: 27px max(30px, calc((100% - var(--content-width)) / 2));
    color: #fff;
    background:
        radial-gradient(circle at 20% 20%, rgba(13,98,73,0.28), transparent 28%),
        linear-gradient(120deg, #003326, #004633 55%, #002d22);
    border-top: 1px solid rgba(243,217,120,0.55);
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
    font-size: 0.75rem;
    line-height: 1.45;
}
.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image: radial-gradient(circle, #fff 1px, transparent 1.2px);
    background-size: 24px 24px;
    pointer-events: none;
}
.site-footer > * { position: relative; z-index: 1; }
.site-footer > div:first-child { font-family: "Cormorant Garamond", Georgia, serif; }
.site-footer > div:first-child strong { color: var(--gold-light); font-size: 1.55rem; letter-spacing: 0.03em; }
.site-footer > div:first-child em { display: inline-block; margin-top: 1px; font-family: "Great Vibes", "Brush Script MT", cursive; font-size: 1.45rem; }

/* ---------------------------------------------------------
   SECONDARY / PLACEHOLDER PAGES
   --------------------------------------------------------- */
.coming-page {
    min-height: 62vh;
    display: grid;
    place-items: center;
    padding: 70px 24px;
    background:
        radial-gradient(circle at 0% 50%, rgba(92,30,113,0.16), transparent 22%),
        radial-gradient(circle at 100% 50%, rgba(92,30,113,0.13), transparent 22%),
        linear-gradient(135deg, #fffaf0, #eee0ee);
}
.coming-card {
    width: min(850px, 100%);
    padding: 70px 35px;
    text-align: center;
    background: rgba(255,255,255,0.86);
    border: 1px solid var(--gold);
    box-shadow: var(--shadow);
}
.coming-card h1,
.page-banner h1,
.event-expanded h1 {
    margin: 0 0 15px;
    color: var(--purple);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(2.4rem, 5vw, 4.4rem);
    line-height: 1;
}
.coming-card p { margin: 0 0 30px; font-size: 1.15rem; }
.page-banner {
    position: relative;
    overflow: hidden;
    padding: 58px 25px;
    text-align: center;
    color: #fff;
    background: linear-gradient(120deg, var(--purple-deep), var(--purple), var(--green-deep));
    border-bottom: 2px solid var(--gold);
}
.page-banner::after { content: "✣"; position: absolute; right: 5%; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,0.05); font-size: 12rem; }
.page-banner h1 { position: relative; z-index: 1; color: var(--gold-light); }
.page-banner p { position: relative; z-index: 1; margin: 12px 0 0; font-family: "Montserrat", Arial, sans-serif; font-size: 0.75rem; letter-spacing: 0.16em; }
.event-list-page { padding: 55px max(25px, calc((100% - 1180px) / 2)); min-height: 55vh; background: linear-gradient(180deg, #fffdf8, #fff7e8); }
.event-list-grid { display: grid; gap: 18px; }
.event-detail-card {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 25px;
    align-items: center;
    padding: 24px;
    background: #fff;
    border: 1px solid #e2c77f;
    border-left: 5px solid var(--purple);
    box-shadow: 0 5px 18px rgba(51,17,61,0.08);
    transition: 0.18s ease;
}
.event-detail-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.event-detail-card h2 { margin: 0 0 6px; color: var(--purple); text-align: left; font-size: 1.55rem; }
.event-detail-card p { margin: 9px 0; }
.event-more { color: var(--gold-dark); font: 700 0.7rem "Montserrat", Arial, sans-serif; letter-spacing: 0.06em; }
.event-expanded {
    width: min(1000px, 100%);
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 40px;
    padding: 55px;
    background: rgba(255,255,255,0.92);
    border: 1px solid var(--gold);
    box-shadow: var(--shadow);
}
.event-date.large { width: 130px; height: 145px; }
.event-date.large strong { font-size: 3rem; }
.eyebrow { color: var(--gold-dark); font: 700 0.72rem "Montserrat", Arial, sans-serif; letter-spacing: 0.18em; }
.event-expanded h1 { text-align: left; }
.event-expanded h3 { color: var(--purple); }
.event-expanded > div:last-child > p { font-size: 1.08rem; line-height: 1.6; }
.optional-image { margin: 30px 0; padding: 50px 25px; border: 1px dashed #c9b17b; background: #faf5ea; text-align: center; color: #8b7952; font: 700 0.75rem "Montserrat", Arial, sans-serif; letter-spacing: 0.1em; }

/* ---------------------------------------------------------
   TABLET
   --------------------------------------------------------- */
@media (max-width: 1080px) {
    .site-header { flex-direction: column; align-items: flex-start; padding: 18px 25px; }
    .header-contact { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
    .hero { min-height: 545px; }
    .hero-content { padding: 55px 35px; }
    .hero-content h1 { font-size: clamp(3.3rem, 8vw, 5.4rem); }
    .worship-grid article { padding-left: 24px; padding-right: 24px; }
    .pastor-section { grid-template-columns: 42% 58%; }
    .pastor-message { padding-right: 35px; }
    .events-grid { grid-template-columns: 1fr; gap: 0; }
    .event-card { min-height: 120px; }
    .ministries-grid { grid-template-columns: repeat(4, 1fr); row-gap: 34px; }
    .site-footer { grid-template-columns: 1fr 1fr; }
}

/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */
@media (max-width: 700px) {
    body { font-size: 17px; }
    .site-header { min-height: 0; padding: 14px 17px; gap: 14px; }
    .header-brand { gap: 12px; }
    .brand-mark { width: 58px; height: 58px; font-size: 33px; }
    .brand-mark::before, .brand-mark::after { bottom: 7px; width: 20px; }
    .brand-mark::before { left: 8px; } .brand-mark::after { right: 8px; }
    .church-name { font-size: 1.52rem; }
    .church-subtitle { font-size: 1.25rem; }
    .church-motto { font-size: 0.46rem; letter-spacing: 0.13em; }
    .header-contact { gap: 10px 15px; font-size: 0.7rem; }
    .header-contact > span { width: 100%; }
    .social-cluster { order: 4; }

    .main-nav { display: block; }
    .mobile-menu-button { display: block; }
    .nav-links { display: none; flex-direction: column; width: 100%; }
    .nav-links.open { display: flex; }
    .nav-links a { width: 100%; padding: 14px 22px; border-top: 1px solid rgba(255,255,255,0.07); }
    .nav-links a.active::after { display: none; }

    .hero { min-height: 590px; align-items: flex-end; }
    .hero-image { object-position: 64% center; }
    .hero-shade {
        background:
            linear-gradient(0deg, rgba(42,3,56,0.99) 0%, rgba(47,6,62,0.94) 40%, rgba(47,6,62,0.38) 72%, rgba(34,2,44,0.08) 100%),
            linear-gradient(90deg, rgba(54,5,71,0.35), transparent 80%);
    }
    .hero-content { padding: 40px 23px 44px; }
    .hero-content h1 { max-width: 100%; font-size: clamp(3rem, 15vw, 4.35rem); line-height: 0.84; }
    .hero-script { font-size: clamp(2.2rem, 10vw, 3.3rem); }
    .hero-motto { font-size: 0.56rem; letter-spacing: 0.13em; }
    .hero-content blockquote { font-size: 1.3rem; }

    .pillars { grid-template-columns: repeat(2, 1fr); }
    .pillar { min-height: 105px; border-bottom: 1px solid rgba(216,174,69,0.34); }
    .pillar:nth-child(2)::after { display: none; }

    .worship-section { padding-left: 18px; padding-right: 18px; }
    .worship-grid { grid-template-columns: 1fr; }
    .worship-grid article { padding: 21px 10px; }
    .worship-grid article:not(:last-child)::after { top: auto; left: 20%; right: 20%; bottom: 0; width: 60%; height: 1px; }

    .pastor-section { grid-template-columns: 1fr; }
    .pastor-photo { min-height: 360px; max-height: 460px; }
    .pastor-photo::after { background: linear-gradient(0deg, #fff6e8 0%, transparent 28%); }
    .pastor-photo img { max-height: 460px; }
    .pastor-message { padding: 18px 24px 42px; text-align: center; }
    .pastor-message h2 { text-align: center; }
    .pastor-message .section-cross { margin-left: auto; }

    .events-section { padding: 30px 17px 34px; }
    .section-heading-row { flex-direction: column; }
    .event-card { grid-template-columns: 74px 1fr; padding: 19px 10px; gap: 14px; }
    .event-date { width: 67px; height: 80px; }

    .ministries-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 13px; }
    .ministries-grid span { width: 69px; height: 69px; }
    .site-footer { grid-template-columns: 1fr; text-align: center; }

    .event-detail-card { grid-template-columns: 74px 1fr; padding: 18px; }
    .event-expanded { grid-template-columns: 1fr; padding: 30px; }
    .event-date.large { width: 100px; height: 110px; }
    .page-banner { padding: 42px 20px; }
}

@media (max-width: 420px) {
    .church-name { font-size: 1.36rem; }
    .church-subtitle { font-size: 1.12rem; }
    .hero { min-height: 560px; }
    .hero-content h1 { font-size: 3rem; }
    .hero-script { font-size: 2.2rem; }
    .ministries-grid span { width: 64px; height: 64px; }
}

/* Individual event atmosphere — decorative only, no extra image assets. */
.event-communion { background-image: radial-gradient(circle at 90% 14%, rgba(243,217,120,0.10), transparent 24%), linear-gradient(145deg, rgba(255,255,255,0.055), rgba(255,255,255,0.012)); }
.event-anniversary { background-image: radial-gradient(circle at 86% 15%, rgba(174,105,197,0.13), transparent 25%), linear-gradient(145deg, rgba(255,255,255,0.055), rgba(255,255,255,0.012)); }
.event-fellowship { background-image: radial-gradient(circle at 88% 18%, rgba(215,160,58,0.13), transparent 24%), linear-gradient(145deg, rgba(255,255,255,0.055), rgba(255,255,255,0.012)); }
.nav-links a span { color: var(--gold-light); font-size: 0.82em; }

/* Homepage event thumbnails cropped from the approved visual mockup. */
.event-card { grid-template-columns: 136px 1fr; }
.event-thumb {
    position: relative;
    width: 136px;
    height: 105px;
    overflow: hidden;
    border: 1px solid rgba(243,217,120,0.52);
    box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}
.event-thumb img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.92) contrast(1.04); }
.event-thumb::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,transparent 55%,rgba(39,5,50,0.32)); pointer-events:none; }
.event-thumb .event-date {
    position: absolute;
    right: -1px;
    top: 12px;
    z-index: 2;
    width: 53px;
    height: 64px;
    background: linear-gradient(180deg,#55156d,#2c0738);
}
.event-thumb .event-date span { font-size: 0.55rem; }
.event-thumb .event-date strong { font-size: 1.55rem; }
@media (max-width: 700px) {
    .event-card { grid-template-columns: 105px 1fr; }
    .event-thumb { width:105px; height:92px; }
    .event-thumb .event-date { width:46px; height:57px; top:9px; }
    .event-thumb .event-date strong { font-size:1.35rem; }
}

/* Approved mockup emblem used as the header crest. */
.brand-mark {
    overflow: hidden;
    padding: 0;
    border: 1px solid rgba(243,217,120,0.55);
    background: var(--parchment);
}
.brand-mark::before, .brand-mark::after { display: none; }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

/* Final polish: true cross watermarks and richer event cards. */
.patterned-section::before,
.patterned-section::after {
    content: "";
    width: clamp(150px, 18vw, 245px);
    height: clamp(210px, 26vw, 330px);
    opacity: 0.055;
    background:
        linear-gradient(90deg, transparent 41%, currentColor 41%, currentColor 59%, transparent 59%),
        linear-gradient(0deg, transparent 44%, currentColor 44%, currentColor 56%, transparent 56%);
    border: 10px double currentColor;
    border-radius: 48% 48% 16% 16%;
}
.patterned-section::before { left: -5%; transform: translateY(-50%) rotate(-5deg); }
.patterned-section::after { right: -5%; transform: translateY(-50%) rotate(5deg); }
.group-icon { font-size: 1.25rem; letter-spacing: -0.08em; }
.events-grid { gap: 12px; background: transparent; border: 0; }
.event-card {
    border: 1px solid rgba(243,217,120,0.23);
    background: linear-gradient(145deg, rgba(111,37,132,0.72), rgba(55,10,70,0.88));
}
.event-card::before { display: none; }
@media (max-width: 1080px) {
    .events-grid { gap: 10px; }
}

/* =========================================================
   LIVE EVENT SYSTEM — FINAL COMPATIBILITY / POLISH
   Works with the database-driven site.js event renderer.
   ========================================================= */


/* ---------------------------------------------------------
   HOMEPAGE EVENT CARDS
   --------------------------------------------------------- */

.event-card {
    position: relative;
    overflow: hidden;
}

.event-card-content {
    position: relative;
    z-index: 2;
    min-width: 0;
}

    .event-card-content h3 {
        margin: 0 0 3px;
    }

        .event-card-content h3 a {
            position: relative;
            z-index: 4;
        }

    .event-card-content > strong {
        display: block;
        color: var(--gold-light);
        font-size: 0.88rem;
        line-height: 1.25;
    }

.event-card-location {
    margin-top: 3px;
    color: rgba(255,255,255,0.9);
    font-size: 0.88rem;
    line-height: 1.25;
}

.event-card-content p {
    margin: 8px 0 0;
    color: rgba(255,255,255,0.83);
    font-size: 0.94rem;
    line-height: 1.27;
}


/* Makes the whole homepage event card clickable */

.event-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
}


/* Keep visible links above the overlay */

.event-card-content h3 a {
    z-index: 4;
}


/* ---------------------------------------------------------
   HOMEPAGE THUMBNAIL PLACEHOLDER

   When Publisher has no event image, preserve the exact
   thumbnail geometry instead of collapsing the card.
   --------------------------------------------------------- */

.event-image-placeholder {
    position: absolute;
    inset: 0;
    background: radial-gradient( circle at 30% 25%, rgba(243,217,120,0.12), transparent 35% ), linear-gradient( 145deg, #59166f, #2b0737 );
}

    .event-image-placeholder::before {
        content: "✝";
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        color: rgba(243,217,120,0.20);
        font-size: 3.6rem;
        line-height: 1;
    }


/* ---------------------------------------------------------
   HOMEPAGE EMPTY / ERROR STATE
   --------------------------------------------------------- */

.homepage-events-empty {
    grid-column: 1 / -1;
    padding: 34px 25px;
    text-align: center;
    border: 1px solid rgba(243,217,120,0.23);
    background: linear-gradient( 145deg, rgba(111,37,132,0.72), rgba(55,10,70,0.88) );
}

    .homepage-events-empty h3 {
        margin: 0 0 7px;
        color: var(--gold-light);
        font-size: 1.2rem;
    }

    .homepage-events-empty p {
        margin: 0;
        color: rgba(255,255,255,0.85);
    }


/* =========================================================
   EVENTS PAGE
   ========================================================= */

.event-list-page {
    position: relative;
    overflow: hidden;
}

    .event-list-page::before,
    .event-list-page::after {
        content: "";
        position: absolute;
        z-index: 0;
        top: 50%;
        width: clamp(150px, 18vw, 245px);
        height: clamp(210px, 26vw, 330px);
        color: var(--purple);
        opacity: 0.035;
        background: linear-gradient( 90deg, transparent 41%, currentColor 41%, currentColor 59%, transparent 59% ), linear-gradient( 0deg, transparent 44%, currentColor 44%, currentColor 56%, transparent 56% );
        border: 10px double currentColor;
        border-radius: 48% 48% 16% 16%;
        pointer-events: none;
    }

    .event-list-page::before {
        left: -5%;
        transform: translateY(-50%) rotate(-5deg);
    }

    .event-list-page::after {
        right: -5%;
        transform: translateY(-50%) rotate(5deg);
    }

.event-list-grid {
    position: relative;
    z-index: 1;
}


/* ---------------------------------------------------------
   LIVE EVENTS LIST CARDS
   --------------------------------------------------------- */

.event-detail-card {
    position: relative;
    overflow: hidden;
    color: var(--ink);
}

    .event-detail-card::after {
        content: "";
        position: absolute;
        right: -55px;
        top: -70px;
        width: 180px;
        height: 180px;
        border-radius: 50%;
        background: radial-gradient( circle, rgba(86,32,108,0.055), transparent 68% );
        pointer-events: none;
    }

    .event-detail-card .event-date {
        position: relative;
        z-index: 2;
    }

    .event-detail-card > div:last-child {
        position: relative;
        z-index: 2;
        min-width: 0;
    }

    .event-detail-card h2 {
        margin: 0 0 5px;
        color: var(--purple);
        text-align: left;
        text-transform: none;
        font-size: 1.65rem;
    }

    .event-detail-card strong {
        display: block;
        color: var(--green-dark);
        font-size: 1rem;
    }

.event-location {
    margin-top: 3px;
    color: var(--green-dark);
    font-weight: 600;
}

.event-detail-card p {
    margin: 9px 0;
    color: #59485d;
    line-height: 1.4;
}

.event-more {
    display: inline-block;
    margin-top: 4px;
}


/* ---------------------------------------------------------
   EVENTS LOADING
   --------------------------------------------------------- */

.events-loading {
    padding: 12px 20px 45px;
    text-align: center;
}

    .events-loading h2 {
        margin-bottom: 14px;
    }

    .events-loading p {
        margin: 0;
        color: var(--muted);
    }


/* ---------------------------------------------------------
   EVENTS EMPTY / ERROR STATE
   --------------------------------------------------------- */

.events-empty-state {
    padding: 65px 30px;
    text-align: center;
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(214,169,61,0.45);
    box-shadow: 0 8px 25px rgba(51,17,61,0.06);
}

    .events-empty-state h2 {
        margin-bottom: 12px;
    }

    .events-empty-state p {
        margin: 0;
        color: var(--muted);
    }


/* =========================================================
   PUBLISHER PREVIEW
   ========================================================= */

.event-preview-notice {
    padding: 18px 22px;
    color: #fff;
    background: linear-gradient( 110deg, var(--green-deep), var(--green) );
    border: 1px solid var(--gold);
    box-shadow: 0 6px 18px rgba(0,0,0,0.10);
}

    .event-preview-notice strong {
        color: var(--gold-light);
        font-family: "Montserrat", Arial, sans-serif;
        font-size: 0.72rem;
        letter-spacing: 0.14em;
    }

    .event-preview-notice p {
        margin: 5px 0 0;
    }


/* =========================================================
   SINGLE EVENT PAGE
   ========================================================= */

.event-expanded-content {
    min-width: 0;
}

    .event-expanded-content h3 {
        margin-top: 0;
        margin-bottom: 10px;
    }

#event-location {
    color: var(--green-dark);
    font-weight: 600;
}

#event-description {
    white-space: pre-line;
}


/* ---------------------------------------------------------
   OPTIONAL EVENT IMAGE

   The old CSS styled this as a placeholder box.
   It now contains an actual image, so make it behave
   like an event photograph.
   --------------------------------------------------------- */

.optional-image {
    overflow: hidden;
    margin: 30px 0;
    padding: 0;
    border: 1px solid #c9b17b;
    background: #faf5ea;
}

    .optional-image img {
        display: block;
        width: 100%;
        max-height: 560px;
        object-fit: contain;
        margin: 0 auto;
        background: #f5ecdd;
    }


/* ---------------------------------------------------------
   EVENT ERROR
   --------------------------------------------------------- */

#event-error {
    margin: 25px 0;
    padding: 25px;
    border-left: 4px solid var(--gold);
    background: #faf5ea;
}

    #event-error h2 {
        margin: 0 0 7px;
        text-align: left;
        font-size: 1.45rem;
    }

    #event-error p {
        margin: 0;
    }


/* =========================================================
   RESPONSIVE LIVE EVENTS
   ========================================================= */

@media (max-width: 1080px) {

    .event-detail-card {
        grid-template-columns: 90px 1fr;
    }
}


@media (max-width: 700px) {

    .event-card {
        grid-template-columns: 105px 1fr;
    }

    .event-card-content p {
        font-size: 0.9rem;
    }

    .event-detail-card {
        grid-template-columns: 74px 1fr;
        gap: 16px;
    }

        .event-detail-card h2 {
            font-size: 1.4rem;
        }

    .event-expanded-content {
        width: 100%;
    }

    .event-list-page::before,
    .event-list-page::after {
        opacity: 0.02;
    }
}


@media (max-width: 420px) {

    .event-card {
        grid-template-columns: 92px 1fr;
        gap: 11px;
    }

    .event-thumb {
        width: 92px;
        height: 88px;
    }

        .event-thumb .event-date {
            width: 43px;
            height: 54px;
        }

    .event-detail-card {
        grid-template-columns: 66px 1fr;
        padding: 15px;
        gap: 13px;
    }

        .event-detail-card .event-date {
            width: 62px;
            height: 74px;
        }

            .event-detail-card .event-date strong {
                font-size: 1.7rem;
            }
}

/* =========================================================
   HOMEPAGE EVENTS — V1 HORIZONTAL LAYOUT RESTORE
   Three nearest events across desktop/tablet.
   Stack only on actual mobile screens.
   ========================================================= */

@media (min-width: 701px) {

    .events-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .event-card {
        min-width: 0;
        grid-template-columns: 136px minmax(0, 1fr);
        gap: 16px;
        align-items: center;
    }

    .event-thumb {
        width: 136px;
        height: 105px;
    }
}


/* Actual phones: stack the events */

@media (max-width: 700px) {

    .events-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* =========================================================
   EXPLORE OUR MINISTRIES
   8-ministry responsive layout
   ========================================================= */

/* Desktop — two balanced rows of four */

.ministries-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    row-gap: 34px;
}


/* Tablet — still 4 across while space permits */

@media (max-width: 900px) {

    .ministries-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 28px 18px;
    }
}


/* Smaller screens — two across */

@media (max-width: 700px) {

    .ministries-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 16px;
    }
}


/* Very small phones */

@media (max-width: 380px) {

    .ministries-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   SOCIAL ICONS
   Facebook / Instagram / YouTube
   ========================================================= */

.social-cluster {
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-link {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

    .social-link:hover {
        background: #d4af37;
        border-color: #d4af37;
        color: #260331;
        transform: translateY(-1px);
    }


/* FACEBOOK */

.social-facebook {
    font-family: Arial, sans-serif;
    font-size: 17px;
    font-weight: 700;
}


/* YOUTUBE */

.social-youtube {
    padding-left: 2px;
    font-size: 12px;
}


/* =========================================================
   INSTAGRAM GLYPH

   Drawn entirely with CSS.
   No PNG/SVG required.
   ========================================================= */

.instagram-glyph {
    position: relative;
    width: 15px;
    height: 15px;
    display: block;
    border: 2px solid currentColor;
    border-radius: 4px;
}


    /* Instagram center lens */

    .instagram-glyph::before {
        content: "";
        position: absolute;
        width: 5px;
        height: 5px;
        left: 50%;
        top: 50%;
        border: 1.5px solid currentColor;
        border-radius: 50%;
        transform: translate(-50%, -50%);
    }


    /* Instagram upper-right dot */

    .instagram-glyph::after {
        content: "";
        position: absolute;
        width: 2px;
        height: 2px;
        right: 2px;
        top: 2px;
        background: currentColor;
        border-radius: 50%;
    }


/* =========================================================
   V2 PUBLIC PAGES
   Shared layout for About, Ministries, Leadership, Services,
   Media and Contact. Keep public content presentation here.
   ========================================================= */

.v2-section,
.v2-split,
.ministry-directory,
.leadership-directory,
.leadership-profile-shell,
.v2-cta {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.v2-intro {
    padding: 64px 0 34px;
    text-align: center;
}

.v2-intro h2,
.v2-card h2,
.v2-cta h2 {
    margin: 6px 0 18px;
    color: #4a1558;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2rem, 4vw, 3rem);
}

.v2-intro > p:not(.eyebrow) {
    max-width: 760px;
    margin: 0 auto;
}

.v2-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding: 12px 0 64px;
}

.v2-card,
.ministry-directory-card,
.leadership-card,
.leadership-profile-card {
    background: #fff;
    border: 1px solid rgba(191, 139, 35, .5);
    box-shadow: 0 12px 32px rgba(44, 7, 52, .08);
}

.v2-card { padding: 34px; }
.v2-card p { line-height: 1.72; }
.v2-card a { color: #6b2676; font-weight: 700; }

.v2-cta {
    margin-bottom: 64px;
    padding: 44px;
    text-align: center;
    background: linear-gradient(135deg, #3b0648, #07533f);
    color: #fff;
    border-top: 2px solid #d7aa35;
    border-bottom: 2px solid #d7aa35;
}
.v2-cta h2 { color: #f5d65c; }

.ministry-directory,
.leadership-directory {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    padding: 12px 0 70px;
}

.ministry-directory-card,
.leadership-card {
    padding: 28px;
}

.ministry-directory-card h3,
.leadership-card h3 {
    margin: 12px 0 8px;
    color: #4a1558;
    font-family: "Cormorant Garamond", serif;
    font-size: 1.55rem;
}

.ministry-directory-card p,
.leadership-card p { line-height: 1.6; }
.ministry-directory-card a,
.leadership-card a { color: #b17b13; font-size: .78rem; font-weight: 700; letter-spacing: .08em; }
.ministry-icon-slot { color: #c59221; font-size: 1.8rem; }

.leadership-card-image,
.leadership-profile-image {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    background: #f2edf2;
}

.leadership-card-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 4 / 5;
    background: linear-gradient(135deg, #3d0648, #07533f);
    color: #f5d65c;
    font-family: "Cormorant Garamond", serif;
    font-size: 4rem;
}

.leadership-profile-shell { padding: 56px 0 72px; }
.leadership-profile-card {
    display: grid;
    grid-template-columns: minmax(240px, 360px) 1fr;
    gap: 42px;
    padding: 38px;
}
.leadership-profile-copy h1 { color: #4a1558; font-size: clamp(2.2rem, 5vw, 4rem); margin: 0 0 8px; }
.leadership-profile-copy .leader-title { color: #087054; font-weight: 700; letter-spacing: .05em; }
.leadership-profile-copy .leader-bio { line-height: 1.8; margin: 24px 0 32px; white-space: pre-line; }

.site-credit {
    padding: 9px 16px 12px;
    text-align: center;
    background: #f7f4ed;
    color: #666;
    font-family: Montserrat, sans-serif;
    font-size: .72rem;
    letter-spacing: .04em;
}
.site-credit a { text-decoration: none; margin-left: 3px; }
.credit-904 { color: #000; font-weight: 800; }
.credit-degree { color: #9ee600; font-weight: 900; }

@media (max-width: 850px) {
    .v2-split,
    .ministry-directory,
    .leadership-directory,
    .leadership-profile-card { grid-template-columns: 1fr; }
    .v2-section,
    .v2-split,
    .ministry-directory,
    .leadership-directory,
    .leadership-profile-shell,
    .v2-cta { width: min(100% - 28px, 1180px); }
}


/* =========================================================
   FNZ V2 BRAND ASSET + VISUAL POLISH PASS
   ========================================================= */

/* Homepage identity: FNZ gold motto and more visible church photo. */
.hero-motto { color: var(--gold-light); font-weight: 700; }
.hero-shade {
    background:
        linear-gradient(90deg,
            rgba(45,4,61,0.94) 0%,
            rgba(60,8,79,0.82) 23%,
            rgba(67,14,85,0.52) 38%,
            rgba(67,14,85,0.14) 55%,
            rgba(0,0,0,0.01) 72%),
        linear-gradient(180deg, rgba(24,0,32,0.10), transparent 28%);
}

/* Solid gold divider with protected negative space around Mini_Cross.svg. */
.hero-divider {
    display: flex;
    align-items: center;
    gap: 20px;
    width: min(390px, 78%);
    height: 22px;
    margin: 14px 0 14px;
    background: none;
}
.hero-divider::before,
.hero-divider::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: var(--gold-light);
}
.hero-divider::after {
    position: static;
    transform: none;
    padding: 0;
    color: transparent;
}
.hero-divider { background-image: url("../images/icons/fnz/Mini_Cross.svg"); background-repeat: no-repeat; background-position: center; background-size: auto 20px; }

/* Mini cross is the canonical small divider ornament. */
.section-cross {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    width: min(310px, 60%);
    height: 20px;
    margin: 10px auto 23px;
    font-size: 0;
    background: url("../images/icons/fnz/Mini_Cross.svg") center / auto 18px no-repeat;
}
.section-cross::before,
.section-cross::after {
    content: "";
    position: static;
    flex: 1 1 auto;
    width: auto;
    height: 1px;
    transform: none;
    background: currentColor;
}

/* FNZ Default Cross replaces generic large cross watermarks. */
.patterned-section::before,
.patterned-section::after {
    border: 0;
    border-radius: 0;
    background: url("../images/icons/fnz/FNZ_Default_Cross.svg") center / contain no-repeat;
    filter: grayscale(1);
    opacity: 0.055;
}
.page-banner::after {
    content: "";
    width: 180px;
    height: 180px;
    right: 5%;
    background: url("../images/icons/fnz/FNZ_Default_Cross.svg") center / contain no-repeat;
    opacity: 0.075;
}
.event-image-placeholder::before {
    content: "";
    width: 58%;
    height: 58%;
    background: url("../images/icons/fnz/FNZ_Default_Cross.svg") center / contain no-repeat;
    opacity: 0.34;
}

/* Ministry artwork: custom icon when present, FNZ default otherwise. */
.ministry-icon-slot img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* Plan-a-Visit schedule. */
.visit-schedule { display: grid; gap: 0; margin: 24px 0 22px; border-top: 1px solid rgba(112,83,23,.22); }
.visit-schedule > div { display: flex; justify-content: space-between; gap: 20px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid rgba(112,83,23,.22); }
.visit-schedule span { font-family: Montserrat, sans-serif; font-size: .76rem; font-weight: 700; letter-spacing: .08em; color: var(--purple); }
.visit-schedule strong { white-space: nowrap; color: var(--green-deep); }

/* 904° footer credit is intentionally all black. */
.credit-degree { color: #000; }

/* Keep address numerals on a normal baseline. */
.header-contact, .site-footer, .v2-card { font-variant-position: normal; }


/* =========================================================
   FNZ V2 VISUAL QA PATCH
   Normalizes 512x512 ministry artboards, uses the branded
   default cross for functional cross icons, keeps the Mini
   Cross gold, and forces lining numerals in visit/contact data.
   ========================================================= */

/* Every ministry SVG is authored on the same 512x512 artboard.
   Give every card the same square viewport so Illustrator's
   artboard — not the path's natural bounds — controls sizing. */
.ministry-icon-slot {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    overflow: hidden;
}
.ministry-icon-slot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* Branded default cross. Masking lets one SVG inherit the
   correct context color without maintaining duplicate files. */
.fnz-default-cross-icon {
    width: 1em;
    height: 1em;
    background-color: currentColor;
    -webkit-mask: url("../images/icons/fnz/FNZ_Default_Cross.svg") center / contain no-repeat;
    mask: url("../images/icons/fnz/FNZ_Default_Cross.svg") center / contain no-repeat;
    font-size: inherit;
}
.pillar .fnz-default-cross-icon {
    color: var(--gold-light);
}
.service-icon.fnz-default-cross-icon {
    color: var(--purple);
    margin-left: auto;
    margin-right: auto;
}

/* Mini_Cross.svg is the gold ornamental divider everywhere.
   The separate line elements preserve the intentional gap. */
.hero-divider,
.section-cross {
    background-image: none;
}
.hero-divider::before,
.hero-divider::after,
.section-cross::before,
.section-cross::after {
    background: var(--gold-light);
}
.hero-divider::after,
.section-cross::after {
    /* line stays a line; center ornament is supplied separately */
}
.hero-divider {
    position: relative;
}
.hero-divider > * { pointer-events: none; }
.hero-divider::marker { content: none; }
.hero-divider {
    /* Mini cross as a gold mask on a dedicated center layer. */
    --fnz-mini-cross-size: 20px;
}
.hero-divider:has(*) { }
.hero-divider::before,
.hero-divider::after { z-index: 0; }

/* Use an inline-mask center ornament without allowing rules
   to run beneath it. */
.hero-divider {
    background:
      linear-gradient(var(--gold-light), var(--gold-light)) left center / calc(50% - 20px) 1px no-repeat,
      linear-gradient(var(--gold-light), var(--gold-light)) right center / calc(50% - 20px) 1px no-repeat;
}
.hero-divider::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 12px;
    height: 20px;
    transform: translate(-50%, -50%);
    background: var(--gold-light);
    -webkit-mask: url("../images/icons/fnz/Mini_Cross.svg") center / contain no-repeat;
    mask: url("../images/icons/fnz/Mini_Cross.svg") center / contain no-repeat;
}
.hero-divider::after { content: none; }

.section-cross {
    position: relative;
    background:
      linear-gradient(currentColor, currentColor) left center / calc(50% - 20px) 1px no-repeat,
      linear-gradient(currentColor, currentColor) right center / calc(50% - 20px) 1px no-repeat;
}
.section-cross::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 11px;
    height: 18px;
    transform: translate(-50%, -50%);
    background: var(--gold-light);
    -webkit-mask: url("../images/icons/fnz/Mini_Cross.svg") center / contain no-repeat;
    mask: url("../images/icons/fnz/Mini_Cross.svg") center / contain no-repeat;
}
.section-cross::after { content: none; }

/* Cormorant defaults to old-style figures. Addresses and
   phone numbers use lining figures so 4835 shares one baseline. */
.v2-card h2,
.v2-card p,
.header-contact,
.site-footer {
    font-variant-numeric: lining-nums proportional-nums;
    font-feature-settings: "lnum" 1, "onum" 0;
}


/* =========================================================
   FNZ V2.5 FINAL QA
   Canonical black SVG masters are colorized by CSS masks.
   512x512 icon artboards align by their viewport, not path bounds.
   ========================================================= */

/* Four homepage pillars: fixed icon box + fixed label rhythm. */
.pillar { gap: 8px; }
.pillar-icon {
    width: 54px;
    height: 54px;
    margin: 0;
    display: grid;
    place-items: center;
    flex: 0 0 54px;
    line-height: 1;
}
.pillar > div:last-child { line-height: 1; margin: 0; }
.pillar .fnz-default-cross-icon {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    color: var(--gold-light);
}

/* Worship row: every symbol gets the same box and every heading starts
   at the same vertical position. The branded cross is gold here. */
.worship-grid article { display: flex; flex-direction: column; align-items: center; }
.service-icon {
    width: 64px;
    height: 64px;
    margin: 0 0 7px;
    display: grid;
    place-items: center;
    flex: 0 0 64px;
    line-height: 1;
}
.service-icon.fnz-default-cross-icon {
    width: 48px;
    height: 64px;
    margin: 0 0 7px;
    color: var(--gold-dark);
}
.service-symbol { font-size: 2.35rem; color: var(--purple); }
.worship-grid h3 { min-height: 1.15em; }

/* One black SVG master per ministry. CSS supplies the FNZ gold. */
.ministry-icon-art,
.ministry-home-icon {
    --ministry-color: var(--gold-dark);
    background: var(--ministry-color);
    -webkit-mask-image: var(--ministry-icon);
    mask-image: var(--ministry-icon);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}
.ministry-icon-slot { width: 100%; aspect-ratio: 1 / 1; display: grid; place-items: center; }
.ministry-icon-art { width: 100%; height: 100%; }
.ministries-grid .ministry-home-icon {
    width: 78px;
    height: 78px;
    flex: 0 0 78px;
    display: block;
    background-color: var(--gold-dark);
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
/* Keep the existing homepage medallion behind the masked artwork. */
.ministries-grid a { position: relative; }
.ministries-grid .ministry-home-icon::before { content: none; }
.ministries-grid a::before {
    content: "";
    position: absolute;
    top: 0;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff 0%, #fff9e7 45%, #ead2a1 100%);
    border: 1px solid #d3a84c;
    box-shadow: inset 0 0 0 6px rgba(255,255,255,0.43), 0 7px 16px rgba(102,64,16,0.12);
    z-index: 0;
}
.ministries-grid .ministry-home-icon { position: relative; z-index: 1; transform: scale(.72); }

/* Public address is also the directions control. */
.fnz-directions { color: inherit; text-decoration: none; cursor: pointer; }
.fnz-directions:hover { color: var(--gold-light); }
.visit-address { display: block; color: inherit; }
.visit-address:hover { color: inherit; }
.visit-address h2, .visit-address p { margin-left: 0; margin-right: 0; }
.directions-label { display: inline-block; margin: 3px 0 14px; color: var(--gold-dark); font: 700 .7rem "Montserrat", Arial, sans-serif; letter-spacing: .08em; }

/* Lining numerals everywhere address/service times appear. */
.header-contact, .site-footer, .visit-address, .visit-schedule, .worship-grid {
    font-variant-numeric: lining-nums proportional-nums;
    font-feature-settings: "lnum" 1, "onum" 0;
}

@media (max-width: 700px) {
    .ministries-grid a::before { width: 69px; height: 69px; }
    .ministries-grid .ministry-home-icon { width: 69px; height: 69px; flex-basis: 69px; }
}
@media (max-width: 380px) {
    .ministries-grid a::before { width: 64px; height: 64px; }
    .ministries-grid .ministry-home-icon { width: 64px; height: 64px; flex-basis: 64px; }
}


/* =============================================================
   V2.5 FINAL QA PATCH
   ============================================================= */
/* Sunday Worship uses the same purple icon language as the other service icons. */
.worship-grid .service-icon.fnz-default-cross-icon { color: var(--purple); }

/* Stay Connected reuses the persistent-header social icon treatment. */
.stay-connected-links { display: grid; gap: 14px; margin-top: 18px; }
.stay-connected-links > a { display: flex; align-items: center; gap: 12px; width: fit-content; color: var(--purple); text-decoration: none; }
.stay-connected-links > a .social-link { flex: 0 0 36px; width: 36px; height: 36px; margin: 0; }
.stay-connected-links > a:hover { color: var(--gold-dark); }

/* Ministry masks are black master SVGs; CSS supplies gold. */
.ministry-icon-art, .ministry-home-icon { background-color: var(--gold-dark); }


/* =============================================================
   V2.5 FINAL ICON RENDER FIX
   SVG masters remain black. External SVG files render as normal
   images; this filter presents them in FNZ gold in both ministry
   locations without relying on Firefox external-mask behavior.
   ============================================================= */
.ministry-icon-art,
.ministry-home-icon {
    background: transparent !important;
    -webkit-mask: none !important;
    mask: none !important;
    object-fit: contain;
    object-position: center;
    display: block;
    /* black master -> FNZ gold */
    filter: brightness(0) saturate(100%) invert(49%) sepia(89%) saturate(1018%) hue-rotate(6deg) brightness(91%) contrast(89%);
}

.ministries-grid .ministry-home-icon {
    position: relative;
    z-index: 1;
    object-fit: contain;
}

/* =========================================================
   VETERANS & MILITARY AFFAIRS ICON
   Optical-size correction for the wider crucifix artwork.
   ========================================================= */

.ministry-icon-slot > .ministry-icon-veterans {
    width: 78%;
    height: 78%;
    object-fit: contain;
    object-position: center;
    margin: auto;
}
/* =========================================================
   HERO PHOTO — CONSISTENT VISUAL SCALE
   Keep the church photo at 590px, while longer daily verses can
   expand the section without clipping its title or visit button.
   ========================================================= */

.hero {
    height: auto;
    min-height: 590px;
}

.hero-image {
    top: 0;
    right: 0;
    bottom: auto;
    left: auto;
    width: auto;
    height: 590px;
    max-width: none;
    object-fit: contain;
    object-position: right center;
}

@media (max-width: 1080px) {
    .hero {
        height: auto;
        min-height: 590px;
    }
}

@media (max-width: 700px) {
    .hero {
        height: auto;
        min-height: 590px;
    }

    .hero-image {
        right: 50%;
        transform: translateX(50%);
        width: auto;
        height: 590px;
        max-width: none;
        object-position: center center;
    }
}

/* =========================================================
   PUBLIC WORSHIP MEDIA GALLERY
   ========================================================= */

.public-media-gallery {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto 70px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.public-media-gallery > .events-loading,
.public-media-gallery > .v2-cta {
    grid-column: 1 / -1;
    width: 100%;
    margin: 0;
}

.public-media-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(191, 139, 35, .5);
    box-shadow: 0 12px 32px rgba(44, 7, 52, .08);
}

.public-media-asset {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #24132e;
}

.public-media-copy {
    padding: 22px;
}

.public-media-copy h3 {
    margin: 0 0 7px;
    color: #4a1558;
    font-family: "Cormorant Garamond", serif;
    font-size: 1.5rem;
}

.public-media-copy p {
    margin: 0;
    color: #59485d;
    line-height: 1.55;
}

@media (max-width: 900px) {
    .public-media-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .public-media-gallery {
        width: min(100% - 28px, 1180px);
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   PUBLISHER-MANAGED MINISTRIES
   ========================================================= */

.ministry-directory-default-icon {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: var(--gold-light);
    background: var(--purple-dark);
    font-size: 2rem;
}

.ministry-detail-icon {
    width: 112px;
    height: 112px;
    margin: 0 auto 20px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff 0%, #fff9e7 45%, #ead2a1 100%);
    border: 1px solid #d3a84c;
}

.ministry-detail-icon[hidden] {
    display: none;
}

.ministry-detail-icon img {
    width: 82px;
    height: 82px;
    object-fit: contain;
}

/* Shared published text */
.profile-copy { white-space: pre-line; overflow-wrap: anywhere; }
