/* Saint George Broumana - public site styles (gold + burgundy, RTL) */
:root {
  --ink: #1c1208;
  --gold: #c9a84c;
  --gold-dark: #a07b2a;      /* gold for fills / borders / hover backgrounds */
  --gold-ink: #7d5e18;       /* darker gold for SMALL text on light (≥4.8:1) */
  --gold-light: #e8d5a3;
  --gold-pale: #f5ecd0;
  --cream: #f5f0e8;
  --parchment: #ede5d0;
  --stone: #6d6152;          /* muted warm text - darkened for ~4.9:1 on cream */
  --stone-soft: #8b8070;     /* legacy tone kept for decorative / large elements */
  --burgundy: #7a1f2e;
  --burgundy-light: #a83048;
  --void: #0d0b08;

  /* ── Design tokens (proportion & restraint) ── */
  --font-display: "Cormorant Garamond", serif;
  --font-body: "Amiri", serif;

  --content: 1200px;
  --content-narrow: 720px;

  --space-xs: .5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --section-y: clamp(3.5rem, 7vw, 6rem);   /* lighter on mobile, generous on desktop */

  --border: rgba(201,168,76,.28);          /* fine hairline */
  --border-strong: var(--gold-light);
  --radius-sm: 2px;                         /* parish area stays rectilinear */
  --radius: 4px;

  --shadow-sm: 0 1px 4px rgba(74,15,26,.06);
  --shadow-md: 0 8px 30px rgba(201,168,76,.14);
  --shadow-lg: 0 16px 44px rgba(43,25,10,.16);

  --t-fast: 150ms;
  --t: 250ms;
  --ease: cubic-bezier(.16,.84,.44,1);

  --focus: var(--burgundy);
  --focus-ring: 0 0 0 3px rgba(201,168,76,.55);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; } /* off-canvas menu sits beyond the edge */
body {
  background: var(--cream);
  color: var(--ink);
  font-family: "Amiri", serif;
  direction: rtl;
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.font-cormorant { font-family: "Cormorant Garamond", serif; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.text-gold { color: var(--gold); }
.text-gold-dark { color: var(--gold-ink); }
.text-burgundy { color: var(--burgundy); }
.center { text-align: center; }

/* ── Top byzantine stripe + navbar ── */
.top-stripe { height: 3px; background: linear-gradient(to right, var(--burgundy), var(--gold), var(--burgundy)); }
.navwrap { position: sticky; top: 0; z-index: 50; }
.navbar {
  background: var(--cream);
  border-bottom: 1px solid var(--gold-light);
  backdrop-filter: blur(8px);
  transition: background .35s ease, border-color .35s ease;
}
/* Transparent over the hero (home), turning solid on scroll */
.navwrap.over-hero { position: fixed; left: 0; right: 0; top: 0; }
.navwrap.over-hero .navbar { background: transparent; border-bottom-color: transparent; backdrop-filter: none; }
.navwrap.over-hero.scrolled .navbar { background: var(--cream); border-bottom-color: var(--gold-light); backdrop-filter: blur(8px); }
.navwrap.over-hero:not(.scrolled) .brand .name,
.navwrap.over-hero:not(.scrolled) .nav-links a { color: #fff; }
.navwrap.over-hero:not(.scrolled) .brand .sub { color: rgba(255,255,255,.72); }
.navwrap.over-hero:not(.scrolled) .nav-links a:hover { color: var(--gold-light); }
.navbar .inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand .seal { width: 44px; height: 44px; border-radius: 50%; background: #f8f4ec; box-shadow: 0 1px 6px rgba(74,15,26,.18); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.brand .seal img { width: 88%; height: 88%; object-fit: contain; }
.brand .name { font-weight: 700; font-size: 1.15rem; color: var(--ink); line-height: 1.2; }
.brand .sub { font-family: "Cormorant Garamond", serif; text-transform: uppercase; letter-spacing: .18em; font-size: .6rem; color: var(--stone); }
.nav-links { display: flex; gap: clamp(.85rem, 1.35vw, 1.5rem); align-items: center; }
.nav-links a { font-size: .95rem; color: var(--ink); transition: color .2s; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--burgundy); }
/* Dropdown groups */
.nav-dd { position: relative; }
.nav-dd-t { font-size: .95rem; color: var(--ink); cursor: pointer; transition: color .2s; }
.nav-dd:hover .nav-dd-t, .nav-dd:focus-within .nav-dd-t, .nav-dd-t.active { color: var(--burgundy); }
.navwrap.over-hero:not(.scrolled) .nav-dd-t { color: #fff; }
.navwrap.over-hero:not(.scrolled) .nav-dd:hover .nav-dd-t,
.navwrap.over-hero:not(.scrolled) .nav-dd:focus-within .nav-dd-t { color: var(--gold-light); }
.nav-dd-menu { position: absolute; top: 150%; right: 0; background: var(--cream); border: 1px solid var(--gold-light); box-shadow: 0 14px 34px rgba(0,0,0,.14); padding: .4rem; min-width: 200px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .2s; z-index: 60; }
/* Keyboard users reach the submenu by tabbing: :focus-within opens it, so the
   dropdown is operable without a pointer and without extra JavaScript. */
.nav-dd:hover .nav-dd-menu,
.nav-dd:focus-within .nav-dd-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dd-menu a { display: block; padding: .55rem .8rem; font-size: .9rem; color: var(--ink) !important; border-radius: 2px; }
.nav-dd-menu a::after { display: none; }
.nav-dd-menu a:hover { background: var(--gold-pale); color: var(--burgundy) !important; }
.nav-cta { background: var(--gold); color: var(--void); padding: .5rem 1.1rem; border-radius: 2px; font-weight: 700; }
.nav-cta:hover { background: var(--gold-dark); color: #fff; }
/* Switch to the mobile menu before the desktop row can crowd (Arabic 8 items + search + lang + CTA). */
@media (max-width: 1024px) { .nav-links { display: none; } }

/* Mobile hamburger + menu */
.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-burger span { display: block; width: 24px; height: 2px; background: var(--ink); transition: background .3s; }
.navwrap.over-hero:not(.scrolled) .nav-burger span { background: #fff; }
@media (max-width: 1024px) { .nav-burger { display: flex; } }
.mobile-menu { position: fixed; inset: 0; z-index: 60; background: var(--cream); transform: translateX(100%); transition: transform .35s ease; padding: 5rem 2rem 2rem; overflow-y: auto; }
.mobile-menu.open { transform: translateX(0); }
.mm-close { position: absolute; top: 1.25rem; left: 1.5rem; background: none; border: 0; font-size: 1.6rem; color: var(--burgundy); cursor: pointer; }
.mm-links { display: flex; flex-direction: column; gap: .25rem; }
.mm-links a { font-family: "Amiri", serif; font-size: 1.25rem; color: var(--ink); padding: .7rem .4rem; border-bottom: 1px solid var(--gold-light); }
.mm-links a:hover { color: var(--burgundy); }
.mm-links a.nav-cta { border: 0; text-align: center; border-radius: 2px; color: var(--void); }
.mm-group { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .16em; font-size: .7rem; color: var(--gold-ink); margin: 1rem .4rem .1rem; }
.mm-links a.mm-sub { font-size: 1.05rem; padding-inline-start: 1.2rem; color: var(--stone); }
.mm-links a.mm-sub:hover { color: var(--burgundy); }

/* ── Hero ── */
.hero { position: relative; height: 88vh; min-height: 560px; overflow: hidden; background: var(--void); }
.hero video { position: absolute; inset: 0; width: 100%; height: 108%; object-fit: cover; filter: brightness(.9) contrast(1.03); }
.hero .hero-media { position: absolute; inset: 0; width: 100%; height: 108%; background-size: cover; background-position: center 42%; filter: brightness(.9) contrast(1.03); }
.hero .hero-media.kb { animation: kenburns 24s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.09); } }
/* Fixed (parallax) hero background for image mode */
.hero .hero-media.hero-fixed { background-attachment: fixed; }
.hero .veil { position: absolute; inset: 0; background: linear-gradient(to top, rgba(13,11,8,.62) 0%, rgba(13,11,8,.15) 55%, rgba(13,11,8,.35) 100%); }
.hero .content { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 1rem; }
.hero h1 { color: #fff; font-weight: 700; font-size: clamp(2.6rem, 7vw, 5.5rem); text-shadow: 0 2px 40px rgba(0,0,0,.7); }
.hero .rule { width: 80px; height: 1px; background: linear-gradient(to right, transparent, var(--gold), transparent); margin: 1.2rem 0; }
.hero .loc { color: var(--gold-light); letter-spacing: .12em; font-size: clamp(1.05rem,2.4vw,1.4rem); }
.hero .tag { color: #e8e2d8; font-style: italic; margin-top: 1rem; max-width: 520px; opacity: .85; }
.hero .cross { color: var(--gold-light); font-size: 2rem; letter-spacing: .2em; margin-bottom: 1.4rem; }
.hero-cta { display: flex; gap: .9rem; flex-wrap: wrap; justify-content: center; margin-top: 1.8rem; }
.btn-hero-ghost { background: transparent; border: 1px solid rgba(255,255,255,.7); color: #fff; }
.btn-hero-ghost:hover { background: #fff; color: var(--void); }

/* English (LTR) mode */
body.en{direction:ltr;font-family:"Cormorant Garamond","Amiri",serif}
body.en .intro,body.en p{letter-spacing:.01em}
body.en .nav-links{gap:1.1rem}
body.en .nav-links a,body.en .nav-dd-t{font-size:.86rem;white-space:nowrap}
body.en h1,body.en h2,body.en h3{letter-spacing:.02em}
.lang-sw{display:inline-flex;align-items:center;gap:.35rem;font-family:"Cormorant Garamond",serif;font-size:.78rem;letter-spacing:.12em}
.lang-sw a{color:inherit;opacity:.65;text-decoration:none;padding:.15rem .2rem}
.lang-sw a.on{opacity:1;color:var(--gold-dark);font-weight:600}
.navwrap.over-hero:not(.scrolled) .lang-sw a.on{color:var(--gold-light)}
.lang-sw .sep{opacity:.35}
.mm-lang{margin-top:1.4rem;font-size:1rem}

/* Public search */
.nav-search{font-size:1.15rem;padding:.2rem .45rem;color:inherit;line-height:1}
.navwrap.over-hero:not(.scrolled) .nav-search{color:#fff}
.search-form{display:flex;gap:.6rem}
.search-form input{flex:1;background:#fff;border:1px solid var(--gold-light);padding:.8rem 1.1rem;font-family:"Amiri",serif;font-size:1rem;outline:none}
.search-form input:focus{border-color:var(--gold)}
.search-group{margin-top:2.2rem}
.sg-title{color:var(--burgundy);font-size:1.15rem;border-bottom:1px solid var(--gold-light);padding-bottom:.5rem;margin-bottom:.4rem}
.sg-count{font-family:"Cormorant Garamond",serif;font-size:.7rem;color:var(--stone);letter-spacing:.1em;margin-inline-start:.4rem}
.sg-item{display:block;padding:.9rem .6rem;border-bottom:1px dashed rgba(201,168,76,.3);color:var(--ink);text-decoration:none;transition:background .15s}
.sg-item:hover{background:rgba(201,168,76,.07)}
.sg-t{font-weight:700}
.sg-x{color:var(--stone);font-size:.9rem;line-height:1.9;margin-top:.2rem}
mark{background:rgba(201,168,76,.35);color:inherit;padding:0 .15em}

/* Public empty states */
.pub-empty{text-align:center;padding:3.5rem 1rem;max-width:460px;margin:0 auto}
.pub-empty .pe-i{font-size:2.4rem;color:var(--gold);opacity:.85;margin-bottom:1rem}
.pub-empty .pe-title{color:var(--burgundy);font-weight:700;font-size:1.25rem;margin-bottom:.5rem}
.pub-empty p{color:var(--stone);line-height:2}
.pub-empty .pe-rule{width:70px;height:1px;background:linear-gradient(to right,transparent,var(--gold),transparent);margin:1.4rem auto 0}

/* Button loading state (JS adds .loading on submit) */
.btn.loading{opacity:.65;pointer-events:none;position:relative}
.btn.loading::after{content:"";display:inline-block;width:.85em;height:.85em;margin-inline-start:.5em;border:2px solid currentColor;border-top-color:transparent;border-radius:50%;vertical-align:-.12em;animation:btnspin .7s linear infinite}
@keyframes btnspin{to{transform:rotate(360deg)}}

/* Hero entrance motion - staggered fade-up reveal (restores original animated feel) */
.hero .content > * { opacity: 0; animation: heroRise 1.1s cubic-bezier(.16,.84,.44,1) both; }
.hero .content h1        { animation-delay: .35s; }
.hero .content .loc      { animation-delay: .78s; }
.hero .content .tag      { animation-delay: .95s; }
.hero .content .hero-cta { animation-delay: 1.1s; }
@keyframes heroRise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }
/* The gold rule sweeps open horizontally instead of rising */
.hero .content .rule { transform-origin: center; animation-name: heroRule; animation-delay: .60s; }
@keyframes heroRule { from { opacity: 0; transform: scaleX(0); } to { opacity: 1; transform: scaleX(1); } }
/* Cross: fades in first, then floats gently forever */
.hero .content .cross { animation: heroRise 1.1s cubic-bezier(.16,.84,.44,1) .15s both, heroFloat 5s ease-in-out 1.5s infinite; }
@keyframes heroFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) {
    .hero .content > *, .hero .content .cross { opacity: 1; animation: none; }
    .hero .hero-media.kb { animation: none; }        /* stop continuous Ken Burns */
}

/* Saint Sofian murals on the church history page */
.history-page-header { padding-bottom: clamp(2.4rem, 6vw, 4.8rem); }
.history-content { max-width: 1120px; }
.history-prose {
  max-width: 820px;
  margin-inline: auto;
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  line-height: 2.05;
}
.history-prose h2 {
  color: var(--burgundy);
  text-align: center;
  margin-bottom: 1.8rem;
}
.history-gallery-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  margin: clamp(3.5rem, 7vw, 6rem) 0 2rem;
  color: var(--burgundy);
  text-align: center;
}
.history-gallery-heading h2 { margin: 0; }
.history-gallery-heading .ring { color: var(--gold-dark); font-size: 1.25rem; }
.history-mural-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.75rem, 1.8vw, 1.35rem);
}
.history-mural-card {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 5 / 4;
  background: var(--parchment);
  border: 1px solid var(--gold-light);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
.history-mural-card:first-child { grid-column: span 2; grid-row: span 2; }
.history-mural-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease), filter .7s var(--ease);
}
.history-mural-card span {
  position: absolute;
  inset-inline-end: .65rem;
  bottom: .55rem;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 50%;
  background: rgba(42,24,18,.7);
  color: #fff;
  font-family: var(--font-display);
  font-size: .62rem;
  letter-spacing: .08em;
  backdrop-filter: blur(5px);
}
.history-mural-card:hover img { transform: scale(1.035); filter: saturate(1.06); }
.history-mural-card::after {
  content: '＋';
  position: absolute;
  inset: 50% auto auto 50%;
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 50%;
  background: rgba(60,20,30,.72);
  color: #fff;
  font-size: 1.45rem;
  opacity: 0;
  transform: translate(-50%, -42%) scale(.85);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
  backdrop-filter: blur(6px);
}
.history-mural-card:hover::after,
.history-mural-card:focus-visible::after { opacity: 1; transform: translate(-50%, -50%) scale(1); }

@media (max-width: 760px) {
  .history-mural-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .history-mural-card:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 16 / 10; }
}
@media (max-width: 480px) {
  .history-mural-grid { grid-template-columns: 1fr; }
  .history-mural-card:first-child { grid-column: auto; aspect-ratio: 5 / 4; }
}

/* ── News "windows" carousel ── */
.news-sec { padding: 4.5rem 0; }
.news-carousel { position: relative; display: flex; align-items: stretch; gap: .75rem; }
.news-track { display: flex; gap: 1.25rem; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; flex: 1; padding: .5rem; }
.news-track::-webkit-scrollbar { display: none; }
.news-track.center { justify-content: center; flex-wrap: wrap; overflow: visible; }
.news-card {
  flex: 0 0 clamp(260px, 32%, 350px);
  background: var(--cream); border: 1px solid var(--gold-light); border-top: 2px solid var(--gold);
  padding: 1.9rem 1.75rem; text-align: center; display: flex; flex-direction: column;
  transition: transform .3s, box-shadow .3s;
}
.news-track.center .news-card { flex: 0 1 350px; }
.news-card:hover { transform: translateY(-3px); box-shadow: 0 10px 32px rgba(201,168,76,.18); }
.news-card .nc-cross { color: var(--gold); font-size: 1.15rem; margin-bottom: .5rem; }
.news-card h3 { color: var(--burgundy); font-size: 1.25rem; line-height: 1.5; margin-bottom: .6rem; }
.news-card p { color: var(--stone); font-size: .92rem; line-height: 1.9; margin-bottom: 1.1rem; flex: 1; }
.news-card .nc-more { color: var(--gold-ink); font-size: .85rem; font-weight: 700; }
.news-card:hover .nc-more { color: var(--burgundy); }
.news-nav {
  flex: 0 0 auto; align-self: center; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--gold); background: var(--cream); color: var(--gold-dark);
  font-size: 1.5rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s;
}
.news-nav:hover { background: var(--gold); color: var(--void); }

/* ── Sections ── */
.section { padding: var(--section-y) 0; }
.section.cream { background: var(--cream); }
.section.parchment { background: var(--parchment); }
.section.goldpale { background: var(--gold-pale); }
.label { display: flex; flex-direction: column; align-items: center; gap: .6rem; margin-bottom: 1.2rem; }
.label .ring { width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid var(--gold); display: flex; align-items: center; justify-content: center; color: var(--gold); }
.label .cap { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .2em; font-size: .72rem; color: var(--gold-ink); }
.section h2 { color: var(--burgundy); font-weight: 700; font-size: clamp(1.6rem, 3.5vw, 2.6rem); text-align: center; margin-bottom: 1rem; }
.section .intro { max-width: 720px; margin: 0 auto; text-align: center; font-size: 1.1rem; line-height: 2.1; color: #2a2017; }

/* ── Cards / grids ── */
.grid { display: grid; gap: 1.5rem; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; } }
.card { background: var(--cream); border: 1px solid var(--gold-light); border-top: 2px solid var(--gold); padding: 1.75rem; transition: transform .3s, box-shadow .3s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(201,168,76,.16); }
.card .cat { font-family: "Cormorant Garamond", serif; text-transform: uppercase; letter-spacing: .15em; font-size: .65rem; color: var(--burgundy); }
.card h3 { color: var(--ink); font-weight: 700; font-size: 1.3rem; margin: .6rem 0; line-height: 1.5; }
.card h3:hover { color: var(--burgundy); }
.card p { color: var(--stone); font-size: .95rem; line-height: 1.9; }
.card .more { color: var(--gold-ink); font-size: .82rem; font-style: italic; margin-top: .8rem; display: inline-block; }

.prayer { background: var(--cream); border: 1px solid var(--gold-light); padding: 1.5rem; text-align: center; }
.prayer .icon { color: var(--gold); font-size: 1.5rem; }
.prayer .nm { font-weight: 700; margin: .4rem 0; }
.prayer .tm { color: var(--gold-dark); font-weight: 600; font-size: 1.3rem; direction: ltr; }
.prayer .dy { color: var(--stone); font-size: .8rem; }

.tile { aspect-ratio: 4/3; background: var(--gold-pale); border: 1px solid rgba(201,168,76,.25); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.tile .ico { color: var(--gold-dark); font-size: 2rem; opacity: .3; }
.tile img, .tile iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.tile .cap { position: absolute; inset-inline: 0; bottom: 0; background: linear-gradient(to top, rgba(13,11,8,.85), transparent); color: #fff; padding: .8rem; font-size: .85rem; }
.badge { position: absolute; top: .5rem; inset-inline-start: .5rem; background: var(--burgundy); color: #fff; font-size: .6rem; padding: .1rem .5rem; }

/* ── Buttons / forms ── */
.btn { display: inline-block; background: var(--gold); color: var(--void); padding: .9rem 2.4rem; font-weight: 700; letter-spacing: .03em; border: 0; cursor: pointer; transition: background .2s; }
.btn:hover { background: var(--gold-dark); color: #fff; }
.btn-outline { background: transparent; border: 1px solid var(--burgundy); color: var(--burgundy); }
.btn-outline:hover { background: var(--burgundy); color: #fff; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-family: "Cormorant Garamond", serif; text-transform: uppercase; letter-spacing: .12em; font-size: .65rem; color: var(--stone); margin-bottom: .4rem; }
.field input, .field textarea, .field select {
  width: 100%; background: var(--cream); border: 1px solid rgba(201,168,76,.35);
  padding: .7rem 1rem; font-family: "Amiri", serif; font-size: 1rem; color: var(--ink); outline: none;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold); }
.alert { background: var(--gold-pale); border-inline-start: 3px solid var(--gold); padding: 1rem 1.25rem; margin-bottom: 1.5rem; color: #2a2017; display: flex; align-items: flex-start; gap: .6rem; animation: alertIn .35s ease; }
.alert::before { content: "✓"; color: var(--gold-dark); font-weight: 700; flex-shrink: 0; }
.alert[style*="burgundy"]::before { content: "!"; color: var(--burgundy); }
@keyframes alertIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.amounts { display: flex; flex-wrap: wrap; gap: .6rem; }
.amounts .amt { border: 1px solid var(--gold); padding: .5rem 1rem; cursor: pointer; }
.note { background: var(--parchment); padding: 1.25rem; border: 1px solid var(--gold-light); font-size: .95rem; }

/* ── Sermons ── */
.sermon-card { background: var(--cream); border: 1px solid var(--gold-light); border-top: 2px solid var(--gold); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.sermon-card:hover { transform: translateY(-3px); box-shadow: 0 10px 32px rgba(201,168,76,.16); }
.sermon-card .cover { aspect-ratio: 16/9; background: var(--gold-pale); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.sermon-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.sermon-card .cover .ph { color: var(--gold-dark); font-size: 2.4rem; opacity: .35; }
.sermon-card .body { padding: 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.sermon-card .cat { font-family: "Cormorant Garamond", serif; text-transform: uppercase; letter-spacing: .12em; font-size: .62rem; color: var(--burgundy); }
.sermon-card h3 { color: var(--ink); font-size: 1.2rem; margin: .4rem 0; line-height: 1.5; }
.sermon-card .date { color: var(--stone); font-size: .8rem; direction: ltr; }
.sermon-card p { color: var(--stone); font-size: .9rem; line-height: 1.85; margin: .6rem 0; flex: 1; }
.audio-player { width: 100%; margin-top: .6rem; height: 42px; border-radius: 3px; }
.audio-player::-webkit-media-controls-panel { background: var(--parchment); }
.sermon-actions { display: flex; gap: .6rem; margin-top: .8rem; flex-wrap: wrap; }
.pdf-btn { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--gold); color: var(--gold-ink); padding: .4rem .9rem; font-size: .82rem; border-radius: var(--radius-sm); }
.pdf-btn:hover { background: var(--gold); color: var(--void); }

/* ── Article prose ── */
.prose { max-width: 720px; margin: 0 auto; font-size: 1.2rem; line-height: 2.1; color: #2a2017; }
.prose p { margin-bottom: 1.5rem; }
.prose h2 { color: var(--burgundy); font-size: 1.6rem; margin: 2.5rem 0 1rem; padding-bottom: .4rem; border-bottom: 1px solid var(--gold-light); }
.prose blockquote { background: var(--parchment); padding: 1.5rem 2rem; margin: 2rem 0; font-style: italic; border-inline-start: 3px solid var(--gold); }

/* Icon explanations */
.icon-page-head { padding-inline: 1.5rem; }
.icon-page-head .intro { max-width: 780px; margin: 1rem auto 0; color: #4f402f; font-size: 1.08rem; line-height: 2; }
.icon-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.icon-card { display: grid; grid-template-columns: minmax(180px, .9fr) 1.1fr; min-height: 330px; background: #fffdf7; border: 1px solid var(--gold-light); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform var(--t), box-shadow var(--t), border-color var(--t); }
.icon-card:only-child { grid-column: 1 / -1; width: min(100%, 900px); justify-self: center; }
.icon-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.icon-card-media { position: relative; min-height: 100%; overflow: hidden; background: var(--gold-pale); display: grid; place-items: center; color: var(--gold); font-size: 2rem; }
.icon-card-media::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); pointer-events: none; }
.icon-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.icon-card:hover .icon-card-media img { transform: scale(1.035); }
.icon-card-body { padding: clamp(1.4rem, 3vw, 2.2rem); display: flex; flex-direction: column; justify-content: center; }
.icon-scripture { display: inline-block; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .13em; font-size: .68rem; color: var(--gold-ink); margin-bottom: .65rem; }
.icon-card h2 { color: var(--burgundy); text-align: start; font-size: clamp(1.4rem, 2.3vw, 1.9rem); line-height: 1.4; margin: 0 0 .7rem; }
.icon-card p { color: var(--stone); font-size: .96rem; line-height: 1.9; }
.icon-more { color: var(--burgundy); margin-top: 1rem; font-size: .9rem; }
.icon-more b { color: var(--gold); display: inline-block; transition: transform var(--t-fast); }
.icon-card:hover .icon-more b { transform: translateX(-4px); }
body.en .icon-card:hover .icon-more b { transform: translateX(4px); }
.icon-detail-head { background: var(--gold-pale); padding: clamp(4rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem); text-align: center; }
.icon-detail-head .container { max-width: 860px; }
.icon-detail-head h1 { color: var(--burgundy); font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.25; margin: .3rem 0 1rem; }
.icon-detail-head p { color: #4b3b2b; font-size: 1.15rem; line-height: 2; }
.icon-back { display: inline-flex; align-items: center; gap: .4rem; color: var(--gold-ink); font-size: .82rem; margin-bottom: 1.2rem; }
.icon-back::before { content: "←"; }
body.en .icon-back::before { content: "→"; }
.icon-detail-layout { display: grid; grid-template-columns: minmax(320px, .95fr) minmax(0, 1.05fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.icon-art { position: sticky; top: 6rem; margin: 0; padding: .75rem; background: #fffdf7; border: 1px solid var(--gold-light); box-shadow: var(--shadow-md); }
.icon-art img { width: 100%; height: auto; }
.icon-art figcaption { padding: .7rem .4rem .15rem; text-align: center; color: var(--stone); font-size: .78rem; }
.icon-explanation { max-width: none; font-size: 1.08rem; }
.icon-explanation h2 { text-align: start; font-size: 1.5rem; }
.icon-return { display: inline-block; border: 1px solid var(--gold); padding: .55rem 1.25rem; color: var(--gold-ink); border-radius: var(--radius-sm); }
.icon-return:hover { background: var(--gold); color: var(--void); }
@media (max-width: 980px) {
  .icon-grid { grid-template-columns: 1fr; }
  .icon-detail-layout { grid-template-columns: 1fr; }
  .icon-art { position: static; max-width: 700px; margin-inline: auto; }
}
@media (max-width: 620px) {
  .icon-card { grid-template-columns: 1fr; }
  .icon-card-media { min-height: 280px; aspect-ratio: 4/3; }
}

/* ── Footer (intentional two-column: brand on the reading side, تواصل on the far side) ── */
.footer { background: var(--parchment); border-top: 2px solid var(--gold); color: #55442f; padding: var(--space-xl) 0 var(--space-lg); }
.footer .cols { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(2rem, 6vw, 5rem); margin-bottom: var(--space-lg); align-items: start; }
.footer .footer-brand { max-width: 44ch; }
.footer .footer-contact { justify-self: end; }        /* far side - far-left in the RTL parish layout */
body.en .footer .footer-contact { justify-self: start; }
@media (max-width: 720px) {
  .footer .cols { grid-template-columns: 1fr; gap: 2rem; }
  .footer .footer-contact { justify-self: start; }
}
.footer h4 { color: var(--burgundy); font-weight: 700; margin-bottom: 1rem; font-size: 1.05rem; }
.footer a { transition: color var(--t-fast); }
.footer a:hover { color: var(--gold-ink); }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.footer .social { display: flex; gap: 1rem; }
.footer .social a { color: var(--burgundy); font-weight: 600; }
.footer .copy { text-align: center; border-top: 1px solid var(--border); padding-top: var(--space-md); font-size: .82rem; color: var(--stone); }

/* ── Page header band ── */
.page-header { background: var(--gold-pale); text-align: center; padding: 5rem 0; }
.page-header h1 { color: var(--burgundy); font-weight: 700; font-size: clamp(2rem, 5vw, 3.2rem); }
.page-header .cap { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .2em; font-size: .72rem; color: var(--gold-ink); margin-bottom: .8rem; }

/* ── Contact page ── */
.contact-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  background:
    radial-gradient(circle at 16% 18%, rgba(201,168,76,.2), transparent 28%),
    radial-gradient(circle at 84% 80%, rgba(122,31,46,.09), transparent 32%),
    var(--gold-pale);
}
.contact-hero::before,
.contact-hero::after {
  content: '✦';
  position: absolute;
  top: 50%;
  color: rgba(122,31,46,.13);
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  transform: translateY(-50%);
}
.contact-hero::before { inset-inline-start: 8%; }
.contact-hero::after { inset-inline-end: 8%; }
.contact-hero .container { position: relative; z-index: 1; }
.contact-hero p {
  max-width: 620px;
  margin: .8rem auto 0;
  color: var(--stone);
  font-size: 1.08rem;
  line-height: 1.9;
}
.contact-page {
  position: relative;
  background:
    linear-gradient(rgba(255,255,255,.28), rgba(255,255,255,.28)),
    var(--cream);
}
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, .82fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.contact-form-card {
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid rgba(201,168,76,.42);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius-md, 10px);
  background: rgba(255,253,248,.9);
  box-shadow: 0 24px 70px rgba(60,35,20,.09);
}
.contact-card-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid rgba(201,168,76,.3);
}
.contact-heading-mark {
  display: grid;
  place-items: center;
  flex: 0 0 3.2rem;
  width: 3.2rem;
  height: 3.2rem;
  border: 1px solid var(--gold-light);
  border-radius: 50%;
  background: var(--gold-pale);
  color: var(--burgundy);
  font-size: 1.15rem;
}
.contact-eyebrow {
  color: var(--gold-ink);
  font-family: var(--font-display);
  font-size: .72rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.contact-page h2 {
  margin: .15rem 0 0;
  color: var(--burgundy);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  line-height: 1.25;
  text-align: start;
}
.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .2rem 1.15rem;
}
.contact-form .field { margin-bottom: 1.2rem; }
.contact-form .field label {
  margin-bottom: .55rem;
  color: #5e5148;
  font-family: "Amiri", serif;
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}
.contact-form .field label span { color: var(--burgundy); }
.contact-form .field input,
.contact-form .field select,
.contact-form .field textarea {
  min-height: 3.15rem;
  border: 1px solid #ded2bd;
  border-radius: var(--radius-sm);
  background: #fffdf9;
  padding: .78rem 1rem;
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
}
.contact-form .field input::placeholder,
.contact-form .field textarea::placeholder { color: #a79c8e; opacity: 1; }
.contact-form .field textarea { min-height: 11.5rem; resize: vertical; line-height: 1.8; }
.contact-form .field [aria-invalid="true"] { border-color: var(--burgundy); background: #fffafa; }
.contact-message-field { grid-column: 1 / -1; }
.contact-error-summary { border-color: var(--burgundy); }
.contact-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: .25rem;
}
.contact-form-footer p { color: var(--stone); font-size: .82rem; }
.contact-form-footer p span { color: var(--burgundy); }
.contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  min-width: 12rem;
  border-radius: 999px;
  background: var(--burgundy);
  color: #fff;
}
.contact-submit:hover { background: var(--burgundy-dark, #51121f); }
.contact-sidebar { display: grid; gap: 1.15rem; }
.contact-info-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.6rem, 4vw, 2.35rem);
  border: 1px solid rgba(201,168,76,.42);
  border-radius: var(--radius-md, 10px);
  background:
    radial-gradient(circle at 15% 10%, rgba(201,168,76,.14), transparent 32%),
    #241317;
  color: #fff;
  box-shadow: 0 24px 70px rgba(36,19,23,.18);
}
.contact-cross {
  position: absolute;
  top: 1rem;
  inset-inline-end: 1.25rem;
  color: rgba(201,168,76,.13);
  font-size: 5.5rem;
  line-height: 1;
}
.contact-info-card .contact-eyebrow { position: relative; color: #d9bd72; }
.contact-info-card h2 { position: relative; max-width: 80%; margin-top: .25rem; color: #fff; font-size: 1.7rem; }
.contact-details {
  position: relative;
  display: grid;
  gap: .1rem;
  margin-top: 1.65rem;
  border-top: 1px solid rgba(255,255,255,.12);
}
.contact-detail {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
  color: #fff;
}
a.contact-detail { transition: color var(--t), transform var(--t); }
a.contact-detail:hover { color: #e6ca83; transform: translateX(var(--contact-shift, -3px)); }
body.en a.contact-detail:hover { --contact-shift: 3px; }
.contact-detail-icon {
  display: grid;
  place-items: center;
  flex: 0 0 2.4rem;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(201,168,76,.44);
  border-radius: 50%;
  color: #d9bd72;
  font-size: 1rem;
}
.contact-detail div { min-width: 0; }
.contact-detail div span { display: block; color: rgba(255,255,255,.6); font-size: .76rem; }
.contact-detail strong { display: block; overflow-wrap: anywhere; font-size: .98rem; font-weight: 400; }
.contact-socials { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: 1.35rem; }
.contact-socials > span { margin-inline-end: .2rem; color: rgba(255,255,255,.62); font-size: .8rem; }
.contact-socials a {
  padding: .38rem .9rem;
  border: 1px solid rgba(201,168,76,.48);
  border-radius: 999px;
  color: #fff;
  font-size: .8rem;
}
.contact-socials a:hover { border-color: #d9bd72; background: rgba(201,168,76,.12); }
.contact-priest-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .85rem;
  align-items: center;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--gold-light);
  border-radius: var(--radius-md, 10px);
  background: var(--gold-pale);
}
.contact-priest-symbol { color: var(--burgundy); font-size: 1.25rem; }
.contact-priest-card div > span,
.contact-priest-card small { display: block; color: var(--stone); font-size: .78rem; }
.contact-priest-card strong { display: block; color: var(--burgundy); font-size: 1.05rem; }
.contact-priest-card > a {
  grid-column: 2;
  width: fit-content;
  color: var(--gold-ink);
  font-size: .86rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .2rem;
}
.contact-map-card {
  overflow: hidden;
  border: 1px solid var(--gold-light);
  border-radius: var(--radius-md, 10px);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.contact-map-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--gold-light);
}
.contact-map-heading div span { display: block; color: var(--stone); font-size: .72rem; }
.contact-map-heading div strong { display: block; color: var(--burgundy); font-size: .95rem; }
.contact-map-coordinates {
  color: var(--gold-ink);
  font-family: var(--font-display);
  font-size: .67rem;
  letter-spacing: .06em;
  white-space: nowrap;
}
.contact-map-visual {
  position: relative;
  height: 260px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 70% 20%, rgba(201,168,76,.16), transparent 25%),
    linear-gradient(135deg, #eadcc6, #fbf6eb 58%, #e4d3b8);
}
.contact-map-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .4;
  background-image:
    linear-gradient(rgba(122,31,46,.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122,31,46,.11) 1px, transparent 1px);
  background-size: 34px 34px;
  transform: rotate(-7deg) scale(1.2);
}
.map-road {
  position: absolute;
  display: block;
  height: 10px;
  border: 1px solid rgba(122,31,46,.2);
  border-inline: 0;
  background: rgba(255,253,248,.9);
  box-shadow: 0 0 0 4px rgba(255,255,255,.55);
}
.map-road-one { width: 130%; top: 48%; left: -15%; transform: rotate(-8deg); }
.map-road-two { width: 84%; top: 27%; left: 18%; transform: rotate(36deg); }
.map-road-three { width: 75%; top: 73%; left: -8%; transform: rotate(24deg); }
.map-road-four { width: 62%; top: 54%; left: 48%; transform: rotate(-58deg); }
.map-block {
  position: absolute;
  display: block;
  border: 1px solid rgba(139,112,73,.14);
  border-radius: 3px;
  background: rgba(205,188,158,.24);
}
.map-block-one { width: 72px; height: 44px; top: 18%; left: 10%; transform: rotate(-8deg); }
.map-block-two { width: 86px; height: 52px; right: 7%; bottom: 12%; transform: rotate(8deg); }
.map-block-three { width: 55px; height: 70px; left: 28%; bottom: 8%; transform: rotate(18deg); }
.map-place {
  position: absolute;
  z-index: 2;
  color: rgba(64,47,38,.62);
  font-size: .7rem;
}
.map-place-town { top: 13%; inset-inline-start: 8%; color: var(--burgundy); font-size: .9rem; font-weight: 700; }
.map-place-road { bottom: 15%; inset-inline-start: 8%; font-family: var(--font-display); letter-spacing: .04em; }
.contact-map-location {
  position: absolute;
  top: 46%;
  left: 50%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(82%, 290px);
  transform: translate(-50%, -50%);
}
.contact-map-pin {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 3.25rem;
  height: 3.25rem;
  border: 3px solid #fffaf1;
  border-radius: 50% 50% 50% 8px;
  background: var(--burgundy);
  color: #fff;
  box-shadow: 0 12px 30px rgba(91,22,35,.32);
  transform: rotate(-45deg);
}
.contact-map-pin::after {
  content: '';
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 50%;
}
.contact-map-pin span { position: relative; z-index: 1; font-size: 1.15rem; transform: rotate(45deg); }
.contact-map-location-copy {
  display: block;
  width: 100%;
  margin-top: .75rem;
  padding: .55rem .8rem;
  border: 1px solid rgba(122,31,46,.18);
  border-radius: 7px;
  background: rgba(255,253,248,.94);
  box-shadow: 0 8px 24px rgba(70,45,28,.12);
  text-align: center;
}
.contact-map-location-copy small,
.contact-map-location-copy strong,
.contact-map-location-copy em { display: block; }
.contact-map-location-copy small { color: var(--gold-ink); font-size: .62rem; }
.contact-map-location-copy strong { color: var(--burgundy); font-size: .95rem; line-height: 1.45; }
.contact-map-location-copy em { color: #5e5148; font-size: .68rem; font-style: normal; line-height: 1.4; }
.contact-map-footer {
  padding: 1rem 1.15rem;
  border-top: 1px solid var(--gold-light);
  background: #fffdf9;
}
.contact-map-footer p { margin-bottom: .8rem; color: var(--stone); font-size: .75rem; line-height: 1.55; }
.contact-map-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.contact-map-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  flex: 1 1 10rem;
  padding: .58rem 1rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background var(--t), transform var(--t);
}
.contact-map-directions { background: var(--burgundy); color: #fff; }
.contact-map-directions:hover { background: var(--gold-dark); transform: translateY(-1px); }
.contact-map-whatsapp { border: 1px solid #238b57; background: #f4fff8; color: #176b42; }
.contact-map-whatsapp > span:first-child {
  display: grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  background: #238b57;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: .48rem;
  letter-spacing: -.02em;
}
.contact-map-whatsapp:hover { background: #238b57; color: #fff; transform: translateY(-1px); }

@media (max-width: 960px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-sidebar { grid-template-columns: 1fr 1fr; align-items: start; }
  .contact-info-card { grid-row: span 2; }
}
@media (max-width: 680px) {
  .contact-hero::before, .contact-hero::after { display: none; }
  .contact-layout { gap: 1.25rem; }
  .contact-form-grid, .contact-sidebar { grid-template-columns: 1fr; }
  .contact-info-card { grid-row: auto; }
  .contact-form-footer { align-items: stretch; flex-direction: column; }
  .contact-submit { width: 100%; }
  .contact-map-heading { align-items: flex-start; }
  .contact-map-coordinates { display: none; }
  .contact-map-actions { flex-direction: column; }
  .contact-map-actions a { flex-basis: auto; width: 100%; }
}

.mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; } .mb-2 { margin-bottom: 2rem; }
.tabs { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }
.tabs a { border: 1px solid var(--gold); padding: .45rem 1.15rem; font-size: .9rem; color: var(--gold-ink); border-radius: var(--radius-sm); transition: background var(--t-fast), color var(--t-fast); }
.tabs a:hover { background: var(--gold-pale); }
.tabs a.active { background: var(--gold); color: var(--void); font-weight: 700; }

/* ── Themed scrollbars ── */
html { scrollbar-width: thin; scrollbar-color: var(--gold) var(--parchment); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--parchment); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--gold), var(--gold-dark)); border-radius: 5px; border: 2px solid var(--parchment); }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dark); }

/* ── Navbar live search ── */
.nav-sr { position: relative; display: inline-flex; align-items: center; }
.nav-search { background: none; border: 0; cursor: pointer; font-size: 1rem; color: var(--ink); padding: .2rem .35rem; }
.navwrap.over-hero:not(.scrolled) .nav-search { color: #fff; }
.nav-sr-box { display: none; }
.nav-sr-box.open { display: block; position: absolute; top: 140%; inset-inline-end: 0; z-index: 70; }
.nav-sr-box input { width: 280px; background: var(--cream); border: 1px solid var(--gold); padding: .6rem .9rem; font-family: "Amiri", serif; font-size: .9rem; outline: none; color: var(--ink); box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.nav-sr-drop { position: absolute; top: 100%; inset-inline-end: 0; width: 320px; max-height: 380px; overflow-y: auto; background: var(--cream); border: 1px solid var(--gold-light); box-shadow: 0 16px 40px rgba(0,0,0,.16); }
.sr-it { display: block; padding: .6rem .9rem; border-bottom: 1px solid var(--gold-pale); }
.sr-it:hover { background: var(--gold-pale); }
.sr-t { display: block; font-size: .9rem; color: var(--ink); line-height: 1.6; }
.sr-g { display: block; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .12em; font-size: .6rem; color: var(--gold-ink); margin-top: .15rem; }
.sr-mjo { font-style: normal; background: var(--burgundy); color: #fff; padding: .05rem .4rem; border-radius: 2px; font-size: .55rem; letter-spacing: .08em; }
.sr-all { display: block; text-align: center; padding: .55rem; font-size: .82rem; color: var(--burgundy); background: var(--gold-pale); }
.sr-none { padding: .8rem; text-align: center; color: var(--stone); font-size: .85rem; }

/* ── Global focus-visible (keyboard only - elegant gold ring) ── */
:focus { outline: none; }
:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}
a:focus-visible, .nav-links a:focus-visible, .nav-dd-t:focus-visible,
.footer a:focus-visible, .tabs a:focus-visible {
  box-shadow: var(--focus-ring);
  outline: 2px solid transparent;   /* forced-colors fallback */
}
.btn:focus-visible, .btn-outline:focus-visible, .nav-cta:focus-visible {
  box-shadow: 0 0 0 3px var(--cream), 0 0 0 5px var(--burgundy);
}
/* Over the transparent hero, use a light ring for contrast */
.navwrap.over-hero:not(.scrolled) a:focus-visible,
.navwrap.over-hero:not(.scrolled) button:focus-visible {
  box-shadow: 0 0 0 3px rgba(255,255,255,.85);
}

/* ── Interaction states (buttons / forms) ── */
.btn { border-radius: var(--radius-sm); transition: background var(--t), color var(--t), transform var(--t-fast); }
.btn:active { transform: translateY(1px); }
.btn-outline:active { transform: translateY(1px); }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,.14);
}
.field input:invalid:not(:placeholder-shown),
.field textarea:invalid:not(:placeholder-shown) { border-color: var(--burgundy-light); }
.field .field-error { color: var(--burgundy); font-size: .82rem; margin-top: .3rem; }

/* ── Card polish (subtle depth; distinct metadata rhythm) ── */
.card { border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); transition: transform var(--t), box-shadow var(--t), border-color var(--t); }
.card:hover { box-shadow: var(--shadow-md); border-color: var(--gold); }
.card .cat { display: inline-block; margin-bottom: .1rem; }
.news-card { border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.news-card:hover { box-shadow: var(--shadow-md); }
.sermon-card { border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.sermon-card:hover { box-shadow: var(--shadow-md); }

/* ── Reveal-on-scroll (progressive enhancement) ──
   reveal.js adds .armed ONLY to off-screen elements (never above the fold),
   so content is always visible when JS is off/fails or reduced-motion is on. */
.reveal, .reveal-group > * { transition: opacity .7s var(--ease), transform .7s var(--ease); }
@media (prefers-reduced-motion: no-preference) {
  .reveal.armed { opacity: 0; transform: translateY(18px); }
  .reveal-group.armed > * { opacity: 0; transform: translateY(18px); }
}
.reveal.in, .reveal-group.in > * { opacity: 1; transform: none; }
.reveal-group.in > * { transition-delay: calc(var(--i, 0) * 80ms); }

/* ── Global reduced-motion guard ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal, .reveal-group > * { opacity: 1 !important; transform: none !important; }
}


/* ── Skip link ── */
.skip-link {
  position: absolute; inset-inline-start: 0; top: 0; z-index: 200;
  transform: translateY(-120%);
  background: var(--burgundy); color: #fff;
  padding: .7rem 1.2rem; border-radius: 0 0 3px 0;
  font-size: .9rem; text-decoration: none;
  transition: transform .15s ease;
}
.skip-link:focus { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .skip-link { transition: none; } }
