.pirara-home-hero-v2 {
  position: relative;
  height: 85vh;
  min-height: 600px;
  overflow: hidden;
  background: hsl(var(--background));
}

.pirara-home-hero-v2__swiper,
.pirara-home-hero-v2 .swiper-wrapper,
.pirara-home-hero-v2__slide {
  height: 100%;
  min-height: 600px;
}

.pirara-home-hero-v2__slide {
  position: relative;
  overflow: hidden;
}

.pirara-home-hero-v2__media,
.pirara-home-hero-v2__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.pirara-home-hero-v2__media {
  z-index: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.pirara-home-hero-v2__overlay {
  z-index: 1;
  background:
    linear-gradient(
      to left,
      hsl(var(--background)) 0%,
      hsl(var(--background) / 0.75) 45%,
      transparent 100%
    ),
    linear-gradient(
      to top,
      hsl(var(--background) / 0.6) 0%,
      transparent 60%
    );
}

.pirara-home-hero-v2__container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 6rem 2rem 4rem;
}

.pirara-home-hero-v2__content {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: min(100%, 42rem);
  text-align: right;
}

.pirara-home-hero-v2__eyebrow {
  margin: 0 0 1rem;
  color: hsl(var(--primary));
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.2em;
}

.pirara-home-hero-v2__heading {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: 100%;
  margin: 0 0 1.5rem;
  color: hsl(var(--foreground));
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
}

.pirara-home-hero-v2__heading-accent {
  color: hsl(var(--primary));
}

.pirara-home-hero-v2__description {
  max-width: 36rem;
  margin: 0 0 2.5rem;
  color: hsl(var(--secondary-foreground));
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.7;
}

.pirara-home-hero-v2__actions {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  width: 100%;
}

.pirara-home-hero-v2__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  transition:
    border-color 0.2s,
    color 0.2s,
    filter 0.2s;
}

.pirara-home-hero-v2__button--primary {
  border: 1px solid transparent;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: 0 0 40px hsl(var(--primary) / 0.12);
}

.pirara-home-hero-v2__button--primary:hover,
.pirara-home-hero-v2__button--primary:focus-visible {
  color: hsl(var(--primary-foreground));
  filter: brightness(1.1);
}

.pirara-home-hero-v2__button--secondary {
  border: 1px solid hsl(var(--border));
  background: transparent;
  color: hsl(var(--foreground));
}

.pirara-home-hero-v2__button--secondary:hover,
.pirara-home-hero-v2__button--secondary:focus-visible {
  border-color: hsl(var(--primary) / 0.5);
  color: hsl(var(--primary));
}

.pirara-home-hero-v2__button:focus-visible,
.pirara-home-hero-v2__arrow:focus-visible {
  outline: 2px solid hsl(var(--primary));
  outline-offset: 3px;
}

.pirara-home-hero-v2__arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin: 0;
  padding: 0;
  border: 1px solid hsl(var(--border) / 0.5);
  border-radius: 9999px;
  background: hsl(var(--background) / 0.3);
  color: hsl(var(--foreground));
  cursor: pointer;
  backdrop-filter: blur(12px);
  transform: translateY(-50%);
  transition: background 0.2s;
}

.pirara-home-hero-v2__arrow:hover {
  background: hsl(var(--background) / 0.5);
}

.pirara-home-hero-v2__arrow--prev {
  right: auto;
  left: 1rem;
}

.pirara-home-hero-v2__arrow--next {
  right: 1rem;
  left: auto;
}

.pirara-home-hero-v2__arrow > span {
  display: block;
  width: 10px;
  height: 10px;
  border: 0;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
}

.pirara-home-hero-v2__arrow--prev > span {
  margin-left: 4px;
  transform: rotate(45deg);
}

.pirara-home-hero-v2__arrow--next > span {
  margin-right: 4px;
  transform: rotate(225deg);
}

.pirara-home-hero-v2 > .pirara-home-hero-v2__pagination.swiper-pagination {
  position: absolute;
  bottom: 2rem !important;
  left: 50%;
  right: auto;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: auto;
  text-align: center;
  transform: translateX(-50%);
}

.pirara-home-hero-v2__pagination .swiper-pagination-bullet {
  width: 0.5rem;
  height: 0.5rem;
  margin: 0 !important;
  border-radius: 9999px;
  background: hsl(var(--foreground) / 0.3);
  opacity: 1;
  transition:
    width 0.3s,
    background 0.3s;
}

.pirara-home-hero-v2__pagination .swiper-pagination-bullet:hover {
  background: hsl(var(--foreground) / 0.5);
}

.pirara-home-hero-v2__pagination .swiper-pagination-bullet-active {
  width: 2rem;
  background: hsl(var(--primary));
}

.pirara-home-hero-v2__slide:not(.swiper-slide-active) .pirara-home-hero-v2__content {
  opacity: 0;
}

.pirara-home-hero-v2__slide.swiper-slide-active .pirara-home-hero-v2__content {
  opacity: 1;
}

.pirara-home-hero-v2__slide.swiper-slide-active .pirara-home-hero-v2__eyebrow {
  animation: piraraHeroV2Fade 0.6s ease-out both;
}

.pirara-home-hero-v2__slide.swiper-slide-active .pirara-home-hero-v2__heading {
  animation: piraraHeroV2Slide 0.8s ease-out both;
}

.pirara-home-hero-v2__slide.swiper-slide-active .pirara-home-hero-v2__description {
  animation: piraraHeroV2Fade 0.6s ease-out 0.2s both;
}

.pirara-home-hero-v2__slide.swiper-slide-active .pirara-home-hero-v2__actions {
  animation: piraraHeroV2Fade 0.6s ease-out 0.4s both;
}

@keyframes piraraHeroV2Fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes piraraHeroV2Slide {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .pirara-home-hero-v2__container {
    padding-right: clamp(2rem, 6vw, 4rem);
    padding-left: clamp(2rem, 6vw, 4rem);
  }

  .pirara-home-hero-v2__content {
    width: min(72%, 36rem);
  }

  .pirara-home-hero-v2__heading {
    font-size: clamp(2.5rem, 7vw, 4rem);
  }

  .pirara-home-hero-v2__description {
    font-size: clamp(1rem, 2.25vw, 1.125rem);
  }
}

@media (max-width: 767px) {
  .pirara-home-hero-v2,
  .pirara-home-hero-v2__swiper,
  .pirara-home-hero-v2 .swiper-wrapper,
  .pirara-home-hero-v2__slide {
    height: 640px;
    min-height: 640px;
  }

  .pirara-home-hero-v2__overlay {
    background:
      linear-gradient(
        to top,
        hsl(var(--background) / 0.88) 0%,
        hsl(var(--background) / 0.42) 58%,
        transparent 100%
      ),
      linear-gradient(
        to left,
        hsl(var(--background) / 0.35) 0%,
        transparent 100%
      );
  }

  .pirara-home-hero-v2__container {
    align-items: flex-end;
    justify-content: center;
    padding: 5rem 1.25rem 4.5rem;
  }

  .pirara-home-hero-v2__content,
  .pirara-home-hero-v2__heading {
    align-items: center;
    text-align: center;
  }

  .pirara-home-hero-v2__heading {
    font-size: clamp(2.25rem, 11vw, 3.5rem);
  }

  .pirara-home-hero-v2__description {
    margin-bottom: 1.75rem;
    font-size: 1rem;
  }

  .pirara-home-hero-v2__actions {
    justify-content: center;
  }

  .pirara-home-hero-v2__button {
    padding: 0.75rem 1.25rem;
  }

  .pirara-home-hero-v2__arrow--prev {
    left: 0.75rem;
  }

  .pirara-home-hero-v2__arrow--next {
    right: 0.75rem;
  }

  .pirara-home-hero-v2 > .pirara-home-hero-v2__pagination.swiper-pagination {
    bottom: 1.75rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pirara-home-hero-v2 *,
  .pirara-home-hero-v2 *::before,
  .pirara-home-hero-v2 *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
