:root {
    --bg-dark: #050814;
    --bg-light: #f7f5f2;
    --christmas-red: #b10824;
    --christmas-green: #0f5132;
    --accent-gold: #d4a43a;
    --text-main: #1f2933;
    --text-light: #f9fafb;
    --max-width: 1100px;
}

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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #243b64 0, #050814 55%, #020308 100%);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

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

/* Links within content */
.section-intro a,
.nav-church a,
.visit-row a {
    color: var(--accent-gold);
    font-weight: 600;
    text-decoration: underline;
    transition: all 0.2s ease;
}

.section-intro a:hover,
.nav-church a:hover,
.visit-row a:hover {
    color: #f5d5d5;
    text-decoration: underline;
}

img {
    max-width: 100%;
    display: block;
}

/* CHRISTMAS HEADER */

header {
    position: sticky;
    top: 0;
    z-index: 20;
    background-image: url('../images/headerbanner1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom: 2px solid rgba(255, 215, 128, 0.75);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.55);
    opacity: 0.9;
}

.nav {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.75rem 1.25rem 0.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-light);
    position: relative;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-direction: row;
}

.nav-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    flex-shrink: 0;
}

.nav-left > div {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.nav-church {
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.9;
}

.nav-title {
    font-weight: 700;
    font-size: 1.05rem;
}

.nav-badge {
    margin-top: 0.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.nav-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--accent-gold);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    position: relative;
    min-width: 40px;
    min-height: 40px;
    align-items: center;
    justify-content: center;
}

.nav-toggle span {
    width: 24px;
    height: 3px;
    background: var(--text-light);
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
    pointer-events: none;
}

.nav-links {
    display: flex;
    gap: 1.25rem;
    font-size: 0.9rem;
}

.nav-links a {
    opacity: 0.88;
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.18rem;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--accent-gold);
    transition: width 0.15s ease-out;
}

.nav-links a:hover {
    opacity: 1;
}

.nav-links a:hover::after {
    width: 100%;
}

/* little garland strip */
.nav-garland {
    width: 100%;
    height: 6px;
    background-image:
        radial-gradient(circle at 5px 3px, #ffd700 0, #ffd700 2px, transparent 3px),
        radial-gradient(circle at 25px 3px, #ffffff 0, #ffffff 2px, transparent 3px),
        radial-gradient(circle at 45px 3px, #ff6b81 0, #ff6b81 2px, transparent 3px);
    background-size: 50px 8px;
    opacity: 0.85;
}

main {
    color: var(--text-light);
}

.section {
    padding: 2rem 1rem;
    background-color: rgba(252, 250, 250, 0.2);
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.section:first-of-type {
    position: relative;
}

.section:first-of-type::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/AdventCandles1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.8;
    z-index: -1;
}

.section-alt {
    background: #f7efe4;
    color: var(--text-main);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
}

/* Hero */
.hero {
    display: grid;
    gap: 2rem;
}

.hero-tagline {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.16em;
    color: rgba(235, 238, 241, 0.8);
}

.hero-title {
    font-family: "Georgia", "Times New Roman", serif;
    font-size: clamp(2.3rem, 4vw, 3.1rem);
    margin-top: 0.5rem;
    line-height: 1.15;
}

.hero-title span {
    color: var(--accent-gold);
}

.hero-subtitle {
    margin-top: 0.75rem;
    font-size: 1.05rem;
    max-width: 32rem;
    color: #ffffff;
}

.hero-meta {
    margin-top: 1.5rem;
    font-size: 0.98rem;
}

.hero-meta strong {
    color: var(--accent-gold);
}

.hero-cta {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn-primary,
.btn-outline {
    padding: 0.75rem 1.4rem;
    border-radius: 999px;
    font-size: 0.95rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.1s ease, color 0.1s ease, border-color 0.1s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--christmas-red), var(--accent-gold));
    border-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.btn-outline {
    background: transparent;
    border-color: rgba(248, 250, 252, 0.6);
    color: var(--text-light);
}

.btn-outline:hover {
    background: rgba(15, 23, 42, 0.85);
}

.hero-side {
    border-radius: 24px;
    width: 100%;
    min-height: 400px;
    position: relative;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.hero-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    background-image: url('../images/adventCandles.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.5;
    z-index: -1;
}

.hero-side-title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(248, 250, 252, 0.75);
    margin-bottom: 0.5rem;
}

.advent-grid {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    font-size: 0.85rem;
}

.advent-card {
    border-radius: 16px;
    padding: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.6));
}

.advent-card h3 {
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.advent-card p {
    font-size: 0.8rem;
    opacity: 0.9;
}

.hero-note {
    margin-top: 1rem;
    font-size: 0.83rem;
    opacity: 0.7;
}

/* Section headings */
.section-header {
    margin-bottom: 2rem;
}

.section-kicker {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    opacity: 0.7;
}

.section-title {
    font-family: "Georgia", "Times New Roman", serif;
    font-size: 1.7rem;
    margin-top: 0.35rem;
}

.section-intro {
    margin-top: 0.75rem;
    max-width: 40rem;
    font-size: 0.98rem;
    opacity: 0.92;
}

/* About + music list */
.about-layout {
    display: grid;
    gap: 2.5rem;
    background: #f7efe4;
    padding: 2rem;
    border-radius: 12px;
}

.cantata-card {
    border-radius: 18px;
    padding: 1.5rem 1.4rem;
    background: #f3e1db;
    box-shadow: 0 12px 35px rgba(70, 69, 68, 0.2);
    font-size: 1.1rem;
    line-height: 1.8;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.cantata-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #8b4513;
}

.cantata-details {
    font-size: 1rem;
    margin-top: 0.75rem;
    color: #5a4a3a;
    line-height: 1.7;
}

.cantata-details span {
    display: inline-block;
    margin-right: 0.75rem;
}

.music-grid {
    display: grid;
    gap: 1rem;
    font-size: 0.9rem;
}

.song-card {
    border-radius: 14px;
    padding: 0.85rem 0.9rem;
    border-left: 3px solid var(--accent-gold);
    background: rgba(15, 23, 42, 0.04);
}

.song-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.song-title {
    font-weight: 600;
    flex: 1;
}

.song-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid rgba(212, 164, 58, 0.3);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.song-thumbnail:hover {
    border-color: var(--accent-gold);
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.song-meta {
    font-size: 0.8rem;
    margin-top: 0.1rem;
    opacity: 0.9;
}

/* Media */
.media-grid {
    display: grid;
    gap: 1.75rem;
}

.media-block {
    border-radius: 18px;
    padding: 1.25rem;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.5);
}

.media-block h3 {
    margin-bottom: 0.5rem;
}

.media-frame {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.65);
    overflow: hidden;
    background: #020617;
}

.media-frame img {
    width: 100%;
    height: auto;
    display: block;
}

.media-frame iframe {
    width: 100%;
    min-height: 315px;
    border: none;
    display: block;
}

video {
    width: 100%;
    min-height: 400px;
    max-height: 600px;
    object-fit: contain;
    display: block;
}

.media-caption {
    margin-top: 0.6rem;
    font-size: 0.85rem;
    opacity: 0.85;
    text-align: center;
}

.media-note {
    margin-top: 0.4rem;
    font-size: 0.78rem;
    opacity: 0.7;
}

/* Visit section */
.visit-layout {
    display: grid;
    gap: 2rem;
}

.visit-card {
    border-radius: 18px;
    padding: 1.5rem 1.4rem;
    background: #fff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.25);
}

.visit-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
}

.visit-row {
    margin-bottom: 0.55rem;
    font-size: 0.93rem;
}

.visit-row-label {
    font-weight: 600;
    margin-right: 0.5rem;
}

.map-placeholder {
    border-radius: 18px;
    padding: 1.5rem;
    background: radial-gradient(circle at top left, #e5e7eb, #cbd5f5);
    border: 1px solid #cbd5e1;
    text-align: center;
    font-size: 0.9rem;
}

.map-placeholder strong {
    display: block;
    margin-bottom: 0.4rem;
}

footer {
    border-top: 1px solid rgba(148, 163, 184, 0.5);
    padding: 1.5rem 1.25rem 2.25rem;
    background: #020617;
    color: rgba(226, 232, 240, 0.9);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    text-align: center;
    font-size: 0.85rem;
}

.footer-inner a {
    text-decoration: underline;
    text-decoration-style: dotted;
}

/* Responsive tweaks */
@media (min-width: 720px) {
    .hero {
        grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
        align-items: center;
    }
    .about-layout {
        grid-template-columns: minmax(0, 1.7fr) minmax(0, 2fr);
        align-items: flex-start;
    }
    .media-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .visit-layout {
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.8fr);
        align-items: stretch;
    }
}

@media (max-width: 640px) {
    .section {
        padding: 1.5rem 0.75rem;
    }
    
    .container {
        padding: 0 0.75rem;
    }
    
    .nav-toggle {
        display: flex !important;
    }
    
    .nav {
        position: relative;
    }
    
    .nav-links {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: linear-gradient(90deg, var(--christmas-red), var(--christmas-green));
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        width: 100%;
        margin-top: 6px;
    }
    
    .nav-links.active {
        display: flex !important;
    }
    
    .nav-links a {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-links a:last-child {
        border-bottom: none;
    }
    
    .nav {
        position: relative;
        padding: 0.75rem 0.75rem 0.4rem;
    }
    
    .hero-side {
        order: -1;
    }
    
    .about-layout {
        padding: 1rem;
    }
    
    .media-grid {
        grid-template-columns: 1fr;
    }
    
    .visit-layout {
        grid-template-columns: 1fr;
    }
    
    img, video, iframe {
        max-width: 100%;
        height: auto;
    }
}

html {
    scroll-behavior: smooth;
}

/* utility: hide sections (kept in DOM for SEO/markup but invisible visually) */
.hidden-section {
    display: none !important;
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s;
}

.image-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    transition: color 0.3s ease;
}

.modal-close:hover,
.modal-close:focus {
    color: var(--accent-gold);
    text-decoration: none;
}

.modal-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #f1f1f1;
    text-align: center;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 4px;
    font-size: 0.9rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (max-width: 640px) {
    .song-thumbnail {
        width: 50px;
        height: 50px;
    }
    
    .modal-content {
        max-width: 95%;
        max-height: 85vh;
    }
    
    .modal-close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
}

