/**
 * Hero Section 4 - Frontend Styles
 * Centered layout with background image and overlay
 */

/* ===================================
   Base Section Styles
   =================================== */
.wp-block-wblocks-hero-section-4 {
    position: relative;
    min-height: var(--wb-hero4-min-height, 500px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Background image - styles are applied inline via render.php */

/* Overlay */
.wb-hero-section-4__overlay {
    position: absolute;
    inset: 0;
    background-color: var(--wb-hero4-overlay-color, #0f172a);
    opacity: var(--wb-hero4-overlay-opacity, 0.4);
    pointer-events: none;
    z-index: 1;
}

/* ===================================
   Inner Container (Centered)
   =================================== */
.wb-hero-section-4__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--wb-hero4-content-max-width, 800px);
    margin: 0 auto;
    padding: var(--wb-hero4-pad-top, 80px) 24px var(--wb-hero4-pad-bottom, 80px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 32px;
}

/* ===================================
   Content Section
   =================================== */
.wb-hero-section-4__content-wrapper {
    width: 100%;
}

.wb-hero-section-4__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

/* Kicker */
.wb-hero-section-4__kicker {
    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: var(--wb-hero4-kicker-text-transform, uppercase);
    color: var(--wb-hero4-accent, #16a34a);
    margin-bottom: 4px;
}

/* Heading */
.wb-hero-section-4__heading {
    font-size: clamp(1.75rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--wb-hero4-heading, #0f172a);
    margin: 0;
    max-width: 100%;
}

/* Description */
.wb-hero-section-4__description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.6;
    color: var(--wb-hero4-description, #475569);
    margin: 8px 0 0;
    max-width: 90%;
}

/* ===================================
   CTA Buttons
   =================================== */
.wb-hero-section-4__ctas-wrapper {
    width: 100%;
}

.wb-hero-section-4__ctas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--wb-hero4-cta-gap, 16px);
}

.wb-hero-section-4__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.9em 1.9em;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    font-family: inherit;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
    white-space: nowrap;
    cursor: pointer;
    border: none;
}

/* Primary button */
.wb-hero-section-4__cta.is-primary {
    background: var(--wb-hero4-primary-bg, #16a34a);
    color: var(--wb-hero4-primary-text, #ffffff);
}

.wb-hero-section-4__cta.is-primary:hover,
.wb-hero-section-4__cta.is-primary:focus {
    background: var(--wb-hero4-primary-bg-hover, #15803d);
    transform: translateY(-1px);
    box-shadow: 0 18px 36px rgba(16, 185, 129, 0.26);
}

/* Secondary button */
.wb-hero-section-4__cta.is-secondary {
    background: var(--wb-hero4-secondary-bg, #d1fae5);
    color: var(--wb-hero4-secondary-text, #0f172a);
    border: 1px solid var(--wb-hero4-secondary-border, #bbf7d0);
}

.wb-hero-section-4__cta.is-secondary:hover,
.wb-hero-section-4__cta.is-secondary:focus {
    background: var(--wb-hero4-secondary-bg-hover, #a7f3d0);
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(16, 185, 129, 0.15);
}

/* Outline button style (no fill) */
.wb-hero-section-4__cta.is-primary.is-outline {
    background: transparent;
    border: 2px solid var(--wb-hero4-primary-border, var(--wb-hero4-primary-bg, #16a34a));
    color: var(--wb-hero4-primary-text, #ffffff);
}

.wb-hero-section-4__cta.is-primary.is-outline:hover,
.wb-hero-section-4__cta.is-primary.is-outline:focus {
    background: var(--wb-hero4-primary-border, var(--wb-hero4-primary-bg, #16a34a));
    color: var(--wb-hero4-primary-text, #ffffff);
    transform: translateY(-1px);
    box-shadow: 0 18px 36px rgba(16, 185, 129, 0.26);
}

.wb-hero-section-4__cta.is-secondary.is-outline {
    background: transparent;
    border: 2px solid var(--wb-hero4-secondary-border, #bbf7d0);
    color: var(--wb-hero4-secondary-text, #0f172a);
}

.wb-hero-section-4__cta.is-secondary.is-outline:hover,
.wb-hero-section-4__cta.is-secondary.is-outline:focus {
    background: var(--wb-hero4-secondary-border, #bbf7d0);
    color: var(--wb-hero4-secondary-text, #0f172a);
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(16, 185, 129, 0.15);
}

/* Button icon */
.wb-hero-section-4__icon {
    flex-shrink: 0;
}

/* ===================================
   Features List
   =================================== */
.wb-hero-section-4__features-wrapper {
    width: 100%;
}

.wb-hero-section-4__features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--wb-hero4-feature-gap, 24px);
}

.wb-hero-section-4__feature {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wb-hero-section-4__feature-icon {
    font-size: var(--wb-hero4-feature-icon-size, 24px);
    color: var(--wb-hero4-feature-icon-color, #16a34a);
    min-width: var(--wb-hero4-feature-icon-size, 24px);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wb-hero-section-4__feature-icon.is-image {
    width: var(--wb-hero4-feature-icon-size, 24px);
    height: var(--wb-hero4-feature-icon-size, 24px);
    object-fit: contain;
}

.wb-hero-section-4__feature-text {
    font-size: var(--wb-hero4-feature-text-size, 16px);
    color: var(--wb-hero4-feature-text-color, #0f172a);
    font-weight: 500;
}

/* ===================================
   Mobile Responsive
   =================================== */
@media (max-width: 760px) {
    .wp-block-wblocks-hero-section-4 {
        min-height: auto;
    }

    .wb-hero-section-4__inner {
        padding: var(--wb-hero4-pad-top, 60px) 16px var(--wb-hero4-pad-bottom, 60px);
        gap: 24px;
        display: flex;
        flex-direction: column;
    }

    /* Mobile section ordering */
    .wb-hero-section-4__content-wrapper {
        order: var(--wb-hero4-content-order, 1);
    }

    .wb-hero-section-4__ctas-wrapper {
        order: var(--wb-hero4-ctas-order, 2);
    }

    .wb-hero-section-4__features-wrapper {
        order: var(--wb-hero4-features-order, 3);
    }

    /* Mobile heading font size override */
    .wb-hero-section-4__heading {
        font-size: var(--wb-hero4-heading-font-mobile, clamp(1.5rem, 7vw, 2.25rem));
    }

    /* Mobile description font size override */
    .wb-hero-section-4__description {
        font-size: var(--wb-hero4-description-font-mobile, clamp(0.9rem, 3.5vw, 1.1rem));
        max-width: 100%;
    }

    /* Mobile button layout - stacked (default) */
    .wb-hero-section-4__ctas {
        flex-direction: column;
        width: 100%;
    }

    .wb-hero-section-4__cta {
        width: 100%;
        justify-content: center;
    }

    /* Mobile button layout - side by side */
    .wp-block-wblocks-hero-section-4.has-side-by-side-mobile .wb-hero-section-4__ctas {
        flex-direction: row;
    }

    .wp-block-wblocks-hero-section-4.has-side-by-side-mobile .wb-hero-section-4__cta {
        flex: 1;
        width: auto;
        padding: 0.8em 1.2em;
        font-size: 0.9rem;
    }

    /* Mobile features - vertical stack */
    .wb-hero-section-4__features {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .wb-hero-section-4__feature {
        justify-content: center;
    }
}

/* ===================================
   Tablet Adjustments
   =================================== */
@media (min-width: 761px) and (max-width: 1023px) {
    .wb-hero-section-4__inner {
        padding-left: 32px;
        padding-right: 32px;
    }

    .wb-hero-section-4__heading {
        font-size: clamp(1.75rem, 4vw, 2.75rem);
    }
}

/* ===================================
   Alignment Support
   =================================== */
.wp-block-wblocks-hero-section-4.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.wp-block-wblocks-hero-section-4.alignwide {
    width: calc(100% + 80px);
    max-width: calc(100vw - 40px);
    margin-left: -40px;
}

@media (max-width: 760px) {
    .wp-block-wblocks-hero-section-4.alignwide {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
    }
}

/* ===================================
   Print Styles
   =================================== */
@media print {
    .wp-block-wblocks-hero-section-4 {
        min-height: auto;
        background-image: none !important;
    }

    .wb-hero-section-4__overlay {
        display: none;
    }

    .wb-hero-section-4__heading,
    .wb-hero-section-4__description,
    .wb-hero-section-4__feature-text {
        color: #000 !important;
    }
}
