/* =========================================================
   CITY WEST SKIPS - HOME HERO
   File: /assets/css/custom-home/hero.css
========================================================= */

/* =========================================================
   BASE SECTION
========================================================= */
.cws-home-hero {
  position: relative;
  width: 100%;
  min-height: 650px;
  height: 650px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: cover;
}

.cws-home-hero__inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 40px 32px;
  position: relative;
  z-index: 2;
  box-sizing: border-box;
}

.cws-home-hero__grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 56px;
  min-height: 570px;
  width: 100%;
  box-sizing: border-box;
}

.cws-home-hero__left,
.cws-home-hero__right {
  flex: 1 1 0;
  min-width: 0;
  max-width: calc(50% - 28px);
  box-sizing: border-box;
}

.cws-home-hero__right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  overflow: hidden;
}

.cws-home-hero__image-wrap {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.cws-home-hero__image {
  display: block;
  width: 100%;
  max-width: 100%;
}

/* =========================================================
   LEFT CONTENT
========================================================= */
.cws-home-hero__left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.cws-home-hero__title {
  margin: 0;
  color: #302826;
  font-family: "DM Sans", sans-serif;
  font-size: 90px;
  font-style: normal;
  font-weight: 700;
  line-height: 100px;
  text-transform: uppercase;
  text-align: left;
  letter-spacing: 0;
  max-width: 680px;
}

.cws-home-hero__subtitle {
  margin-top: 22px;
  color: #302826;
  font-family: "DM Sans", sans-serif;
  font-size: 24px;
  font-style: normal;
  font-weight: 700;
  line-height: 34px;
  text-align: left;
  max-width: 560px;
}

.cws-home-hero__buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 28px;
}

/* =========================================================
   BUTTONS
========================================================= */
.cws-home-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition:
    background-color 0.35s ease,
    color 0.35s ease,
    border-color 0.35s ease,
    transform 0.35s ease,
    box-shadow 0.35s ease;
  border-top-right-radius: 20px;
  border-bottom-left-radius: 20px;
  border-top-left-radius: 0;
  border-bottom-right-radius: 0;
  padding: 20px 60px;
  min-height: 66px;
  box-sizing: border-box;
  cursor: pointer;
}

.cws-home-hero__btn span {
  font-family: "Overpass", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 26px;
  text-transform: uppercase;
  transition: color 0.35s ease;
}

.cws-home-hero__btn--primary {
  background: #DE5945;
  border: 1px solid #DE5945;
}

.cws-home-hero__btn--primary span {
  color: #FFFFFF;
}

.cws-home-hero__btn--primary:hover {
  background: transparent;
  border-color: #DE5945;
  transform: translateY(-2px);
}

.cws-home-hero__btn--primary:hover span {
  color: #DE5945;
}

.cws-home-hero__btn--secondary {
  background: transparent;
  border: 1px solid #DE5945;
}

.cws-home-hero__btn--secondary span {
  color: #DE5945;
}

.cws-home-hero__btn--secondary:hover {
  background: #DE5945;
  border-color: #DE5945;
  transform: translateY(-2px);
}

.cws-home-hero__btn--secondary:hover span {
  color: #FFFFFF;
}

/* =========================================================
   RIGHT IMAGE
========================================================= */
.cws-home-hero__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.cws-home-hero__image-wrap {
  width: 100%;
  max-width: 610px;
}

.cws-home-hero__image {
  display: block;
  width: 100%;
  height: 430px;
  object-fit: cover;
  border-top-left-radius: 120px;
  border-top-right-radius: 1px;
  border-bottom-right-radius: 120px;
  border-bottom-left-radius: 1px;
  box-shadow: 0 18px 45px rgb(254 248 242);
}

/* =========================================================
   ENTRANCE ANIMATION - INITIAL STATE
========================================================= */
.cws-hero-anim-item {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.cws-home-hero__right.cws-hero-anim-item {
  transform: translateY(30px) scale(0.96);
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.cws-hero-anim-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cws-home-hero__right.cws-hero-anim-item.is-visible {
  transform: translateY(0) scale(1);
}

/* =========================================================
   LARGE DESKTOP
========================================================= */
@media (min-width: 1441px) {
  .cws-home-hero__inner {
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* =========================================================
   DESKTOP
========================================================= */
@media (min-width: 1200px) and (max-width: 1440px) {
  .cws-home-hero {
    min-height: 650px;
    height: 650px;
  }

  .cws-home-hero__inner {
    padding-left: 40px;
    padding-right: 40px;
  }

  .cws-home-hero__grid {
    gap: 42px;
  }

  .cws-home-hero__title {
    font-size: 78px;
    line-height: 88px;
    max-width: 620px;
  }

  .cws-home-hero__subtitle {
    font-size: 22px;
    line-height: 32px;
    max-width: 520px;
  }

  .cws-home-hero__image {
    height: 410px;
  }
}

/* =========================================================
   LAPTOP / SMALL DESKTOP
========================================================= */
@media (min-width: 992px) and (max-width: 1199px) {
  .cws-home-hero {
    min-height: 500px;
    height: auto;
    padding: 30px 0;
  }

  .cws-home-hero__inner {
    padding-left: 32px;
    padding-right: 32px;
  }

  .cws-home-hero__grid {
    min-height: auto;
    gap: 36px;
  }

  .cws-home-hero__title {
    font-size: 62px;
    line-height: 72px;
    max-width: 520px;
  }

  .cws-home-hero__subtitle {
    margin-top: 18px;
    font-size: 21px;
    line-height: 31px;
    max-width: 470px;
  }

  .cws-home-hero__buttons {
    gap: 18px;
    margin-top: 24px;
  }

  .cws-home-hero__btn {
    padding: 18px 38px;
    min-height: 60px;
  }

  .cws-home-hero__image-wrap {
    max-width: 100%;
  }

  .cws-home-hero__image {
    height: 360px;
    border-top-left-radius: 90px;
    border-bottom-right-radius: 90px;
  }
}

/* =========================================================
   TABLET
========================================================= */
@media (min-width: 768px) and (max-width: 991px) {
  .cws-home-hero {
    min-height: unset;
    height: auto;
    padding: 20px 0 30px;
    background-position: bottom center;
  }

  .cws-home-hero__inner {
    padding-left: 28px;
    padding-right: 28px;
  }

  .cws-home-hero__grid {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    min-height: auto;
    gap: 42px;
  }

  .cws-home-hero__left,
  .cws-home-hero__right {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
  }

  .cws-home-hero__title {
    font-size: 50px;
    line-height: 60px;
    max-width: 100%;
  }

  .cws-home-hero__subtitle {
    margin-top: 18px;
    font-size: 22px;
    line-height: 32px;
    max-width: 100%;
  }

  .cws-home-hero__buttons {
    gap: 16px;
    margin-top: 24px;
  }

  .cws-home-hero__btn {
    padding: 18px 36px;
    min-height: 58px;
  }

  .cws-home-hero__right {
    justify-content: flex-start;
  }

  .cws-home-hero__image-wrap {
    max-width: 100%;
  }

  .cws-home-hero__image {
    width: 100%;
    height: 400px;
    border-top-left-radius: 90px;
    border-bottom-right-radius: 90px;
  }
}

/* =========================================================
   MOBILE LARGE
========================================================= */
@media (min-width: 576px) and (max-width: 767px) {
  .cws-home-hero {
    min-height: unset;
    height: auto;
    padding: 70px 0 60px;
    background-position: bottom center;
  }

  .cws-home-hero__inner {
    padding-left: 20px;
    padding-right: 20px;
  }

  .cws-home-hero__grid {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    min-height: auto;
    gap: 34px;
  }

  .cws-home-hero__left,
  .cws-home-hero__right {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
  }

  .cws-home-hero__title {
    font-size: 42px;
    line-height: 48px;
    max-width: 100%;
  }

  .cws-home-hero__subtitle {
    margin-top: 16px;
    font-size: 20px;
    line-height: 30px;
    max-width: 100%;
  }

  .cws-home-hero__buttons {
    width: 100%;
    gap: 14px;
    margin-top: 22px;
  }

  .cws-home-hero__btn {
    padding: 16px 28px;
    min-height: 56px;
  }

  .cws-home-hero__right {
    justify-content: flex-start;
  }

  .cws-home-hero__image {
    width: 100%;
    height: 340px;
    border-top-left-radius: 70px;
    border-bottom-right-radius: 70px;
  }
}

/* =========================================================
   MOBILE
========================================================= */
@media (max-width: 575px) {
  .cws-home-hero {
    min-height: unset;
    height: auto;
    padding: 0;
    background-position: bottom center;
  }

  .cws-home-hero__inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .cws-home-hero__grid {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    min-height: auto;
    gap: 28px;
  }

  .cws-home-hero__left,
  .cws-home-hero__right {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
  }

  .cws-home-hero__title {
    font-size: 34px;
    line-height: 40px;
    max-width: 100%;
  }

  .cws-home-hero__subtitle {
    margin-top: 14px;
    font-size: 18px;
    line-height: 28px;
    max-width: 100%;
  }

  .cws-home-hero__buttons {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 20px;
  }

  .cws-home-hero__btn {
    width: 100%;
    padding: 15px 22px;
    min-height: 54px;
  }

  .cws-home-hero__btn span {
    font-size: 15px;
    line-height: 24px;
    text-align: center;
  }

  .cws-home-hero__right {
    justify-content: flex-start;
  }

  .cws-home-hero__image {
    width: 100%;
    height: 260px;
    border-top-left-radius: 50px;
    border-bottom-right-radius: 50px;
  }
}

/* =========================================================
   REDUCED MOTION ACCESSIBILITY
========================================================= */
@media (prefers-reduced-motion: reduce) {
  .cws-hero-anim-item,
  .cws-home-hero__right.cws-hero-anim-item,
  .cws-home-hero__btn,
  .cws-home-hero__btn span {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }

  .cws-hero-anim-item {
    opacity: 1 !important;
  }
}