/* Hero Module Styles - FIXED VERSION */
/* Fixes: 1) Mobile gap, 2) Horizontal scroll, 3) Edge-to-edge background */

.hayu-hero {
  display: flex;
  align-items: center;
  transition: background-color 0.3s ease;
  position: relative;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

/* Hero Size Variations */
.hayu-hero--full {
  min-height: 100vh;
  padding-top: 60px;
  padding-bottom: 60px;
}

.hayu-hero--large {
  min-height: 80vh;
  padding-top: 40px;
  padding-bottom: 40px;
}

.hayu-hero--medium {
  min-height: 60vh;
  padding-top: 30px;
  padding-bottom: 30px;
}

/* Background Style Variations */
.hayu-hero--off-white {
  background-color: var(--hayu-off-white);
  color: var(--hayu-navy);
}

.hayu-hero--coral {
  background-color: var(--hayu-coral);
  color: var(--hayu-off-white);
}

.hayu-hero--navy {
  background-color: var(--hayu-navy);
  color: var(--hayu-off-white);
}

.hayu-hero--deep-purple {
  background-color: var(--hayu-deep-purple);
  color: var(--hayu-off-white);
}

/* Background Image */
.hayu-hero__bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

/* Background Video */
.hayu-hero__bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.hayu-hero__bg-video video {
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

/* Overlay for readability on bg images/videos */
.hayu-hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Container - FIXED for no horizontal scroll */
.hayu-hero__container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Content Container */
.hayu-hero__content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-6);
  max-width: 100%;
  box-sizing: border-box;
}

/* ========================================
   TEXT ALIGNMENT - RESPONSIVE
   ======================================== */

/* Center Alignment */
.hayu-hero--align-center .hayu-hero__content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  align-items: center;
}

/* Left Alignment (Desktop) */
.hayu-hero--align-left .hayu-hero__content {
  max-width: 600px;
  margin: 0;
  text-align: left;
  align-items: flex-start;
}

/* Force center on mobile */
@media (max-width: 767px) {
  .hayu-hero--align-left .hayu-hero__content {
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
    align-items: center;
  }
}

/* ========================================
   TEXT COLOR FOR BACKGROUND IMAGES
   ======================================== */
  .hayu-hero--has-bg-media .hayu-hero__overlay,
  .hayu-hero__bg-image + .hayu-hero__overlay {
    opacity: 0.85 !important; /* Darker on mobile (was 0.75) */
    background-color: #191932 !important; /* Navy overlay */
  }
  
  /* Alternative: Even darker if needed */
  /* 
  .hayu-hero--has-bg-media .hayu-hero__overlay {
    opacity: 0.90 !important;
  }
  */
}
.hayu-hero--has-bg-media {
  color: var(--hayu-off-white) !important;
}

.hayu-hero--has-bg-media .hayu-hero__headline:not([class*="gradient"]) {
  color: var(--hayu-off-white) !important;
}

.hayu-hero--has-bg-media .hayu-hero__subheadline,
.hayu-hero--has-bg-media .hayu-hero__eyebrow,
.hayu-hero--has-bg-media .hayu-hero__disclaimer {
  color: var(--hayu-off-white) !important;
}

/* Badge/Promo Text */
.hayu-hero__badge {
  display: inline-flex;
  align-items: center;
  padding: var(--spacing-2) var(--spacing-5);
  background-color: var(--hayu-coral);
  color: var(--hayu-off-white);
  font-family: var(--font-primary);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  border-radius: var(--radius-full);
  animation: fadeInUp 0.6s ease-out;
}

.hayu-hero--coral .hayu-hero__badge,
.hayu-hero--navy .hayu-hero__badge,
.hayu-hero--deep-purple .hayu-hero__badge {
  background-color: var(--hayu-off-white);
  color: var(--hayu-navy);
}

/* Eyebrow/Kicker Text */
.hayu-hero__eyebrow {
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  opacity: 0.9;
  animation: fadeInUp 0.6s ease-out 0.1s backwards;
}

/* Headline */
.hayu-hero .hayu-hero__headline {
  margin: 0;
  line-height: 1.0;
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
  max-width: 100%;
  word-wrap: break-word;
}

/* Gradient Text Options */
.hayu-hero__headline--gradient-coral-purple {
  background: linear-gradient(135deg, #FF285A 0%, #E660E6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hayu-hero__headline--gradient-pink-purple {
  background: linear-gradient(135deg, #E660E6 0%, #5F0ADC 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hayu-hero__headline--gradient-orange-pink {
  background: linear-gradient(135deg, #EB461E 0%, #E660E6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hayu-hero__headline--gradient-purple-blue {
  background: linear-gradient(135deg, #5F0ADC 0%, #0A50CD 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hayu-hero__headline--gradient-purple-mint {
  background: linear-gradient(135deg, #5F0ADC 0%, #0ACC9C 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hayu-hero__headline--gradient-orange-yellow {
  background: linear-gradient(135deg, #EB461E 0%, #FFA02D 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Subheadline */
.hayu-hero .hayu-hero__subheadline {
  margin: 0;
  font-weight: var(--weight-medium);
  line-height: 1.35;
  opacity: 0.95;
  animation: fadeInUp 0.8s ease-out 0.3s backwards;
  max-width: 700px;
}

/* Disclaimer */
.hayu-hero__disclaimer {
  margin: 0;
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  opacity: 0.85;
  animation: fadeInUp 0.8s ease-out 0.35s backwards;
  max-width: 600px;
}

/* Promo Code Styling */
.hayu-hero__promo-code {
  display: inline-block;
  margin-top: var(--spacing-2);
  padding: var(--spacing-3) var(--spacing-6);
  background: rgba(255, 40, 90, 0.1);
  border: 2px dashed var(--hayu-coral);
  border-radius: var(--radius-md);
  font-family: 'Courier New', Consolas, Monaco, monospace;
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  letter-spacing: 0.1em;
  color: var(--hayu-coral);
  text-align: center;
}

.hayu-hero--has-bg-media .hayu-hero__promo-code,
.hayu-hero--navy .hayu-hero__promo-code,
.hayu-hero--deep-purple .hayu-hero__promo-code {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--hayu-off-white);
  color: var(--hayu-off-white);
}

.hayu-hero__badge--promo {
  animation: promoPulse 2s ease-in-out infinite;
}

@keyframes promoPulse {
  0%, 100% { 
    opacity: 1;
    transform: scale(1);
  }
  50% { 
    opacity: 0.9;
    transform: scale(1.02);
  }
}

/* CTA Buttons Container */
.hayu-hero__ctas {
  display: flex;
  gap: var(--spacing-4);
  flex-wrap: wrap;
  margin-top: var(--spacing-2);
  animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.hayu-hero--align-center .hayu-hero__ctas {
  justify-content: center;
}

.hayu-hero--align-left .hayu-hero__ctas {
  justify-content: flex-start;
}

@media (max-width: 767px) {
  .hayu-hero__ctas {
    justify-content: center !important;
  }
}

/* Large Button Variant */
.hayu-btn--large {
  padding: var(--spacing-4) var(--spacing-10);
  font-size: var(--text-lg);
  min-width: 200px;
}

/* CTA Button Color Options */
.hayu-hero__ctas--coral .hayu-btn--primary {
  background-color: var(--hayu-coral);
  color: var(--hayu-off-white);
  box-shadow: 0 4px 14px rgba(255, 40, 90, 0.3);
}

.hayu-hero__ctas--coral .hayu-btn--primary:hover {
  background-color: #E62451;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 40, 90, 0.4);
}

.hayu-hero__ctas--white .hayu-btn--primary {
  background-color: var(--hayu-off-white);
  color: var(--hayu-navy);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.hayu-hero__ctas--white .hayu-btn--primary:hover {
  background-color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.hayu-hero--coral .hayu-btn--secondary,
.hayu-hero--navy .hayu-btn--secondary,
.hayu-hero--deep-purple .hayu-btn--secondary,
.hayu-hero--has-bg-media .hayu-btn--secondary {
  background-color: transparent;
  color: var(--hayu-off-white);
  border: 2px solid var(--hayu-off-white);
}

.hayu-hero--coral .hayu-btn--secondary:hover,
.hayu-hero--navy .hayu-btn--secondary:hover,
.hayu-hero--deep-purple .hayu-btn--secondary:hover,
.hayu-hero--has-bg-media .hayu-btn--secondary:hover {
  background-color: rgba(245, 235, 235, 0.1);
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
  .hayu-hero--full {
    min-height: 85vh;
    padding-top: 50px;
    padding-bottom: 50px;
  }
  
  .hayu-hero--large {
    min-height: 70vh;
    padding-top: 40px;
    padding-bottom: 40px;
  }
  
  .hayu-hero--medium {
    min-height: 55vh;
    padding-top: 30px;
    padding-bottom: 30px;
  }
  
  .hayu-hero .hayu-hero__headline {
    font-size: var(--text-4xl);
    line-height: 1.0;
  }
  
  .hayu-hero__content {
    gap: var(--spacing-5);
  }
  
  .hayu-hero__ctas {
    gap: var(--spacing-3);
  }
  
  .hayu-btn--large {
    padding: var(--spacing-3) var(--spacing-8);
    font-size: var(--text-base);
    min-width: 180px;
  }
  
  .hayu-hero--align-left .hayu-hero__content {
    max-width: 500px;
  }
}

/* Mobile - FIXED: Gap removal + no horizontal scroll */
@media (max-width: 767px) {
  /* FIX #1: Remove gap at top on mobile */
  .hayu-hero {
    margin-top: -50px !important;
  }
  
  .hayu-hero--full {
    min-height: 70vh;
    padding-top: 80px; /* Compensate for negative margin */
    padding-bottom: 30px;
  }
  
  .hayu-hero--large {
    min-height: 60vh;
    padding-top: 75px;
    padding-bottom: 25px;
  }
  
  .hayu-hero--medium {
    min-height: 50vh;
    padding-top: 70px;
    padding-bottom: 20px;
  }
  
  /* FIX #2: Ensure no horizontal scroll */
  .hayu-hero__container {
    padding-left: var(--spacing-4);
    padding-right: var(--spacing-4);
  }
  
  .hayu-hero__content {
    width: 100%;
    max-width: 100%;
  }
  
  .hayu-hero .hayu-hero__headline {
    font-size: 2.975rem !important; /* 30px */
    line-height: 1.0;
  }
  
  .hayu-hero .hayu-hero__subheadline {
    font-size: var(--text-base);
    line-height: 1.35;
  }
  
  .hayu-hero__content {
    gap: var(--spacing-4);
  }
  
  .hayu-hero__ctas {
    flex-direction: column;
    width: 100%;
    gap: var(--spacing-3);
  }
  
  .hayu-btn--large {
    width: 100%;
    max-width: 320px;
    padding: var(--spacing-3) var(--spacing-6);
  }
  
  .hayu-hero__badge {
    font-size: 10px;
    padding: var(--spacing-1) var(--spacing-4);
  }
  
  .hayu-hero__eyebrow {
    font-size: 11px;
  }
  
  .hayu-hero__disclaimer {
    font-size: 10px;
  }
  
  .hayu-hero__promo-code {
    font-size: var(--text-lg);
    padding: var(--spacing-2) var(--spacing-4);
    letter-spacing: 0.05em;
  }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
  .hayu-hero--full {
    min-height: 65vh;
    padding-top: 75px;
    padding-bottom: 25px;
  }
  
  .hayu-hero--large {
    min-height: 55vh;
    padding-top: 70px;
    padding-bottom: 20px;
  }
  
  .hayu-hero--medium {
    min-height: 45vh;
    padding-top: 65px;
    padding-bottom: 15px;
  }
  
  .hayu-hero .hayu-hero__headline {
    font-size: 1.625rem; /* 26px */
    line-height: 1.0;
  }
  
  .hayu-hero .hayu-hero__subheadline {
    font-size: var(--text-sm);
    line-height: 1.3;
  }
  
  .hayu-hero__content {
    gap: var(--spacing-3);
  }
}

@media (max-width: 767px) {
  /* Existing mobile styles... */
  
  /* FIX: Button container centering */
  .hayu-hero__ctas {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3);
    width: 100%;
    align-items: center; /* CRITICAL: Centers buttons */
    justify-content: center;
    padding: 0; /* Remove any padding */
    margin: 0 auto; /* Center container */
  }
  
  /* FIX: Button width and centering */
  .hayu-btn--large {
    width: 100%;
    max-width: 320px; /* Prevents buttons from being too wide */
    padding-left: var(--spacing-6);
    padding-right: var(--spacing-6);
    box-sizing: border-box;
    margin: 0 auto; /* Extra centering insurance */
  }
  
  /* FIX: Content container centering */
  .hayu-hero__content {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
/* ========================================
   HERO DISCLAIMER - UPDATED CSS
   Add this to your hero CSS file
   ======================================== */

/* Disclaimer - Narrower, positioned after buttons */
.hayu-hero__disclaimer {
  margin: var(--spacing-4) auto 0; /* Space above, centered */
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  opacity: 0.85;
  animation: fadeInUp 0.8s ease-out 0.45s backwards;
  max-width: 400px; /* Narrower like final CTA - was 600px */
  line-height: 1.5;
}

/* Responsive widths */
@media (max-width: 1024px) {
  .hayu-hero__disclaimer {
    max-width: 350px;
  }
}

@media (max-width: 767px) {
  .hayu-hero__disclaimer {
    font-size: 10px;
    max-width: 300px;
    margin-top: var(--spacing-3);
  }
}

@media (max-width: 480px) {
  .hayu-hero__disclaimer {
    max-width: 280px;
  }
}

/* Left-aligned hero */
.hayu-hero--align-left .hayu-hero__disclaimer {
  margin-left: 0;
  text-align: left; /* Matches other content */
}

/* Center-aligned hero */
.hayu-hero--align-center .hayu-hero__disclaimer {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Mobile: always center */
@media (max-width: 767px) {
  .hayu-hero__disclaimer {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }
}