/* Segunda direção visual: paleta e tipografia da Jornada de Liturgia. */
:root {
  --navy: #02253d;
  --navy-deep: #02253d;
  --blue: #2f496e;
  --blue-soft: #e8eef3;
  --ink: #02253d;
  --muted: #61788c;
  --gold: #cbb386;
  --gold-deep: #a98757;
  --cream: #f8f7f3;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body { overflow-x: clip; }
h1, h2, h3 { text-wrap: balance; }
h2 { font-size: clamp(3.6rem, 6vw, 6rem); line-height: .95; font-weight: 500; letter-spacing: -.035em; }
h2 em { color: #9d8057; }
.eyebrow { letter-spacing: .18em; font-weight: 600; }
.button { font-weight: 500; }

/* Barra flutuante, em vidro, sobre a fotografia. */
.site-header,
.site-header.is-scrolled {
  inset: 18px auto auto 50%;
  transform: translateX(-50%);
  width: min(1320px, calc(100% - 48px));
  margin: 0;
  background: rgba(4, 44, 74, .64);
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 999px;
  box-shadow: 0 16px 55px rgba(2, 37, 61, .16), inset 0 1px 0 rgba(255, 255, 255, .23);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
}
.site-header.is-scrolled { background: rgba(2, 37, 61, .83); }
.header-inner { width: calc(100% - 30px); height: 62px; }
.brand { width: 123px; }
.desktop-nav { gap: clamp(15px, 1.8vw, 27px); }
.desktop-nav a { font-size: 12px; }
.header-contact {
  padding: 11px 18px;
  border: 0;
  background: var(--cream);
  color: var(--navy);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .09em;
}
.header-contact:hover { background: #e5d1ab; color: var(--navy); }

/* Fotografia central, título em grande escala e informações em vidro. */
.hero {
  min-height: max(720px, 100svh);
  padding-top: 0;
  isolation: isolate;
  background: var(--navy);
}
.hero::before { display: none; }
.hero-media, .hero-shade { position: absolute; inset: 0; }
.hero-media { z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 46%; }
.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(2, 37, 61, .84) 0%, rgba(2, 37, 61, .46) 34%, rgba(2, 37, 61, .05) 69%),
    linear-gradient(0deg, rgba(2, 37, 61, .84), transparent 41%),
    linear-gradient(180deg, rgba(2, 37, 61, .31), transparent 28%);
}
.hero-inner {
  min-height: max(720px, 100svh);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  align-items: end;
  gap: 45px;
  padding-top: 150px;
  padding-bottom: 125px;
}
.hero-copy { padding: 0; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 999px;
  background: rgba(216, 231, 242, .18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: white;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.badge-star { color: #e1c598; font-size: 14px; }
.hero-kicker { margin: 26px 0 12px; color: rgba(255, 255, 255, .8); font-size: 10px; letter-spacing: .22em; }
.hero-kicker span { color: #e5cfa9; }
.hero h1 {
  max-width: none;
  margin: 0;
  color: white;
  font: 500 clamp(7rem, 13vw, 12.5rem)/.72 var(--serif);
  letter-spacing: -.055em;
  text-shadow: 0 10px 40px rgba(2, 37, 61, .28);
}
.hero h1 em { display: inline-block; color: #f3e6ce; font-weight: 400; }
.hero-description {
  max-width: 455px;
  margin-top: 28px;
  color: rgba(255, 255, 255, .9);
  font-size: 14px;
  line-height: 1.75;
  text-shadow: 0 2px 16px rgba(2, 37, 61, .35);
}
.hero-actions { margin-top: 27px; gap: 12px; }
.hero-actions .button { min-height: 50px; padding: 13px 20px; font-size: 12px; }
.button-gold { background: var(--cream); color: var(--navy); }
.button-gold:hover { background: #ebd8b5; }
.button-glass {
  border: 1px solid rgba(255, 255, 255, .48);
  background: rgba(255, 255, 255, .14);
  color: #fff;
  backdrop-filter: blur(17px);
  -webkit-backdrop-filter: blur(17px);
}
.button-glass:hover { background: rgba(255, 255, 255, .23); }
.hero-aside { display: grid; gap: 10px; padding-bottom: 5px; }
.hero-aside-card {
  min-height: 83px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 19px;
  background: rgba(206, 223, 237, .19);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 15px 38px rgba(2, 37, 61, .12);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
}
.hero-aside-card small { color: rgba(255, 255, 255, .72); font-size: 9px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.hero-aside-card strong { margin-top: 5px; color: white; font: 500 28px/.95 var(--serif); }
.hero-bottom {
  position: absolute;
  inset: auto 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  z-index: 3;
}
.hero-bottom-note { margin: 0; font-size: 14px; }
.scroll-cue { position: static; color: rgba(255, 255, 255, .8); }

.faith-marquee {
  overflow: hidden;
  padding: 28px 0 24px;
  background: #e8eef3;
  border-bottom: 1px solid rgba(47, 73, 110, .12);
  color: var(--navy);
}
.faith-marquee-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  white-space: nowrap;
  animation: faith-flow 42s linear infinite;
  font: 400 clamp(3rem, 5.5vw, 5.5rem)/.9 var(--serif);
}
.faith-marquee-track em { color: #617e9b; font-weight: 400; }
.faith-marquee-track b { color: #baa47c; font: 400 25px var(--serif); }
@keyframes faith-flow { to { transform: translateX(-50%); } }

/* Continuidade da identidade nas demais seções. */
.intro-section, .connect-section { background: var(--cream); }
.intro-grid { grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); }
.intro-image-wrap { max-width: 460px; aspect-ratio: 4/5; border-radius: 22px; }
.intro-image-wrap img { object-position: 56% 33%; }
.intro-content .lead { font-family: var(--serif); font-size: clamp(22px, 2.5vw, 29px); line-height: 1.4; }
.intro-content > p:not(.lead), .mission-heading > p, .caravan-content p, .connect-copy p { font-size: 14px; }
.section-number { color: var(--blue); }
.timeline-year { color: #a98757; }
.mission-section { background: linear-gradient(135deg, #e8eef3, #dae5ee); }
.mission-card { border-radius: 20px; background: rgba(255, 255, 255, .48); }
.mission-card h3 { font-size: 37px; font-weight: 500; }
.mission-card:hover { transform: translateY(-4px); }
.caravan-section { background: radial-gradient(circle at 76% 26%, #375e82, transparent 35%), #02253d; }
.caravan-photo { width: 100%; aspect-ratio: 4/5; border-radius: 22px; }
.caravan-quote { right: -25px; bottom: 7%; }
.caravan-quote > span { height: auto; font-size: 25px; color: #e8d0a4; }
.caravan-quote p { font-size: 25px; }
.button-blue, .site-footer { background: var(--navy); }

/* O vídeo é o mesmo iframe encontrado no site de origem. */
.video-section { overflow: hidden; background: var(--cream); }
.video-heading { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 80px; margin-bottom: 44px; }
.video-heading h2 { max-width: 800px; margin-bottom: 0; }
.video-heading > div:last-child { max-width: 350px; padding-bottom: 5px; }
.video-heading p { color: var(--muted); font-size: 14px; line-height: 1.8; }
.video-heading a { display: inline-flex; gap: 20px; padding-bottom: 8px; border-bottom: 1px solid #a98757; color: var(--blue); font-size: 12px; font-weight: 600; }
.video-heading a span { color: #a98757; font-size: 17px; }
.video-section .eyebrow-light { color: var(--gold-deep); }
.video-frame-wrap { position: relative; }
.video-frame {
  position: relative;
  z-index: 1;
  overflow: hidden;
  aspect-ratio: 16/9;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 24px;
  background: #2f496e;
  box-shadow: 0 35px 75px rgba(2, 37, 61, .18);
}
.video-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.video-poster { position: absolute; inset: 0; display: block; overflow: hidden; color: white; }
.video-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.16, 1, .3, 1); }
.video-poster::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(0deg, rgba(2, 37, 61, .56), transparent); pointer-events: none; }
.video-poster:hover img { transform: scale(1.025); }
.video-play-icon {
  position: absolute;
  z-index: 2;
  left: 76%;
  top: 49%;
  display: grid;
  place-items: center;
  width: clamp(66px, 7vw, 104px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 50%;
  background: rgba(248, 247, 243, .86);
  box-shadow: 0 18px 45px rgba(2, 37, 61, .26), inset 0 1px 0 #fff;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: var(--navy);
  font-size: clamp(20px, 2.3vw, 32px);
  padding-left: .16em;
  transform: translate(-50%, -50%);
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), background .35s;
}
.video-poster:hover .video-play-icon,
.video-poster:focus-visible .video-play-icon { transform: translate(-50%, -50%) scale(1.11); background: #fff; }
.video-play-label { position: absolute; z-index: 2; right: 28px; bottom: 23px; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; text-shadow: 0 2px 16px rgba(2, 37, 61, .4); }
.video-decoration { position: absolute; right: -30px; top: -52px; color: #cbb386; font: 400 95px var(--serif); }

/* Mesmo surgimento suave com desfoque do projeto de referência. */
.reveal { opacity: 1; filter: none; transform: none; }
.js-motion .reveal {
  opacity: 0;
  filter: blur(9px);
  transform: translateY(28px);
  transition: opacity .8s ease, filter .8s ease, transform .8s cubic-bezier(.16, 1, .3, 1);
}
.js-motion .reveal.is-visible { opacity: 1; filter: none; transform: none; }
.js-motion .mission-card.is-visible:hover { transform: translateY(-4px); }
.js-motion .hero-aside-card:nth-child(2),
.js-motion .mission-card:nth-child(2),
.js-motion .timeline-item:nth-child(2),
.js-motion .connect-links a:nth-child(2) { transition-delay: .1s; }
.js-motion .hero-aside-card:nth-child(3),
.js-motion .mission-card:nth-child(3),
.js-motion .timeline-item:nth-child(3),
.js-motion .connect-links a:nth-child(3) { transition-delay: .2s; }
.js-motion .timeline-item:nth-child(4),
.js-motion .connect-links a:nth-child(4) { transition-delay: .3s; }
.intro-image-wrap img, .caravan-photo img { transition: transform 1.1s cubic-bezier(.16, 1, .3, 1); }
.intro-aside.is-visible .intro-image-wrap img,
.caravan-visual.is-visible .caravan-photo img { transform: scale(1.025); }

/* Os links de contato se movem sem alterar o layout da linha. */
.connect-links a:hover { padding-left: 4px; }
.connect-links a > span:first-child,
.connect-links a > span:last-child {
  transition: transform .5s cubic-bezier(.16, 1, .3, 1);
}
.js-motion .connect-links a.reveal {
  transition:
    opacity .8s ease,
    filter .8s ease,
    transform .8s cubic-bezier(.16, 1, .3, 1),
    color .4s ease;
}
.js-motion .connect-links a.reveal:nth-child(2) { transition-delay: .1s, .1s, .1s, 0s; }
.js-motion .connect-links a.reveal:nth-child(3) { transition-delay: .2s, .2s, .2s, 0s; }
.js-motion .connect-links a.reveal:nth-child(4) { transition-delay: .3s, .3s, .3s, 0s; }
@media (hover: hover) and (pointer: fine) {
  .connect-links a:hover > span:first-child,
  .connect-links a:focus-visible > span:first-child { transform: translateX(9px); }
  .connect-links a:hover > span:last-child,
  .connect-links a:focus-visible > span:last-child { transform: translate(3px, -3px); }
}

@media (max-width: 1100px) {
  .desktop-nav { gap: 12px; }
  .brand { width: 110px; }
  .header-contact { padding-inline: 14px; }
  .hero h1 { font-size: clamp(7rem, 12vw, 10rem); }
}
@media (max-width: 900px) {
  .header-inner { height: 60px; }
  .site-header, .site-header.is-scrolled { top: 14px; width: calc(100% - 32px); }
  .brand { width: 120px; }
  .mobile-nav:not([hidden]) { border-radius: 0 0 22px 22px; background: rgba(2, 37, 61, .97); }
  .site-header:has(.mobile-nav:not([hidden])) { border-radius: 24px 24px 0 0; }
  .hero-inner { grid-template-columns: minmax(0, 1fr) 175px; gap: 20px; }
  .hero-aside-card { padding: 15px; }
  .hero-aside-card strong { font-size: 25px; }
}
@media (max-width: 760px) {
  h2 { font-size: clamp(3.25rem, 10vw, 5rem); }
  .hero { min-height: max(680px, 100svh); }
  .hero-media img { object-position: center center; }
  .hero-shade {
    background:
      linear-gradient(0deg, rgba(2, 37, 61, .96) 0%, rgba(2, 37, 61, .68) 36%, rgba(2, 37, 61, .02) 74%),
      linear-gradient(180deg, rgba(2, 37, 61, .38), transparent 28%);
  }
  .hero-inner {
    min-height: max(680px, 100svh);
    display: flex;
    justify-content: flex-end;
    align-items: stretch;
    padding-top: 95px;
    padding-bottom: 100px;
  }
  .hero-copy { padding: 0; }
  .hero h1 { font-size: clamp(6.5rem, 20vw, 10rem); }
  .hero-aside { display: none; }
  .hero-description { max-width: 490px; }
  .hero-bottom { bottom: 25px; }
  .hero-bottom-note { font-size: 12px; }
  .scroll-cue { display: flex; }
  .intro-grid { grid-template-columns: 1fr; }
  .intro-image-wrap { max-width: 540px; aspect-ratio: 4/4.7; }
  .video-heading { grid-template-columns: 1fr; gap: 15px; }
  .video-heading > div:last-child { max-width: 550px; }
  .video-frame { border-radius: 16px; }
}
@media (max-width: 480px) {
  .hero { min-height: max(680px, 100svh); }
  .hero-inner { min-height: max(680px, 100svh); padding-bottom: 104px; }
  .hero-badge { font-size: 9px; }
  .hero-kicker { margin-top: 23px; }
  .hero h1 { font-size: clamp(6.2rem, 22vw, 8.3rem); }
  .hero-description { margin-top: 23px; font-size: 13px; }
  .hero-actions { margin-top: 22px; }
  .hero-actions .button { width: auto; min-height: 45px; font-size: 11px; padding: 11px 15px; gap: 13px; }
  .hero-bottom-note { display: none; }
  .scroll-cue { margin-left: auto; font-size: 9px; }
  .faith-marquee { padding-block: 23px; }
  .faith-marquee-track { font-size: 3.1rem; gap: 17px; }
  .faith-marquee-track b { font-size: 19px; }
  .caravan-quote { right: -8px; }
  .caravan-quote p { font-size: 21px; }
  .video-decoration { display: none; }
  .video-play-icon { left: 78%; width: 54px; font-size: 18px; }
  .video-play-label { right: 13px; bottom: 10px; font-size: 8px; }
}
@media (max-width: 360px) {
  .hero h1 { font-size: 6rem; }
  .hero-actions .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .faith-marquee-track { animation: none; }
  .js-motion .reveal { opacity: 1; filter: none; transform: none; transition: none; }
  .video-poster img, .intro-image-wrap img, .caravan-photo img { transition: none; }
}
