/* ===================== HERO SECTION ===================== */
.hero-section {
  width: 100%;
  position: relative;
  overflow: clip;
  min-width: 0;
  min-height: 842px;
  height: 100svh;
}

.hero-home {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-home .swiper-wrapper {
  display: flex;
  height: 100%;
  transition: transform 1.5s var(--curve);
  will-change: transform;
}

.swiper-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  min-height: 100%;
}

.swiper-slide.slide-theme-light {
  color: var(--kapital-black);
}

.swiper-slide.slide-theme-dark {
  background: #000;
  color: #fff;
}

.swiper-slide.slide-theme-dark .hero-content h1,
.swiper-slide.slide-theme-dark .hero-content h2,
.swiper-slide.slide-theme-dark .hero-content h2 p,
.swiper-slide.slide-theme-dark .hero-content .hero-subtitle {
  color: #fff;
}

.swiper-slide.slide-theme-dark .hero-cta {
  color: #fff;
}

/* ===================== HERO BACKGROUND IMAGE ===================== */
.home-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0%;
}

.home-image.hidden-mobile {
  display: none;
}

.home-image.hidden-desktop {
  display: block;
}

@media (min-width: 768px) {
  .home-image.hidden-mobile {
    display: block;
  }
  .home-image.hidden-desktop {
    display: none;
  }
}

html.has-hero-intro #hero-bg-image {
  transform: scale(1.08);
}

/* ===================== OVERLAY GRADIENT ===================== */
.overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.overlay.is-light {
  background: linear-gradient(to top, var(--color-cream-gradient), transparent 70%);
}

@media (min-width: 768px) {
  .overlay.is-light {
    background: linear-gradient(to right, var(--color-cream-gradient), transparent 60%);
  }
}

.overlay.is-dark {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.44), transparent 21.87%);
}

/* ===================== HERO CONTENT CONTAINER ===================== */
.hero-container {
  width: 100%;
  max-width: var(--max-viewport-width);
  margin: 0 auto;
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr;
  align-items: flex-end;
  padding: 144px 16px 80px;
  gap: 48px 0;
}

@media (min-width: 1024px) {
  .hero-container {
    align-items: center;
    padding: 160px 56px;
  }
}

@media (min-width: 1280px) {
  .hero-container {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
}

/* ===================== HERO TEXT CONTENT ===================== */
.hero-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (min-width: 1280px) {
  .hero-content {
    grid-column: span 8 / span 8;
  }
}

.hero-content h1 {
  font-size: 16px;
  font-weight: 500;
  font-variation-settings: "wght" 500;
  margin: 0;
  color: var(--kapital-black);
}

@media (min-width: 768px) {
  .hero-content h1 {
    font-size: 22px;
  }
}

@media (min-width: 1280px) {
  .hero-content h1 {
    position: static;
  }
}

.hero-content h2 {
  font-size: 56px;
  font-weight: 400;
  font-variation-settings: "wght" 400;
  line-height: 1;
  letter-spacing: -0.01em;
  margin: 0;
  color: inherit;
}

.hero-content h2 p {
  margin: 0;
}

@media (min-width: 1024px) {
  .hero-content h2 {
    font-size: 72px;
    line-height: 72px;
    letter-spacing: -0.72px;
  }
}

.hero-content .hero-subtitle {
  font-size: 16px;
  font-weight: 400;
  font-variation-settings: "wght" 400;
  line-height: 1.5;
  max-width: 32ch;
  margin: 0;
  color: inherit;
}

@media (min-width: 768px) {
  .hero-content .hero-subtitle {
    font-size: 22px;
    max-width: 407px;
  }
}

/* ===================== CTA BUTTON ===================== */
.hero-cta {
  display: inline-flex;
  align-items: center;
  padding: 16px 20px;
  border-radius: 100px;
  background: var(--btn-glass);
  backdrop-filter: blur(12px);
  color: inherit;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  font-variation-settings: "wght" 500;
  letter-spacing: 0;
  transition: background-color 1s var(--curve);
  width: fit-content;
}

@media (min-width: 1024px) {
  .hero-cta {
    padding: 20px 24px;
    font-size: 16px;
  }
}

.hero-cta:hover {
  background: rgba(217, 207, 196, 0.8);
}

/* ===================== HERO FADE TRANSITIONS ===================== */
.hero-content-to-fade > * {
  transition: opacity 1.5s var(--curve), transform 1.5s var(--curve);
}

.hero-content-to-fade > *:first-child {
  transition-delay: 0.5s;
}

.hero-content-to-fade > *:nth-child(2) {
  transition-delay: 0.6s;
}

.hero-content-to-fade > *:nth-child(3) {
  transition-delay: 0.7s;
}

/* ===================== HERO DOTS / NAV ===================== */
.hero-nav-bottom {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

@media (min-width: 768px) {
  .hero-nav-bottom {
    bottom: 32px;
  }
}

.hero-nav-controls {
  display: flex;
  align-items: center;
  gap: 32px;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gray-4);
  opacity: 0.6;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s;
}

.hero-dot.active {
  background: #fff;
  opacity: 1;
  width: 24px;
  border-radius: 999px;
}

.hero-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--gray-4);
  cursor: pointer;
  padding: 0;
  transition: color 0.15s;
}

.hero-arrow:hover {
  color: var(--gray-1);
}

.hero-arrow.prev {
  transform: scaleX(-1);
}

.hero-arrows {
  display: flex;
  align-items: center;
  gap: 18px;
}

.hero-slide-decor {
  position: absolute;
  right: 8%;
  bottom: 15%;
  z-index: 2;
  max-width: 450px;
  width: 40%;
  pointer-events: none;
}

@media (max-width: 767px) {
  .hero-slide-decor {
    display: none;
  }
}
