.babymoon-hero {
    /* Full bleed: remove the theme/page-builder left gutter and span the viewport. */
    width: 100vw !important;
    max-width: 100vw !important;
    position: relative;
    left: auto !important;
    margin-left: calc((100% - 100vw) / 2) !important;
    margin-right: calc((100% - 100vw) / 2) !important;
    transform: none !important;

    /* Full-screen hero like the reference page */
    min-height: 100vh;
    height: 100vh;

    /* Keep the image crisp and proportional */
    background-position: var(--babymoon-hero-position, center top);
    background-size: cover;
    background-repeat: no-repeat;

    /* Parallax/fixed-background effect while page scrolls */
    background-attachment: fixed;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    padding: 70px 24px;
    overflow: hidden;
    box-sizing: border-box;
}

.babymoon-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, var(--babymoon-hero-overlay, .55));
    pointer-events: none;
}

.babymoon-hero__content {
    position: relative;
    z-index: 1;
    width: min(100%, 1100px);
    margin: 0 auto;
}

.babymoon-hero__title {
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(42px, 5.8vw, 76px);
    line-height: 1.05;
    font-weight: 700;
    opacity: 0;
    transform: translateY(28px);
    animation: babymoonFadeUp .9s cubic-bezier(.2,.7,.2,1) .15s forwards;
}

.babymoon-hero__subtitle {
    margin: 0 0 30px;
    color: #fff;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.5;
    opacity: 0;
    transform: translateY(24px);
    animation: babymoonFadeUp .85s cubic-bezier(.2,.7,.2,1) .45s forwards;
}

.babymoon-hero__button {
    display: inline-block;
    padding: 16px 36px;
    border-radius: 8px;
    background: #ff6a1a;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 18px;
    line-height: 1;
    font-weight: 700;
    opacity: 0;
    transform: translateY(20px) scale(.97);
    animation: babymoonButtonIn .75s cubic-bezier(.2,.7,.2,1) .75s forwards;
    transition: transform .2s ease, opacity .2s ease, box-shadow .2s ease;
}

.babymoon-hero__button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0,0,0,.18);
}

@keyframes babymoonFadeUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes babymoonButtonIn {
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .babymoon-hero__title,
    .babymoon-hero__subtitle,
    .babymoon-hero__button {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* On mobile, fixed background attachment is unreliable in many browsers.
   Keep the same visual composition but let the background move with the hero. */
html,
body {
    overflow-x: clip;
}

@media (max-width: 782px) {
    .babymoon-hero {
        width: 100vw !important;
        max-width: 100vw !important;
        left: auto !important;
        margin-left: calc((100% - 100vw) / 2) !important;
        margin-right: calc((100% - 100vw) / 2) !important;
        transform: none !important;
        height: 100vh;
        min-height: 100vh;
        height: 100svh;
        min-height: 100svh;
        height: 100dvh;
        min-height: 100dvh;
        background-attachment: scroll;
        background-position: var(--babymoon-hero-position, center center);
        padding: calc(34px + env(safe-area-inset-top)) calc(18px + env(safe-area-inset-right)) calc(34px + env(safe-area-inset-bottom)) calc(18px + env(safe-area-inset-left));
    }

    .babymoon-hero__title {
        font-size: clamp(36px, 10vw, 54px);
    }

    .babymoon-hero__content {
        width: min(100%, 680px);
    }

    .babymoon-hero__subtitle {
        font-size: clamp(16px, 4.5vw, 20px);
    }

    .babymoon-hero__button {
        padding: 15px 28px;
        font-size: 17px;
        max-width: 100%;
    }
}

.babymoon-hero-empty {
    background: #eee;
    min-height: 240px;
    color: #333;
}

.babymoon-hero-empty code {
    word-break: break-all;
}
