.sslider-hero {
  position: relative;
  width: 100%;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.sslider-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  margin: 0;
  padding: 60px min(6vw, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.sslider-hero__copy {
  max-width: 460px;
  color: #f7f3ec;
}
.sslider-hero__copy h1 {
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.1;
  margin: 0 0 18px;
}
.sslider-hero__copy p {
  font-size: 16px;
  line-height: 1.65;
  color: #cfd6dd;
  margin: 0 0 28px;
}
.sslider-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #c1683f;
  color: #f7f3ec;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 15px 30px;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(193, 104, 63, 0.35);
}

.sslider-hero__content--centered {
  justify-content: center;
}

/* --- Coverflow (curved 3D stack) --- */
.cf-wrap {
  --cf-w: min(56vw, 760px);
  --cf-h: calc(var(--cf-w) * 0.68);
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  height: calc(var(--cf-h) + 120px);
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  outline: none;
}
.cf-track {
  position: absolute;
  top: -40px;
  left: 0;
  right: 0;
  height: calc(var(--cf-h) + 130px);
  perspective: 1600px;
}
.cf-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--cf-w);
  aspect-ratio: 3 / 2;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 34px 50px -24px rgba(8, 20, 31, 0.55);
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.7s ease, filter 0.7s ease,
    scale 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform, opacity, filter;
  cursor: pointer;
  opacity: 0;
}
.cf-card.is-active {
  cursor: zoom-in;
}
.cf-card.is-active:hover {
  scale: 1.03;
}

.cf-arrow {
  position: absolute;
  top: calc((var(--cf-h) + 50px) / 2);
  transform: translateY(-50%);
  z-index: 20;
  width: 42px;
  height: 42px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(14, 31, 51, 0.82);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, scale 0.25s ease;
}
.cf-arrow:hover {
  background: #ffb800;
  color: #0e1f33;
  scale: 1.08;
}
.cf-arrow--prev {
  left: 8px;
}
.cf-arrow--next {
  right: 8px;
}

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

@media (max-width: 860px) {
  .sslider-hero__content {
    justify-content: center;
    text-align: center;
  }
  .sslider-hero__copy {
    max-width: 100%;
  }
  .cf-wrap {
    --cf-w: 82vw;
  }
  .cf-arrow {
    width: 36px;
    height: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cf-card {
    transition: opacity 0.4s ease;
  }
}

/* --- Lightbox preview --- */
.cf-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 20, 31, 0.9);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  padding: 5vh 5vw;
}
.cf-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.cf-lightbox__img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.cf-lightbox__close {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.cf-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* --- Theme-proof arrow reset (themes/Elementor style every <button> globally) --- */
.cf-wrap .cf-arrow,
.cf-wrap .cf-arrow:hover,
.cf-wrap .cf-arrow:focus,
.cf-wrap .cf-arrow:active {
  width: 42px !important;
  height: 42px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 50% !important;
  box-shadow: none !important;
  outline: none !important;
  line-height: 1 !important;
  font-size: 0 !important;
  text-transform: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.cf-wrap .cf-arrow {
  background: rgba(14, 31, 51, 0.82) !important;
  color: #fff !important;
}
.cf-wrap .cf-arrow:hover,
.cf-wrap .cf-arrow:focus-visible {
  background: #ffb800 !important;
  color: #0e1f33 !important;
}
.cf-wrap .cf-arrow svg {
  display: block !important;
  width: 18px !important;
  height: 18px !important;
  fill: none !important;
  stroke: currentColor !important;
}
@media (max-width: 860px) {
  .cf-wrap .cf-arrow,
  .cf-wrap .cf-arrow:hover {
    width: 36px !important;
    height: 36px !important;
  }
}

.cf-wrap .cf-dot,
.cf-wrap .cf-dot:hover,
.cf-wrap .cf-dot:focus,
.cf-wrap .cf-dot:active {
  width: 7px !important;
  height: 7px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 4px !important;
  box-shadow: none !important;
  outline: none !important;
  font-size: 0 !important;
  line-height: 0 !important;
  cursor: pointer;
  background: rgba(14, 31, 51, 0.25) !important;
  transition: width 0.35s ease, background 0.35s ease;
}
.cf-wrap .cf-dot:hover {
  background: rgba(14, 31, 51, 0.45) !important;
}
.cf-wrap .cf-dot.is-active,
.cf-wrap .cf-dot.is-active:hover {
  width: 24px !important;
  background: #ffb800 !important;
}
