/**
 * Homepage - Gonzaga's Art & Shine
 * Hero: vídeo em desktop + imagem em mobile + tagline encostada ao topo
 * Desktop full screen + Mobile otimizado
 */

/* ===== HERO DESKTOP (full screen) ===== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 480px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;
  z-index: 1;
}

/* Hero vídeo de fundo (desktop) - reduzido */
.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video {
  width: 85%;
  height: 85%;
  object-fit: contain;
  opacity: 0.95;
}

.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.3) 100%);
  z-index: 2;
}

/* Hero imagem de fundo (fallback para mobile) */
.hero-image-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: var(--color-primary);
  display: none;
  z-index: 1;
}

/* Hero content - tagline encostada ao topo */
.hero .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: none;
  padding: 1.5rem 1rem 0;
  padding-top: max(1.5rem, env(safe-area-inset-top));
  margin: 0;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.hero-tagline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 500;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.98);
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.8);
  margin: 0;
  padding: 1rem 2rem;
  display: inline-block;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== HERO MOBILE ===== */
@media (max-width: 768px) {
  .hero {
    height: 55vh;
    min-height: 280px;
  }

  /* Esconder vídeo em mobile, mostrar imagem */
  .hero-video-container {
    display: none;
  }

  .hero-image-backdrop {
    display: block;
    background-size: cover;
  }

  .hero .hero-content {
    padding: max(1rem, env(safe-area-inset-top)) 0.75rem 0;
  }

  .hero-tagline {
    font-size: clamp(0.9rem, 4.5vw, 1.15rem);
    padding: 0.5rem 1rem;
    max-width: 90%;
  }
}

/* Mobile pequeno (portrait) */
@media (max-width: 480px) {
  .hero {
    height: 50vh;
    min-height: 240px;
  }

  .hero-tagline {
    font-size: 0.95rem;
    padding: 0.45rem 0.9rem;
  }
}

/* ===== FEATURED SECTION ===== */
.featured-section {
  padding: 3rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.geometric-divider {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 0.5rem;
}

.geometric-divider span {
  width: 12px;
  height: 3px;
  background: var(--color-silver);
  border-radius: 2px;
}

/* Featured carousel */
.featured-carousel {
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 1rem;
}

.featured-carousel .slick-slide {
  padding: 0 12px;
  box-sizing: border-box;
}

.featured-carousel .product-item,
.featured-carousel .product-card {
  max-width: 260px;
  margin: 0 auto;
}

.featured-section .product-image-container {
  max-width: 100%;
}

.featured-carousel .slick-prev:before,
.featured-carousel .slick-next:before {
  color: var(--color-accent);
  font-size: 22px;
}

.featured-carousel .slick-dots li button:before {
  font-size: 10px;
  color: var(--color-accent);
}

.featured-carousel .slick-dots li.slick-active button:before {
  color: var(--color-highlight);
}

@media (max-width: 768px) {
  .featured-carousel .slick-prev,
  .featured-carousel .slick-next {
    display: none !important;
  }
}

/* Mobile featured */
@media (max-width: 768px) {
  .featured-section {
    padding: 2rem 0 2.5rem;
  }

  .section-header {
    margin-bottom: 1.5rem;
  }

  .featured-carousel {
    padding: 0 0.5rem;
  }

  .featured-carousel .slick-slide {
    padding: 0 8px;
  }

  .featured-carousel .product-item,
  .featured-carousel .product-card {
    max-width: 100%;
  }

  .slick-prev, .slick-next {
    width: 36px;
    height: 36px;
    z-index: 10;
  }

  .slick-prev { left: 4px; }
  .slick-next { right: 4px; }

  .slick-dots {
    bottom: -40px;
  }

  .featured-carousel .slick-prev,
  .featured-carousel .slick-next {
    display: none !important;
  }
}
