/* HOME SLIDER */

.home-slider {
  position: relative;
  min-height: 650px;
  width: calc(100% - 3rem);
  max-width: 100rem;
  margin: -1rem auto 0;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  background: var(--color-surface);
}

.home-slider__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  padding: 0;
  background-color: var(--color-header);
  background-position: center;
  background-size: cover;
  color: var(--color-text);
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transition: opacity 600ms ease;
}

.home-slider__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.home-slider__slide-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 45%;
  min-height: 100%;
  padding: 2rem 4rem;
}

.home-slider__title {
  margin: 0 0 1rem;
  color: var(--color-surface);
  font-size: clamp(2.25rem, 4vw, 4rem);
  font-weight: 700;
  line-height: 1;
}

.home-slider p {
  margin: 0.25rem 0 1.5rem;
  color: var(--color-surface);
  font-size: 1.5rem;
  line-height: 1.7;
}

.home-slider__text {
  color: var(--color-text);
  line-height: 1.25 !important;
}

/* SLIDER CONTROLS */

.home-slider__control {
  position: absolute;
  bottom: 2.25%;
  margin-right: 1.25rem;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--color-surface);
  border-radius: 9999px;
  background: var(--color-surface);
  font: inherit;
  color: var(--color-accent) !important;
  cursor: pointer;
  transform: translateY(-50%);
}

.home-slider__control svg {
  width: 1.2rem;
  height: 1.2rem;
  stroke: var(--color-accent) !important;
}

.home-slider__control:hover,
.home-slider__control:focus-visible {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: #fff !important;
  opacity: 1;
}

.home-slider__control:hover svg,
.home-slider__control:focus-visible svg {
  stroke: #fff !important;
}

.slider-prev {
  left: 0.75rem;
}

.home-slider__control--next {
  right: 0.75rem;
}

.home-slider__button {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  width: auto;
  max-width: 100%;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background-color: var(--color-surface);
  color: var(--color-primary);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 1rem !important;
  font-weight: 700;
  transition:
    border-color 180ms ease,
    color 180ms ease,
    background-color 180ms ease;
}

.home-slider__button:hover {
  border-color: var(--color-accent);
  background-color: var(--color-accent);
  color: var(--color-surface);
}

@media screen and (min-width: 29.99em) {
  .home-slider {
    width: calc(100% - 4rem);
  }
}

@media screen and (max-width: 74.99em) {
  .home-slider__slide-content {
    flex-basis: 50%;
    width: 50%;
    min-width: 21rem;
    padding: 2.5rem;
  }
}

@media screen and (max-width: 59.99em) {
  .home-slider {
    min-height: 230px;
  }

  .home-slider__slide {
    align-items: flex-end;
    justify-content: stretch;
    background-position: 22.5% 50%;
    background-image: none !important;
    background-color: var(--color-primary);
  }

  .home-slider__slide-content {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    min-height: auto;
    padding: 1.5rem;
    border-left: 0;
    box-shadow: none;
    background-color: var(--color-primary);
  }

  .home-slider__title {
    font-size: 2rem;
    margin-bottom:.25rem;
  }

  .home-slider__text {
    font-size: 14px !important;
  }

  .home-slider p {
    margin-bottom: 1.25rem;
  }

  .home-slider__control {
    width: 2.5rem;
    height: 2.5rem;
  }

  .home-slider__control svg {
    width: 1.5rem;
    height: 1.5rem;
  }

  .slider-prev {
    left: 0.5rem;
  }

  .home-slider__control--next {
    right: 0.5rem;
  }
}

@media screen and (max-width: 29.99em) {
  .home-slider {
    width: calc(100% - .25rem);
    border-radius: var(--radius-sm);
  }

  .home-slider__slide-content {
    padding-right: 1.25rem;
    padding-left: 1.25rem;
  }
}