/* ─────────────────────────────────────────────────────────────────────────
   APOSTOLADO DO SANTO TERÇO — landing page
   Conceito: "Manuscrito iluminado encontra catedral"
   Pergaminho · ouro velho · azul mariano · serifa clássica
   ───────────────────────────────────────────────────────────────────────── */

:root {
  /* Paleta — tema AZUL-CÉU (fundo celeste, texto/terço brancos) */
  --bg:         #3A6CA2;    /* azul-céu do Apostolado */
  --bg-deep:    #305E90;    /* azul um pouco mais profundo */
  --paper:      #F6EFE1;    /* pergaminho — cartas, modal, cartões */
  --ink:        #FFFFFF;    /* texto branco (sobre azul) */
  --ink-soft:   #D5E1F1;    /* texto secundário claro (sobre azul) */
  --ink-dark:   #1C3D66;    /* texto escuro (sobre papel/creme) */
  --ink-dark-soft:#42587A;  /* secundário escuro (sobre papel) */
  --gold:       #E6C57C;    /* ouro vibrante (brilha no azul) */
  --gold-deep:  #CBA14C;    /* ouro médio */
  --gold-light: #F4DEA4;    /* ouro pálido */
  --marian:     #2F6099;    /* azul oficial */
  --marian-deep:#234C77;    /* azul profundo (ilhas/seções) */
  --marian-darker:#18324F;
  --bordeaux:   #C56B6B;    /* acento (clareado p/ azul) */

  /* Tipografia */
  --serif-display: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --serif-body:    'EB Garamond', 'Cormorant Garamond', Georgia, serif;
  --cap:           'Cinzel', 'Trajan Pro', serif;
  --hand:          'Italianno', cursive;

  /* Espaçamento */
  --rule: 1px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif-body);
  font-size: 19px;
  line-height: 1.65;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

body {
  /* céu: luz vinda do alto sobre o azul do Apostolado */
  background:
    radial-gradient(ellipse 90% 55% at 50% -12%, rgba(255,255,255,0.12), transparent 64%),
    radial-gradient(ellipse 70% 50% at 50% 115%, rgba(15,32,55,0.18), transparent 62%),
    linear-gradient(180deg, #3F77AC 0%, #3A6CA2 42%, #325F8E 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ────────── tipografia ────────── */

h1, h2, h3, h4 {
  font-family: var(--serif-display);
  font-weight: 500;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.005em;
}

.eyebrow {
  font-family: var(--cap);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  display: inline-block;
}

.eyebrow::before, .eyebrow::after {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--gold);
  vertical-align: middle;
  margin: 0 14px 4px;
  opacity: 0.7;
}

.eyebrow.left-only::after { display: none; }
.eyebrow.left-only::before { margin-right: 14px; margin-left: 0; }

h2.section-title {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.1;
  text-align: center;
  margin: 18px 0 10px;
  color: var(--ink);
}

.section-subtitle {
  text-align: center;
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 auto 56px;
  font-style: italic;
}

/* drop cap manuscrito */
.dropcap::first-letter {
  font-family: var(--cap);
  font-size: 4.6em;
  float: left;
  line-height: 0.85;
  padding: 0.08em 0.14em 0 0;
  color: var(--gold);
  font-weight: 600;
}

/* citação */
blockquote, .quote {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 1.6rem;
  line-height: 1.45;
  color: var(--ink);
  text-align: center;
  margin: 0;
  position: relative;
  padding: 24px 0;
}

.quote-mark {
  font-family: var(--serif-display);
  font-size: 5rem;
  line-height: 0.2;
  color: var(--gold);
  opacity: 0.55;
  display: block;
  margin-bottom: 16px;
}

cite {
  display: block;
  font-family: var(--cap);
  font-style: normal;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 22px;
}

/* ────────── layout ────────── */

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

section {
  padding: 110px 0;
  position: relative;
}

/* ── Páginas flutuantes sobre o azul (delimitação + profundidade) ── */
.section-sheet { padding: 64px 0; position: relative; z-index: 2; }

.sheet {
  position: relative;
  background: var(--paper);
  color: var(--ink-dark);
  border-radius: 4px;
  padding: 80px 72px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.7) inset,
    0 50px 90px -46px rgba(8,22,42,0.62),
    0 18px 44px -26px rgba(8,22,42,0.5);
}
.sheet::before {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(203,161,76,0.26);
  pointer-events: none;
}

@media (max-width: 720px) {
  .sheet { padding: 52px 28px; }
}

/* contexto de texto escuro dentro da página ivory */
.sheet .eyebrow { color: var(--gold-deep); }
.sheet .eyebrow::before, .sheet .eyebrow::after { background: var(--gold-deep); opacity: 0.85; }
.sheet h2.section-title { color: var(--ink-dark); }
.sheet .section-subtitle { color: var(--ink-dark-soft); }
.sheet .dropcap::first-letter { color: var(--gold-deep); }
.sheet .ornament { color: var(--gold-deep); }
.sheet .ornament .line { background: linear-gradient(90deg, transparent, var(--gold-deep), transparent); }
.sheet .ornament .diamond { background: var(--gold-deep); }
.sheet .about-text p { color: var(--ink-dark-soft); }
.sheet .stat-num { color: var(--gold-deep); }
.sheet .stat-label { color: var(--ink-dark-soft); }
.sheet .about-stats { border-left-color: rgba(203,161,76,0.55); }
.children .sheet li { color: var(--ink-dark-soft); border-bottom-color: rgba(203,161,76,0.3); }
.children .sheet li::before { color: var(--gold-deep); }
.sheet .folder-card {
  background: #FCF7EB;
  border-color: rgba(203,161,76,0.4);
  color: var(--ink-dark);
}
.sheet .folder-card .folder-title { color: var(--ink-dark); }
.sheet .folder-meta { color: var(--ink-dark-soft); }
.sheet .folder-icon { color: var(--gold-deep); }
.sheet .folder-card:hover { background: var(--marian-deep); color: var(--gold-light); border-color: rgba(203,161,76,0.6); }
.sheet .folder-card:hover .folder-title { color: var(--gold-light); }

/* painel escuro flutuante (catedral) */
.sheet-dark {
  position: relative;
  background:
    radial-gradient(ellipse at 50% -5%, rgba(230,197,124,0.12), transparent 58%),
    var(--marian-deep);
  color: var(--paper);
  border-radius: 4px;
  padding: 82px 64px;
  overflow: hidden;
  box-shadow:
    0 50px 90px -44px rgba(6,18,36,0.72),
    0 18px 44px -26px rgba(6,18,36,0.55);
}
.sheet-dark::after {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(230,197,124,0.28);
  pointer-events: none;
  z-index: 1;
}

@media (max-width: 720px) {
  .sheet-dark { padding: 56px 24px; }
}

/* divisores ornamentais */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 40px auto;
  color: var(--gold);
  opacity: 0.85;
}

.ornament .line {
  flex: 0 1 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.ornament .diamond {
  width: 9px;
  height: 9px;
  background: var(--gold);
  transform: rotate(45deg);
  border-radius: 1px;
}

/* ────────── botões ────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  font-family: var(--cap);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-dark);
  background: var(--paper);
  border: 1px solid var(--paper);
  border-radius: 0;
  cursor: pointer;
  transition: all 280ms ease;
  position: relative;
  text-decoration: none;
}
.btn:hover {
  background: var(--marian-deep);
  border-color: var(--marian-deep);
  color: var(--paper);
  letter-spacing: 0.26em;
}

.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink-dark);
  box-shadow:
    inset 0 1px 0 var(--gold-light),
    inset 0 -1px 0 var(--gold-deep),
    0 6px 24px -8px rgba(0,0,0,0.4);
}
.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--ink-dark);
}

.btn-outline {
  background: transparent;
  color: var(--paper);
  border: 1px solid var(--gold-light);
}
.btn-outline:hover {
  background: var(--paper);
  color: var(--ink-dark);
  border-color: var(--paper);
}

/* ────────── partículas (canvas) ────────── */

#particle-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
}

/* ────────── vídeo · origem (moldura retangular ornamentada) ────────── */

.origin { position: relative; z-index: 2; }

.video-frame {
  max-width: 720px;
  margin: 48px auto 0;
  position: relative;
  padding: 14px;
  background:
    linear-gradient(150deg, #F4DEA4 0%, #C9A24A 20%, #8C6628 42%, #E6C57C 60%, #B58A38 78%, #F4DEA4 100%);
  box-shadow:
    0 2px 3px rgba(0,0,0,0.32) inset,
    0 -2px 3px rgba(0,0,0,0.28) inset,
    0 50px 90px -44px rgba(6,18,36,0.72),
    0 18px 44px -26px rgba(6,18,36,0.5);
}
/* filete interno gravado */
.video-frame::before {
  content: '';
  position: absolute;
  inset: 7px;
  border: 1.5px solid rgba(90,64,20,0.55);
  pointer-events: none;
  z-index: 4;
}
.video-frame::after {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255,247,225,0.4);
  pointer-events: none;
  z-index: 4;
}

.vframe-corner {
  position: absolute;
  width: 46px;
  height: 46px;
  z-index: 5;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.3));
}
.vframe-corner.tl { top: 4px; left: 4px; }
.vframe-corner.tr { top: 4px; right: 4px; transform: scaleX(-1); }
.vframe-corner.bl { bottom: 4px; left: 4px; transform: scaleY(-1); }
.vframe-corner.br { bottom: 4px; right: 4px; transform: scale(-1, -1); }

.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  cursor: pointer;
  background: #0b1830;
  outline: none;
}

.video-embed .video-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms cubic-bezier(.2,.7,.2,1), filter 500ms;
  filter: saturate(0.96) brightness(0.9);
}
.video-embed:hover .video-thumb { transform: scale(1.04); filter: saturate(1.05) brightness(0.96); }

.video-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 45%, transparent 30%, rgba(8,20,42,0.35) 100%),
    linear-gradient(0deg, rgba(8,20,42,0.5), transparent 55%);
  pointer-events: none;
}

.video-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 82px; height: 58px;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.45));
  transition: transform 260ms cubic-bezier(.22,1.4,.36,1);
}
.video-embed:hover .video-play { transform: translate(-50%, -50%) scale(1.1); }
.video-play svg { width: 76px; height: 54px; }

.video-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 20px 24px;
  font-family: var(--cap);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--paper);
  pointer-events: none;
  z-index: 2;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 36px;  background: linear-gradient(180deg, rgba(47,92,139,0.55), rgba(47,92,139,0.18) 80%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: padding 300ms ease, background 300ms ease;
}

.nav.scrolled {
  padding: 10px 36px;
  background: rgba(42,74,116,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(230,197,124,0.28);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--cap);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}

.nav-brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  display: grid;
  place-items: center;
  color: var(--gold-deep);
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-family: var(--cap);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  position: relative;
  padding: 6px 0;
}
.nav-links a:hover { color: var(--gold-deep); }
.nav-links a::after {
  content:'';
  position:absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: all 250ms ease;
  transform: translateX(-50%);
}
.nav-links a:hover::after { width: 100%; }

/* seletor de idioma */
.lang-switch {
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 2px;
}
.lang-switch button {
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: var(--cap);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(244,236,220,0.55);
  padding: 5px 7px;
  transition: color 200ms;
}
.lang-switch button:hover { color: var(--gold-light); }
.lang-switch button.active { color: var(--gold-light); border-bottom: 1px solid var(--gold-light); }

@media (max-width: 860px) {
  .lang-switch { right: 16px; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
}

/* ────────── HERO CINEMÁTICO (scroll imersivo) ────────── */

.cinema {
  position: relative;
  height: 520vh;               /* comprimento da jornada */
  z-index: 2;
}

.cinema-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: grid;
  place-items: center;
}

/* céus sobrepostos com crossfade */
.cinema-sky {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.cinema-sky-night {
  background:
    radial-gradient(ellipse 70% 50% at 50% 8%, rgba(58,86,140,0.55), transparent 60%),
    linear-gradient(180deg, #060f22 0%, #0a1830 55%, #10233f 100%);
}
.cinema-sky-day {
  opacity: 0;
  background:
    radial-gradient(ellipse 90% 55% at 50% -8%, rgba(255,255,255,0.22), transparent 62%),
    linear-gradient(180deg, #4C86BC 0%, #3A6CA2 45%, #315D8C 100%);
}

/* estrelas */
.cinema-stars {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.cinema-stars .star {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.85;
}

/* estrela-guia (Stella Maris) */
.cinema-rays {
  position: absolute;
  inset: -20% 0 0 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  background:
    conic-gradient(from 180deg at 50% 0%,
      transparent 0deg,
      rgba(230,197,124,0.10) 8deg,
      transparent 16deg,
      rgba(230,197,124,0.07) 26deg,
      transparent 34deg,
      rgba(230,197,124,0.10) 44deg,
      transparent 52deg,
      rgba(230,197,124,0.06) 62deg,
      transparent 70deg);
  mix-blend-mode: screen;
  filter: blur(2px);
}

.cinema-star {
  position: absolute;
  z-index: 2;
  width: 120px;
  height: 120px;
  left: 50%;
  top: 22%;
  transform: translate(-50%,-50%) scale(0.6);
  opacity: 0;
  will-change: transform, opacity;
  filter: drop-shadow(0 0 12px rgba(244,222,164,0.7));
}
.cinema-star-shape { transform-box: fill-box; transform-origin: center; animation: starSpin 24s linear infinite; }
@keyframes starSpin { to { transform: rotate(360deg); } }

/* trilho de progresso da jornada */
.cinema-rail {
  position: absolute;
  right: 42px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 0;
  height: 300px;
  justify-content: space-between;
  opacity: 0;
  transition: opacity 500ms;
}
.cinema-rail.visible { opacity: 1; }
.rail-line {
  position: absolute;
  left: 4px; top: 6px; bottom: 6px;
  width: 1px;
  background: rgba(244,236,220,0.22);
  overflow: hidden;
}
.rail-fill {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 0%;
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
}
.rail-stop {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 1;
}
.rail-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 1px solid rgba(244,236,220,0.5);
  background: transparent;
  flex: 0 0 auto;
  transition: all 300ms;
}
.rail-stop.done .rail-dot {
  background: var(--gold-light);
  border-color: var(--gold-light);
  box-shadow: 0 0 12px rgba(244,222,164,0.7);
}
.rail-label {
  font-family: var(--cap);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244,236,220,0.55);
  transition: color 300ms;
}
.rail-stop.done .rail-label { color: var(--gold-light); }

@media (max-width: 720px) {
  .cinema-rail { display: none; }
}

/* portais (arcos) */
.portal {
  position: absolute;
  z-index: 3;
  width: min(62vh, 78vw);
  aspect-ratio: 400 / 520;
  color: var(--gold-light);
  will-change: transform, opacity, filter;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 0 24px rgba(230,197,124,0.25));
}
.portal svg { width: 100%; height: 100%; display: block; }

/* legendas cinemáticas */
.cinema-caption {
  position: absolute;
  z-index: 4;
  text-align: center;
  color: var(--paper);
  opacity: 0;
  will-change: transform, opacity;
  padding: 0 24px;
  max-width: 760px;
}
.cinema-eyebrow {
  font-family: var(--cap);
  font-size: 12px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 20px;
}
.cinema-line {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  line-height: 1.4;
  margin: 0;
  text-shadow: 0 2px 30px rgba(0,0,0,0.5);
}
.cinema-line.big {
  font-size: clamp(1.9rem, 4.4vw, 3.4rem);
  color: #fff;
}

/* chegada ao altar */
.cinema-arrival {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  text-align: center;
  opacity: 0;
  will-change: transform, opacity;
}
.cinema-arrival .hero-rosary-wrap {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1;
  pointer-events: none;
  opacity: 0.32;
}
.cinema-arrival .hero-content {
  position: relative;
  z-index: 3;
  max-width: 880px;
  padding: 0 24px;
}

/* dica de rolagem */
.cinema-scroll-hint {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: rgba(244,236,220,0.75);
  font-family: var(--cap);
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  transition: opacity 400ms;
}
.hint-dot { animation: hintDot 1.8s ease-in-out infinite; }
@keyframes hintDot {
  0%,100% { transform: translateY(0); opacity: 1; }
  50%     { transform: translateY(6px); opacity: 0.3; }
}

@media (prefers-reduced-motion: reduce) {
  .cinema { height: 100vh; }
  .cinema-stage { position: relative; }
  .cinema-sky-day { opacity: 1; }
  .cinema-arrival { opacity: 1 !important; }
  .portal, .cinema-caption, .cinema-rays, .cinema-stars, .cinema-star, .cinema-rail { display: none; }
}

/* ────────── HERO ────────── */

.hero {
  min-height: 100vh;
  padding: 140px 0 80px;
  display: grid;
  place-items: center;
  position: relative;
  text-align: center;
  z-index: 2;
}

.hero-content { position: relative; z-index: 3; max-width: 880px; padding: 0 24px; }

.hero-rosary-wrap {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1;
  pointer-events: none;
  opacity: 0.32;
}

.hero-rosary-wrap > div { width: 100%; height: 100%; display: grid; place-items: center; }

.hero h1 {
  font-family: var(--serif-display);
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 24px 0 32px;
}

.hero h1 .amp {
  font-style: italic;
  color: var(--gold);
  font-weight: 300;
}

.hero h1 .terco-word {
  display: inline-block;
  position: relative;
  color: #FFFFFF;
}

.hero-lead {
  font-size: 1.15rem;
  max-width: 560px;
  margin: 0 auto 32px;
  color: var(--ink-soft);
  font-style: italic;
  line-height: 1.5;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-mini {
  margin-top: 56px;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-family: var(--cap);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.75;
}

.hero-mini-dot {
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%,100% { opacity: 0.4; transform: scale(0.9); }
  50%     { opacity: 1; transform: scale(1.15); }
}

/* hero arches (arquitetura sutil em SVG) */
.hero-arches {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.08;
  display: grid;
  place-items: center;
}

/* ────────── seção Sobre ────────── */

.about {
  position: relative;
  z-index: 2;
  padding-top: 60px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: start;
  margin-top: 40px;
}

@media (max-width: 880px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

.about-text p {
  margin: 0 0 18px;
  font-size: 1.08rem;
  color: var(--ink-soft);
}

.about-stats {
  border-left: 1px solid var(--gold);
  padding-left: 32px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.stat-num {
  font-family: var(--serif-display);
  font-size: 3.6rem;
  font-style: italic;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 4px;
  font-weight: 400;
}

.stat-label {
  font-family: var(--cap);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ────────── 4 Dimensões ────────── */

.dimensions {
  background: transparent;
  color: var(--paper);
  position: relative;
  z-index: 2;
}

.dimensions::before { content: none; }

.dimensions .eyebrow { color: var(--gold-light); }
.dimensions .eyebrow::before, .dimensions .eyebrow::after { background: var(--gold-light); }
.dimensions h2.section-title { color: var(--paper); }
.dimensions .section-subtitle { color: rgba(246,239,225,0.72); }

.dims-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 64px;
}

@media (max-width: 880px) {
  .dims-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
@media (max-width: 520px) {
  .dims-grid { grid-template-columns: 1fr; max-width: 320px; margin-left:auto; margin-right:auto; }
}

/* Nicho de catedral */
.dim-niche {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  padding: 0 22px 38px;
  border-left: 1.5px solid rgba(230,197,124,0.38);
  border-right: 1.5px solid rgba(230,197,124,0.38);
  border-bottom: 1.5px solid rgba(230,197,124,0.38);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(13,28,48,0.18) 40%, rgba(13,28,48,0.42) 100%);
  transition: background 450ms ease, box-shadow 450ms ease, transform 450ms ease;
}

.dim-niche:hover, .dim-niche.active {
  background:
    linear-gradient(180deg, rgba(230,197,124,0.14) 0%, rgba(13,28,48,0.30) 45%, rgba(13,28,48,0.55) 100%);
  box-shadow: inset 0 0 40px rgba(230,197,124,0.10), 0 24px 50px -28px rgba(0,0,0,0.6);
  transform: translateY(-4px);
}

/* Coroa em arco gótico, encaixa nas paredes laterais */
.niche-arch {
  width: calc(100% + 3px);
  margin: 0 -1.5px -1px;
  display: block;
  color: rgba(230,197,124,0.55);
  transition: color 450ms ease;
}
.dim-niche:hover .niche-arch, .dim-niche.active .niche-arch { color: var(--gold-light); }

.niche-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 4px;
}

.dim-num {
  font-family: var(--cap);
  font-size: 12px;
  letter-spacing: 0.34em;
  color: var(--gold-light);
  margin-bottom: 14px;
}

.dim-icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 16px;
  color: var(--gold-light);
}

.dim-name {
  font-family: var(--serif-display);
  font-size: 1.85rem;
  font-style: italic;
  margin-bottom: 12px;
  color: var(--paper);
}

.dim-card-body {
  font-size: 0.95rem;
  color: rgba(246,239,225,0.74);
  line-height: 1.55;
  max-height: 0;
  overflow: hidden;
  transition: max-height 500ms ease, margin 400ms ease, opacity 400ms ease;
  opacity: 0;
}

.dim-niche.active .dim-card-body,
.dim-niche:hover .dim-card-body {
  max-height: 320px;
  opacity: 1;
  margin-top: 6px;
}

.dim-quote {
  margin-top: 80px;
  text-align: center;
  color: rgba(246,239,225,0.92);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.dim-quote .quote {
  color: var(--paper);
  font-size: 1.55rem;
}

/* ────────── Cruzada Mundial ────────── */

.crusade {
  position: relative;
  z-index: 2;
  text-align: center;
}

.counter {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: clamp(5rem, 12vw, 9rem);
  line-height: 1;
  color: var(--gold);
  letter-spacing: -0.02em;
  font-feature-settings: "lnum";
  margin: 30px 0 18px;
  text-shadow: 0 2px 20px rgba(230,197,124,0.25);
  transition: transform 400ms cubic-bezier(.22,1.4,.36,1);
}

.counter.bump { transform: scale(1.05); }

.counter-label {
  font-family: var(--cap);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.commit-btn {
  margin-top: 40px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 22px 44px;
  font-size: 13px;
}

.commit-btn::before {
  content: '✦';
  font-size: 14px;
  color: var(--ink-dark);
}

.commit-btn.committed {
  background: var(--marian-deep);
  border-color: var(--marian-deep);
  color: var(--paper);
}
.commit-btn.committed::before { content: '✓'; color: var(--gold-light); }

/* ────────── Bênção Apostólica · carta emoldurada ────────── */

.blessing {
  position: relative;
  z-index: 2;
}

.blessing-display {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 64px;
  align-items: center;
  margin-top: 64px;
}

@media (max-width: 920px) {
  .blessing-display { grid-template-columns: 1fr; gap: 48px; max-width: 540px; margin-left:auto; margin-right:auto; }
}

/* Moldura dourada */
.letter-frame {
  position: relative;
  padding: 20px;
  background:
    linear-gradient(135deg, #F4DEA4 0%, #CBA14C 22%, #8C6628 38%, #E6C57C 55%, #B58A38 72%, #F4DEA4 100%);
  box-shadow:
    0 2px 3px rgba(0,0,0,0.35) inset,
    0 -2px 3px rgba(0,0,0,0.30) inset,
    0 40px 70px -30px rgba(0,0,0,0.6),
    0 12px 24px -16px rgba(0,0,0,0.5);
}

.letter-frame::before {
  content: '';
  position: absolute;
  inset: 11px;
  border: 2px solid rgba(90,64,20,0.55);
  pointer-events: none;
  z-index: 3;
}

/* paspatur creme */
.letter-mat {
  position: relative;
  background: var(--paper);
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.18) inset;
}

.letter-mat img {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: 0 3px 14px rgba(0,0,0,0.28);
}

/* placeholder enquanto o PDF não chega */
.letter-placeholder {
  aspect-ratio: 1 / 1.414;
  background:
    linear-gradient(180deg, #FBF6EA, #F2E9D6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  padding: 40px 34px;
  box-shadow: 0 3px 14px rgba(0,0,0,0.18);
}

.letter-placeholder .lp-mark { color: var(--gold-deep); opacity: 0.8; }
.letter-placeholder .lp-title {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--ink-dark);
}
.letter-placeholder .lp-note {
  font-family: var(--cap);
  font-size: 9.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-dark-soft);
  line-height: 1.8;
}

/* selo de cera/ouro sobre a moldura */
.wax-seal {
  position: absolute;
  top: -34px;
  right: -34px;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--gold-light), var(--gold) 52%, var(--gold-deep));
  display: grid;
  place-items: center;
  color: #5A4014;
  font-family: var(--cap);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-align: center;
  line-height: 1.5;
  border: 2px solid var(--gold-deep);
  box-shadow:
    inset 0 -8px 16px rgba(0,0,0,0.28),
    inset 0 4px 8px rgba(255,255,255,0.35),
    0 10px 26px -8px rgba(0,0,0,0.5);
  transform: rotate(-8deg);
  z-index: 5;
}

@media (max-width: 920px) {
  .wax-seal { top: -28px; right: -18px; width: 86px; height: 86px; }
}

/* texto ao lado */
.blessing-aside .blessing-meta {
  font-family: var(--cap);
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--gold);
  margin-bottom: 18px;
}

.blessing-quote {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  line-height: 1.4;
  color: var(--paper);
  margin: 0 0 18px;
}

.blessing-quote-attr {
  font-family: var(--cap);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 30px;
}

.blessing-aside p.blessing-text {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin: 0 0 16px;
}

.blessing-aside .signature {
  margin-top: 34px;
  font-family: var(--hand);
  font-size: 2.2rem;
  color: var(--gold-light);
  line-height: 1;
}

.blessing-aside .signature-meta {
  font-family: var(--cap);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 8px;
}

/* ────────── Crianças ────────── */

.children {
  position: relative;
  z-index: 2;
}

.children-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 50px;
}

@media (max-width: 880px) {
  .children-grid { grid-template-columns: 1fr; }
}

.children-img-placeholder {
  aspect-ratio: 4/5;
  background:
    repeating-linear-gradient(135deg, var(--bg-deep) 0px, var(--bg-deep) 8px, rgba(184,137,62,0.12) 8px, rgba(184,137,62,0.12) 9px);
  border: 1px solid rgba(184,137,62,0.3);
  display: grid;
  place-items: center;
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
  padding: 30px;
  position: relative;
}

.children-img-placeholder::after {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(184,137,62,0.4);
  pointer-events: none;
}

.children ul {
  list-style: none;
  padding: 0;
  margin: 24px 0 32px;
}

.children li {
  padding: 14px 0;
  border-bottom: 1px solid rgba(184,137,62,0.25);
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 1.05rem;
  color: var(--ink-soft);
}

.children li::before {
  content: '✦';
  color: var(--gold);
  font-size: 1.2rem;
}

.children-banner {
  margin-top: 30px;
  padding: 18px 22px;
  background: var(--marian-deep);
  border: 1px solid rgba(230,197,124,0.4);
  color: var(--gold-light);
  font-family: var(--cap);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-align: center;
}

/* ────────── Como Rezar ────────── */

.pray {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 110px 0 60px;
}

.pray-rosary-cta {
  margin-top: 40px;
}

/* ────────── Pedir Oração ────────── */

.pray-request {
  position: relative;
  z-index: 2;
  background: var(--marian-deep);
  color: var(--bg);
}

.pray-request::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(217,184,112,0.15), transparent 50%);
  pointer-events: none;
}

.pray-request .eyebrow { color: var(--gold-light); }
.pray-request .eyebrow::before, .pray-request .eyebrow::after { background: var(--gold-light); }
.pray-request h2.section-title { color: var(--paper); }
.pray-request .section-subtitle { color: rgba(246,239,225,0.72); }

.request-form {
  max-width: 540px;
  margin: 50px auto 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  z-index: 2;
}

.field { display: flex; flex-direction: column; gap: 6px; }

.field label {
  font-family: var(--cap);
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.field input, .field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(244,222,164,0.55);
  color: var(--paper);
  padding: 12px 0;
  font-family: var(--serif-body);
  font-size: 1.05rem;
  outline: none;
  transition: border-color 200ms;
}

.field input:focus, .field textarea:focus {
  border-color: var(--gold-light);
}

.field textarea { resize: vertical; min-height: 80px; }

.request-submit {
  background: var(--gold);
  color: var(--ink-dark);
  border-color: var(--gold);
  margin-top: 12px;
  align-self: flex-start;
}

.request-submit:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--ink-dark);
}

.request-success {
  text-align: center;
  padding: 40px 0;
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--gold-light);
  animation: fadeIn 600ms ease;
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0);} }

/* ────────── Folders ────────── */

.folders {
  position: relative;
  z-index: 2;
}

.folders-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 50px;
}

@media (max-width: 760px) {
  .folders-grid { grid-template-columns: 1fr; }
}

.folder-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(230,197,124,0.32);
  padding: 36px 28px;
  text-align: center;
  cursor: pointer;
  transition: all 300ms ease;
  position: relative;
  text-decoration: none;
  color: var(--ink);
  display: block;
}

.folder-card:hover {
  background: var(--marian-deep);
  color: var(--gold-light);
  border-color: rgba(230,197,124,0.6);
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -24px rgba(31,26,18,0.4);
}

.folder-card:hover .folder-icon { color: var(--gold-light); }
.folder-card:hover .folder-meta { color: var(--gold-light); }

.folder-icon {
  width: 48px;
  height: 60px;
  margin: 0 auto 22px;
  color: var(--gold);
  transition: color 300ms;
}

.folder-title {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.folder-meta {
  font-family: var(--cap);
  font-size: 9px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ────────── Vela final ────────── */

.candle-section {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 120px 0;
}

.candle-final-quote {
  max-width: 700px;
  margin: 60px auto 0;
}

.candle-final-quote .quote {
  font-size: 1.85rem;
  color: var(--ink);
}

/* ────────── Footer ────────── */

footer {
  position: relative;
  z-index: 2;
  background: var(--marian-darker);
  color: var(--paper);
  padding: 80px 0 30px;
}

.foot-center {
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}
.foot-center .foot-brand { margin-bottom: 16px; }

@media (max-width: 760px) {
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
}

footer h4 {
  font-family: var(--cap);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 18px;
  font-weight: 500;
}

footer .foot-brand {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 1.8rem;
  margin-bottom: 18px;
  color: var(--paper);
}

footer p {
  color: rgba(246,239,225,0.72);
  font-size: 0.95rem;
  margin: 0 0 10px;
}

footer a {
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid rgba(230,197,124,0.4);
  transition: border-color 200ms;
}

footer a:hover { border-color: var(--gold-light); }

.lang-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lang-list li {
  font-family: var(--cap);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  color: rgba(244,236,220,0.6);
  transition: color 200ms;
}
.lang-list li:hover, .lang-list li.active { color: var(--gold-light); }

.foot-rule {
  margin: 50px 0 30px;
  height: 1px;
  background: rgba(217,184,112,0.2);
}

.foot-bottom {
  text-align: center;
  font-family: var(--cap);
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(244,236,220,0.4);
}

/* ────────── Cruzada Mundial · mapa + progresso ────────── */

.crusade-goal {
  margin: 10px 0 6px;
}

.crusade-progress-track {
  max-width: 620px;
  margin: 30px auto 8px;
  height: 6px;
  background: rgba(230,197,124,0.18);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(230,197,124,0.3);
}
.crusade-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-light));
  border-radius: 4px;
  transition: width 900ms cubic-bezier(.2,.7,.2,1);
}
.crusade-progress-label {
  font-family: var(--cap);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 24px;
}

.worldmap-wrap {
  position: relative;
  max-width: 900px;
  margin: 56px auto 0;
  background: var(--marian-deep);
  border: 1px solid rgba(230,197,124,0.3);
  padding: 18px;
  box-shadow: 0 40px 80px -40px rgba(6,18,36,0.6);
}
.worldmap-canvas { display: block; width: 100%; height: auto; }
.worldmap-status {
  position: absolute;
  inset: 18px;
  display: grid;
  place-items: center;
  color: var(--gold-light);
  font-family: var(--cap);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.worldmap-note {
  text-align: center;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--ink-soft);
  margin: 14px 0 0;
}
.worldmap-pins { position: absolute; inset: 18px; pointer-events: none; }
.worldmap-pin {
  position: absolute;
  width: 0; height: 0;
  transform: translate(-50%, -50%);
}
.worldmap-pin-dot {
  position: absolute;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 6px 1px rgba(244,222,164,0.9);
  transform: translate(-50%, -50%);
}
.worldmap-pin-ring {
  position: absolute;
  width: 5px; height: 5px;
  border-radius: 50%;
  border: 1px solid var(--gold-light);
  transform: translate(-50%, -50%);
  opacity: 0;
}
.worldmap-pin-new .worldmap-pin-ring {
  animation: pinPulse 1.8s ease-out 2;
}
.worldmap-pin-new .worldmap-pin-dot {
  animation: pinFlash 1.2s ease-out 2;
}
@keyframes pinPulse {
  0% { width: 5px; height: 5px; opacity: 0.9; }
  100% { width: 34px; height: 34px; opacity: 0; }
}
@keyframes pinFlash {
  0%, 100% { box-shadow: 0 0 6px 1px rgba(244,222,164,0.9); }
  50% { box-shadow: 0 0 14px 5px rgba(244,222,164,1); }
}

.crusade-cta-row {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

/* modal do formulário da cruzada */
.crusade-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 420px;
  margin: 0 auto;
}
.crusade-form .field label {
  font-family: var(--cap);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 6px;
  display: block;
}
.crusade-form .field input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(203,161,76,0.5);
  color: var(--ink-dark);
  padding: 10px 0;
  font-family: var(--serif-body);
  font-size: 1.05rem;
  outline: none;
}
.crusade-form .field input:focus { border-color: var(--gold-deep); }
.crusade-country-hint {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--ink-dark-soft);
  margin-top: -6px;
}
.crusade-country-hint strong { color: var(--marian); font-style: normal; }

.crusade-reset-link {
  display: block;
  margin: 14px auto 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--cap);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(74,63,46,0.45);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.crusade-reset-link:hover { color: var(--gold-deep); }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 900ms cubic-bezier(.2,.7,.2,1), transform 900ms cubic-bezier(.2,.7,.2,1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ────────── Modal ────────── */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,30,61,0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: grid;
  place-items: center;
  animation: fadeIn 240ms ease;
  padding: 30px;
  overflow-y: auto;
}

.modal {
  background: var(--paper);
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 60px 60px 60px;
  position: relative;
  border: 1px solid var(--gold);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.5);
}

.modal::before, .modal::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  border: 1px solid var(--gold);
}
.modal::before { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.modal::after  { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }

@media (max-width: 720px) {
  .modal { padding: 40px 24px; }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: 0;
  font-family: var(--cap);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--ink-soft);
  cursor: pointer;
}
.modal-close:hover { color: var(--bordeaux); }

.modal h3 {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 12px;
  color: var(--ink-dark);
}

.modal-prayer {
  font-family: var(--serif-body);
  font-size: 1.1rem;
  text-align: center;
  color: var(--ink-dark-soft);
  margin: 20px 0;
  font-style: italic;
  line-height: 1.6;
}

.modal-mysteries {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 20px 0;
}

@media (max-width: 540px) {
  .modal-mysteries { grid-template-columns: 1fr; }
}

.modal-mystery {
  padding: 14px;
  border: 1px solid rgba(184,137,62,0.3);
  text-align: center;
  font-family: var(--serif-display);
  font-style: italic;
  cursor: pointer;
  transition: all 200ms;
  background: transparent;
  color: var(--ink-dark);
}
.modal-mystery:hover, .modal-mystery.active {
  background: var(--marian);
  color: var(--paper);
  border-color: var(--marian);
}

/* Hidden by default, prayer cards swap in */
.prayer-card {
  display: none;
  animation: fadeIn 350ms ease;
}
.prayer-card.active { display: block; }

/* ────────── responsivo geral ────────── */

@media (max-width: 720px) {
  section { padding: 80px 0; }
  .wrap { padding: 0 22px; }
  .blessing-card { padding: 50px 24px; }
}
