/*
Theme Name: St Timothy The Reeds
Description: Official theme for St Timothy's Anglican Church, The Reeds, Centurion
Version: 1.0.0
Text Domain: st-timothy
*/

/* ── Design tokens ─────────────────────────────────────────── */
:root {
    --white:       #FFFFFF;
    --off-white:   #FAFAF7;
    --gold:        #C9A84C;
    --gold-dark:   #A8893C;
    --gold-light:  #E5CC87;
    --gold-pale:   #FDF8EC;
    --text-dark:   #1A1818;
    --text-medium: #4A4540;
    --text-light:  #8A8580;
    --border:      rgba(201, 168, 76, 0.22);
    --shadow-sm:   0 2px 8px rgba(0,0,0,0.07);
    --shadow-md:   0 6px 24px rgba(0,0,0,0.10);
    --radius-btn:  50px;
    --font-serif:  'Playfair Display', Georgia, serif;
    --font-body:   'Lora', Georgia, serif;
    --font-accent: 'Cormorant Garamond', serif;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--off-white);
    color: var(--text-dark);
    line-height: 1.7;
}
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    color: var(--text-dark);
    line-height: 1.2;
}
a { color: var(--gold-dark); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 4.5rem 0; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 0.5rem; text-align: center; }
.section-divider {
    width: 56px; height: 2px;
    background: linear-gradient(90deg, var(--gold-light), var(--gold), var(--gold-light));
    margin: 0 auto 2.5rem;
    border-radius: 2px;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 0.72rem 1.9rem;
    font-family: var(--font-accent);
    font-size: 1rem;
    letter-spacing: 0.06em;
    border-radius: var(--radius-btn);
    transition: background 0.25s, color 0.25s, box-shadow 0.25s, transform 0.15s;
    cursor: pointer;
    border: none;
    text-transform: uppercase;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
    background: var(--gold);
    color: var(--white);
    box-shadow: 0 3px 12px rgba(201,168,76,0.35);
}
.btn-primary:hover {
    background: var(--gold-dark);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(168,137,60,0.45);
}

.btn-outline {
    background: transparent;
    color: var(--gold-dark);
    border: 1.5px solid var(--gold);
}
.btn-outline:hover {
    background: var(--gold);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(201,168,76,0.3);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,0.7);
}
.btn-outline-light:hover {
    background: rgba(255,255,255,0.18);
    color: var(--white);
    border-color: var(--white);
}

/* For use on white/light backgrounds — dark charcoal border, fills gold on hover */
.btn-outline-dark {
    background: rgba(26, 24, 24, 0.06);
    color: var(--text-dark);
    border: 1.5px solid rgba(26, 24, 24, 0.45);
    backdrop-filter: blur(4px);
}
.btn-outline-dark:hover {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold);
    box-shadow: 0 4px 14px rgba(201,168,76,0.35);
}

/* ── Header ───────────────────────────────────────────────── */
.site-header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 200;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}
.site-logo {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    text-decoration: none;
}
.site-logo span {
    font-family: var(--font-accent);
    font-size: 0.7rem;
    color: var(--gold);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.site-logo:hover { color: var(--gold-dark); }

/* Hamburger */
.nav-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    border-radius: 4px;
    transition: background 0.2s;
}
.nav-toggle:hover { background: var(--gold-pale); }
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: transform 0.28s cubic-bezier(.77,0,.18,1), opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Right drawer ─────────────────────────────────────────── */
.site-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 300px;
    background: var(--white);
    border-left: 1px solid var(--border);
    z-index: 300;
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(.77,0,.18,1);
    overflow-y: auto;
    box-shadow: -4px 0 24px rgba(0,0,0,0.08);
}
.site-sidebar.open { transform: translateX(0); }

.sidebar-close {
    align-self: flex-end;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    font-size: 1.4rem;
    line-height: 1;
    padding: 4px;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}
.sidebar-close:hover { background: var(--gold-pale); color: var(--gold-dark); }

.sidebar-logo a {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    text-decoration: none;
}
.sidebar-logo a span {
    font-family: var(--font-accent);
    font-size: 0.7rem;
    color: var(--gold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.sidebar-divider { height: 1px; background: var(--border); }

.sidebar-menu { list-style: none; display: flex; flex-direction: column; }
.sidebar-menu li { border-bottom: 1px solid var(--border); }
.sidebar-menu a {
    display: block;
    padding: 0.9rem 0;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-dark);
    letter-spacing: 0.02em;
    transition: color 0.2s, padding-left 0.2s;
}
.sidebar-menu a:hover,
.sidebar-menu .current-menu-item a {
    color: var(--gold-dark);
    padding-left: 0.6rem;
}

/* Overlay */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26,24,24,0.38);
    z-index: 250;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.32s;
    backdrop-filter: blur(2px);
}
.sidebar-overlay.active { opacity: 1; pointer-events: all; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: var(--text-dark);
}
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.04);
    transition: transform 8s ease-out;
}
.hero-bg.loaded { transform: scale(1); }

/* White overlay — gives the "slightly opaque white" feel */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0.62) 0%,
        rgba(255,255,255,0.50) 50%,
        rgba(255,255,255,0.72) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem 1.5rem;
    max-width: 780px;
}
.hero-cross {
    font-size: 2.6rem;
    color: var(--gold);
    display: block;
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 8px rgba(255,255,255,0.6);
    animation: fadeDown 0.8s ease both;
}
.hero h1 {
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    color: var(--text-dark);
    margin-bottom: 0.35rem;
    text-shadow: 0 2px 12px rgba(255,255,255,0.8);
    animation: fadeUp 0.9s 0.1s ease both;
}
.hero-subtitle {
    font-family: var(--font-accent);
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--gold-dark);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-style: italic;
    display: block;
    margin-bottom: 2.5rem;
    animation: fadeUp 0.9s 0.2s ease both;
}
.hero-reading-strip {
    background: rgba(255,255,255,0.94);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    margin: 0;
    box-shadow: var(--shadow-sm);
}
.hero-reading-strip .reading-label {
    font-family: var(--font-accent);
    font-size: 0.72rem;
    color: var(--gold);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    text-align: center;
}
.hero-reading-strip .reading-day {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}
.reading-refs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.25rem;
}
.reading-ref {
    font-family: var(--font-accent);
    font-size: 0.9rem;
    color: var(--text-medium);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.reading-ref::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gold);
    flex-shrink: 0;
}
.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeUp 0.9s 0.4s ease both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Carousel ─────────────────────────────────────────────── */
.carousel-track { position: absolute; inset: 0; z-index: 1; }

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.75s ease;
    z-index: 0;
}
.carousel-slide.active { opacity: 1; pointer-events: all; z-index: 1; }

/* Parish name — absolute centre of the slide */
.carousel-slide .hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 780px;
    padding: 2rem 2rem;
}

/* News card — bottom right */
.slide-news-card {
    position: absolute;
    bottom: 4.5rem;   /* clears the dot indicators */
    right: 2rem;
    max-width: 340px;
    z-index: 2;
    /* background: rgba(255,255,255,0.93); */
    backdrop-filter: blur(10px);
    /* border: 1px solid var(--border); */
    /* border-radius: 14px; */
    padding: 1.4rem 1.6rem;
    /* box-shadow: 0 8px 32px rgba(0,0,0,0.12); */
    text-align: left;
}
.slide-tag {
    font-family: var(--font-accent);
    font-size: 0.72rem;
    color: var(--gold);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.4rem;
}
.slide-title {
    font-family: var(--font-serif);
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 0.5rem;
    text-shadow: none;
}
.slide-excerpt {
    font-size: 0.85rem;
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 1.1rem;
    max-width: none;
}
.slide-news-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.slide-news-actions .btn { font-size: 0.8rem; padding: 0.48rem 1rem; }

/* Chevrons inside the card */
.slide-card-nav {
    display: flex;
    justify-content: flex-end;
    gap: 0.4rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}
.carousel-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-dark);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.carousel-btn:hover { background: var(--gold-pale); border-color: var(--gold); color: var(--gold-dark); }

@media (max-width: 600px) {
    .slide-news-card { left: 1rem; right: 1rem; max-width: none; bottom: 4rem; }
    .carousel-slide .hero-content { top: 28%; transform: translate(-50%, 0); }
}

/* Dots */
.carousel-dots {
    position: absolute;
    bottom: 1.75rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(26,24,24,0.28);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s, transform 0.25s;
}
.carousel-dot.active { background: var(--gold); transform: scale(1.45); }

/* ── Daily reading bridge ─────────────────────────────────── */
.reading-bridge {
    position: relative;
    z-index: 20;
    margin-top: -3.5rem;
    background: transparent;
    background-color: transparent;
}
.reading-bridge-inner {
    max-width: 400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.reading-bridge .hero-reading-strip {
    box-shadow: 0 6px 24px rgba(0,0,0,0.09);
}
.section--bridge-above { padding-top: 6rem; }
.section--services { padding-bottom: 0; }

/* ── Schedule strip ───────────────────────────────────────── */
.schedules-bg { background: var(--gold-pale); }
.schedule-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
}
.schedule-list--full {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}
@media (max-width: 700px) {
    .schedule-list--full { grid-template-columns: 1fr; }
}

.schedule-item {
    background: var(--white);
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    border-top: 3px solid var(--gold);
    padding: 1.5rem 1.75rem;
    display: flex;
    flex-direction: column;
    margin-top: -1px;
}
.schedule-item .day { font-family: var(--font-serif); font-size: 1rem; color: var(--text-dark); font-weight: 700; }
.schedule-item .time { font-size: 0.9rem; color: var(--text-medium); }
.schedule-item .location { font-size: 0.8rem; color: var(--text-light); margin-top: 0.25rem; }
.schedule-item .liturgy { font-family: var(--font-accent); font-size: 0.8rem; color: var(--gold); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 0.25rem; }
.schedule-item .schedule-excerpt { font-size: 0.8rem; color: var(--text-light); margin-top: 0.75rem; line-height: 1.5; flex-grow: 1; }

/* ── Cards ────────────────────────────────────────────────── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.75rem; }
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-image { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 1.35rem 1.5rem; }
.card-body h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.card-meta { font-family: var(--font-accent); font-size: 0.82rem; color: var(--gold); letter-spacing: 0.06em; margin-bottom: 0.75rem; text-transform: uppercase; }
.card-celebrant { font-family: var(--font-accent); font-size: 0.85rem; color: var(--text-dark); margin-bottom: 0.75rem; }
.card-body p { font-size: 0.9rem; color: var(--text-medium); margin-bottom: 1rem; }

/* ── Service card actions ─────────────────────────────────── */
.service-card-actions { display: flex; flex-direction: row; flex-wrap: nowrap; gap: 0.4rem; margin-top: 1rem; }
.service-card-actions .btn { font-size: 0.72rem; padding: 0.35rem 0.65rem; white-space: nowrap; letter-spacing: 0.03em; }

/* ── Service card date badge ──────────────────────────────── */
.service-card { display: flex; flex-direction: column; }
.service-card-date-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--gold);
    color: var(--white);
    padding: 1rem 1.25rem;
    min-height: 80px;
}
.service-card-date-badge--past {
    background: var(--gold-pale);
    color: var(--text-dark);
    border-bottom: 1px solid var(--border);
}
.service-card-day {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}
.service-card-month {
    font-family: var(--font-accent);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 0.2rem;
    opacity: 0.85;
}
.service-card--upcoming .service-card-day { color: var(--white); }

/* ── Guild / Group cards ──────────────────────────────────── */
.guild-card { display: flex; flex-direction: column; }
.guild-card .card-body { display: flex; flex-direction: column; flex: 1; }
.guild-card-title { font-size: 1.15rem; margin-bottom: 0.5rem; }
.guild-card-excerpt { font-size: 0.9rem; color: var(--text-medium); margin-bottom: 1rem; flex: 1; }
.guild-contact { margin-bottom: 1.25rem; border-top: 1px solid var(--border); padding-top: 0.85rem; }
.guild-contact-name {
    font-family: var(--font-accent);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}
.guild-card-actions { margin-top: auto; }
.guild-single-excerpt {
    font-size: 1.1rem;
    color: var(--text-medium);
    font-style: italic;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}
.guild-single-contact {
    margin: 2.5rem 0;
    padding: 1.5rem;
    background: var(--gold-pale);
    border: 1px solid var(--border);
    border-radius: 12px;
}
.guild-single-contact-heading {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--gold-dark);
}

/* ── Staff archive ────────────────────────────────────────── */
.staff-group { margin-bottom: 3.5rem; }
.staff-group-title {
    font-size: 1.15rem;
    font-family: var(--font-accent);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold-dark);
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.6rem;
    margin-bottom: 1.75rem;
}
.staff-grid {
    display: grid;
    grid-template-columns: repeat( auto-fill, minmax( 280px, 1fr ) );
    gap: 1rem;
}
.staff-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    transition: box-shadow 0.2s, transform 0.2s;
}
.staff-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.staff-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-pale);
    flex-shrink: 0;
}
.staff-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.staff-initials {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}
.staff-info { text-align: left; min-width: 0; }
.staff-name {
    font-size: 1rem;
    margin-bottom: 0.15rem;
}
.staff-role {
    font-family: var(--font-accent);
    font-size: 0.78rem;
    color: var(--gold-dark);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.staff-contact {
    list-style: none;
    margin-top: 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.staff-contact a {
    font-size: 0.78rem;
    color: var(--text-medium);
    word-break: break-all;
}
.staff-contact a:hover { color: var(--gold-dark); }

/* ── Page banner ──────────────────────────────────────────── */
.page-banner {
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1.5rem;
}
.page-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( 160deg, rgba(26,24,24,0.62) 0%, rgba(26,24,24,0.48) 100% );
}
.page-banner-content {
    position: relative;
    z-index: 1;
    padding: 0 1.5rem;
}
.page-banner-title {
    font-size: clamp( 2rem, 5vw, 3.2rem );
    color: var(--white);
    text-shadow: 0 2px 12px rgba(0,0,0,0.35);
    margin: 0;
}
.page-banner-divider {
    width: 56px;
    height: 2px;
    background: linear-gradient( 90deg, var(--gold-light), var(--gold), var(--gold-light) );
    margin: 0.85rem auto 0;
    border-radius: 2px;
}

/* ── Page hero ────────────────────────────────────────────── */
.page-hero {
    background: var(--gold-pale);
    border-bottom: 1px solid var(--border);
    padding: 3rem 1.5rem;
}
.page-hero h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
.page-hero .breadcrumb {
    font-size: 0.78rem;
    color: var(--text-light);
    margin-top: 0.5rem;
    font-family: var(--font-accent);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
    background: var(--text-dark);
    color: rgba(250,250,247,0.75);
    padding: 3.5rem 1.5rem 1.5rem;
}
.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}
.footer-col h4 { font-family: var(--font-serif); color: var(--gold-light); font-size: 1rem; margin-bottom: 0.85rem; }
.footer-col p, .footer-col a { font-size: 0.875rem; line-height: 2; color: rgba(250,250,247,0.65); }
.footer-col a:hover { color: var(--gold-light); }
.footer-tagline { font-family: var(--font-accent); font-style: italic; font-size: 0.8rem; color: rgba(250,250,247,0.45); margin-bottom: 6px; }
.footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
    font-size: 0.78rem;
    color: rgba(250,250,247,0.35);
}

/* ── Pagination ───────────────────────────────────────────── */
.pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 2.5rem; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 0.5rem 1rem; border: 1px solid var(--border); border-radius: 50px; font-size: 0.875rem; color: var(--text-medium); transition: all 0.2s; }
.pagination a:hover { background: var(--gold-pale); color: var(--gold-dark); border-color: var(--gold); }
.pagination .current { background: var(--gold); color: var(--white); border-color: var(--gold); }

/* ── News archive ─────────────────────────────────────────── */
.page-archive .card-body h3 a { color: var(--text-dark); }
.page-archive .card-body h3 a:hover { color: var(--gold-dark); }
.archive-pagination { margin-top: 3rem; display: flex; justify-content: center; }
.archive-pagination .nav-links { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; }
.archive-pagination .page-numbers {
    padding: 0.5rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--text-medium);
    transition: all 0.2s;
}
.archive-pagination a.page-numbers:hover { background: var(--gold-pale); color: var(--gold-dark); border-color: var(--gold); }
.archive-pagination .page-numbers.current { background: var(--gold); color: var(--white); border-color: var(--gold); }
.archive-empty { text-align: center; color: var(--text-medium); font-family: var(--font-accent); font-size: 1.1rem; margin-top: 2rem; }

/* ── Placeholder image fallback ───────────────────────────── */
.card-image--placeholder,
.post-featured-img--placeholder {
    background: var(--gold-pale);
    object-fit: contain;
    padding: 1.5rem;
}

/* ── Single post ──────────────────────────────────────────── */
.post-single-inner { max-width: 760px; margin: 0 auto; }
.post-hero-image { margin-bottom: 2rem; border-radius: 12px; overflow: hidden; }
.post-featured-img { width: 100%; max-height: 440px; object-fit: cover; }
.post-header { margin-bottom: 2rem; }
.post-title { font-size: clamp(1.75rem, 4vw, 2.6rem); margin: 0.4rem 0 0; }
.post-content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-dark);
    margin-bottom: 3rem;
}
.post-content p { margin-bottom: 1.4rem; }
.post-content h2, .post-content h3 { margin: 2rem 0 0.75rem; }
.post-content a { color: var(--gold-dark); text-decoration: underline; }
.post-content ul, .post-content ol { padding-left: 1.5rem; margin-bottom: 1.4rem; }
.post-content li { margin-bottom: 0.4rem; }
.post-footer { padding-top: 1.5rem; border-top: 1px solid var(--border); }

/* ── 404 ──────────────────────────────────────────────────── */
.not-found {
    text-align: center;
    padding: 7rem 1.5rem;
    max-width: 560px;
    margin: 0 auto;
}
.not-found-cross {
    font-size: 2rem;
    color: var(--gold);
    display: block;
    margin-bottom: 1.5rem;
    opacity: 0.6;
}
.not-found .not-found-code {
    font-family: var(--font-serif);
    font-size: clamp(5rem, 15vw, 9rem);
    color: var(--gold);
    opacity: 0.18;
    line-height: 1;
    margin-bottom: 1.5rem;
}
.not-found h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 0.75rem; }
.not-found p { color: var(--text-medium); margin-bottom: 2.5rem; line-height: 1.7; }
.not-found-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 640px) {
    .hero-reading-strip { padding: 1.25rem 1.25rem; }
    .reading-refs { flex-direction: column; align-items: center; }
    .hero h1 { font-size: 2.1rem; }
}


/* ── Event cards ──────────────────────────────────────────── */
.event-card { display: flex; flex-direction: column; }
.event-card .card-body { display: flex; flex-direction: column; flex: 1; }

.event-card-date-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--gold);
    color: var(--white);
    padding: 0.9rem 1.25rem;
}
.event-card-date-badge--past {
    background: var(--gold-pale);
    color: var(--text-dark);
    border-bottom: 1px solid var(--border);
}
.event-card-day {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
    min-width: 2ch;
    text-align: center;
}
.event-card-month-year {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.event-card-month {
    font-family: var(--font-accent);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.9;
}
.event-card-year {
    font-family: var(--font-accent);
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    opacity: 0.75;
}
.event-card--upcoming .event-card-day { color: var(--white); }

.event-card-title { font-size: 1.1rem; margin-bottom: 0.35rem; }
.event-card-title a { color: var(--text-dark); }
.event-card-title a:hover { color: var(--gold-dark); }

.event-card-time {
    font-family: var(--font-accent);
    font-size: 0.82rem;
    color: var(--gold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.event-card-time--past { color: var(--text-medium); }

.event-card-excerpt { font-size: 0.9rem; color: var(--text-medium); margin-bottom: 1rem; flex: 1; }
.event-card-host {
    font-family: var(--font-accent);
    font-size: 0.82rem;
    color: var(--text-medium);
    margin-bottom: 0.85rem;
}
.event-card-host a { color: var(--gold-dark); }
.event-card-host a:hover { color: var(--gold); }
.event-card-actions { margin-top: auto; }

/* ── Event single ─────────────────────────────────────────── */
.event-single-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.25rem 1.5rem;
    background: var(--gold-pale);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 2rem;
}
.event-single-datetime {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--text-dark);
}
.event-single-host {
    font-family: var(--font-accent);
    font-size: 0.95rem;
    color: var(--text-medium);
}
.event-single-host a { color: var(--gold-dark); }
.event-single-host a:hover { color: var(--gold); }

/* ── Dark mode (follows device/browser preference) ─────────── */
@media (prefers-color-scheme: dark) {
    :root {
        --white:       #1F1D1B;
        --off-white:   #161413;
        --gold:        #C9A84C;
        --gold-dark:   #D4B56A;
        --gold-light:  #9A7C35;
        --gold-pale:   #2A2520;
        --text-dark:   #EDE9E3;
        --text-medium: #A89F96;
        --text-light:  #6A635C;
        --border:      rgba(201, 168, 76, 0.15);
        --shadow-sm:   0 2px 8px rgba(0,0,0,0.4);
        --shadow-md:   0 6px 24px rgba(0,0,0,0.55);
    }

    .hero-overlay {
        background: linear-gradient(
            to bottom,
            rgba(0,0,0,0.55) 0%,
            rgba(0,0,0,0.40) 50%,
            rgba(0,0,0,0.65) 100%
        );
    }

    .hero-content h1,
    .hero-subtitle { color: #fff; }

    .slide-news-card {
        background: rgba(22, 20, 19, 0.82);
        border-color: rgba(201, 168, 76, 0.2);
    }
    .slide-news-card h2,
    .slide-news-card .slide-excerpt { color: var(--text-dark); }

    .page-banner-title { color: #ffffff; }

    .hero-reading-strip { background: #2A2520; border-color: rgba(201,168,76,0.2); }

    .btn-outline-dark {
        background: rgba(255,255,255,0.06);
        color: var(--text-dark);
        border-color: rgba(255,255,255,0.2);
    }
    .btn-outline-dark:hover {
        background: var(--gold);
        color: #fff;
        border-color: var(--gold);
    }

    .service-card-date-badge--past { border-color: rgba(201,168,76,0.15); }
    .staff-avatar { border-color: rgba(201,168,76,0.3); }
    .site-footer { background: #0E0D0C; }
    .footer-bottom { border-color: rgba(255,255,255,0.06); }
    .site-sidebar { box-shadow: -4px 0 32px rgba(0,0,0,0.6); }
    .guild-single-contact { background: var(--gold-pale); border-color: var(--border); }
    .event-card-date-badge--past { border-color: rgba(201,168,76,0.15); }
    .event-single-meta { background: var(--gold-pale); border-color: var(--border); }
    .not-found-cross { opacity: 0.4; }
}

/* ── Documents page ───────────────────────────────────────── */
.doc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.doc-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0.25rem;
    transition: opacity 0.15s;
}
.doc-item:hover { opacity: 0.8; }

.doc-item--pinned .doc-icon { color: var(--gold-dark); }

.doc-icon {
    flex-shrink: 0;
    color: var(--gold);
    display: flex;
    align-items: center;
}

.doc-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.doc-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.doc-title {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: color 0.2s, text-decoration-color 0.2s;
}
.doc-title:hover {
    color: var(--gold-dark);
    text-decoration-color: var(--gold-dark);
}


.doc-category-tag {
    font-family: var(--font-accent);
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-medium);
    background: var(--off-white);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 0.15rem 0.5rem;
}

.doc-desc {
    font-size: 0.875rem;
    color: var(--text-medium);
}
.doc-meta {
    font-family: var(--font-accent);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gold);
    margin-top: 0.05rem;
}


@media (max-width: 540px) {
    .doc-item { flex-wrap: wrap; }
    .doc-download { margin-left: 2.5rem; }
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(196, 150, 42, 0.3);
  color: rgba(246, 241, 231, 0.6);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.footer-social-link:hover {
  color: var(--gold-light);
  border-color: var(--gold);
  background: rgba(196, 150, 42, 0.1);
}

/* ── Liturgical Texts ──────────────────────────────────────── */
.liturgy-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 3.5rem;
}

.liturgy-langs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
}

.liturgy-text-select {
    padding: 0.45rem 1.2rem;
    font-family: var(--font-accent);
    font-size: 1.05rem;
    letter-spacing: 0.05em;
    color: var(--text-dark);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-btn);
    cursor: pointer;
    transition: border-color 0.2s;
}

.liturgy-text-select:hover,
.liturgy-text-select:focus {
    border-color: var(--gold);
}

.liturgy-lang-pill {
    padding: 0.45rem 1.4rem;
    font-family: var(--font-accent);
    font-size: 1.05rem;
    letter-spacing: 0.05em;
    color: var(--text-medium);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-btn);
    cursor: pointer;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.liturgy-lang-pill:hover {
    border-color: var(--gold);
    color: var(--gold-dark);
}

.liturgy-lang-pill.active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--white);
}

.liturgy-text {
    max-width: 720px;
    margin: 0 auto 3.5rem;
}

/* Pasted content may use divs instead of paragraphs for stanzas */
.liturgy-variant > div { margin-bottom: 1.4rem; }

.liturgy-text:last-child { margin-bottom: 0; }

.liturgy-text-title {
    text-align: center;
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    margin-bottom: 0.5rem;
}

/* Callout on the Mass Services page */
.liturgy-callout {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: var(--gold-pale);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.4rem 1.8rem;
    margin-bottom: 3rem;
}

.liturgy-callout p {
    margin: 0;
    color: var(--text-medium);
}
