/* ==========================================================================
   FozDigital Page Hero
   Signature page hero with radial shadow, negative margin typography,
   and high-priority LCP preloading.
   ========================================================================== */

.wp-block-fozdigital-page-hero.foz-page-hero {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    margin-top: 130px !important;
    margin-block-start: 130px !important;
    margin-bottom: var(--wp--preset--spacing--60, 40px);
}

.entry-content > .wp-block-fozdigital-page-hero.foz-page-hero:not(:first-child),
.is-layout-constrained > .wp-block-fozdigital-page-hero.foz-page-hero:not(:first-child) {
    margin-top: var(--wp--preset--spacing--80, 80px) !important;
    margin-block-start: var(--wp--preset--spacing--80, 80px) !important;
}

/* alignfull breakout */
.wp-block-fozdigital-page-hero.alignfull {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

@media screen and (min-width: 768px) {
    .wp-block-fozdigital-page-hero.alignfull {
        max-width: 100vw !important;
        width: 100vw !important;
        margin-left: calc(50% - 50vw) !important;
        margin-right: calc(50% - 50vw) !important;
    }
}

/* 1. Hero Media Container (Cover visual layer) */
.foz-page-hero .foz-page-hero-media {
    position: relative;
    width: 100%;
    height: var(--foz-hero-h-desk, 417px);
    min-height: var(--foz-hero-h-desk, 417px);
    margin-bottom: var(--wp--preset--spacing--80, 80px);
    overflow: hidden;
}

.foz-page-hero .foz-page-hero-picture {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.foz-page-hero .foz-page-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    margin: 0;
    padding: 0;
}

/* Vignette Layer 1: Radial Gradient */
.foz-page-hero .foz-page-hero-vignette {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background: radial-gradient(
        ellipse at center,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0) 50%,
        var(--theme-palette-color-2, #161616) 75%,
        var(--theme-palette-color-2, #161616) 100%
    );
    pointer-events: none;
}

/* Vignette Layer 2: Inset Box Shadow */
.foz-page-hero .foz-page-hero-vignette::after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    box-shadow: inset 0 0 100px 50px var(--theme-palette-color-2, #161616);
    pointer-events: none;
}

/* 2. Content Area (Pulls up into the media via exact negative margin) */
.foz-page-hero .foz-page-hero-content {
    position: relative;
    z-index: 10;
    margin-top: var(--foz-hero-mt-desk, -200px);
    min-height: 220px;
    justify-content: center;
    max-width: var(--foz-hero-max-w, 950px);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    pointer-events: auto;
}

/* Title (H1) */
.foz-page-hero .foz-page-hero-title {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-family: var(--wp--preset--font-family--merriweather, 'Merriweather', serif) !important;
    color: #ffffff !important;
    text-align: center !important;
    font-weight: 400 !important;
    letter-spacing: -0.01em;
    line-height: 1.22 !important;
    font-size: var(--foz-title-size, 56px);
    margin: 0 0 20px 0 !important;
    padding: 0 !important;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}

/* Subtitle & Paragraphs */
.foz-page-hero .foz-page-hero-subtitle {
    font-family: var(--wp--preset--font-family--outfit, 'Outfit', sans-serif) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    text-align: center !important;
    max-width: 780px !important;
    width: 100%;
    margin: 0 auto !important;
    padding: 0 !important;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.foz-page-hero .foz-page-hero-subtitle p {
    color: inherit;
    margin: 0 0 16px 0 !important;
    padding: 0 !important;
}

.foz-page-hero .foz-page-hero-subtitle p:first-child {
    font-size: var(--foz-sub-p1-size, 1.25rem) !important;
    line-height: 1.7 !important;
}

.foz-page-hero .foz-page-hero-subtitle p:nth-child(2),
.foz-page-hero .foz-page-hero-subtitle p:last-child {
    font-size: var(--foz-sub-p2-size, 1.125rem) !important;
    line-height: 1.7 !important;
}

.foz-page-hero .foz-page-hero-subtitle p:last-child {
    margin-bottom: 0 !important;
}

/* CTA Button */
.foz-page-hero .foz-page-hero-cta {
    margin-top: 26px;
    display: flex;
    justify-content: center;
}

.foz-page-hero .foz-page-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 38px;
    background: #bb141a;
    color: #ffffff !important;
    font-family: var(--wp--preset--font-family--outfit, 'Outfit', sans-serif);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    border-radius: 4px;
    text-decoration: none !important;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 14px rgba(187, 20, 26, 0.4);
}

.foz-page-hero .foz-page-hero-btn:hover {
    background: #991015;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(187, 20, 26, 0.5);
}

/* ==========================================================================
   Mobile Responsive Adjustments
   ========================================================================== */
@media screen and (max-width: 767px) {
    .wp-block-fozdigital-page-hero.foz-page-hero {
        margin-top: 110px !important;
        margin-block-start: 110px !important;
    }

    .entry-content > .wp-block-fozdigital-page-hero.foz-page-hero:not(:first-child),
    .is-layout-constrained > .wp-block-fozdigital-page-hero.foz-page-hero:not(:first-child) {
        margin-top: 60px !important;
        margin-block-start: 60px !important;
    }

    .foz-page-hero .foz-page-hero-media {
        height: var(--foz-hero-h-mob, 380px) !important;
        min-height: var(--foz-hero-h-mob, 380px) !important;
        margin-bottom: var(--wp--preset--spacing--80, 80px) !important;
    }

    .foz-page-hero .foz-page-hero-vignette::after {
        box-shadow: inset 0 0 60px 30px var(--theme-palette-color-2, #161616) !important;
    }

    .foz-page-hero .foz-page-hero-content {
        margin-top: var(--foz-hero-mt-mob, -160px) !important;
        min-height: 180px !important;
        justify-content: center !important;
        padding: 0 16px !important;
    }

    .foz-page-hero .foz-page-hero-title {
        font-size: clamp(1.35rem, 4.5vw, 1.65rem) !important;
        padding: 0 10px !important;
        line-height: 1.25 !important;
        margin-bottom: 14px !important;
    }

    .foz-page-hero .foz-page-hero-subtitle {
        max-width: 100% !important;
    }

    .foz-page-hero .foz-page-hero-subtitle p:first-child {
        font-size: 1.05rem !important;
        line-height: 1.55 !important;
        margin-bottom: 12px !important;
    }

    .foz-page-hero .foz-page-hero-subtitle p:nth-child(2),
    .foz-page-hero .foz-page-hero-subtitle p:last-child {
        font-size: 0.95rem !important;
        line-height: 1.55 !important;
    }

    .foz-page-hero .foz-page-hero-btn {
        width: 100%;
        max-width: 280px;
        padding: 12px 24px;
    }
}
