/* ============================================================
   ST. MARY'S COLLEGE OF BALIUAG — DESIGN SYSTEM
   ------------------------------------------------------------
   Colors are inspired by the school seal: royal blue field,
   sky-blue rays, and gold stars. Change the design tokens
   below to re-theme the entire site.
   ============================================================ */

:root {
    /* Brand colors */
    --navy:        #16305e;   /* royal blue (seal field)   */
    --navy-dark:   #0d1f3f;   /* deep navy (footer, hover) */
    --blue:        #0d6ea8;   /* link / secondary blue     */
    --sky:         #35a7dd;   /* sky-blue accent           */
    --gold:        #d4a72c;   /* gold accent (stars)       */
    --gold-soft:   #f3e3b5;

    /* Neutrals */
    --ink:         #1f2a3a;   /* body text                 */
    --muted:       #5a6a7d;   /* secondary text            */
    --line:        #dde6ef;   /* borders                   */
    --bg:          #ffffff;
    --bg-alt:      #f2f6fb;   /* alternating sections      */
    --bg-navy-tint:#e8eef8;

    /* Type */
    --font-head: "Montserrat", "Trebuchet MS", Arial, sans-serif;
    --font-body: "Source Sans 3", "Segoe UI", Tahoma, sans-serif;

    /* Layout */
    --container: 1180px;
    --radius:    12px;
    --radius-sm: 8px;
    --shadow:    0 10px 30px rgba(13, 31, 63, .10);
    --shadow-sm: 0 3px 12px rgba(13, 31, 63, .08);
    --speed:     .25s;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5 {
    font-family: var(--font-head);
    color: var(--navy);
    line-height: 1.25;
    margin: 0 0 .5em;
}
p { margin: 0 0 1em; }
a { color: var(--blue); text-decoration: none; transition: color var(--speed); }
a:hover { color: var(--navy); }
ul, ol { padding-left: 1.4em; margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; }

.container {
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 20px;
}

.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--gold); color: var(--navy-dark);
    padding: 10px 18px; font-weight: 700; z-index: 300;
}
.skip-link:focus { left: 10px; top: 10px; }

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
    background: var(--navy-dark);
    color: #cfd9ea;
    font-size: .85rem;
}
.topbar-inner {
    display: flex; justify-content: space-between; align-items: center;
    gap: 16px; min-height: 38px; flex-wrap: wrap;
}
.topbar a { color: #cfd9ea; margin-right: 18px; }
.topbar a:last-child { margin-right: 0; }
.topbar a:hover { color: var(--gold); }
.topbar-links a { margin-right: 0; margin-left: 18px; }

/* ============================================================
   HEADER + BRAND
   ============================================================ */
.site-header {
    background: var(--bg);
    position: sticky; top: 0; z-index: 200;
    border-bottom: 1px solid var(--line);
    transition: box-shadow var(--speed);
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); }
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px; min-height: 78px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.brand-logo { width: 56px; height: 56px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; }
.brand-name {
    font-family: var(--font-head);
    font-weight: 800; font-size: 1.02rem; line-height: 1.2;
    color: var(--navy); letter-spacing: .01em;
}
.brand-motto {
    font-size: .72rem; color: var(--muted);
    letter-spacing: .08em; text-transform: uppercase;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav-toggle {
    display: none;
    background: none; border: 2px solid var(--navy);
    border-radius: var(--radius-sm);
    width: 46px; height: 42px;
    padding: 8px 9px;
    flex-direction: column; justify-content: space-between;
}
.nav-toggle-bar {
    display: block; height: 3px; width: 100%;
    background: var(--navy); border-radius: 2px;
    transition: transform var(--speed), opacity var(--speed);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.nav-list {
    list-style: none; display: flex; align-items: center;
    gap: 2px; margin: 0; padding: 0;
}
.nav-item { position: relative; }
.nav-link {
    display: flex; align-items: center; gap: 6px;
    padding: 26px 13px;
    background: none; border: 0;
    font-family: var(--font-head);
    font-size: .84rem; font-weight: 600;
    letter-spacing: .02em; text-transform: uppercase;
    color: var(--ink);
    border-bottom: 3px solid transparent;
    transition: color var(--speed), border-color var(--speed);
}
.nav-link:hover { color: var(--blue); }
.nav-item.is-active > .nav-link,
.nav-link.is-active {
    color: var(--navy);
    border-bottom-color: var(--gold);
}
.caret {
    width: 7px; height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform var(--speed);
}
.nav-item.open > .nav-link .caret { transform: rotate(225deg) translateY(-2px); }

.dropdown {
    list-style: none; margin: 0; padding: 8px 0;
    position: absolute; top: 100%; left: 0;
    min-width: 240px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-top: 3px solid var(--gold);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity var(--speed), transform var(--speed), visibility var(--speed);
    z-index: 210;
}
.nav-item.open > .dropdown {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown-link {
    display: block; padding: 9px 18px;
    font-size: .93rem; color: var(--ink);
    border-left: 3px solid transparent;
    transition: background var(--speed), border-color var(--speed), color var(--speed);
}
.dropdown-link:hover {
    background: var(--bg-alt); color: var(--navy);
    border-left-color: var(--sky);
}
.dropdown-link.is-active {
    background: var(--bg-navy-tint); color: var(--navy);
    border-left-color: var(--gold); font-weight: 600;
}

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero {
    position: relative; overflow: hidden;
    background: var(--navy-dark);
    min-height: clamp(420px, 55vw, 560px);
}
.hero-slide {
    position: absolute; inset: 0;
    opacity: 0; transition: opacity .9s ease;
    display: flex; align-items: center;
}
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-slide-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    transform: scale(1.04);
    transition: transform 6s ease;
}
.hero-slide.is-active .hero-slide-bg { transform: scale(1); }
.hero-slide::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(90deg,
        rgba(13, 31, 63, .88) 0%,
        rgba(13, 31, 63, .55) 55%,
        rgba(13, 31, 63, .18) 100%);
}
.hero-content {
    position: relative; z-index: 2;
    max-width: 620px;
    padding-block: 70px;
    color: #fff;
}
.hero-eyebrow {
    display: inline-block;
    background: rgba(212, 167, 44, .16);
    border: 1px solid rgba(212, 167, 44, .55);
    color: var(--gold-soft);
    font-family: var(--font-head);
    font-size: .75rem; font-weight: 600;
    letter-spacing: .14em; text-transform: uppercase;
    padding: 6px 14px; border-radius: 100px;
    margin-bottom: 18px;
}
.hero-title {
    color: #fff;
    font-size: clamp(1.9rem, 4.6vw, 3.1rem);
    font-weight: 800; margin-bottom: 14px;
}
.hero-text { font-size: 1.12rem; color: #dbe4f2; margin-bottom: 26px; }
.hero-dots {
    position: absolute; z-index: 3;
    bottom: 22px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 10px;
}
.hero-dot {
    width: 11px; height: 11px; border-radius: 50%;
    border: 2px solid #fff; background: transparent; padding: 0;
    transition: background var(--speed);
}
.hero-dot.is-active { background: var(--gold); border-color: var(--gold); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-block;
    font-family: var(--font-head);
    font-size: .85rem; font-weight: 700;
    letter-spacing: .04em; text-transform: uppercase;
    padding: 13px 28px;
    border-radius: 100px;
    border: 2px solid transparent;
    transition: background var(--speed), color var(--speed),
                border-color var(--speed), transform var(--speed);
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--navy-dark); }
.btn-gold:hover { background: #e5b93f; color: var(--navy-dark); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); color: #fff; }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-outline-light { border-color: #fff; color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--navy); }

/* ============================================================
   SECTIONS + HEADINGS
   ============================================================ */
.section { padding-block: 72px; }
.section-alt { background: var(--bg-alt); }
.section-navy {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    color: #dbe4f2;
}
.section-navy h2, .section-navy h3 { color: #fff; }

.section-heading { max-width: 720px; margin-bottom: 40px; }
.section-heading.is-center { margin-inline: auto; text-align: center; }
.section-heading h2 {
    font-size: clamp(1.5rem, 3vw, 2.05rem);
    font-weight: 800;
    position: relative;
    padding-bottom: 14px; margin-bottom: 10px;
}
.section-heading h2::after {
    content: "";
    position: absolute; bottom: 0; left: 0;
    width: 58px; height: 4px; border-radius: 2px;
    background: linear-gradient(90deg, var(--gold), var(--sky));
}
.section-heading.is-center h2::after { left: 50%; transform: translateX(-50%); }
.section-heading p { color: var(--muted); margin: 0; }
.section-navy .section-heading p { color: #b9c8de; }

/* ============================================================
   PAGE BANNER + BREADCRUMBS
   ============================================================ */
.page-banner {
    background:
        radial-gradient(1000px 300px at 85% -50%, rgba(53, 167, 221, .35), transparent),
        linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    color: #fff;
    padding: 46px 0 50px;
    border-bottom: 4px solid var(--gold);
}
.page-banner-title {
    color: #fff;
    font-size: clamp(1.7rem, 4vw, 2.5rem);
    font-weight: 800; margin: 8px 0 0;
}
.page-banner-sub { color: #c4d2e6; margin: 10px 0 0; max-width: 640px; }

.breadcrumbs ol {
    list-style: none; display: flex; flex-wrap: wrap;
    gap: 6px; margin: 0; padding: 0;
    font-size: .85rem;
}
.breadcrumbs li { color: var(--gold-soft); display: flex; gap: 6px; align-items: center; }
.breadcrumbs li + li::before { content: "›"; color: #7e93b8; }
.breadcrumbs a { color: #aebfda; }
.breadcrumbs a:hover { color: #fff; }

/* ============================================================
   CARDS
   ============================================================ */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform var(--speed), box-shadow var(--speed);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card-media { aspect-ratio: 16 / 10; overflow: hidden; }
.card-media img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .5s ease;
}
.card:hover .card-media img { transform: scale(1.06); }
.card-icon {
    font-size: 2.3rem;
    padding: 26px 24px 0;
}
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card-title { font-size: 1.12rem; font-weight: 700; margin-bottom: 8px; }
.card-desc { color: var(--muted); font-size: .97rem; flex: 1; }
.card-link {
    font-family: var(--font-head);
    font-size: .82rem; font-weight: 700;
    letter-spacing: .05em; text-transform: uppercase;
    color: var(--blue); margin-top: 6px;
}
.card-link:hover { color: var(--gold); }

/* ============================================================
   NEWS CARDS
   ============================================================ */
.news-card {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform var(--speed), box-shadow var(--speed);
}
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.news-card-media {
    position: relative; display: block;
    aspect-ratio: 16 / 10; overflow: hidden;
    background: var(--bg-navy-tint);
}
.news-card-media img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .5s ease;
}
.news-card:hover .news-card-media img { transform: scale(1.06); }
.news-card-placeholder {
    display: flex; align-items: center; justify-content: center;
    height: 100%;
    font-family: var(--font-head); font-weight: 800;
    font-size: 2rem; letter-spacing: .2em;
    color: var(--navy); opacity: .35;
}
.news-card-cat {
    position: absolute; top: 12px; left: 12px;
    background: var(--gold); color: var(--navy-dark);
    font-family: var(--font-head);
    font-size: .7rem; font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase;
    padding: 4px 12px; border-radius: 100px;
}
.news-card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.news-card-date { font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.news-card-title { font-size: 1.06rem; margin: 8px 0 10px; }
.news-card-title a { color: var(--navy); }
.news-card-title a:hover { color: var(--blue); }
.news-card-excerpt { color: var(--muted); font-size: .95rem; flex: 1; }
.news-card-more {
    font-family: var(--font-head);
    font-size: .8rem; font-weight: 700;
    letter-spacing: .05em; text-transform: uppercase;
}
.news-card-more:hover { color: var(--gold); }

/* ============================================================
   QUICK PANELS (home)
   ============================================================ */
.panel {
    border-radius: var(--radius);
    padding: 34px 30px;
    color: #fff;
    display: flex; flex-direction: column; gap: 6px;
    transition: transform var(--speed), box-shadow var(--speed);
}
.panel:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.panel h3 { color: #fff; font-size: 1.2rem; }
.panel p { color: rgba(255, 255, 255, .82); flex: 1; }
.panel a {
    color: var(--gold-soft);
    font-family: var(--font-head);
    font-size: .82rem; font-weight: 700;
    letter-spacing: .05em; text-transform: uppercase;
}
.panel a:hover { color: #fff; }
.panel-1 { background: linear-gradient(150deg, #0d6ea8, #0a4d79); }
.panel-2 { background: linear-gradient(150deg, #16305e, #0d1f3f); }
.panel-3 { background: linear-gradient(150deg, #2591c4, #14618b); }

/* ============================================================
   CONTENT / PROSE
   ============================================================ */
.prose { max-width: 820px; }
.prose-wide { max-width: 100%; }
.prose h3 { margin-top: 1.6em; }
.lead { font-size: 1.18rem; color: var(--muted); }

.check-list { list-style: none; padding: 0; }
.check-list li {
    padding: 9px 0 9px 34px;
    position: relative;
    border-bottom: 1px dashed var(--line);
}
.check-list li:last-child { border-bottom: 0; }
.check-list li::before {
    content: "✓";
    position: absolute; left: 4px; top: 8px;
    color: #fff; background: var(--sky);
    width: 21px; height: 21px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .75rem; font-weight: 700;
}

.num-list { list-style: none; padding: 0; counter-reset: step; }
.num-list li {
    counter-increment: step;
    position: relative;
    padding: 12px 0 12px 52px;
    border-bottom: 1px dashed var(--line);
}
.num-list li:last-child { border-bottom: 0; }
.num-list li::before {
    content: counter(step);
    position: absolute; left: 0; top: 10px;
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--bg-navy-tint); color: var(--navy);
    font-family: var(--font-head); font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}

/* ============================================================
   INFO / QUOTE BLOCKS
   ============================================================ */
.quote-block {
    background: var(--bg-navy-tint);
    border-left: 5px solid var(--gold);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 30px 34px;
    font-size: 1.15rem; line-height: 1.7;
    color: var(--navy);
    margin: 0 0 1.5em;
}
.note-block {
    background: var(--gold-soft);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    color: #5d4a12; font-size: .95rem;
}

/* ============================================================
   VALUE CARDS (Faith/Excellence/Service)
   ============================================================ */
.value-card {
    background: var(--bg);
    border-top: 5px solid var(--gold);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 30px 28px;
    text-align: center;
    transition: transform var(--speed), box-shadow var(--speed);
}
.value-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.value-card h3 { letter-spacing: .1em; font-size: 1.05rem; }
.value-card p { color: var(--muted); font-size: .96rem; margin: 0; }

/* Stat / fact chips */
.fact-card {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 24px;
    text-align: center;
}
.fact-number {
    font-family: var(--font-head);
    font-size: 2rem; font-weight: 800; color: var(--navy);
    display: block;
}
.fact-label { color: var(--muted); font-size: .92rem; }

/* ============================================================
   TIMELINE (History)
   ============================================================ */
.timeline { position: relative; max-width: 860px; margin-inline: auto; }
.timeline::before {
    content: "";
    position: absolute; left: 19px; top: 6px; bottom: 6px;
    width: 3px; border-radius: 2px;
    background: linear-gradient(180deg, var(--gold), var(--sky), var(--navy));
}
.timeline-item { position: relative; padding: 0 0 34px 62px; }
.timeline-item::before {
    content: "";
    position: absolute; left: 11px; top: 6px;
    width: 19px; height: 19px; border-radius: 50%;
    background: #fff; border: 4px solid var(--gold);
    box-shadow: 0 0 0 4px rgba(212, 167, 44, .18);
}
.timeline-year {
    font-family: var(--font-head);
    font-weight: 800; font-size: 1.08rem;
    color: var(--navy);
    display: inline-block;
    background: var(--bg-navy-tint);
    padding: 3px 14px; border-radius: 100px;
    margin-bottom: 8px;
}
.timeline-text { color: var(--ink); margin: 0; }

/* ============================================================
   ACCORDION
   ============================================================ */
.accordion { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.accordion-item + .accordion-item { border-top: 1px solid var(--line); }
.accordion-header {
    width: 100%;
    display: flex; justify-content: space-between; align-items: center; gap: 14px;
    background: var(--bg);
    border: 0;
    padding: 18px 22px;
    font-family: var(--font-head);
    font-size: 1rem; font-weight: 700; color: var(--navy);
    text-align: left;
    transition: background var(--speed);
}
.accordion-header:hover { background: var(--bg-alt); }
.accordion-item.open .accordion-header { background: var(--bg-navy-tint); }
.accordion-chevron {
    flex-shrink: 0;
    width: 10px; height: 10px;
    border-right: 2px solid var(--navy);
    border-bottom: 2px solid var(--navy);
    transform: rotate(45deg);
    transition: transform var(--speed);
}
.accordion-item.open .accordion-chevron { transform: rotate(225deg); }
.accordion-body { display: none; padding: 6px 22px 22px; }
.accordion-item.open .accordion-body { display: block; }
.accordion-media {
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 16px;
}

/* ============================================================
   TABS
   ============================================================ */
.tabs-nav {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-bottom: 26px; padding: 0; list-style: none;
}
.tab-btn {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 100px;
    padding: 10px 22px;
    font-family: var(--font-head);
    font-size: .84rem; font-weight: 600; color: var(--ink);
    transition: background var(--speed), color var(--speed);
}
.tab-btn:hover { background: var(--bg-navy-tint); }
.tab-btn.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fadeIn .35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ============================================================
   TABLES
   ============================================================ */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.data-table { width: 100%; border-collapse: collapse; font-size: .97rem; min-width: 480px; }
.data-table th {
    background: var(--navy); color: #fff;
    font-family: var(--font-head); font-size: .82rem;
    letter-spacing: .05em; text-transform: uppercase;
    padding: 13px 18px; text-align: left;
}
.data-table td { padding: 11px 18px; border-top: 1px solid var(--line); }
.data-table tbody tr:nth-child(even) { background: var(--bg-alt); }
.data-table tbody tr:hover { background: var(--bg-navy-tint); }

/* ============================================================
   GALLERY + FILTERS + LIGHTBOX
   ============================================================ */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.filter-btn {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 100px;
    padding: 9px 20px;
    font-family: var(--font-head);
    font-size: .83rem; font-weight: 600; color: var(--ink);
    transition: all var(--speed);
}
.filter-btn:hover { border-color: var(--sky); color: var(--blue); }
.filter-btn.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}
.gallery-item { margin: 0; }
.gallery-item.is-hidden { display: none; }
.gallery-zoom {
    display: block; width: 100%;
    padding: 0; border: 0; background: none;
    border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.gallery-zoom img {
    width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
    transition: transform .45s ease;
}
.gallery-zoom:hover img { transform: scale(1.07); }
.gallery-item figcaption {
    font-size: .88rem; color: var(--muted);
    padding: 8px 4px 0;
}

.lightbox {
    position: fixed; inset: 0; z-index: 400;
    background: rgba(9, 18, 36, .93);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 40px 20px;
}
.lightbox[hidden] { display: none; }
.lightbox-img {
    max-width: min(1100px, 92vw); max-height: 78vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
.lightbox-caption { color: #cfd9ea; margin-top: 16px; }
.lightbox-close {
    position: absolute; top: 18px; right: 24px;
    background: none; border: 0;
    color: #fff; font-size: 2.4rem; line-height: 1;
}
.lightbox-close:hover { color: var(--gold); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-info { display: flex; flex-direction: column; gap: 22px; }
.contact-info-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-info-icon {
    flex-shrink: 0;
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--bg-navy-tint);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
}
.contact-info-item h3 { font-size: .95rem; margin-bottom: 2px; }
.contact-info-item p { margin: 0; color: var(--muted); }

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field label {
    display: block;
    font-family: var(--font-head);
    font-size: .8rem; font-weight: 700;
    letter-spacing: .04em; text-transform: uppercase;
    color: var(--navy); margin-bottom: 6px;
}
.form-field input, .form-field textarea {
    width: 100%;
    font-family: var(--font-body); font-size: 1rem; color: var(--ink);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    transition: border-color var(--speed), box-shadow var(--speed);
}
.form-field input:focus, .form-field textarea:focus {
    outline: none;
    border-color: var(--sky);
    box-shadow: 0 0 0 3px rgba(53, 167, 221, .18);
}
.map-frame {
    border: 0; width: 100%; height: 420px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

/* ============================================================
   DOWNLOADS
   ============================================================ */
.download-card {
    display: flex; gap: 18px; align-items: center;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 24px;
    transition: transform var(--speed), box-shadow var(--speed);
}
.download-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.download-icon {
    flex-shrink: 0;
    width: 52px; height: 52px; border-radius: var(--radius-sm);
    background: var(--bg-navy-tint);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
}
.download-card h3 { font-size: 1rem; margin-bottom: 3px; }
.download-card p { margin: 0 0 6px; font-size: .9rem; color: var(--muted); }

/* ============================================================
   HYMN
   ============================================================ */
.hymn-sheet {
    max-width: 660px; margin-inline: auto;
    background: var(--bg);
    border: 1px solid var(--line);
    border-top: 5px solid var(--gold);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 48px clamp(24px, 6vw, 64px);
    text-align: center;
}
.hymn-verse {
    white-space: pre-line;
    font-size: 1.1rem; line-height: 1.9;
    color: var(--ink);
    margin-bottom: 1.6em;
}
.hymn-verse:last-child { margin-bottom: 0; }

/* ============================================================
   SEAL PAGE
   ============================================================ */
.seal-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 28px; align-items: center;
    padding: 26px 0;
    border-bottom: 1px dashed var(--line);
}
.seal-row:last-child { border-bottom: 0; }
.seal-row img {
    width: 130px; height: 130px; object-fit: contain;
    margin-inline: auto;
    background: var(--bg-alt);
    border-radius: 50%;
    padding: 14px;
}
.seal-row h3 { margin-bottom: 6px; }
.seal-row p { margin: 0; color: var(--muted); }

/* ============================================================
   CTA STRIP
   ============================================================ */
.cta-strip {
    background:
        radial-gradient(800px 200px at 15% 120%, rgba(53, 167, 221, .35), transparent),
        linear-gradient(120deg, var(--navy), var(--navy-dark));
    border-radius: var(--radius);
    color: #fff;
    padding: 46px clamp(24px, 5vw, 56px);
    display: flex; align-items: center; justify-content: space-between;
    gap: 26px; flex-wrap: wrap;
}
.cta-strip h2 { color: #fff; margin: 0 0 6px; font-size: 1.5rem; }
.cta-strip p { color: #c4d2e6; margin: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--navy-dark);
    color: #b9c8de;
    margin-top: 80px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.1fr 1fr;
    gap: 40px;
    padding-block: 56px 46px;
}
.footer-logo-row { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.footer-name {
    font-family: var(--font-head);
    font-weight: 700; color: #fff; margin: 0;
    line-height: 1.3;
}
.footer-motto {
    font-size: .74rem; letter-spacing: .08em; text-transform: uppercase;
    color: var(--gold); margin: 2px 0 0;
}
.footer-desc { font-size: .93rem; }
.footer-social {
    display: inline-block;
    color: var(--gold-soft);
    font-family: var(--font-head);
    font-size: .82rem; font-weight: 700;
    letter-spacing: .04em; text-transform: uppercase;
}
.footer-social:hover { color: #fff; }
.footer-heading {
    color: #fff; font-size: .9rem;
    letter-spacing: .08em; text-transform: uppercase;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(212, 167, 44, .4);
    display: inline-block;
}
.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; }
.footer-links li, .footer-contact li { margin-bottom: 9px; font-size: .94rem; }
.footer-links a, .footer-contact a { color: #b9c8de; }
.footer-links a:hover, .footer-contact a:hover { color: var(--gold); }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding-block: 18px;
    font-size: .85rem;
}
.footer-bottom p { margin: 0; }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
    position: fixed; right: 22px; bottom: 22px; z-index: 250;
    width: 46px; height: 46px; border-radius: 50%;
    border: 0;
    background: var(--gold); color: var(--navy-dark);
    font-size: 1.2rem; font-weight: 700;
    box-shadow: var(--shadow-sm);
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: all var(--speed);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--navy); color: #fff; }

/* ============================================================
   SCROLL REVEAL
   ------------------------------------------------------------
   Only hidden when the .js class is present (set by a tiny
   inline script), so the content stays readable if JavaScript
   is unavailable or fails to load.
   ============================================================ */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .js .reveal, .js .reveal.is-visible { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .nav-link { padding: 26px 9px; font-size: .78rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
    body { font-size: 1rem; }
    .section { padding-block: 52px; }

    /* --- mobile nav --- */
    .header-inner { flex-wrap: nowrap; }
    .brand { flex: 1; min-width: 0; }
    .brand-name { font-size: .92rem; }
    .nav-toggle { display: flex; flex-shrink: 0; }
    .site-nav {
        position: fixed;
        top: 0; right: 0; bottom: 0;
        width: min(340px, 86vw);
        background: var(--bg);
        box-shadow: -18px 0 44px rgba(13, 31, 63, .2);
        transform: translateX(105%);
        transition: transform .32s ease;
        overflow-y: auto;
        z-index: 300;
        padding: 84px 0 40px;
    }
    .site-nav.is-open { transform: translateX(0); }
    body.nav-open { overflow: hidden; }
    body.nav-open .nav-toggle { position: relative; z-index: 320; }

    .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
    .nav-item { border-bottom: 1px solid var(--line); }
    .nav-link {
        width: 100%;
        justify-content: space-between;
        padding: 15px 24px;
        border-bottom: 0; font-size: .9rem;
    }
    .nav-item.is-active > .nav-link { border-left: 4px solid var(--gold); background: var(--bg-navy-tint); }
    .dropdown {
        position: static;
        min-width: 0;
        opacity: 1; visibility: hidden; transform: none;
        display: none;
        border: 0; border-top: 0; box-shadow: none;
        background: var(--bg-alt);
        border-radius: 0;
        padding: 4px 0;
    }
    .nav-item.open > .dropdown { display: block; visibility: visible; }
    .dropdown-link { padding: 11px 24px 11px 38px; }

    .hero-content { padding-block: 56px; }
    .form-row { grid-template-columns: 1fr; }
    .seal-row { grid-template-columns: 1fr; text-align: center; }
    .seal-row h3, .seal-row p { text-align: center; }
    .cta-strip { flex-direction: column; text-align: center; }
}

@media (max-width: 560px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .brand-name { font-size: .88rem; }
    .brand-motto { display: none; }
    .topbar-links { display: none; }
    .hero { min-height: 480px; }
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
}
