/*
Theme Name: Holy Cross Parish Henderson
Theme URI: https://www.hendersoncatholic.org.nz
Author: Netstar
Author URI: https://netstar.co.nz
Description: A modern, mobile-first classic theme for Holy Cross Parish, Henderson. Warm, welcoming and easy to navigate for parishioners and visitors.
Version: 2.0.0
Requires at least: 6.4
Tested up to: 6.9
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: henderson-custom
*/

/* ----------------------------------------------------------------
  Design tokens
----------------------------------------------------------------- */
:root {
    --maroon: #7a1f23;
    --maroon-dark: #5c1417;
    --maroon-deep: #43100f;
    --gold: #b8862f;
    --gold-light: #e8d5a8;
    --navy: #26334d;
    --ink: #2b2622;
    --muted: #6a6157;
    --cream: #faf7f1;
    --cream-2: #f3ece0;
    --line: #e4dccb;
    --white: #ffffff;
    --success: #2e7d32;
    --shadow: 0 8px 28px rgba(67, 16, 15, 0.10);
    --shadow-sm: 0 2px 10px rgba(67, 16, 15, 0.06);
    --radius: 14px;
    --radius-sm: 8px;
    --font-display: "Lora", Georgia, "Times New Roman", serif;
    --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --maxw: 1200px;
    --header-h: 84px;
}

/* ----------------------------------------------------------------
  Reset & base
----------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--maroon);
    text-decoration: none;
}

a:hover {
    color: var(--maroon-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--maroon-deep);
    line-height: 1.25;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
}

ul, ol {
    padding-left: 1.4rem;
}

.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 1.25rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ----------------------------------------------------------------
  Utility
----------------------------------------------------------------- */
.text-center { text-align: center; }

.py-2 { padding: 1.5rem 0; }
.py-3 { padding: 2.5rem 0; }
.py-4 { padding: 3.5rem 0; }
.py-5 { padding: 4.5rem 0; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.bg-cream { background: var(--cream); }
.bg-maroon { background: var(--maroon); }
.bg-navy { background: var(--navy); }
.bg-light { background: var(--cream); }

/* ----------------------------------------------------------------
  Buttons
----------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .7rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: .95rem;
    line-height: 1.2;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
    background: var(--maroon);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--maroon-dark);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--maroon);
    border-color: var(--maroon);
}

.btn-outline:hover {
    background: var(--maroon);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--maroon);
}

.btn-white:hover { background: var(--cream); }

.btn-gold {
    background: var(--gold);
    color: var(--white);
}

.btn-gold:hover { background: #a37728; }

.btn-block { width: 100%; }

/* ----------------------------------------------------------------
  Section headings
----------------------------------------------------------------- */
.section-heading {
    max-width: 720px;
    margin: 0 auto 2.75rem;
    text-align: center;
}

.section-heading .eyebrow {
    display: inline-block;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: .6rem;
}

.section-heading h2 {
    font-size: clamp(1.8rem, 3.2vw, 2.5rem);
    margin-bottom: .6rem;
}

.section-heading p {
    color: var(--muted);
    font-size: 1.05rem;
}

.section-title {
    max-width: 720px;
    margin: 0 auto 2.75rem;
    text-align: center;
}

.section-title h2 {
    font-size: clamp(1.8rem, 3.2vw, 2.5rem);
    margin-bottom: .6rem;
}

.section-title p {
    color: var(--muted);
    font-size: 1.05rem;
}

/* ----------------------------------------------------------------
  Top utility bar
----------------------------------------------------------------- */
.utility-bar {
    background: var(--maroon-deep);
    color: rgba(255, 255, 255, .85);
    font-size: .85rem;
    padding: .45rem 0;
}

.utility-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.utility-bar a {
    color: rgba(255, 255, 255, .85);
    transition: color .2s;
}

.utility-bar a:hover { color: var(--gold-light); }

.utility-contact {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.utility-contact span {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.utility-links {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    flex-wrap: wrap;
}

.utility-links .btn {
    padding: .3rem .9rem;
    font-size: .8rem;
}

/* ----------------------------------------------------------------
  Header & navigation
----------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 2px 12px rgba(43, 38, 34, .08);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: var(--header-h);
}

.site-branding a {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
}

.site-branding img {
    max-height: 60px;
    width: auto;
}

.main-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-navigation > ul {
    display: flex;
    align-items: center;
    gap: .35rem;
}

.main-navigation > ul > li {
    position: relative;
}

.main-navigation > ul > li > a {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .55rem .8rem;
    color: var(--ink);
    font-weight: 500;
    font-size: .95rem;
    border-radius: 999px;
    transition: color .2s, background-color .2s;
}

.main-navigation > ul > li > a:hover,
.main-navigation > ul > li.current-menu-item > a,
.main-navigation > ul > li.current_page_item > a,
.main-navigation > ul > li.current-menu-ancestor > a {
    color: var(--maroon);
    background: var(--cream);
}

.main-navigation > ul > li.menu-item-has-children > a::after {
    content: "▾";
    font-size: .7rem;
    color: var(--muted);
}

.main-navigation .sub-menu {
    position: absolute;
    top: calc(100% + .4rem);
    left: 0;
    min-width: 240px;
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    padding: .6rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    z-index: 50;
}

.main-navigation > ul > li:hover > .sub-menu,
.main-navigation > ul > li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation .sub-menu li a {
    display: block;
    padding: .55rem .8rem;
    border-radius: 6px;
    color: var(--ink);
    font-size: .92rem;
}

.main-navigation .sub-menu li a:hover {
    background: var(--cream);
    color: var(--maroon);
}

.main-navigation .sub-menu .sub-menu {
    top: 0;
    left: calc(100% + .4rem);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-shrink: 0;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--white);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--maroon-deep);
    border-radius: 2px;
    transition: transform .25s ease, opacity .25s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----------------------------------------------------------------
  Mobile menu
----------------------------------------------------------------- */
@media (max-width: 1080px) {
    .nav-toggle { display: flex; }

    .main-navigation {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(86vw, 360px);
        background: var(--white);
        box-shadow: -8px 0 30px rgba(43, 38, 34, .15);
        padding: 5.5rem 1.25rem 2rem;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform .3s ease;
        z-index: 1001;
    }

    .main-navigation.open { transform: translateX(0); }

    .main-navigation > ul {
        flex-direction: column;
        align-items: stretch;
        gap: .25rem;
    }

    .main-navigation > ul > li > a {
        justify-content: space-between;
        width: 100%;
        padding: .8rem .5rem;
        border-radius: 8px;
        font-size: 1rem;
    }

    .main-navigation .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--cream);
        margin: .25rem 0 .5rem .5rem;
        padding: .4rem .5rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease;
    }

    .main-navigation > ul > li.open > .sub-menu { max-height: 1200px; }
    .main-navigation .sub-menu .sub-menu {
        left: 0;
        background: var(--cream-2);
    }
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(43, 38, 34, .5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s;
}

.mobile-menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* ----------------------------------------------------------------
  Hero slider
----------------------------------------------------------------- */
.hero-slider {
    position: relative;
    min-height: clamp(500px, 78vh, 860px);
    overflow: hidden;
    background: var(--maroon-deep);
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center right;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .9s ease, visibility .9s;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg,
            rgba(25, 11, 11, .75) 0%,
            rgba(25, 11, 11, .50) 40%,
            rgba(25, 11, 11, .15) 70%,
            transparent 100%
        ),
        linear-gradient(to top,
            rgba(25, 11, 11, .60) 0%,
            rgba(25, 11, 11, .10) 40%,
            transparent 60%
        );
}

.hero-slide .container { position: relative; z-index: 2; }

.hero-content {
    max-width: 640px;
    color: var(--white);
}

.hero-content .eyebrow {
    display: inline-block;
    background: rgba(255, 255, 255, .16);
    color: var(--gold-light);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    padding: .35rem .9rem;
    border-radius: 999px;
    margin-bottom: 1.1rem;
    text-shadow: 0 1px 10px rgba(10, 5, 5, .5);
}

.hero-content h2 {
    color: var(--white);
    font-size: clamp(2rem, 4.6vw, 3.3rem);
    margin-bottom: .9rem;
    text-shadow: 0 2px 24px rgba(10, 5, 5, .6);
}

.hero-content p {
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    color: rgba(255, 255, 255, .95);
    margin-bottom: 1.75rem;
    text-shadow: 0 1px 14px rgba(10, 5, 5, .65);
}

.hero-actions {
    display: flex;
    gap: .8rem;
    flex-wrap: wrap;
}

.hero-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: .5rem;
    z-index: 5;
}

.hero-dots button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, .45);
    cursor: pointer;
    padding: 0;
    transition: background-color .25s, transform .25s;
}

.hero-dots button.active,
.hero-dots button:hover {
    background: var(--gold-light);
    transform: scale(1.2);
}

/* ----------------------------------------------------------------
  Home: welcome / intro
----------------------------------------------------------------- */
.welcome-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

@media (max-width: 900px) {
    .welcome-grid { grid-template-columns: 1fr; }
    .hero-content { max-width: 520px; }
}

.welcome-text h2 {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    margin-bottom: 1rem;
}

.welcome-text p { color: var(--muted); font-size: 1.05rem; }

.welcome-buttons {
    display: flex;
    gap: .8rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

.welcome-image {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    background: var(--cream);
}

.welcome-image img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.welcome-image-caption {
    font-size: .8rem;
    color: var(--muted);
    text-align: center;
    padding: .6rem .75rem .75rem;
    margin: 0;
}

.welcome-image.is-wide img { aspect-ratio: 3 / 2; }

@media (max-width: 900px) {
    .welcome-image img { aspect-ratio: 16 / 10; }
}

.quick-card {
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
}

.quick-card h3 {
    font-size: 1.15rem;
    color: var(--maroon);
    margin-bottom: .9rem;
}

.quick-card ul { list-style: none; padding: 0; margin: 0; }

.quick-card li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .6rem 0;
    border-bottom: 1px dashed var(--line);
    font-size: .95rem;
}

.quick-card li:last-child { border-bottom: none; }

.quick-card li strong { color: var(--ink); }
.quick-card li span { color: var(--maroon); font-weight: 600; white-space: nowrap; }

/* ----------------------------------------------------------------
  Tabs
----------------------------------------------------------------- */
.tabs {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: .6rem;
}

.tabs-nav button {
    flex: 1 1 auto;
    min-width: 150px;
    border: none;
    background: transparent;
    padding: .7rem 1rem;
    border-radius: 10px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: .92rem;
    color: var(--ink);
    cursor: pointer;
    transition: background-color .2s, color .2s;
}

.tabs-nav button:hover { background: var(--cream-2); }

.tabs-nav button.active {
    background: var(--maroon);
    color: var(--white);
}

.tabs-panel {
    display: none;
    padding: 1.75rem;
}

.tabs-panel.active { display: block; }

.tab-panel-title {
    font-size: 1.25rem;
    color: var(--maroon);
    margin-bottom: .5rem;
}

/* ----------------------------------------------------------------
  Cards (general)
----------------------------------------------------------------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
}

.card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .22s ease, box-shadow .22s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.card-media {
    height: 200px;
    background-color: var(--cream-2);
    background-size: cover;
    background-position: center;
}

.card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.5rem;
}

.card-body .badge {
    align-self: flex-start;
}

.card-body h3 {
    font-size: 1.2rem;
    color: var(--maroon-deep);
    margin-bottom: .5rem;
}

.card-body p {
    color: var(--muted);
    font-size: .95rem;
    flex: 1;
}

.card-meta {
    list-style: none;
    margin: 0 0 1.1rem;
    padding: .8rem 1rem;
    background: var(--cream);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius-sm);
    font-size: .85rem;
    color: var(--muted);
}

.card-meta li { margin-bottom: .3rem; }
.card-meta li:last-child { margin-bottom: 0; }
.card-meta strong { color: var(--ink); }

.card-link {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--maroon);
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.card-link:hover { text-decoration: underline; }

.badge {
    display: inline-block;
    background: var(--cream);
    color: var(--maroon);
    border: 1px solid var(--line);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .3rem .7rem;
    border-radius: 999px;
    margin-bottom: .8rem;
}

.badge.gold { background: var(--gold-light); color: #6d4f16; border-color: transparent; }
.badge.navy { background: #e3e9f5; color: var(--navy); border-color: transparent; }

/* QR ministry card */
.ministry-qr {
    width: 132px;
    height: 132px;
    margin: 0 auto 1rem;
    padding: 10px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.ministry-qr img {
    width: 100%;
    height: auto;
    display: block;
}

/* ----------------------------------------------------------------
  Schedule tables / cards
----------------------------------------------------------------- */
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.75rem;
}

.schedule-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 4px solid var(--maroon);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.event-poster {
    max-width: 640px;
    margin: 0 auto 2rem;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.event-poster img {
    display: block;
    width: 100%;
    height: auto;
}

.schedule-card.highlight {
    border-top-color: var(--gold);
    background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
}

.schedule-card-header {
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid var(--line);
    background: var(--cream);
}

.schedule-card-header h3 {
    font-size: 1.1rem;
    color: var(--maroon);
}

.schedule-card-body { padding: 1.25rem 1.5rem 1.5rem; }

.schedule-list { list-style: none; padding: 0; margin: 0; }

.schedule-list li {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: .65rem 0;
    border-bottom: 1px solid var(--cream-2);
}

.schedule-list li:last-child { border-bottom: none; }

.schedule-slot { font-weight: 600; color: var(--ink); }

.schedule-time {
    text-align: right;
    color: var(--maroon);
    font-weight: 600;
    white-space: nowrap;
}

.schedule-time small {
    display: block;
    color: var(--muted);
    font-weight: 400;
    font-size: .8rem;
}

.schedule-list.schedule-list-left li {
    justify-content: flex-start;
}

.schedule-list.schedule-list-left .schedule-time {
    text-align: left;
    margin-left: 0;
}

/* ----------------------------------------------------------------
  Contact cards
----------------------------------------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.contact-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.contact-card .icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--cream);
    color: var(--maroon);
    font-size: 1.5rem;
}

.contact-card .icon.is-photo {
    width: 88px;
    height: 88px;
    background: var(--cream-2);
    overflow: hidden;
}

.contact-card .icon.is-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.contact-card h3 {
    font-size: 1.05rem;
    margin-bottom: .3rem;
}

.contact-card .role {
    color: var(--gold);
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: .6rem;
    display: block;
}

.contact-card p { color: var(--muted); font-size: .92rem; margin-bottom: .6rem; }

.contact-card a.tel {
    font-weight: 700;
    color: var(--maroon);
    font-size: .88rem;
    overflow-wrap: break-word;
}

/* ----------------------------------------------------------------
  Resource links
----------------------------------------------------------------- */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1rem;
}

.resource-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.1rem 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.resource-link:hover {
    transform: translateY(-3px);
    border-color: var(--gold);
    box-shadow: var(--shadow);
}

.resource-link .icon { font-size: 1.6rem; }

.resource-link strong { display: block; color: var(--maroon-deep); font-size: .98rem; }
.resource-link small { color: var(--muted); font-size: .82rem; }

/* ----------------------------------------------------------------
  Quick links bar
----------------------------------------------------------------- */
.quick-links-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.quick-link-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.1rem 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.quick-link-item:hover {
    transform: translateY(-3px);
    border-color: var(--gold);
    box-shadow: var(--shadow);
}

.quick-link-item .ql-icon { font-size: 1.6rem; }

.quick-link-item strong { display: block; color: var(--maroon-deep); font-size: .98rem; }
.quick-link-item small { color: var(--muted); font-size: .82rem; }

.bulletin-year {
    margin: 2.25rem 0 .75rem;
    padding-bottom: .4rem;
    border-bottom: 1px solid var(--line);
    color: var(--maroon-deep);
    font-size: 1.15rem;
}

.bulletin-month {
    margin: 1.5rem 0 .75rem;
    color: var(--maroon-deep);
    font-size: 1rem;
}

.bulletin-archive { margin-bottom: .5rem; }

/* ----------------------------------------------------------------
  Inner page hero
----------------------------------------------------------------- */
.inner-hero {
    position: relative;
    padding: clamp(3rem, 7vw, 5.5rem) 0;
    background-size: cover;
    background-position: center top;
    background-color: var(--maroon-deep);
    color: var(--white);
}

.inner-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(43, 16, 15, .82) 0%, rgba(43, 16, 15, .62) 55%, rgba(43, 16, 15, .4) 100%);
}

.inner-hero.is-pattern::before {
    background: linear-gradient(rgba(43, 16, 15, .78), rgba(43, 16, 15, .78));
}

.inner-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-light), var(--gold), var(--gold-light));
    z-index: 2;
}

.inner-hero .container { position: relative; z-index: 2; }

.inner-hero h1 {
    color: var(--white);
    font-size: clamp(2rem, 4vw, 2.9rem);
    margin-bottom: .5rem;
    text-shadow: 0 2px 18px rgba(10, 5, 5, .55);
}

.inner-hero p {
    color: rgba(255, 255, 255, .9);
    font-size: 1.1rem;
    max-width: 640px;
    margin: 0;
}

.breadcrumbs {
    font-size: .85rem;
    color: rgba(255, 255, 255, .7);
    margin-top: .8rem;
}

.breadcrumbs a { color: var(--gold-light); }

/* ----------------------------------------------------------------
  Inner content
----------------------------------------------------------------- */
.page-content { padding: 3.5rem 0 4.5rem; }

.page-content h2 {
    font-size: 1.7rem;
    margin: 2rem 0 .9rem;
}

.page-content h3 {
    font-size: 1.3rem;
    margin: 1.6rem 0 .7rem;
}

.page-content p,
.page-content li {
    color: var(--ink);
    font-size: 1.02rem;
}

.page-content .entry-content a { text-decoration: underline; }

.page-content img {
    border-radius: var(--radius);
    margin: 1rem 0;
}

/* ----------------------------------------------------------------
  Forms (WPForms + theme fallback)
----------------------------------------------------------------- */
.parish-form-wrap {
    max-width: 720px;
    margin: 0 auto;
}

.parish-form-wrap .wpforms-form .wpforms-field {
    margin-bottom: 1.1rem;
}

.parish-form-wrap .wpforms-field-label {
    font-weight: 600;
    color: var(--ink);
    font-size: .92rem;
}

.parish-form-wrap input[type="text"],
.parish-form-wrap input[type="email"],
.parish-form-wrap input[type="tel"],
.parish-form-wrap input[type="date"],
.parish-form-wrap input[type="number"],
.parish-form-wrap select,
.parish-form-wrap textarea {
    width: 100%;
    padding: .75rem .95rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: .98rem;
    color: var(--ink);
    background: var(--white);
    transition: border-color .2s, box-shadow .2s;
}

.parish-form-wrap input:focus,
.parish-form-wrap select:focus,
.parish-form-wrap textarea:focus {
    outline: none;
    border-color: var(--maroon);
    box-shadow: 0 0 0 3px rgba(122, 31, 35, .12);
}

/* ----------------------------------------------------------------
  Form cards (theme fallback markup)
----------------------------------------------------------------- */
.forms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.75rem;
    align-items: start;
}

.form-container-centered {
    max-width: 720px;
    margin: 0 auto;
}

.form-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 4px solid var(--maroon);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.form-card-header {
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid var(--line);
    background: var(--cream);
}

.form-card-header h2 {
    font-size: 1.15rem;
    color: var(--maroon);
    margin-bottom: .3rem;
}

.form-card-header p {
    color: var(--muted);
    font-size: .92rem;
    margin: 0;
}

.form-card-body { padding: 1.25rem 1.5rem 1.5rem; }

.parish-styled-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.parish-styled-form .form-group { margin-bottom: 1rem; }

.parish-styled-form label {
    display: block;
    font-weight: 600;
    color: var(--ink);
    font-size: .92rem;
    margin-bottom: .35rem;
}

.parish-styled-form label input[type="checkbox"] {
    display: inline-block;
    margin-right: .5rem;
    width: auto;
    vertical-align: middle;
}

.parish-styled-form input[type="text"],
.parish-styled-form input[type="email"],
.parish-styled-form input[type="tel"],
.parish-styled-form input[type="date"],
.parish-styled-form input[type="number"],
.parish-styled-form select,
.parish-styled-form textarea {
    width: 100%;
    padding: .75rem .95rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: .98rem;
    color: var(--ink);
    background: var(--white);
    transition: border-color .2s, box-shadow .2s;
}

.parish-styled-form input:focus,
.parish-styled-form select:focus,
.parish-styled-form textarea:focus {
    outline: none;
    border-color: var(--maroon);
    box-shadow: 0 0 0 3px rgba(122, 31, 35, .12);
}

@media (max-width: 640px) {
    .parish-styled-form .form-row { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------------
  Gallery
----------------------------------------------------------------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--cream-2);
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
    transition: transform .25s ease;
}

.gallery-item:hover { transform: scale(1.03); }

.gallery-item.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: .85rem;
    text-align: center;
    padding: 1rem;
}

/* ----------------------------------------------------------------
  Newsletter list
----------------------------------------------------------------- */
.newsletter-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.newsletter-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: .75rem .25rem;
    border-bottom: 1px solid var(--line);
}

.newsletter-list li:last-child { border-bottom: none; }

.newsletter-list a { font-weight: 600; }
.newsletter-list a:hover { text-decoration: underline; }

/* ----------------------------------------------------------------
  Accordion
----------------------------------------------------------------- */
.accordion {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
}

.accordion-item + .accordion-item { border-top: 1px solid var(--line); }

.accordion-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: none;
    border: none;
    padding: 1.05rem 1.4rem;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--maroon-deep);
    text-align: left;
    cursor: pointer;
}

.accordion-toggle::after {
    content: "+";
    font-size: 1.3rem;
    color: var(--gold);
    transition: transform .2s;
}

.accordion-item.open .accordion-toggle::after { content: "−"; }

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
}

.accordion-body-inner {
    padding: 0 1.4rem 1.3rem;
    color: var(--muted);
}

/* ----------------------------------------------------------------
  Member / login callout
----------------------------------------------------------------- */
.member-callout {
    background: var(--navy);
    color: rgba(255, 255, 255, .9);
    border-radius: var(--radius);
    padding: 2.5rem;
    text-align: center;
}

.member-callout h2 { color: var(--white); margin-bottom: .6rem; }
.member-callout p { color: var(--white); margin-bottom: 1.4rem; }
.member-callout .btn { margin: 0 .3rem; }

/* ----------------------------------------------------------------
  Schools
----------------------------------------------------------------- */
.school-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.75rem;
}

.school-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .22s ease, box-shadow .22s ease;
}

.school-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.school-card .card-body { padding: 1.5rem; }
.school-card h3 { margin-bottom: .4rem; }
.school-card p { color: var(--muted); font-size: .95rem; margin-bottom: .5rem; }
.school-card .contact-line { font-size: .88rem; color: var(--muted); }

/* ----------------------------------------------------------------
  Footer
----------------------------------------------------------------- */
.site-footer {
    background: var(--maroon-deep);
    color: rgba(255, 255, 255, .78);
    padding: 4rem 0 0;
    margin-top: 3rem;
}

.footer-columns {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
}

@media (max-width: 980px) {
    .footer-columns { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
    .footer-columns { grid-template-columns: 1fr; }
}

.footer-col h3 {
    color: var(--white);
    font-size: 1rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 1.1rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--gold);
    display: inline-block;
}

.footer-col p { font-size: .92rem; }

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li { margin-bottom: .55rem; }

.footer-col a {
    color: rgba(255, 255, 255, .78);
    font-size: .92rem;
    transition: color .2s;
}

.footer-col a:hover { color: var(--gold-light); }

.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; }
.footer-contact .icon { color: var(--gold); }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .14);
    padding: 1.4rem 0;
    font-size: .85rem;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-bottom a { color: rgba(255, 255, 255, .78); }
.footer-bottom a:hover { color: var(--gold-light); }

/* ----------------------------------------------------------------
  Responsive helpers
----------------------------------------------------------------- */
@media (max-width: 768px) {
    .hero-slide { background-position: center; }
    .hero-slide::before {
        background:
            linear-gradient(90deg,
                rgba(25, 11, 11, .70) 0%,
                rgba(25, 11, 11, .45) 50%,
                transparent 100%
            ),
            linear-gradient(to top,
                rgba(25, 11, 11, .70) 0%,
                rgba(25, 11, 11, .15) 35%,
                transparent 55%
            );
    }
    .hero-content { max-width: 100%; padding: 0 .5rem; }
    .hero-actions .btn { width: 100%; }
    .footer-bottom .container { justify-content: center; text-align: center; }
}

/* Skip link */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--maroon);
    color: var(--white);
    padding: .6rem 1rem;
    z-index: 2000;
    border-radius: 0 0 8px 0;
}

.skip-link:focus {
    left: 0;
    color: var(--white);
}

/* ----------------------------------------------------------------
  Staff guide
---------------------------------------------------------------- */
/* ----------------------------------------------------------------
  Home page notification banner
----------------------------------------------------------------- */
.notice-bar {
    background: var(--maroon);
    color: var(--white);
    padding: .8rem 0;
    position: relative;
    z-index: 5;
}

.notice-bar-inner {
    display: flex;
    align-items: center;
    gap: .8rem;
    flex-wrap: wrap;
}

.notice-bar-icon { font-size: 1.3rem; line-height: 1; }

.notice-bar-text {
    flex: 1 1 auto;
    font-size: .95rem;
    line-height: 1.5;
}

.notice-bar-link {
    color: var(--white);
    font-weight: 600;
    text-decoration: underline;
    white-space: nowrap;
    font-size: .95rem;
}

.notice-bar-link:hover { color: var(--gold-light); }

.staff-guide-hero {
    background: var(--maroon-deep);
    color: var(--white);
    padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.staff-guide-hero .container { max-width: 960px; }

.staff-guide-hero h1 {
    color: var(--white);
    font-size: clamp(1.8rem, 3.6vw, 2.6rem);
    margin-bottom: .6rem;
}

.staff-guide-hero p {
    color: rgba(255,255,255,.9);
    font-size: 1.05rem;
    margin: 0;
}

.staff-guide-body { max-width: 960px; }

.staff-guide-welcome {
    margin: 2rem 0 1.25rem;
    padding: 1rem 1.25rem;
    background: var(--cream);
    border: 1px solid var(--line);
    border-left: 4px solid var(--gold);
    border-radius: var(--radius-sm);
}

.staff-guide-toc {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem 2rem;
    margin-bottom: 2.5rem;
}

.staff-guide-toc ol { margin: .5rem 0 0; }

.staff-guide-toc a { font-weight: 600; }

.staff-guide-section {
    margin-bottom: 3rem;
    padding-top: .5rem;
}

.staff-guide-section > h2 {
    font-size: 1.5rem;
    color: var(--maroon-deep);
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--gold);
    margin-bottom: .75rem;
}

.staff-guide-sub { color: var(--muted); }

.guide-steps {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem 2rem;
    margin: 1.25rem 0;
}

.guide-steps li { margin-bottom: .6rem; }

.guide-steps code, .staff-guide-body code {
    background: var(--cream-2);
    padding: .1rem .4rem;
    border-radius: 4px;
    font-size: .92em;
}

.guide-callout {
    padding: .9rem 1.25rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    margin: 1rem 0 1.5rem;
    background: var(--cream);
}

.guide-callout.warn { border-left: 4px solid var(--gold); }
.guide-callout.info { border-left: 4px solid var(--maroon); background: var(--cream-2); }

.guide-figure {
    margin: 1.5rem 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.guide-figure img {
    display: block;
    width: 100%;
    height: auto;
}

.guide-figure figcaption {
    padding: .65rem 1rem;
    background: var(--cream);
    color: var(--muted);
    font-size: .88rem;
    border-top: 1px solid var(--line);
}

.guide-list { padding-left: 1.4rem; }
.guide-list li { margin-bottom: .5rem; }
