/* Home hero: slideshow, bubbles, intro motion, heading shine — plain CSS only */

.hero-wrap--slideshow {
  position: relative;
  overflow: hidden;
  background-color: #1a2332;
  /* At least 600px or full viewport; JS may set a taller height on wide screens for portrait slides. */
  min-height: max(600px, 100svh);
}

.hero-wrap--slideshow .hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-wrap--slideshow .hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.15s ease-in-out;
  will-change: opacity;
}

.hero-wrap--slideshow .hero-slide__img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Per-slide focal point: object-position on <img> (same role as background-position on div backgrounds). */
.hero-wrap--slideshow .hero-slideshow .hero-slide:nth-child(1) .hero-slide__img {
  object-position: center center; /* bg_1.jpg */
}

.hero-wrap--slideshow .hero-slideshow .hero-slide:nth-child(2) .hero-slide__img {
  object-position: center center; /* bg_2-banner.jpg */
}

.hero-wrap--slideshow .hero-slideshow .hero-slide:nth-child(3) .hero-slide__img {
  object-position: top center; /* bg_3.jpg */
}

.hero-wrap--slideshow .hero-slideshow .hero-slide:nth-child(4) .hero-slide__img {
  object-position: center center; /* work-16.jpeg */
}

.hero-wrap--slideshow .hero-slideshow .hero-slide:nth-child(5) .hero-slide__img {
  object-position: center center; /* work-18.jpeg */
}

.hero-wrap--slideshow .hero-slideshow .hero-slide:nth-child(6) .hero-slide__img {
  object-position: center center; /* work-19.jpeg */
}

.hero-wrap--slideshow .hero-slide.is-active {
  opacity: 1;
}

.hero-wrap--slideshow .overlay {
  z-index: 1;
}

.hero-bubbles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.hero-bubble {
  position: absolute;
  bottom: -40px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 28% 28%,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(220, 238, 255, 0.45) 42%,
    rgba(180, 215, 255, 0.15) 70%,
    rgba(255, 255, 255, 0) 100%
  );
  box-shadow:
    inset 0 0 14px rgba(255, 255, 255, 0.85),
    0 0 10px rgba(200, 230, 255, 0.35);
  opacity: 0.55;
  animation: hero-bubble-rise linear infinite;
}

.hero-wrap--slideshow .slider-text {
  position: relative;
  z-index: 3;
}

/* Keep headline and CTA above the fold at the bottom of the hero on tall / wide layouts */
.hero-wrap--slideshow .slider-text--hero-bottom {
  padding-bottom: max(1.75rem, env(safe-area-inset-bottom, 0px));
  padding-top: 6rem;
}

@media (min-width: 768px) {
  .hero-wrap--slideshow .slider-text--hero-bottom {
    padding-bottom: max(2.25rem, env(safe-area-inset-bottom, 0px));
    padding-top: 7rem;
  }
}

/* Bubble positions & timing */
.hero-bubble:nth-child(1) {
  width: 14px;
  height: 14px;
  left: 6%;
  animation-duration: 12s;
  animation-delay: 0s;
}
.hero-bubble:nth-child(2) {
  width: 22px;
  height: 22px;
  left: 14%;
  animation-duration: 16s;
  animation-delay: -2s;
}
.hero-bubble:nth-child(3) {
  width: 10px;
  height: 10px;
  left: 22%;
  animation-duration: 14s;
  animation-delay: -4s;
}
.hero-bubble:nth-child(4) {
  width: 18px;
  height: 18px;
  left: 31%;
  animation-duration: 18s;
  animation-delay: -1s;
}
.hero-bubble:nth-child(5) {
  width: 12px;
  height: 12px;
  left: 38%;
  animation-duration: 13s;
  animation-delay: -6s;
}
.hero-bubble:nth-child(6) {
  width: 26px;
  height: 26px;
  left: 47%;
  animation-duration: 20s;
  animation-delay: -3s;
}
.hero-bubble:nth-child(7) {
  width: 11px;
  height: 11px;
  left: 54%;
  animation-duration: 15s;
  animation-delay: -7s;
}
.hero-bubble:nth-child(8) {
  width: 20px;
  height: 20px;
  left: 62%;
  animation-duration: 17s;
  animation-delay: -2.5s;
}
.hero-bubble:nth-child(9) {
  width: 15px;
  height: 15px;
  left: 71%;
  animation-duration: 14s;
  animation-delay: -5s;
}
.hero-bubble:nth-child(10) {
  width: 9px;
  height: 9px;
  left: 78%;
  animation-duration: 11s;
  animation-delay: -8s;
}
.hero-bubble:nth-child(11) {
  width: 24px;
  height: 24px;
  left: 85%;
  animation-duration: 19s;
  animation-delay: -1.5s;
}
.hero-bubble:nth-child(12) {
  width: 13px;
  height: 13px;
  left: 92%;
  animation-duration: 13s;
  animation-delay: -9s;
}
.hero-bubble:nth-child(13) {
  width: 17px;
  height: 17px;
  left: 11%;
  animation-duration: 16s;
  animation-delay: -10s;
}
.hero-bubble:nth-child(14) {
  width: 11px;
  height: 11px;
  left: 44%;
  animation-duration: 12s;
  animation-delay: -11s;
}
.hero-bubble:nth-child(15) {
  width: 19px;
  height: 19px;
  left: 66%;
  animation-duration: 15s;
  animation-delay: -4.5s;
}
.hero-bubble:nth-child(16) {
  width: 8px;
  height: 8px;
  left: 3%;
  animation-duration: 10s;
  animation-delay: -6s;
}
.hero-bubble:nth-child(17) {
  width: 21px;
  height: 21px;
  left: 96%;
  animation-duration: 17s;
  animation-delay: -12s;
}
.hero-bubble:nth-child(18) {
  width: 16px;
  height: 16px;
  left: 52%;
  animation-duration: 14s;
  animation-delay: -7.5s;
}

@keyframes hero-bubble-rise {
  0% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0;
  }
  8% {
    opacity: 0.65;
  }
  92% {
    opacity: 0.5;
  }
  100% {
    transform: translateY(-110vh) translateX(18px) scale(0.65);
    opacity: 0;
  }
}

/* Hero copy: fade in + slide up on load */
.hero-intro-el {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  animation: hero-intro-in 0.95s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-intro-el--1 {
  animation-delay: 0.18s;
}
.hero-intro-el--2 {
  animation-delay: 0.4s;
}
.hero-intro-el--3 {
  animation-delay: 0.62s;
}

@keyframes hero-intro-in {
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* Shine / sparkle sweep on main heading */
.hero-heading-shine {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.hero-heading-shine::after {
  content: "";
  position: absolute;
  top: -10%;
  left: 0;
  width: 45%;
  height: 120%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.15) 35%,
    rgba(255, 255, 255, 0.55) 50%,
    rgba(200, 235, 255, 0.35) 65%,
    transparent 100%
  );
  transform: translateX(-140%) skewX(-18deg);
  animation: hero-heading-shine 4.5s ease-in-out infinite;
  pointer-events: none;
  mix-blend-mode: soft-light;
}

@keyframes hero-heading-shine {
  0%,
  65% {
    transform: translateX(-140%) skewX(-18deg);
    opacity: 0;
  }
  68% {
    opacity: 1;
  }
  100% {
    transform: translateX(260%) skewX(-18deg);
    opacity: 0;
  }
}

/* WhatsApp CTA: large icon aligned with label */
.hero-whatsapp-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  line-height: 1.2;
}

.hero-whatsapp-btn__icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
  margin-right: 0.65rem;
  display: block;
}

.hero-whatsapp-btn__label {
  display: inline-block;
  line-height: 1.25;
}

@media (max-width: 575.98px) {
  .hero-whatsapp-btn__icon {
    width: 36px;
    height: 36px;
    margin-right: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-wrap--slideshow .hero-slide {
    transition: none;
  }

  .hero-bubble {
    animation: none;
    opacity: 0.25;
    bottom: 20%;
  }

  .hero-intro-el {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .hero-heading-shine::after {
    animation: none;
    display: none;
  }
}
