/* cffv_local ? Calvary Fountain Valley interactive local site */

:root {
    --color-parchment: #f4ecd8;
    --color-ink: #29251f;
    --color-brass: #b5a642;
    --color-gold: #d7bd62;
    --color-sea-deep: #173342;
    --color-panel: rgba(244, 236, 216, 0.94);
    --font-serif: Georgia, 'Times New Roman', serif;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition-smooth: all 0.35s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { width: 100%; height: 100%; }

body {
    background: #071017;
    color: var(--color-ink);
    font-family: var(--font-sans);
    overflow: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    line-height: 1.2;
    color: var(--color-ink);
}

p, li { line-height: 1.65; }

.site-background {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
    background: #071017;
}

.bg-layer {
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

.bg-master {
    background-image: url('../assets/images/bg_master_map.webp');
    background-position: center right;
    filter: sepia(0.24) contrast(1.08) saturate(0.92) brightness(0.9);
    opacity: 0.92;
}

.bg-scene {
    opacity: 0;
    transition: opacity 1800ms ease-in-out;
    background-position: center left;
    filter: sepia(0.12) contrast(1.07) brightness(0.98);
    mask-image: linear-gradient(to right, rgba(0,0,0,0.98) 0%, rgba(0,0,0,0.95) 42%, rgba(0,0,0,0.42) 70%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0.98) 0%, rgba(0,0,0,0.95) 42%, rgba(0,0,0,0.42) 70%, rgba(0,0,0,0) 100%);
}

.bg-scene.active { opacity: 0.9; }

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    min-height: 112px;
    padding: 18px 32px;
    background: linear-gradient(to bottom, rgba(7, 16, 23, 0.78), rgba(7, 16, 23, 0.26), rgba(7, 16, 23, 0));
    pointer-events: none;
}

.logo-anchor {
    position: fixed;
    top: 18px;
    left: 32px;
    padding: 10px 14px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(7, 16, 23, 0.88), rgba(7, 16, 23, 0.58));
    border: 1px solid rgba(215, 189, 98, 0.34);
    box-shadow: 0 10px 26px rgba(0,0,0,0.52), inset 0 0 24px rgba(215, 189, 98, 0.08);
    backdrop-filter: blur(7px);
}

.service-times {
    position: fixed;
    top: 22px;
    right: 32px;
    text-align: right;
    color: var(--color-parchment);
    font-family: var(--font-serif);
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.45;
    padding: 10px 14px;
    border-right: 3px solid rgba(215, 189, 98, 0.72);
    background: rgba(7, 16, 23, 0.34);
    text-shadow: 0 2px 7px rgba(0,0,0,0.8);
}

.logo-anchor, .service-times { pointer-events: auto; }

.header-logo {
    height: 75px;
    width: auto;
    display: block;
    filter: drop-shadow(0 3px 8px rgba(0,0,0,0.82)) brightness(1.08) contrast(1.08);
}

.side-nav {
    position: fixed;
    top: 120px;
    left: 24px;
    width: 250px;
    max-height: calc(100vh - 145px);
    z-index: 90;
    padding: 16px 14px;
    overflow-y: auto;
    background: rgba(244, 236, 216, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(181, 166, 66, 0.42);
    border-radius: 4px;
    box-shadow: 0 14px 38px rgba(0,0,0,0.28);
    transition: opacity 900ms ease, transform 900ms ease;
}

.nav-list, .sub-menu { list-style: none; }
.nav-list { display: flex; flex-direction: column; gap: 4px; }

.nav-list a, .nav-label {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    text-decoration: none;
    color: var(--color-ink);
    font-family: var(--font-serif);
    font-weight: 700;
    padding: 9px 10px;
    display: block;
    border-radius: 3px;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.nav-label {
    color: #7a5116;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
}

.nav-list a:hover, .nav-list a.active, .nav-label:hover {
    background: rgba(181, 166, 66, 0.22);
    transform: translateX(4px);
}

.sub-menu { padding-left: 16px; margin: 2px 0 8px; }
.sub-menu a { font-size: 0.91rem; font-weight: 500; padding: 7px 10px; }

.page-content {
    position: relative;
    height: 100vh;
    margin-left: 290px;
    z-index: 1;
    overflow: hidden;
}

.container {
    height: 100vh;
    padding: 100px 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-panel {
    background: var(--color-panel);
    border: 1px solid rgba(181, 166, 66, 0.42);
    box-shadow: 0 18px 48px rgba(0,0,0,0.34);
    border-radius: 4px;
    max-width: 900px;
    width: min(900px, calc(100vw - 385px));
    max-height: calc(100vh - 200px);
    padding: 30px;
    transition: opacity 900ms ease, transform 900ms ease;
}

.content-scroll-area {
    max-height: calc(100vh - 260px);
    overflow-y: auto;
    padding-right: 12px;
    scrollbar-color: var(--color-brass) rgba(0,0,0,0.08);
}

.content-scroll-area::-webkit-scrollbar { width: 9px; }
.content-scroll-area::-webkit-scrollbar-track { background: rgba(0,0,0,0.08); }
.content-scroll-area::-webkit-scrollbar-thumb { background: var(--color-brass); border-radius: 10px; }

.content-panel h1 { margin-bottom: 16px; font-size: clamp(2rem, 4vw, 3.4rem); }
.content-panel h2 { margin: 22px 0 10px; font-size: 1.55rem; }
.content-panel h3 { margin: 18px 0 8px; }
.content-panel p { margin-bottom: 15px; }
.content-panel ul, .content-panel ol { margin: 0 0 16px 1.4rem; }
.lead { font-size: 1.17rem; font-weight: 600; color: #5c4a22; }

.home-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.home-info-grid > div {
    border-left: 3px solid var(--color-brass);
    padding: 12px 0 12px 16px;
    background: rgba(255,255,255,0.16);
}

.content-panel.dimmed, .side-nav.dimmed {
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
}

@media (max-width: 900px) {
    body { overflow-y: auto; }
    .main-header { position: relative; min-height: auto; background: rgba(7,16,23,0.82); }
    .service-times { font-size: 0.82rem; }
    .side-nav {
        position: relative;
        top: auto;
        left: auto;
        width: calc(100% - 28px);
        max-height: none;
        margin: 14px;
    }
    .page-content { height: auto; min-height: 100vh; margin-left: 0; overflow: visible; }
    .container { height: auto; min-height: calc(100vh - 260px); padding: 40px 16px; }
    .content-panel { width: 100%; max-height: none; }
    .content-scroll-area { max-height: none; overflow: visible; }
    .home-info-grid { grid-template-columns: 1fr; }
}


/* Curated page components */
.video-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 20px 0 22px;
    border: 1px solid rgba(122, 81, 22, 0.42);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(7, 16, 23, 0.82);
    box-shadow: 0 14px 34px rgba(0,0,0,0.24);
}

.video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.volunteer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.volunteer-grid > div {
    padding: 12px 14px;
    border: 1px solid rgba(122, 81, 22, 0.28);
    border-radius: 6px;
    background: rgba(255, 250, 230, 0.55);
    font-family: var(--font-serif);
    font-weight: 700;
}

.volunteer-grid span {
    display: block;
    margin-top: 4px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    color: #65552e;
}

.source-note {
    color: #6f5f37;
    font-style: italic;
}

.event-card-list {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}

.event-card {
    position: relative;
    padding: 20px 22px 18px;
    color: #3b2c16;
    background:
        linear-gradient(90deg, rgba(111,76,29,0.08) 1px, transparent 1px) 0 0 / 22px 100%,
        linear-gradient(180deg, rgba(111,76,29,0.06) 1px, transparent 1px) 0 0 / 100% 24px,
        linear-gradient(135deg, #f7edcf, #ead8ab);
    border: 1px solid rgba(111, 76, 29, 0.44);
    border-radius: 7px;
    box-shadow: 0 12px 25px rgba(0,0,0,0.18), inset 0 0 28px rgba(111,76,29,0.08);
    transform: rotate(-0.25deg);
}

.event-card:nth-child(even) { transform: rotate(0.25deg); }

.event-card__pin {
    position: absolute;
    top: 9px;
    right: 14px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: rgba(122,81,22,0.45);
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.55), 0 2px 4px rgba(0,0,0,0.3);
}

.event-card h2 {
    margin: 0 26px 8px 0;
    font-size: 1.28rem;
    color: #3a2b13;
}

.event-card__meta {
    margin-bottom: 12px;
    color: #6e4c1d;
    font-family: var(--font-serif);
    font-weight: 700;
}

.event-card__body p { margin-bottom: 10px; }
.event-card a { color: #6b4310; }
