/* ============================================
   HERO SECTION - FULL-BLEED SYSTEM
   ============================================ */
.hero {
  width: 100%;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background-color: #0A4540;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white);
  padding-top: calc(var(--space-xxl) + 100px);
  padding-bottom: var(--space-xl);
  min-height: 85vh;
  position: relative;
  overflow: hidden;
  z-index: 1;
  margin-top: 0;
  margin-bottom: 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  max-width: 800px;
  margin-bottom: var(--space-xl);
  gap: 0;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  position: relative;
  z-index: 1;
  max-width: 80%;
}

.hero-text .hero-cta {
  margin-top: var(--space-sm);
}

.hero-label {
  font-size: var(--body-medium);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: 0.9;
}

.hero-headline {
  font-size: var(--display-medium);
  line-height: var(--display-medium-lh);
  font-weight: 700;
  color: var(--white);
}

.hero-description {
  font-size: var(--body-xl);
  line-height: var(--body-xl-lh);
  color: var(--white);
  opacity: 0.95;
  max-width: 80%;
}

.hero-image-mobile {
  display: none;
}

.hero-cta {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

/* Hero Promo Card */
.hero-promo-card {
  position: absolute;
  bottom: calc(var(--space-xxl) + var(--space-lg));
  right: var(--container-padding);
  display: flex;
  background-color: #F5F5F5;
  border-radius: var(--radius-sm);
  max-width: 480px;
  overflow: hidden;
  z-index: 2;
  padding: var(--space-xs);
  box-shadow: 0 6px 37.6px 0 rgba(1, 53, 50, 0.07);
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.hero-promo-card.animate {
  opacity: 1;
  transform: translateX(0);
  padding: var(--space-xs);
}

.hero-promo-image {
  flex-shrink: 0;
  width: 30%;
  height: auto;
  overflow: hidden;
  border-radius: 4px;
}

.hero-promo-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-promo-content {
  flex: 1;
  display: flex;
  padding-left: var(--space-sm);
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: var(--space-xs);
}

.hero-promo-headline {
  font-size: var(--body-large);
  line-height: 1.3;
  font-weight: 700;
  color: var(--green-primary);
  margin: 0;
}

.hero-promo-text {
  font-size: var(--body-medium);
  line-height: 1.5;
  color: var(--grey-700);
  margin: 0;
}

.hero-promo-cta {
  margin-top: var(--space-xs);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--body-medium);
  font-weight: 500;
  color: var(--green-primary);
  align-self: flex-start;
  transition: color 0.3s ease;
  width: fit-content;
  position: relative;
  padding-bottom: 2px;
}

.hero-promo-cta::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background-color: var(--green-primary);
  transition: background-color 0.3s ease;
}

.hero-promo-cta:hover {
  color: var(--green-secondary);
}

.hero-promo-cta:hover::after {
  background-color: var(--green-secondary);
}

.hero-promo-cta svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.hero-features {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
  position: relative;
  z-index: 1;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding: var(--space-xxl) var(--container-padding) 0;
  margin-bottom: 0;
}

.hero-features-wrapper {
  display: flex;
  gap: var(--space-sm);
  animation: marquee 80s linear infinite;
  will-change: transform;
}

.hero-features:hover .hero-features-wrapper {
  animation-play-state: paused;
}

@keyframes marquee {
  0% {
	transform: translateX(0);
  }
  100% {
	transform: translateX(-50%);
  }
}

.feature-card {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background-color: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(116.69999694824219px);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  max-width: 300px;
}

.feature-icon {
  color: var(--white);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon img {
  width: 35px;
  height: 35px;
  object-fit: contain;
  display: block;
}

.feature-card p {
  font-size: var(--body-medium-large);
  line-height: var(--body-medium-large-lh);
  color: var(--white);
  margin: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* ============================================
   TABLET (max-width: 1024px)
   ============================================ */
@media (max-width: 1024px) {
  /* Hero - Tablet */
  .hero {
    min-height: 75vh;
    padding-top: calc(var(--space-xl) + 80px);
    padding-bottom: var(--space-lg);
  }

  /* Grid/Flex collapse */
  .dual-columns {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }



  /* Hero Promo Card positioning */
  .hero-promo-card {
    position: relative;
    margin-top: var(--space-lg);
    bottom: auto;
    right: auto;
    left: auto;
    max-width: 100%;
  }

  /* Tablet-specific adjustments */
  @media (min-width: 768px) {
    .hero-description {
      font-size: var(--mobile-body-xl);
      line-height: var(--mobile-body-xl-lh);
    }

    .hero-content {
      gap: var(--space-xl);
    }

    /* Hero Promo Card - Tablet */
    .hero-promo-card {
      max-width: 380px;
      padding: var(--space-xs);
    }

    .hero-promo-image {
      width: 35%;
    }

    .hero-promo-content {
      padding-left: var(--space-sm);
      justify-content: flex-start;
      align-items: flex-start;
    }
  }
}

/* ============================================
   MOBILE (max-width: 767px)
   ============================================ */
@media (max-width: 767px) {

  /* Typography */
  .hero-description {
    font-size: var(--mobile-body-xl);
    line-height: var(--mobile-body-xl-lh);
  }

  /* Hero - Mobile */
  .hero {
    min-height: 60vh;
    background-image: url('../images/mobile-hero-2.png');
    background-position: center;
    background-size: cover;
    padding-top: calc(var(--space-xl) + 80px);
    padding-bottom: var(--space-xl);
  }

  .hero::before {
    background: rgba(10, 69, 64, 0.75);
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
    align-items: center;
    margin-bottom: var(--space-lg);
    padding-top: var(--space-md);
  }

  .hero-text {
    max-width: 100%;
    text-align: left;
    align-items: flex-start;
    gap: var(--space-sm);
    width: 100%;
  }

  .hero-label {
    text-align: left;
    margin-bottom: var(--space-xs);
  }

  .hero-headline {
    text-align: left;
    margin-bottom: var(--space-sm);
  }

  .hero-description {
    max-width: 100%;
    text-align: left;
    margin-bottom: var(--space-sm);
    width: 100%;
  }

  .hero-description:last-of-type {
    margin-bottom: var(--space-md);
  }

  .hero-image-mobile {
    display: none;
  }

  .hero-text .hero-cta {
    display: none;
  }

  /* Hero Promo Card - Mobile */
  .hero-promo-card {
    position: relative;
    bottom: auto;
    right: auto;
    max-width: 100%;
    flex-direction: row;
    margin-top: var(--space-lg);
    margin-left: 0;
    margin-right: 0;
  }

  .hero-promo-image {
    width: 40%;
    height: auto;
  }

  .hero-promo-content {
    padding-left: var(--space-sm);
    justify-content: flex-start;
    align-items: flex-start;
  }

  .hero-promo-text {
    font-size: var(--body-small);
  }

  .hero-features {
    overflow: hidden;
    margin-top: 0;
  }

  .hero-features-wrapper {
    animation: marquee-mobile 60s linear infinite;
  }

  @keyframes marquee-mobile {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-50%);
    }
  }

  .feature-card {
    max-width: 300px;
    flex-shrink: 0;
  }
}

/* ============================================
   EDITOR-SPECIFIC FIXES
   ============================================ */

/* Fix full-bleed margins in editor */
.editor-styles-wrapper .hero {
  margin-left: 0;
  margin-right: 0;
  width: 100%;
  max-width: 100%;
  min-height: 600px; /* Use fixed min-height instead of vh units */
  overflow: visible; /* Allow content to be visible */
}

/* Fix full-width features section in editor */
.editor-styles-wrapper .hero-features {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

/* Ensure promo card is visible in editor */
.editor-styles-wrapper .hero-promo-card {
  position: relative;
  bottom: auto;
  right: auto;
  margin-top: var(--space-xl);
  opacity: 1; /* Make visible in editor */
  transform: none; /* Remove transform */
}

/* Ensure container doesn't overflow in editor */
.editor-styles-wrapper .hero .container {
  max-width: 100%;
  overflow: visible;
}