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

/* ========================================
   CSS VARIABLES
   ======================================== */

:root {
    --color-primary: #b2762a;
    --color-text: #252525;
    --color-white: #ffffff;
}

/* ========================================
   INNER PAGE BANNER SECTION - MAIN CONTAINER
   ======================================== */

.inner-page-banner-section {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* ========================================
   BACKGROUND IMAGE SECTION
   ======================================== */

.ipbs-background {
    position: relative;
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Overlay for better image contrast */
.ipbs-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
}

/* ========================================
   CONTENT SECTION
   ======================================== */

.ipbs-content-section {
    background-color: var(--color-white, #ffffff);
    width: 100%;
    padding: 60px 20px;
}

.ipbs-content-container {
    max-width: var(--theme-normal-container-max-width, 1290px);
    width: var(--theme-container-width, 100%);
    margin: 0 auto;
    text-align: center;
}

/* ========================================
   TITLE STYLING
   ======================================== */

.ipbs-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 48px;
    font-weight: 400;
    color: var(--color-text, #252525);
    margin: 0 0 16px 0;
    line-height: 1.2;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

/* Title Underline Accent */
.ipbs-title-underline {
    display: block;
    width: 100px;
    height: 4px;
    background-color: var(--color-primary, #b2762a);
    margin: 16px auto 0;
}

/* ========================================
   DESCRIPTION STYLING
   ======================================== */

.ipbs-description {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: var(--color-text, #252525);
    line-height: 1.6;
    margin: 24px auto 0;
    max-width: 800px;
}

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

/* Large Desktops */
@media (max-width: 1440px) {
    .ipbs-background {
        height: 380px;
    }
    
    .ipbs-title {
        font-size: 44px;
    }
}

/* Tablets and Small Desktops */
@media (max-width: 1024px) {
    .ipbs-background {
        height: 350px;
    }
    
    .ipbs-content-section {
        padding: 50px 20px;
    }
    
    .ipbs-title {
        font-size: 40px;
        letter-spacing: 0.12em;
    }
    
    .ipbs-description {
        font-size: 15px;
        max-width: 700px;
    }
}

/* Tablets Portrait */
@media (max-width: 768px) {
    .ipbs-background {
        height: 300px;
    }
    
    .ipbs-content-section {
        padding: 40px 15px;
    }
    
    .ipbs-title {
        font-size: 32px;
        letter-spacing: 0.1em;
        margin-bottom: 12px;
    }
    
    .ipbs-title-underline {
        width: 60px;
        height: 2px;
        margin-top: 12px;
    }
    
    .ipbs-description {
        font-size: 14px;
        margin-top: 20px;
        max-width: 600px;
    }
}

/* Mobile Devices */
@media (max-width: 480px) {
    .ipbs-background {
        height: 250px;
    }
    
    .ipbs-content-section {
        padding: 32px 15px;
    }
    
    .ipbs-title {
        font-size: 26px;
        letter-spacing: 0.08em;
        margin-bottom: 10px;
    }
    
    .ipbs-title-underline {
        width: 50px;
        height: 2px;
        margin-top: 10px;
    }
    
    .ipbs-description {
        font-size: 14px;
        margin-top: 16px;
        line-height: 1.5;
    }
}

/* Small Mobile Devices */
@media (max-width: 360px) {
    .ipbs-background {
        height: 220px;
    }
    
    .ipbs-title {
        font-size: 22px;
        letter-spacing: 0.06em;
    }
    
    .ipbs-description {
        font-size: 13px;
    }
}

/* ========================================
   ACCESSIBILITY & PERFORMANCE
   ======================================== */

/* Focus states for accessibility */
.inner-page-banner-section a:focus,
.inner-page-banner-section button:focus {
    outline: 2px solid var(--color-primary, #b2762a);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .inner-page-banner-section {
        page-break-inside: avoid;
    }
    
    .ipbs-background {
        height: 200px;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
    
    .ipbs-content-section {
        padding: 30px 0;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .ipbs-overlay {
        background: rgba(0, 0, 0, 0.2);
    }
    
    .ipbs-title-underline {
        height: 4px;
    }
}
