/* KOCAFI redesign — deep plum + gold, majestic editorial */
:root {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(3rem, 0.5rem + 7vw, 8rem);

  /* Spacing */
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem;
  --space-4: 1rem; --space-5: 1.25rem; --space-6: 1.5rem;
  --space-8: 2rem; --space-10: 2.5rem; --space-12: 3rem;
  --space-16: 4rem; --space-20: 5rem; --space-24: 6rem; --space-32: 8rem;

  /* Palette */
  --color-bg: #14101f;
  --color-surface: #1b1629;
  --color-surface-2: #231c35;
  --color-surface-offset: #2a2140;
  --color-divider: #332a4d;
  --color-border: #453a68;
  --color-text: #f2ede4;
  --color-text-muted: #b6abcc;
  --color-text-faint: #8b7fa6;
  --color-gold: #d4a94e;
  --color-gold-hover: #e8c06a;
  --color-gold-deep: #a37c2c;
  --color-gold-soft: rgba(212, 169, 78, 0.13);
  --color-plum: #4a2d7a;

  /* Fonts */
  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body: 'Satoshi', 'Helvetica Neue', sans-serif;

  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.45);

  --content-narrow: 680px;
  --content-default: 1040px;
  --content-wide: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-20);
}

body {
  min-height: 100dvh;
  line-height: 1.65;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
}

img, picture, video, svg { display: block; max-width: 100%; height: auto; }

input, button, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4, h5, h6 { text-wrap: balance; line-height: 1.12; font-family: var(--font-display); font-weight: 600; }
p, li, figcaption { text-wrap: pretty; max-width: 72ch; }

::selection { background: rgba(212, 169, 78, 0.3); color: var(--color-text); }

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

button { cursor: pointer; background: none; border: none; }

a { text-decoration: none; color: inherit; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

a, button, [role='button'], input, textarea, select {
  transition: color var(--transition-interactive),
    background var(--transition-interactive),
    border-color var(--transition-interactive),
    box-shadow var(--transition-interactive);
}

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

/* ---------- Layout helpers ---------- */
.container { width: min(var(--content-default), 100% - 2 * var(--space-6)); margin-inline: auto; }
.container--wide { width: min(var(--content-wide), 100% - 2 * var(--space-6)); }
.section { padding-block: clamp(var(--space-12), 7vw, var(--space-24)); }
.section--tight { padding-block: clamp(var(--space-8), 5vw, var(--space-16)); }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-gold);
  display: block;
  margin-bottom: var(--space-4);
}

.section-title { font-size: var(--text-xl); color: var(--color-text); }
.lede { font-size: var(--text-lg); color: var(--color-text-muted); font-weight: 400; line-height: 1.55; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20, 16, 31, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-divider);
}
.header__inner {
  display: flex; align-items: center; gap: var(--space-6);
  min-height: 76px;
}
.header > .container { width:min(var(--content-wide),100% - 2 * var(--space-6)); }
.brand { display: flex; align-items: center; gap: var(--space-4); margin-right: auto; }
.brand img { width: 46px; height: auto; }
.brand__name {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}
.brand__name span { display: block; color: var(--color-text-muted); font-weight: 500; letter-spacing: 0.12em; }

.nav { display: flex; align-items: center; gap: var(--space-4); }
.nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding-block: var(--space-2);
}
.nav a:hover { color: var(--color-text); }
.nav a[aria-current='page'] { color: var(--color-gold); }
.nav a.btn { font-size: var(--text-xs); padding-block: var(--space-3); }
.nav a.btn--gold, .nav a.btn--gold:hover { color: #1c1408; }
@media (min-width:1201px) {
  .header__inner { gap:16px; }
  .header .brand { gap:12px; }
  .nav { gap:8px; }
  .nav a:not(.btn) { font-size:11px; letter-spacing:0.04em; }
  .nav a.btn { padding-inline:18px; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn--gold { background: var(--color-gold); color: #1c1408; }
.btn--gold:hover { background: var(--color-gold-hover); box-shadow: 0 4px 18px rgba(212, 169, 78, 0.35); }
.btn--outline { border-color: var(--color-border); color: var(--color-text); }
.btn--outline:hover { border-color: var(--color-gold); color: var(--color-gold); }
.btn--ghost { color: var(--color-gold); padding-inline: 0; }
.btn--ghost:hover { color: var(--color-gold-hover); }

.menu-toggle { display: none; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  min-height: min(85vh, 800px);
  display: flex; align-items: center;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(115deg, var(--color-bg), #251934);
  border-bottom: 1px solid var(--color-divider);
}
.hero::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at 82% 45%, rgba(212, 169, 78, 0.08), transparent 52%);
  pointer-events: none;
}
.hero__layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--space-12); align-items: center; }
.hero__content { padding-block: var(--space-20); max-width: 720px; }
.hero__content > .eyebrow { text-align:center; }
.hero__identity { position: relative; padding-block: var(--space-12); }
.hero__identity::before {
  content: '';
  position: absolute; inset: 0; margin: auto;
  width: 110%; aspect-ratio: 1; height: auto;
  border: 1px solid rgba(212, 169, 78, 0.16);
  border-radius: 50%; z-index: -1;
}
.hero__identity img { width: 100%; height: auto; filter: drop-shadow(0 20px 36px rgba(0, 0, 0, 0.3)); }
.hero__identity--prelate { padding-block: var(--space-8); }
.hero__identity--prelate::before { display: none; }
.prelate-portrait { position: relative; height: clamp(360px, 38vw, 500px); border-bottom: 1px solid var(--color-border); overflow: hidden; }
.prelate-portrait .prelate-portrait__seal { position: absolute; width: 59%; top: 0; right: 0; }
.prelate-portrait .prelate-portrait__person { position: absolute; width: 87%; bottom: 0; left: -4%; }
.prelate-caption { padding-top: var(--space-4); text-align: center; }
.prelate-caption span { display: block; color: var(--color-gold); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.14em; }
.prelate-caption strong { display: block; font-family: var(--font-display); font-size: var(--text-xl); font-weight: 500; margin-top: var(--space-1); }
.prelate-portrait--couple { display: flex; align-items: flex-end; height: clamp(290px, 29vw, 380px); }
.prelate-portrait--couple .prelate-portrait__seal { width: 44%; top: 0; right: 28%; opacity: 0.85; }
.prelate-portrait--couple .prelate-portrait__person,
.prelate-portrait--couple .prelate-portrait__first-lady { position: relative; z-index: 1; left: auto; bottom: auto; width: 50%; height: 91%; object-fit: contain; object-position: center bottom; }
.prelate-portrait--joint { height: clamp(360px, 34vw, 440px); }
.prelate-portrait--joint .prelate-portrait__seal { width: 42%; top: 0; right: 0; opacity: 0.85; }
.prelate-portrait--joint .prelate-portrait__joint { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.leadership-captions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.leadership-captions strong { font-size: clamp(1.25rem, 1.8vw, 1.75rem); line-height: 1.2; }
.leadership-title { text-align: center; }
.leadership-title strong { max-width: 30ch; margin-inline: auto; font-size: clamp(1.5rem, 2vw, 2rem); line-height: 1.25; }
.leadership-fellowship { margin-top: var(--space-4); color: var(--color-text-muted); font-size: var(--text-xs); }
.about-leadership { order: 2; align-self: start; padding: var(--space-5); border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: linear-gradient(145deg, var(--color-surface), #251934); }
.church-directory { max-width: 850px; }
.church-entry { padding: clamp(var(--space-6), 5vw, var(--space-12)); border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); }
.church-entry h2 { font-size: var(--text-xl); margin-bottom: var(--space-4); }
.church-entry p { color: var(--color-text-muted); }
.church-entry__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-block: var(--space-6) var(--space-4); }
.church-entry__note { font-size: var(--text-sm); }
.church-pastor { display: flex; align-items: center; gap: var(--space-4); margin-block: var(--space-5) var(--space-6); }
.church-pastor img { flex: 0 0 96px; width: 96px; height: auto; border-radius: var(--radius-md); border: 1px solid var(--color-border); }
.church-pastor__role { display: block; margin-bottom: var(--space-2); color: var(--color-gold); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.12em; }
.church-pastor strong { display: block; font-size: var(--text-base); font-weight: 500; color: var(--color-text); }
@media (max-width: 400px) { .church-pastor img { flex-basis: 72px; width: 72px; } }
.church-pastor--couple { display:grid; grid-template-columns:minmax(0,260px) minmax(0,1fr); gap:var(--space-6); }
.church-pastor--couple img { width:100%; max-width:260px; max-height:350px; object-fit:contain; border:0; border-radius:0; }
.church-pastor__names { display:grid; gap:var(--space-6); }
@media(max-width:600px) { .church-pastor--couple { grid-template-columns:1fr; } }
.church-video { margin-block: var(--space-4) var(--space-6); }
.church-video summary { position: relative; display: block; list-style: none; width: 100%; max-width: 360px; color: var(--color-text); cursor: pointer; font-weight: 500; border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; background: var(--color-bg); }
.church-video summary::-webkit-details-marker { display: none; }
.church-video summary:hover { border-color: var(--color-gold); }
.church-video summary .video-thumbnail__image { display: block; width: 100%; height: auto; aspect-ratio: 16 / 11; object-fit: cover; object-position: center 25%; filter: none; }
.video-thumbnail__play { position: absolute; top: 0; left: 0; right: 0; width: 42px; height: 42px; margin: 20% auto 0; filter: drop-shadow(0 2px 8px #000); pointer-events: none; }
.video-thumbnail__play circle { fill: rgba(20,16,31,0.9); stroke: var(--color-gold); stroke-width: 1; }
.video-thumbnail__play path { fill: var(--color-gold); }
.church-video summary .video-thumbnail__caption { display: block; padding: var(--space-3); font-size: var(--text-xs); color: var(--color-text); line-height: 1.45; text-transform: none; letter-spacing: normal; }
.video-thumbnails { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); margin-top: var(--space-5); align-items: start; }
.video-thumbnails--single { grid-template-columns:1fr; max-width:230px; margin-inline:auto; }
.media-more { display:inline-block; margin-top:var(--space-4); color:var(--color-gold); font-size:var(--text-xs); text-underline-offset:4px; }
.media-more:hover { text-decoration:underline; }
.video-thumbnails .church-video { min-width: 0; margin-block: 0; }
.video-thumbnails:has(.church-video[open]) { grid-template-columns: 1fr; }
.video-thumbnails:has(.church-video[open]) .church-video:not([open]) summary { max-width: 180px; }
.church-video[open] summary .video-thumbnail__image,
.church-video[open] summary .video-thumbnail__play { display: none; }
.church-video[open] summary .video-thumbnail__caption::after { content: ' · Close video'; color: var(--color-gold); }
.church-video__player { margin-top: var(--space-4); }
.church-video video { display: block; width: 100%; max-width: 360px; height: auto; max-height: 70svh; object-fit: contain; background: #000; border-radius: var(--radius-md); }
.church-video__direct { display: inline-block; margin-top: var(--space-3); color: var(--color-gold); font-size: var(--text-sm); }
.bishop-video summary { font-size: var(--text-sm); }
.prelate-caption .bishop-video summary { margin-inline: auto; }
.prelate-caption .bishop-video video { margin-inline: auto; }
@media (min-width: 961px) and (max-width: 1150px) {
  .header__inner { gap: var(--space-3); }
  .header .brand__name { max-width: 190px; }
  .nav { gap: var(--space-3); }
  .nav a { font-size: var(--text-xs); }
}
.hero h1 {
  font-size: var(--text-3xl);
  font-weight: 500;
  color: #fdfaf3;
  margin-bottom: var(--space-6);
}
.hero h1 em { font-style: italic; color: var(--color-gold); }
.hero .lede { margin-bottom: var(--space-10); max-width: 56ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-4); }

/* ---------- Homepage event countdown ---------- */
.event-countdown {
  padding-block: var(--space-10);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-divider);
}
.event-countdown__layout { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-10); align-items: center; }
.event-countdown__details h2 { font-size: var(--text-xl); font-weight: 500; margin-bottom: var(--space-3); }
.event-countdown__details p { color: var(--color-text-muted); font-size: var(--text-sm); }
.event-countdown__details .event-countdown__anniversary { color: var(--color-gold); margin-bottom: var(--space-3); }
.event-countdown__details .btn { margin-top: var(--space-3); }
.event-countdown__status { color: var(--color-gold); font-size: var(--text-sm); margin-bottom: var(--space-4); }
.countdown-digits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); }
.countdown-digits[hidden] { display: none; }
.countdown-digits > div { padding: var(--space-5) var(--space-2); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-bg); text-align: center; }
.countdown-digits [data-countdown-days],
.countdown-digits [data-countdown-hours],
.countdown-digits [data-countdown-minutes],
.countdown-digits [data-countdown-seconds] { display: block; font-size: var(--text-xl); font-variant-numeric: tabular-nums; font-weight: 500; color: var(--color-text); line-height: 1.2; }
.countdown-digits__unit { display: block; margin-top: var(--space-2); color: var(--color-text-muted); font-size: var(--text-xs); }
@media (max-width: 700px) {
  .event-countdown__layout { grid-template-columns: 1fr; gap: var(--space-6); }
  .countdown-digits { gap: var(--space-2); }
}

/* ---------- Page hero (interior) ---------- */
.page-hero {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
  border-bottom: 1px solid var(--color-divider);
  background:
    radial-gradient(ellipse at 85% 0%, rgba(74, 45, 122, 0.28), transparent 55%),
    var(--color-bg);
}
.page-hero h1 { font-size: var(--text-2xl); font-weight: 500; max-width: 20ch; }
.page-hero .lede { margin-top: var(--space-5); max-width: 60ch; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: var(--space-6); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  min-width: 0;
  overflow-wrap: anywhere;
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex; flex-direction: column; gap: var(--space-4);
}
.card:hover { border-color: var(--color-border); }
.card h3 { font-size: var(--text-lg); }
.card p { font-size: var(--text-base); color: var(--color-text-muted); }

.product-card { padding: 0; overflow: hidden; }
.product-card__media {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--color-surface-offset), var(--color-surface-2));
  display: flex; align-items: center; justify-content: center;
}
.product-card__media img { width: 100%; height: 100%; object-fit: cover; }
.product-card__body { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.price { font-family: var(--font-display); font-size: var(--text-lg); color: var(--color-gold); }
.price s { color: var(--color-text-faint); font-size: 0.72em; margin-left: var(--space-2); }
.product-card .btn { margin-top: auto; }

/* ---------- Split sections ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-10), 5vw, var(--space-16));
  align-items: center;
}
.split__media img { border-radius: var(--radius-lg); border: 1px solid var(--color-divider); width: 100%; }
.vision-couple img { border: 0; border-radius: 0; max-height: 540px; object-fit: contain; }
.vision-couple figcaption {
  margin-top: var(--space-3);
  max-width: none;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-align: center;
}
/* Keep the group photo at the old portrait's top edge in the split layout. */
@media (min-width: 701px) {
  .vision-couple { width: 100%; aspect-ratio: 800 / 1060; max-height: 540px; }
}
.split--rev .split__media { order: 2; }

/* ---------- Events ---------- */
.event {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: var(--space-6);
  align-items: center;
  padding: var(--space-6) var(--space-8);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}
.event:hover { border-color: var(--color-gold-deep); }
.event__date { text-align: center; border-right: 1px solid var(--color-divider); padding-right: var(--space-6); }
.event__month { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.2em; color: var(--color-gold); text-transform: uppercase; }
.event__day { font-family: var(--font-display); font-size: var(--text-xl); line-height: 1; }
.event__year { font-size: var(--text-xs); color: var(--color-text-faint); }
.event h3 { font-size: var(--text-lg); }
.event p { font-size: var(--text-sm); color: var(--color-text-muted); }
.event .btn { justify-self: end; max-width: 100%; white-space: normal; text-align: center; }

/* ---------- Buttons row / CTA band ---------- */
.cta-band {
  background:
    radial-gradient(ellipse at 20% 100%, rgba(74, 45, 122, 0.4), transparent 60%),
    var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-10), 5vw, var(--space-16));
  text-align: center;
}
.cta-band h2 { font-size: var(--text-xl); font-weight: 500; margin-bottom: var(--space-4); }
.cta-band p { color: var(--color-text-muted); margin-inline: auto; margin-bottom: var(--space-8); max-width: 56ch; }
.cta-band__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--space-4); }

/* ---------- Pull quote ---------- */
.pullquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-xl);
  font-weight: 500;
  line-height: 1.35;
  color: #fdfaf3;
  border-left: 2px solid var(--color-gold);
  padding-left: var(--space-8);
  max-width: 30ch;
}

/* ---------- Shop note ---------- */
.note {
  display: flex; gap: var(--space-4); align-items: flex-start;
  background: var(--color-gold-soft);
  border: 1px solid rgba(212, 169, 78, 0.35);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.note svg { flex-shrink: 0; margin-top: 3px; color: var(--color-gold); }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--color-divider);
  background: #0f0c18;
  padding-block: var(--space-16) var(--space-8);
  margin-top: var(--space-16);
}
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-10); margin-bottom: var(--space-12); }
.footer .brand img { width: 56px; }
.footer h3 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-5);
}
.footer p, .footer li { font-size: var(--text-sm); color: var(--color-text-muted); }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-3); }
.footer a:hover { color: var(--color-text); }
.footer__bottom {
  border-top: 1px solid var(--color-divider);
  padding-top: var(--space-8);
  display: flex; flex-wrap: wrap; gap: var(--space-4);
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .header__inner { min-height: 68px; }
}
@media (max-width: 960px) {
  .hero__layout { gap: var(--space-6); }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .hero { min-height: auto; }
  .hero__layout { grid-template-columns: 1fr; gap: 0; }
  .hero__identity { grid-row: 1; width: min(58%, 260px); justify-self: center; padding-block: var(--space-10) 0; }
  .hero__identity::before { display: none; }
  .hero__identity--prelate { width: min(100%, 350px); padding-top: var(--space-8); }
  .prelate-portrait { height: 350px; }
  .prelate-portrait--couple { height: 280px; }
  .prelate-portrait--joint { height: 340px; }
  .hero__content { padding-block: var(--space-8) var(--space-12); }
  .split { grid-template-columns: 1fr; }
  .split--rev .split__media { order: 0; }
  .about-leadership { order: 0; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .card .btn { max-width: 100%; white-space: normal; }
  .event { grid-template-columns: 1fr; text-align: left; }
  .event__date { border-right: 0; border-bottom: 1px solid var(--color-divider); padding: 0 0 var(--space-4); text-align: left; display: flex; gap: var(--space-3); align-items: baseline; }
  .event .btn { justify-self: start; }
  .footer__grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .hero__actions .btn { flex: 1 1 100%; }
}

/* Mobile nav drawer */
.nav--open {
  display: flex;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  height: calc(100dvh - 68px);
  background: #16112a;
  border-bottom: 1px solid var(--color-divider);
  flex-direction: column;
  align-items: stretch;
  padding: var(--space-6) var(--space-6) var(--space-16);
  gap: var(--space-5);
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
}
.nav--open a { font-size: var(--text-base); color: var(--color-text); }
.nav--open a.btn--gold { color: #1c1408; text-align: center; }
.nav--open a.btn--gold:hover { color: #1c1408; }

/* ---------- Floating bag ----------
   Shown on every page once the visitor's bag holds an item, so the bag stays
   one tap away without scrolling back to the top of the Shop page. */
.bag-float {
  position: fixed;
  right: max(var(--space-4), env(safe-area-inset-right));
  bottom: calc(var(--space-4) + env(safe-area-inset-bottom));
  z-index: 45; /* below the sticky header and phone menu (50) */
  display: inline-flex; align-items: center; gap: var(--space-3);
  min-height: 52px;
  padding: var(--space-3) var(--space-4) var(--space-3) var(--space-5);
  border: 1px solid rgba(28, 20, 8, 0.3);
  border-radius: var(--radius-full);
  background: var(--color-gold);
  color: #1c1408;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55), 0 0 0 4px rgba(20, 16, 31, 0.6);
  transition: background var(--transition-interactive), transform var(--transition-interactive);
}
.bag-float[hidden] { display: none; }
.bag-float:hover { background: var(--color-gold-hover); transform: translateY(-2px); }
.bag-float:active { transform: translateY(0); }
.bag-float:focus-visible { outline: 2px solid var(--color-text); outline-offset: 3px; border-radius: var(--radius-full); }
.bag-float svg { flex-shrink: 0; }
.bag-float__count {
  display: inline-grid; place-items: center;
  min-width: 1.75rem; height: 1.75rem;
  padding-inline: var(--space-2);
  border-radius: var(--radius-full);
  background: #1c1408;
  color: var(--color-gold-hover);
  font-size: var(--text-xs);
  letter-spacing: 0;
}
.bag-float--enter { animation: bag-float-enter 360ms cubic-bezier(0.16, 1, 0.3, 1) both; }
.bag-float--pulse { animation: bag-float-pulse 900ms ease-out 2; }
@keyframes bag-float-enter {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes bag-float-pulse {
  0% { box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55), 0 0 0 0 rgba(232, 192, 106, 0.75); }
  100% { box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55), 0 0 0 18px rgba(232, 192, 106, 0); }
}
/* Keep store messages and the last footer line clear of the floating bag. */
.has-bag-float .store-toast { bottom: calc(var(--space-4) + 52px + var(--space-4) + env(safe-area-inset-bottom)); }
.has-bag-float .footer { padding-bottom: calc(52px + var(--space-8)); }
@media print { .bag-float { display: none !important; } }
