

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Manrope', sans-serif;
  background: #f5f5f5;
  color: #333;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; }

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ---------- Hero Section ---------- */
.hero {
  width: 100%;
  padding-block: 3rem;
  /* Width controlled by .content-grid */
}

@media (min-width: 768px) {
  .hero {
    padding-block: 1rem;
  }
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 0.52fr;
  gap: 20px;
  min-height: 480px;
}

/* ============================================
   SLIDER CONTAINER
   ============================================ */
.hero__slider {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #0d0604;
  min-height: 480px;
}

/* ============================================
   INDIVIDUAL SLIDE  (absolute stacked for crossfade)
   ============================================ */
.slider__slide {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.slider__slide.active {
  z-index: 3;
  pointer-events: auto;
}

/* Outgoing slide stays visible behind */
.slider__slide.exiting {
  z-index: 2;
  pointer-events: none;
}

/* ============================================
   L1 — BACKGROUND IMAGE  (Ken Burns: scale + drift)
   ============================================ */
.slide__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.slide__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0s ease;
  will-change: opacity;
}

/* --- Active slide: fade in (no zoom) --- */
.slider__slide.active .slide__bg img {
  opacity: 1;
  transition: opacity 1.2s ease-in-out;
}

/* --- Exiting slide: crossfade out 1.2s --- */
.slider__slide.exiting .slide__bg img {
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

/* ============================================
   L2 — DARK GRADIENT OVERLAY  (scrim 55-70%)
   ============================================ */
.slide__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(135deg, rgb(32 96 94 / 81%) 0%, rgb(30 95 93 / 74%) 30%, rgb(19 85 85 / 0%) 60%, rgb(8 225 227 / 11%) 100%);
  /* background: linear-gradient(
    135deg,
    rgba(10, 5, 2, 0.70) 0%,
    rgba(10, 5, 2, 0.58) 30%,
    rgba(10, 5, 2, 0.30) 60%,
    rgba(10, 5, 2, 0.10) 100%
  ); */
  opacity: 0;
  transition: opacity 0s ease;
}

.slider__slide.active .slide__overlay {
  opacity: 1;
  transition: opacity 1.2s ease-in-out;
}

.slider__slide.exiting .slide__overlay {
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

/* ============================================
   L3 — PRODUCT IMAGE LAYER  (parallax)
   ============================================ */
.slide__product {
  position: absolute;
  right: 5%;
  bottom: 0;
  width: 38%;
  max-width: 320px;
  z-index: 3;
  pointer-events: none;
  /* Parallax: starts slightly offset, will animate via JS scroll */
  transform: translateY(20px);
  opacity: 0;
  transition: opacity 0s ease, transform 0s ease;
}

.slide__product img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 30px rgba(0, 0, 0, 0.45));
}

/* --- Active: product fades + rises in --- */
.slider__slide.active .slide__product {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease-in-out 0.3s,
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

/* --- Exiting: product fades out --- */
.slider__slide.exiting .slide__product {
  opacity: 0;
  transform: translateY(-15px);
  transition: opacity 0.4s ease-in,
              transform 0.4s ease-in;
}

/* ============================================
   L4 — ANIMATED TEXT LAYERS
   Staggered: eyebrow → headline → desc → CTA
   Enter: 0.6s fade+rise, 0.15s gap between layers
   Exit:  0.4s fade+slide-up, ease-in
   ============================================ */
.slide__content {
  position: relative;
  z-index: 4;
  padding: 50px 55px;
  max-width: 520px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* --- Default: hidden state --- */
.slide__eyebrow,
.slide__headline,
.slide__desc,
.slide__content .btn--cta {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.01s, transform 0.01s;  /* instant reset */
}

/* --- ENTER: staggered fade + rise (0.6s, 0.15s gap) --- */
.slider__slide.active .slide__eyebrow {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.4s,
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.4s;
}

.slider__slide.active .slide__headline {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.55s,
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.55s;
}

.slider__slide.active .slide__desc {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.70s,
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.70s;
}

.slider__slide.active .btn--cta {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.85s,
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.85s,
              background-color 0.3s ease,
              color 0.3s ease,
              border-color 0.3s ease,
              box-shadow 0.3s ease;
}

/* --- EXIT: 0.4s fade out + slide up, ease-in --- */
.slider__slide.exiting .slide__eyebrow {
  opacity: 0;
  transform: translateY(-15px);
  transition: opacity 0.4s ease-in,
              transform 0.4s ease-in;
}

.slider__slide.exiting .slide__headline {
  opacity: 0;
  transform: translateY(-15px);
  transition: opacity 0.4s ease-in 0.05s,
              transform 0.4s ease-in 0.05s;
}

.slider__slide.exiting .slide__desc {
  opacity: 0;
  transform: translateY(-15px);
  transition: opacity 0.4s ease-in 0.1s,
              transform 0.4s ease-in 0.1s;
}

.slider__slide.exiting .btn--cta {
  opacity: 0;
  transform: translateY(-15px);
  transition: opacity 0.4s ease-in 0.15s,
              transform 0.4s ease-in 0.15s;
}

/* --- Typography --- */
.slide__eyebrow {
  display: inline-block;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 10px;
}

.slide__headline {
  font-family: 'Manrope', sans-serif;
  font-size: 52px;
  font-weight: 900;
  color: #fff;
  line-height: 1.55;
  margin-bottom: 16px;
}

.slide__headline-sub {
  display: block;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.65;
}

.slide__desc {
  font-family: 'Manrope', sans-serif;
  font-size: 17px;
  font-weight: 400;
  color: #fff;
  line-height: 1.7;
  margin-bottom: 28px;
}

/* ============================================
   CTA BUTTON  (teal hover fill)
   ============================================ */
.btn {
  display: inline-block;
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 10px 24px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn--cta {
  background: var(--teal-grad); /* linear-gradient(135deg, #0cb5b4 0%, #0cb5b4 100%) */
  color: #fff;
  border: 2px solid transparent;
  border-radius: 2px;
  box-shadow: 0 3px 12px rgba(12, 181, 180, 0.3);
  width: fit-content;
  align-self: flex-start;
}

/* Hover: white bg, teal text */
.btn--cta:hover {
  background: #fff;
  border-color: #0cb5b4;
  color: #0cb5b4;
  box-shadow: 0 6px 24px rgba(12, 181, 180, 0.4);
  transform: translateY(-2px) !important;
}

.btn--outline-dark {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 2px;
}

.btn--outline-dark:hover {
  background: #fff;
  color: #0a9998;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

/* ============================================
   L5 — NAVIGATION CHROME
   ============================================ */
.slider__nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px 24px 55px;
}

/* --- Bullet dots (progress bar style) --- */
.slider__dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

.slider__dot {
  width: 28px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease;
}

.slider__dot:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* Progress fill inside active dot */
.slider__dot::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: #fff;
  border-radius: 2px;
  transition: width 0s linear;
}

.slider__dot.active::after {
  width: 100%;
  transition: width 7s linear;   /* matches AUTOPLAY_MS */
}

/* --- Prev / Next arrows --- */
.slider__arrows {
  display: flex;
  gap: 6px;
}

.slider__arrow {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #fff;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.slider__arrow:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.08);
}

.slider__arrow svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============================================
   PROMO BANNERS (Right side)
   ============================================ */
.hero__banners {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-self: start;
}

.banner {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px 24px;
  flex: 1;
  min-height: 230px;
  cursor: pointer;
}

.banner--gold {
  background: linear-gradient(225deg, #6fdcd3 0% 0%, #1ba6a1 45%, #177e76d6 100%);
}

.banner--sky {
  background: linear-gradient(135deg, #6fdcd3 0% 0%, #1ba6a1 45%, #177e76d6 100%);
}

.banner__content {
  position: relative;
  z-index: 2;
  order: 2;
}

.banner__tag {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 6px;
}

.banner__title {
  font-family: 'Manrope', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1.15;
  margin-bottom: 6px;
}

.banner__title--sale { font-size: 22px; }

.banner__percent {
  font-size: 36px;
  font-weight: 900;
}

.banner__desc {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #333;
  margin-bottom: 16px;
  font-style: italic;
}

.banner .btn {
  padding: 10px 24px;
  font-size: 12px;
}

.banner__img {
  position: relative;
  z-index: 1;
  width: 60%;
  max-width: 220px;
  flex-shrink: 0;
  order: 1;
  margin-bottom: 20px;
}

.banner__img img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

/* Banner 2 (Big Sale) — image fills the card width, button sits below it */
#banner-sale {
  flex: 0 0 280px;
  height: 280px;
  padding: 10px 12px;
}

#banner-sale .banner__img {
  position: relative;
  z-index: 1;
  width: auto;
  max-width: none;
  flex: 1;
  min-height: 0;
  margin: 0px 0px 0px 0px;
  /* margin: -10px -12px 6px -12px; */
}

#banner-sale .banner__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
}

/* Banner 1 (Summer Deal) — image fills the card width, button sits below it */
#banner-summer {
  flex: 0 0 280px;
  height: 280px;
  padding: 10px 12px;
}

#banner-summer .banner__img {
  position: relative;
  z-index: 1;
  width: auto;
  max-width: none;
  flex: 1;
  min-height: 0;
  margin: 0px 0px 0px 0px;
}

#banner-summer .banner__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero__slider { min-height: 400px; }
  .hero__banners { flex-direction: row; }
  .banner { min-height: 200px; }
  .slide__headline { font-size: 42px; }
  .slide__headline-sub { font-size: 27px; }
  .slide__product { width: 30%; }
}

@media (max-width: 640px) {
  .hero__grid { gap: 14px; }
  .hero__slider { min-height: 340px; }
  .slide__content { padding: 32px 28px; }
  .slide__eyebrow { font-size: 11px; }
  .slide__headline { font-size: 31px; }
  .slide__headline-sub { font-size: 21px; }
  .slide__desc { font-size: 13px; margin-bottom: 20px; }
  .slide__product { display: none; }  /* hide product layer on mobile */
  .slider__nav { padding: 0 16px 18px 28px; }
  .slider__arrows { display: none; }
  .hero__banners { flex-direction: column; }
  .banner { min-height: 180px; padding: 22px 18px; }
  .banner__title { font-size: 20px; }
  .banner__percent { font-size: 28px; }
}
