/* Fix for video placement */
.hero-home__bkg .media {
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-home__bkg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1; /* Ensure video is visible */
  pointer-events: none; /* Allow clicking through the video */
  /* Apply the same mask as defined in the CSS to the video directly */
  -webkit-mask-image: url("../images/mask-mobile.svg");
  mask-image: url("../images/mask-mobile.svg");
  -webkit-mask-position: center top;
  mask-position: center top;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

@media (min-width: 900px) {
  .hero-home__bkg video {
    -webkit-mask-image: url("../images/mask.svg");
    mask-image: url("../images/mask.svg");
    -webkit-mask-position: 2.8125rem top;
    mask-position: 2.8125rem top;
  }
}

/* Make controls clickable */
.hero-home__controls {
  z-index: 2;
  position: absolute;
  bottom: 20px;
  right: 20px;
  pointer-events: auto;
}

/* Ensure proper masking */
.hero-home__bkg {
  overflow: hidden;
}

/* Media Basic Actions Centering */
.media-basic__actions {
  text-align: center;
  width: 100%;
}

.media-basic__actions .l-component-wrapper-sm {
  display: flex;
  justify-content: center;
}

.media-basic__actions .button {
  margin: 0 auto;
}
/* Lity Customizations */
.lity {
  background: rgba(13, 43, 34, 0.9);
}

.lity-container {
  max-width: 1200px;
}

.lity-iframe-container iframe {
  border-radius: 24px;
}

.lity-close {
  top: -45px;
  right: -45px;
}

@media (min-width: 900px) {
  .text-feature__cards-container {
    flex-direction: row;
    justify-content: center;
    gap: var(--spacing-6);
  }

  .text-feature__card {
    flex: 1;
    max-width: calc(var(--text-feature-card-max-inline-size) / 2);
  }
}

/* Header Navigation Styles */
.header__wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.header__nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  padding: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  flex-direction: column;
  gap: 1rem;
  z-index: 100;
}

.header__nav.is-active {
  display: flex;
}

.header__nav-link {
  color: #72246c;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
  padding: 0.5rem 1rem;
  display: block;
  width: 100%;
  text-align: center;
}

.header__nav-link:hover {
  color: #641258;
  background: rgba(114, 36, 108, 0.05);
}

.header__menu-toggle {
  display: block;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: #72246c;
}

.header__menu-toggle svg {
  width: 24px;
  height: 24px;
}

@media (min-width: 768px) {
  .header__nav {
    position: static;
    display: flex;
    flex-direction: row;
    background: none;
    padding: 0;
    box-shadow: none;
    gap: 2rem;
  }

  .header__nav-link {
    width: auto;
    padding: 0;
  }

  .header__nav-link:hover {
    background: none;
  }

  .header__menu-toggle {
    display: none;
  }
}

/* Hero Badge Styles */
.hero-home__badge {
  display: inline-block;
  background-color: #6ca07a;
  color: white;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 600;
  font-variation-settings: "slnt" 0, "wdth" 100, "wght" 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeSlideDown 0.8s ease-out forwards;
}

.hero-home__content {
  position: relative;
  z-index: 2;
}

.hero-home__content h1 {
  opacity: 0;
  animation: fadeSlideDown 0.8s ease-out 0.2s forwards;
}
.hero-home__content h2 {
  opacity: 0;
  animation: fadeSlideDown 0.8s ease-out 0.3s forwards;
}

.hero-home__description {
  opacity: 0;
  animation: fadeSlideDown 0.8s ease-out 0.4s forwards;
}

/* Add a subtle hover effect to the content */
.hero-home__content:hover h1 {
  transform: translateY(-2px);
  transition: transform 0.3s ease;
}

.hero-home__content:hover .hero-home__description {
  transform: translateY(-2px);
  transition: transform 0.3s ease;
}

/* Page-wide Animation Styles */
.layout-container {
  opacity: 0;
  animation: fadeIn 0.5s ease-out forwards;
}

.header {
  opacity: 0;
  transform: translateY(-10px);
  animation: fadeSlideDown 0.8s ease-out forwards;
}

.hero-home {
  opacity: 0;
  animation: fadeSlideDown 1s ease-out 0.2s forwards;
  transform-origin: center;
}

.hero-home__container {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  opacity: 1;
}

/* Media Basic & Text Feature Animations */
.media-basic,
.text-feature {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeSlideDown 0.8s ease-out forwards;
}

.media-basic {
  animation-delay: 0.6s;
}

.text-feature {
  animation-delay: 0.8s;
}

/* Card Animations */
.text-feature__card {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideDown 0.8s ease-out forwards;
}

.text-feature__card--video {
  animation-delay: 1s;
}

.text-feature__card--brochure {
  animation-delay: 1.2s;
}

/* Footer Animation */
.footer {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideDown 0.8s ease-out 1.4s forwards;
}

/* Animation Keyframes */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeScale {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroReveal {
  from {
    opacity: 0;
    transform: scale(0.99);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes heroBackgroundScale {
  from {
    transform: scale(1.05);
  }
  to {
    transform: scale(1);
  }
}

/* Reduce Motion */
@media (prefers-reduced-motion: reduce) {
  .layout-container,
  .header,
  .hero-home,
  .hero-home__container,
  .hero-home__bkg,
  .hero-home__badge,
  .hero-home__content h1,
  .hero-home__description,
  .media-basic,
  .text-feature,
  .text-feature__card,
  .footer {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
