:root {
    --navy: #0d1b2a;
    --navy-soft: #142b42;
    --blue: #1e3a8a;
    --sky: #87cefa;
    --gold: #d4af37;
    --gold-deep: #b78d22;
    --parchment: #f7f3ea;
    --cream: #fffdf8;
    --ink: #182338;
    --muted: #6f7684;
    --line: rgba(13, 27, 42, .12);
    --shadow: 0 24px 60px rgba(25, 37, 56, .10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 5% 10%, rgba(212,175,55,.07), transparent 25%),
        linear-gradient(180deg, #fffefa 0%, #f7f4ed 100%);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.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;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(13,27,42,.96);
    border-bottom: 1px solid rgba(212,175,55,.18);
    backdrop-filter: blur(18px);
}

.site-header-inner {
    width: min(92%, 1480px);
    min-height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    color: white;
    text-decoration: none;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(212,175,55,.56);
    border-radius: 50%;
    background: rgba(212,175,55,.10);
    color: var(--gold);
    font-family: Georgia, serif;
    font-size: 1.15rem;
    font-weight: 700;
}

.brand strong {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.14rem;
    letter-spacing: .02em;
}

.brand small {
    display: block;
    margin-top: -2px;
    color: #cdd6df;
    font-size: .68rem;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.main-nav a {
    padding: 9px 11px;
    border-radius: 10px;
    color: #e9eef5;
    text-decoration: none;
    font-size: .88rem;
    font-weight: 650;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a.active {
    color: var(--gold);
    background: rgba(255,255,255,.055);
}

.main-nav .nav-private {
    margin-left: 10px;
    border: 1px solid rgba(212,175,55,.30);
    color: var(--gold);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    place-content: center;
    gap: 5px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    background: transparent;
}

.nav-toggle > span:not(.sr-only) {
    width: 22px;
    height: 2px;
    display: block;
    background: white;
    border-radius: 999px;
}

/* Shared */
main { min-height: 70vh; }

.eyebrow {
    margin: 0 0 10px;
    color: var(--gold-deep);
    font-size: .74rem;
    font-weight: 850;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.eyebrow.light { color: #f7d77c; }

.btn {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 13px;
    text-decoration: none;
    font-weight: 800;
    transition: box-shadow .18s ease, border-color .18s ease, background-color .18s ease;
}

.btn-dark {
    background: var(--navy);
    color: white;
    box-shadow: 0 12px 28px rgba(13,27,42,.18);
}

.btn-dark:hover,
.btn-dark:focus-visible {
    box-shadow: 0 0 0 4px rgba(212,175,55,.10), 0 14px 34px rgba(13,27,42,.24);
}

.btn-light {
    border-color: rgba(183,141,34,.35);
    background: rgba(255,253,248,.86);
    color: var(--navy);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold), #efc95a);
    color: var(--navy);
    box-shadow: 0 12px 28px rgba(212,175,55,.20);
}

/* Hero */
.heritage-hero {
    position: relative;
    width: min(92%, 1480px);
    min-height: 720px;
    margin: 32px auto 0;
    display: grid;
    grid-template-columns: .88fr 1.12fr;
    overflow: hidden;
    border: 1px solid rgba(212,175,55,.18);
    border-radius: 34px;
    background:
        radial-gradient(circle at 5% 12%, rgba(212,175,55,.11), transparent 30%),
        linear-gradient(125deg, #f8f2e4, #fffdf9 48%, #eef6fb);
    box-shadow: var(--shadow);
}

.heritage-hero::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 48%;
    opacity: .18;
    background-image:
        radial-gradient(circle at 15px 15px, rgba(183,141,34,.35) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

.hero-copy {
    position: relative;
    z-index: 2;
    align-self: center;
    padding: clamp(42px, 6vw, 90px);
}

.hero-copy h1 {
    margin: 0;
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(4rem, 7.3vw, 7.7rem);
    font-weight: 500;
    letter-spacing: -.055em;
    line-height: .84;
}

.hero-copy h1 span {
    display: block;
    color: var(--gold-deep);
}

.hero-lead {
    max-width: 620px;
    margin: 30px 0 0;
    color: #4c5666;
    font-size: 1.14rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.hero-values {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 32px;
    color: #5c6470;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.hero-values span {
    position: relative;
    padding-left: 15px;
}

.hero-values span::before {
    content: "✦";
    position: absolute;
    left: 0;
    color: var(--gold);
    font-size: .62rem;
}

.hero-art {
    position: relative;
    min-height: 720px;
    overflow: hidden;
}

.hero-art::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, #fffdf9 0%, transparent 18%),
        linear-gradient(180deg, transparent 65%, rgba(13,27,42,.10));
    pointer-events: none;
}

.hero-art-frame,
.hero-art-frame img {
    width: 100%;
    height: 100%;
}

.hero-art-frame {
    position: absolute;
    inset: 0;
}

.hero-art-frame img {
    object-fit: cover;
    object-position: center 25%;
    filter: saturate(.88) contrast(1.03);
}

.hero-seal {
    position: absolute;
    z-index: 3;
    right: 30px;
    bottom: 28px;
    width: 116px;
    height: 116px;
    display: grid;
    place-content: center;
    text-align: center;
    border: 1px solid rgba(255,255,255,.56);
    border-radius: 50%;
    background: rgba(13,27,42,.76);
    color: white;
    backdrop-filter: blur(12px);
    box-shadow: 0 18px 38px rgba(13,27,42,.22);
}

.hero-seal::before {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(212,175,55,.72);
    border-radius: 50%;
}

.hero-seal strong,
.hero-seal small {
    position: relative;
    z-index: 1;
}

.hero-seal strong {
    color: var(--gold);
    font-family: Georgia, serif;
    font-size: 1.5rem;
}

.hero-seal small {
    font-size: .65rem;
    letter-spacing: .15em;
    text-transform: uppercase;
}

/* Home content */
.home-intro {
    width: min(86%, 900px);
    margin: 100px auto 42px;
    text-align: center;
}

.home-intro h2,
.page-hero h1,
.story-panel h2,
.support-banner h2,
.heritage-story h2,
.login-panel h1 {
    margin: 0;
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
    letter-spacing: -.035em;
}

.home-intro h2 {
    font-size: clamp(2.5rem, 4vw, 4.4rem);
}

.home-intro > p:last-child {
    max-width: 740px;
    margin: 20px auto 0;
    color: var(--muted);
    font-size: 1.08rem;
}

.feature-grid {
    width: min(88%, 1320px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.heritage-card {
    position: relative;
    min-height: 330px;
    display: flex;
    flex-direction: column;
    padding: 28px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255,253,248,.92);
    color: var(--ink);
    text-decoration: none;
    box-shadow: 0 18px 46px rgba(25,37,56,.07);
    transition: box-shadow .18s ease, border-color .18s ease;
}

.heritage-card:hover,
.heritage-card:focus-visible {
    border-color: rgba(183,141,34,.28);
    box-shadow: 0 24px 58px rgba(25,37,56,.11);
}

.card-symbol {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    margin-bottom: 24px;
    border: 1px solid rgba(183,141,34,.22);
    border-radius: 14px;
    background: rgba(212,175,55,.08);
    color: var(--gold-deep);
    font-family: Georgia, serif;
    font-size: 1.25rem;
}

.heritage-card h3 {
    margin: 0;
    color: var(--navy);
    font-family: Georgia, serif;
    font-size: 1.55rem;
    font-weight: 500;
}

.heritage-card p {
    margin: 12px 0 0;
    color: var(--muted);
}

.card-link {
    margin-top: auto;
    padding-top: 26px;
    color: var(--gold-deep);
    font-weight: 800;
}

.image-card { padding-top: 165px; }

.card-image {
    position: absolute;
    inset: 0 0 auto;
    height: 140px;
    overflow: hidden;
}

.card-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(13,27,42,.18));
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.crop-one img,
.crop-1 img { object-position: center 30%; }

.crop-two img,
.crop-2 img { object-position: 55% 58%; }

.crop-3 img { object-position: 50% 80%; }

.story-panels {
    width: min(88%, 1320px);
    margin: 28px auto 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.story-panel {
    position: relative;
    min-height: 370px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border-radius: 26px;
    color: white;
    box-shadow: var(--shadow);
}

.story-panel > div {
    position: relative;
    z-index: 2;
    max-width: 620px;
    padding: 42px;
}

.story-panel h2 {
    color: white;
    font-size: clamp(2rem, 3vw, 3.3rem);
}

.story-panel p { color: #d9e2ea; }

.story-panel a {
    display: inline-block;
    margin-top: 10px;
    color: #f7d77c;
    font-weight: 850;
    text-decoration: none;
}

.heritage-panel {
    background:
        linear-gradient(135deg, rgba(13,27,42,.93), rgba(30,58,138,.76)),
        url("../img/san-nicodemo-hero.png") center 74% / cover;
}

.community-panel {
    background:
        radial-gradient(circle at 78% 35%, rgba(212,175,55,.32), transparent 20%),
        linear-gradient(135deg, #151c29, #3a2c23);
}

.support-banner {
    width: min(88%, 1320px);
    margin: 28px auto 110px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 28px;
    padding: 34px;
    border: 1px solid rgba(212,175,55,.25);
    border-radius: 26px;
    background:
        radial-gradient(circle at 5% 20%, rgba(212,175,55,.16), transparent 28%),
        var(--navy);
    color: white;
    box-shadow: var(--shadow);
}

.support-banner h2 {
    color: white;
    font-size: 2.1rem;
}

.support-banner p {
    margin: 4px 0 0;
    color: #cbd6df;
}

.support-mark {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(212,175,55,.42);
    border-radius: 50%;
    color: var(--gold);
    font-size: 2.2rem;
}

/* General pages */
.page-hero {
    width: min(88%, 1320px);
    margin: 44px auto 34px;
    padding: clamp(42px, 6vw, 84px);
    border: 1px solid rgba(212,175,55,.16);
    border-radius: 30px;
    background:
        radial-gradient(circle at 8% 15%, rgba(212,175,55,.11), transparent 28%),
        linear-gradient(125deg, var(--parchment), #fff);
}

.page-hero.dark {
    background:
        radial-gradient(circle at 80% 20%, rgba(212,175,55,.15), transparent 25%),
        var(--navy);
    color: white;
}

.page-hero h1 {
    max-width: 950px;
    font-size: clamp(3rem, 6vw, 6rem);
    line-height: .98;
}

.page-hero.dark h1 { color: white; }

.page-hero > p:last-child {
    max-width: 760px;
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 1.08rem;
}

.page-hero.dark > p:last-child { color: #d4dde6; }

.editorial-layout,
.heritage-story,
.community-layout,
.contact-grid,
.video-grid,
.events-list,
.gallery-grid {
    width: min(88%, 1320px);
    margin-left: auto;
    margin-right: auto;
}

.editorial-layout {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 46px;
    margin-top: 34px;
    margin-bottom: 100px;
}

.editorial-main {
    padding: 44px;
    border-radius: 26px;
    background: white;
    box-shadow: 0 18px 46px rgba(25,37,56,.07);
}

.editorial-main h2,
.message-wall h2,
.submit-message-panel h2,
.contact-grid h2 {
    margin-top: 0;
    color: var(--navy);
    font-family: Georgia, serif;
    font-weight: 500;
}

.editorial-main > p {
    color: #4f5968;
    font-size: 1.05rem;
    line-height: 1.9;
}

.historical-note {
    margin-top: 34px;
    padding: 22px;
    border-left: 4px solid var(--gold);
    background: var(--parchment);
}

.historical-note p { margin-bottom: 0; }

.editorial-aside {
    margin: 0;
    padding: 18px;
    border-radius: 26px;
    background: white;
    box-shadow: 0 18px 46px rgba(25,37,56,.07);
}

.editorial-aside img {
    width: 100%;
    height: 570px;
    object-fit: cover;
    object-position: center 25%;
    border-radius: 18px;
}

.editorial-aside p {
    color: var(--muted);
    font-size: .86rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 100px;
}

.gallery-item {
    margin: 0;
    overflow: hidden;
    border-radius: 22px;
    background: white;
    box-shadow: 0 16px 40px rgba(25,37,56,.07);
}

.gallery-image {
    height: 320px;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item figcaption { padding: 20px; }

.gallery-item figcaption span,
.gallery-item figcaption small { display: block; }

.gallery-item figcaption span {
    color: var(--navy);
    font-family: Georgia, serif;
    font-size: 1.2rem;
}

.gallery-item figcaption small {
    margin-top: 5px;
    color: var(--muted);
}

.video-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 100px;
}

.video-placeholder {
    display: grid;
    grid-template-columns: 340px 1fr;
    overflow: hidden;
    border-radius: 24px;
    background: white;
    box-shadow: 0 16px 40px rgba(25,37,56,.07);
}

.video-screen {
    min-height: 230px;
    display: grid;
    place-items: center;
    background:
        linear-gradient(rgba(13,27,42,.55), rgba(13,27,42,.55)),
        url("../img/san-nicodemo-hero.png") center 40% / cover;
}

.video-screen span {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    padding-left: 5px;
    border: 1px solid rgba(255,255,255,.52);
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    color: white;
    font-size: 2rem;
}

.video-placeholder > div:last-child { padding: 36px; }

.video-placeholder h2 {
    margin: 8px 0;
    color: var(--navy);
    font-family: Georgia, serif;
}

.mini-label {
    color: var(--gold-deep);
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.events-list {
    display: grid;
    gap: 18px;
    margin-bottom: 100px;
}

.event-card {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 30px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: white;
    box-shadow: 0 14px 34px rgba(25,37,56,.06);
}

.event-card time {
    display: grid;
    place-content: center;
    min-height: 130px;
    border: 1px solid rgba(183,141,34,.22);
    border-radius: 18px;
    background: var(--parchment);
    text-align: center;
}

.event-card time strong {
    color: var(--navy);
    font-family: Georgia, serif;
    font-size: 2.7rem;
    line-height: 1;
}

.event-card time span {
    margin-top: 6px;
    color: var(--gold-deep);
    font-size: .74rem;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.event-card h2 {
    margin: 0;
    color: var(--navy);
    font-family: Georgia, serif;
    font-size: 1.8rem;
}

.event-location {
    color: var(--gold-deep);
    font-weight: 750;
}

.empty-public-state {
    padding: 32px;
    border: 1px dashed rgba(13,27,42,.18);
    border-radius: 18px;
    background: rgba(255,255,255,.6);
}

.heritage-story {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 46px;
    align-items: center;
    margin-top: 42px;
    margin-bottom: 100px;
}

.heritage-story-image {
    overflow: hidden;
    border-radius: 26px;
    box-shadow: var(--shadow);
}

.heritage-story-image img {
    width: 100%;
    height: 660px;
    object-fit: cover;
    object-position: center 30%;
}

.heritage-story h2 { font-size: clamp(2.3rem, 4vw, 4.4rem); }

.heritage-story p {
    color: var(--muted);
    font-size: 1.04rem;
}

.heritage-list {
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
}

.heritage-list li {
    position: relative;
    padding: 12px 0 12px 28px;
    border-bottom: 1px solid var(--line);
}

.heritage-list li::before {
    content: "✦";
    position: absolute;
    left: 0;
    color: var(--gold);
}

.community-layout {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 26px;
    margin-bottom: 100px;
}

.message-wall,
.submit-message-panel {
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: white;
    box-shadow: 0 16px 40px rgba(25,37,56,.06);
}

.public-message {
    position: relative;
    margin-top: 18px;
    padding: 28px;
    border: 1px solid rgba(183,141,34,.12);
    border-radius: 18px;
    background: var(--parchment);
}

.quote-mark {
    position: absolute;
    right: 20px;
    top: 6px;
    color: rgba(183,141,34,.18);
    font-family: Georgia, serif;
    font-size: 4.5rem;
}

.public-message p {
    position: relative;
    z-index: 1;
    color: #4d5663;
}

.public-message footer {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    color: var(--muted);
    font-size: .86rem;
}

.heritage-form {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.heritage-form label {
    display: grid;
    gap: 7px;
    color: var(--navy);
    font-weight: 750;
}

.heritage-form input,
.heritage-form textarea {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid rgba(13,27,42,.16);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    outline: none;
}

.heritage-form input:focus,
.heritage-form textarea:focus {
    border-color: rgba(183,141,34,.62);
    box-shadow: 0 0 0 4px rgba(212,175,55,.08);
}

.public-alert {
    margin: 18px 0;
    padding: 14px 16px;
    border-radius: 12px;
    background: #fff5d9;
    color: #6c5310;
}

.public-alert.success {
    background: #eaf8ef;
    color: #23623b;
}

.public-alert.error {
    background: #fdeaea;
    color: #8a2b2b;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 100px;
}

.contact-grid article {
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: white;
    box-shadow: 0 14px 34px rgba(25,37,56,.06);
}

/* Login */
.login-page {
    width: min(90%, 1120px);
    min-height: 690px;
    margin: 60px auto 100px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    border: 1px solid rgba(212,175,55,.16);
    border-radius: 30px;
    background: white;
    box-shadow: var(--shadow);
}

.login-visual {
    position: relative;
    min-height: 690px;
    overflow: hidden;
    background: var(--navy);
}

.login-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    opacity: .78;
}

.login-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(13,27,42,.88));
}

.login-visual > div {
    position: absolute;
    z-index: 2;
    left: 36px;
    bottom: 34px;
    color: white;
}

.login-visual span,
.login-visual strong { display: block; }

.login-visual span {
    color: var(--gold);
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.login-visual strong {
    margin-top: 4px;
    font-family: Georgia, serif;
    font-size: 2rem;
}

.login-panel {
    align-self: center;
    padding: clamp(34px, 6vw, 70px);
}

.login-panel h1 { font-size: 3.7rem; }

.login-panel > p:not(.eyebrow) { color: var(--muted); }

.back-home-link {
    display: inline-block;
    margin-top: 22px;
    color: var(--gold-deep);
    font-weight: 750;
    text-decoration: none;
}

/* Footer */
.site-footer {
    margin-top: 50px;
    border-top: 3px solid;
    border-image: linear-gradient(90deg, var(--gold), #4e7be7, #39c7d5) 1;
    background: var(--navy);
    color: white;
}

.footer-inner {
    width: min(88%, 1320px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr .9fr;
    gap: 50px;
    padding: 54px 0 42px;
}

.footer-brand {
    color: white;
    font-family: Georgia, serif;
    font-size: 1.65rem;
    text-decoration: none;
}

.footer-inner p,
.footer-quote,
.footer-links a { color: #b9c5d1; }

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--gold); }

.footer-quote {
    font-family: Georgia, serif;
    font-style: italic;
}

.footer-quote span { display: block; }

.footer-bottom {
    width: min(88%, 1320px);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 0 28px;
    border-top: 1px solid rgba(255,255,255,.10);
    color: #8697a8;
    font-size: .78rem;
}

/* Responsive */
@media (max-width: 1100px) {
    .nav-toggle { display: grid; }

    .main-nav {
        position: fixed;
        top: 76px;
        left: 4%;
        right: 4%;
        display: none;
        padding: 16px;
        border: 1px solid rgba(212,175,55,.18);
        border-radius: 18px;
        background: rgba(13,27,42,.98);
        box-shadow: var(--shadow);
    }

    .main-nav.open { display: grid; }
    .main-nav .nav-private { margin-left: 0; margin-top: 4px; }

    .heritage-hero { grid-template-columns: 1fr; }
    .hero-art { min-height: 560px; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }

    .editorial-layout,
    .heritage-story,
    .community-layout {
        grid-template-columns: 1fr;
    }

    .gallery-grid,
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    .heritage-hero,
    .page-hero {
        width: calc(100% - 24px);
        border-radius: 22px;
    }

    .hero-copy { padding: 42px 24px; }

    .hero-copy h1 {
        font-size: clamp(3.5rem, 19vw, 5.3rem);
    }

    .hero-art { min-height: 460px; }

    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }

    .feature-grid,
    .story-panels,
    .gallery-grid,
    .contact-grid,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .support-banner {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .video-placeholder,
    .event-card,
    .login-page {
        grid-template-columns: 1fr;
    }

    .login-visual { min-height: 420px; }
    .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    * {
        transition-duration: .001ms !important;
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* ================================================================
   FOOTER DEVELOPER LINK
================================================================ */

.footer-developer a,
.footer-developer a:link,
.footer-developer a:visited {
    text-decoration: none;
}

.footer-developer a:hover,
.footer-developer a:focus {
    text-decoration: none;
}

/* ================================================================
   YOUTUBE VIDEO EMBED
================================================================ */

.video-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0d1b2a;
}

.video-embed iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-information {
    padding: 28px;
}

.video-credit {
    margin-top: 18px;
    font-size: 0.9rem;
}

.video-credit strong {
    font-weight: 700;
}

/* ================================================================
   CHURCH PHOTO GALLERY
================================================================ */

.church-gallery {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(260px, 340px)
    );
    gap: 28px;
    align-items: start;
    justify-content: start;
    margin-top: 30px;
}


/* Individual photograph */

.church-gallery .heritage-card {
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
}


/* Photograph area */

.church-gallery .heritage-card-image {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}


/* Photograph */

.church-gallery .heritage-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Title and caption */

.church-gallery .heritage-card-content {
    padding: 18px;
}

.church-gallery .heritage-card-content h3 {
    margin: 0 0 8px;
}

.church-gallery .heritage-card-content p {
    margin: 0;
}


/* ================================================================
   TABLET
================================================================ */

@media (max-width: 900px) {

    .church-gallery {
        grid-template-columns: repeat(
            2,
            minmax(0, 1fr)
        );
    }

}


/* ================================================================
   MOBILE
================================================================ */

@media (max-width: 620px) {

    .church-gallery {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .church-gallery .heritage-card {
        max-width: 100%;
    }

}


/* ================================================================
   IMAGE LIGHTBOX
================================================================ */

body.lightbox-open {
    overflow: hidden;
}


/* Full-screen dark overlay */

.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 32px;

    background: rgba(7, 15, 25, 0.92);
    backdrop-filter: blur(8px);
}


/* Visible state */

.image-lightbox.open {
    display: flex;
}


/* Dialog */

.image-lightbox-dialog {
    position: relative;

    width: min(96vw, 1200px);
    max-height: 92vh;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 14px;
}


/* Enlarged image */

.image-lightbox-image {
    display: block;

    max-width: 100%;
    max-height: 82vh;

    width: auto;
    height: auto;

    object-fit: contain;

    border-radius: 16px;

    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.45);
}


/* Close button */

.image-lightbox-close {
    position: absolute;
    top: -18px;
    right: -18px;

    width: 46px;
    height: 46px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;

    background: rgba(13, 27, 42, 0.92);

    color: white;

    font-size: 2rem;
    line-height: 1;

    cursor: pointer;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.28);
}


.image-lightbox-close:hover,
.image-lightbox-close:focus-visible {
    border-color: rgba(212, 175, 55, 0.8);
    color: #f7d77c;
    outline: none;
}


/* Caption */

.image-lightbox-caption {
    max-width: 850px;

    margin: 0;

    color: #eef3f7;

    text-align: center;

    font-size: 0.95rem;
    line-height: 1.6;
}


/* Gallery image should look clickable */

.lightbox-trigger {
    cursor: zoom-in;
}


/* Keyboard focus */

.lightbox-trigger:focus-visible {
    outline: 3px solid rgba(212, 175, 55, 0.75);
    outline-offset: 4px;
}


/* ================================================================
   MOBILE
================================================================ */

@media (max-width: 620px) {

    .image-lightbox {
        padding: 18px;
    }


    .image-lightbox-dialog {
        width: 100%;
        max-height: 94vh;
    }


    .image-lightbox-image {
        max-height: 78vh;
        border-radius: 12px;
    }


    .image-lightbox-close {
        top: -14px;
        right: -4px;

        width: 42px;
        height: 42px;
    }


    .image-lightbox-caption {
        padding: 0 10px;
        font-size: 0.9rem;
    }

}

/* ================================================================
   CHURCH COMMUNITY MEMORY
================================================================ */

.church-memory-panel {
    width: min(88%, 1320px);
    margin: 70px auto 100px;
    padding: clamp(38px, 5vw, 64px);

    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 28px;

    background:
        radial-gradient(
            circle at 90% 20%,
            rgba(212, 175, 55, 0.12),
            transparent 30%
        ),
        #fffdf8;

    box-shadow: 0 20px 55px rgba(25, 37, 56, 0.08);
}


.church-memory-content {
    max-width: 780px;
}


.church-memory-panel h2 {
    margin: 0;

    color: var(--navy);

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.3rem, 4vw, 4rem);
    font-weight: 500;

    line-height: 1.08;
}


.church-memory-panel p:not(.eyebrow) {
    margin: 20px 0 28px;

    color: var(--muted);

    font-size: 1.05rem;
    line-height: 1.8;
}

/* ================================================================
   CONTRIBUTION FORM FEEDBACK
================================================================ */

.contribution-feedback {
    width: min(88%, 1320px);
    margin: 0 auto 24px;
}

.contribution-feedback .public-alert {
    margin: 0;
}

/* ================================================================
   SAN NICODEMO BRAND LOGO
================================================================ */

.brand-mark-logo {
    padding: 0;
    overflow: hidden;
    flex-shrink: 0;
    background: #ffffff;
}

.brand-mark-logo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 50%;
}

/* ================================================================
   PREMIUM HERITAGE FOOTER
================================================================ */

.site-footer {
    position: relative;
    margin-top: 0;
    background:
        radial-gradient(
            circle at 85% 10%,
            rgba(196, 151, 45, 0.08),
            transparent 26rem
        ),
        linear-gradient(
            145deg,
            #0b1928 0%,
            #0d1b2a 55%,
            #0a1724 100%
        );
    color: #f5f0e7;
    border-top: 0;
}


/* Premium gold / blue accent */

.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;

    background: linear-gradient(
        90deg,
        #c79a2d 0%,
        #e4c46b 30%,
        #4e8ae8 68%,
        #28c7d8 100%
    );
}


/* ================================================================
   MAIN FOOTER GRID
================================================================ */

.footer-premium-inner {
    width: min(100% - 64px, 1640px);
    margin: 0 auto;

    display: grid;
    grid-template-columns:
        minmax(320px, 1.25fr)
        minmax(300px, 0.9fr)
        minmax(300px, 0.9fr);

    gap: 72px;

    padding: 76px 0 58px;
}


/* ================================================================
   BRAND
================================================================ */

.footer-brand-section {
    max-width: 520px;
}

.footer-brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 16px;

    color: inherit;
    text-decoration: none;
}

.footer-logo {
    width: 58px;
    height: 58px;

    display: block;
    object-fit: cover;

    flex-shrink: 0;

    border-radius: 50%;

    box-shadow:
        0 0 0 1px rgba(210, 171, 74, 0.7),
        0 8px 28px rgba(0, 0, 0, 0.2);
}

.footer-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.footer-brand-copy strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.55rem;
    line-height: 1.05;
    font-weight: 700;
    color: #ffffff;
}

.footer-brand-copy small {
    color: #d6c9ad;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.footer-description {
    max-width: 470px;
    margin: 26px 0 0;

    color: #b9c4d0;
    font-size: 0.98rem;
    line-height: 1.75;
}


/* ================================================================
   FOOTER NAVIGATION
================================================================ */

.footer-navigation {
    display: grid;
    grid-template-columns: repeat(2, minmax(110px, 1fr));
    gap: 44px;
}

.footer-link-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
}

.footer-group-title {
    margin-bottom: 5px;

    color: #d8af46;
    font-size: 0.7rem;
    font-weight: 800;

    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.footer-link-group a {
    position: relative;

    color: #d9e1e8;
    font-size: 0.94rem;
    line-height: 1.35;

    text-decoration: none;

    transition:
        color 160ms ease,
        opacity 160ms ease;
}

.footer-link-group a:hover,
.footer-link-group a:focus-visible {
    color: #f0c953;
}


/* ================================================================
   QUOTE CARD
================================================================ */

.footer-quote-card {
    align-self: start;

    padding: 28px 30px 30px;

    border: 1px solid rgba(211, 174, 79, 0.22);
    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.045),
            rgba(255, 255, 255, 0.015)
        );

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 20px 50px rgba(0, 0, 0, 0.1);
}

.footer-quote-eyebrow {
    display: block;

    margin-bottom: 18px;

    color: #d8af46;
    font-size: 0.65rem;
    font-weight: 800;

    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.footer-quote-card blockquote {
    position: relative;

    margin: 0;
    padding: 0 0 0 20px;

    border-left: 1px solid rgba(216, 175, 70, 0.55);

    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.1rem;
    line-height: 1.6;
    font-style: italic;

    color: #f4efe5;
}

.footer-quote-card blockquote span {
    display: block;
}


/* ================================================================
   FOOTER BOTTOM
================================================================ */

.footer-bottom {
    width: min(100% - 64px, 1640px);
    margin: 0 auto;

    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-inner {
    display: grid;

    grid-template-columns:
        minmax(200px, 0.7fr)
        minmax(250px, 0.8fr)
        minmax(400px, 1.5fr);

    gap: 30px;

    align-items: center;

    padding: 27px 0 31px;

    color: #8fa2b4;
    font-size: 0.75rem;
    line-height: 1.5;
}

.footer-developer {
    text-align: center;
}

.footer-developer a {
    color: #b7c5d2;
    text-decoration: none;

    transition: color 160ms ease;
}

.footer-developer a:hover,
.footer-developer a:focus-visible {
    color: #e2bd55;
}

.footer-privacy {
    text-align: right;
}


/* ================================================================
   TABLET
================================================================ */

@media (max-width: 1050px) {

    .footer-premium-inner {
        grid-template-columns: 1fr 1fr;
        gap: 48px;
    }

    .footer-quote-card {
        grid-column: 1 / -1;
    }

    .footer-bottom-inner {
        grid-template-columns: 1fr 1fr;
    }

    .footer-privacy {
        grid-column: 1 / -1;
        text-align: left;
    }

}


/* ================================================================
   MOBILE
================================================================ */

@media (max-width: 700px) {

    .footer-premium-inner {
        width: min(100% - 48px, 520px);

        display: flex;
        flex-direction: column;

        gap: 42px;

        padding: 54px 0 42px;
    }


    .footer-logo {
        width: 52px;
        height: 52px;
    }


    .footer-brand-copy strong {
        font-size: 1.35rem;
    }


    .footer-description {
        margin-top: 22px;

        font-size: 0.94rem;
        line-height: 1.7;
    }


    .footer-navigation {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }


    .footer-quote-card {
        padding: 24px;
        border-radius: 18px;
    }


    .footer-quote-card blockquote {
        font-size: 1rem;
    }


    .footer-bottom {
        width: min(100% - 48px, 520px);
    }


    .footer-bottom-inner {
        display: flex;
        flex-direction: column;
        align-items: flex-start;

        gap: 12px;

        padding: 24px 0 30px;
    }


    .footer-developer,
    .footer-privacy {
        text-align: left;
    }

}


/* ================================================================
   VERY SMALL PHONES
================================================================ */

@media (max-width: 420px) {

    .footer-premium-inner,
    .footer-bottom {
        width: calc(100% - 36px);
    }


    .footer-navigation {
        gap: 22px;
    }


    .footer-brand-lockup {
        gap: 13px;
    }


    .footer-logo {
        width: 48px;
        height: 48px;
    }

}

/* ================================================================
   FINAL PREMIUM HEADER OVERRIDE
   Matches the premium footer identity
================================================================ */

body.public-site .site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background:
        radial-gradient(
            circle at 12% 0%,
            rgba(205, 163, 58, 0.10),
            transparent 260px
        ),
        linear-gradient(
            135deg,
            #091827 0%,
            #0d1b2a 55%,
            #091624 100%
        ) !important;

    border: 0 !important;
    border-bottom: 1px solid rgba(215, 177, 76, 0.38) !important;

    box-shadow:
        0 8px 28px rgba(4, 15, 26, 0.16) !important;
}


/* Premium accent line */

body.public-site .site-header::after {
    content: "";

    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;

    height: 2px;

    background: linear-gradient(
        90deg,
        #c89b2e 0%,
        #e1c264 35%,
        #477ed8 72%,
        #27bdd1 100%
    );

    opacity: 0.9;
}


/* ================================================================
   HEADER SIZE / ALIGNMENT
================================================================ */

body.public-site .site-header-inner {
    min-height: 94px !important;

    display: flex !important;
    align-items: center !important;

    padding-top: 10px !important;
    padding-bottom: 10px !important;
}


/* ================================================================
   BRAND
================================================================ */

body.public-site .premium-brand {
    display: inline-flex !important;
    align-items: center !important;

    gap: 17px !important;

    text-decoration: none !important;

    flex-shrink: 0;
}


/* EXACT SAME PREMIUM TREATMENT AS FOOTER LOGO */

body.public-site .site-header-logo {
    width: 64px !important;
    height: 64px !important;

    display: block !important;

    object-fit: cover !important;

    border-radius: 50% !important;

    background: #fffdf8 !important;

    border: 1px solid rgba(207, 163, 52, 0.82) !important;

    box-shadow:
        0 0 0 4px rgba(200, 155, 46, 0.07),
        0 10px 26px rgba(0, 0, 0, 0.24) !important;
}


/* ================================================================
   BRAND TYPOGRAPHY
================================================================ */

body.public-site .premium-brand-copy {
    display: flex !important;
    flex-direction: column !important;

    gap: 7px !important;

    line-height: 1 !important;
}


body.public-site .premium-brand-copy strong {
    margin: 0 !important;

    font-family:
        Georgia,
        "Times New Roman",
        serif !important;

    font-size: 1.52rem !important;
    line-height: 1.05 !important;
    font-weight: 700 !important;

    letter-spacing: -0.02em !important;

    color: #ffffff !important;
}


body.public-site .premium-brand-copy small {
    margin: 0 !important;

    font-size: 0.69rem !important;
    line-height: 1 !important;

    font-weight: 800 !important;

    letter-spacing: 0.20em !important;
    text-transform: uppercase !important;

    color: #dcb65a !important;
}


/* ================================================================
   NAVIGATION
================================================================ */

body.public-site .main-nav {
    align-items: center !important;
}


body.public-site .main-nav > a:not(.nav-private) {
    padding: 10px 11px !important;

    border-radius: 9px !important;

    color: #e4e9ee;
}


body.public-site .main-nav > a:not(.nav-private):hover,
body.public-site .main-nav > a:not(.nav-private):focus-visible {
    color: #f0c85c !important;

    background: rgba(255, 255, 255, 0.045) !important;
}


body.public-site .main-nav > a.active {
    color: #f0c85c !important;

    background: rgba(207, 163, 52, 0.10) !important;
}


/* PRIVATE ACCESS BUTTON */

body.public-site .main-nav .nav-private {
    padding: 11px 16px !important;

    border: 1px solid rgba(215, 176, 72, 0.55) !important;
    border-radius: 10px !important;

    color: #efc759 !important;

    background: rgba(206, 163, 55, 0.045) !important;
}


body.public-site .main-nav .nav-private:hover,
body.public-site .main-nav .nav-private:focus-visible {
    color: #ffffff !important;

    border-color: rgba(230, 195, 101, 0.90) !important;

    background: rgba(207, 164, 55, 0.14) !important;
}


/* ================================================================
   MOBILE
================================================================ */

@media (max-width: 900px) {

    body.public-site .site-header-inner {
        min-height: 86px !important;
        padding-top: 9px !important;
        padding-bottom: 9px !important;
    }


    body.public-site .site-header-logo {
        width: 54px !important;
        height: 54px !important;
    }


    body.public-site .premium-brand {
        gap: 13px !important;
    }


    body.public-site .premium-brand-copy strong {
        font-size: 1.30rem !important;
    }


    body.public-site .premium-brand-copy small {
        font-size: 0.62rem !important;
        letter-spacing: 0.17em !important;
    }

}


/* ================================================================
   SMALL PHONES
================================================================ */

@media (max-width: 420px) {

    body.public-site .site-header-logo {
        width: 50px !important;
        height: 50px !important;
    }


    body.public-site .premium-brand-copy strong {
        font-size: 1.18rem !important;
    }


    body.public-site .premium-brand-copy small {
        font-size: 0.57rem !important;
    }

}