/* ============================================================
   HERO — Santuário de São Miguel Arcanjo
   Parallax: background-attachment:fixed (igual ao .secao-cta-final)
   ============================================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 140px 0 100px;
  background:
    radial-gradient(ellipse 900px 500px at 40% 100%, rgba(212,175,55,0.18), transparent 65%),
    linear-gradient(170deg, rgba(10,6,4,0.55) 0%, rgba(14,9,6,0.70) 50%, rgba(8,4,2,0.88) 100%),
    url('/assets/img/fachada.jpeg') center 30% / cover fixed;
}

@media (max-width: 900px) {
  /* fixed não funciona em iOS, desativa para mobile */
  .hero {
    background-attachment: scroll;
    background-position: center 30%;
  }
}

/* Raios de luz — conic gradient girando devagar */
.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  left: 50%;
  width: 1400px;
  height: 1400px;
  transform: translateX(-50%);
  background: conic-gradient(
    from 0deg,
    rgba(242,211,122,0)    0deg,
    rgba(242,211,122,0.07) 3deg,
    rgba(242,211,122,0)    7deg,
    rgba(242,211,122,0)   22deg,
    rgba(242,211,122,0.05) 25deg,
    rgba(242,211,122,0)   29deg,
    rgba(242,211,122,0)   58deg,
    rgba(242,211,122,0.06) 61deg,
    rgba(242,211,122,0)   65deg,
    rgba(242,211,122,0)  105deg,
    rgba(242,211,122,0.05) 108deg,
    rgba(242,211,122,0)  112deg,
    rgba(242,211,122,0)  360deg
  );
  border-radius: 50%;
  mix-blend-mode: screen;
  opacity: 0.7;
  pointer-events: none;
  z-index: 1;
  animation: raios-girar 90s linear infinite;
}
@keyframes raios-girar {
  from { transform: translateX(-50%) rotate(0deg); }
  to   { transform: translateX(-50%) rotate(360deg); }
}
@media (max-width: 900px) {
  .hero::before { width: 900px; height: 900px; }
}

/* Brilho dourado vindo de baixo */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 700px 350px at 50% 110%, rgba(212,175,55,0.20), transparent 65%);
  pointer-events: none;
  z-index: 1;
}

/* Linha dourada na base */
.hero-linha-dourada {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--dourado) 30%, var(--ouro-claro) 50%, var(--dourado) 70%, transparent 100%);
  z-index: 4;
  opacity: 0.7;
}

/* ============================================================
   Conteúdo
   ============================================================ */
.hero-conteudo {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-selo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 18px;
  border: 1px solid rgba(212,175,55,0.45);
  border-radius: 30px;
  font-size: 0.70rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ouro-claro);
  margin-bottom: 32px;
}
.hero-selo svg { width: 13px; height: 13px; flex-shrink: 0; }

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  color: var(--marfim);
  line-height: 1.16;
  margin-bottom: 22px;
  text-shadow: 0 6px 40px rgba(0,0,0,0.5);
}
.hero h1 em {
  font-style: normal;
  color: var(--ouro-claro);
}

/* Divisor ornamental */
.hero-divisor {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}
.hero-divisor span {
  height: 1px;
  width: 56px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.6));
}
.hero-divisor span:last-child {
  background: linear-gradient(90deg, rgba(212,175,55,0.6), transparent);
}
.hero-divisor svg {
  width: 14px;
  height: 14px;
  color: var(--dourado);
  flex-shrink: 0;
}

.hero p {
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  color: rgba(243,233,216,0.85);
  max-width: 520px;
  margin-bottom: 44px;
  font-weight: 300;
  line-height: 1.75;
}

/* Botões — mesmo tamanho e estilo, em grade, com ícone e entrada escalonada */
.hero-botoes {
  display: grid;
  grid-template-columns: repeat(2, minmax(235px, 1fr));
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(212,175,55,0.16);
  border-radius: 8px;
  background: rgba(243,233,216,0.03);
  backdrop-filter: blur(4px);
  position: relative;
}
.hero-botoes::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(212,175,55,0.35), transparent 40%, transparent 60%, rgba(212,175,55,0.2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hero-botoes .btn {
  width: 100%;
  min-height: 52px;
  gap: 9px;
  padding: 12px 20px;
  border-radius: 4px;
  font-size: 0.74rem;
  letter-spacing: 0.045em;
  white-space: nowrap;
  transition: transform 0.35s cubic-bezier(.22,.61,.36,1), box-shadow 0.35s ease, background 0.35s ease;
}
.hero-botoes .btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.9;
}
.hero-botoes .btn:hover {
  box-shadow: 0 10px 30px rgba(212,175,55,0.28);
}

/* Escalonamento da entrada — cada botão aparece em sequência */
.hero-botoes.reveal-stagger .item-stagger:nth-child(1) { transition-delay: 0.05s; }
.hero-botoes.reveal-stagger .item-stagger:nth-child(2) { transition-delay: 0.15s; }
.hero-botoes.reveal-stagger .item-stagger:nth-child(3) { transition-delay: 0.25s; }
.hero-botoes.reveal-stagger .item-stagger:nth-child(4) { transition-delay: 0.35s; }

@media (max-width: 640px) {
  .hero-botoes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 16px; }
  .hero-botoes .btn { padding: 12px 10px; font-size: 0.66rem; letter-spacing: 0.02em; gap: 6px; }
  .hero-botoes .btn svg { width: 14px; height: 14px; }
}
@media (max-width: 400px) {
  .hero-botoes { grid-template-columns: 1fr; }
}

/* Cruz decorativa lateral */
.hero-cruz-decorativa {
  position: absolute;
  right: 7%;
  top: 50%;
  transform: translateY(-50%);
  width: 200px;
  height: 200px;
  opacity: 0.09;
  z-index: 2;
  animation: cruz-pulse 8s ease-in-out infinite;
}
@keyframes cruz-pulse {
  0%, 100% { opacity: 0.09; }
  50%       { opacity: 0.14; }
}
@media (max-width: 900px) { .hero-cruz-decorativa { display: none; } }

/* Scroll indicador */
.scroll-indicador {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--ouro-claro);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.scroll-indicador .linha {
  width: 1px;
  height: 38px;
  background: linear-gradient(180deg, var(--dourado), transparent);
  animation: escorrer 2.4s ease-in-out infinite;
}
@keyframes escorrer {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================================
   Responsivo
   ============================================================ */
@media (max-width: 600px) {
  .hero { min-height: 100svh; padding: 120px 0 90px; }
  .scroll-indicador { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; }
  .hero-cruz-decorativa { animation: none; }
  .scroll-indicador .linha { animation: none; }
}
