/* 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("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%221600%22%20height%3D%22885%22%20viewBox%3D%220%200%201600%20885%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%20%3Cpath%20d%3D%22M-815.869%20884.822V0.822266H570.781C579.441%200.822266%20587.491%205.28227%20592.081%2012.6323L1124.81%20865.252C1130.13%20873.772%201124.01%20884.822%201113.96%20884.822H-815.869Z%22%20fill%3D%22%2372246C%22%2F%3E%20%3Cpath%20d%3D%22M2415.87%200.822266H1028.7C1020.01%200.822266%201011.93%205.30227%201007.33%2012.6723L818.942%20314.202C813.842%20322.372%20813.842%20332.732%20818.942%20340.902L1141.33%20858.452C1151.55%20874.852%201169.5%20884.822%201188.82%20884.822H2415.86V0.822266H2415.87ZM747.452%20226.492L784.722%20286.132C788.322%20292.042%20794.132%20295.062%20800.002%20295.212C805.872%20295.062%20811.682%20292.042%20815.282%20286.132L852.552%20226.492L800.002%20141.932L747.452%20226.492ZM789.252%20124.632L736.672%20209.242L613.342%2011.8423C610.342%207.04227%20613.792%200.822266%20619.442%200.822266H706.832C710.242%200.832266%20713.402%202.59227%20715.202%205.49227L789.242%20124.632H789.252ZM986.662%2011.8423L863.332%20209.242L810.752%20124.632L884.792%205.49227C886.592%202.60227%20889.762%200.832266%20893.162%200.832266H980.552C986.212%200.822266%20989.662%207.04227%20986.662%2011.8423Z%22%20fill%3D%22%2372246C%22%2F%3E%20%3C%2Fsvg%3E%20");
  mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%221600%22%20height%3D%22885%22%20viewBox%3D%220%200%201600%20885%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%20%3Cpath%20d%3D%22M-815.869%20884.822V0.822266H570.781C579.441%200.822266%20587.491%205.28227%20592.081%2012.6323L1124.81%20865.252C1130.13%20873.772%201124.01%20884.822%201113.96%20884.822H-815.869Z%22%20fill%3D%22%2372246C%22%2F%3E%20%3Cpath%20d%3D%22M2415.87%200.822266H1028.7C1020.01%200.822266%201011.93%205.30227%201007.33%2012.6723L818.942%20314.202C813.842%20322.372%20813.842%20332.732%20818.942%20340.902L1141.33%20858.452C1151.55%20874.852%201169.5%20884.822%201188.82%20884.822H2415.86V0.822266H2415.87ZM747.452%20226.492L784.722%20286.132C788.322%20292.042%20794.132%20295.062%20800.002%20295.212C805.872%20295.062%20811.682%20292.042%20815.282%20286.132L852.552%20226.492L800.002%20141.932L747.452%20226.492ZM789.252%20124.632L736.672%20209.242L613.342%2011.8423C610.342%207.04227%20613.792%200.822266%20619.442%200.822266H706.832C710.242%200.832266%20713.402%202.59227%20715.202%205.49227L789.242%20124.632H789.252ZM986.662%2011.8423L863.332%20209.242L810.752%20124.632L884.792%205.49227C886.592%202.60227%20889.762%200.832266%20893.162%200.832266H980.552C986.212%200.822266%20989.662%207.04227%20986.662%2011.8423Z%22%20fill%3D%22%2372246C%22%2F%3E%20%3C%2Fsvg%3E%20");
  -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("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%22895%22%20height%3D%22630%22%20viewBox%3D%220%200%20895%20630%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%20%3Cpath%20d%3D%22M1674.87%200H387.168C379.101%200%20371.6%204.15875%20367.33%2011.0003L192.449%20290.908C187.715%20298.493%20187.715%20308.11%20192.449%20315.694L491.721%20796.132C501.209%20811.356%20517.871%20820.611%20535.806%20820.611H1674.86V0H1674.87Z%22%20fill%3D%22%2372246C%22%2F%3E%20%3Cpath%20d%3D%22M126.088%20209.488L160.685%20264.851C164.027%20270.337%20169.42%20273.141%20174.869%20273.28C180.318%20273.141%20185.712%20270.337%20189.054%20264.851L223.651%20209.488L174.869%20130.991L126.088%20209.488ZM164.89%20114.932L116.081%20193.475L1.59425%2010.2298C-1.19062%205.77398%202.01208%200%207.25693%200H88.3803C91.5458%200.00928293%2094.4792%201.64308%2096.1501%204.33513L164.881%20114.932H164.89ZM348.145%2010.2298L233.658%20193.475L184.849%20114.932L253.579%204.33513C255.25%201.65236%20258.193%200.00928293%20261.349%200.00928293H342.473C347.727%200%20350.929%205.77398%20348.145%2010.2298Z%22%20fill%3D%22%2372246C%22%2F%3E%20%3C%2Fsvg%3E%20");
    mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%22895%22%20height%3D%22630%22%20viewBox%3D%220%200%20895%20630%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%20%3Cpath%20d%3D%22M1674.87%200H387.168C379.101%200%20371.6%204.15875%20367.33%2011.0003L192.449%20290.908C187.715%20298.493%20187.715%20308.11%20192.449%20315.694L491.721%20796.132C501.209%20811.356%20517.871%20820.611%20535.806%20820.611H1674.86V0H1674.87Z%22%20fill%3D%22%2372246C%22%2F%3E%20%3Cpath%20d%3D%22M126.088%20209.488L160.685%20264.851C164.027%20270.337%20169.42%20273.141%20174.869%20273.28C180.318%20273.141%20185.712%20270.337%20189.054%20264.851L223.651%20209.488L174.869%20130.991L126.088%20209.488ZM164.89%20114.932L116.081%20193.475L1.59425%2010.2298C-1.19062%205.77398%202.01208%200%207.25693%200H88.3803C91.5458%200.00928293%2094.4792%201.64308%2096.1501%204.33513L164.881%20114.932H164.89ZM348.145%2010.2298L233.658%20193.475L184.849%20114.932L253.579%204.33513C255.25%201.65236%20258.193%200.00928293%20261.349%200.00928293H342.473C347.727%200%20350.929%205.77398%20348.145%2010.2298Z%22%20fill%3D%22%2372246C%22%2F%3E%20%3C%2Fsvg%3E%20");
    -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;
  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__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;
  }
}
