/* ================= HERO ================= */

#hero {
  --hero-mobile-media-height: 400px;
  --hero-mobile-card-overlap: 189px;
  --hero-tablet-media-height: 390px;
  --hero-tablet-card-overlap: 110px;
  --hero-desktop-padding-top: clamp(22px, 2.4vw, 42px);
  --hero-desktop-padding-bottom: clamp(48px, 5vw, 80px);
  --hero-desktop-card-shift: 0px;
  --hero-1024-card-shift: 0px;

  position: relative;
  background-color: #E7ECED;
  min-height: 0;
  padding-bottom: 48px;
  overflow: hidden;
}

.hero__container {
  position: relative;
  z-index: 2;

  max-width: var(--container-max-width);
  margin: 0 auto;
  padding-left: var(--container-padding-x);
  padding-right: var(--container-padding-x);

  min-height: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;

  padding-top: calc(var(--hero-mobile-media-height) - var(--hero-mobile-card-overlap));
}


.hero__content {
  
  position: relative;
  z-index: 3;

  width: 100%;
  max-width: 620px;

  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  
  
}


.hero__card {
  background-color: #B6D0E6;
  padding: 38px 32px 36px;
  max-width: 570px;
  clip-path: polygon(0 0, calc(100% - 56px) 0, 100% 56px, 100% 100%, 0 100%);
  position: relative;
  z-index: 2;

  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  color: #0B0B0B;
  font-size: 35px;
  line-height: 1.04;
  margin: 0;
  letter-spacing: -0.02em;
}

.hero__title em {
  font-style: italic;
  font-weight: 400;
}

.hero__subtitle {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  color: #173144;
  font-size: 17px;
  line-height: 1.6;
  margin: 22px 0 0 0;
  max-width: 40ch;
}

.hero__cta-text {
  display: block;
  width: fit-content;
  margin-top: 32px;
  margin-left: auto;
  margin-right: auto;
  padding: 14px 28px;
  background-color: #274060;
  color: #FFFFFF;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
}

.hero__media {
  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  height: var(--hero-mobile-media-height);
}

.hero__image {
  width: 100%;
  height: 100%;
  background-image: url("../img/hero/hero-1600x1200.jpg");
  background-size: cover;
  background-position: center;
}

@media (min-width: 768px) {
  #hero {
    min-height: 600px;
    padding-bottom: var(--hero-desktop-padding-bottom);
  }

  .hero__container {
    min-height: 100%;
    padding-top: var(--hero-desktop-padding-top);
    justify-content: flex-start;
  }

  .hero__content {
    width: auto;
    justify-content: flex-start;
  }

  .hero__card {
    padding: 56px;
    margin-left: 0;
    margin-right: -12%;
    margin-bottom: 0;
    transform: translateY(var(--hero-desktop-card-shift));
  }

  .hero__media {
    left: auto;
    right: 0;
    width: 56%;
    height: 66%;
  }

  .hero__cta-text {
    margin-left: 0;
    margin-right: 0;
  }

  .hero__title {
    font-size: 54px;
  }

  .hero__subtitle {
    font-size: 20px;
  }

  .hero__cta-text {
    font-size: 14px;
  }
}

@media (min-width: 768px) and (max-width: 900px) {
  #hero {
    min-height: 680px;
    padding-bottom: 48px;
  }

  .hero__container {
    min-height: 680px;
    padding-top: calc(var(--hero-tablet-media-height) - var(--hero-tablet-card-overlap));
    justify-content: center;
  }

  .hero__content {
    width: 100%;
    max-width: 520px;
    justify-content: center;
  }

  .hero__card {
    max-width: 520px;
    padding: 38px 40px 36px;
    margin-left: auto;
    margin-right: auto;
    transform: none;
  }

  .hero__title {
    font-size: 44px;
  }

  .hero__subtitle {
    font-size: 17px;
    line-height: 1.55;
  }

  .hero__media {
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: var(--hero-tablet-media-height);
  }

  .hero__image {
    background-position: center top;
  }

  .hero__cta-text {
    margin-left: 0;
    margin-right: 0;
  }
}

@media (width: 1024px) {
  #hero {
    --hero-desktop-card-shift: var(--hero-1024-card-shift);
  }
}
