/* ============================================================
   UOCEA — Ukrainian Orthodox Church in East Asia
   styles.css — Unified design system
   ============================================================ */

/* --- KC Obra Letra — self-hosted --- */
@font-face {
  font-family: 'KC Obra Letra';
  src: url('/fonts/KCObraLetraRegular.eot');
  src: local('KC Obra Letra'), local('KCObraLetraRegular'),
       url('/fonts/KCObraLetraRegular.eot?#iefix') format('embedded-opentype'),
       url('/fonts/KCObraLetraRegular.woff2') format('woff2'),
       url('/fonts/KCObraLetraRegular.woff') format('woff'),
       url('/fonts/KCObraLetraRegular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'KC Obra Letra';
  src: url('/fonts/KCObraLetraBold.eot');
  src: local('KC Obra Letra Bold'), local('KCObraLetraBold'),
       url('/fonts/KCObraLetraBold.eot?#iefix') format('embedded-opentype'),
       url('/fonts/KCObraLetraBold.woff2') format('woff2'),
       url('/fonts/KCObraLetraBold.woff') format('woff'),
       url('/fonts/KCObraLetraBold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

.obra-letra {
  font-family: 'KC Obra Letra', 'Playfair Display', serif;
}

/* --- Google Fonts loaded via <link> in HTML --- */

/* ============================================================
   1. CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* Brand colors (extracted from logo assets) */
  --navy:          #1A3560;
  --navy-deep:     #0E1F3D;
  --navy-mid:      #2B5092;
  --gold:          #C9860A;
  --gold-light:    #E5A820;
  --gold-pale:     #F5E6C0;
  --gold-tint:     rgba(201, 134, 10, 0.08);
  --white:         #FFFFFF;
  --ivory:         #F8F5EE;
  --off-white:     #F0EBE1;
  --text:          #1C1C1C;
  --text-muted:    #5A5A6E;
  --border:        #D6C89A;
  --border-light:  #EDE4CE;

  /* Typography */
  --font-heading:  'Playfair Display', Georgia, serif;
  --font-quote:    'Cormorant Garamond', 'Times New Roman', serif;
  --font-body:     'Lato', 'Helvetica Neue', sans-serif;

  /* Spacing */
  --space-xs:   0.25rem;
  --space-sm:   0.5rem;
  --space-md:   1rem;
  --space-lg:   1.5rem;
  --space-xl:   2rem;
  --space-2xl:  3rem;
  --space-3xl:  4rem;
  --space-4xl:  6rem;
  --section-y:  clamp(4rem, 8vw, 7rem);

  /* Effects */
  --shadow-sm:   0 1px 4px rgba(0, 0, 0, 0.10);
  --shadow-md:   0 4px 16px rgba(10, 20, 50, 0.13);
  --shadow-lg:   0 12px 40px rgba(10, 20, 50, 0.20);
  --shadow-gold: 0 6px 24px rgba(201, 134, 10, 0.35);
  --radius-sm:   4px;
  --radius-md:   10px;
  --radius-lg:   18px;
  --radius-full: 9999px;
  --transition:  0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-express: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-amber: 0 8px 40px rgba(201, 134, 10, 0.45);
  --shadow-deep: 0 16px 64px rgba(8, 16, 36, 0.40);
  --noise-overlay: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  --error:         #c0392b;
  --error-bg:      #fdf0ef;
  --navy-gradient-mid: #0d1e40;
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-body);
}

/* Skip-to-content link — visible only on keyboard focus */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.5rem;
  background: var(--navy-deep);
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 1px solid rgba(201,134,10,0.4);
  transition: top 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Global keyboard focus indicator */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* ============================================================
   3. LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-pad {
  padding: var(--section-y) 0;
}

/* ============================================================
   4. TYPOGRAPHY
   ============================================================ */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
  position: relative;
}

.section-title {
  font-family: 'KC Obra Letra', 'Playfair Display', serif;
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "calt" 0, "dlig" 0;
  font-size: clamp(1.9rem, 4.5vw, 3.5rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: clamp(0.92rem, 1.5vw, 1.05rem);
  color: var(--text-muted);
  max-width: 62ch;
  line-height: 1.85;
}

.section-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.section-header .section-subtitle {
  margin: 0 auto;
}

/* Decorative gold divider */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.25rem auto;
  max-width: 320px;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
  opacity: 0.45;
}

.divider::after {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.divider-cross {
  color: var(--gold);
  font-size: 1rem;
  flex-shrink: 0;
  cursor: default;
  transition: text-shadow 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.divider-cross:hover {
  text-shadow: 0 0 16px rgba(201, 134, 10, 0.9), 0 0 4px rgba(201, 134, 10, 0.6);
  transform: scale(1.2) rotate(15deg);
}

/* Pull-quote */
.pull-quote {
  font-family: var(--font-quote);
  font-size: clamp(1.3rem, 3vw, 2.1rem);
  font-style: italic;
  color: var(--navy);
  text-align: center;
  padding: 2rem 2.5rem 2rem;
  margin: 2.5rem 0;
  line-height: 1.6;
  position: relative;
}

.pull-quote::before {
  content: '\201C';
  font-family: var(--font-quote);
  font-size: 9rem;
  color: var(--gold);
  opacity: 0.2;
  position: absolute;
  top: -2rem;
  left: -0.25rem;
  line-height: 1;
  pointer-events: none;
}

/* ============================================================
   5. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-full);
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-deep);
  box-shadow: 0 4px 20px rgba(201, 134, 10, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,0.28) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 0.55s ease;
  pointer-events: none;
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-amber);
}

.btn-primary:hover::after {
  transform: translateX(120%);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.7);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--navy-deep);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}

.btn-navy:hover {
  background: var(--navy-mid);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn:focus-visible {
  border-radius: var(--radius-full);
  outline-offset: 4px;
}

.btn:active:not(:disabled) {
  transform: translateY(1px) scale(0.975);
  transition-duration: 0.07s;
}

.btn-primary:active:not(:disabled) {
  box-shadow: 0 2px 8px rgba(201, 134, 10, 0.2);
}

.btn-navy:active:not(:disabled) {
  box-shadow: none;
}

/* ============================================================
   6. SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(44px) scale(0.978);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.from-left {
  transform: translateX(-46px) scale(0.985);
}

.reveal.from-right {
  transform: translateX(46px) scale(0.985);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Stagger delays */
.reveal[data-delay="100"] { transition-delay: 100ms; }
.reveal[data-delay="200"] { transition-delay: 200ms; }
.reveal[data-delay="300"] { transition-delay: 300ms; }
.reveal[data-delay="400"] { transition-delay: 400ms; }
.reveal[data-delay="500"] { transition-delay: 500ms; }

/* ============================================================
   7. NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: background var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.nav--scrolled {
  background: rgba(10, 20, 44, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 24px rgba(0,0,0,0.35);
  border-bottom: 1px solid rgba(201, 134, 10, 0.25);
}

.nav .container {
  max-width: 100%;
  padding: 0 2.5rem;
}

/* Solid background whenever the mobile menu is open —
   prevents backdrop-filter bleed and z-index artefacts */
.nav--menu-open {
  background: var(--navy-deep) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.nav__logo-img {
  height: 44px;
  width: auto;
  border-radius: 50%;
  background: var(--white);
  padding: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.nav__logo-text {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.nav__logo-sub {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__link {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  position: relative;
  transition: color var(--transition);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.85rem;
  right: 0.85rem;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.nav__link:hover,
.nav__link--active {
  color: var(--white);
}

.nav__link:hover::after,
.nav__link--active::after {
  transform: scaleX(1);
}

.nav__link--active {
  color: var(--gold);
}

.nav__link--active::after {
  background: var(--gold);
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 4px;
  flex-shrink: 0;
}

.nav__hamburger span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}

.nav__hamburger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__hamburger.is-active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav__hamburger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   8. FOOTER
   ============================================================ */
.map-section {
  padding: var(--section-y) 0;
  background: var(--ivory);
}

.map-section__header {
  text-align: center;
  margin-bottom: 2rem;
}

.map-section__embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.map-section__embed iframe {
  display: block;
  width: 100%;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy-deep);
  background-image:
    radial-gradient(ellipse 80% 60% at 50% 120%, rgba(201,134,10,0.07) 0%, transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M30 0 L60 30 L30 60 L0 30Z' fill='none' stroke='rgba(201,134,10,0.04)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: auto, 60px 60px;
  color: rgba(255,255,255,0.65);
  border-top: 2px solid rgba(201,134,10,0.4);
  position: relative;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: var(--space-2xl);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer__logo-img {
  height: 52px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--white);
  padding: 6px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.footer__brand-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--white);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.footer__tagline {
  font-size: 0.8rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.footer__col-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(201,134,10,0.3);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__link {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition), transform var(--transition);
  padding: 0.45rem 0;
  display: inline-block;
}

.footer__link:hover {
  color: var(--gold);
  transform: translateX(0.35rem);
}

.footer__info-item {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.83rem;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.footer__info-icon {
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

/* ============================================================
   9. HERO (shared across pages)
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--navy-deep);
}

.hero--short {
  min-height: 55vh;
}

.hero--medium {
  min-height: 45vh;
}

.hero--compact {
  min-height: 40vh;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 25% 65%, rgba(201,134,10,0.09) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 80% 30%, rgba(43,80,146,0.35) 0%, transparent 60%),
    linear-gradient(150deg, var(--navy-deep) 0%, var(--navy-gradient-mid) 40%, var(--navy) 80%, rgba(43, 80, 146, 0.55) 100%);
  z-index: 0;
}

/* Subtle Byzantine SVG texture overlay */
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M30 0 L60 30 L30 60 L0 30Z' fill='none' stroke='rgba(201,134,10,0.07)' stroke-width='1'/%3E%3Ccircle cx='30' cy='30' r='6' fill='none' stroke='rgba(201,134,10,0.05)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 60px 60px;
  opacity: 1;
}

/* Home page photo hero — no texture overlay */
#heroBg::after { display: none; }

/* About page photo hero — no pattern, no candle glow */
.hero__bg--photo::after,
.hero__bg--photo::before { display: none; }

.hero__watermark {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.07;
  width: min(420px, 48vw);
  z-index: 1;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: clamp(7rem, 15vh, 11rem) 1.5rem clamp(4rem, 8vh, 6rem);
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.hero__seal {
  width: 90px;
  height: 90px;
  object-fit: contain;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: var(--white);
  padding: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  animation: fadeInUp 0.8s ease both;
}

.hero__eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  animation: fadeInUp 0.8s 0.1s ease both;
}

.hero__title {
  font-family: 'KC Obra Letra', 'Playfair Display', serif;
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "calt" 0, "dlig" 0;
  font-size: clamp(2.2rem, 6vw, 5.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin-bottom: 1.4rem;
  animation: fadeInUp 0.8s 0.2s ease both;
}

.hero__subtitle {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: rgba(255,255,255,0.78);
  max-width: 600px;
  margin: 0 auto 2.25rem;
  line-height: 1.8;
  animation: fadeInUp 0.8s 0.3s ease both;
}

.hero__ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s 0.4s ease both;
}

.hero__breadcrumb {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1rem;
  animation: fadeInUp 0.8s 0.1s ease both;
}

.hero__breadcrumb a {
  color: var(--gold);
  transition: opacity var(--transition);
}

.hero__breadcrumb a:hover { opacity: 0.75; }
.hero__breadcrumb span { margin: 0 0.4rem; }

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.4);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: fadeIn 1.2s 0.8s ease both;
}

.hero__scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid rgba(255,255,255,0.35);
  border-bottom: 2px solid rgba(255,255,255,0.35);
  transform: rotate(45deg);
  animation: scrollPulse 2.5s cubic-bezier(0.16, 1, 0.3, 1) infinite;
  margin-top: 4px;
}

/* Diagonal clip at hero bottom */
.hero--clip {
  clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
  margin-bottom: -4rem;
  padding-bottom: 4rem;
}

/* ============================================================
   10. HOME PAGE — MISSION STRIP
   ============================================================ */
.mission {
  background: var(--ivory);
  padding: var(--section-y) 0;
}

.mission__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-3xl);
  align-items: center;
}

.mission__logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.mission__logo-img {
  max-width: 220px;
  filter: drop-shadow(0 4px 16px rgba(26, 53, 96, 0.15));
}

.mission__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
}

.mission__text .section-subtitle {
  max-width: none;
  margin-bottom: 1.5rem;
}

/* ============================================================
   11. STATS STRIP
   ============================================================ */
.stats {
  background: var(--navy-deep);
  padding: clamp(3rem, 6vw, 5.5rem) 0;
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 30%, var(--gold-light) 50%, var(--gold) 70%, transparent 100%);
  opacity: 0.75;
}

.stats::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 30%, var(--gold-light) 50%, var(--gold) 70%, transparent 100%);
  opacity: 0.75;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.stats__item {
  text-align: center;
  padding: clamp(1.5rem, 3vw, 3rem) var(--space-lg);
  position: relative;
}

.stats__item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: rgba(255,255,255,0.12);
}

.stats__number {
  font-family: var(--font-heading);
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  display: block;
  letter-spacing: -0.02em;
  text-shadow: 0 0 50px rgba(201, 134, 10, 0.55), 0 2px 0 rgba(0,0,0,0.25);
}

.stats__suffix {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-light);
  vertical-align: super;
}

.stats__label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-top: 0.5rem;
  display: block;
}

.stats__desc {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  margin-top: 0.5rem;
  line-height: 1.5;
  max-width: 220px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   12. CORE VALUES CARDS
   ============================================================ */
.values {
  background: var(--off-white);
  padding: var(--section-y) 0;
  position: relative;
}

.values__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
}

.value-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl) var(--space-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: transform var(--transition-express), box-shadow var(--transition-express);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.value-card::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(201,134,10,0.14) 0%, transparent 70%);
  transition: opacity var(--transition-express), bottom var(--transition-express);
  opacity: 0;
  pointer-events: none;
}

.value-card__img {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  object-position: center;
  margin: 0 auto var(--space-lg);
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.value-card:hover .value-card__img {
  transform: scale(1.06);
}

.value-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-lg);
}

.value-card:hover::after {
  opacity: 1;
  bottom: -10px;
}

.value-card__icon {
  width: 56px;
  height: 56px;
  background: var(--gold-tint);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--gold);
  font-size: 1.5rem;
}

.value-card__title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.value-card__text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ============================================================
   13. CTA BANNER
   ============================================================ */
.cta-banner {
  background: var(--navy-deep);
  background-image:
    radial-gradient(ellipse 80% 90% at 50% 50%, rgba(201,134,10,0.22) 0%, transparent 58%),
    radial-gradient(ellipse 45% 35% at 50% 50%, rgba(201,134,10,0.1) 0%, transparent 80%);
  padding: clamp(4rem, 9vw, 7rem) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner__cross {
  height: 80px;
  width: auto;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 4px 12px rgba(201,134,10,0.4));
}

.cta-banner__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.15;
}

.cta-banner__text {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.8;
}

/* ============================================================
   14. HOURS & LOCATION STRIP
   ============================================================ */
.info-strip {
  background: var(--gold-pale);
  padding: var(--space-3xl) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.info-strip__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.info-strip__col-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.info-strip__col-title svg {
  color: var(--gold);
  flex-shrink: 0;
}

.info-strip__row {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9rem;
}

.info-strip__row:last-child { border-bottom: none; }

.info-strip__day { font-weight: 700; color: var(--navy); }
.info-strip__time { color: var(--text-muted); }

.info-strip__address {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.info-strip__address strong {
  display: block;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.info-strip__divider {
  width: 1px;
  background: var(--border);
  align-self: stretch;
}

/* ============================================================
   15. ABOUT PAGE
   ============================================================ */
.about-opening {
  background: var(--ivory);
  padding: var(--section-y) 0;
}

.about-opening__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.about-cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.about-opening__tag {
  display: inline-block;
  background: var(--gold-tint);
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(201,134,10,0.25);
  margin-bottom: 1rem;
}

/* Church info panel */
.church-info {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.church-info__header {
  background: var(--navy);
  color: var(--white);
  padding: 1.25rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.church-info__header svg { color: var(--gold); }

.church-info__body { padding: 1.5rem; }

.church-info__section {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-light);
}

.church-info__section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.church-info__section-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.church-info__text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.church-info__list {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.church-info__list li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.church-info__list li::before {
  content: '✦';
  color: var(--gold);
  font-size: 0.6rem;
  margin-top: 0.35rem;
  flex-shrink: 0;
}

/* Iconostasis section */
.iconostasis {
  background: var(--navy-deep);
  padding: var(--section-y) 0;
  position: relative;
  overflow: hidden;
}

.iconostasis::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M30 0 L60 30 L30 60 L0 30Z' fill='none' stroke='rgba(201,134,10,0.06)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 60px 60px;
}

.iconostasis .section-title { color: var(--white); }
.iconostasis .eyebrow { color: var(--gold-light); }
.iconostasis .section-subtitle { color: rgba(255,255,255,0.6); }

.iconostasis__title-accent {
  font-family: var(--font-quote);
  font-style: italic;
  color: var(--gold);
}

.iconostasis__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
  position: relative;
  z-index: 1;
}

.iconostasis-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,134,10,0.2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition-express);
}

.iconostasis-card:hover {
  border-color: rgba(201,134,10,0.65);
  box-shadow: 0 12px 48px rgba(0,0,0,0.4), 0 0 0 1px rgba(201,134,10,0.15);
  transform: translateY(-4px);
}

.iconostasis-card__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.img-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: rgba(201,134,10,0.6);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.img-placeholder__icon {
  font-size: 2rem;
  opacity: 0.5;
}

.img-placeholder__label {
  color: rgba(255,255,255,0.3);
}

/* Rectangular profile photo for leader cards */
.leader-card__img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  display: block;
  border: 3px solid var(--border);
  transition: border-color var(--transition), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.leader-card:hover .leader-card__img {
  border-color: var(--gold);
  transform: scale(1.03);
}

.iconostasis-card__body {
  padding: 1.5rem;
}

.iconostasis-card__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.iconostasis-card__subtitle {
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.iconostasis-card__text {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.75;
}

/* Leadership profiles */
.leaders {
  background: var(--ivory);
  padding: var(--section-y) 0;
}

.leaders__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-xl);
}

.leader-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl) var(--space-xl);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: box-shadow var(--transition), transform var(--transition);
}

.leader-card:hover {
  box-shadow: 0 12px 40px rgba(201, 134, 10, 0.2);
  transform: translateY(-5px);
}

.leader-card__name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.3rem;
}

.leader-card__title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.leader-card__bio {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* Mission & Vision section */
.mission-vision {
  background: var(--white);
  padding: var(--section-y) 0;
}

.mission-vision__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.mv-card {
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  background: var(--ivory);
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.mv-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 1.5rem;
  right: 1.5rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.6;
}

.mv-card__title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
}

.mv-card__text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.mv-card__text + .mv-card__text {
  margin-top: 0.75rem;
}

/* ============================================================
   16. QNA PAGE — ACCORDION
   ============================================================ */
.faq {
  background: var(--ivory);
  padding: var(--section-y) 0;
}

.faq__intro {
  max-width: 640px;
  margin: 0 auto 3rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.faq__list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.accordion-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.accordion-item.is-open {
  border-color: var(--gold);
  box-shadow: 0 4px 20px rgba(201,134,10,0.12);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  background: transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.accordion-item.is-open .accordion-trigger {
  background: var(--gold-tint);
  color: var(--navy);
}

.accordion-trigger:hover {
  background: var(--gold-tint);
}

.accordion-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold-tint);
  border: 1px solid rgba(201,134,10,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: transform var(--transition), background var(--transition);
  line-height: 1;
}

.accordion-item.is-open .accordion-icon {
  transform: rotate(45deg);
  background: var(--gold);
  color: var(--white);
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.48s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-panel__inner {
  padding: 0.25rem 1.5rem 1.5rem 1.5rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.85;
  background: var(--gold-tint);
}

.accordion-panel__inner p + p {
  margin-top: 0.75rem;
}

/* ============================================================
   17. CONTACT PAGE
   ============================================================ */
.contact-layout {
  background: var(--ivory);
  padding: var(--section-y) 0;
}

.contact-layout__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-3xl);
  align-items: start;
}

/* Info column */
.contact-info__title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.contact-info__item {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-light);
}

.contact-info__item:last-of-type { border-bottom: none; }

.contact-info__icon {
  width: 40px;
  height: 40px;
  background: var(--gold-tint);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}

.contact-info__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.2rem;
}

.contact-info__value {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.6;
}

.contact-info__seal {
  margin-top: 2rem;
  text-align: center;
}

.contact-info__seal img {
  max-width: 160px;
  margin: 0 auto;
  opacity: 0.85;
}

/* Contact form card */
.contact-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.contact-form-card__header {
  background: var(--navy-deep);
  padding: 1.5rem 2rem;
  border-top: 3px solid var(--gold);
}

.contact-form-card__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
}

.contact-form-card__sub {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  margin-top: 0.25rem;
}

.contact-form-card__body {
  padding: 2rem;
}

/* Form elements */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.form-input,
.form-textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--ivory);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  appearance: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(201,134,10,0.15);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

.form-input.has-error,
.form-textarea.has-error {
  border-color: var(--error);
  background: var(--error-bg);
}

.form-error {
  font-size: 0.78rem;
  color: var(--error);
  margin-top: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.form-submit {
  width: 100%;
  padding: 1rem;
  background: var(--gold);
  color: var(--navy-deep);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
}

.form-submit:hover:not(:disabled) {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.form-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.form-success {
  text-align: center;
  padding: 2.5rem 1rem;
  display: none;
}

.form-success.is-visible {
  display: block;
  animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.form-success__icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  display: inline-block;
  color: var(--gold);
}

.form-success.is-visible .form-success__icon {
  animation: formCrossIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.form-success.is-visible .form-success__title {
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}

.form-success.is-visible .form-success__text {
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.form-success__title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.form-success__text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================================
   DELIGHT — form success, cross entrance
   ============================================================ */
@keyframes formCrossIn {
  from { transform: scale(0.3) rotate(-25deg); opacity: 0; }
  60%  { transform: scale(1.15) rotate(5deg);  opacity: 1; }
  to   { transform: scale(1) rotate(0deg);     opacity: 1; }
}

/* Spinner */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(14,31,61,0.3);
  border-top-color: var(--navy-deep);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ============================================================
   18. KEYFRAME ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes goldPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scrollPulse {
  0%   { opacity: 0.4; transform: rotate(45deg) translateY(0); }
  60%  { opacity: 0.9; transform: rotate(45deg) translateY(5px); }
  100% { opacity: 0.4; transform: rotate(45deg) translateY(0); }
}

/* ============================================================
   ⚡ OVERDRIVE
   1. Scroll progress bar (scroll-driven)
   2. Hero candle glow (pure CSS breathing warmth)
   3. @property animated CTA glow
   4. Divider lines expand from centre (scroll-driven view timeline)
   ============================================================ */

/* 1 — Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
  transform-origin: left center;
  transform: scaleX(0);
  z-index: 2001;
  pointer-events: none;
}

@supports (animation-timeline: scroll()) {
  .scroll-progress {
    animation: scrollProgressBar linear both;
    animation-timeline: scroll(root);
  }
}

@keyframes scrollProgressBar {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* 2 — Hero candle glow: a warm breathing radial that slowly drifts */
.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 55% 45% at 28% 68%, rgba(201,134,10,0.12) 0%, transparent 52%),
    radial-gradient(ellipse 38% 32% at 72% 32%, rgba(43,80,146,0.15) 0%, transparent 50%);
  animation: heroCandle 14s ease-in-out infinite alternate;
}

@keyframes heroCandle {
  0%   { opacity: 0.75; transform: translate(0,   0)   scale(1);    }
  28%  { opacity: 1;    transform: translate(2%,  1%)  scale(1.04); }
  57%  { opacity: 0.8;  transform: translate(-1%,-2%)  scale(0.97); }
  82%  { opacity: 0.95; transform: translate(3%, -1%)  scale(1.03); }
  100% { opacity: 0.85; transform: translate(-2%, 2%)  scale(1.01); }
}

/* 3 — @property animated CTA glow */
@property --cta-glow {
  syntax: '<percentage>';
  initial-value: 80%;
  inherits: false;
}

@keyframes ctaBreathe {
  from { --cta-glow: 60%; }
  to   { --cta-glow: 100%; }
}

.cta-banner {
  background-image:
    radial-gradient(ellipse var(--cta-glow) 90% at 50% 50%, rgba(201,134,10,0.22) 0%, transparent 58%),
    radial-gradient(ellipse 45% 35% at 50% 50%, rgba(201,134,10,0.1) 0%, transparent 80%);
  animation: ctaBreathe 9s ease-in-out infinite alternate;
}

/* 4 — Divider lines expand from the centre cross */
@supports (animation-timeline: view()) {
  .divider::before {
    transform-origin: right center;
    animation: dividerExpandL linear both;
    animation-timeline: view();
    animation-range: entry 5% entry 55%;
  }

  .divider::after {
    transform-origin: left center;
    animation: dividerExpandR linear both;
    animation-timeline: view();
    animation-range: entry 5% entry 55%;
  }

  @keyframes dividerExpandL {
    from { opacity: 0; transform: scaleX(0); }
    to   { opacity: 0.45; transform: scaleX(1); }
  }

  @keyframes dividerExpandR {
    from { opacity: 0; transform: scaleX(0); }
    to   { opacity: 0.45; transform: scaleX(1); }
  }
}

/* ============================================================
   REDUCED MOTION — honour OS preference
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.from-left,
  .reveal.from-right {
    transform: none !important;
    transition: opacity 0.3s ease !important;
  }

  .hero__seal,
  .hero__eyebrow,
  .hero__title,
  .hero__subtitle,
  .hero__ctas,
  .hero__scroll,
  .hero__scroll-arrow {
    animation: none !important;
  }

  .btn-primary::after {
    display: none;
  }

  /* Overdrive effects off */
  .scroll-progress { display: none; }
  .hero__bg::before { animation: none !important; }
  .cta-banner { animation: none !important; }
}

/* ============================================================
   19. RESPONSIVE — TABLET (≥640px)
   ============================================================ */
@media (max-width: 1023px) {
  .mission__grid { grid-template-columns: 1fr; }
  .mission__logo-wrap { display: none; }
  .mission-vision__grid { grid-template-columns: 1fr; }
  .about-opening__grid { grid-template-columns: 1fr; }
  .about-cta-grid { grid-template-columns: 1fr; }
  .contact-layout__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > *:first-child { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  .info-strip__grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .info-strip__divider { display: none; }
  .stats__grid { grid-template-columns: 1fr; }
  .stats__item:not(:last-child)::after { display: none; }
  .stats__item:not(:last-child) {
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .footer__grid { grid-template-columns: 1fr; }
  .iconostasis__grid { grid-template-columns: 1fr; }
  .leaders__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   20. RESPONSIVE — MOBILE NAV
   ============================================================ */
@media (max-width: 767px) {
  .nav .container { padding: 0 2rem 0 1.25rem; }

  .nav__logo-sub { display: none; }

  .nav__hamburger {
    display: flex;
    position: relative;
    z-index: 1001;
  }

  .nav__menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--navy-deep);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 0.5rem;
    padding-top: 5rem;
    padding-bottom: 2rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
    z-index: 999;
  }

  .nav__menu.is-open {
    opacity: 1;
    visibility: visible;
  }

  .nav__link {
    font-size: 1.1rem;
    padding: 0.75rem 1.5rem;
  }

  /* Stagger top-level menu items on open (direct children only) */
  .nav__menu > li {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .nav__menu.is-open > li:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.06s; }
  .nav__menu.is-open > li:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.12s; }
  .nav__menu.is-open > li:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.18s; }
  .nav__menu.is-open > li:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.24s; }
  .nav__menu.is-open > li:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.30s; }

  .hero__title { font-size: clamp(1.8rem, 8vw, 2.8rem); }
  .hero__ctas { flex-direction: column; align-items: center; }
  .hero__ctas .btn { width: 100%; max-width: 280px; justify-content: center; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .nav__hamburger { display: flex; position: relative; z-index: 1001; }

  .nav__menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--navy-deep);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 0.5rem;
    padding-top: 5rem;
    padding-bottom: 2rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
    z-index: 999;
  }

  .nav__menu.is-open {
    opacity: 1;
    visibility: visible;
  }
}

/* ============================================================
   NAV DROPDOWN
   ============================================================ */
.nav__item {
  position: relative;
}

.nav__dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: none;
  border: none;
  transition: color var(--transition);
}

.nav__dropdown-toggle:hover,
.nav__item--dropdown.is-open .nav__dropdown-toggle {
  color: var(--white);
}

.nav__dropdown-arrow {
  font-size: 0.65rem;
  transition: transform var(--transition);
  display: inline-block;
}

.nav__item--dropdown.is-open .nav__dropdown-arrow {
  transform: rotate(180deg);
}

.nav__dropdown {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  background: rgba(14,31,61,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(214,200,154,0.25);
  border-radius: var(--radius-md);
  min-width: 195px;
  list-style: none;
  z-index: 1100;
  box-shadow: var(--shadow-lg);
  padding: 0.4rem 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px) scale(0.97);
  transform-origin: top right;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.22s,
              transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav__item--dropdown.is-open .nav__dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.nav__dropdown li a {
  display: block;
  padding: 0.6rem 1.25rem;
  color: rgba(255,255,255,0.8);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color var(--transition), background var(--transition);
}

.nav__dropdown li a:hover,
.nav__dropdown li a.nav__link--active {
  color: var(--gold);
  background: rgba(201,134,10,0.1);
}

/* Mobile: dropdown expands inline inside fullscreen menu — use display:none since position is static */
@media (max-width: 767px) {
  .nav__dropdown-toggle { font-size: 1.1rem; padding: 0.75rem 1.5rem; }
  .nav__dropdown {
    position: static;
    background: none;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    min-width: unset;
    padding: 0;
    display: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: none;
  }
  .nav__item--dropdown.is-open .nav__dropdown {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .nav__dropdown li a { font-size: 0.9rem; padding: 0.5rem 1.5rem; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .nav__dropdown-toggle { font-size: 1.1rem; padding: 0.75rem 1.5rem; }
  .nav__dropdown {
    position: static;
    background: none;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    min-width: unset;
    padding: 0;
    display: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: none;
  }
  .nav__item--dropdown.is-open .nav__dropdown {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .nav__dropdown li a { font-size: 0.9rem; padding: 0.5rem 1.5rem; }
}

/* ============================================================
   MORALITY — COVENANT PAGE
   ============================================================ */
.covenant-intro {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  padding: var(--section-y) 0 2rem;
}

.covenant-section {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2rem 2.5rem;
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
}

.covenant-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 1.5rem;
  right: 1.5rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.55;
}

.covenant-section__title {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.covenant-item {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
  align-items: start;
}

.covenant-item:last-child { margin-bottom: 0; }

.covenant-item__num {
  font-family: var(--font-quote);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--gold);
  font-weight: 700;
  line-height: 1.6;
}

.covenant-item__text {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.75;
}

.covenant-item__text em {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.covenant-affirmation {
  background: var(--navy-deep);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 3rem;
  margin-top: 3rem;
  text-align: center;
}

.covenant-affirmation p {
  font-size: 0.95rem;
  line-height: 1.85;
  color: rgba(255,255,255,0.85);
  max-width: 720px;
  margin: 0 auto 2rem;
}

.covenant-sig {
  display: flex;
  gap: 3rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.covenant-sig__field {
  text-align: left;
}

.covenant-sig__label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.5rem;
}

.covenant-sig__line {
  width: 220px;
  height: 1px;
  background: rgba(214,200,154,0.5);
}

/* ============================================================
   PRAYERBOOK PAGE
   ============================================================ */
.prayerbook {
  background: var(--ivory);
}

.prayer-section {
  padding: var(--section-y) 0;
}

.prayer-section:nth-child(even) {
  background: var(--white);
}

.prayer-block {
  max-width: 760px;
  margin: 0 auto 3rem;
}

.prayer-block:last-child { margin-bottom: 0; }

.prayer-block__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
}

.prayer-block__text {
  font-family: var(--font-quote);
  font-size: 0.98rem;
  color: var(--text);
  line-height: 2;
  white-space: pre-line;
}

.prayer-block__rubric {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

.prayer-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem auto;
  max-width: 760px;
}

.prayer-divider::before,
.prayer-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-light);
}

.prayer-divider span {
  color: var(--gold);
  padding: 0 1rem;
  font-size: 0.85rem;
}

/* ============================================================
   INSTITUTE PAGE
   ============================================================ */
.institute-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-3xl);
}

.institute-feature {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2rem;
  border-top: 3px solid var(--gold);
  transition: box-shadow var(--transition), transform var(--transition);
}

.institute-feature:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.institute-feature__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.institute-feature__text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* Application section */
.application-section {
  background: var(--navy-deep);
  color: var(--white);
  padding: var(--section-y) 0;
}

.application-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 900px;
  margin: 2rem auto 0;
}

@media (max-width: 767px) {
  .application-grid { grid-template-columns: 1fr; }
  .covenant-section { padding: 1.5rem; }
  .covenant-item { grid-template-columns: 1.5rem 1fr; }
  .covenant-affirmation { padding: 2rem 1.5rem; }
  .covenant-sig { gap: 2rem; }
  .covenant-sig__line { width: 160px; }
  .institute-features { grid-template-columns: 1fr; }
}

/* ============================================================
   VOCATIONS PAGE
   ============================================================ */
.process-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 700px;
  margin: 2.5rem auto 0;
  position: relative;
}

.process-timeline::before {
  content: '';
  position: absolute;
  left: 1.5rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gold);
  opacity: 0.3;
}

.process-step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem 0;
}

.process-step__num {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-deep);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.process-step__body {}

.process-step__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.process-step__text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.vocation-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2.5rem;
  max-width: 860px;
  margin: 2rem auto 0;
}

.vocation-field__label {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.3rem;
}

.vocation-field__hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

@media (max-width: 767px) {
  .vocation-fields { grid-template-columns: 1fr; }
  .process-timeline::before { left: 1.25rem; }
}

/* ============================================================
   MONASTICISM PAGE
   ============================================================ */
.monastery-section {
  padding: var(--section-y) 0;
}

.monastery-section--dark {
  background: var(--navy-deep);
  color: var(--white);
}

.monastery-section--dark .section-title { color: var(--white); }
.monastery-section--dark .eyebrow { color: var(--gold-light); }

.monastery-text {
  max-width: 760px;
  margin: 0 auto;
  font-size: 0.97rem;
  color: var(--text-muted);
  line-height: 1.85;
}

.monastery-text + .monastery-text {
  margin-top: 1.25rem;
}

.monastery-section--dark .monastery-text {
  color: rgba(255,255,255,0.75);
}

.monastery-quote {
  max-width: 640px;
  margin: 1.5rem auto;
  font-family: var(--font-quote);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--gold-light);
  text-align: center;
  line-height: 1.7;
}

/* Liturgy placeholder */
.liturgy-placeholder {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--section-y) 0;
  background: var(--ivory);
}

.liturgy-placeholder__cross {
  font-size: 3rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
  opacity: 0.7;
}

.liturgy-placeholder__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.liturgy-placeholder__text {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.8;
}

/* ============================================================
   21. ADAPT — responsive refinements
   Audit targets: 320px · 375px · 480px · 768px · 1024px · 1440px
   ============================================================ */

/* Hero compact: sub-page heroes use same hero__content padding as the
   home hero, which is over-generous for a short section on phones */
@media (max-width: 767px) {
  .hero--compact .hero__content {
    padding-top: clamp(3.5rem, 12vh, 6rem);
    padding-bottom: clamp(2rem, 4vh, 3.5rem);
  }

  /* Watermark: scale down on mobile to avoid crowding title text */
  .hero__watermark {
    width: min(160px, 38vw);
    opacity: 0.05;
  }

  /* Pull quote: giant decorative glyph overwhelms narrow screens */
  .pull-quote {
    padding: 1.5rem 1.25rem;
  }
  .pull-quote::before {
    font-size: 6rem;
    top: -1rem;
  }

  /* Contact layout: 4rem gap between stacked columns is excessive */
  .contact-layout__grid {
    gap: var(--space-xl);
  }

  /* Map: 420px height is tall on a phone; usable at 280px */
  .map-section__embed iframe {
    height: 280px;
  }

  /* Stats: add vertical breathing room between items in single column */
  .stats__item {
    padding-top: clamp(2rem, 5vw, 2.75rem);
    padding-bottom: clamp(2rem, 5vw, 2.75rem);
  }
}

/* Very small viewports (≤480px) */
@media (max-width: 480px) {
  /* CTA banner title: 3vw is too small here, tighten with viewport units */
  .cta-banner__title {
    font-size: clamp(1.5rem, 7vw, 1.9rem);
  }

  /* Contact form card: reduce inner padding so fields don't feel cramped */
  .contact-form-card__body {
    padding: 1.25rem;
  }
  .contact-form-card__header {
    padding: 1.25rem;
  }

  /* Footer brand text: slightly smaller so it wraps less on tiny screens */
  .footer__brand-name { font-size: 1.1rem; }
  .footer__tagline { font-size: 0.82rem; }
}

/* Mobile/tablet: switch nav from fixed → sticky.
   position:fixed is unreliable on iOS Safari (URL-bar compositor changes,
   backdrop-filter compositing bugs). position:sticky is rock-solid on every
   mobile browser and produces identical visual behaviour once the nav is
   always-opaque (which it is below 1024 px). */
@media (max-width: 1023px) {
  .nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgb(10, 20, 44);
  }
  .nav--scrolled {
    background: rgb(10, 20, 44);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  /* Scroll-driven animation on scroll-progress can promote the root
     compositor layer and interfere with fixed stacking on mobile. */
  .scroll-progress { display: none; }
}

