/* =====================================================================
   Ιερό Παρεκκλήσιο Αγ. Κυπριανού & Οσίας Ιουστίνης
   Concept: «Καντήλι στην Ήπειρο» — ink-on-parchment, Byzantine restraint.
   ===================================================================== */

:root {
  /* palette */
  --paper:     #F4EEE2;
  --paper-2:   #EBE3D3;
  --ink:       #23201B;
  --ink-soft:  #4A453C;
  --byz-blue:  #1E3A5F;
  --byz-blue-d:#16293F;
  --oxblood:   #6E2230;
  --gold:      #B08D57;
  --gold-deep: #7A5F34; /* small gold text: 4.7:1 on --paper-2, 5.2:1 on --paper (WCAG AA); was #8A6D3F (3.8:1) */
  --stone:     #9C9382;
  --candle:    #E8C07A;
  --line:      rgba(35,32,27,.14);

  /* type */
  --serif: "Alegreya", Georgia, "Times New Roman", serif;
  --sans:  "Alegreya Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --fs-hero:  clamp(2.6rem, 6vw + 1rem, 4.6rem);
  --fs-h2:    clamp(1.85rem, 3vw + 1rem, 2.8rem);
  --fs-h3:    clamp(1.25rem, 1.5vw + .8rem, 1.65rem);
  --fs-lead:  clamp(1.18rem, .6vw + 1rem, 1.42rem);
  --fs-body:  clamp(1.06rem, .3vw + 1rem, 1.18rem);
  --fs-small: .92rem;

  /* layout */
  --maxw: 1120px;
  --maxw-narrow: 720px;
  --pad: clamp(1.1rem, 4vw, 2rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);
  --radius: 12px;
  --shadow: 0 14px 40px -22px rgba(22,20,16,.55);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ----- reset ----- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
main section[id] { scroll-margin-top: 76px; }

body {
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.8;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(1200px 600px at 50% -10%, rgba(232,192,122,.10), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='80' height='80' filter='url(%23n)' opacity='.025'/%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--byz-blue); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.12; font-weight: 700; }

:focus-visible {
  outline: 3px solid var(--byz-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  /* Hidden by its own height (translateY -100%), so it stays out of view even when the text wraps on a phone. */
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -100%);
  background: var(--byz-blue); color: #fff; padding: .6rem 1.1rem; border-radius: 0 0 10px 10px;
  z-index: 1000; transition: transform .2s; text-decoration: none; white-space: nowrap;
}
.skip-link:focus { transform: translate(-50%, 0); }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.container--narrow { max-width: var(--maxw-narrow); }
.muted { color: var(--ink-soft); font-size: var(--fs-small); }

/* ===================== HEADER / NAV ===================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: box-shadow .35s var(--ease);
}
/* The frosted background is a layer behind the header's content, not the header itself: backdrop-filter on
   .site-header made it the containing block of the fixed phone menu, which then shrank to the header's
   68 px once the page was scrolled. */
.site-header::before {
  content: ""; position: absolute; inset: 0 0 -1px 0; z-index: -1;
  background-color: transparent; border-bottom: 1px solid transparent;
  transition: background-color .35s var(--ease), border-color .35s;
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 1rem; }
.site-header.is-scrolled {
  box-shadow: 0 2px 20px -14px rgba(22,20,16,.5);
}
.site-header.is-scrolled::before {
  background-color: rgba(244,238,226,.92); border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}

.brand { display: inline-flex; align-items: center; gap: .65rem; min-height: 44px; text-decoration: none; color: inherit; }
.brand__mark { width: 36px; height: 36px; border-radius: 9px; flex: none; box-shadow: 0 4px 12px -6px rgba(22,20,16,.6); }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--serif); font-weight: 700; font-size: 1.04rem; color: var(--ink); letter-spacing: .2px; }
.brand__sub { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); }

/* hero state: header text light over photo */
.site-header:not(.is-scrolled) .brand__name { color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.site-header:not(.is-scrolled) .brand__sub { color: var(--candle); text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.site-header:not(.is-scrolled) .primary-nav a { color: rgba(255,255,255,.92); text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.site-header:not(.is-scrolled) .nav-toggle__bar { background: #fff; }

.primary-nav { display: flex; gap: clamp(.8rem, 2vw, 1.7rem); }
.primary-nav a {
  font-family: var(--sans); font-weight: 500; font-size: .96rem; text-decoration: none; color: var(--ink-soft);
  padding: .3rem 0; position: relative; transition: color .2s;
}
.primary-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: center; transition: transform .28s var(--ease);
}
.primary-nav a:hover, .primary-nav a.is-active { color: var(--byz-blue); }
.site-header:not(.is-scrolled) .primary-nav a:hover, .site-header:not(.is-scrolled) .primary-nav a.is-active { color: #fff; }
.primary-nav a:hover::after, .primary-nav a.is-active::after { transform: scaleX(1); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  /* position + z-index: the toggle (the close ✕ when open) stays above the slide-in menu panel on phones. */
  position: relative; z-index: 1;
  min-width: 44px; min-height: 44px; margin-inline-end: -9px; background: none; border: 0; padding: 8px; cursor: pointer;
}
.nav-toggle__bar { width: 26px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .3s; }

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px);
    flex-direction: column; gap: .4rem; justify-content: center; align-items: flex-start;
    background: var(--byz-blue-d); padding: 2rem clamp(1.5rem, 6vw, 2.5rem);
    transform: translateX(100%);
    box-shadow: -20px 0 50px -20px rgba(0,0,0,.6);
    /* Hidden while closed: its shadow would otherwise band the right edge of the screen, and its links would
       stay in the Tab order. visibility switches after the slide-out (0s delayed by .4s). */
    visibility: hidden; transition: transform .4s var(--ease), visibility 0s linear .4s;
  }
  .primary-nav.is-open { transform: translateX(0); visibility: visible; transition: transform .4s var(--ease); }
  .primary-nav a, .site-header:not(.is-scrolled) .primary-nav a { color: rgba(255,255,255,.92); text-shadow: none; font-size: 1.2rem; padding: .55rem 0; }
  /* On the dark panel the current section stays light (the desktop rule makes it dark blue once scrolled). */
  .primary-nav a:hover, .primary-nav a.is-active { color: #fff; }
  .primary-nav a::after { background: var(--candle); }
  body.nav-open { overflow: hidden; }
  .nav-toggle.is-open .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open .nav-toggle__bar:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-toggle.is-open .nav-toggle__bar { background: #fff; }
}

/* ===================== HERO ===================== */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 50% 8%, rgba(232,192,122,.16), transparent 55%),
    linear-gradient(to bottom, rgba(18,24,33,.34) 0%, rgba(18,24,33,.05) 34%, rgba(18,20,16,.18) 62%, rgba(18,20,16,.74) 100%);
}
.hero__content { position: relative; padding-bottom: clamp(3.5rem, 11vh, 7rem); padding-top: 6rem; color: #fff; }
.hero__eyebrow {
  font-family: var(--sans); font-weight: 500; letter-spacing: .32em; text-transform: uppercase;
  font-size: .82rem; color: var(--candle); margin-bottom: .9rem; text-shadow: 0 1px 3px rgba(0,0,0,.6);
}
.hero__title {
  font-size: var(--fs-hero); font-weight: 700; color: #fff; letter-spacing: .5px;
  text-shadow: 0 2px 26px rgba(0,0,0,.5); margin-bottom: 1.1rem;
}
.hero__amp { color: var(--candle); font-style: italic; font-weight: 500; }
.hero__line {
  font-family: var(--serif); font-style: italic; font-size: var(--fs-lead); max-width: 30ch;
  color: rgba(255,255,255,.96); text-shadow: 0 1px 14px rgba(0,0,0,.5);
}
.hero__loc {
  margin-top: 1.4rem; font-size: .88rem; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255,255,255,.86);
}
.hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: .85rem 1.35rem; margin-top: 1.65rem; }
.hero__btn {
  display: inline-flex; align-items: center; gap: .55rem; padding: .72rem 1.1rem;
  border: 1px solid rgba(232,192,122,.75); border-radius: 999px;
  background: rgba(22,41,63,.68); color: #fff; text-decoration: none; font-weight: 600;
  box-shadow: 0 12px 30px -16px rgba(0,0,0,.8); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px);
  transition: background .25s, border-color .25s, transform .2s;
}
.hero__btn:hover { background: rgba(22,41,63,.92); border-color: var(--candle); transform: translateY(-1px); }
.hero__text-link { display: inline-block; padding-block: .6rem; margin-block: -.6rem; color: rgba(255,255,255,.94); font-size: .98rem; font-weight: 500; text-decoration-color: rgba(255,255,255,.5); }
.hero__text-link:hover { color: #fff; text-decoration-color: var(--candle); }
.hero__cue {
  position: absolute; left: 50%; bottom: 1.4rem; transform: translateX(-50%);
  display: grid; place-items: center; width: 44px; height: 44px;
  color: #fff; font-size: 2rem; line-height: 1; text-decoration: none; opacity: .85;
  animation: floaty 2.4s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,8px); } }

/* key facts */
.chapel-facts { background: var(--byz-blue-d); color: #fff; border-block: 1px solid rgba(232,192,122,.22); }
.chapel-facts__grid { display: grid; grid-template-columns: repeat(3, 1fr); padding-block: 1.25rem; }
.chapel-fact { padding: .2rem clamp(.8rem, 3vw, 2.25rem); text-align: center; line-height: 1.35; }
.chapel-fact + .chapel-fact { border-left: 1px solid rgba(255,255,255,.15); }
.chapel-fact__label {
  display: block; margin-bottom: .24rem; color: var(--candle); font-size: .74rem;
  font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}
.chapel-fact strong { font-family: var(--serif); font-size: clamp(1rem, 1.7vw, 1.2rem); font-weight: 700; }
@media (max-width: 560px) {
  .chapel-facts__grid { grid-template-columns: 1fr; padding-block: .55rem; }
  .chapel-fact { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-block: .65rem; text-align: left; }
  .chapel-fact + .chapel-fact { border-left: 0; border-top: 1px solid rgba(255,255,255,.12); }
  .chapel-fact__label { margin: 0; }
  .chapel-fact strong { text-align: right; }
}

/* ===================== SECTIONS ===================== */
.section { padding-block: var(--section-y); position: relative; }
.section--band { background: var(--paper-2); border-block: 1px solid var(--line); }
.section-head { text-align: center; max-width: 60ch; margin-inline: auto; margin-bottom: clamp(2rem, 5vw, 3.2rem); }
.eyebrow {
  font-family: var(--sans); font-weight: 600; letter-spacing: .26em; text-transform: uppercase;
  font-size: .8rem; color: var(--gold-deep); margin-bottom: .7rem;
}
.eyebrow--oxblood { color: var(--oxblood); }
.section-title { font-size: var(--fs-h2); color: var(--ink); position: relative; padding-bottom: .7rem; }
.section-title::after {
  content: ""; display: block; width: 64px; height: 2px; background: var(--gold);
  margin: .85rem auto 0; opacity: .85;
}
.section-intro { margin-top: 1.1rem; font-size: var(--fs-lead); color: var(--ink-soft); }

.ornament { text-align: center; margin: clamp(1.6rem, 4vw, 2.6rem) auto 0; color: var(--gold); }
.ornament img { display: inline-block; opacity: .8; }
.ornament--footer { margin-top: 0; margin-bottom: 1.4rem; }

/* lead / blessing */
.section--blessing { padding-block: clamp(3rem, 7vw, 5rem); text-align: center; }
.lead { font-family: var(--serif); font-size: var(--fs-lead); line-height: 1.7; color: var(--ink); }
.drop-cap::first-letter {
  font-family: var(--serif); font-weight: 700; color: var(--gold-deep);
  font-size: 3.4em; line-height: .72; float: left; margin: .08em .12em 0 0;
}

/* prose */
.prose { max-width: 66ch; margin-inline: auto; }
.prose p { margin-bottom: 1.15em; }
.prose p + p { text-indent: 0; }
.pull-quote {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 1.4vw + 1rem, 1.6rem);
  line-height: 1.5; color: var(--byz-blue); text-align: center;
  margin: 1.8rem auto; padding: 1.1rem 1.4rem; max-width: 40ch;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}

/* icon feature */
.icon-feature { max-width: 520px; margin: 0 auto clamp(2rem, 5vw, 3rem); text-align: center; }
.icon-feature img {
  border-radius: 8px; box-shadow: var(--shadow);
  border: 1px solid rgba(176,141,87,.4); padding: 8px; background: #fff;
}
.icon-feature figcaption { margin-top: .9rem; font-size: var(--fs-small); color: var(--ink-soft); font-style: italic; }

/* card grids */
.cards-2 { display: grid; gap: clamp(1.2rem, 3vw, 2rem); margin-top: clamp(2rem, 4vw, 3rem); }
@media (min-width: 720px) { .cards-2 { grid-template-columns: 1fr 1fr; align-items: start; } }

.info-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.3rem, 3vw, 2rem); box-shadow: 0 10px 30px -24px rgba(22,20,16,.5);
}
.section--band .info-card { background: #fbf7ee; }
.info-card__kicker { font-family: var(--sans); font-weight: 700; letter-spacing: .04em; color: var(--gold-deep); font-size: .82rem; text-transform: uppercase; margin-bottom: .4rem; }
.info-card__big { font-family: var(--serif); font-weight: 700; font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--oxblood); line-height: 1; margin-bottom: .7rem; }
.info-card__text { font-size: 1.02rem; color: var(--ink-soft); margin-bottom: .9rem; }
.info-card__text:last-child { margin-bottom: 0; }
.info-card--feast { border-color: rgba(176,141,87,.45); }

/* relic cards */
.relic-card {
  background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--gold);
  border-radius: var(--radius); padding: clamp(1.3rem, 3vw, 2rem);
}
.relic-card__name { font-size: var(--fs-h3); color: var(--byz-blue); }
.relic-card__role { font-style: italic; color: var(--ink-soft); margin-bottom: .35rem; }
.relic-card__feast { font-size: var(--fs-small); letter-spacing: .04em; color: var(--gold-deep); margin-bottom: .9rem; }
.metropolis-note {
  max-width: 64ch; margin: clamp(2rem,4vw,3rem) auto 0; text-align: center;
  font-style: italic; color: var(--ink-soft);
}

/* ===================== TAMA (founder letter) ===================== */
.section--tama { background: linear-gradient(180deg, var(--paper) 0%, #efe6d6 100%); }
.tama-grid { display: grid; gap: clamp(1.5rem, 4vw, 2.6rem); align-items: start; }
@media (min-width: 860px) { .tama-grid { grid-template-columns: 320px 1fr; } }
.tama-photo img {
  border-radius: 10px; box-shadow: var(--shadow); border: 6px solid #fff;
  position: sticky; top: 90px;
}
@media (max-width: 859px) { .tama-photo img { position: static; max-width: 300px; margin-inline: auto; } }

.letter {
  position: relative; max-width: 60ch; font-family: var(--serif); font-size: 1.16rem; line-height: 1.9;
  color: var(--ink); padding-left: clamp(1rem, 3vw, 1.8rem);
  border-left: 2px solid var(--oxblood);
}
.letter p { margin-bottom: 1.05em; }
.letter__intro.drop-cap::first-letter { color: var(--oxblood); }
.letter__cap {
  font-weight: 700; font-style: italic; color: var(--oxblood); font-size: 1.22rem;
  text-align: center; padding: .4rem 0;
}
.letter__sign { margin-top: 1.6rem; font-style: italic; color: var(--ink-soft); }
.letter__name { font-family: var(--serif); font-size: 1.5rem; font-style: normal; font-weight: 700; color: var(--oxblood); }

/* ===================== PRAYERS ===================== */
.prayers-grid { display: grid; gap: clamp(1.6rem, 4vw, 2.8rem); align-items: start; }
@media (min-width: 860px) { .prayers-grid { grid-template-columns: 340px 1fr; } }
.prayer-icon { margin: 0; text-align: center; }
.prayer-icon img {
  border-radius: 8px; background: #fff; padding: 8px;
  border: 1px solid rgba(176,141,87,.45); box-shadow: var(--shadow);
}
@media (max-width: 859px) { .prayer-icon img { max-width: 300px; margin-inline: auto; } }
.prayer-icon figcaption { margin-top: .8rem; font-style: italic; font-size: var(--fs-small); color: var(--ink-soft); }

.hymn {
  background: #fbf7ee; border: 1px solid var(--line); border-left: 3px solid var(--gold);
  border-radius: var(--radius); padding: clamp(1.2rem, 3vw, 1.7rem); margin-bottom: 1.4rem;
}
.hymn__label { font-family: var(--sans); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .76rem; color: var(--gold-deep); margin-bottom: .5rem; }
.hymn__body { font-family: var(--serif); font-style: italic; font-size: 1.12rem; line-height: 1.75; color: var(--ink); }

.prayer { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); overflow: hidden; margin-bottom: 1.2rem; }
.prayer__summary { list-style: none; cursor: pointer; padding: 1.05rem clamp(1.1rem,3vw,1.5rem); display: flex; flex-direction: column; gap: .15rem; position: relative; transition: background .2s; }
.prayer__summary::-webkit-details-marker { display: none; }
.prayer__summary:hover { background: #fbf7ee; }
.prayer__summary::after {
  content: "+"; position: absolute; right: clamp(1.1rem,3vw,1.5rem); top: 50%; transform: translateY(-50%);
  font-family: var(--serif); font-size: 1.7rem; color: var(--gold-deep); line-height: 1; transition: transform .3s;
}
.prayer[open] .prayer__summary::after { content: "–"; }
.prayer__title { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; color: var(--byz-blue); padding-right: 2rem; }
.prayer__hint { font-size: var(--fs-small); color: var(--ink-soft); }
.prayer__body { padding: 0 clamp(1.1rem,3vw,1.5rem) 1.3rem; border-top: 1px solid var(--line); }
.prayer__body p { font-family: var(--serif); font-size: 1.04rem; line-height: 1.85; color: var(--ink); margin-top: 1.05em; text-align: justify; }
.prayer__end { text-align: center !important; font-style: italic; color: var(--gold-deep); font-size: var(--fs-small) !important; margin-top: 1.3em !important; }
.prayer-note { font-style: italic; color: var(--ink-soft); font-size: .98rem; margin-bottom: 1.3rem; padding-left: .9rem; border-left: 2px solid var(--stone); }

.download-card {
  display: flex; align-items: center; gap: 1rem; text-decoration: none;
  background: var(--byz-blue); color: #fff; border-radius: var(--radius);
  padding: 1rem 1.25rem; transition: background .25s, transform .15s; box-shadow: 0 12px 28px -18px rgba(30,58,95,.9);
}
.download-card:hover { background: var(--byz-blue-d); transform: translateY(-1px); }
.download-card__icon { color: var(--candle); flex: none; }
.download-card__text { display: flex; flex-direction: column; gap: .15rem; }
.download-card__text strong { font-family: var(--serif); font-size: 1.08rem; font-weight: 700; }
.download-card__text small { font-size: .82rem; color: rgba(255,255,255,.8); }

/* ===================== DIVINE LITURGY VIDEO ===================== */
.section--service {
  overflow: hidden; color: rgba(255,255,255,.82);
  background:
    radial-gradient(circle at 78% 38%, rgba(232,192,122,.10), transparent 28rem),
    linear-gradient(135deg, #142840 0%, var(--byz-blue-d) 55%, #101f31 100%);
  border-block: 1px solid rgba(232,192,122,.22);
}
.section--service::before {
  content: ""; position: absolute; inset: 1rem; pointer-events: none;
  border: 1px solid rgba(232,192,122,.10);
}
.service-grid { display: grid; align-items: center; gap: clamp(2.4rem, 7vw, 6.5rem); }
@media (min-width: 820px) { .service-grid { grid-template-columns: minmax(0, 1fr) minmax(290px, 390px); } }
.service-copy { position: relative; z-index: 1; max-width: 600px; }
.service-copy .eyebrow { color: var(--candle); }
.service-copy .section-title { color: #fff; padding-bottom: 0; }
.service-copy .section-title::after { margin-left: 0; background: var(--candle); }
.service-lead { margin-top: 1.35rem; font-family: var(--serif); font-size: var(--fs-lead); line-height: 1.65; color: rgba(255,255,255,.85); }
.service-play-hint {
  display: flex; align-items: center; gap: .85rem; margin-top: 1.5rem;
  padding: 1rem 1.1rem; border-left: 2px solid var(--candle); background: rgba(255,255,255,.05);
  font-size: .96rem; line-height: 1.5; color: rgba(255,255,255,.72);
}
.service-play-hint strong { color: #fff; font-weight: 600; }
.service-play-hint__icon { display: grid; flex: none; place-items: center; color: var(--candle); }
.service-media { position: relative; z-index: 1; width: 100%; max-width: 390px; margin-inline: auto; text-align: center; }
.service-video-shell {
  padding: 8px; border: 1px solid rgba(232,192,122,.68); border-radius: 18px;
  background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(176,141,87,.16));
  box-shadow: 0 32px 80px -28px rgba(0,0,0,.95), 0 0 0 7px rgba(255,255,255,.025);
}
.service-video-shell video {
  display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover;
  border-radius: 11px; background: #080808;
}
.service-media figcaption { max-width: 36ch; margin: 1rem auto 0; color: rgba(255,255,255,.62); font-size: var(--fs-small); font-style: italic; line-height: 1.5; }

/* audio */
.audio-wrap { margin-top: 1.5rem; max-width: 520px; }
.audio-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.2rem; text-align: left;
}
.audio-card figcaption { font-family: var(--serif); font-weight: 700; color: var(--ink); margin-bottom: .35rem; font-size: 1.04rem; }
.audio-card audio { width: 100%; }
.audio-card--soon { border-style: dashed; }
.audio-soon { display: inline-flex; align-items: center; gap: .2rem; color: var(--gold-deep); font-size: .92rem; font-style: italic; letter-spacing: .04em; }
.section--service .audio-card { background: rgba(255,255,255,.055); border-color: rgba(255,255,255,.18); }
.section--service .audio-card figcaption { color: rgba(255,255,255,.9); }
.section--service .audio-soon { color: var(--candle); }

/* ===================== GALLERY ===================== */
.gallery { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.gallery a {
  display: block; position: relative; border-radius: 8px; overflow: hidden; cursor: pointer;
  border: 0; padding: 0; background: var(--paper); box-shadow: 0 8px 22px -18px rgba(22,20,16,.7);
}
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: center 28%; transition: transform .5s var(--ease), filter .4s; }
.gallery a:hover img { transform: scale(1.05); filter: saturate(1.05); }

/* ===================== VISIT / MAP ===================== */
.visit-grid { display: grid; gap: clamp(1.4rem, 4vw, 2.4rem); align-items: stretch; }
@media (min-width: 860px) { .visit-grid { grid-template-columns: 0.9fr 1.1fr; } }
.visit-dl { display: grid; grid-template-columns: auto; gap: 0; margin-bottom: 1.5rem; }
.visit-dl dt { font-family: var(--sans); font-weight: 700; color: var(--gold-deep); text-transform: uppercase; letter-spacing: .08em; font-size: .76rem; margin-top: 1.1rem; }
.visit-dl dt:first-child { margin-top: 0; }
.visit-dl dd { color: var(--ink); margin: .2rem 0 0; }
.map-frame { position: relative; }
#map { height: clamp(300px, 46vh, 440px); width: 100%; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--paper-2); z-index: 0; }
.map-fallback { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.map-frame.is-ready .map-fallback { display: none; }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-block; font-family: var(--sans); font-weight: 600; font-size: 1rem;
  background: var(--byz-blue); color: #fff; text-decoration: none; cursor: pointer;
  padding: .8rem 1.5rem; border-radius: 999px; border: 1px solid var(--byz-blue);
  transition: background .25s, transform .15s, box-shadow .25s; box-shadow: 0 10px 24px -16px rgba(30,58,95,.9);
}
.btn:hover { background: var(--byz-blue-d); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--byz-blue); border-color: rgba(30,58,95,.4); box-shadow: none; }
.btn--ghost:hover { background: rgba(30,58,95,.06); color: var(--byz-blue-d); }

/* ===================== FOOTER ===================== */
.site-footer { background: var(--byz-blue-d); color: rgba(255,255,255,.85); text-align: center; padding-block: clamp(3rem, 6vw, 4.5rem); }
.site-footer .ornament { color: var(--candle); }
.footer-ded { font-family: var(--serif); font-size: 1.2rem; color: #fff; line-height: 1.6; }
.footer-ded__by { color: var(--candle); font-style: italic; }
.footer-bless { font-family: var(--serif); font-style: italic; color: rgba(255,255,255,.7); margin-top: 1.1rem; }
.to-top { display: inline-flex; align-items: center; min-height: 44px; margin-top: 1.8rem; color: var(--candle); text-decoration: none; font-size: .92rem; letter-spacing: .04em; }
.to-top:hover { text-decoration: underline; }
.footer-credit { margin-top: 1.6rem; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.footer-credit span { color: rgba(255,255,255,.78); font-weight: 600; }
.footer-privacy { margin: 1.4rem auto 0; max-width: 56ch; font-size: .72rem; line-height: 1.55; color: rgba(255,255,255,.6); /* 6:1 on the footer blue (AA); .42 was 3.8:1 */ }

/* ===================== REVEAL ===================== */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero__cue { animation: none; }
  .gallery img { transition: none; }
}

/* Map zoom buttons: 44 px touch targets for finger input (Leaflet's default is 30 px; Leaflet also tags
   mouse browsers "leaflet-touch", hence the pointer query). */
@media (pointer: coarse) {
  .leaflet-touch .leaflet-bar a { width: 44px; height: 44px; line-height: 44px; font-size: 22px; }
}
