/* ===============================
   HERO SECTION BASE STYLES
   
   Base hero section styles and responsive
   adjustments for hero sections across all
   NaturRo pages.
================================ */

/* ===============================
   BASE HERO STYLES
================================ */

.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  padding: 0 !important; /* Override any section padding */
}

/* Video support - falls back to background image */
.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  background: transparent;
  display: block;
  min-height: 100vh; /* Ensure video covers full viewport */
}

/* Dark overlay to make image/video darker */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

/* Hero content base styles */
.hero-content {
  z-index: 2;
  position: relative;
  text-align: center;
  color: var(--color-white);
  padding: 2rem;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}

/* ===============================
   HERO LAYOUT RESPONSIVE ADJUSTMENTS
================================ */

/* Split layout - becomes single column on mobile */
@media (max-width: 900px) {
  .hero[data-layout="split"] {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  
  .hero[data-layout="split"] video {
    grid-column: 1;
    min-height: 50vh;
  }
  
  .hero[data-layout="split"] .hero-content {
    grid-column: 1;
    padding: 4rem 2rem;
  }
}

/* Left-aligned and bottom-right layouts - center on mobile */
@media (max-width: 900px) {
  .hero[data-layout="left-aligned"] .hero-content,
  .hero[data-layout="bottom-right"] .hero-content {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 4rem;
    text-align: center !important; /* Force center on mobile */
    max-width: 100%;
  }
  
  /* Ensure hero content is always centered on mobile for all layouts */
  .hero .hero-content {
    text-align: center !important;
    margin-left: auto;
    margin-right: auto;
  }
  
  /* Center top-bottom layout content on mobile */
  .hero[data-layout="top-bottom"] .hero-content h1 {
    text-align: center !important;
  }
  
  .hero[data-layout="top-bottom"] .hero-content-bottom {
    text-align: center !important;
    align-items: center !important;
  }
  
  /* Override align-self on mobile for top-bottom CTA */
  .hero[data-layout="top-bottom"] .cta-bottom {
    align-self: center !important;
    width: 100%;
    max-width: 100%;
  }
}

/* Top-bottom layout - adjust padding and font sizes on mobile */
@media (max-width: 900px) {
  .hero[data-layout="top-bottom"] .hero-content h1 {
    padding: 3rem 2rem;
    font-size: clamp(2.5rem, 6vw, 4rem);
  }
  
  .hero[data-layout="top-bottom"] .hero-content-bottom {
    padding: 3rem 2rem;
  }
}

/* ===============================
   FLOATING BADGE RESPONSIVE
================================ */

/* Floating badge becomes relative on mobile for all layouts */
@media (max-width: 900px) {
  .hero[data-layout="top-bottom"] .floating-badge,
  .hero[data-layout="left-aligned"] .floating-badge,
  .hero[data-layout="split"] .floating-badge,
  .hero[data-layout="bottom-right"] .floating-badge,
  .hero[data-layout="centered"] .floating-badge {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    transform: none;
    margin: 2rem auto;
    display: inline-block;
    text-align: center;
  }
}

/* ===============================
   HERO CONTENT RESPONSIVE
================================ */

/* Hero content padding adjustments - override base if needed */
.hero-content {
  /* Base padding already set above */
}

@media (max-width: 900px) {
  .hero-content {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 500px) {
  .hero-content {
    padding: 1.5rem 1rem;
  }
}

/* Hero heading responsive sizing */
.hero-content h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
}

@media (max-width: 500px) {
  .hero-content h1 {
    font-size: clamp(2rem, 8vw, 3.5rem);
  }
}

/* Hero subtitle responsive sizing */
.hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
}

@media (max-width: 500px) {
  .hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.4rem);
  }
}

/* ===============================
   HERO VIDEO RESPONSIVE
================================ */

/* Video background attachment - disable fixed on mobile for performance */
@media (max-width: 900px) {
  .hero {
    background-attachment: scroll;
  }
}

/* Video responsive adjustments - base styles already defined above */
@media (max-width: 900px) {
  .hero video {
    min-height: 50vh;
  }
}

/* ===============================
   HERO CTA BUTTONS RESPONSIVE
================================ */

.hero .cta,
.hero .cta-bottom {
  font-size: clamp(1rem, 2vw, 1.2rem);
  padding: 1rem 2rem;
  min-height: 44px; /* Touch target */
}

@media (max-width: 900px) {
  .hero .cta,
  .hero .cta-bottom {
    width: 100%;
    max-width: 100%;
    display: block;
    text-align: center;
    box-sizing: border-box;
  }
}

@media (max-width: 500px) {
  .hero .cta,
  .hero .cta-bottom {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    width: 100%;
    max-width: 100%;
  }
}

