/* =====================================================================
   Ethiopian Orthodox Church — shared stylesheet
   Palette: deep liturgical red, gold, ivory/white
   ===================================================================== */

:root {
  --red:        #7a0a0a;   /* deep liturgical red */
  --red-dark:   #5a0606;
  --red-soft:   #9a1f1f;
  --gold:       #c9a227;   /* warm gold */
  --gold-light: #e8d491;
  --gold-deep:  #a8851a;
  --ivory:      #fbf7ef;   /* warm white */
  --cream:      #f3ead8;
  --ink:        #221915;   /* near-black warm */
  --ink-soft:   #4a3d36;
  --white:      #ffffff;
  --green:      #1f7a3d;   /* Ethiopian flag green accent */
  --shadow:     0 6px 24px rgba(40, 10, 10, 0.14);
  --shadow-sm:  0 2px 8px rgba(40, 10, 10, 0.10);
  --radius:     14px;
  --maxw:       1140px;
  --font-head:  "Georgia", "Noto Serif Ethiopic", "Times New Roman", serif;
  --font-body:  system-ui, -apple-system, "Segoe UI", "Noto Sans Ethiopic", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.72;
  font-size: 1.4rem;      /* larger base text for readability */
  font-weight: 500;        /* medium weight adds bulk / clarity for older readers */
}
/* Keep long-form paragraph text clearly sized and weighted site-wide */
main p, .card p, .split-body p, .section-intro, .ministry-intro p, li {
  font-weight: 500;
}
img { max-width: 100%; display: block; }
a { color: var(--red); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; color: var(--red-dark); }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-top: 0; }
h3 { font-size: 1.25rem; }

/* ---------- language toggle (bilingual visibility) ---------- */
/* Both EN and AM live in the DOM; we hide the inactive language. */
body[data-lang="en"] [lang="am"] { display: none !important; }
body[data-lang="am"] [lang="en"] { display: none !important; }

/* ---------- accessibility helpers ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--ink);
  padding: 0.7rem 1.1rem;
  font-weight: 700;
  z-index: 2000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 1.25rem; }
section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section-tight { padding-block: clamp(1.5rem, 4vw, 2.5rem); }

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.center { text-align: center; }
.lead { font-size: 1.46rem; color: var(--ink-soft); max-width: 62ch; }
.center .lead { margin-inline: auto; }

/* ---------- top bar / brand ---------- */
.topbar {
  background: var(--green);
  color: var(--gold-light);
  font-size: 0.9rem;
}
.topbar .container { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: center; align-items: center; padding-block: 0.4rem; }
.topbar a { color: var(--gold-light); text-decoration: none; }
.topbar a:hover { text-decoration: underline; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--red);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: 0.6rem;
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--white); }
.brand img { width: 46px; height: 46px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--gold-light); }
.brand-sub { font-size: 0.72rem; letter-spacing: 0.03em; opacity: 0.9; }

.nav-toggle {
  display: none;
  background: transparent; border: 2px solid var(--gold-light);
  color: var(--gold-light); border-radius: 8px;
  padding: 0.45rem 0.6rem; cursor: pointer;
}
.nav-toggle .bar { display: block; width: 22px; height: 2px; background: var(--gold-light); margin: 4px 0; transition: 0.2s; }

.nav-menu { display: flex; align-items: center; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.nav-menu a {
  display: inline-block; color: var(--white); text-decoration: none;
  padding: 0.5rem 0.75rem; border-radius: 8px; font-weight: 600; font-size: .98rem;
}
.nav-menu a:hover, .nav-menu a.active { background: rgba(255,255,255,0.14); color: var(--gold-light); }
.nav-menu a.active { box-shadow: inset 0 -3px 0 var(--gold); }

.lang-toggle {
  margin-left: 0.5rem;
  background: var(--gold); color: var(--ink); border: none;
  font-weight: 700; padding: 0.5rem 0.85rem; border-radius: 999px; cursor: pointer;
}
.lang-toggle:hover { background: var(--gold-light); }

@media (max-width: 1200px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch;
    background: var(--red-dark); padding: 0.5rem 1rem 1rem;
    gap: 0.15rem; max-height: 0; overflow: hidden;
    transition: max-height 0.28s ease;
  }
  .nav { position: relative; }
  .nav-menu.open { max-height: 80vh; padding-block: 0.75rem 1.25rem; }
  .nav-menu a { padding: 0.8rem 0.75rem; border-radius: 6px; }
  .lang-toggle { margin: 0.5rem 0 0; width: 100%; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block; cursor: pointer; text-align: center;
  font-weight: 700; text-decoration: none; border: 2px solid transparent;
  padding: 0.8rem 1.4rem; border-radius: 999px; font-size: 1rem;
  transition: transform 0.06s ease, background 0.2s ease, box-shadow 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-gold:hover { background: var(--gold-light); }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-soft); }
.btn-outline { background: transparent; border-color: var(--gold-light); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-outline-red { background: transparent; border-color: var(--red); color: var(--red); }
.btn-outline-red:hover { background: var(--red); color: var(--white); }
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn-row.center {
  justify-content: center;
}

/* ---------- hero ---------- */
.hero {
  position: relative; color: var(--white);
  background:
    linear-gradient(rgba(60,6,6,0.82), rgba(90,6,6,0.88)),
    radial-gradient(circle at 50% 0%, rgba(201,162,39,0.25), transparent 60%),
    var(--red-dark);
  text-align: center;
  padding-block: clamp(3rem, 9vw, 6rem);
  border-bottom: 5px solid var(--gold);
}
.hero h1 { color: var(--white); margin-bottom: 0.5rem; }
.hero .hero-cross { width: 64px; height: 64px; margin: 0 auto 1rem; }
.hero .lead { color: var(--gold-light); margin-inline: auto; }
.hero .badge {
  display: inline-block; background: rgba(0,0,0,0.25); border: 1px solid var(--gold);
  color: var(--gold-light); padding: 0.35rem 1rem; border-radius: 999px;
  font-size: 0.9rem; letter-spacing: 0.05em; margin-bottom: 1.25rem; text-transform: uppercase;
}

/* ---------- cards ---------- */
.card {
  background: var(--white); border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow-sm); border: 1px solid var(--cream);
  border-top: 4px solid var(--gold);
}
.card h3 { margin-top: 0; color: var(--red); }
.card .card-icon { font-size: 1.8rem; line-height: 1; }

.alt-bg { background: var(--ivory); }
.red-bg { background: var(--red); color: var(--white); }
.red-bg h2, .red-bg h3 { color: var(--gold-light); }
.red-bg a { color: var(--gold-light); }

/* ---------- service times strip ---------- */
.service-times { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.service-card { text-align: center; }
.service-card .day { font-weight: 700; color: var(--gold-deep); text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.85rem; }
.service-card .time { font-family: var(--font-head); font-size: 1.4rem; color: var(--red); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table.schedule { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
table.schedule caption { text-align: center; font-weight: 700; color: var(--red); padding: 0.5rem 0; }
table.schedule th, table.schedule td { padding: 0.8rem 1rem; text-align: center; border-bottom: 1px solid var(--cream); }
table.schedule thead th { background: var(--red); color: var(--gold-light); }
table.schedule tbody tr:nth-child(even) { background: var(--ivory); }

/* ---------- events ---------- */
.event-list { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.event-card { display: flex; gap: 1rem; align-items: flex-start; }
.event-date {
  flex: 0 0 auto; text-align: center; background: var(--red); color: var(--white);
  border-radius: 10px; padding: 0.5rem 0.7rem; min-width: 64px; line-height: 1.1;
}
.event-date .m { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gold-light); }
.event-date .d { font-size: 1.6rem; font-weight: 700; font-family: var(--font-head); }
.event-body h3 { margin: 0 0 0.25rem; }
.event-meta { font-size: 0.9rem; color: var(--ink-soft); margin: 0.25rem 0; }
.event-status { color: var(--ink-soft); font-style: italic; }

/* ---------- forms ---------- */
.form-grid { display: grid; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label { font-weight: 600; }
.field .req { color: var(--red); }
input, textarea, select {
  font: inherit; padding: 0.7rem 0.85rem; border: 1px solid #cbb8a8;
  border-radius: 10px; background: var(--white); color: var(--ink); width: 100%;
}
textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 1.32rem; color: var(--ink-soft); }

/* ---------- give / payment cards ---------- */
.give-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.give-card { text-align: center; }
.give-card .handle { font-family: var(--font-head); font-size: 1.2rem; color: var(--red); word-break: break-word; }
.notice {
  background: #fff6e0; border: 1px solid var(--gold); border-left: 6px solid var(--gold-deep);
  padding: 1rem 1.25rem; border-radius: 10px; margin: 1.5rem 0;
}

/* ---------- map ---------- */
.map-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 3px solid var(--gold); }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- page header banner (supports a background photo) ----------
   Default is the red gradient. To add a photo on any page, put an inline
   style on the element, e.g.:
   <div class="page-head" style="background-image:
       linear-gradient(rgba(60,6,6,.62), rgba(90,6,6,.72)), url('assets/your-photo.jpg');">
   The gradient keeps the white title readable over the image. */
.page-head {
  background-color: var(--red-dark);
  background-image: linear-gradient(rgba(90,6,6,0.9), rgba(122,10,10,0.9));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white); text-align: center;
  padding-block: clamp(3rem, 9vw, 6rem);
  border-bottom: 5px solid var(--gold);
}
.page-head h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 6vw, 4rem);
  text-transform: uppercase; letter-spacing: 0.04em;
  text-shadow: 0 2px 14px rgba(0,0,0,0.45);
}
.page-head p { color: var(--gold-light); max-width: 62ch; margin-inline: auto; text-shadow: 0 1px 8px rgba(0,0,0,0.4); }

/* ---------- lists ---------- */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.check-list li { padding-left: 1.8rem; position: relative; }
.check-list li::before { content: "✛"; position: absolute; left: 0; color: var(--gold-deep); font-weight: 700; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #e8dccb; padding-block: 2.5rem 1.5rem; }
.site-footer h3 { color: var(--gold-light); font-size: 1.1rem; }
.site-footer a { color: #e8dccb; text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); text-decoration: underline; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1.4fr 1fr 1fr; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
/* Two balanced columns: first 5 links on the left, next 5 on the right */
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; grid-auto-flow: column; grid-template-rows: repeat(5, auto); gap: 0.45rem 1.75rem; }
@media (max-width: 420px) { .footer-links { grid-auto-flow: row; grid-template-rows: none; } }
.social-row { display: flex; gap: 0.75rem; margin-top: 0.75rem; }
.social-row a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.08);
  border: 1px solid rgba(201,162,39,0.4);
}
.social-row a:hover { background: var(--red); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 2rem; padding-top: 1rem; font-size: 0.85rem; text-align: center; color: #bfae9a; }

/* ---------- utility ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.gold-text { color: var(--gold-deep); }
.divider-cross { text-align: center; color: var(--gold); font-size: 1.5rem; margin: 1.5rem 0; }

/* ---------- tighter desktop nav (now that there are more links) ---------- */
@media (min-width: 1201px) {
  .nav-menu a { padding: 0.45rem 0.5rem; font-size: 0.92rem; }
  .nav-menu { gap: 0.05rem; }
}

/* ---------- section intro (centered lead under a heading) ---------- */
.section-intro { max-width: 70ch; margin: 0.5rem auto 0; text-align: center; color: var(--ink-soft); }
.leaf-divider { text-align: center; color: var(--green); font-size: 1.4rem; margin: 0.5rem 0 1.5rem; letter-spacing: 0.3em; }

/* ---------- clergy flip cards ---------- */
/* Wider container so the clergy row fills more of the page */
.container-wide { max-width: 2000px; }
/* Horizontal staff cards: photo + biography visible side by side (2 per row) */
.staff-grid { display: grid; gap: 2rem; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .staff-grid { grid-template-columns: 1fr; } }
.staff-card { display: grid; grid-template-columns: minmax(140px, 42%) 1fr; gap: 1.5rem; background: #f6f5f0; padding: 1.5rem; align-items: start; }
.staff-card > img { width: 100%; height: auto; object-fit: cover; aspect-ratio: 3 / 4; }
.staff-card p { text-align: left; margin: 0; }
.staff-card .role { color: var(--ink-soft); font-size: 1.05rem; }
.staff-card .name { color: var(--green); font-family: var(--font-head); font-weight: 700; font-size: clamp(1.3rem, 2vw, 1.7rem); line-height: 1.15; margin: 0.15rem 0 0.7rem; }
.staff-card .bio { color: var(--ink-soft); font-size: 1.05rem; }
@media (max-width: 480px) { .staff-card { grid-template-columns: 1fr; } .staff-card > img { aspect-ratio: 4 / 3; } }

/* (legacy flip-card styles kept below but no longer used on the parish page) */
.staff-grid-legacy { display: grid; gap: 1.75rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.flip-card {
  display: block; width: 100%; padding: 0; border: 0; background: transparent;
  font: inherit; color: inherit; text-align: inherit; cursor: pointer;
  perspective: 1200px;
}
.flip-inner {
  position: relative; width: 100%; aspect-ratio: 3 / 4;
  transition: transform 0.6s cubic-bezier(.2,.7,.3,1); transform-style: preserve-3d;
}
.flip-card.flipped .flip-inner { transform: rotateY(180deg); }
.flip-face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid var(--cream); border-top: 4px solid var(--gold);
}
.flip-front { background: var(--cream); }
.flip-front img { width: 100%; height: 100%; object-fit: cover; }
.flip-front .flip-name {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(60,6,6,0.92)); color: var(--white);
  padding: 1.5rem 0.9rem 0.8rem; text-align: left;
}
.flip-front .flip-name strong { display: block; font-family: var(--font-head); font-size: 1.05rem; }
.flip-front .flip-name span { font-size: 1.25rem; color: var(--gold-light); }
.flip-front .flip-hint {
  position: absolute; top: 0.6rem; right: 0.6rem; background: var(--gold); color: var(--ink);
  font-size: 0.7rem; font-weight: 700; padding: 0.2rem 0.5rem; border-radius: 999px;
}
.flip-back {
  transform: rotateY(180deg); background: var(--red); color: var(--white);
  display: flex; flex-direction: column; justify-content: center; gap: 0.5rem;
  padding: 1.25rem; text-align: left;
}
.flip-back h3 { color: var(--gold-light); margin: 0; }
.flip-back p { margin: 0; font-size: 0.92rem; }

/* ---------- parish council / member cards ---------- */
/* Flex layout so the last (partial) row centers; larger cards, no radius/shadow */
.member-grid {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 3.75rem 3rem;
  background: #ffffff; padding: clamp(1.75rem, 4vw, 3.5rem);
}
.member-card { display: flex; flex-direction: column; width: 400px; max-width: 100%; }
.member-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 0; box-shadow: none; }
.member-info {
  background: var(--ivory); box-shadow: none; border-radius: 0;
  margin: -2.4rem 0.7rem 0; position: relative; padding: 1.25rem 1.15rem;
}
.member-info .name { color: var(--green); font-weight: 700; font-family: var(--font-head); font-size: 1.35rem; }
.member-info .role { color: var(--ink-soft); font-size: 1.08rem; }

/* ---------- gallery ---------- */
.gallery-grid { columns: 3 240px; column-gap: 1rem; }
.gallery-grid figure { margin: 0 0 1rem; break-inside: avoid; }
.gallery-grid img {
  width: 100%; border-radius: 10px; cursor: zoom-in; display: block;
  box-shadow: var(--shadow-sm); transition: transform 0.2s, box-shadow 0.2s;
}
.gallery-grid img:hover, .gallery-grid img:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow); }
.gallery-grid figcaption { font-size: 0.85rem; color: var(--ink-soft); padding: 0.35rem 0.2rem 0; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 3000; display: none;
  align-items: center; justify-content: center; padding: 2rem;
  background: rgba(20,6,6,0.92);
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.6); border: 3px solid var(--gold); }
.lightbox .lb-close {
  position: absolute; top: 1rem; right: 1.25rem; background: var(--gold); color: var(--ink);
  border: 0; border-radius: 999px; width: 44px; height: 44px; font-size: 1.5rem; cursor: pointer; line-height: 1;
}
.lightbox .lb-cap { position: absolute; bottom: 1.25rem; left: 0; right: 0; text-align: center; color: var(--gold-light); }

/* =====================================================================
   EASY BANNER IMAGES — drop any photo into a header and control the fit.

   Simple way (no long gradient string to type). On the .hero or
   .page-head element, add the class "has-bg" and set --bg to your file:

     <div class="page-head has-bg" style="--bg:url('assets/My project-1.jpg')">

   By default the photo FILLS the banner and may crop the edges (cover).
   Mix in one fit class and/or one focus class if you need to:

     has-bg            fill the banner, crop overflow   (default, best for wide photos)
     has-bg bg-contain show the WHOLE photo, never crop (adds side/!top bars)
     bg-top            keep the TOP of the photo in view (e.g. faces up high)
     bg-bottom         keep the BOTTOM of the photo in view
     tall / short      make the banner taller or shorter to reveal more/less

   Tip: a photo looks "washed out / hidden" if the dark overlay is too strong.
   Lower the two rgba alpha numbers below (0.58 / 0.70) toward 0 to show more
   of the image, or raise them toward 1 for more contrast behind the text.
   ===================================================================== */
.has-bg {
  background-image: linear-gradient(rgba(60,6,6,0.58), rgba(90,6,6,0.70)), var(--bg);
  background-size: cover;            /* fill the area, cropping overflow */
  background-position: center;       /* keep the middle of the photo */
  background-repeat: no-repeat;
  background-color: var(--red-dark); /* shows behind a 'contain' image */
}
.bg-contain { background-size: contain; }      /* show the entire image */
.bg-cover   { background-size: cover; }         /* fill (default) */
.bg-top     { background-position: top center; }
.bg-bottom  { background-position: bottom center; }
.bg-left    { background-position: center left; }
.bg-right   { background-position: center right; }

/* taller / shorter banners (reveal more or less of a photo) */
.page-head.tall, .hero.tall   { padding-block: clamp(5rem, 16vw, 11rem); }
.page-head.short, .hero.short { padding-block: clamp(1.75rem, 5vw, 3rem); }

/* Foolproof alternative: a real <img> banner that NEVER crops and lets the
   section grow to the image's natural height. Put the title in .banner-caption.
     <section class="img-banner">
       <img src="assets/My project-1.jpg" alt="">
       <div class="banner-caption"><h1>Our Parish</h1></div>
     </section> */
.img-banner { position: relative; border-bottom: 5px solid var(--gold); background: var(--red-dark); }
.img-banner > img { width: 100%; height: auto; display: block; }
.img-banner .banner-caption {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 1rem; background: linear-gradient(rgba(60,6,6,0.35), rgba(90,6,6,0.55));
}
.img-banner .banner-caption h1 { color: var(--white); text-shadow: 0 2px 14px rgba(0,0,0,0.5); }
.img-banner .banner-caption p { color: var(--gold-light); text-shadow: 0 1px 8px rgba(0,0,0,0.5); }

/* =====================================================================
   DYNAMIC EFFECTS — scroll reveal + richer interactions
   js/main.js adds .reveal to cards/sections and .in when they scroll
   into view. Everything degrades gracefully if JS is off.
   ===================================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.2,.7,.3,1); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: 0.08s; }
.reveal.delay-2 { transition-delay: 0.16s; }
.reveal.delay-3 { transition-delay: 0.24s; }

/* lift + gold sheen on cards */
.card, .give-card, .member-card, .service-card { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.card:hover, .give-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.member-card:hover .member-photo { box-shadow: none; }

/* ---------- Parish History (sticky image beside scrolling text) ---------- */
.history-section { display: grid; grid-template-columns: 1fr 1fr; background: #f3ead8
  ; }
.history-copy { padding: clamp(2rem, 5vw, 4.5rem); text-align: center; }
.history-copy h2 { color: #33404f; }
.history-text p { margin: 0 0 1.15rem; }
.history-image-wrap img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 861px) {
  /* The wrap stretches to the full section height; the image pins within it,
     stopping just below the sticky header and releasing at the section end. */
  .history-image-wrap img {
    position: sticky;
    top: 84px;                       /* header height — never 0, or it hides under the nav */
    height: calc(100vh - 104px);
  }
}
@media (max-width: 860px) {
  .history-section { grid-template-columns: 1fr; }
  .history-image-wrap { order: -1; }          /* photo on top when stacked */
  .history-image-wrap img { height: 46vh; }
}

/* animated underline for nav links (desktop) */
@media (min-width: 1201px) {
  .nav-menu a { position: relative; }
  .nav-menu a::after {
    content: ""; position: absolute; left: 0.5rem; right: 0.5rem; bottom: 0.25rem; height: 2px;
    background: var(--gold-light); transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease;
  }
  .nav-menu a:hover::after { transform: scaleX(1); }
  .nav-menu a.active::after { transform: scaleX(1); }
}

/* buttons: subtle shine + lift */
.btn { position: relative; overflow: hidden; }
.btn:hover { transform: translateY(-2px); }
.btn::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-18deg); transition: left 0.55s ease;
}
.btn:hover::after { left: 140%; }

/* hero/page-head content gentle entrance */
.hero .container, .page-head .container { animation: fadeUp 0.8s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* gallery image zoom */
.gallery-grid img { transition: transform 0.3s ease, box-shadow 0.3s ease; }

/* =====================================================================
   CALENDAR PAGE
   ===================================================================== */
.cal-wrap { max-width: 880px; margin-inline: auto; }
.cal-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.cal-title { font-family: var(--font-head); font-size: clamp(1.3rem, 3vw, 1.8rem); color: var(--red); margin: 0; }
.cal-nav { display: flex; gap: 0.5rem; }
.cal-nav button {
  width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--gold); background: var(--white);
  color: var(--red); font-size: 1.2rem; cursor: pointer; line-height: 1;
}
.cal-nav button:hover { background: var(--gold); color: var(--ink); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-dow { text-align: center; font-weight: 700; color: var(--gold-deep); font-size: 0.8rem; text-transform: uppercase; padding: 0.4rem 0; }
.cal-cell {
  position: relative; min-height: 74px; background: var(--white); border: 1px solid var(--cream);
  border-radius: 8px; padding: 0.35rem 0.4rem; font-size: 0.85rem; cursor: default; transition: background 0.2s, transform 0.2s;
}
.cal-cell.empty { background: transparent; border: none; }
.cal-cell.today { border: 2px solid var(--red); }
.cal-cell.has-items { cursor: pointer; }
.cal-cell.has-items:hover { background: var(--ivory); transform: translateY(-2px); }
.cal-cell .dnum { font-weight: 700; color: var(--ink-soft); }
.cal-dots { position: absolute; bottom: 0.35rem; left: 0.4rem; display: flex; gap: 3px; flex-wrap: wrap; }
.cal-dot { width: 8px; height: 8px; border-radius: 50%; }
.dot-event { background: var(--red); }
.dot-holiday { background: var(--gold-deep); }
.dot-fasting { background: var(--green); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 1.25rem; justify-content: center; margin: 1.25rem 0; font-size: 0.9rem; }
.cal-legend span { display: inline-flex; align-items: center; gap: 0.4rem; }
.cal-legend .cal-dot { width: 12px; height: 12px; }
.cal-detail { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); border-top: 4px solid var(--gold); padding: 1.25rem; margin-top: 1.25rem; }
.cal-detail h3 { margin-top: 0; color: var(--red); }
.cal-detail ul { margin: 0; padding-left: 1.1rem; }
.cal-detail .tag { display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 0.1rem 0.5rem; border-radius: 999px; margin-right: 0.4rem; color: var(--white); }
.tag-event { background: var(--red); }
.tag-holiday { background: var(--gold-deep); color: var(--ink); }
.tag-fasting { background: var(--green); }

/* =====================================================================
   RESERVATION (Saba Event Hall) — date + time-slot picker
   ===================================================================== */
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.6rem; margin-top: 0.3rem; }
.slot {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.6rem 0.75rem; border: 1px solid #cbb8a8;
  border-radius: 10px; cursor: pointer; background: var(--white); transition: border-color 0.2s, background 0.2s;
}
.slot:hover { border-color: var(--gold-deep); }
.slot input { width: auto; }
.slot.selected, .slot:has(input:checked) { border-color: var(--red); background: #fff3f0; box-shadow: inset 0 0 0 1px var(--red); }
.hall-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.hall-photos img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; box-shadow: var(--shadow-sm); cursor: zoom-in; }
.hall-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.hall-stat { text-align: center; background: var(--white); border-radius: 12px; padding: 1rem; border-top: 4px solid var(--gold); box-shadow: var(--shadow-sm); }
.hall-stat .num { font-family: var(--font-head); font-size: 1.8rem; color: var(--red); }
.hall-stat .lbl { font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- horizontal photo carousel (Saba Event Hall) ---------- */
.carousel { position: relative; margin-inline: auto; }
.carousel-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;              /* Firefox: hide scrollbar */
  padding: 0.25rem 0;
}
.carousel-track::-webkit-scrollbar { display: none; } /* WebKit: hide scrollbar */
.carousel-track > img {
  flex: 0 0 min(86%, 660px);
  width: min(86%, 660px);
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  scroll-snap-align: center;
  cursor: zoom-in;
}
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 54px; height: 54px; border-radius: 50%; border: none;
  background: rgba(122, 10, 10, 0.85); color: var(--gold-light);
  font-size: 2rem; line-height: 1; cursor: pointer; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow); transition: background 0.2s, transform 0.1s;
}
.carousel-btn:hover { background: var(--red); }
.carousel-btn:active { transform: translateY(-50%) scale(0.94); }
.carousel-prev { left: 0.5rem; }
.carousel-next { right: 0.5rem; }
@media (max-width: 560px) {
  .carousel-track > img { flex-basis: 90%; width: 90%; }
  .carousel-btn { width: 44px; height: 44px; font-size: 1.6rem; }
}

/* =====================================================================
   MINISTRIES — alternating full-bleed split panels (photo + text)
   ===================================================================== */
/* Centered group intro (e.g. "Parish Ministries", "Educational Ministries") */
.ministry-intro { text-align: center; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.ministry-intro h2 { color: #33404f; font-size: clamp(1.8rem, 4vw, 2.7rem); margin: 0; }
.ministry-intro p { max-width: 62ch; margin: 1.25rem auto 0; color: var(--ink-soft); }
.mini-flourish { color: var(--green); letter-spacing: 0.35em; opacity: 0.65; font-size: 0.95rem; margin: 0.6rem 0 0; }

/* Full-bleed 2-up panel: image one side, text the other. */
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.split-media { position: relative; min-height: 340px; background: var(--cream); overflow: hidden; }
.split-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split-body {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; gap: 0.4rem; padding: clamp(2rem, 5vw, 4.5rem); background: #ffffff;
}
.split-body h3 { color: var(--green); font-size: clamp(1.3rem, 2.6vw, 1.8rem); margin: 0; }
.split-body p { max-width: 48ch; color: var(--ink-soft); margin: 0.3rem 0 0; }
.split.alt .split-body { background: var(--white); }

/* Desktop: .split--img-right puts the photo on the right */
@media (min-width: 861px) {
  .split--img-right .split-media { order: 2; }
  .split--img-right .split-body { order: 1; }
}
/* Mobile: stack with image on top */
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split-media { min-height: 240px; order: 0 !important; }
  .split-body { order: 1 !important; }
}

/* Sticky image: within a .split.sticky-media panel the photo pins in place
   while the panel's text scrolls past, then releases when the panel ends.
   Desktop only — on mobile the columns stack, so no pinning. */
@media (min-width: 861px) {
  .split.sticky-media { align-items: start; }        /* let the photo be shorter than the text */
  .split.sticky-media .split-media {
    position: sticky;
    top: 84px;                       /* rests just below the sticky site header */
    height: min(74vh, 560px);        /* fixed height so it has room to pin */
  }
}

/* ---------- center-align body paragraphs under headings ---------- */
main p { text-align: center; }
/* keep form controls and their labels left-aligned for usability */
main .field, main .field label, main form .form-note { text-align: left; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .flip-card:hover .flip-inner { transform: none; }
  .reveal { opacity: 1; transform: none; }
}
.location-info {
    text-align: center;
}

.location-info .btn-row {
    justify-content: center;
}
/* Social logo */
.grid-2 > div:first-child .social-row {
    justify-content: center;
}