/* =============================================================
 * Kitify – Hero Tabs
 * ============================================================= */

.kitify-hero-tabs {
  --slide-duration: 5s;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16 / 7;
  min-height: 340px;
  width: 100%;
  max-width: 100%;
}

/* ── Slides ── */
.kitify-hero-tabs__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 1;
}

.kitify-hero-tabs__slide--active {
  opacity: 1;
  z-index: 2;
}

/* ── Overlay tint ── */
.kitify-hero-tabs__slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.22);
  z-index: 0;
}

/* ── Content ── */
.kitify-hero-tabs__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 0 24px;
  max-width: 700px;
}

.kitify-hero-tabs__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.kitify-hero-tabs__heading {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  color: #ffffff;
  margin: 0;
}

/* ── CTA ── */
.kitify-hero-tabs__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border-radius: 100px;
  padding: 12px 12px 12px 24px;
  text-decoration: none;
  color: #111111;
  font-size: 14px;
  font-weight: 600;
  transition: opacity 0.2s;
}

.kitify-hero-tabs__cta:not(:has(.kitify-hero-tabs__cta-arrow)) {
  padding: 12px 24px;
}

.kitify-hero-tabs__cta:hover {
  opacity: 0.88;
  color: #111111;
}

.kitify-hero-tabs__cta-arrow {
  width: 36px;
  height: 36px;
  background: #111111;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0;
}

.kitify-hero-tabs__cta-arrow i {
  font-size: inherit;
  line-height: 1;
}

.kitify-hero-tabs__cta-arrow svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
}

/* ── Bottom Nav ── */
.kitify-hero-tabs__nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
}

.kitify-hero-tabs__nav-item {
  flex: 1;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none;
  cursor: pointer;
  padding: 14px 20px 18px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kitify-hero-tabs__nav-item:hover,
.kitify-hero-tabs__nav-item:focus,
.kitify-hero-tabs__nav-item:active {
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.kitify-hero-tabs__nav-label {
  font-size: 15px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.01em;
  transition: color 0.3s;
  display: block;
}

.kitify-hero-tabs__nav-item--active .kitify-hero-tabs__nav-label {
  color: #ffffff;
}

.kitify-hero-tabs__nav-item:hover:not(.kitify-hero-tabs__nav-item--active) .kitify-hero-tabs__nav-label {
  color: rgba(255, 255, 255, 0.9);
}

.kitify-hero-tabs__nav-sublabel {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  display: block;
  transition: color 0.3s;
}

.kitify-hero-tabs__nav-item--active .kitify-hero-tabs__nav-sublabel {
  color: rgba(255, 255, 255, 0.65);
}

.kitify-hero-tabs__nav-item:hover:not(.kitify-hero-tabs__nav-item--active) .kitify-hero-tabs__nav-sublabel {
  color: rgba(255, 255, 255, 0.6);
}

/* ── Progress bar ── */
.kitify-hero-tabs__nav-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.25);
  position: relative;
  border-radius: 2px;
}

.kitify-hero-tabs__nav-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  transform: scaleX(0);
  transform-origin: left center;
  border-radius: 2px;
}

/* ── Responsive ── */
@media (max-width: 767px) {
  /*
   * Force the Elementor section/container wrapping this widget to use
   * auto height so it expands to fit the taller 4:5 hero on mobile,
   * instead of keeping a desktop-set height and letting the hero overflow
   * onto the next section.
   */
  .elementor-section:has(.kitify-hero-tabs),
  .e-con:has(.kitify-hero-tabs) {
    height: auto !important;
    min-height: 0 !important;
  }

  .elementor-widget-kitify-hero-tabs {
    -webkit-box-flex: 0 !important;
        -ms-flex: 0 0 auto !important;
            flex: 0 0 auto !important;
    height: auto !important;
    width: 100% !important;
  }

  .elementor-widget-kitify-hero-tabs > .elementor-widget-container {
    height: auto !important;
  }

  .kitify-hero-tabs {
    border-radius: 14px;
  }

  .kitify-hero-tabs__slide {
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
  }

  .kitify-hero-tabs__content {
    align-items: center !important;
    text-align: center !important;
    max-width: 100% !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    width: 100% !important;
    box-sizing: border-box;
  }

  .kitify-hero-tabs__heading {
    font-size: clamp(24px, 7vw, 36px);
    text-align: center !important;
    width: 100%;
  }

  .kitify-hero-tabs__eyebrow {
    text-align: center !important;
    width: 100%;
  }

  .kitify-hero-tabs__nav {
    display: none;
  }
}
