/**
 * Kapil Tour & Travel - Scrollable Hero Banner Styles
 *
 * @package KapilTour
 */

.kt-hero {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
  color: #ffffff;
  background-color: var(--color-primary-dark);
  overflow: hidden;
}

.kt-hero--home {
  min-height: 580px;
}

.kt-hero--plain {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 60%, #1e40af 100%);
}

/* Slider Track with Native Scroll-Snap */
.kt-hero-track {
  position: absolute;
  inset: 0;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  z-index: 1;
}

.kt-hero-track::-webkit-scrollbar {
  display: none;
}

.kt-hero-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  background-color: var(--color-primary-dark);
}

.kt-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  transition: transform 7s cubic-bezier(0.25, 1, 0.5, 1);
}

.kt-hero-slide.is-active .kt-hero-img {
  transform: scale(1.07);
}

/* High-Contrast Readability Gradient Overlay */
.kt-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(15, 23, 42, 0.90) 0%,
    rgba(15, 23, 42, 0.74) 52%,
    rgba(15, 23, 42, 0.48) 100%
  );
  z-index: 2;
  pointer-events: none;
}

/* Hero Content Layout */
.kt-hero-container {
  position: relative;
  z-index: 3;
  padding-top: 50px;
  padding-bottom: 50px;
  pointer-events: none;
}

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

.kt-hero--with-booking .kt-hero-layout {
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
}

.kt-hero-content {
  pointer-events: auto;
}

.kt-hero-booking-slot {
  pointer-events: auto;
}

/* Breadcrumbs in Hero */
.kt-hero-breadcrumbs {
  margin-bottom: 14px;
}

.kt-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: #cbd5e1;
}

.kt-breadcrumbs li + li::before {
  content: "›";
  margin-right: 8px;
  color: #94a3b8;
}

.kt-breadcrumbs a {
  color: #e2e8f0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.kt-breadcrumbs a:hover {
  color: var(--color-accent);
}

.kt-breadcrumbs li[aria-current="page"] span {
  color: #ffffff;
  font-weight: 600;
}

/* Typography & Eyebrow */
.kt-hero-eyebrow {
  margin-bottom: 12px;
}

.kt-badge-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background-color: rgba(245, 158, 11, 0.2);
  color: var(--color-accent);
  border: 1px solid rgba(245, 158, 11, 0.4);
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.kt-hero-title {
  color: #ffffff;
  font-size: 2.65rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.kt-hero-subtitle {
  color: #e2e8f0;
  font-size: 1.15rem;
  line-height: 1.6;
  margin-top: 14px;
  max-width: 640px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Synchronized Slide Text Panes */
.kt-hero-slides-text-wrap {
  position: relative;
  min-height: 290px;
}

.kt-hero-text-pane {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.45s;
  pointer-events: none;
}

.kt-hero-text-pane.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Hero Chips */
.kt-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.kt-hero-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  color: #f8fafc;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Hero Actions */
.kt-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.kt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  text-decoration: none;
}

.kt-btn--primary {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

.kt-btn--primary:hover {
  background: var(--color-accent-dark);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.5);
}

.kt-btn--whatsapp {
  background-color: var(--color-whatsapp);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.kt-btn--whatsapp:hover {
  background-color: var(--color-whatsapp-dark);
  color: #ffffff;
  transform: translateY(-2px);
}

.kt-btn--outline {
  background: transparent;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
}

.kt-btn--outline:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.kt-btn--sm {
  padding: 8px 14px;
  font-size: 0.85rem;
}

.kt-btn--block {
  width: 100%;
}

/* Stats Row */
.kt-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.kt-hero-stat-item {
  display: flex;
  flex-direction: column;
}

.kt-hero-stat-num {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1.1;
}

.kt-hero-stat-label {
  font-size: 0.825rem;
  color: #cbd5e1;
  margin-top: 2px;
}

/* Slider Controls: Arrows & Dots */
.kt-hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4;
  transition: all var(--transition-fast);
}

.kt-hero-arrow:hover {
  background: var(--color-accent);
  color: #ffffff;
  border-color: var(--color-accent);
}

.kt-hero-arrow--prev {
  left: 20px;
}

.kt-hero-arrow--next {
  right: 20px;
}

.kt-hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 4;
}

.kt-hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
}

.kt-hero-dot.is-active {
  width: 26px;
  border-radius: 5px;
  background: var(--color-accent);
}

/* Responsiveness */
@media (max-width: 992px) {
  .kt-hero--home {
    min-height: auto;
  }
  .kt-hero--with-booking .kt-hero-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .kt-hero-title {
    font-size: 2.15rem;
  }
  .kt-hero-arrow {
    display: none; /* Hide arrows on touch devices; user swipes naturally */
  }
}

@media (max-width: 600px) {
  .kt-hero {
    min-height: 280px;
  }
  .kt-hero-container {
    padding-top: 35px;
    padding-bottom: 35px;
  }
  .kt-hero-title {
    font-size: 1.75rem;
  }
  .kt-hero-subtitle {
    font-size: 1rem;
  }
  .kt-hero-actions {
    flex-direction: column;
  }
  .kt-hero-actions .kt-btn {
    width: 100%;
  }
}
