/**
 * Large Page Header Block Styles
 * 
 * @package AC Valve Alliance
 */

/* Main header container */
.acv-large-page-header {
    position: relative;
    display: block;
    width: 100%;
    min-height: 500px;
    padding: 4rem 0;
    background-color: var(--color-tertiary, #95a5a6);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: #ffffff;
    overflow: hidden;
}

.acv-large-page-header.has-background-video {
    min-height: 700px;
}

.acv-large-page-header.has-background-video .acv-header-container {
    min-height: 600px;
    display: flex;
    align-items: center;
}

/* Video background */
.acv-header-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
}

.acv-header-video img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Background overlay */
.acv-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

/* Video works on mobile Chrome - ensure it displays */
@media (max-width: 768px) {
    .has-background-video .acv-header-video {
        display: block;
    }
}

/* Container and content */
.acv-header-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
}

.acv-header-content {
    max-width: 600px;
    margin: 0;
}

/* Text alignment variants */
.acv-text-left .acv-header-content {
    margin-left: 0;
    margin-right: auto;
    text-align: left;
    justify-self: start;
}

.acv-text-center .acv-header-content {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    justify-self: center;
}

.acv-text-right .acv-header-content {
    margin-left: auto;
    margin-right: 0;
    text-align: right;
    justify-self: end;
}

/* ============================================
   Entry Animation
   ============================================ */

/* Title starts hidden, slides up from below */
.acv-header-title {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.acv-header-loaded .acv-header-title {
    opacity: 1;
    transform: translateY(0);
}

/* CTA starts hidden, slides up with delay */
.acv-header-cta {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
}

.acv-header-loaded .acv-header-cta {
    opacity: 1;
    transform: translateY(0);
}

/* Typography */
.acv-header-title {
    font-family: 'Poppins', sans-serif;
    font-size: 4rem;
    font-weight: 400;
    line-height: 1.1;
    margin: 0 0 2rem 0;
    color: inherit;
}

.acv-header-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.4;
    margin: 0 0 1.5rem 0;
    opacity: 0.9;
}

.acv-header-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0 0 2rem 0;
    opacity: 0.85;
}

.acv-header-description p {
    margin: 0 0 1rem 0;
}

.acv-header-description p:last-child {
    margin-bottom: 0;
}

/* Call to Action Button */
.acv-header-cta {
    margin-top: 2.5rem;
}

/* Button styles - inherit from /css/buttons.css */
/* Large variant for header */
.acv-large-page-header .acv-btn {
    padding: 0.7rem 2rem;
    font-size: 1rem;
    font-weight: 400;
    border-radius: 50px;
}

.acv-btn-outline {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.acv-btn-ghost {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .acv-large-page-header {
        min-height: 500px;
        padding: 3rem 0;
    }

    .acv-header-container {
        padding: 0 1rem;
        align-items: flex-start;
    }

    .acv-header-content {
        max-width: 100%;
    }

    .acv-header-title {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }

    .acv-header-subtitle {
        font-size: 1.25rem;
    }

    .acv-header-description {
        font-size: 1rem;
    }

    .acv-header-cta {
        margin-top: 2rem;
    }

    .acv-btn {
        padding: 0.625rem 1.5rem;
        font-size: 0.9rem;
    }

    .acv-btn-large {
        padding: 1rem 2rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .acv-large-page-header {
        min-height: 450px;
        padding: 2.5rem 0;
    }
}

@media (max-width: 480px) {
    .acv-header-title {
        font-size: 3.5rem;
        text-align: center;
    }

    .acv-header-subtitle {
        font-size: 1.1rem;
    }

    .acv-header-content {
        max-width: 100%;
    }

    .acv-header-loaded .acv-header-cta {
        opacity: 1;
        text-align: center;
        transform: translateY(0);
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .acv-btn {
        transition: none;
    }

    .acv-btn:hover {
        transform: none;
    }

    .acv-header-title,
    .acv-header-cta {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .acv-large-page-header {
        border: 2px solid currentColor;
    }

}