/* ==========================================================================
   Shared styles for inner pages (About, Parishes, ...): page header, headings, chips, buttons.
   js/page.js sets --hp on .page-hero and lights up [data-words] text.
   ========================================================================== */
.page-main, .page-hero {
    --ink: #1a1412;
    --ink-soft: rgba(26,20,18,.64);
    --line: rgba(26,20,18,.1);
    --red: #b4232a;
    --gold: #c8973f;
    --cream: #f6efe4;
}
.page-main { color: var(--ink); background: #fff; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.chip { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px; padding: 7px 14px 7px 10px; border-radius: 999px;
    background: #faf6f0; border: 1px solid var(--line); font: 600 12px/1 'Manrope', sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(180,35,42,.18); }
.chip--light { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: #fff; }
.chip--light::before { background: #f3c47a; box-shadow: 0 0 0 4px rgba(243,196,122,.2); }
.h2 { margin: 0 0 20px; font: 500 clamp(40px, 5.4vw, 80px)/.98 'Fraunces', Georgia, serif; letter-spacing: -.035em; }
.h2 em { font-style: italic; font-weight: 400; color: var(--red); }
.lead { margin: 0 0 28px; max-width: 520px; font: 400 17px/1.7 'Manrope', sans-serif; color: var(--ink-soft); }

/* ---------- Page header ---------- */
.page-hero {
    /* Theme variables the shared nav bar reads (same as the home hero's dark slides) */
    --ink: #fff; --ink-soft: rgba(255,255,255,.78); --glass: rgba(255,255,255,.12); --glass-strong: rgba(255,255,255,.2);
    --glass-line: rgba(255,255,255,.2); --solid-bg: #fff; --solid-ink: #16110f;
    position: relative; z-index: 30; isolation: isolate; color: #fff; min-height: 100vh; min-height: 100svh;
    display: flex; flex-direction: column; overflow: hidden; background: #140a08;
    border-radius: 0 0 clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px);
}
.ph-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.ph-img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%;
    scale: calc(1.12 - var(--hp, 0) * .02); translate: 0 calc(var(--hp, 0) * 18%); transition: scale 2.2s cubic-bezier(.2,.75,.15,1); }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(180deg, rgba(14,6,4,.55) 0%, rgba(14,6,4,.2) 30%, rgba(14,6,4,.45) 65%, rgba(14,6,4,.9) 100%); }
.ph-content { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; width: min(1240px, 100%); margin: 0 auto;
    padding: 40px clamp(20px, 4vw, 48px) clamp(70px, 10vh, 120px); opacity: calc(1 - var(--hp, 0) * 1.6); translate: 0 calc(var(--hp, 0) * -60px); }
.crumbs { display: flex; gap: 10px; margin-bottom: 22px; font: 600 12px/1 'Manrope', sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.crumbs a { color: rgba(255,255,255,.7); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs span { color: rgba(255,255,255,.45); }
.crumbs [aria-current] { color: #f3c47a; }
.ph-title { margin: 0 0 24px; font: 500 clamp(64px, 11vw, 190px)/.86 'Fraunces', Georgia, serif; letter-spacing: -.05em; }
.ph-line { display: block; overflow: hidden; padding-bottom: .05em; }
.ph-line > * { display: inline-block; }
.ph-title em { font-style: italic; font-weight: 400; color: #f3c47a; }
.ph-lead { margin: 0; max-width: 560px; font: 400 clamp(16px, 1.4vw, 19px)/1.65 'Manrope', sans-serif; color: rgba(255,255,255,.85); }
.ph-scroll { position: absolute; right: clamp(20px, 4vw, 48px); bottom: clamp(70px, 10vh, 120px); width: 30px; height: 50px; border-radius: 16px;
    border: 1.5px solid rgba(255,255,255,.5); display: grid; justify-items: center; padding-top: 8px; }
.ph-scroll span { width: 4px; height: 9px; border-radius: 2px; background: #f3c47a; animation: ph-wheel 1.8s ease-in-out infinite; }
@keyframes ph-wheel { 0% { translate: 0 0; opacity: 1; } 70% { translate: 0 16px; opacity: 0; } 100% { opacity: 0; } }

/* Entrance */
html.fx .ph-img { scale: 1.25; }
html.fx.fx-loaded .ph-img { scale: calc(1.12 - var(--hp, 0) * .02); }
html.fx .ph-line > * { translate: 0 105%; transition: translate 1.2s cubic-bezier(.2,.75,.15,1) .2s; }
html.fx .ph-line:nth-child(2) > * { transition-delay: .32s; }
html.fx.fx-loaded .ph-line > * { translate: 0 0; }
html.fx .crumbs, html.fx .ph-lead { opacity: 0; translate: 0 16px; transition: opacity .9s ease .55s, translate .9s ease .55s; }
html.fx.fx-loaded .crumbs, html.fx.fx-loaded .ph-lead { opacity: 1; translate: 0 0; }

/* Word-by-word reading (js wraps each word in .rw) */
html.fx [data-words] .rw { opacity: .14; transition: opacity .35s ease; }
html.fx [data-words] .rw.is-lit { opacity: 1; }

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; padding: 15px 26px; border-radius: 999px; text-decoration: none; font: 600 15px/1 'Manrope', sans-serif;
    transition: background .25s ease, color .25s ease, translate .25s ease; }
.btn:hover { translate: 0 -2px; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--red); }
.btn--line { border: 1px solid rgba(26,20,18,.18); color: var(--ink); }
.btn--line:hover { border-color: var(--ink); }

