/* Hero CSS - Prefix: .hero- */

.hero-section {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 90px; /* Offsets sticky navbar */
  padding-bottom: 30px;
  font-family: 'Inter', sans-serif;
  overflow: hidden;
  z-index: 1;
}

/* Parallax Background - stays completely still relative to the sticky section */
.hero-parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(180deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%), url('../img/hero-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
  pointer-events: none;
}

/* Content wrapper that slides on top of the hero section */
.main-content-wrapper {
  position: relative;
  z-index: 2;
  background-color: #FFFFFF;
  overflow-x: hidden;
}

.hero-container {
  max-width: 1280px;
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: 24px;
  padding-left: 24px;
  z-index: 10;
}

.hero-content {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 20px; /* Reduced from 28px for tighter fit */
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: 52px; /* Slightly reduced from 56px */
  font-weight: 800;
  line-height: 1.15;
  color: #FFFFFF;
  letter-spacing: -0.5px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

.hero-title-loaded {
  opacity: 1;
  transform: translateY(0);
}

.hero-title-accent {
  color: #A31D24;
}

.hero-subtitle {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: #E2E8F0;
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

.hero-subtitle-loaded {
  opacity: 1;
  transform: translateY(0);
}

.hero-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s;
}

.hero-btn-group-loaded {
  opacity: 1;
  transform: translateY(0);
}

.hero-btn {
  font-size: 15px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.hero-btn-primary {
  background-color: #A31D24;
  color: #FFFFFF !important;
  border: 1px solid #A31D24;
}

.hero-btn-primary:hover {
  background-color: #8B181E;
  border-color: #8B181E;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(163, 29, 36, 0.35);
}

.hero-btn-secondary {
  background-color: transparent;
  color: #FFFFFF !important;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.hero-btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: #FFFFFF;
  transform: translateY(-2px);
}

.hero-badges-wrapper {
  margin-top: 24px; /* Reduced from 40px */
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1) 0.7s;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px; /* Reduced from 32px */
}

.hero-badges-loaded {
  opacity: 1;
  transform: translateY(0);
}

.hero-badges-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: #94A3B8;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.hero-badges-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-badge-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 10px 18px;
  transition: all 0.3s ease;
}

.hero-badge-card:hover {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.hero-badge-icon {
  color: #A31D24;
  font-size: 16px;
  display: flex;
  align-items: center;
}

.hero-badge-text {
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 500;
}

/* Animations, background elements */
.hero-bg-accent {
  position: absolute;
  top: -10%;
  right: -10%;
  width: 40%;
  height: 60%;
  background: radial-gradient(circle, rgba(163, 29, 36, 0.12) 0%, transparent 70%);
  z-index: 2;
  pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .hero-section {
    position: sticky; /* Keep sticky parallax on tablet */
    top: 0;
    height: 100vh;
    height: 100dvh;
    padding-top: 100px; /* Offsets navbar */
    padding-bottom: 30px;
    overflow: hidden;
    z-index: 1;
  }
  .hero-title {
    font-size: 40px; /* Reduced from 44px */
  }
  .hero-subtitle {
    font-size: 15px; /* Reduced from 16px */
  }
}

@media (max-width: 575.98px) {
  .hero-section {
    position: sticky; /* Keep sticky parallax on mobile */
    top: 0;
    height: 100vh;
    height: 100dvh;
    padding-top: 85px;
    padding-bottom: 20px;
    overflow: hidden;
  }
  .hero-title {
    font-size: 26px; /* Tighten title text to prevent overflow */
    line-height: 1.25;
  }
  .hero-subtitle {
    font-size: 13.5px;
    line-height: 1.5;
  }
  .hero-btn-group {
    display: flex;
    flex-direction: row; /* Horizontal button layout saves height */
    gap: 10px;
    width: 100%;
  }
  .hero-btn {
    flex: 1;
    font-size: 12px; /* Smaller button labels */
    padding: 10px 8px;
    justify-content: center;
    white-space: nowrap;
  }
  .hero-badges-wrapper {
    margin-top: 15px;
    padding-top: 12px;
  }
  .hero-badges-label {
    font-size: 10px;
    margin-bottom: 10px;
  }
  .hero-badges-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .hero-badge-card {
    width: calc(50% - 4px); /* 2x2 grid */
    padding: 6px 8px;
    gap: 6px;
    justify-content: center;
  }
  .hero-badge-icon {
    font-size: 12px;
  }
  .hero-badge-text {
    font-size: 11px;
  }
}
