/* ============================================================
   St. Matthew Bbira Besaniya C.O.U — main stylesheet
   Design language: warm heritage — espresso charcoal, amber
   gold and ivory, drawn from the parish logo.
   Type: Fraunces (display) × Manrope (interface/body)
   ============================================================ */
:root {
  /* Ink / charcoal (warm near-black, from the logo wordmark) */
  --ink-900: #1b1712;
  --ink-800: #241f18;
  --ink-700: #2f281f;
  --ink: #2a2621;
  --ink-soft: #5d554b;
  --ink-faint: #8a8074;
  /* Amber gold (from the logo church mark & C.O.U.) */
  --gold-700: #9c6f1c;
  --gold-600: #b07d22;
  --gold: #c88a2e;
  --gold-400: #e0a62c;
  --gold-200: #ecc978;
  --gold-050: #f6ecd6;
  /* Warm neutrals */
  --cream: #fcf8f1;
  --sand: #f4ecdd;
  --sand-200: #ede2ce;
  --line: #e8dcc6;
  --paper: #fcf8f1;
  --white: #ffffff;
  /* Type */
  --serif: 'Fraunces', 'Georgia', serif;
  --sans: 'Manrope', system-ui, -apple-system, sans-serif;
  --ui: 'Manrope', system-ui, sans-serif;
  /* Warm-tinted shadows */
  --sh-sm: 0 2px 10px rgba(43, 33, 18, .07);
  --sh-md: 0 10px 30px rgba(43, 33, 18, .10);
  --sh-lg: 0 24px 60px rgba(43, 33, 18, .16);
  --radius: 18px;
}

* { -webkit-font-smoothing: antialiased; }
/* overflow-x: clip (not hidden) prevents sideways scroll WITHOUT creating a
   scroll container — so the sticky navbar keeps working. */
html { overflow-x: clip; }
body {
  font-family: var(--sans); color: var(--ink); background: var(--cream);
  font-size: 1rem; line-height: 1.65; letter-spacing: -0.003em;
  overflow-x: clip; max-width: 100%;
}
img { max-width: 100%; }
/* Keep the navbar pinned while scrolling (Bootstrap sticky-top). */
.main-nav { position: sticky; top: 0; z-index: 1030; }
h1, h2, h3, h4, h5, .display-5, .display-4 {
  font-family: var(--serif); font-optical-sizing: auto;
  font-weight: 600; letter-spacing: -0.02em; color: var(--ink-900);
}
h1 { line-height: 1.05; }
p { color: var(--ink-soft); }
a { text-decoration: none; }
.eyebrow, .btn, .badge, .stat-label, .footer-heading, .nav-link, .dropdown-item, .cd-label, .week-day {
  font-family: var(--ui);
}
::selection { background: var(--gold-200); color: var(--ink-900); }

.text-gold { color: var(--gold-600) !important; }
.text-purple { color: var(--gold-700) !important; }
.bg-purple, .section-purple { background: var(--ink-900) !important; }
.serif { font-family: var(--serif); }

/* --- Top bar --- */
.topbar {
  background: var(--ink-900); color: #d8ccb6; font-size: .82rem;
  padding: .45rem 0; letter-spacing: .01em;
}
.topbar a { color: #d8ccb6; text-decoration: none; transition: color .2s; }
.topbar a:hover { color: var(--gold-200); }

/* --- Navbar --- */
.main-nav {
  background: rgba(252, 248, 241, .88); backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line); padding: .5rem 0; transition: box-shadow .3s, padding .3s;
}
.main-nav.nav-scrolled { box-shadow: var(--sh-sm); padding: .3rem 0; }
.nav-logo { height: 60px; width: auto; max-width: 280px; object-fit: contain; transition: height .3s; }
.main-nav.nav-scrolled .nav-logo { height: 50px; }
@media (max-width: 575px) { .nav-logo { height: 46px; max-width: 210px; } }
.main-nav .nav-link {
  color: var(--ink); font-weight: 600; font-size: .9rem; padding: .5rem .85rem;
  position: relative;
}
.main-nav .nav-link::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .28rem; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
  border-radius: 2px;
}
.main-nav .nav-link:hover::after, .main-nav .nav-link.active::after { transform: scaleX(1); }
.main-nav .nav-link:hover, .main-nav .nav-link.active { color: var(--ink-900); }
.dropdown-menu {
  border: 1px solid var(--line); box-shadow: var(--sh-md); border-radius: 14px;
  padding: .5rem; background: var(--white);
}
.dropdown-item { border-radius: 9px; font-weight: 500; font-size: .9rem; padding: .5rem .8rem; }
.dropdown-item:hover { background: var(--gold-050); color: var(--gold-700); }

/* --- Buttons --- */
.btn { border-radius: 999px; font-weight: 700; letter-spacing: .01em; padding: .62rem 1.5rem; transition: transform .2s, box-shadow .2s, background .2s, color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--ink-900); border: none; box-shadow: 0 6px 18px rgba(200, 138, 46, .32); }
.btn-gold:hover { background: var(--gold-400); color: var(--ink-900); box-shadow: 0 10px 26px rgba(200, 138, 46, .42); }
.btn-outline-gold { border: 1.5px solid var(--gold); color: var(--gold-700); font-weight: 700; background: transparent; }
.btn-outline-gold:hover { background: var(--gold); color: var(--ink-900); }
.btn-purple { background: var(--ink-900); color: #fff; border: none; }
.btn-purple:hover { background: var(--ink-700); color: #fff; }
.btn-outline-light-2 { border: 1.5px solid rgba(255,255,255,.65); color: #fff; font-weight: 700; }
.btn-outline-light-2:hover { background: #fff; color: var(--ink-900); }
.btn-sm { padding: .42rem 1.05rem; font-size: .84rem; }

/* --- Reveal-on-scroll (progressive enhancement) --- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ============================================================
   HOME — editorial hero
   ============================================================ */
.home-hero { position: relative; min-height: min(92vh, 820px); display: flex; align-items: flex-end; overflow: hidden; background: var(--ink-900); }
.home-hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.4s ease; transform: scale(1.06); }
.hero-slide.is-active { opacity: 1; animation: heroZoom 8s ease-out forwards; }
@keyframes heroZoom { from { transform: scale(1.06); } to { transform: scale(1.14); } }
.home-hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,16,11,.30) 0%, rgba(20,16,11,.10) 30%, rgba(20,16,11,.72) 78%, rgba(20,16,11,.94) 100%),
    linear-gradient(90deg, rgba(20,16,11,.55), rgba(20,16,11,0) 60%);
}
.home-hero-inner { position: relative; z-index: 2; color: #fff; padding: 8rem 0 3.4rem; width: 100%; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: .6rem; color: var(--gold-200);
  text-transform: uppercase; letter-spacing: .24em; font-size: .74rem; font-weight: 700; margin-bottom: 1.3rem;
}
.hero-kicker::before { content: ""; width: 34px; height: 1.5px; background: var(--gold); display: inline-block; }
.home-hero h1 { color: #fff; font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 600; line-height: 1.02; max-width: 16ch; text-wrap: balance; }
.home-hero .hero-sub { color: rgba(255,255,255,.82); max-width: 54ch; font-size: 1.08rem; margin-top: 1.2rem; }
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .8rem; }
/* floating service strip */
.hero-strip {
  position: relative; z-index: 2; margin-top: 2.6rem;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px; overflow: hidden; backdrop-filter: blur(6px); max-width: 720px;
}
.hero-strip .hs-cell { background: rgba(20,16,11,.42); padding: 1rem 1.2rem; }
.hero-strip .hs-label { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-200); font-weight: 700; }
.hero-strip .hs-value { font-family: var(--serif); font-size: 1.15rem; color: #fff; margin-top: .15rem; }
.hero-strip .hs-note { font-size: .78rem; color: rgba(255,255,255,.6); }
@media (max-width: 640px) { .hero-strip { grid-template-columns: 1fr; } .home-hero-inner { padding-top: 6.5rem; } }

/* --- Page hero (interior pages) --- */
.page-hero {
  position: relative; color: #fff; padding: 6rem 0 3.4rem;
  background:
    linear-gradient(90deg, rgba(20,16,11,.86), rgba(20,16,11,.55)),
    var(--hero-img, linear-gradient(120deg, var(--ink-900), var(--ink-700)))
    center 35%/cover no-repeat;
}
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--gold), var(--gold-200)); }
.page-hero h1 { color: #fff; font-weight: 600; font-size: clamp(2rem, 4.4vw, 3.2rem); }
.page-hero .lead, .page-hero p { color: rgba(255,255,255,.82); }
.page-hero .breadcrumb a { color: var(--gold-200); text-decoration: none; }
.page-hero .breadcrumb-item.active, .page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.55); }

/* ============================================================
   Sections & shared type
   ============================================================ */
.section { padding: 5.5rem 0; }
.section-tight { padding: 3.75rem 0; }
.section-alt { background: var(--white); }
.section-sand { background: var(--sand); }
.section-purple { background: var(--ink-900); color: #e9e0d0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  letter-spacing: .2em; text-transform: uppercase; font-size: .76rem; font-weight: 700; color: var(--gold-700);
}
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: var(--gold); }
.eyebrow.eyebrow-center::before { display: none; }
.section-title { font-weight: 600; color: var(--ink-900); font-size: clamp(1.8rem, 3.4vw, 2.7rem); letter-spacing: -0.025em; }
.section-purple .section-title { color: #fff; }
.lead-muted { color: var(--ink-soft); font-size: 1.06rem; }

/* Intro / welcome split */
.intro-quote { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2.15rem); font-weight: 500; line-height: 1.32; color: var(--ink-900); letter-spacing: -0.02em; text-wrap: balance; }
.intro-quote .hl { color: var(--gold-600); font-style: italic; }
.intro-frame { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--sh-lg); }
.intro-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.intro-badge {
  position: absolute; left: 1.1rem; bottom: 1.1rem; background: rgba(20,16,11,.72);
  backdrop-filter: blur(4px); color: #fff; border-radius: 12px; padding: .7rem 1rem; border: 1px solid rgba(255,255,255,.14);
}
.intro-badge .ib-name { font-family: var(--serif); font-size: 1.02rem; }
.intro-badge .ib-role { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-200); }

/* --- Parish priest figure (home welcome) --- */
.priest-figure { max-width: 440px; }
.priest-photo { width: 100%; height: auto; display: block; border-radius: var(--radius) var(--radius) 0 0; box-shadow: var(--sh-lg); }
.priest-caption { background: var(--ink-900); color: #fff; border-radius: 0 0 var(--radius) var(--radius); padding: 1rem 1.25rem; border-top: 3px solid var(--gold); }
.priest-caption .pc-name { display: block; font-family: var(--serif); font-size: 1.15rem; font-weight: 600; }
.priest-caption .pc-role { display: block; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-200); margin-top: .15rem; }

/* --- Cards --- */
.card-lift { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--sh-sm); transition: transform .3s, box-shadow .3s, border-color .3s; background: var(--white); overflow: hidden; }
.card-lift:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: var(--sand-200); }
.card-img-frame { height: 210px; object-fit: cover; }
.icon-badge {
  width: 56px; height: 56px; border-radius: 15px; display: inline-flex;
  align-items: center; justify-content: center; font-size: 1.5rem;
  background: var(--gold-050); color: var(--gold-700); border: 1px solid var(--line);
}

/* --- Ministry editorial tiles --- */
.min-tile {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden;
  min-height: 340px; box-shadow: var(--sh-sm); color: #fff; isolation: isolate;
}
.min-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.min-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,16,11,.05) 0%, rgba(20,16,11,.30) 45%, rgba(20,16,11,.86) 100%); transition: background .3s; }
.min-tile:hover img { transform: scale(1.08); }
.min-tile:hover::after { background: linear-gradient(180deg, rgba(20,16,11,.10) 0%, rgba(20,16,11,.55) 45%, rgba(20,16,11,.92) 100%); }
.min-body { position: absolute; inset: auto 0 0 0; padding: 1.5rem; }
.min-num { font-family: var(--serif); font-size: .9rem; color: var(--gold-200); letter-spacing: .1em; }
.min-name { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: #fff; margin: .2rem 0 .35rem; }
.min-tag { font-size: .9rem; color: rgba(255,255,255,.8); margin: 0; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .4s ease, opacity .3s ease, margin .3s ease; }
.min-tile:hover .min-tag { max-height: 6rem; opacity: 1; margin-top: .2rem; }
.min-more { display: inline-flex; align-items: center; gap: .4rem; color: var(--gold-200); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-top: .7rem; }

/* --- Vision / building section --- */
.vision-lead { border-left: 3px solid var(--gold); padding-left: 1.2rem; }
.vision-shot { border-radius: 14px; overflow: hidden; box-shadow: var(--sh-md); border: 1px solid var(--line); }
.vision-shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.vision-shot:hover img { transform: scale(1.05); }

/* --- Service times --- */
.service-card { border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 14px; background: var(--white); transition: transform .25s, box-shadow .25s; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.service-time { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; color: var(--gold-700); }

/* --- Countdown band --- */
.countdown-band { background: linear-gradient(120deg, var(--ink-900), var(--ink-700)); color: #fff; position: relative; overflow: hidden; }
.countdown-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 85% -20%, rgba(224,166,44,.20), transparent 70%); }
.countdown-band h3 { font-family: var(--serif); font-weight: 600; margin-bottom: .2rem; color: #fff; }
.cd-subtitle { color: rgba(255,255,255,.72); font-size: .95rem; }
.cd-box {
  min-width: 78px; padding: .85rem .6rem; text-align: center; border-radius: 14px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  display: flex; flex-direction: column; line-height: 1.15; position: relative;
}
.cd-num { font-family: var(--serif); font-size: 1.8rem; font-weight: 600; color: var(--gold-200); }
.cd-label { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.66); }
@media (max-width: 575px) { .cd-box { min-width: 64px; padding: .6rem .4rem; } .cd-num { font-size: 1.35rem; } }

/* --- Verse of the Day / scripture band --- */
.votd-band, .verse-band {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(120deg, var(--ink-900) 0%, var(--ink-700) 60%, #3a2f20 100%);
}
.votd-band .votd-orb { position: absolute; border-radius: 50%; filter: blur(8px); opacity: .28; background: radial-gradient(circle at 30% 30%, var(--gold-400), transparent 70%); animation: votdFloat 10s ease-in-out infinite; }
.votd-orb-1 { width: 240px; height: 240px; top: -70px; left: -50px; }
.votd-orb-2 { width: 320px; height: 320px; bottom: -130px; right: -70px; animation-delay: -4s; }
@keyframes votdFloat { 0%,100% { transform: translate(0,0); } 50% { transform: translate(18px, 24px); } }
.votd-eyebrow { display: inline-block; letter-spacing: .22em; text-transform: uppercase; font-family: var(--ui); font-size: .74rem; font-weight: 700; color: var(--gold-200); padding: .35rem 1rem; border: 1px solid rgba(236,201,120,.4); border-radius: 99px; background: rgba(255,255,255,.04); }
.votd-quote { max-width: 860px; position: relative; }
.votd-mark { font-size: 3rem; color: var(--gold); opacity: .55; line-height: 0; display: block; margin-bottom: .5rem; font-family: var(--serif); }
.votd-text { font-family: var(--serif); font-size: clamp(1.55rem, 3.4vw, 2.5rem); font-weight: 500; line-height: 1.34; margin-bottom: 1rem; text-wrap: balance; color: #fff; }
.votd-ref { font-family: var(--ui); font-weight: 700; color: var(--gold-200); font-size: 1.05rem; }
.votd-version { font-size: .7rem; letter-spacing: .1em; border: 1px solid rgba(236,201,120,.5); border-radius: 4px; padding: .1rem .4rem; margin-left: .4rem; vertical-align: middle; color: var(--gold-200); }
.votd-attr { font-size: .72rem; color: rgba(255,255,255,.45); }
.votd-band .votd-quote, .votd-band .votd-eyebrow, .votd-band .votd-share { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.votd-band.votd-in .votd-eyebrow { opacity: 1; transform: none; transition-delay: .05s; }
.votd-band.votd-in .votd-quote { opacity: 1; transform: none; transition-delay: .2s; }
.votd-band.votd-in .votd-share { opacity: 1; transform: none; transition-delay: .5s; }
@media (prefers-reduced-motion: reduce) { .votd-orb { animation: none; } .votd-band .votd-quote, .votd-band .votd-eyebrow, .votd-band .votd-share { opacity: 1; transform: none; } }

/* --- Stats --- */
.stat-number { font-family: var(--serif); font-size: 3rem; font-weight: 600; color: var(--gold-600); line-height: 1; }
.stat-label { letter-spacing: .14em; text-transform: uppercase; font-size: .76rem; font-weight: 700; color: var(--ink-soft); }

/* --- Progress bars --- */
.progress { height: 9px; border-radius: 99px; background: var(--sand-200); }
.progress-bar { background: linear-gradient(90deg, var(--gold-600), var(--gold-200)); border-radius: 99px; }

/* --- Gallery --- */
.gallery-item { border-radius: 14px; overflow: hidden; cursor: pointer; position: relative; box-shadow: var(--sh-sm); }
.gallery-item img { width: 100%; height: 230px; object-fit: cover; transition: transform .5s; }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-caption { position: absolute; inset: auto 0 0 0; padding: 2rem .9rem .7rem; background: linear-gradient(transparent, rgba(20,16,11,.85)); color: #fff; font-size: .85rem; font-weight: 600; }
.filter-btn { border: 1.5px solid var(--line); color: var(--ink); border-radius: 99px; padding: .38rem 1.15rem; font-size: .86rem; font-weight: 700; background: var(--white); transition: all .2s; }
.filter-btn.active, .filter-btn:hover { background: var(--ink-900); color: #fff; border-color: var(--ink-900); }

/* --- Leader cards --- */
.leader-photo { width: 130px; height: 130px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold); box-shadow: var(--sh-sm); }
.leader-initials { width: 130px; height: 130px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 2.2rem; font-weight: 600; background: var(--gold-050); color: var(--gold-700); border: 3px solid var(--gold); }

/* --- Footer --- */
.site-footer { background: var(--ink-900); color: #cabda6; position: relative; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--gold-700), var(--gold-200), var(--gold-700)); }
.site-footer a { color: #cabda6; text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--gold-200); }
.footer-logo-chip { display: inline-block; background: #fff; border-radius: 14px; padding: .6rem .95rem; box-shadow: var(--sh-md); }
.footer-logo-chip img { height: 58px; width: auto; max-width: 100%; object-fit: contain; }
.footer-heading { color: #fff; letter-spacing: .14em; text-transform: uppercase; font-size: .76rem; font-weight: 700; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: .5rem; font-size: .9rem; }
.footer-verse { font-family: var(--serif); font-style: italic; font-size: 1rem; color: #e4d8c1; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); gap: .5rem; color: #a99b83; }

/* --- Footer giving accordion --- */
.footer-accordion { --bs-accordion-bg: rgba(255,255,255,.04); }
.footer-accordion .accordion-item { border: 1px solid rgba(255,255,255,.12); background: transparent; }
.footer-accordion .accordion-button { background: transparent; color: #e9e0d0; font-weight: 700; font-size: .92rem; box-shadow: none; }
.footer-accordion .accordion-button:not(.collapsed) { color: var(--gold-200); }
.footer-accordion .accordion-button::after { filter: invert(1) sepia(1) saturate(3) hue-rotate(5deg) brightness(1.2); }
.footer-accordion .accordion-body { color: #cabda6; font-size: .9rem; }
.footer-accordion .accordion-body a { color: var(--gold-200); }

/* --- Weekly programmes --- */
.week-card { background: var(--white); border-radius: 14px; padding: 1.1rem; height: 100%; border: 1px solid var(--line); box-shadow: var(--sh-sm); }
.week-day { font-family: var(--ui); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; color: var(--ink-900); border-bottom: 2px solid var(--gold); padding-bottom: .4rem; margin-bottom: .6rem; }
.week-item { display: flex; flex-direction: column; padding: .35rem 0; }
.week-item + .week-item { border-top: 1px dashed var(--line); }
.week-time { font-family: var(--serif); font-weight: 600; color: var(--gold-700); font-size: .95rem; }
.week-title { font-size: .88rem; color: var(--ink); }

/* --- Calendar --- */
.cal-legend span { font-size: .82rem; color: var(--ink); display: inline-flex; align-items: center; }
.cal-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; margin-right: .4rem; }
#calendar { --fc-border-color: var(--line); --fc-today-bg-color: #fbf3e3; --fc-page-bg-color: #fff; font-family: var(--sans); }
#calendar .fc-toolbar-title { font-family: var(--serif); color: var(--ink-900); font-size: 1.3rem; }
#calendar .fc-button-primary { background: var(--ink-900); border-color: var(--ink-900); text-transform: capitalize; font-family: var(--ui); font-size: .85rem; }
#calendar .fc-button-primary:hover, #calendar .fc-button-primary:not(:disabled).fc-button-active { background: var(--gold-700); border-color: var(--gold-700); }
#calendar .fc-col-header-cell-cushion { color: var(--ink-800); font-weight: 700; text-decoration: none; }
#calendar .fc-daygrid-day-number { color: var(--ink); text-decoration: none; }
#calendar .fc-event { cursor: pointer; border: none; font-size: .78rem; padding: 1px 4px; }

/* --- Advertisements --- */
.ad-card { position: relative; background: var(--white); border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--sh-sm); height: 100%; }
.ad-tag { position: absolute; top: .4rem; right: .4rem; z-index: 2; font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; background: rgba(20,16,11,.72); color: #fff; padding: .1rem .4rem; border-radius: 4px; }
.ad-banner-link { display: block; }
.ad-banner-link img { width: 100%; height: auto; display: block; transition: transform .3s; }
.ad-banner-link:hover img { transform: scale(1.03); }
.ad-body { padding: .9rem 1rem; }
.ad-logo { max-height: 48px; width: auto; }
.footer-ads { border-top: 1px solid rgba(255,255,255,.1); }
.footer-ads-label { font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; color: #a99b83; font-weight: 700; }
.footer-ads-cta { font-size: .8rem; color: var(--gold-200) !important; text-decoration: none; }
.footer-ads-cta:hover { color: #fff !important; }

/* --- WhatsApp float --- */
.whatsapp-float { position: fixed; right: 1.3rem; bottom: 1.3rem; z-index: 1050; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.7rem; box-shadow: 0 8px 24px rgba(0,0,0,.25); text-decoration: none; transition: transform .2s; }
.whatsapp-float:hover { transform: scale(1.08); color: #fff; }

/* --- Video library --- */
.video-thumb { position: relative; display: block; width: 100%; background: var(--ink-900); border-radius: 14px 14px 0 0; overflow: hidden; cursor: pointer; }
.video-thumb img { width: 100%; height: 210px; object-fit: cover; transition: transform .4s; display: block; }
.video-thumb:hover img { transform: scale(1.06); }
.play-badge { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 58px; height: 58px; border-radius: 50%; background: rgba(224, 166, 44, .95); color: var(--ink-900); display: flex; align-items: center; justify-content: center; font-size: 1.9rem; box-shadow: 0 8px 24px rgba(0,0,0,.35); transition: transform .2s; pointer-events: none; }
.video-thumb:hover .play-badge { transform: translate(-50%, -50%) scale(1.12); }

/* --- Newsletters / discipleship --- */
.icon-badge-lg { width: 72px; height: 72px; font-size: 2rem; border-radius: 18px; }
.latest-issue { border-left: 5px solid var(--gold); }
.disc-featured-img { min-height: 260px; background-size: cover; background-position: center; background-color: var(--ink-800); }
.disc-lesson-num { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--ink-900); color: var(--gold-200); font-family: var(--serif); font-weight: 600; font-size: 1.1rem; }
.pdf-viewer { border-radius: var(--radius); overflow: hidden; box-shadow: var(--sh-md); border: 1px solid var(--line); background: var(--sand); }
.pdf-viewer iframe { width: 100%; height: 82vh; border: 0; display: block; }
@media (max-width: 767px) { .pdf-viewer iframe { height: 60vh; } }

/* --- Misc --- */
.ratio iframe { border-radius: var(--radius); }
.badge-status { background: var(--gold-050); color: var(--gold-700); font-weight: 700; }
.giving-channel { border: 1.5px dashed var(--gold); border-radius: var(--radius); background: var(--white); }
hr.gold-rule { border: 0; height: 2px; width: 60px; background: var(--gold); opacity: 1; border-radius: 2px; }

/* ============================================================
   Responsive scaling — tablets & phones
   ============================================================ */
@media (max-width: 991px) {
  .section { padding: 4rem 0; }
  .home-hero { min-height: min(84vh, 720px); }
}
@media (max-width: 767px) {
  .section { padding: 3.25rem 0; }
  .section-tight { padding: 2.5rem 0; }
  .home-hero { min-height: 74vh; }
  .home-hero-inner { padding: 6rem 0 2.4rem; }
  .home-hero .hero-sub { font-size: 1rem; }
  .intro-quote { font-size: 1.35rem; }
  .statement-card { padding: 1.6rem; }
  /* stack side-by-side hero-strip cells cleanly */
  .hero-strip { max-width: 100%; }
  /* keep section headers from crowding action buttons */
  .section-title { font-size: clamp(1.6rem, 6vw, 2.1rem); }
}
@media (max-width: 575px) {
  .section { padding: 2.75rem 0; }
  .btn { padding: .58rem 1.25rem; }
  .btn-lg { padding: .68rem 1.4rem; font-size: 1rem; }
  .hero-actions { gap: .6rem; }
  .hero-actions .btn { flex: 1 1 auto; text-align: center; }
  .cd-box { min-width: 0; flex: 1; }
  .stat-number { font-size: 2.4rem; }
  /* team & value grids: 2-up stays, but tighten */
  .team-card, .value-card { padding: 1.2rem .8rem; }
}

/* ============================================================
   About page
   ============================================================ */
/* Framed image with a gold offset border */
.frame-offset { position: relative; margin: 0 18px 18px 0; }
.frame-offset img { position: relative; z-index: 2; border-radius: var(--radius); box-shadow: var(--sh-lg); width: 100%; display: block; }
.frame-offset::before { content: ""; position: absolute; z-index: 1; inset: 18px -18px -18px 18px; border: 2px solid var(--gold); border-radius: var(--radius); }
@media (max-width: 767px) { .frame-offset { margin: 0 12px 12px 0; } .frame-offset::before { inset: 12px -12px -12px 12px; } }

/* Big statement blocks (mission / vision) */
.statement-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 2.2rem; box-shadow: var(--sh-sm); height: 100%; position: relative; overflow: hidden; }
.statement-card::before { content: ""; position: absolute; top: 0; left: 0; width: 5px; height: 100%; background: linear-gradient(var(--gold), var(--gold-200)); }
.statement-label { font-family: var(--ui); text-transform: uppercase; letter-spacing: .16em; font-size: .74rem; font-weight: 700; color: var(--gold-700); }
.statement-text { font-family: var(--serif); font-size: clamp(1.25rem, 2.2vw, 1.7rem); font-weight: 500; line-height: 1.34; color: var(--ink-900); margin: .6rem 0 0; text-wrap: balance; }

/* Core value tiles */
.value-card { text-align: center; padding: 2rem 1.4rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--sh-sm); transition: transform .25s, box-shadow .25s; height: 100%; }
.value-card:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }
.value-icon { width: 68px; height: 68px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 1.7rem; background: var(--ink-900); color: var(--gold-200); margin-bottom: 1rem; }

/* Diocesan theme / scripture ribbon */
.theme-ribbon { background: linear-gradient(120deg, var(--gold-700), var(--gold), var(--gold-400)); color: var(--ink-900); }
.theme-ribbon .tr-eyebrow { text-transform: uppercase; letter-spacing: .2em; font-weight: 700; font-size: .74rem; color: rgba(27,23,18,.7); }
.theme-ribbon .tr-quote { font-family: var(--serif); font-weight: 600; font-size: clamp(1.4rem, 3vw, 2.2rem); line-height: 1.3; margin: .5rem 0; text-wrap: balance; }
.theme-ribbon .tr-ref { font-weight: 700; font-size: .95rem; color: var(--ink-800); }

/* Team page */
.team-portrait { width: 100%; max-width: 220px; aspect-ratio: 1/1; object-fit: cover; object-position: top; border-radius: var(--radius); box-shadow: var(--sh-md); border: 3px solid var(--gold); }
.team-card { text-align: center; padding: 1.6rem 1rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--sh-sm); transition: transform .25s, box-shadow .25s; height: 100%; }
.team-card:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }
.team-avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; object-position: top; border: 3px solid var(--gold); display: inline-flex; align-items: center; justify-content: center; }
.team-initials { background: var(--ink-900); color: var(--gold-200); font-family: var(--serif); font-size: 2.2rem; font-weight: 600; }

/* History timeline */
.timeline { position: relative; padding: 1rem 0; }
.timeline::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: linear-gradient(var(--gold), var(--gold-200)); transform: translateX(-50%); }
.tl-item { position: relative; width: 50%; padding: 0 2.6rem 2.4rem; }
.tl-item:nth-child(odd) { left: 0; text-align: right; }
.tl-item:nth-child(even) { left: 50%; text-align: left; }
.tl-dot { position: absolute; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--gold); border: 4px solid var(--cream); box-shadow: 0 0 0 2px var(--gold); }
.tl-item:nth-child(odd) .tl-dot { right: -9px; }
.tl-item:nth-child(even) .tl-dot { left: -9px; }
.tl-year { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--gold-700); line-height: 1; }
.tl-title { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: var(--ink-900); margin: .35rem 0 .4rem; }
.tl-text { font-size: .92rem; color: var(--ink-soft); margin: 0; }
.section-sand .tl-dot { border-color: var(--sand); }
@media (max-width: 767px) {
  .timeline::before { left: 9px; }
  .tl-item, .tl-item:nth-child(odd), .tl-item:nth-child(even) { width: 100%; left: 0; text-align: left; padding: 0 0 2rem 2.4rem; }
  .tl-item:nth-child(odd) .tl-dot, .tl-item:nth-child(even) .tl-dot { left: 0; right: auto; }
}
