/* ==========================================================================
   CASA URUSVATI — COMPONENTS CSS (Hero, Cards, Blurbs, Banners, Buttons)
   Arquitetura Estática Limpa — Zero WordPress / Zero Divi
   ========================================================================== */

/* 1. Divisores em Onda Canônica (SVG Wave2) */
.wave-divider {
  position: absolute;
  left: 0;
  width: 100%;
  height: 100px;
  pointer-events: none;
  z-index: 4;
  overflow: hidden;
  line-height: 0;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: 100%;
}

.wave-divider.wave-bottom {
  bottom: 0;
  transform: scale(-1, 1);
}

.wave-divider.wave-top {
  top: 0;
  transform: scale(1, 1);
}

/* 2. Botões Canônicos */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 13px 32px;
  border-radius: var(--radius-btn);
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #ffffff !important;
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(12, 113, 195, 0.5);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary) !important;
  border-color: var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: #ffffff !important;
  transform: translateY(-2px);
}

.btn-pill-gradient {
  background: var(--gradient-btn-pill);
  color: #ffffff !important;
  font-family: 'Montserrat', Helvetica, Arial, Lucida, sans-serif !important;
  font-size: 27px;
  font-weight: 300;
  text-transform: none;
  letter-spacing: normal;
  padding: 0.3em 1em;
  border-radius: 77px;
  border: none;
  box-shadow: 0 4px 15px rgba(220, 36, 48, 0.35);
}

.btn-pill-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(220, 36, 48, 0.5);
}

.btn-instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(204, 35, 102, 0.35);
}

.btn-instagram:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(204, 35, 102, 0.5);
}

.btn-instagram i {
  font-family: 'FontAwesomeBrands';
  font-style: normal;
  font-size: 18px;
}

/* 3. Hero Principal (Home) */
.hero-home {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 130px;
  padding-bottom: 120px;
  background-color: var(--color-cosmic-blue);
}

.video-bg-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.video-bg-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-cosmic-overlay);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 75%;
  max-width: 1140px;
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 50px;
}

.hero-book-wrap {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.hero-book-wrap img {
  max-width: 395px;
  max-height: 532px;
  width: auto;
  height: auto;
  filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.55));
  transition: transform 0.4s ease;
}

.hero-book-wrap img:hover {
  transform: scale(1.02);
}

.hero-text-wrap {
  text-align: center;
  max-width: 440px;
}

.hero-title {
  font-family: var(--font-title);
  font-size: 43px;
  font-weight: 900;
  line-height: 1.2;
  color: #ffffff;
  text-shadow: 0 0 0.3em #8300E9;
  margin-bottom: 24px;
}

.hero-title .hero-line {
  display: block;
}

/* 4. Hero Canônico das Subpáginas (Lei da Imutabilidade Vertical do Hero) */
/* Wave divider flipping */
.wave-flipped svg,
.wave-divider.wave-flipped svg {
  transform: scale(-1, 1);
}

/* Subpage Hero Variants */
.hero-subpage {
  position: relative;
  background-image: linear-gradient(180deg, #38022b 0%, #3b57bf 52%, #051884 100%) !important;
  padding-top: 220px;
  padding-bottom: 122px;
  text-align: center;
  overflow: hidden;
}

.hero-subpage.hero-atividades {
  background-image: linear-gradient(180deg, #38022b 0%, #3b57bf 52%, #051884 100%) !important;
  padding-bottom: 122px;
}

.hero-subpage.hero-parcerias {
  background-image: linear-gradient(180deg, #990391 0%, #3b57bf 52%, #051884 100%) !important;
  padding-bottom: 177px;
}

.hero-subpage.hero-quero-doar {
  background-image: linear-gradient(180deg, #051884 0%, #430049 49%, #3b57bf 98%) !important;
  padding-bottom: 153px;
}

.hero-subpage.hero-ebook {
  background-image: linear-gradient(180deg, #051884 0%, #430049 49%, #3b57bf 98%) !important;
  padding-bottom: 153px;
}

.hero-subpage.hero-ecovila {
  background-image: linear-gradient(180deg, #004c03 0%, #064c39 52%, #045400 100%) !important;
  padding-bottom: 122px;
}

.hero-subpage h1 {
  font-family: var(--font-title);
  font-size: 44px;
  font-weight: 500;
  color: #ffffff;
  text-shadow: var(--shadow-cosmic-text);
  margin: 0;
  position: relative;
  z-index: 3;
}

/* 5. Cards de Sinopse (#saibamais) */
.section-sinopse {
  padding: 63px 0 68px;
  background-color: var(--color-white);
  position: relative;
}

.blurb-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.blurb-card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  padding: 45px 28px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.blurb-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.blurb-icon {
  font-family: 'FontAwesome';
  font-style: normal;
  font-weight: 900;
  font-size: 67px;
  color: var(--color-accent-purple);
  margin-bottom: 22px;
  line-height: 1;
}

.blurb-title {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 14px;
}

.blurb-desc {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-body);
}

/* 6. Banner Tara (Home) */
.banner-tara {
  background-image: url('/assets/images/baralho.jpg');
  background-size: cover;
  background-position: left bottom;
  position: relative;
  padding: 176px 0 261px;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
}

.banner-tara .container {
  position: relative;
  z-index: 4;
}

.banner-tara-title {
  font-family: var(--font-title);
  font-size: 42px;
  font-weight: 500;
  color: #ffffff;
  text-shadow: var(--shadow-cosmic-text);
  margin-bottom: 28px;
}

/* 7. Banner Encontros & Instagram (Home) */
.section-encontros-instagram {
  padding: 43px 0 61px;
  background-color: var(--color-white);
  text-align: center;
}

.encontros-title {
  font-family: var(--font-title);
  font-size: 34px;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 14px;
}

.encontros-subtitle {
  font-family: var(--font-body);
  font-size: 19px;
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: 30px;
}

/* Responsividade de Componentes */
@media (max-width: 1080px) {
  .blurb-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-grid {
    gap: 30px;
  }
  
  .hero-title {
    font-size: 44px;
  }
}

@media (max-width: 768px) {
  .hero-home {
    min-height: auto;
    padding-top: 120px;
    padding-bottom: 90px;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-title {
    font-size: 36px;
  }
  
  .hero-subpage {
    padding-top: 130px;
    padding-bottom: 75px;
  }
  
  .hero-subpage h1 {
    font-size: 34px;
  }
  
  .blurb-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .tara-card-fan {
    display: none;
  }
  
  .btn-pill-gradient {
    font-size: 19px;
  }

  .banner-tara {
    background-position: right 0px top;
    padding: 100px 0;
  }
  
  .banner-tara-title {
    font-size: 32px;
  }
  
  .encontros-title {
    font-size: 26px;
  }
  
  .encontros-subtitle {
    font-size: 16px;
  }
}
