/* hero-v2.css - Horizontal Carousel Slider for Embriture */

.hero-v2 {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: var(--dk);
  padding-top: calc(var(--nav-height, 80px) + 0.5rem);
  padding-bottom: 0rem;
}

.hero-slider-track {
  display: flex;
  width: 100%;
  height: auto;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.hero-slide {
  flex: 0 0 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 1rem 5%;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-left-v2 {
  flex: 1;
  max-width: 800px;
  padding-right: 2rem;
}

.hero-right-v2 {
  flex: 1;
  max-width: 800px;
  display: flex;
  justify-content: center;
  position: relative;
}

.hero-right-v2 img {
  max-height: 400px;
  object-fit: cover;
}

.hero-v2 .chat-box {
  height: min(400px, 60vh) !important;
}

/* Typography styles matching Embriture theme */
.hero-badge-v2 {
  display: inline-block;
  font-family: var(--font-sans, "Outfit", sans-serif);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 1.5rem;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  background: rgba(126, 178, 221, 0.1);
  border: 1px solid rgba(126, 178, 221, 0.2);
}

.hero-hed-v2 {
  font-family: var(--font-serif, "Cormorant Garamond", serif);
  font-size: clamp(2.2rem, 3.5vw, 3.5rem);
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 1rem;
  position: relative;
}

/* Animated Underline on active slide */
.hero-underline-wrapper {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.hero-underline-wrapper em {
  font-style: italic;
  color: var(--gold);
}

.hero-underline-svg {
  position: absolute;
  bottom: -0.1em;
  left: 0;
  width: 100%;
  height: 0.4em;
  pointer-events: none;
  overflow: visible;
}

.hero-underline-path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  /* Animate path drawing */
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
}

.hero-slide.active .hero-underline-path {
  animation: drawUnderline 0.7s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  animation-delay: 0.4s;
}

@keyframes drawUnderline {
  to {
    stroke-dashoffset: 0;
  }
}

.hero-sub-v2 {
  font-family: var(--font-sans, "Outfit", sans-serif);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.5rem;
  max-width: 90%;
  line-height: 1.5;
}

.hero-ctas-v2 {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Pagination Dots */
.hero-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0 1rem 0;
  background-color: var(--dk);
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  padding: 0;
}

.hero-dot.active {
  background-color: var(--gold);
  transform: scale(1.3);
}

/* Static Stats Bar Below Slider */
.stats-banner {
  background-color: var(--dk);
  padding-bottom: 1.5rem;
}

.hero-stats-bar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: rgba(28,52,98,.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(190,212,255,.15);
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  padding: 1.25rem 2%;
  flex-wrap: wrap;
  gap: 1rem;
  width: 100%;
  margin: 0 auto;
  border-radius: 20px;
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-family: var(--font-sans, "Outfit", sans-serif);
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.15rem;
}

.stat-lbl {
  font-family: var(--font-sans, "Outfit", sans-serif);
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-slide {
    flex-direction: column;
    text-align: center;
    padding-top: 1rem;
  }
  
  .hero-left-v2, .hero-right-v2 {
    max-width: 100%;
    padding-right: 0;
  }
  
  .hero-right-v2 {
    margin-top: 3rem;
    justify-content: center;
  }
  
  .hero-ctas-v2 {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .hero-sub-v2 {
    margin-left: auto;
    margin-right: auto;
  }
}
