/* ============================================================================
   Biserica „Sfinții Voievozi" — Ploiești
   Design system + public components. Plain CSS, no build step.
   Theme: light + copper. Type: Playfair Display (headings) / EB Garamond (body).
   ========================================================================== */

/* ---- 1. Tokens ----------------------------------------------------------- */
:root {
  /* Copper accents */
  --copper:       #B87333;   /* decorative: borders, icons, fills, hover glow */
  --copper-deep:  #7C4A2D;   /* links & buttons — AA on light */
  --copper-dark:  #6E3B1E;   /* deepest accent, headings flourish */
  --copper-soft:  #C98B4E;   /* lighter copper for subtle fills */
  --copper-tint:  #F0E3D4;   /* very pale copper wash */

  /* Surfaces & ink */
  --bg:        #FAF7F2;      /* warm alabaster page */
  --surface:   #FFFFFF;      /* cards / raised */
  --surface-2: #F4EDE2;      /* alt sections */
  --surface-3: #EFE6D8;      /* deeper warm panel */
  --ink:       #2B2320;      /* primary text */
  --ink-soft:  #5A4F47;      /* muted text (AA on light) */
  --ink-faint: #6E6256;      /* captions / small labels — AA on all light surfaces */
  --line:      #E7DECE;      /* hairline borders */
  --line-2:    #DBCDB6;      /* stronger hairline */

  /* Dark (hero + footer) */
  --dark:        #241813;    /* espresso brown */
  --dark-2:      #322015;    /* lifted dark panel */
  --on-dark:     #F6EFE6;    /* cream text on dark */
  --on-dark-soft:#D9CBBA;    /* muted cream */
  --copper-lite: #E0A569;    /* copper that reads AA on dark */

  /* Type */
  --f-serif: "Playfair Display", "Times New Roman", Georgia, serif;
  --f-body:  "EB Garamond", Georgia, "Times New Roman", serif;

  /* Spacing scale */
  --s-1: .25rem; --s-2: .5rem;  --s-3: .75rem; --s-4: 1rem;   --s-5: 1.5rem;
  --s-6: 2rem;   --s-7: 3rem;   --s-8: 4rem;   --s-9: 6rem;

  --container: 1180px;
  --radius:   3px;
  --radius-lg: 6px;

  --shadow-sm: 0 1px 2px rgba(70, 45, 25, .06);
  --shadow-md: 0 10px 30px -12px rgba(80, 50, 25, .22);
  --shadow-lg: 0 24px 60px -22px rgba(70, 42, 20, .34);

  /* Copper glow — replaces solid accent bars on cards/media. Faint ring + soft
     halo in the brand copper; the -strong variant is the hover/emphasis state. */
  --glow:        0 0 0 1px color-mix(in srgb, var(--copper) 22%, transparent),
                 0 2px 16px -2px color-mix(in srgb, var(--copper) 30%, transparent);
  --glow-strong: 0 0 0 1px color-mix(in srgb, var(--copper) 46%, transparent),
                 0 6px 26px -3px color-mix(in srgb, var(--copper) 52%, transparent);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---- 2. Reset & base ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  font-family: var(--f-body);
  font-size: 1.125rem;
  line-height: 1.72;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "liga" 1, "kern" 1;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--copper-deep); text-decoration: none; }
a:hover { color: var(--copper-dark); }
::selection { background: var(--copper); color: #fff; }

h1, h2, h3, h4 {
  font-family: var(--f-serif);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -.01em;
  color: var(--ink);
}
h2 { font-size: clamp(1.9rem, 3.8vw, 2.85rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.65rem); font-weight: 600; }
p { text-wrap: pretty; }
strong { font-weight: 700; }

:focus-visible {
  outline: 2px solid var(--copper-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---- 3. Layout ----------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 4rem);
}
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--surface { background: var(--surface); }
.section--alt     { background: var(--surface-2); }
.section--panel   { background: var(--surface-3); }
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--copper-deep); color: #fff; padding: .6rem 1rem; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---- 4. Eyebrow, headings, dividers -------------------------------------- */
.eyebrow {
  display: inline-block;
  font-family: var(--f-body);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--copper-deep);
}
.eyebrow--ondark { color: var(--copper-lite); }

.section-head { max-width: 62ch; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: var(--s-4); }
.section-head h2 { margin-bottom: var(--s-4); }
.section-head__lead { color: var(--ink-soft); font-size: 1.16rem; }
.section-head--center .section-head__lead { margin-inline: auto; }

.rule {
  width: 64px; height: 2px; border: 0; margin: var(--s-5) 0;
  background: linear-gradient(90deg, var(--copper), transparent);
}
.section-head--center .rule { margin-inline: auto; background: linear-gradient(90deg, transparent, var(--copper), transparent); }

/* Ornament divider (copper, with center glyph) */
.ornament {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  color: var(--copper);
  padding-block: clamp(2rem, 5vw, 3.5rem);
}
.ornament::before, .ornament::after {
  content: ""; height: 1px; width: min(28vw, 220px);
  background: linear-gradient(90deg, transparent, var(--line-2) 35%, var(--copper));
}
.ornament::after { transform: scaleX(-1); }
.ornament svg { width: 34px; height: 34px; opacity: .9; }
.ornament--quiet { color: var(--copper-soft); }

.text-flourish { color: var(--copper-deep); font-style: italic; }

/* ---- 5. Header / nav ----------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--surface);                 /* white navbar */
  border-bottom: 1px solid var(--line);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line-2);
  box-shadow: 0 6px 24px -16px rgba(70, 42, 20, .5);
}
.site-header__inner {
  max-width: var(--container); margin-inline: auto;
  padding: .85rem clamp(1.25rem, 5vw, 4rem);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__mark { width: 42px; height: 42px; flex: none; }
.brand__name {
  display: block; font-family: var(--f-serif); font-weight: 600;
  font-size: 1.18rem; line-height: 1.05; letter-spacing: -.01em;
}
.brand__sub {
  display: block; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--copper-deep); margin-top: .15rem;
}

.nav { display: flex; align-items: center; gap: clamp(.75rem, 2vw, 1.85rem); }
.nav__link {
  position: relative; display: inline-flex; align-items: center; gap: .25rem;
  font-family: var(--f-body); font-size: .82rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase; color: var(--copper-deep);
  padding-block: .55rem; background: none; border: 0; cursor: pointer;
  transition: color .25s var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--copper); transition: right .3s var(--ease);
}
.nav__link:hover { color: var(--copper-dark); }
.nav__link:hover::after { right: 0; }
.nav__link.is-active { color: var(--copper-dark); }
.nav__link.is-active::after { right: 0; }

/* Despre dropdown (desktop) */
.nav__group { position: relative; display: inline-flex; align-items: center; }
.nav__chev { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.nav__group:hover .nav__chev,
.nav__group:focus-within .nav__chev,
.nav__group.is-open .nav__chev { transform: rotate(180deg); }
/* Single copper accent: the trigger's own underline (like the sibling links),
   shown whenever the menu is open — no competing bar on the panel itself. */
.nav__group:hover .nav__link--btn::after,
.nav__group:focus-within .nav__link--btn::after,
.nav__group.is-open .nav__link--btn::after { right: 0; }
.nav__menu {
  position: absolute; top: 100%; left: 50%; min-width: 232px; margin-top: 11px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: .4rem; display: flex; flex-direction: column; gap: .1rem;
  opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(6px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  z-index: 60;
}
/* Invisible bridge across the gap so the panel stays open while the cursor travels to it. */
.nav__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -13px; height: 13px; }
.nav__group:hover .nav__menu,
.nav__group:focus-within .nav__menu,
.nav__group.is-open .nav__menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav__menu-link {
  display: block; padding: .6rem .85rem; border-radius: var(--radius);
  font-family: var(--f-body); font-size: .98rem; font-weight: 500; letter-spacing: 0;
  text-transform: none; color: var(--ink-soft); white-space: nowrap;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.nav__menu-link:hover, .nav__menu-link.is-active { background: var(--copper-tint); color: var(--copper-dark); }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 46px; height: 46px; border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--surface); color: var(--copper-deep); cursor: pointer;
}
.nav-toggle:hover { border-color: var(--copper); color: var(--copper-dark); }
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .i-close { display: none; }
.nav-toggle.is-open { z-index: 101; position: relative; }
.nav-toggle.is-open .i-menu { display: none; }
.nav-toggle.is-open .i-close { display: block; }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(255, 255, 255, .985);
  backdrop-filter: blur(10px);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: .2rem; padding: 5.5rem 1.5rem 2.5rem; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-menu__list { display: flex; flex-direction: column; align-items: center; gap: .35rem; margin: auto 0; }
.mobile-menu__link {
  font-family: var(--f-serif); font-size: clamp(1.9rem, 6.5vw, 2.4rem); color: var(--ink);
  padding: .5rem 1rem;
}
.mobile-menu__link.is-active, .mobile-menu__link:hover { color: var(--copper-deep); }
.mobile-menu__group {
  display: flex; flex-direction: column; align-items: center; gap: .15rem;
  margin: .7rem 0; padding: .9rem 0; border-block: 1px solid var(--line);
  width: min(320px, 86vw);
}
.mobile-menu__grouplabel {
  font-family: var(--f-body); font-size: .85rem; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--copper-deep); margin-bottom: .45rem;
}
.mobile-menu__group.is-active .mobile-menu__grouplabel { color: var(--copper-dark); }
.mobile-menu__sublink { font-family: var(--f-serif); font-size: clamp(1.45rem, 5vw, 1.8rem); color: var(--ink-soft); padding: .35rem .5rem; }
.mobile-menu__sublink.is-active, .mobile-menu__sublink:hover { color: var(--copper-deep); }

/* ---- 6. Buttons ---------------------------------------------------------- */
.btn {
  --btn-bg: var(--copper-deep); --btn-fg: #fff; --btn-bd: var(--copper-deep);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--f-body); font-size: .82rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  padding: .85rem 1.6rem; border-radius: var(--radius);
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bd);
  cursor: pointer; transition: transform .15s var(--ease), background .2s var(--ease),
              box-shadow .25s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { background: var(--copper-dark); color: #fff; box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--lg { padding: 1rem 2rem; font-size: .85rem; }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--copper-deep); --btn-bd: var(--line-2);
}
.btn--ghost:hover { background: var(--copper-tint); color: var(--copper-dark); border-color: var(--copper); }
.btn--ondark {
  --btn-bg: var(--copper); --btn-fg: var(--dark); --btn-bd: var(--copper);
}
.btn--ondark:hover { background: var(--copper-soft); color: var(--dark); border-color: var(--copper-soft); }
.btn--ondark-ghost {
  --btn-bg: transparent; --btn-fg: var(--on-dark); --btn-bd: color-mix(in srgb, var(--on-dark) 45%, transparent);
}
.btn--ondark-ghost:hover { background: rgba(255,255,255,.08); color: #fff; border-color: var(--copper-lite); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--copper-deep);
}
.link-arrow svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.link-arrow--ondark { color: var(--copper-lite); }

/* ---- 7. Hero ------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 120% at 82% -10%, rgba(184,115,51,.28), transparent 55%),
    radial-gradient(90% 90% at 0% 110%, rgba(110,59,30,.5), transparent 60%),
    linear-gradient(155deg, #2c1d14 0%, var(--dark) 45%, #1d130d 100%);
  color: var(--on-dark);
  isolation: isolate;
}
.hero__art {
  position: absolute; inset: 0; z-index: -3; overflow: hidden;
  display: flex; align-items: center; justify-content: flex-end;
  opacity: .14; pointer-events: none; transition: opacity .6s var(--ease);
}
.hero__art svg { height: 118%; width: auto; transform: translateX(8%); color: var(--copper-lite); }
.hero__grain { position: absolute; inset: 0; z-index: -2; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 4px 4px; pointer-events: none; }
.hero__inner {
  max-width: var(--container); margin-inline: auto;
  padding: clamp(4.5rem, 12vw, 8.5rem) clamp(1.25rem, 5vw, 4rem) clamp(3.5rem, 9vw, 6rem);
  position: relative;
}
.hero--compact .hero__inner { padding-block: clamp(3.5rem, 9vw, 5.5rem) clamp(2.5rem, 6vw, 4rem); text-align: center; }
.hero--compact .hero__lead { margin-inline: auto; }
.hero__content { max-width: 44rem; width: 100%; }
.hero--compact .hero__content { max-width: 48rem; margin-inline: auto; }
.hero__eyebrow { color: var(--copper-lite); margin-bottom: 1.1rem; }
.hero__title {
  font-family: var(--f-serif); font-weight: 700;
  font-size: clamp(2rem, 7vw, 4rem); line-height: 1.08; letter-spacing: -.02em;
  color: #fff; margin-bottom: 1.3rem;
  overflow-wrap: break-word;
}
.hero__title em { font-style: italic; color: var(--copper-lite); }
.hero__lead { font-size: clamp(1.12rem, 2vw, 1.4rem); color: var(--on-dark-soft); max-width: 38ch; line-height: 1.55; overflow-wrap: break-word; }
.hero--compact .hero__lead { max-width: 60ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 1.2rem 2.4rem; margin-top: 2.4rem;
  padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.12);
}
.hero__meta div { display: flex; flex-direction: column; gap: .15rem; }
.hero__meta dt { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--copper-lite); }
.hero__meta dd { font-family: var(--f-serif); font-size: 1.25rem; color: var(--on-dark); }

/* Admin-set background photo (faded in by hero.js; falls back to the graphic).
   Framing (focus/zoom), frosted-glass blur and tint are driven by CSS variables
   that hero.js sets per page from data/heroes.json. The negative inset scales
   with the blur so the blurred edges never reveal a gap behind the photo. */
.hero__photo {
  position: absolute; z-index: -3;
  inset: calc(var(--hero-blur, 0px) * -2.4);
  background-position: var(--hero-focus-x, 50%) var(--hero-focus-y, 50%);
  background-size: cover; background-repeat: no-repeat;
  transform: scale(var(--hero-zoom, 1));
  transform-origin: var(--hero-focus-x, 50%) var(--hero-focus-y, 50%);
  filter: blur(var(--hero-blur, 0px));
  opacity: 0; transition: opacity .6s var(--ease);
}
/* Tinted-glass overlay: a warm-dark vignette that keeps the white type legible.
   Its strength is the admin "tint" value (--hero-tint, 0–1). */
.hero__tint {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  opacity: 0; transition: opacity .6s var(--ease);
  background: linear-gradient(180deg,
      rgba(26,16,11,.92) 0%, rgba(26,16,11,.40) 34%,
      rgba(22,13,8,.50) 66%, rgba(16,10,6,.94) 100%);
}
.hero--has-photo .hero__photo { opacity: 1; }
.hero--has-photo .hero__tint  { opacity: var(--hero-tint, .7); }
.hero--has-photo .hero__art   { opacity: 0; }
.hero--has-photo .hero__grain { display: none; }   /* remove the dot grain over photos */
@media (prefers-reduced-motion: reduce) {
  .hero__photo, .hero__tint, .hero__art { transition: none; }
}

/* Home hero (the only non-compact one): fills the screen below the sticky
   header, with the title near the centre and the stats line at the bottom. */
.hero:not(.hero--compact) {
  display: flex;
  min-height: calc(100vh - var(--header-h, 4.5rem));
  min-height: calc(100svh - var(--header-h, 4.5rem));
}
.hero:not(.hero--compact) .hero__inner {
  display: flex; width: 100%;
  padding-block: clamp(2.5rem, 7vw, 5rem) clamp(1.75rem, 4vw, 2.75rem);
}
.hero:not(.hero--compact) .hero__content { display: flex; flex-direction: column; }
.hero:not(.hero--compact) .hero__eyebrow { margin-top: auto; }   /* centre the block… */
.hero:not(.hero--compact) .hero__meta { margin-top: auto; }      /* …and pin stats to the bottom */
.hero:not(.hero--compact) .hero__title {
  display: flex; flex-direction: column; align-items: flex-start; margin-bottom: 1.25rem;
}

/* Title: main line always on one line and scaled to the viewport; subtitle smaller. */
.hero__title-line { display: block; white-space: nowrap; font-size: clamp(1.4rem, 6.3vw, 3.4rem); line-height: 1.04; }
.hero__title-sub {
  display: block; font-size: clamp(1.05rem, 4.1vw, 2.05rem); line-height: 1.12;
  font-weight: 600; letter-spacing: -.01em; color: #fff; margin-top: .22em;
}

/* Phone: centre the whole hero and enlarge the type. Desktop (> 760px) keeps
   the asymmetric, left-aligned layout untouched. */
@media (max-width: 760px) {
  .hero:not(.hero--compact) .hero__inner { padding-inline: clamp(1rem, 5vw, 1.6rem); }
  .hero:not(.hero--compact) .hero__content {
    align-items: center; text-align: center; max-width: 34rem; margin-inline: auto;
  }
  .hero:not(.hero--compact) .hero__title { align-items: center; }
  .hero:not(.hero--compact) .hero__lead { margin-inline: auto; }
  .hero:not(.hero--compact) .hero__actions { justify-content: center; }
  .hero:not(.hero--compact) .hero__meta { justify-content: center; text-align: center; }

  /* Lift the hero text block toward the top so more of the page is visible on a
     phone (overrides the dual margin-top:auto centring used on desktop), and give
     the lead → buttons → stats some extra breathing room. */
  .hero:not(.hero--compact) .hero__eyebrow { margin-top: clamp(1.5rem, 7vw, 3rem); }
  .hero:not(.hero--compact) .hero__actions { margin-top: clamp(2.5rem, 8vw, 3.25rem); }
  .hero:not(.hero--compact) .hero__meta    { margin-top: clamp(3rem, 10vw, 4.5rem); }

  .hero__title-line { font-size: clamp(1.5rem, 7.8vw, 3rem); }
  .hero__title-sub  { font-size: clamp(1.22rem, 5.6vw, 2.1rem); }
  .hero:not(.hero--compact) .hero__lead { font-size: clamp(1.18rem, 4.6vw, 1.55rem); max-width: 32ch; }
}

/* ---- 8. Cards ------------------------------------------------------------ */
.grid { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
.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(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.1rem);
  position: relative; transition: box-shadow .3s var(--ease), transform .3s var(--ease), border-color .3s var(--ease);
}
.card--accent { box-shadow: var(--glow); }
.card--hover:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--line-2); }
.card--accent.card--hover:hover, .card--accent:hover { box-shadow: var(--glow-strong); }
.card__icon {
  width: 56px; height: 56px; display: grid; place-items: center;
  border-radius: 50%; background: var(--copper-tint); color: var(--copper-deep);
  margin-bottom: 1.1rem;
}
.card__icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: .6rem; }
.card p { color: var(--ink-soft); font-size: 1.05rem; }

/* Hram cards (two big highlight tiles) */
.hram-card {
  position: relative; overflow: hidden; text-align: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(2rem, 4vw, 3rem);
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
}
.hram-card::before {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background: radial-gradient(80% 60% at 50% 0%, var(--copper-tint), transparent 70%);
}
.hram-card > * { position: relative; }
.hram-card__icon { color: var(--copper); }
.hram-card__icon svg { width: 40px; height: 40px; }
.hram-card__label { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--copper-deep); font-weight: 700; }
.hram-card__date { font-family: var(--f-serif); font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--ink); }
.hram-card__saint { color: var(--ink-soft); font-size: 1.1rem; }

/* Gallery (placeholder tiles, ready for real photos) */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 1.5rem); }
.gallery__tile {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line-2); background: linear-gradient(155deg, #fff, var(--surface-3) 55%, var(--copper-tint));
  display: flex; align-items: flex-end; padding: 1.1rem; isolation: isolate;
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.gallery__tile:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.gallery__icon { position: absolute; inset: 0; z-index: -1; display: grid; place-items: center; color: var(--copper); opacity: .15; }
.gallery__icon svg { width: 48%; height: auto; }
.gallery__tag {
  display: inline-block; font-size: .64rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--copper-deep); background: rgba(255, 255, 255, .82); border: 1px dashed var(--copper-soft);
  border-radius: 999px; padding: .14rem .6rem; margin-bottom: .5rem;
}
.gallery__label { display: block; font-family: var(--f-serif); font-size: 1.15rem; line-height: 1.2; color: var(--ink); }

/* Facts strip */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.facts__item { background: var(--surface); padding: 1.5rem 1rem; text-align: center; }
.facts__num { display: block; font-family: var(--f-serif); font-size: clamp(1.5rem, 2.4vw, 2rem); color: var(--copper-dark); line-height: 1.05; }
.facts__label { display: block; font-size: .84rem; color: var(--ink-soft); margin-top: .45rem; }

/* ---- 9. Split (image/text) ---------------------------------------------- */
.split {
  display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center;
  grid-template-columns: 1fr 1fr;
}
.split--media-left { grid-template-columns: 5fr 6fr; }
.split__media {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line-2); background: var(--surface-3); box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 5;
}
.split__media svg, .split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__media--art { display: grid; place-items: center; padding: 2rem;
  background: radial-gradient(120% 90% at 50% 10%, #fff, var(--surface-3)); }
.split__media--art svg { width: 86%; height: auto; color: var(--copper-deep); }
.split__body { display: flex; flex-direction: column; gap: 1.1rem; }
.split__body p { color: var(--ink-soft); }
.split__body .lead { font-size: 1.2rem; color: var(--ink); }

/* ---- 10. Timeline -------------------------------------------------------- */
.timeline { position: relative; margin-top: var(--s-7); }
.timeline::before {
  content: ""; position: absolute; left: 19px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(var(--copper), var(--line-2));
}
.timeline__item { position: relative; padding: 0 0 2.4rem 3.6rem; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__dot {
  position: absolute; left: 8px; top: 4px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--copper);
  display: grid; place-items: center;
}
.timeline__dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--copper); }
.timeline__era { font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); }
.timeline__year { font-family: var(--f-serif); font-size: 1.5rem; color: var(--copper-dark); margin: .1rem 0 .5rem; }
.timeline__title { font-family: var(--f-serif); font-size: 1.2rem; margin-bottom: .35rem; }
.timeline__body { color: var(--ink-soft); font-size: 1.04rem; }

/* ---- 11. Patrimony table ------------------------------------------------- */
.patrimony {
  width: 100%; border-collapse: collapse; margin-top: var(--s-6);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
}
.patrimony caption {
  caption-side: top; text-align: left; padding: 0 0 var(--s-4);
  color: var(--ink-faint); font-size: .92rem;
}
.patrimony th, .patrimony td { text-align: left; padding: 1.05rem 1.25rem; vertical-align: top; border-bottom: 1px solid var(--line); }
.patrimony thead th {
  background: var(--dark); color: var(--on-dark);
  font-family: var(--f-body); font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.patrimony thead th:first-child { border-right: 1px solid rgba(255,255,255,.08); }
.patrimony tbody tr:last-child th, .patrimony tbody tr:last-child td { border-bottom: 0; }
.patrimony tbody tr:nth-child(even) { background: var(--surface-2); }
.patrimony th[scope="row"] { font-family: var(--f-serif); font-weight: 600; font-size: 1.12rem; color: var(--copper-dark); width: 34%; }
.patrimony td { color: var(--ink-soft); }

/* ---- 12. Info rows / contact -------------------------------------------- */
.info-list { display: flex; flex-direction: column; gap: 1.3rem; }
.info-row { display: flex; gap: 1rem; align-items: flex-start; }
.info-row__icon { flex: none; width: 44px; height: 44px; border-radius: 50%;
  background: var(--copper-tint); color: var(--copper-deep); display: grid; place-items: center; }
.info-row__icon svg { width: 22px; height: 22px; }
.info-row__label { display: block; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--copper-deep); font-weight: 700; margin-bottom: .15rem; }
.info-row__value { color: var(--ink); font-size: 1.08rem; }
.info-row__value a { color: inherit; border-bottom: 1px solid var(--line-2); }
.info-row__value a:hover { color: var(--copper-deep); }
.todo {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--copper-deep); background: var(--copper-tint);
  border: 1px dashed var(--copper-soft); border-radius: 999px; padding: .12rem .6rem; margin-left: .35rem;
  vertical-align: middle;
}
.map-wrap { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); aspect-ratio: 16 / 11; background: var(--surface-3); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

/* ---- 13. Pull-quote ------------------------------------------------------ */
.quote-band { background: var(--surface-2); border-block: 1px solid var(--line); }
.quote {
  max-width: 50ch; margin-inline: auto; text-align: center;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
.quote__mark { color: var(--copper); font-family: var(--f-serif); font-size: 3.5rem; line-height: .4; display: block; margin-bottom: .6rem; }
.quote p { font-family: var(--f-serif); font-style: italic; font-size: clamp(1.4rem, 3vw, 2rem); color: var(--ink); line-height: 1.4; }
.quote cite { display: block; margin-top: 1.2rem; font-style: normal; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--copper-deep); }

/* ---- 14. Prose ----------------------------------------------------------- */
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1.15rem; }
.prose p { color: var(--ink-soft); }
.prose h3 { margin-top: 2.2rem; color: var(--ink); }
.prose strong { color: var(--ink); }
.prose .lead { font-size: 1.24rem; color: var(--ink); line-height: 1.6; }
.prose ul { padding-left: 1.2rem; color: var(--ink-soft); }
.prose li { margin-top: .5rem; }
.prose li::marker { color: var(--copper); }

/* ---- 15. Footer ---------------------------------------------------------- */
.site-footer {
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(184,115,51,.16), transparent 55%),
    var(--dark);
  color: var(--on-dark-soft); margin-top: auto;
}
.site-footer a { color: var(--on-dark-soft); }
.site-footer a:hover { color: var(--copper-lite); }
.site-footer__grid {
  display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.2fr; gap: clamp(1.5rem, 4vw, 3rem);
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.site-footer__brand { max-width: 34ch; }
.site-footer .brand__name { color: var(--on-dark); }
.site-footer .brand { color: var(--on-dark); }
.site-footer__intro { margin-top: 1rem; max-width: 36ch; color: var(--on-dark-soft); font-size: 1.02rem; }
.site-footer__title { font-family: var(--f-body); font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; color: var(--copper-lite); margin-bottom: 1rem; font-weight: 700; }
.site-footer__list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.site-footer__list p { color: var(--on-dark-soft); }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-block: 1.4rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem;
  font-size: .86rem; color: var(--on-dark-soft);
}

/* ---- 16. Utilities & reveal ---------------------------------------------- */
.text-center { text-align: center; }
.mt-6 { margin-top: var(--s-6); }
.mt-7 { margin-top: var(--s-7); }
.flow > * + * { margin-top: 1.1rem; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: .08s; }
.reveal.delay-2 { transition-delay: .16s; }
.reveal.delay-3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---- 17. Responsive ------------------------------------------------------ */
@media (max-width: 960px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; max-width: none; }
  .split, .split--media-left { grid-template-columns: 1fr; }
  .split__media { aspect-ratio: 16 / 10; order: -1; }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr; }
  .patrimony th[scope="row"] { width: auto; }
  body { font-size: 1.06rem; }
}
@media (max-width: 420px) {
  .hero__meta { gap: .9rem 1.4rem; }
  .hero__meta dt { letter-spacing: .12em; }
  .hero__meta dd { font-size: 1.1rem; }
  .btn--lg { padding: .9rem 1.4rem; }
}

/* ============================================================================
   18. Announcements · Clergy · Gallery (feature-parity components)
   ========================================================================== */

/* ---- Announcements ---- */
.ann-list { display: grid; gap: 1rem; max-width: 880px; margin-inline: auto; }
.ann-card {
  display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: start;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.1rem 1.3rem;
  box-shadow: var(--glow);
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
.ann-card:hover { box-shadow: var(--glow-strong); transform: translateY(-2px); }
.ann-card__date { width: 58px; text-align: center; border-right: 1px solid var(--line); padding-right: 1rem; }
.ann-card__date .day { display: block; font-family: var(--f-serif); font-size: 1.7rem; line-height: 1; color: var(--copper-dark); }
.ann-card__date .month { display: block; font-size: .7rem; letter-spacing: .14em; color: var(--ink-faint); margin-top: .2rem; }
.ann-card__tag { display: inline-block; font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--copper-deep); background: var(--copper-tint); border-radius: 999px; padding: .16rem .6rem; margin-bottom: .45rem; }
.ann-card__title { font-family: var(--f-serif); font-size: 1.3rem; line-height: 1.2; margin-bottom: .3rem; }
.ann-card__text { color: var(--ink-soft); }

/* ---- Clergy cards ---- */
.clergy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.4rem); }
.clergy-card { text-align: center; display: flex; flex-direction: column; align-items: center; }
.clergy-card__photo {
  border: 0; background: none; padding: 0; cursor: zoom-in;
  width: clamp(128px, 18vw, 172px); height: clamp(128px, 18vw, 172px);
  border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 0 1px var(--line-2), var(--shadow-md);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.clergy-card__photo:hover { transform: translateY(-4px); box-shadow: 0 0 0 1.5px var(--copper), var(--shadow-lg); }
.clergy-card__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.clergy-card__role { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--copper-deep); font-weight: 700; margin-top: 1rem; }
.clergy-card__name { font-family: var(--f-serif); font-size: 1.3rem; line-height: 1.2; margin-top: .15rem; }
.clergy-card__bio { color: var(--ink-soft); font-size: .98rem; max-width: 30ch; margin-top: .5rem; }

/* ---- Clergy lightbox ---- */
.clergy-lightbox {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 2rem;
  background: rgba(36, 24, 19, .72); backdrop-filter: blur(5px);
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
}
.clergy-lightbox.is-open { opacity: 1; visibility: visible; }
.clergy-lightbox__close {
  position: absolute; top: 1.2rem; right: 1.2rem; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.1); color: var(--on-dark); cursor: pointer; display: grid; place-items: center;
}
.clergy-lightbox__close:hover { background: rgba(255,255,255,.2); }
.clergy-lightbox__close svg { width: 22px; height: 22px; }
.clergy-lightbox__figure { text-align: center; transform: scale(.95); transition: transform .3s var(--ease); }
.clergy-lightbox.is-open .clergy-lightbox__figure { transform: scale(1); }
.clergy-lightbox__frame { width: min(74vw, 360px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; margin: 0 auto;
  border: 4px solid rgba(255,255,255,.16); box-shadow: var(--shadow-lg); }
.clergy-lightbox__frame img { width: 100%; height: 100%; object-fit: cover; }
.clergy-lightbox__cap { margin-top: 1.3rem; color: var(--on-dark); }
.clergy-lightbox__role { display: block; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--copper-lite); }
.clergy-lightbox__name { display: block; font-family: var(--f-serif); font-size: 1.5rem; margin-top: .15rem; }

/* ---- Gallery (masonry) ---- */
.gallery-filters { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: var(--s-6); }
.gallery-filter {
  display: inline-flex; align-items: center; gap: .5rem; font-family: var(--f-body); font-size: .8rem; font-weight: 700; letter-spacing: .05em;
  padding: .5rem .95rem; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--ink-soft); cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.gallery-filter:hover { border-color: var(--copper); color: var(--copper-dark); }
.gallery-filter.is-active { background: var(--copper-deep); color: #fff; border-color: var(--copper-deep); }
.gallery-filter__count { font-size: .7rem; opacity: .72; }
.gallery-grid { list-style: none; padding: 0; margin: 0; column-count: 3; column-gap: clamp(.8rem, 2vw, 1.2rem); }
.gallery-item { break-inside: avoid; margin-bottom: clamp(.8rem, 2vw, 1.2rem); }
.gallery-tile { display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; position: relative;
  border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-3); box-shadow: var(--shadow-sm); }
.gallery-tile__img { width: 100%; height: auto; display: block; transition: transform .45s var(--ease); }
.gallery-tile:hover .gallery-tile__img { transform: scale(1.04); }
.gallery-tile__overlay { position: absolute; inset: auto 0 0 0; padding: 1.6rem .9rem .8rem; opacity: 0;
  background: linear-gradient(transparent, rgba(36,24,19,.8)); transition: opacity .3s var(--ease); }
.gallery-tile:hover .gallery-tile__overlay, .gallery-tile:focus-visible .gallery-tile__overlay { opacity: 1; }
.gallery-tile__title { color: #fff; font-family: var(--f-serif); font-size: 1.05rem; }
.gallery-state { text-align: center; padding: 3.5rem 1rem; color: var(--ink-soft); }
.gallery-state__icon { color: var(--copper); display: inline-block; }
.gallery-state__icon svg { width: 40px; height: 40px; }
.gallery-state h3 { font-size: 1.25rem; margin: .7rem 0 .3rem; }

/* ---- Shared fullscreen lightbox (gallery) ---- */
.lightbox { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column;
  background: rgba(20, 13, 9, .93); opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.2rem; color: var(--on-dark-soft); }
.lightbox__counter { font-size: .85rem; letter-spacing: .1em; }
.lightbox__btn, .lightbox__nav { border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.08); color: #fff; cursor: pointer; display: grid; place-items: center; }
.lightbox__btn { width: 44px; height: 44px; border-radius: 50%; }
.lightbox__btn svg { width: 22px; height: 22px; }
.lightbox__stage { flex: 1; display: flex; align-items: center; justify-content: center; gap: 1rem; padding: 0 1rem; min-height: 0; }
.lightbox__figure { margin: 0; max-width: min(92vw, 1100px); transition: opacity .25s var(--ease); display: flex; }
.lightbox__figure img { max-width: 100%; max-height: 76vh; object-fit: contain; border-radius: var(--radius);
  box-shadow: var(--shadow-lg),
    0 0 0 1px color-mix(in srgb, var(--copper) 38%, transparent),
    0 0 34px -2px color-mix(in srgb, var(--copper) 50%, transparent); }
.lightbox__nav { flex: none; width: 52px; height: 52px; border-radius: 50%; transition: background .2s var(--ease); }
.lightbox__nav:hover { background: rgba(255,255,255,.18); }
.lightbox__nav:disabled { opacity: .3; cursor: default; }
.lightbox__nav svg { width: 26px; height: 26px; }
.lightbox__panel { padding: 1rem 1.5rem 1.6rem; text-align: center; color: var(--on-dark); }
.lightbox__cat {
  display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--copper-lite); background: color-mix(in srgb, var(--copper) 20%, transparent);
  border: 1px solid color-mix(in srgb, var(--copper) 45%, transparent);
  border-radius: 999px; padding: .26rem .85rem; margin-bottom: .7rem;
  box-shadow: 0 0 18px -1px color-mix(in srgb, var(--copper) 65%, transparent);
  text-shadow: 0 0 12px color-mix(in srgb, var(--copper) 70%, transparent);
}
.lightbox__title { font-family: var(--f-serif); font-size: 1.4rem; }
.lightbox__desc { color: var(--on-dark-soft); max-width: 60ch; margin: .4rem auto 0; }

@media (max-width: 960px) {
  .clergy-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { column-count: 2; }
}
@media (max-width: 600px) {
  .gallery-grid { column-count: 1; }
  .lightbox__nav { width: 42px; height: 42px; }
  .lightbox__nav svg { width: 22px; height: 22px; }
}
@media (max-width: 520px) {
  .clergy-grid { grid-template-columns: 1fr; max-width: 320px; margin-inline: auto; }
  .ann-card { grid-template-columns: 1fr; }
  .ann-card__date { display: inline-flex; gap: .4rem; width: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 .4rem; }
}
