
.slider {
  position: relative;
  width: 88%;
  height: 75vh;
  border: 0.5px solid var(--hero-border-color);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.slider__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5rem 2.5rem 2rem;
  flex-shrink: 0;
}


.slider__label {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--text-secondary-color, rgba(26, 26, 22, 0.4));
  text-transform: uppercase;
  font-family: var(--font-body);
  display: none;
}

.slider__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0 32px 40px;
  min-height: 0;
  position: relative;
}

.slider__left {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  position: relative;
  z-index: 4;
}

.slider__title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  color: var(--secondary-color);
  line-height: 1.1;
  letter-spacing: -0.03em;
  overflow: hidden;
  position: relative;
  margin-top: auto;
  margin-bottom: auto;
}

.slider__title span {
  display: inline-block;
  will-change: transform;
}

.slider__footer {
  flex-shrink: 0;
  margin-top: 32px;
}

.slider__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--hero-border-color);
  border-radius: 100px;
  font-family: 'Outfit', sans-serif;
  font-size: .9rem;
  letter-spacing: 0.06em;
  color: var(--secondary-color);
  text-decoration: none;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}

.slider__cta:hover {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  color: var(--bg-color);
}

.slider__subtitle {
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: var(--text-secondary-color, rgba(0, 0, 0, 0.55));
  line-height: 1.6;
  font-family: var(--font-body);
  max-width: 38ch;
  margin: 0;
}

.slider__description {
  font-size: 10px;
  letter-spacing: 1.2px;
  color: rgba(26, 26, 22, 0.5);
  line-height: 1.6;
  text-transform: uppercase;
}

.slider__location {
  font-size: 10px;
  letter-spacing: 1.2px;
  color: rgba(26, 26, 22, 0.5);
  line-height: 1.6;
  text-transform: uppercase;
  margin-top: 12px;
}


.slider__right {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.slider__images {
  width: 100%;
  height: 100%;
  position: relative;
}

.slider__slide {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72%;
  aspect-ratio: 1.4;
  overflow: hidden;
  will-change: transform, filter, opacity;
  contain: layout style;
}

.slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9);
}

@media screen and (min-width: 768px) {
  .slider__header {
    padding: 5rem 2.5rem 2rem;
  }

  .slider__label {
    display: flex;
  }

  .slider__body {
    padding: 0 56px 56px;
  }

  .slider__footer {
    margin-top: 48px;
  }

  .slider__slide {
    width: 76%;
  }

}

@media screen and (min-width: 1024px) {
  .slider__body {
    flex-direction: row;
  }

  .slider__left {
    width: 55%;
    flex-shrink: 0;
    z-index: auto;
  }

  .slider__right {
    position: static;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    opacity: 1;
    pointer-events: auto;
  }

  .slider__slide {
    width: 82%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .slider__slide,
  .slider__title span {
    will-change: auto;
  }
}
