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

/* ============================================
   Variables
   ============================================ */
:root {
    --hbs-light-gray: #f5f5f5;
    --hbs-purple-primary: #8c47c0;
    --hbs-light-purple: #c67ffb;
    --hbs-orange-accent: #d98b20;
    --hbs-white: #ffffff;
    --hbs-overlay-opacity: 0.6;
}

/* ============================================
   Main Section Styles
   ============================================ */
.home-banner-section {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hbs-background {
    position: relative;
    width: 100%;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

.hbs-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, var(--hbs-overlay-opacity));
    z-index: 1;
}

/* ============================================
   Content Wrapper and Grid
   ============================================ */
.hbs-content-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--theme-normal-container-max-width, 1290px);
    margin: 0 auto;
    padding: 80px 20px;
}

.hbs-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* ============================================
   Text Content Column
   ============================================ */
.hbs-text-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hbs-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--hbs-light-gray);
    margin: 0;
}

.hbs-description {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--hbs-light-gray);
    margin: 0;
}

/* ============================================
   Buttons
   ============================================ */
.hbs-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 8px;
}

.hbs-buttons .btn {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    white-space: nowrap;
}

/* Default Button (Filled with Gradient) */
.hbs-buttons .btn-default {
    background: linear-gradient(to right, var(--hbs-light-purple), var(--hbs-purple-primary));
    color: var(--hbs-white);
    border: none;
}

.hbs-buttons .btn-default:hover {
    background: var(--hbs-orange-accent);
    color: var(--hbs-white);
}

/* Outlined Button */
.hbs-buttons .btn-outlined {
    background-color: transparent;
    color: var(--hbs-white);
    border: 2px solid var(--hbs-white);
}

.hbs-buttons .btn-outlined:hover {
    background: linear-gradient(to right, var(--hbs-light-purple), var(--hbs-purple-primary));
    color: var(--hbs-white);
    border: none;
}

/* ============================================
   Media Content Column
   ============================================ */
.hbs-media-content {
    position: relative;
    width: 100%;
}

.hbs-video-wrapper,
.hbs-image-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: rgba(0, 0, 0, 0.3);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.hbs-video-wrapper iframe,
.hbs-video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.hbs-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hbs-video-wrapper video {
    object-fit: cover;
}

/* ============================================
   Responsive Design
   ============================================ */

/* Tablet and below (max-width: 992px) */
@media (max-width: 992px) {
    .hbs-background {
        min-height: 500px;
    }
    
    .hbs-content-wrapper {
        padding: 60px 20px;
    }
    
    .hbs-content-grid {
        gap: 40px;
    }
    
    .hbs-title {
        font-size: 40px;
    }
    
    .hbs-description {
        font-size: 16px;
    }
    
    .hbs-buttons .btn {
        font-size: 16px;
        padding: 12px 28px;
    }
}

/* Mobile and below (max-width: 768px) */
@media (max-width: 768px) {
    .hbs-background {
        min-height: auto;
    }
    
    .hbs-content-wrapper {
        padding: 40px 20px;
    }
    
    .hbs-content-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    /* Reverse order on mobile: Media first, then text */
    .hbs-media-content {
        order: -1;
    }
    
    .hbs-title {
        font-size: 32px;
    }
    
    .hbs-description {
        font-size: 15px;
    }
    
    .hbs-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .hbs-buttons .btn {
        width: 100%;
        justify-content: center;
        font-size: 16px;
        padding: 14px 32px;
    }
}

/* Small mobile (max-width: 480px) */
@media (max-width: 480px) {
    .hbs-content-wrapper {
        padding: 32px 16px;
    }
    
    .hbs-title {
        font-size: 28px;
    }
    
    .hbs-description {
        font-size: 14px;
    }
    
    .hbs-buttons .btn {
        font-size: 15px;
        padding: 12px 24px;
    }
}

/* ============================================
   Admin/Editor Preview Styles
   ============================================ */
.editor-styles-wrapper .home-banner-section {
    margin: 0;
}

.editor-styles-wrapper .hbs-background {
    min-height: 400px;
}

.editor-styles-wrapper .hbs-content-wrapper {
    padding: 40px 20px;
}
