/* Hero Section - visible by default for graceful degradation */
.section-hero {
  opacity: 1;
}

/* Only animate if CSS fully loaded and animations supported */
@supports (animation: fade-in) {
  .section-hero.animate-hero {
    opacity: 0;
    animation: hero-fade-in 1s ease-out forwards;
    animation-delay: 0.3s;
  }

  @keyframes hero-fade-in {
    to {
      opacity: 1;
    }
  }

  /* Hero children fade-in with stagger */
  .section-hero.animate-hero .hero-media {
    opacity: 0;
    animation: fade-in 0.6s ease-out forwards 0.3s;
  }
  .section-hero.animate-hero .section-label {
    opacity: 0;
    animation: fade-in 0.6s ease-out forwards 0.45s;
  }
  .section-hero.animate-hero .hero-subtitle {
    opacity: 0;
    animation: fade-in 0.6s ease-out forwards 0.6s;
  }
  .section-hero.animate-hero .hero-title {
    opacity: 0;
    animation: fade-in 0.6s ease-out forwards 0.75s;
  }

  @keyframes fade-in {
    to {
      opacity: 1;
    }
  }
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  .section-hero {
    opacity: 1 !important;
    animation: none !important;
  }

  .section-hero .hero-media,
  .section-hero .section-label,
  .section-hero .hero-subtitle,
  .section-hero .hero-title {
    opacity: 1 !important;
    animation: none !important;
  }
}

/* Hero Section layout */
.section-hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 0 !important;
  margin: 0;
}

/* Section Background Gradient (under text) */
.section-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(180deg, transparent 0%, #1a5259 100%);
  z-index: 1;
  pointer-events: none;
}

/* Hero Media (Background) */
.hero-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  margin: 0;
  overflow: hidden;
}

.hero-media img,
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 30px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

/* Hero Label */
.section-hero .section-label {
  font-family: "Manrope", sans-serif;
  font-weight: 400;
  font-size: 32px;
  line-height: 110%;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffd88a;
  margin-bottom: 20px;
  display: inline-block;
}

/* Hero Subtitle */
.section-hero .hero-subtitle {
  font-family: "Cabinet Grotesk", sans-serif;
  font-weight: 400;
  font-size: 62px;
  line-height: 90%;
  letter-spacing: 0;
  color: #fff;
  margin: 0 0 30px;
  max-width: 1129px;
}

/* Hero Divider */
.hero-divider {
  width: 100%;
  max-width: 1380px;
  height: 0;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  margin: 30px 0;
}

/* Hero Header (Title) - SVG with Gradient Outline */
.hero-title-wrapper {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    padding: 37px 0;
}

/* Top border line with gradient */
.hero-title-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.08) 100%
    );
}

.hero-title-wrapper svg {
    display: block;
    width: 100%;
    height: auto;
}

/* Visually hidden but accessible for SEO/screen readers */
.hero-title.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Responsive Hero */
@media (max-width: 1200px) {
    .section-hero .hero-subtitle {
        font-size: 48px;
    }

    .section-hero .section-label {
        font-size: 26px;
    }
}

@media (max-width: 768px) {
    .section-hero {
        min-height: 100svh;
    }

    .hero-content {
        padding: 0 20px 0;
    }

    .hero-title-wrapper {
        padding: 20px 0;
        width: calc(100% + 40px);
        margin-left: -20px;
        margin-right: -20px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .section-hero .hero-subtitle {
        font-size: 32px;
    }

    .section-hero .section-label {
        font-size: 20px;
    }

    .hero-divider {
        margin: 20px 0;
    }
}

@media (max-width: 480px) {
    .hero-title-wrapper {
        padding: 18px 20px;
    }

    .section-hero .hero-subtitle {
        font-size: 42px;
        line-height: 90%;
        font-weight: 400;
        margin: 0 0 20px;
    }

    .section-hero .section-label {
        font-size: 24px;
        font-weight: 400;
    }
}

