/**
 * Hero Section Styles
 * 
 * @package Custom Theme
 */

:root {
    --hero-bg: #111315;
    --text-strong: #fff;
    --text-dim: rgba(255, 255, 255, 0.9);
    --pill-bg: #fff;
    --pill-fg: #111;
    --btn-primary-bg: #fff;
    --btn-primary-fg: #111;
    --btn-outline-fg: #fff;
    --btn-outline-border: rgba(255, 255, 255, 0.9);
    --radius-pill: 25px;
    --container-max: 1400px;
}

/* Hero Section */
.hero {
    position: relative;
    background-color: var(--hero-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 72px 0 40px;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

/* Homepage specific hero padding to accommodate header overlap */
.page-homepage .hero {
    padding-top: 120px; /* Increased top padding to account for header height */
    min-height: 80vh; /* Increased minimum height */
}

/* Scrim overlay */
.hero--with-scrim::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.35) 40%, rgba(0, 0, 0, 0) 75%);
    pointer-events: none;
    z-index: 1;
}

/* Hero inner container */
.hero__inner {
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: 24px;
    position: relative;
    z-index: 2;
    width: 100%;
}

/* Hero content */
.hero__content {
    max-width: 600px;
}

/* Eyebrow pill */
.hero__eyebrow {
    display: inline-block;
    background: var(--pill-bg);
    color: var(--pill-fg);
    padding: 12px 20px;
    border-radius: var(--radius-pill);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* Hero title */
.hero__title {
    font-size: clamp(28px, 6vw, 48px);
    font-weight: 800;
    line-height: 1.05;
    color: var(--text-strong);
    margin: 0 0 24px 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Hero lead text */
.hero__lead {
    font-size: clamp(18px, 3.2vw, 28px);
    line-height: 1.35;
    color: var(--text-dim);
    margin: 0 0 40px 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* CTA container */
.hero__ctas {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

/* CTA buttons */
.hero__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    height: 56px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.2s ease;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-width: 140px;
}

/* Primary CTA */
.hero__cta--primary {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-fg);
    border: 2px solid var(--btn-primary-bg);
}

.hero__cta--primary:hover,
.hero__cta--primary:focus {
    background: #eaeaea;
    border-color: #eaeaea;
    color: var(--btn-primary-fg);
}

/* Secondary CTA */
.hero__cta--secondary {
    background: transparent;
    color: var(--btn-outline-fg);
    border: 2px solid var(--btn-outline-border);
}

.hero__cta--secondary:hover,
.hero__cta--secondary:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--btn-outline-border);
    color: var(--btn-outline-fg);
}

/* Focus states */
.hero__cta:focus {
    outline: 2px solid var(--text-strong);
    outline-offset: 2px;
}

/* Animation classes */
.hero__eyebrow,
.hero__title,
.hero__lead,
.hero__ctas {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero__eyebrow.is-inview,
.hero__title.is-inview,
.hero__lead.is-inview,
.hero__ctas.is-inview {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays */
.hero__eyebrow.is-inview {
    transition-delay: 0.1s;
}

.hero__title.is-inview {
    transition-delay: 0.25s;
}

.hero__lead.is-inview {
    transition-delay: 0.4s;
}

.hero__ctas.is-inview {
    transition-delay: 0.55s;
}

/* Desktop styles */
@media (min-width: 768px) {
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero__inner {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 60px;
        align-items: center;
    }
    
    .hero__content {
        max-width: none;
    }
}

/* Mobile responsive adjustments */
@media (max-width: 767px) {
    .hero {
        padding: 40px 0 30px;
        background-position: center center;
        background-size: cover;
        min-height: 60vh;
    }
    
    .hero__inner {
        padding-inline: 16px;
    }
    
    .hero__content {
        max-width: 100%;
        text-align: left;
    }
    
    .hero__ctas {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .hero__cta {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .hero__eyebrow {
        font-size: 14px;
        padding: 10px 18px;
    }
    
    .hero__title {
        text-align: left;
    }
    
    .hero__lead {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 30px 0 25px;
        background-size: cover;
        background-position: center center;
        min-height: 55vh;
    }
    
    .hero__inner {
        padding-inline: 12px;
    }
    
    .hero__title {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .hero__lead {
        font-size: 18px;
        margin-bottom: 30px;
    }
    
    .hero__cta {
        max-width: 100%;
        height: 48px;
        font-size: 15px;
    }
}

@media (max-width: 360px) {
    .hero {
        padding: 25px 0 20px;
        min-height: 50vh;
    }
    
    .hero__inner {
        padding-inline: 10px;
    }
    
    .hero__title {
        font-size: 24px;
        margin-bottom: 18px;
    }
    
    .hero__lead {
        font-size: 16px;
        margin-bottom: 25px;
    }
    
    .hero__cta {
        height: 44px;
        font-size: 14px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .hero__eyebrow,
    .hero__title,
    .hero__lead,
    .hero__ctas {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
