/**
 * 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;
    color: #ffffff;
    overflow: hidden;
}

.acv-large-page-header.has-background-video {
    padding: 4rem 0;
    min-height: 500px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.acv-large-page-header.has-background-image {
    padding: 0;
}

.acv-large-page-header.has-background-video {
    min-height: clamp(520px, 60vw, 760px);
}

.acv-large-page-header.has-background-video .acv-header-container {
    min-height: 500px;
    display: flex;
    align-items: center;
}

/* Image Background: Two-column layout */
.acv-large-page-header.has-background-image .acv-header-container {
    display: flex;
    gap: 0;
    align-items: stretch;
    min-height: 500px;
    height: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

/* 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: 36px 62px;
    padding: 0 6rem;
    height: 100%;
    display: flex;
    align-items: center;
}

/* Restore centered container for high-DPI / 150% scaled displays */
@media (min-resolution: 144dpi) and (max-resolution: 200dpi) {
    .acv-header-container {
        margin: 0 auto;
    }
}

.acv-header-content {
    max-width: 600px;
    margin: 0;
}

.acv-large-page-header.has-background-image .acv-header-content {
    flex: 0 0 50%;
    max-width: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(70px, 7vw, 110px) clamp(30px, 4vw, 60px) clamp(70px, 7vw, 110px) 0;
}

@media (min-resolution: 144dpi) {
    .acv-large-page-header.has-background-image .acv-header-content {
        padding-left: clamp(64px, 4vw, 104px);
    }
}

/* Media column for image backgrounds */
.acv-header-media {
    position: relative;
    flex: 1 0 60%;
    min-height: 500px;
    overflow: hidden;
    align-self: stretch;
}

.acv-header-media-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
}

/* 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 20px;
        margin: 0 auto;
        align-items: flex-start;
    }

    .acv-large-page-header.has-background-image .acv-header-container {
        flex-direction: column;
        gap: 30px;
        margin: 0 auto;
    }

    .acv-header-content {
        max-width: 100%;
    }

    .acv-large-page-header.has-background-image .acv-header-content,
    .acv-large-page-header.has-background-image .acv-header-media {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .acv-header-media {
        display: none;
    }

    .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: clamp(320px, 90vw, 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;
    }

}