:root {
    --burgundy: #6b1d2a;
    --burgundy-light: #8a2e3b;
    --gold: #c9a84c;
    --gold-soft: #d4b96a;
    --gold-pale: #f0e6c8;
    --navy: #1a2332;
    --navy-light: #2c3a4e;
    --cream: #faf7f0;
    --cream-warm: #f5f0e3;
    --blue-accent: #2c4a6e;
    --white: #ffffff;
    --text: #2d2d2d;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    --border: #e5e2da;
    --shadow-sm: 0 1px 3px rgba(26, 35, 50, 0.08);
    --shadow-md: 0 4px 12px rgba(26, 35, 50, 0.1);
    --shadow-lg: 0 8px 30px rgba(26, 35, 50, 0.12);
    --radius: 6px;
    --radius-lg: 10px;
}

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

body {
    font-family:
        "Source Sans 3",
        -apple-system,
        sans-serif;
    color: var(--text);
    background: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: "EB Garamond", Georgia, serif;
    font-weight: 600;
    line-height: 1.25;
}

a {
    color: var(--blue-accent);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover {
    color: var(--burgundy);
}

/* ─── Top Bar ─── */
.top-bar {
    background: var(--navy);
    color: var(--cream);
    font-size: 0.8rem;
    padding: 6px 0;
    letter-spacing: 0.03em;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar a {
    color: var(--gold-soft);
    font-weight: 500;
}
.top-bar a:hover {
    color: var(--gold);
}
.lang-switch {
    display: flex;
    gap: 12px;
}
.lang-switch a {
    opacity: 0.6;
}
.lang-switch a.active {
    opacity: 1;
    border-bottom: 1px solid var(--gold);
}

/* ─── Header ─── */
header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}
.church-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}
.church-brand .cross {
    font-size: 2rem;
    color: var(--burgundy);
    line-height: 1;
}
.church-brand .name {
    font-family: "EB Garamond", serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.2;
}
.church-brand .subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

nav {
    display: flex;
    gap: 4px;
}
nav a {
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--radius);
    transition: all 0.2s;
}
nav a:hover {
    background: var(--cream-warm);
    color: var(--burgundy);
}
nav a.active {
    color: var(--burgundy);
    background: rgba(107, 29, 42, 0.06);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--navy);
    cursor: pointer;
    padding: 8px;
}

/* ─── Container ─── */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── Hero ─── */
.hero {
    background: linear-gradient(
        135deg,
        var(--navy) 0%,
        var(--navy-light) 40%,
        var(--burgundy) 100%
    );
    color: var(--cream);
    padding: 56px 0 48px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C9A84C' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 1;
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}
.hero h1 {
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--white);
}
.hero h1 .gold {
    color: var(--gold);
}
.hero .tagline {
    font-size: 1.1rem;
    color: var(--gold-pale);
    margin-bottom: 6px;
    font-weight: 500;
    letter-spacing: 0.02em;
}
.hero .welcome {
    font-size: 1rem;
    color: rgba(250, 247, 240, 0.75);
    line-height: 1.7;
    max-width: 560px;
}
.hero .welcome em {
    color: var(--gold-soft);
    font-style: normal;
    font-weight: 500;
}
.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}
.btn-gold {
    background: var(--gold);
    color: var(--navy);
}
.btn-gold:hover {
    background: var(--gold-soft);
    color: var(--navy);
}
.btn-outline {
    background: transparent;
    color: var(--cream);
    border: 1.5px solid rgba(250, 247, 240, 0.35);
}
.btn-outline:hover {
    border-color: var(--gold-soft);
    color: var(--gold-soft);
}

/* ─── Liturgical Info Bar ─── */
.liturgical-bar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
}
.liturgical-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.liturgical-inner .date-badge {
    background: var(--burgundy);
    color: var(--white);
    padding: 6px 14px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
}
.liturgical-inner .feast {
    font-family: "EB Garamond", serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--navy);
}
.liturgical-inner .fast-info {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-left: auto;
}
.liturgical-inner .fast-info .dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
    vertical-align: middle;
}
.fast-free .dot {
    background: #22c55e;
}
.fast-strict .dot {
    background: var(--burgundy);
}
.fast-wine .dot {
    background: #d97706;
}

/* ─── Main Grid ─── */
.main-content {
    padding: 36px 0 48px;
}
.content-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
    align-items: start;
}

/* ─── Schedule Section ─── */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.section-header h2 {
    font-size: 1.5rem;
    color: var(--navy);
}
.section-header a {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--burgundy);
}

.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.schedule-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    overflow: hidden;
    transition:
        box-shadow 0.2s,
        border-color 0.2s;
}
.schedule-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--gold-soft);
}
.schedule-card .date-col {
    background: var(--cream-warm);
    padding: 16px;
    min-width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--border);
}
.schedule-card .date-col .day-num {
    font-family: "EB Garamond", serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--burgundy);
    line-height: 1;
}
.schedule-card .date-col .month {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}
.schedule-card .date-col .weekday {
    font-size: 0.7rem;
    color: var(--text-light);
    margin-top: 2px;
}
.schedule-card .event-col {
    padding: 14px 18px;
    flex: 1;
}
.schedule-card .event-col .event-title {
    font-family: "EB Garamond", serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 4px;
}
.schedule-card .event-col .event-detail {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}
.schedule-card .event-col .event-detail .time {
    font-weight: 600;
    color: var(--text);
}
.schedule-card .event-col .fast-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 3px;
    margin-top: 6px;
    background: rgba(217, 119, 6, 0.1);
    color: #92400e;
}
.schedule-card.is-today {
    border-left: 3px solid var(--gold);
}
.schedule-card.is-today .date-col {
    background: rgba(201, 168, 76, 0.1);
}

/* ─── Sidebar ─── */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.sidebar-card-header {
    padding: 14px 18px;
    background: var(--cream-warm);
    border-bottom: 1px solid var(--border);
    font-family: "EB Garamond", serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 8px;
}
.sidebar-card-body {
    padding: 16px 18px;
}

/* Readings */
.readings-content {
    font-size: 0.9rem;
    line-height: 1.7;
}
.readings-content .reading-ref {
    display: block;
    font-weight: 600;
    color: var(--burgundy);
    margin-bottom: 2px;
}
.readings-content .reading-item {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.readings-content .reading-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.readings-content .reading-source {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Saints */
.saints-list {
    font-size: 0.88rem;
    line-height: 1.6;
}
.saints-list li {
    margin-bottom: 6px;
    padding-left: 0;
    list-style: none;
}
.saints-list li::before {
    content: "☦";
    margin-right: 8px;
    color: var(--gold);
    font-size: 0.8em;
}

/* YouTube */
.yt-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: var(--radius);
    overflow: hidden;
}
.yt-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.yt-link {
    display: block;
    text-align: center;
    padding: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--burgundy);
}

/* ─── Service Explainers ─── */
.services-section {
    padding: 48px 0;
    background: var(--white);
    border-top: 1px solid var(--border);
}
.services-section h2 {
    font-size: 1.5rem;
    color: var(--navy);
    text-align: center;
    margin-bottom: 32px;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.service-explain {
    padding: 24px;
    background: var(--cream);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}
.service-explain h4 {
    font-size: 1.05rem;
    color: var(--burgundy);
    margin-bottom: 8px;
}
.service-explain p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ─── Footer ─── */
footer {
    background: var(--navy);
    color: rgba(250, 247, 240, 0.7);
    padding: 40px 0 24px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 32px;
}
footer h4 {
    color: var(--gold);
    font-size: 1rem;
    margin-bottom: 12px;
}
footer p,
footer li {
    font-size: 0.88rem;
    line-height: 1.7;
}
footer a {
    color: rgba(250, 247, 240, 0.7);
}
footer a:hover {
    color: var(--gold);
}
footer ul {
    list-style: none;
}
footer li {
    margin-bottom: 4px;
}
.footer-bottom {
    border-top: 1px solid rgba(250, 247, 240, 0.1);
    padding-top: 16px;
    font-size: 0.78rem;
    color: rgba(250, 247, 240, 0.4);
    display: flex;
    justify-content: space-between;
}

/* ─── Hero with Photo ─── */
.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 380px;
}
.hero-split .hero-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 48px 48px 0;
    max-width: 870px;
    margin-left: auto;
    margin-right: 0;
}
@media (min-width: 1200px) {
    .hero-split .hero-text {
        margin-left: calc((100vw - 1640px) / 2 + 24px);
    }
}
.hero-split .hero-photo {
    position: relative;
    overflow: hidden;
}
.hero-split .hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hero-split .hero-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, var(--navy) 0%, transparent 13%);
    pointer-events: none;
}

/* ─── Photo Strip ─── */
.photo-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    height: 220px;
    overflow: hidden;
}
.photo-strip .photo-cell {
    position: relative;
    overflow: hidden;
}
.photo-strip .photo-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.photo-strip .photo-cell:hover img {
    transform: scale(1.05);
}
.photo-strip .photo-cell .photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(26, 35, 50, 0.5) 0%,
        transparent 50%
    );
    pointer-events: none;
}
.photo-strip .photo-cell .photo-caption {
    position: absolute;
    bottom: 10px;
    left: 12px;
    right: 12px;
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* ─── Icon Gallery Section ─── */
.icon-gallery {
    padding: 48px 0;
    background: var(--cream-warm);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.icon-gallery h2 {
    text-align: center;
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 24px;
}
.icon-gallery .gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.icon-gallery .gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition:
        box-shadow 0.3s,
        transform 0.3s;
}
.icon-gallery .gallery-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}
.icon-gallery .gallery-item img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    display: block;
}
.icon-gallery .gallery-item .caption {
    padding: 10px 12px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-muted);
    text-align: center;
    font-family: "EB Garamond", serif;
}

/* ─── Loading / Skeleton ─── */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--cream-warm) 25%,
        var(--cream) 50%,
        var(--cream-warm) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}
@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}
.skeleton-line {
    height: 14px;
    margin-bottom: 8px;
}
.skeleton-line:last-child {
    width: 60%;
}

/* ─── Placeholder Pages ─── */
.placeholder-page {
    display: none;
    padding: 80px 0;
    text-align: center;
    min-height: 50vh;
}
.placeholder-page.active {
    display: block;
}
.placeholder-page h1 {
    font-size: 2rem;
    color: var(--navy);
    margin-bottom: 12px;
}
.placeholder-page p {
    color: var(--text-muted);
    font-size: 1.05rem;
}
.placeholder-page .coming-soon {
    display: inline-block;
    margin-top: 20px;
    padding: 8px 20px;
    background: var(--cream-warm);
    border-radius: var(--radius);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
}
.page-home {
    display: block;
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .hero-split {
        grid-template-columns: 1fr;
    }
    .hero-split .hero-photo {
        height: 240px;
    }
    .hero-split .hero-photo::after {
        background: linear-gradient(180deg, var(--navy) 0%, transparent 40%);
    }
    .hero-split .hero-text {
        padding: 36px 0 32px;
    }
    .photo-strip {
        grid-template-columns: repeat(2, 1fr);
        height: 300px;
    }
    .icon-gallery .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    nav {
        display: none;
    }
    nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        padding: 8px;
        z-index: 200;
    }
    .mobile-menu-btn {
        display: block;
    }
    .hero h1 {
        font-size: 1.8rem;
    }
    .header-inner {
        position: relative;
    }
    .liturgical-inner {
        gap: 12px;
    }
    .liturgical-inner .fast-info {
        margin-left: 0;
    }
}
@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    .photo-strip {
        grid-template-columns: 1fr 1fr;
        height: 200px;
    }
    .icon-gallery .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .top-bar .container {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }
    .hero {
        padding: 0;
    }
    .hero-split .hero-text {
        padding: 28px 0 24px;
    }
    .hero-actions {
        flex-direction: column;
    }
    .btn {
        justify-content: center;
    }
}
