/*********************************************************
 * APPLE THEME – HERO SLIDER (Apple Vision Pro style)
 * This file is ONLY used for the Apple theme.
 *********************************************************/

/* ====== BASE CONTAINER & SLIDES ====== */

.clemo-slider-container {
  position: relative;
  width: 100%;
  height: 100vh; /* overridden by [ngStyle] if needed */
  background-color: #000;
  color: #fff;
  overflow: hidden;
  opacity: var(--slider-opacity, 1);
}

.clemo-slides.clemo-single-home-slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* ====== MEDIA LAYER (IMAGE / VIDEO) ====== */

.clemo-home-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Subtle dark gradient so white text is readable */
.clemo-home-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      to top,
      rgba(0, 0, 0, 0.85),
      rgba(0, 0, 0, 0.25)
    );
  z-index: 1;
}

/* Video variant */
.clemo-home-overlay.video-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.clemo-home-overlay.video-wrap .hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 0;
}

/* ====== APPLE LAYOUT – BOTTOM BAND ====== */

.clemo-main-home.clemo-main-home-apple {
  position: absolute !important;
  left: 0;
  right: 0;
  bottom: 96px; /* sits above mouse + nav dots */
  transform: none;
  padding: 0 6vw;
  z-index: 2;
  color: #ffffff;
}

/* Row spanning almost the entire width, like Vision Pro hero */
.clemo-main-home-apple-row {
  width: 100%;
  padding: 10px 0;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

/* ----- Left: title + subtitle ----- */

.clemo-main-home-apple-left {
  max-width: 40%;
}

.clemo-main-home-apple-left h1 {
  margin: 0 0 6px;
  font-size: clamp(2.4rem, 3.6vw, 3.8rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.clemo-main-home-apple-left .clemo-separator {
  width: 140px;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.65);
  margin: 10px 0 12px;
}

.clemo-main-home-apple-left .clemo-subtitle {
  margin: 0;
  max-width: 520px;
  font-size: 1.02rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  text-align: left;
}

/* ----- Right: buttons on bottom-right ----- */

.clemo-main-home-apple-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.clemo-main-home-apple-right .clemo-home-btn {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

/* Buttons – capsule Apple style */
.clemo-home-btn .clemo-btn,
.clemo-home-btn .clemo-btn-outline {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 999px !important;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background-color: rgba(24, 24, 24, 0.85);
  color: #ffffff;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.18s ease;
}

.clemo-home-btn .clemo-btn-outline {
  background-color: rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.clemo-home-btn .clemo-btn:hover,
.clemo-home-btn .clemo-btn-outline:hover {
  background-color: #ffffff;
  color: #000000;
  border-color: transparent;
  transform: translateY(-1px);
}

/* ====== Mouse scroll (center bottom) ====== */

.mouse-scroll.apple-mouse-scroll {
  position: absolute;
  left: 50%;
  bottom: 56px;
  transform: translateX(-50%);
  z-index: 3;

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
}

.mouse-scroll.apple-mouse-scroll .mouse {
  width: 26px;
  height: 42px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-bottom: 6px;
}

.mouse-scroll.apple-mouse-scroll .scroll {
  width: 3px;
  height: 8px;
  border-radius: 999px;
  margin-top: 8px;
  background-color: rgba(255, 255, 255, 0.8);
  animation: heroScroll 1.3s ease-in-out infinite;
}

@keyframes heroScroll {
  0% {
    opacity: 0;
    transform: translateY(-2px);
  }
  50% {
    opacity: 1;
    transform: translateY(4px);
  }
  100% {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* ====== NAV DOTS (Apple-style pill) ====== */

.clemo-slider-navigation {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 9px;
  z-index: 4;
}

.clemo-nav-item {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  opacity: 0.9;
  transition:
    width 0.25s ease,
    background-color 0.25s ease,
    opacity 0.2s ease,
    transform 0.18s ease;
}

.clemo-nav-item.clemo-active {
  width: 26px;
  height: 8px;
  background-color: #ffffff;
  opacity: 1;
}

.clemo-nav-item:hover {
  opacity: 1;
  transform: translateY(-1px);
}

/* ====== SIDE NAV BUTTONS (prev / next) ====== */

.carousel-control-prev.hh-prev,
.carousel-control-next.hh-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 4;
  display: none
}

.carousel-control-prev.hh-prev:hover,
.carousel-control-next.hh-next:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.carousel-control-prev.hh-prev {
  left: 24px;
}

.carousel-control-next.hh-next {
  right: 24px;
}

/* ====== RESPONSIVE TWEAKS ====== */

@media (max-width: 900px) {
  .clemo-main-home-apple-left {
    max-width: 100%;
    width: min(100%, 760px);
  }


  .clemo-main-home.clemo-main-home-apple {
    top: 50%;
    bottom: auto;
    padding: 0 24px;
  }

  .clemo-main-home-apple-row {
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }

  .clemo-main-home-apple-left h1,
  .clemo-main-home-apple-left .clemo-subtitle {
    text-align: center;
  }

  .clemo-main-home-apple-left .clemo-separator {
    margin-left: auto;
    margin-right: auto;
  }

  .clemo-main-home-apple-right {
    justify-content: center;
    width: 100%;
  }

  .clemo-main-home-apple-right .clemo-home-btn {
    justify-content: center;
  }

  .mouse-scroll.apple-mouse-scroll {
    bottom: 64px;
  }
}

@media (max-width: 600px) {
  .clemo-slider-container {
    height: 85svh !important;
    min-height: 85vh;
  }

  .clemo-main-home.clemo-main-home-apple {
    top: 38%;
    bottom: auto;
    padding: 0 18px;
  }

  .clemo-main-home-apple-row {
    gap: 14px;
  }

  .clemo-main-home-apple-left h1 {
    font-size: clamp(1.45rem, 6.1vw, 1.95rem);
  }

  .clemo-main-home-apple-left .clemo-subtitle {
    line-height: 1.4;
     font-size: clamp(1.15rem, 3.1vw, 1.65rem) !important;
    font-weight: 400 !important;
  }

  .clemo-home-btn .clemo-btn,
  .clemo-home-btn .clemo-btn-outline {
    padding: 7px 14px;
    font-size: 0.78rem;
  }

  .mouse-scroll.apple-mouse-scroll {
    bottom: -100px;
  }
}
