/**
 * Hero Section Styles
 * 
 * Styles for full-screen hero sections across the NSF website
 * Uses NSF design system variables from theme.css
 * 
 * @author Loïc Misenta
 * @version 1.0
 * @since 2025-07-16
 */

/* ==========================================================================
   Full-Screen Hero Section
   ========================================================================== */

.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--nsf-dark);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-section img {
    object-fit: cover;
    object-position: center;
    z-index: 0;
    height: 100vh;
    width: 100%;
}

.hero-section .hero-content {
    position: absolute;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 90%;
    width: 100%;
}
/* Home page only: flex centering for logo */
.hero-section.hero-section--home .hero-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section .hero-title {
    font-weight: var(--nsf-font-weight-black);
    font-size: clamp(2rem, 8vw, 8rem);
    margin: 0 auto;
    color: var(--white);
    letter-spacing: 0.1em;
    animation: fadeInUp 1s ease-out;
    text-align: center;
}

/* Hero logo */
.hero-section .hero-logo {
    width: clamp(300px, 60vw, 900px);
    height: auto;
    max-width: 90%;
    animation: fadeInUp 1s ease-out;
    display: block;
    margin: 0 auto;
}

/* Home page specific hero title - hidden for visual but present for SEO */
.hero-section.hero-section--home .hero-title {
    display: none !important;
}

/* .hero-section.hero-section--home .hero-title .city-name-title {
  font-family: 'Unbounded', sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: clamp(0.01em, 5vw, 0.1em);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  margin-left: -10px;
  margin-bottom: 60px;
  color: var(--nsf-primary);
  flex-shrink: 0;
} */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Hero Variations
   ========================================================================== */

/* Smaller hero section (e.g., for inner pages) */
.hero-section--small {
    height: 50vh;
    min-height: 400px;
}

.hero-section--small .hero-title {
    font-size: clamp(1.5rem, 6vw, 4rem);
}

/* Dark overlay variation */
.hero-section--dark::before {
    background: rgba(46, 40, 42, 0.8);
}

/* Light overlay variation */
.hero-section--light::before {
    background: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
        .hero-section .hero-content {
            position: absolute;
        }
        .hero-section.hero-section--home .hero-content {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
        }
    .hero-section .hero-title {
        font-size: clamp(1.5rem, 12vw, 4rem);
    }
    
    .hero-section.hero-section--home .hero-title {
        display: none !important;
    }
    
    .hero-section .hero-logo {
        width: clamp(250px, 80vw, 600px);
        max-width: 95%;
    }

    /* 
    .hero-section.hero-section--home .hero-title .city-name-title {
        font-size: clamp(0.01em, 3.5vw, 0.1em);
        margin-left: 0;
    } */
    
    .hero-section--small .hero-title {
        font-size: clamp(1.2rem, 10vw, 3rem);
    }
}

@media (max-width: 576px) {
        .hero-section .hero-content {
            position: absolute;
        }
        .hero-section.hero-section--home .hero-content {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
        }
    .hero-section {
        height: 100vh;
        min-height: 600px;
    }
    
    .hero-section .hero-title {
        font-size: clamp(1.2rem, 15vw, 3rem);
    }
    
    .hero-section.hero-section--home .hero-title {
        display: none !important;
    }
    
    .hero-section .hero-logo {
        width: clamp(200px, 85vw, 500px);
        max-width: 95%;
    }
    
    /*  .hero-section.hero-section--home .hero-title .city-name-title {
        font-size: clamp(0.01em, 2.5vw, 0.08em);
        margin-left: 0;
    } */
    
    .hero-section--small {
        height: 40vh;
        min-height: 300px;
    }
    
    .hero-section--small .hero-title {
        font-size: clamp(1rem, 12vw, 2.5rem);
    }
}

/* ==========================================================================
   Accessibility & Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .hero-section .hero-title {
        animation: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hero-section::before {
        background: rgba(0, 0, 0, 0.8);
    }
    
    .hero-section .hero-title {
        color: var(--white);
    }
}
