/**
 * Home Page Banner Section Block Styles
 * 
 * @package ACF Child Theme
 */

:root {
    --green-primary: #006a3c;
    --orange-accent: #f7b119;
    --light-gray: #f5f6f6;
    --dark-text: #252525;
    --light-green: #b0cfc1;
    --white: #ffffff;
}

/* Main Section Container - Full Width Background */
.home-page-banner-section-block {
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* Wrapper for Background and Overlay */
.hpb-wrapper {
    position: relative;
    width: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
}

/* Background Image - 60% Right Side */
.hpb-background-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 65%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

/* Background Video - 60% Right Side */
.hpb-background-video {
    position: absolute;
    top: 0;
    right: 0;
    width: 62%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.hpb-background-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Overlay Image - Full Width */
.hpb-overlay-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.hpb-overlay-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Hide mobile overlay on desktop */
.hpb-overlay-mobile {
    display: none;
}

/* Show desktop overlay on desktop */
.hpb-overlay-desktop {
    display: block;
}

/* Content Container - WordPress Layout Width */
.hpb-container {
    max-width: var(--theme-normal-container-max-width, 1290px);
    width: var(--theme-container-width, 100%) !important;
    margin: 0 auto;
    padding: 80px 20px;
    position: relative;
    z-index: 3;
    width: 100%;
}

/* Content Wrapper */
.hpb-content {
    max-width: 650px;
}

/* Title */
.hpb-title {
    font-size: 64px;
    font-weight: bold;
    color: var(--white);
    line-height: 1.2;
    margin: 0 0 20px 0;
    font-family: 'Roboto', sans-serif;
}

/* Description */
.hpb-description {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.6;
    color: #b0cfc1;
    margin: 0 0 30px 0;
}

.hpb-description p {
    margin-bottom: 12px;
    color: #b0cfc1;
}

.hpb-description p:last-child {
    margin-bottom: 0;
}

/* Logo Image */
.hpb-logo {
    margin: 0 0 30px 0;
}

.hpb-logo img {
    max-width: 250px;
    height: auto;
    display: block;
}

/* Buttons Wrapper */
.hpb-buttons-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

/* Base Button Styles */
.hpb-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 14px;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
    text-decoration: none;
    border-radius: 0;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    white-space: nowrap;
}

/* Button element specific styles */
button.hpb-button {
    background: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.hpb-button-icon {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.hpb-button-icon svg {
    width: 16px;
    height: 16px;
    display: block;
}

/* Default Button Style */
.hpb-button-default {
    background-color: var(--orange-accent);
    color: var(--white);
    border-color: var(--orange-accent);
}

.hpb-button-default:hover {
    background-color: var(--green-primary);
    border-color: var(--orange-accent);
    color: var(--white);
}

/* Outlined Button Style */
.hpb-button-outlined {
    background-color: transparent;
    color: var(--white);
    border-color: var(--orange-accent);
}

.hpb-button-outlined:hover {
    background-color: var(--orange-accent);
    border-color: var(--orange-accent);
    color: var(--white);
}

/* Focus States for Accessibility */
.hpb-button:focus {
    outline: 2px solid var(--white);
    outline-offset: 2px;
}

/* Tablet Styles */
@media (max-width: 1152px) {
    .hpb-wrapper {
        min-height: auto;
        flex-direction: column;
    }
    
    /* Upper part: Background image with overlay */
    .hpb-background-image {
        position: relative;
        width: 100%;
        height: 400px;
        opacity: 1;
    }
    
    /* Upper part: Background video with overlay */
    .hpb-background-video {
        position: relative;
        width: 100%;
        height: 400px;
    }
    
    /* Show mobile overlay, hide desktop overlay */
    .hpb-overlay-mobile {
        display: block;
    }
    
    .hpb-overlay-desktop {
        display: none;
    }
    
    /* Mobile overlay image positioning */
    .hpb-overlay-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 400px;
    }
    
    .hpb-overlay-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    /* Below part: Green background with content */
    .hpb-container {
        position: relative;
        background-color: var(--green-primary);
        padding: 40px 20px !important;
        width: 100% !important;
        max-width: 100%;
        margin: 0;
    }
    
    .hpb-content {
        max-width: 100%;
    }
    
    .hpb-title {
        font-size: 40px;
    }
    
    .hpb-description {
        font-size: 16px;
        margin-bottom: 24px;
    }
    
    .hpb-logo {
        margin-bottom: 24px;
    }
    
    .hpb-logo img {
        max-width: 200px;
    }
    
    .hpb-buttons-wrapper {
        flex-direction: row;
        align-items: flex-start;
        gap: 12px;
    }
    
    .hpb-button {
        font-size: 16px;
        padding: 12px 24px;
        width: auto;
        justify-content: center;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .hpb-wrapper {
        min-height: auto;
        flex-direction: column;
    }
    
    /* Upper part: Background image with overlay */
    .hpb-background-image {
        position: relative;
        width: 100%;
        height: 300px;
        opacity: 1;
    }
    
    /* Upper part: Background video with overlay */
    .hpb-background-video {
        position: relative;
        width: 100%;
        height: 300px;
    }
    
    /* Show mobile overlay, hide desktop overlay */
    .hpb-overlay-mobile {
        display: block;
    }
    
    .hpb-overlay-desktop {
        display: none;
    }
    
    /* Mobile overlay image positioning */
    .hpb-overlay-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 300px;
    }
    
    .hpb-overlay-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    /* Below part: Green background with content */
    .hpb-container {
        position: relative;
        background-color: var(--green-primary);
        padding: 40px 20px !important;
        width: 100% !important;
        max-width: 100%;
        margin: 0;
    }
    
    .hpb-content {
        max-width: 100%;
    }
    
    .hpb-title {
        font-size: 40px;
    }
    
    .hpb-description {
        font-size: 16px;
        margin-bottom: 24px;
    }
    
    .hpb-logo {
        margin-bottom: 24px;
    }
    
    .hpb-logo img {
        max-width: 200px;
    }
    
    .hpb-buttons-wrapper {
        flex-direction: row;
        align-items: flex-start;
        gap: 12px;
    }
    
    .hpb-button {
        font-size: 16px;
        padding: 12px 24px;
        width: auto;
        justify-content: center;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .hpb-wrapper {
        min-height: auto;
    }
    
    /* Upper part: Smaller height for small screens */
    .hpb-background-image {
        height: 250px;
    }
    
    .hpb-background-video {
        height: 250px;
    }
    
    .hpb-overlay-image {
        height: 250px;
    }
    
    /* Below part: Adjusted padding */
    .hpb-container {
        padding: 30px 15px !important;
        background-color: var(--green-primary);
    }
    
    .hpb-title {
        font-size: 32px;
        margin-bottom: 16px;
    }
    
    .hpb-description {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .hpb-logo {
        margin-bottom: 20px;
    }
    
    .hpb-logo img {
        max-width: 180px;
    }
    
    .hpb-button {
        font-size: 14px;
        padding: 10px 20px;
        gap: 8px;
    }
    
    .hpb-button-icon svg {
        width: 14px;
        height: 16px;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .hpb-button {
        transition: none;
    }
}

/* Print Styles */
@media print {
    .hpb-background-image {
        opacity: 0.2;
    }
    
    .hpb-overlay-image {
        display: none;
    }
    
    .hpb-buttons-wrapper {
        display: none;
    }
}

