/**
 * Team Hero Section Styles
 * 
 * Custom background color hero section with centered content and staggered fade-in animations
 * Features individual element animations with cascading timing for enhanced visual appeal
 * Following site-grid-rails.css layout system with responsive design
 */

.team-hero {
    background-color: var(--ica-green-deep); /* Brand deep green background */
    padding: var(--global-padding-desktop) 0;
    overflow: hidden;
    display: flex;
    min-height: 40vh; /* Minimum viewport height for visual impact */
    align-items: center;
    justify-content: center;
    text-align: center;
    grid-column: full-start / full-end; /* Full width using site-grid-rails */
}

.team-hero__container {
    grid-column: content-start / content-end; /* Content constrained to rails */
    width: 100%;
    margin: 0 auto;
}

.team-hero__content {
    max-width: 800px;
    margin: 0 auto;
}

.team-hero__title {
    font-family: var(--font-heading) !important; /* Brand heading font */
    font-size: clamp(45px, 6vw, 75px) !important;
    font-weight: 700;
    color: var(--ica-bg) !important; /* White text on dark background */
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: 2px;
    /* Initial state for JavaScript animation - invisible and below */
    opacity: 0;
    transform: translateY(30px);
    /* Fade-in animation transition - appears first (0s delay) */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.team-hero__tagline {
    font-family: var(--font-ui) !important; /* Brand UI font */
    font-size: clamp(14px, 3vw, 24px) !important;
    font-weight: 600;
    color: var(--ica-lime); /* Brand lime accent color */
    margin: 10px;
    line-height: 1.3;
    /* Initial state for JavaScript animation - invisible and below */
    opacity: 0;
    transform: translateY(30px);
    /* Fade-in animation transition with delay - appears second (0.2s delay) */
    transition: opacity 0.8s ease-out 0.2s, transform 0.8s ease-out 0.2s;
}

.team-hero__description {
    font-size: clamp(18px, 3vw, 24px) !important;
    color: var(--ica-bg); /* White text on dark background */
    line-height: 1.6;
    margin: 0 auto;
    /* Initial state for JavaScript animation - invisible and below */
    opacity: 0;
    transform: translateY(30px);
    /* Fade-in animation transition with delay - appears last (0.4s delay) */
    transition: opacity 0.8s ease-out 0.4s, transform 0.8s ease-out 0.4s;
}

/* Responsive Design */
@media (max-width: 768px) {
    .team-hero {
        padding: var(--global-padding-mobile);
        min-height: 45vh; /* Maintain minimum height on mobile */
    }
    
    .team-hero__tagline {
        text-transform: uppercase !important; /* Enhanced readability on mobile */
        line-height: 1.6;
    }
    
    .team-hero__description {
        font-size: 20px; /* Fixed size for better mobile readability */
    }
}
/* Hero elements visible state - triggered by JavaScript */
/* When .hero-visible class is added, all elements fade in with staggered timing */
.team-hero.hero-visible .team-hero__title,
.team-hero.hero-visible .team-hero__tagline,
.team-hero.hero-visible .team-hero__description {
    opacity: 1;
    transform: translateY(0);
}

/* Accessibility: Respect prefers-reduced-motion */
/* Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .team-hero__title,
    .team-hero__tagline,
    .team-hero__description {
        transition: none;
        opacity: 1 !important; /* Show content immediately */
        transform: none !important; /* No movement animations */
    }
    
    .team-hero * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
