/*
 * Homepage treatment adapted from Start Bootstrap's Coming Soon theme.
 * Copyright 2013-2023 Start Bootstrap LLC. Licensed under MIT.
 */

.coming-soon-home {
  position: relative;
  min-height: calc(100svh - 88px);
  display: flex;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(rgba(22, 85, 143, 0.38), rgba(22, 85, 143, 0.38)),
    url("/public/img/homepage-background-mobile.jpg") center / cover no-repeat;
}

.coming-soon-home::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: rgba(22, 85, 143, 0.28);
}

.coming-soon-background-video {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.coming-soon-panel {
  position: relative;
  width: min(75vw, 940px);
  min-height: inherit;
  display: flex;
  align-items: center;
}

.coming-soon-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: skewX(-9deg);
  transform-origin: top right;
  background: rgba(20, 29, 39, 0.9);
}

.coming-soon-content {
  width: min(680px, calc(100% - 64px));
  margin-right: auto;
  margin-left: max(32px, calc((100vw - var(--max-width)) / 2));
  padding: clamp(4rem, 9vw, 7rem) clamp(2rem, 8vw, 8rem) clamp(4rem, 9vw, 7rem) 0;
  color: var(--color-white);
}

.coming-soon-content h1 {
  max-width: 660px;
  margin: 0;
  color: var(--color-white);
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-style: italic;
  line-height: 1.02;
  text-wrap: balance;
}

.coming-soon-content h1::after {
  content: "";
  width: 74px;
  height: 6px;
  margin-top: 1.5rem;
  display: block;
  border-radius: 999px;
  background: var(--color-accent);
}

.coming-soon-body {
  max-width: 620px;
  margin-top: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.coming-soon-body > :last-child {
  margin-bottom: 0;
}

@media (min-width: 1200px) {
  .coming-soon-panel {
    width: min(65vw, 980px);
  }
}

@media (max-width: 940px) {
  .coming-soon-home {
    min-height: calc(100svh - 78px);
  }

  .coming-soon-panel {
    width: 100%;
  }

  .coming-soon-panel::before {
    transform: none;
    background: rgba(20, 29, 39, 0.82);
  }

  .coming-soon-content {
    width: min(720px, calc(100% - 32px));
    margin: 0 auto;
    padding: clamp(4rem, 16vw, 7rem) 0;
  }
}

@media (pointer: coarse) and (hover: none) {
  .coming-soon-background-video {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .coming-soon-background-video {
    display: none;
  }
}
