/* ===================================================
   REI DA HIVE — Home Page Styles
   Paleta HIVE: Amarelo Dourado + Coral + Charcoal
   =================================================== */

/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-height);
}

/* Fundo: dark quente com textura de areia */
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    150deg,
    #1B1311 0%,
    #2C2018 30%,
    #3D2D20 60%,
    #241A12 100%
  );
}

/* Glow amarelo no canto direito */
.hero-bg::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 55%;
  height: 90%;
  background: radial-gradient(ellipse at center, rgba(245,186,19,0.18) 0%, transparent 65%);
  pointer-events: none;
}

/* Glow vermelho no canto inferior esquerdo */
.hero-bg::after {
  content: '';
  position: absolute;
  bottom: -5%;
  left: -5%;
  width: 40%;
  height: 60%;
  background: radial-gradient(ellipse at center, rgba(231,58,62,0.12) 0%, transparent 60%);
  pointer-events: none;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 55%, #1B1311 100%);
}

/* Grid sutil de fundo */
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245,186,19,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,186,19,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 24px 120px;
  text-align: center;
}

/* Badge no topo */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245,186,19,0.15);
  border: 1px solid rgba(245,186,19,0.35);
  border-radius: var(--radius-full);
  padding: 8px 20px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hive-yellow);
  margin-bottom: 28px;
}

/* Título Hero — estilo HIVE bold */
.hero-title {
  font-family: var(--font-display);
  line-height: 0.88;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

.hero-title-line1 {
  display: block;
  font-size: clamp(6rem, 18vw, 13rem);
  color: var(--white);
  text-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

.hero-title-line2 {
  display: block;
  font-size: clamp(3.5rem, 10vw, 8rem);
  /* Amarelo dourado da identidade HIVE */
  background: linear-gradient(135deg, var(--hive-yellow) 0%, var(--hive-gold) 50%, var(--hive-yellow-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 30px rgba(245,186,19,0.35));
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(0.9rem, 2.2vw, 1.3rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 14px;
}

.hero-desc {
  font-size: clamp(0.9rem, 1.8vw, 1rem);
  color: rgba(255,255,255,0.55);
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.8;
}

/* CTA Buttons */
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

/* Stats bar no hero */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(245,186,19,0.2);
  border-radius: var(--radius-xl);
  padding: 18px 32px;
  max-width: 700px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 0;
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
}

.hero-stat-icon { font-size: 1.3rem; }

.hero-stat div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-stat strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--hive-yellow);
  line-height: 1;
}

.hero-stat span {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
  font-weight: 500;
}

.hero-stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(245,186,19,0.2);
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.hero-scroll-hint span {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

.hero-scroll-line {
  width: 1px;
  height: 38px;
  background: linear-gradient(to bottom, rgba(245,186,19,0.6), transparent);
  animation: scroll-anim 1.8s ease-in-out infinite;
}

@keyframes scroll-anim {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ─── ABOUT SECTION (claro) ─── */
.about {
  background: var(--bg-light);
}

.about-intro {
  color: var(--gray-warm);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 660px;
  margin: 0 auto;
}

.about-grid {
  display: flex;
  flex-direction: column;
  gap: 80px;
  margin-top: 72px;
}

.about-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.about-item-reverse { direction: rtl; }
.about-item-reverse > * { direction: ltr; }

/* Imagens reais do evento */
.about-real-img {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
  box-shadow: var(--shadow-card-lg);
  border: 3px solid rgba(245,186,19,0.25);
}

.about-real-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}

.about-real-img:hover img {
  transform: scale(1.04);
}

/* Barra decorativa HIVE na parte inferior */
.about-real-img::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 5px;
  background: repeating-linear-gradient(
    -45deg,
    var(--hive-red),
    var(--hive-red) 4px,
    var(--hive-yellow) 4px,
    var(--hive-yellow) 8px
  );
  z-index: 1;
}

/* Manter compatibilidade com placeholders antigos */
.about-img-placeholder {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  position: relative;
  box-shadow: var(--shadow-card-lg);
  background: linear-gradient(145deg, var(--hive-dark) 0%, var(--hive-dark-mid) 40%, #3D2D20 100%);
  border: 2px solid rgba(245,186,19,0.2);
}

/* Texto do about */
.about-item-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  color: var(--hive-dark);
  margin-bottom: 14px;
  line-height: 1.2;
}

.about-item-text p {
  color: var(--gray-warm);
  line-height: 1.8;
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.about-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.about-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--hive-dark);
  font-size: 0.9rem;
  font-weight: 500;
}

.about-list li i {
  color: var(--hive-red);
  font-size: 0.8rem;
  min-width: 14px;
}

/* ─── PILARES (fundo amarelo HIVE) ─── */
.pillars {
  background: var(--hive-yellow);
  position: relative;
  overflow: hidden;
}

/* Padrão de listras no fundo */
.pillars::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    rgba(231,58,62,0.08),
    rgba(231,58,62,0.08) 3px,
    transparent 3px,
    transparent 20px
  );
  pointer-events: none;
}

/* Títulos no fundo amarelo: texto escuro */
.pillars .section-label {
  color: var(--hive-red);
}
.pillars .section-label::before,
.pillars .section-label::after {
  background: var(--hive-red);
}

.pillars-heading {
  color: var(--hive-dark) !important;
}

.pillars-heading span {
  background: linear-gradient(135deg, var(--hive-red) 0%, var(--hive-red-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  position: relative;
}

.pillar-card {
  background: rgba(255,255,255,0.85);
  border: 2px solid rgba(27,19,17,0.08);
  border-radius: var(--radius-lg);
  padding: 28px 16px;
  text-align: center;
  transition: all var(--transition-mid);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(4px);
}

.pillar-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--hive-red), var(--hive-yellow-dark));
  transform: scaleX(0);
  transition: transform var(--transition-mid);
}

.pillar-card:hover {
  background: var(--white);
  border-color: var(--hive-red);
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(27,19,17,0.15);
}

.pillar-card:hover::before { transform: scaleX(1); }

.pillar-icon { font-size: 2.2rem; margin-bottom: 12px; }

.pillar-card h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--hive-dark);
  margin-bottom: 6px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pillar-card p {
  color: var(--gray-warm);
  font-size: 0.8rem;
  line-height: 1.5;
}

/* ─── NÚMEROS (fundo claro/creme) ─── */
.numbers {
  background: var(--bg-cream);
  position: relative;
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

/* Stat cards com fundo branco para contraste */
.numbers .stat-card {
  background: var(--white);
  box-shadow: 0 4px 20px rgba(27,19,17,0.08);
}

.numbers .stat-card-number {
  color: var(--hive-yellow-dark);
}

/* ─── GALERIA DESTAQUE (fundo escuro) ─── */
.gallery-highlight {
  background: var(--bg-dark);
  position: relative;
}

.gallery-highlight .section-label {
  color: var(--hive-yellow);
}
.gallery-highlight .section-label::before,
.gallery-highlight .section-label::after {
  background: var(--hive-yellow);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 14px;
  height: 580px;
}

.gallery-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  flex: 1;
}

.gallery-large { height: 100%; }

.gallery-placeholder {
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform var(--transition-mid);
  display: flex;
  align-items: flex-end;
  padding: 14px;
}

.gallery-item:hover .gallery-placeholder { transform: scale(1.04); }
.gallery-item:hover .gallery-overlay     { opacity: 1; }

/* Imagens reais na galeria */
.gallery-real-img {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  display: block;
}

.gallery-real-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-real-img img {
  transform: scale(1.05);
}

.gallery-real-img .gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(27,19,17,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-mid);
  font-size: 1.4rem;
  color: var(--hive-yellow);
  z-index: 2;
}

.gallery-item:hover .gallery-real-img .gallery-overlay {
  opacity: 1;
}

.gallery-real-img .gallery-badge {
  position: absolute;
  bottom: 14px;
  left: 14px;
  z-index: 3;
  background: rgba(245,186,19,0.2);
  border: 1px solid rgba(245,186,19,0.45);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hive-yellow);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(27,19,17,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-mid);
  font-size: 1.4rem;
  color: var(--hive-yellow);
}

.gallery-badge {
  position: relative;
  z-index: 1;
  background: rgba(245,186,19,0.2);
  border: 1px solid rgba(245,186,19,0.45);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hive-yellow);
}

/* ─── VÍDEO (fundo creme) ─── */
.video-section {
  background: var(--bg-light);
}

.video-inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: center;
}

.video-inner .section-label {
  color: var(--hive-red);
  justify-content: flex-start;
}
.video-inner .section-label::before,
.video-inner .section-label::after { background: var(--hive-red); }

.video-inner h2 {
  color: var(--hive-dark);
}

.video-inner p {
  color: var(--gray-warm);
  line-height: 1.8;
}

.video-frame {
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  aspect-ratio: 16/9;
  box-shadow: 0 20px 60px rgba(27,19,17,0.2), 0 0 0 4px var(--hive-yellow);
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

/* ─── DEPOIMENTOS (fundo creme/sand) ─── */
.testimonials {
  background: var(--bg-cream);
  position: relative;
}

/* Padrão triângulo no fundo */
.testimonials::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23D4980A' fill-opacity='0.07'%3E%3Cpath d='m0 40l40-40H0z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.testimonials .section-label {
  color: var(--hive-red);
}
.testimonials .section-label::before,
.testimonials .section-label::after { background: var(--hive-red); }

.testimonials-slider {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
}

.testimonials-track { position: relative; min-height: 260px; }

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--sand-mid);
  border-radius: var(--radius-xl);
  padding: 40px 44px;
  position: absolute;
  top: 0; left: 0; right: 0;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
  box-shadow: var(--shadow-card);
}

.testimonial-card.active {
  opacity: 1;
  transform: translateX(0);
  position: relative;
  pointer-events: auto;
}

.testimonial-stars {
  color: var(--hive-yellow-dark);
  font-size: 0.85rem;
  letter-spacing: 2px;
  margin-bottom: 18px;
}

.testimonial-card blockquote {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--hive-dark-soft);
  font-style: italic;
  margin-bottom: 28px;
  border-left: 3px solid var(--hive-yellow);
  padding-left: 18px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--hive-yellow), var(--hive-red));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--white);
  border: 2px solid var(--hive-yellow-dark);
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--hive-dark);
}

.testimonial-author span {
  font-size: 0.8rem;
  color: var(--gray-warm);
}

/* Controles do slider */
.testimonials-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
}

.slider-prev, .slider-next {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: 2px solid var(--sand-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hive-dark);
  font-size: 0.85rem;
  transition: all var(--transition-fast);
  background: var(--white);
}

.slider-prev:hover, .slider-next:hover {
  border-color: var(--hive-yellow);
  background: var(--hive-yellow);
  color: var(--hive-dark);
}

.slider-dots { display: flex; gap: 8px; }

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--sand-mid);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.slider-dot.active {
  background: var(--hive-yellow-dark);
  width: 22px;
}

/* ─── CTA FINAL (fundo amarelo HIVE) ─── */
.cta-final {
  position: relative;
  overflow: hidden;
  background: var(--hive-yellow);
}

/* Listras diagonais vermelhas por cima do amarelo */
.cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    rgba(231, 58, 62, 0.10),
    rgba(231, 58, 62, 0.10) 4px,
    transparent 4px,
    transparent 24px
  );
  pointer-events: none;
}

.cta-final-bg { display: none; }

.cta-final .container { position: relative; z-index: 1; }

.cta-final .section-label {
  color: var(--hive-red);
  justify-content: center;
}
.cta-final .section-label::before,
.cta-final .section-label::after { background: var(--hive-red); }

.cta-final-title {
  font-size: clamp(2rem, 5vw, 3.8rem);
  color: var(--hive-dark);
  margin-bottom: 18px;
  line-height: 1.05;
}

.cta-final-text {
  color: rgba(27,19,17,0.7);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta-final-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.cta-final-trust {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(27,19,17,0.65);
  font-size: 0.85rem;
  font-weight: 500;
}

.cta-trust-item i {
  color: var(--hive-red);
  font-size: 0.9rem;
}

/* ─── Lightbox ─── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(27,19,17,0.96);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-mid);
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-lg);
  object-fit: contain;
  border: 2px solid rgba(245,186,19,0.3);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: rgba(245,186,19,0.15);
  border: 1px solid rgba(245,186,19,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hive-yellow);
  font-size: 1rem;
  transition: all var(--transition-fast);
  z-index: 2001;
}

.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev  { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 20px; top: 50%; transform: translateY(-50%); }

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--hive-yellow);
  color: var(--hive-dark);
  border-color: var(--hive-yellow);
}

/* ─── Responsive ─── */
@media (max-width: 1200px) {
  .pillars-grid   { grid-template-columns: repeat(3, 1fr); }
  .numbers-grid   { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  .about-item { grid-template-columns: 1fr; gap: 32px; }
  .about-item-reverse { direction: ltr; }
  .video-inner { grid-template-columns: 1fr; gap: 40px; }
  .gallery-grid { height: auto; grid-template-columns: 1fr; }
  .gallery-large { aspect-ratio: 16/9; height: auto; }
  .gallery-col { flex-direction: row; }
  .gallery-item { aspect-ratio: 4/3; flex: 1; }
}

@media (max-width: 768px) {
  .hero-stats { flex-direction: column; gap: 10px; padding: 16px 20px; }
  .hero-stat-divider { display: none; }
  .hero-stat { justify-content: center; }
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-col { flex-direction: column; }
  .testimonial-card { padding: 28px 22px; }
  .cta-final-trust { gap: 14px; flex-direction: column; align-items: center; }
  .hero-actions { flex-direction: column; align-items: center; }
  .video-inner { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-title-line1 { font-size: clamp(4.5rem, 22vw, 6rem); }
  .hero-title-line2 { font-size: clamp(3rem, 15vw, 4rem); }
  .numbers-grid  { grid-template-columns: 1fr 1fr; }
  .pillars-grid  { grid-template-columns: 1fr 1fr; }
}
