/**
 * Hero Video Frontend Styles
 */

/* Force full width - override WPBakery container padding */
.wpb_column:has(.hvw-hero-video),
.vc_column-inner:has(.hvw-hero-video),
.wpb_wrapper:has(.hvw-hero-video) {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.vc_row:has(.hvw-hero-video),
.wpb_row:has(.hvw-hero-video) {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100vw !important;
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
}

/* Hero Container */
.hvw-hero-video {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: var(--hvw-height, 100vh);
    min-height: var(--hvw-min-height, 500px);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* Video Wrapper */
.hvw-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Video Element */
.hvw-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Fallback Image */
.hvw-fallback-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Overlay */
.hvw-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--hvw-overlay, rgba(0, 0, 0, 0.5));
    z-index: 2;
}

/* Content */
.hvw-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 40px 20px;
    text-align: left;
}

/* Alignment */
.hvw-align-center .hvw-content {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.hvw-align-left .hvw-content {
    text-align: left;
    margin-right: auto;
    margin-left: 0;
    padding-left: var(--hvw-content-padding-left, 80px);
}

.hvw-align-right .hvw-content {
    text-align: right;
    margin-left: auto;
    margin-right: 0;
    padding-right: var(--hvw-content-padding-left, 80px);
}

/* Title */
.hvw-title {
    color: var(--hvw-title-color, #ffffff);
    font-size: var(--hvw-title-size, 56px);
    font-weight: 700;
    margin: 0 0 20px 0;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Subtitle */
.hvw-subtitle {
    color: var(--hvw-subtitle-color, #ffffff);
    font-size: 20px;
    line-height: 1.6;
    margin: 0 0 40px 0;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

/* Buttons Container */
.hvw-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hvw-align-center .hvw-buttons {
    justify-content: center;
}

.hvw-align-left .hvw-buttons {
    justify-content: flex-start;
}

.hvw-align-right .hvw-buttons {
    justify-content: flex-end;
}

/* CTA Button */
.hvw-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    background-color: var(--hvw-cta-bg, #ffffff);
    color: var(--hvw-cta-color, #000000);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hvw-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* WhatsApp Button */
.hvw-whatsapp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 30px;
    background-color: #25D366;
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.hvw-whatsapp-button:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    color: #ffffff;
}

.hvw-whatsapp-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 991px) {
    .hvw-title {
        font-size: calc(var(--hvw-title-size, 56px) * 0.7);
    }

    .hvw-subtitle {
        font-size: 18px;
    }

    .hvw-content {
        padding: 30px 20px;
    }
}

@media (max-width: 767px) {
    .hvw-hero-video {
        min-height: 400px;
        justify-content: center;
    }

    .hvw-title {
        font-size: calc(var(--hvw-title-size, 56px) * 0.55);
    }

    .hvw-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .hvw-content {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .hvw-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hvw-align-center .hvw-buttons,
    .hvw-align-left .hvw-buttons,
    .hvw-align-right .hvw-buttons {
        justify-content: center;
        align-items: center;
    }

    .hvw-cta-button,
    .hvw-whatsapp-button {
        width: 100%;
        max-width: 320px;
        padding: 14px 30px;
        justify-content: center;
    }

    .hvw-align-left .hvw-content,
    .hvw-align-right .hvw-content {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

.hvw-cta-button:focus,
.hvw-whatsapp-button:focus {
    outline: 3px solid #ffffff;
    outline-offset: 3px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .hvw-video {
        display: none;
    }
    
    .hvw-cta-button,
    .hvw-whatsapp-button {
        transition: none;
    }
}
