/**
 * Hero Section Responsive Styles
 * Implements TDD requirements for front-page responsive improvements
 * Task 1.1: Hero section responsive fixes
 */

/* Core Hero Responsive Component */
.hero-section-responsive {
  /* Set to 100vh with no scrolling */
  height: 100vh;
  min-height: 100vh;
  max-height: 100vh;
  position: relative;
  width: 100%;
  background-color: transparent; /* Remove black background to prevent visual conflicts */
  overflow: hidden; /* Remove all scrollbars */
}

/* Content container for proper alignment */
.hero-content-container {
  min-height: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  height: 100%;
}

/* Desktop Hero Responsive Styles (768px+) */
@media (min-width: 768px) {
  .hero-section-responsive {
    /* Desktop maintains 100vh */
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
  }
  
  .hero-logo-container {
    width: clamp(55%, 61.5%, 70%);
    min-width: 300px;
    aspect-ratio: 1180.38/199.66;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Mobile Hero Responsive Styles (767px and below) */
@media (max-width: 767px) {
  .hero-section-responsive {
    /* Mobile also uses 100vh */
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
    padding: 0; /* Remove padding to maintain exact 100vh */
  }
  
  .hero-mobile-container {
    width: clamp(90%, 95%, 100%);
    height: auto;
    min-height: clamp(400px, 70vh, 800px);
    max-height: 90vh; /* Prevent excessive height */
    aspect-ratio: auto; /* Allow content-based height */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
  }
  
  .hero-mobile-logo {
    width: clamp(60%, 70%, 85%);
    min-width: 250px;
    aspect-ratio: 1180.38/199.66;
    position: relative; /* Remove absolute positioning for better content flow */
  }
}

/* Orientation change responsive adjustments */
@media (max-width: 767px) and (orientation: landscape) {
  .hero-section-responsive {
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
  }
  
  .hero-mobile-container {
    min-height: clamp(300px, 60vh, 500px);
    max-height: 80vh;
  }
}

/* Small mobile devices (375px and below) */
@media (max-width: 375px) {
  .hero-mobile-container {
    width: clamp(95%, 98%, 100%);
    min-height: clamp(350px, 65vh, 700px);
    padding: 0.75rem;
  }
  
  .hero-mobile-logo {
    width: clamp(70%, 80%, 90%);
    min-width: 200px;
  }
}

/* Very small screens (320px and below) */
@media (max-width: 320px) {
  .hero-section-responsive {
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
    padding: 0;
  }
  
  .hero-mobile-container {
    width: 98%;
    min-height: clamp(280px, 55vh, 450px);
    padding: 0.5rem;
  }
  
  .hero-mobile-logo {
    width: 85%;
    min-width: 180px;
  }
}

/* Ensure content is always scrollable when needed */
.hero-section-responsive {
  contain: layout style;
}

/* High contrast mode support - hero-mobile-container border removed */

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .hero-section-responsive,
  .hero-mobile-container,
  .hero-mobile-logo {
    transition: none;
  }
}