/**
 * Team Hero Section Styles
 * 
 * Custom background color hero section with centered content
 * Following site-grid-rails.css layout system
 */

@layer components {

.team-hero {
    background-color: var(--ica-bg); /* Brand background color */
    height: 30vh;
    min-height: 30vh; /* Ensure minimum height is maintained */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    grid-column: full-start / full-end; /* Full width using site-grid-rails */
    width: 100%;
    max-width: none;
}

.team-hero__container {
    grid-column: content-start / content-end; /* Content constrained to rails */
    width: 100%;
    max-width: var(--wp--style--global--wide-size, 1280px);
    margin: 0 auto;
    padding: 0 var(--wp--style--root--padding-left, 1rem) 
             var(--wp--style--root--padding-right, 1rem);
    box-sizing: border-box;
}

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

.team-hero__title {
    font-family: var(--font-heading); /* Brand heading font */
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--ica-green-deep); /* Brand deep green */
    margin-bottom: 20px;
    line-height: 1.2;
    font-display: swap;
}

.team-hero__tagline {
    font-family: var(--font-ui); /* Brand UI font */
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--ica-green-deep); /* Brand deep green */
    margin-bottom: 30px;
    line-height: 1.3;
    font-display: swap;
}

.team-hero__description {
    font-family: var(--font-body); /* Brand body font */
    font-size: 16px;
    color: var(--ica-green-deep); /* Brand deep green */
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    font-display: swap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .team-hero {
        padding: 60px 0;
    }
    
    .team-hero__title {
        font-size: 2.5rem;
    }
    
    .team-hero__tagline {
        font-size: 1.25rem;
    }
    
    .team-hero__description {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .team-hero {
        padding: 40px 0;
    }
    
    .team-hero__title {
        font-size: 2rem;
    }
    
    .team-hero__tagline {
        font-size: 1.1rem;
    }
    
    .team-hero__description {
        font-size: 13px;
    }
}

} /* End @layer components */

/* Accessibility: Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .team-hero {
        transition: none;
    }
    
    .team-hero * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
