/* Hero section */
.zy-hero {
  background-color: var(--bg-primary);
  overflow: hidden;
}

.zy-hero .hero-img {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 900px;
  object-fit: contain;
}

.zy-hero h1 {
  font-family: "GeneralSans";
  color: var(--zy-green-accent);
  font-size: 9vw;
  line-height: 1em;
}

.zy-hero p {
  font-family: "HaasGrotLight";
  color: var(--text-white);
  font-size: 4.5vw;
  letter-spacing: var(--letter-spacing-lg);
}

.zy-hero .hero-btn {
  background: var(--zy-green-accent);
  border-radius: 5px;
  padding: 7px 15px;
  color: var(--text-primary);
  font-family: "HaasGrotBold";
  font-size: 16px;
  letter-spacing: var(--letter-spacing);
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease, transform 0.3s ease, color 0.3s ease;
  z-index: 1;
  box-sizing: border-box;
}

.zy-hero .hero-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
  z-index: -1;
}

.zy-hero .hero-btn:hover::before {
  transform: translateX(0);
}

.zy-hero .hero-btn:hover {
  background: var(--zy-green-dark);
  color: var(--text-primary);
}

@media (min-width: 768px) {
  .zy-hero h1 {
    font-size: 50px;
  }

  .zy-hero h1 {
    font-size: 18px;
  }

  .zy-hero .hero-btn {
    font-size: 16px;
    align-self: flex-start;
  }
}

@media (min-width: 1200px) {
  .zy-hero .hero-img {
    max-width: 650px;
    max-height: 550px;
    margin-top: 10%;
  }

  .zy-hero h1 {
    font-size: 74px;
  }

  .zy-hero p {
    font-size: 22px;
  }
}

@media only screen and (max-width: 768px) {
  .zy-hero .hero-img {
    max-height: 400px;
  }
}

@media (max-width: 767px) {
  .hero-btn {
    align-self: center !important;
    margin-left: auto;
    margin-right: auto;
  }

  .zy-hero h1 {
    margin-top: 15%;
  }

  .zy-hero .hero-img {
    margin-top: 15%;
  }
}

.zy-features {
  h2 {
    font-family: "GeneralSans";
    color: var(--text-primary);
    font-size: 50px;
  }

  h4 {
    font-family: "GeneralSans";
    color: var(--text-primary);
    font-size: 24px;
  }

  img {
    width: 60px;
    height: auto;
  }

  p {
    font-family: "HaasGrotLight";
    color: var(--text-primary);
    font-size: 18px;
  }
}

/* Image sections */
.zy-info {
  h2 {
    font-family: "GeneralSans";
    color: var(--text-primary);
    font-size: 50px;
  }

  p {
    font-family: "HaasGrotLight";
    color: var(--text-primary);
    font-size: 22px;
  }
}

@media only screen and (min-width: 786px) {
  .image-left{
    padding-right: 80px;
  }
}

/* Grid */
.zy-grid {
  h2 {
    font-family: "GeneralSans";
    color: var(--text-grey) !important;
    font-size: 50px;
  }

  .text-muted {
    font-family: "HaasGrotLight";
    letter-spacing: var(--letter-spacing);
    color: var(--text-grey) !important;
    font-size: 22px;
  }

  .corner-image {
    bottom: -120px;
    right: 0;
    width: 700px;
    height: auto;
    z-index: -1;
  }

  .feature-grid {
    position: relative;

    h5 {
      font-family: "GeneralSans";
      color: var(--text-grey) !important;
      font-size: 24px;
    }

    p {
      font-family: "HaasGrotLight";
      letter-spacing: var(--letter-spacing);
      color: var(--text-grey) !important;
      font-size: 18px;
    }

    .image-wrapper {
      width: 100%;
      height: 345px;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    img {
      max-width: 100%;
      max-height: 100%;
    }

    .static-image{
      height: 100% !important;
    }

    .bg-green {
      /*background-color: var(--zy-green-accent);*/
      background-color: #4BC601;
      display: flex;
      justify-content: center;
      align-items: center;
    }
  }
}

.feature-item{
  cursor: pointer;
}

@media (max-width: 576px) {
  .feature-grid .image-wrapper {
    height: 150px;
  }
}

.modal-dialog-centered {
  display: flex;
  justify-content: center;
  align-items: center;
}

.poster-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: auto;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: opacity 0.5s ease;
  opacity: 1;
  z-index: 2;
}

.hover-video {
  object-fit: contain;
  pointer-events: none;
  z-index: 1;
}