/**
 * Big Hero Widget Styles
 * Full-width hero section with responsive image handling and dual CTA buttons
 */

/* =====================
   Container & Layout
   ===================== */

.big-hero-wrapper {
    position: relative;
    width: 100%;
    min-height: 700px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Vertical positioning */
.big-hero-wrapper[data-vertical="top"] {
    align-items: flex-start;
}

.big-hero-wrapper[data-vertical="center"] {
    align-items: center;
}

.big-hero-wrapper[data-vertical="bottom"] {
    align-items: flex-end;
}

/* =====================
   Image Container
   ===================== */

.big-hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.big-hero-image-desktop,
.big-hero-image-mobile {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Show desktop image on larger screens */
.big-hero-image-desktop {
    display: block;
}

.big-hero-image-mobile {
    display: none;
}

/* Show mobile image on smaller screens */
@media (max-width: 767px) {
    .big-hero-image-desktop {
        display: none;
    }
    
    .big-hero-image-mobile {
        display: block;
    }
}

/* =====================
   Content Overlay
   ===================== */

.big-hero-content-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 60px 20px;
}

.big-hero-content-inner {
    max-width: var(--pls-container-width, 1200px);
    margin: 0 auto;
    width: 100%;
}

/* Content alignment */
.big-hero-wrapper[data-alignment="left"] .big-hero-content-inner {
    text-align: left;
}

.big-hero-wrapper[data-alignment="center"] .big-hero-content-inner {
    text-align: center;
}

.big-hero-wrapper[data-alignment="right"] .big-hero-content-inner {
    text-align: right;
}

/* RTL Support */
html[dir="rtl"] .big-hero-wrapper[data-alignment="left"] .big-hero-content-inner {
    text-align: right;
}

html[dir="rtl"] .big-hero-wrapper[data-alignment="right"] .big-hero-content-inner {
    text-align: left;
}

/* =====================
   Typography
   ===================== */

.big-hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 15px 0;
    color: #222222;
}

.big-hero-subtitle {
    font-size: 24px;
    font-weight: 400;
    line-height: 1.4;
    margin: 0 0 20px 0;
    color: #666666;
}

.big-hero-body {
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 30px 0;
    color: #555555;
}

.big-hero-body p {
    margin: 0 0 10px 0;
}

.big-hero-body p:last-child {
    margin-bottom: 0;
}

/* =====================
   Buttons
   ===================== */

.big-hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

/* Align buttons based on content alignment */
.big-hero-wrapper[data-alignment="left"] .big-hero-buttons {
    justify-content: flex-start;
}

.big-hero-wrapper[data-alignment="center"] .big-hero-buttons {
    justify-content: center;
}

.big-hero-wrapper[data-alignment="right"] .big-hero-buttons {
    justify-content: flex-end;
}

/* RTL button alignment */
html[dir="rtl"] .big-hero-wrapper[data-alignment="left"] .big-hero-buttons {
    justify-content: flex-end;
}

html[dir="rtl"] .big-hero-wrapper[data-alignment="right"] .big-hero-buttons {
    justify-content: flex-start;
}

.big-hero-button {
    display: inline-block;
    padding: 12px 32px;
    min-width: 200px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 0;
    line-height: 1.5;
}

/* Primary Button - Black background with white text */
.big-hero-button-primary {
    background-color: #222222;
    color: #ffffff;
    border: 2px solid #222222;
    border-radius: var(--pls-border-radius);
}

.big-hero-button-primary:hover {
    background-color: #000000;
    border-color: #000000;
    color: #ffffff;
}

/* Secondary Button - Transparent with black border and text */
.big-hero-button-secondary {
    background-color: transparent;
    color: #222222;
    border: 2px solid #222222;
    border-radius: var(--pls-border-radius);
}

.big-hero-button-secondary:hover {
    background-color: #222222;
    color: #ffffff;
    border-color: #222222;
}

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

   @media (min-width: 768px) and (max-width: 1024px) {
    .big-hero-content-inner {
        width: 50%;
    }

    }
@media (max-width: 991px) {
    .big-hero-wrapper {
        min-height: 500px;
    }
    
    .big-hero-content-overlay {
        padding: 50px 20px;
    }
    
    .big-hero-title {
        font-size: 40px;
        margin-bottom: 12px;
    }
    
    .big-hero-subtitle {
        font-size: 20px;
        margin-bottom: 18px;
    }
    
    .big-hero-body {
        font-size: 15px;
        margin-bottom: 25px;
    }
    
    .big-hero-buttons {
        gap: 15px;
    }
    
    .big-hero-button {
        padding: 12px 28px;
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .big-hero-wrapper {
        min-height: 400px;
    }

    .big-hero-content-inner {
        width: 80%;
    }
    
    .big-hero-content-overlay {
        padding: 40px 15px;
    }
    
    .big-hero-title {
        font-size: 32px;
        margin-bottom: 10px;
    }
    
    .big-hero-subtitle {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .big-hero-body {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    /* Stack buttons on mobile */
    .big-hero-buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    
    .big-hero-button {
        width: 100%;
        padding: 12px 24px;
        font-size: 16px;
    }
    
    /* Center buttons on mobile regardless of alignment */
    .big-hero-wrapper[data-alignment="left"] .big-hero-buttons,
    .big-hero-wrapper[data-alignment="right"] .big-hero-buttons {
        align-items: stretch;
    }
}

@media (max-width: 480px) {
    .big-hero-wrapper {
        min-height: 350px;
    }
    
    .big-hero-content-overlay {
        padding: 30px 15px;
    }
    
    .big-hero-title {
        font-size: 28px;
        margin-bottom: 8px;
    }
    
    .big-hero-subtitle {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .big-hero-body {
        font-size: 14px;
        margin-bottom: 18px;
    }
    
    .big-hero-button {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* =====================
   Elementor Editor Support
   ===================== */

/* Ensure content is visible in Elementor editor */
.elementor-editor-active .big-hero-wrapper {
    min-height: 600px;
}

/* Make sure images don't conflict in editor */
.elementor-editor-active .big-hero-image-container {
    pointer-events: none;
}

