/**
 * Hero Section Styles
 * Common styles for hero sections across all pages
 */

.hero-section {
  position: relative;
  margin-top: -90px;
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
}

/* Full-height hero for homepage carousel */
.hero-section.hero-fullscreen {
  min-height: 100vh;
  min-height: 100dvh; /* Dynamic viewport for mobile browsers */
}

/* Inner page hero - compact height */
.hero-section.hero-inner {
  min-height: 400px;
  height: auto;
  padding-top: 120px;
  padding-bottom: 60px;
}

/* Legacy support for inline height styles */
.hero-section[style*="height"] {
  min-height: unset !important;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  max-width: none;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

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

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .hero-section {
    margin-top: -80px;
  }
  
  .hero-section.hero-inner {
    padding-top: 100px;
    padding-bottom: 50px;
  }
}

@media (max-width: 767.98px) {
  .hero-section.hero-fullscreen {
    min-height: 100svh; /* Small viewport - excludes browser chrome */
  }
  
  .hero-section {
    margin-top: -70px;
  }
  
  .hero-section.hero-inner {
    min-height: 300px;
    padding-top: 90px;
    padding-bottom: 40px;
  }
  
  .hero-background img {
    object-position: center top;
  }
}

@media (max-width: 575.98px) {
  .hero-section {
    margin-top: -60px;
  }
  
  .hero-section.hero-inner {
    min-height: 280px;
    padding-top: 80px;
    padding-bottom: 30px;
  }
}

/* Landscape mobile orientation */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-section {
    min-height: auto;
    padding: 5rem 0 3rem;
  }
}



