/**
 * Banner Section Block Styles
 *
 * Matches the "Banner Section" design: full-width hero image with a vertical
 * social icons tab anchored to the right edge, followed by a grey content
 * area with title, description and two CTA buttons.
 *
 * @package ACF Child Theme
 */

:root {
    --color-primary: #3a9bf7;
    --color-grey: #f3f3f3;
    --color-text: #252525;
    --color-white: #ffffff;
    --font-primary: 'Montserrat', sans-serif;
}

.banner-section {
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: transparent;
}

/* Image area
   ========================================================================== */
.banner-section__image-wrapper {
    position: relative;
    width: 100%;
    line-height: 0;
}

.banner-section__image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
}

/* Vertical social icons - white pill fixed to the right edge of the viewport */
.banner-section__social {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px 15px;
    background-color: var(--color-white, #ffffff);
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    z-index: 99;
}

.banner-section__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--color-primary, #3a9bf7);
    text-decoration: none;
    transition: color 0.25s ease, transform 0.25s ease;
}

.banner-section__social-link:hover,
.banner-section__social-link:focus-visible {
    color: var(--color-text, #252525);
    transform: scale(1.08);
}

.banner-section__social-link svg {
    width: 28px;
    height: 28px;
    display: block;
}

/* Content area
   ========================================================================== */
.banner-section__content {
    width: 100%;
    background-color: var(--color-grey, #f3f3f3);
    padding: 70px 0;
}

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

.banner-section__title {
    font-family: var(--font-primary), 'Montserrat', sans-serif;
    font-size: 45px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-text, #252525);
    margin: 0 0 24px 0;
}

.banner-section__description {
    font-family: var(--font-primary), 'Montserrat', sans-serif;
    font-size: 22px;
    line-height: 1.7;
    color: var(--color-text, #252525);
    max-width: 1100px;
    margin: 0 auto 36px auto;
}

.banner-section__description p {
    margin: 0 0 12px 0;
}

.banner-section__description p:last-child {
    margin-bottom: 0;
}

/* Buttons
   ========================================================================== */
.banner-section__buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 8px;
}

.banner-section__btn {
    display: inline-block;
    padding: 14px 40px;
    font-family: var(--font-primary), 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 1;
    border-radius: 5px;
    border: 2px solid transparent;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.banner-section__btn--primary {
    background-color: var(--color-primary, #3a9bf7);
    color: var(--color-white, #ffffff);
    border-color: var(--color-primary, #3a9bf7);
}

.banner-section__btn--primary:hover,
.banner-section__btn--primary:focus-visible {
    background-color: #2a86df;
    border-color: #2a86df;
    color: var(--color-white, #ffffff);
}

.banner-section__btn--secondary {
    background-color: transparent;
    color: var(--color-primary, #3a9bf7);
    border-color: var(--color-primary, #3a9bf7);
}

.banner-section__btn--secondary:hover,
.banner-section__btn--secondary:focus-visible {
    background-color: var(--color-primary, #3a9bf7);
    color: var(--color-white, #ffffff);
}

/* Tablet
   ========================================================================== */
@media (min-width: 769px) and (max-width: 1023px) {
    .banner-section__image {
        height: 300px;
    }

    .banner-section__content {
        padding: 55px 0;
    }

    .banner-section__title {
        font-size: 32px;
        margin-bottom: 20px;
    }

    .banner-section__description {
        font-size: 15px;
        margin-bottom: 30px;
    }

    .banner-section__social {
        padding: 10px 8px;
        gap: 8px;
    }

    .banner-section__social-link {
        width: 26px;
        height: 26px;
    }

    .banner-section__social-link svg {
        width: 20px;
        height: 20px;
    }
}

/* Mobile
   ========================================================================== */
@media (max-width: 768px) {
    .banner-section__image {
        height: 220px;
    }

    .banner-section__content {
        padding: 40px 0;
    }

    .banner-section__container {
        padding: 0 16px;
    }

    .banner-section__title {
        font-size: 26px;
        margin-bottom: 16px;
    }

    .banner-section__description {
        font-size: 14px;
        line-height: 1.65;
        margin-bottom: 26px;
    }

    .banner-section__buttons {
        flex-direction: column;
        gap: 12px;
    }

    .banner-section__btn {
        width: 100%;
        max-width: 280px;
        padding: 13px 24px;
        font-size: 15px;
    }

    .banner-section__social {
        padding: 8px 6px;
        gap: 6px;
        border-top-left-radius: 4px;
        border-bottom-left-radius: 4px;
    }

    .banner-section__social-link {
        width: 24px;
        height: 24px;
    }

    .banner-section__social-link svg {
        width: 18px;
        height: 18px;
    }
}
