/* ============================================
   HOME.CSS — Estilos Específicos da Home
   Estrutura baseada em padrejoseeduardo.com.br
   ============================================ */

/* ============================================
   HERO — Layout 50/50 (referência)
   100vh, texto esquerda, visual direita
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background-color: var(--bg);
  padding-top: var(--header-height);
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  gap: 3rem;
}

/* ---- Coluna Esquerda: Conteúdo ---- */
.hero-content {
  flex: 1;
  max-width: 550px;
}

/* Frase marcante — "Amor à Imaculada Sempre" */
.hero-motto {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
  letter-spacing: 0.03em;
  opacity: 0.9;
  text-transform: uppercase;
}

/* Headline */
.hero-headline {
  font-family: var(--font-display);
  font-size: 3.8rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-align: left;
}

/* Sublinhado destacado na headline (estilo referência) */
.headline-highlight {
  position: relative;
  display: inline-block;
}

.headline-highlight::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 6px;
  background-color: var(--accent);
  opacity: 0.7;
  border-radius: 3px;
}

/* Subtítulo */
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 420px;
  line-height: 1.6;
  text-align: left;
}

/* Indicador de scroll (seta circular) */
.scroll-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--accent);
  color: #fff;
  transition: all 0.3s ease;
  animation: bounce 2s infinite;
}

.scroll-indicator:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-8px);
  }

  60% {
    transform: translateY(-4px);
  }
}

/* ---- Coluna Direita: Visual ---- */
.hero-visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 500px;
}

/* Glow roxo atrás da imagem */
.hero-glow {
  position: absolute;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* Placeholder para imagem */
.hero-image-placeholder {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-silhouette {
  opacity: 0.6;
}

/* Padrão decorativo de fundo (grid sutil) */
.hero-pattern {
  position: absolute;
  top: 0;
  right: -20px;
  width: 300px;
  height: 300px;
  background-image:
    linear-gradient(rgba(124, 58, 237, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 58, 237, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}

/* ============================================
   HERO CAROUSEL — similar à referência
   ============================================ */
.hero-carousel {
  position: relative;
  min-height: 72vh;
  padding: 0;
  margin: 0;
  overflow: hidden;
  background-color: #060606;
  touch-action: pan-y;
}

.hero-carousel-track {
  position: relative;
  min-height: 72vh;
}

.hero-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.55s ease;
}

.hero-carousel-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.hero-carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.58) 45%, rgba(0, 0, 0, 0.22) 100%);
}

.hero-carousel-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-width);
  min-height: 72vh;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.hero-carousel-content {
  flex: 1 1 50%;
  max-width: 560px;
}

.hero-carousel-kicker {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.hero-carousel-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.8vw, 3.5rem);
  line-height: 1.1;
  color: #fff;
  margin-bottom: 1rem;
}

.hero-carousel-description {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.06rem;
  line-height: 1.7;
  margin-bottom: 1.9rem;
}

.hero-carousel-media {
  flex: 1 1 50%;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hero-carousel-media img {
  width: min(100%, 520px);
  height: auto;
  object-fit: contain;
  object-position: right center;
  filter: drop-shadow(0 18px 45px rgba(0, 0, 0, 0.45));
}

.hero-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.hero-carousel-arrow:hover {
  background: rgba(0, 0, 0, 0.72);
  border-color: rgba(255, 255, 255, 0.85);
}

.hero-carousel-arrow--prev {
  left: 1.25rem;
}

.hero-carousel-arrow--next {
  right: 1.25rem;
}

.hero-carousel-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.hero-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background-color: rgba(255, 255, 255, 0.25);
  transition: all 0.25s ease;
}

.hero-carousel-dot.is-active {
  background-color: var(--accent);
  border-color: var(--accent);
  transform: scale(1.1);
}

/* ============================================
   CARDS DE DIRECIONAMENTO — seção própria
   ============================================ */
.direction-section {
  padding: 5rem 0;
  background-color: var(--bg);
}

.direction-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}

.direction-card {
  background-color: var(--bg-card);
  border: 1px solid rgba(124, 58, 237, 0);
  border-radius: 16px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  text-decoration: none;
}

.direction-card:hover {
  border-color: var(--accent);
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.2);
}

.direction-card .card-icon {
  font-size: 2.5rem;
  line-height: 1;
}

.direction-card .card-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

.direction-card .card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ============================================
   ÚLTIMOS ARTIGOS — 3 cards horizontais
   ============================================ */
.articles-section {
  background-color: var(--bg);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}

.article-card {
  background-color: var(--bg-card);
  border: 1px solid rgba(124, 58, 237, 0);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.25s ease;
}

.article-card:hover {
  border-color: var(--accent);
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.2);
}

.article-card .article-img {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.article-card .article-body {
  padding: 1.25rem;
}

.article-card .article-date {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  display: block;
}

.article-card .article-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

/* ============================================
   VÍDEOS RECOMENDADOS — grade de 4 thumbnails
   ============================================ */
.videos-section {
  background-color: var(--bg);
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}

.video-card {
  background-color: var(--bg-card);
  border: 1px solid rgba(124, 58, 237, 0);
  border-radius: 12px;
  padding: 1rem;
  overflow: hidden;
  transition: all 0.25s ease;
  display: block;
}

.video-card:hover {
  border-color: var(--accent);
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.2);
}

.video-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #1a1a2e, #0f0f23);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.video-thumb .play-icon {
  font-size: 2.5rem;
  opacity: 0.7;
  transition: opacity 0.25s ease;
}

.video-card:hover .play-icon {
  opacity: 1;
}

.video-card .video-title {
  font-size: 0.9rem;
  color: var(--text);
  margin-top: 0.75rem;
  line-height: 1.4;
}

/* ============================================
   REDES SOCIAIS / CONECTE-SE
   ============================================ */
.connect-section {
  text-align: center;
  padding-bottom: 3rem;
}

/* ============================================
   RESPONSIVO
   ============================================ */
@media (max-width: 960px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .hero-content {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-headline {
    text-align: center;
    font-size: 2.8rem;
  }

  .hero-subtitle {
    text-align: center;
  }

  .hero-visual {
    min-height: 300px;
  }

  .direction-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .videos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-carousel,
  .hero-carousel-track {
    min-height: 64vh;
  }

  .hero-carousel-inner {
    min-height: 64vh;
    gap: 1.5rem;
  }

  .hero-carousel-content {
    max-width: 460px;
  }

  .hero-carousel-title {
    font-size: clamp(1.85rem, 6vw, 2.7rem);
  }

  .hero-carousel-description {
    font-size: 1rem;
    line-height: 1.6;
  }

  .hero-carousel-media {
    min-height: 300px;
  }

  .hero-carousel-media img {
    width: min(100%, 420px);
  }

  .hero-carousel-arrow {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 2rem);
    padding-bottom: 2rem;
  }

  .hero-headline {
    font-size: 2.2rem;
  }

  .hero-motto {
    font-size: 1rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .hero-visual {
    min-height: 200px;
  }

  .hero-glow {
    width: 200px;
    height: 200px;
  }

  .direction-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 400px;
  }

  .direction-card {
    padding: 2rem 1.25rem;
  }

  .articles-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .videos-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .section-title {
    font-size: 1.6rem;
    margin-bottom: 2rem;
  }

  .hero-carousel,
  .hero-carousel-track {
    min-height: 58vh;
  }

  .hero-carousel-inner {
    min-height: 58vh;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem 1rem 2.25rem;
  }

  .hero-carousel-content {
    max-width: 100%;
  }

  .hero-carousel-title {
    font-size: clamp(1.7rem, 9vw, 2.25rem);
  }

  .hero-carousel-description {
    font-size: 0.95rem;
    margin-bottom: 1.3rem;
  }

  .hero-carousel-media {
    min-height: 180px;
    justify-content: center;
  }

  .hero-carousel-media img {
    width: min(100%, 250px);
  }

  .hero-carousel-dots {
    bottom: 0.75rem;
  }
}