/* ============================================================
   NearU - Homepage Hero UNIFIED composition (front-page only)
   ------------------------------------------------------------
   Turns the two-column hero into one connected design: the merchant
   collage (merchant + phone + dashboard) bleeds across the right of
   the hero, and a curved white overlay sweeps in from the left so the
   copy sits on clean white and the image melts into it - no hard
   left/right seam. Premium SaaS feel.

   CSS + asset only. Reuses existing tokens, fonts, button styles and
   copy. Loaded AFTER hero-section.css / hero-rebuild.css so it wins.
   Every selector is .nearu-home-scoped. NO :root.

   The collage already contains the phone + dashboard, so the old
   CSS device layers (.nearu-hero-stage) are hidden here.
   ============================================================ */

/* ============================================================
   1. HERO SHELL - becomes a full-bleed canvas for the collage
   ============================================================ */
.nearu-home .nearu-hero {
    position: relative;
    /* Base still uses the brand soft gradient as a fallback tint. */
    /* background: var(--brand-gradient-soft);
    padding-top: 0;
    padding-bottom: 40px;
    min-height: 660px;
    overflow: hidden;
    display: block;
    width: 100%;
    box-sizing: border-box;
    flex: 0 0 auto;
    align-self: stretch;
    /* 1 + 2. Contain within the site width with side margins, and round the
       whole hero into a card. The max-width matches the site container
       (.container = 1140px content + gutters -> ~1200px outer card). */
    /* max-width: 1250px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 28px; */
    /* 2 + 3. Rounded corners on the whole hero; overflow:hidden (above)
       clips the collage background + overlay to the radius so nothing
       spills past the rounded edges. 
   /* border-radius: 12px; */
}

/* ------------------------------------------------------------
   1a. COLLAGE LAYER - right-anchored, full-bleed background.
   Sits behind everything; the merchant is the primary focus on
   the right. Uses the supplied hero-nearu-collage.png.
   ------------------------------------------------------------ */
.nearu-home .nearu-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;        /* 3. follow the hero's rounded corners */
    background-image: url("../images/hero/hero-nearu-collage.png");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: cover;        /* fill the hero, anchored right */
    /* Shift the focal point so the merchant sits in the right ~55%. */
    background-position: right 0 top 50%;
}

/* ------------------------------------------------------------
   1b. CURVED WHITE OVERLAY - sweeps from the left so the copy
   sits on clean white and the photo fades in organically.
   Two parts: a soft horizontal fade + an SVG curved edge mask.
   ------------------------------------------------------------ */
.nearu-home .nearu-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    border-radius: inherit;        /* 3. follow the hero's rounded corners */
    /* 4. Warm blush-white overlay (NOT pure white): a very subtle rose tint
       strongest near the top-left, fading to lighter warm-white lower down,
       then to transparent past the midline so the merchant stays clear.
       Two stacked gradients: a faint diagonal blush wash + the horizontal
       white-to-clear fade that creates the curved blend. */
    background:
        linear-gradient(
            135deg,
            rgba(251, 234, 241, .55) 0%,
            rgba(253, 246, 236, .30) 30%,
            rgba(255, 255, 255, 0) 55%
        ),
        linear-gradient(
            100deg,
            #fdf4f7 0%,
            #fdf4f7 28%,
            rgba(253, 244, 247, .94) 36%,
            rgba(255, 255, 255, .62) 44%,
            rgba(255, 255, 255, .22) 52%,
            rgba(255, 255, 255, 0) 60%
        );
    /* Curved organic edge: an SVG wave clips the white panel so the
       boundary between white and photo is a soft S-curve, not a line. 
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' preserveAspectRatio='none' viewBox='0 0 100 100'%3E%3Cpath d='M0 0 H58 C54 28 66 50 56 74 C50 88 56 96 50 100 H0 Z' fill='black'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' preserveAspectRatio='none' viewBox='0 0 100 100'%3E%3Cpath d='M0 0 H58 C54 28 66 50 56 74 C50 88 56 96 50 100 H0 Z' fill='black'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;*/
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}

/* ============================================================
   2. CONTENT - lifts above both layers; copy column keeps its
   width but the right column no longer holds a boxed image.
   ============================================================ */
.nearu-home .nearu-hero-inner {
    position: relative;
    z-index: 2;
    padding-top: 64px;
    /* The hero card now provides the outer margins, so let the inner
       content span the card with comfortable side padding instead of a
       second nested container width. */
    max-width: 100%;
    padding-left: clamp(28px, 4vw, 56px);
    padding-right: clamp(28px, 4vw, 56px);
}
.nearu-home .nearu-hero .row { align-items: center; }

/* Left copy column - unchanged styling, just ensure it reads on white. */
.nearu-home .nearu-hero .nearu-eyebrow {
    color: var(--nearu-primary);
    font-weight: var(--fw-bold);
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.nearu-home .nearu-hero-title {
    color: var(--nearu-ink);
    font-weight: var(--fw-bold);
    font-size: clamp(2.4rem, 4.5vw, 3.6rem);
    line-height: 1.1;
    margin: 0 0 22px;
}
.nearu-home .nearu-hero-title .nearu-accent { color: var(--nearu-primary); }
/* .nearu-home .nearu-hero-text {
    color: var(--nearu-muted);
    font-size: 17px;
    line-height: 1.7;
    max-width: 430px;
    margin: 0 0 32px;
} */
.nearu-home .nearu-hero-cta { gap: 1rem; }
/* .nearu-home .nearu-hero-cta .btn-lg { padding: 14px 34px; font-size: 16px; } */

/* ============================================================
   3. RETIRE THE OLD DEVICE STAGE
   The collage already includes the phone + dashboard, so the old
   right-column CSS mockups are hidden to avoid duplication.
   (Markup stays; we only hide it visually.)
   ============================================================ */
.nearu-home .nearu-hero-stage { display: none; }

/* The right Bootstrap column becomes empty visual space the collage
   fills; collapse its min-height so it doesn't add dead height. */
.nearu-home .nearu-hero .col-lg-6:last-child { min-height: 420px; }

/* ============================================================
   4. HIGHLIGHTS CARD - unchanged overlap, lifted above layers
   ============================================================ */
.nearu-home .nearu-highlights {
    position: relative;
    z-index: 3;
    background: var(--nearu-card-bg);
    border: 1px solid var(--nearu-border);
    border-radius: var(--radius-card);
    box-shadow: 0 22px 50px rgba(26, 27, 46, .08);
    margin-top: 48px;
    /* Hero is now a clipped rounded card, so keep the highlights strip
       INSIDE it (no negative bleed that overflow:hidden would clip).
       The hero's reduced bottom padding seats it near the card's base. */
    margin-bottom: 0;
    padding: 12px 0;
}

/* ============================================================
   5. TABLET (<= 991.98px)
   Collage moves to a top banner; copy sits on white below it, so the
   curved-overlay effect gracefully degrades to a clean stacked layout.
   ============================================================ */
@media (max-width: 991.98px) {
    .nearu-home .nearu-hero {
        padding-top: 0;
        padding-bottom: 40px;
        min-height: 0;
        /* Tighter side margins on smaller screens; keep the rounded card. */
        margin-top: 16px;
        max-width: calc(100% - 32px);
        border-radius: 22px;
    }
    .nearu-home .nearu-hero::before {
        /* Show the collage as a contained banner at the top. */
        position: relative;
        display: block;
        height: 300px;
        background-position: center 30%;
        background-size: cover;
    }
    .nearu-home .nearu-hero::after {
        /* Soft white fade up into the banner instead of a side curve. */
        background: linear-gradient(180deg, rgba(255,255,255,0) 60%, #ffffff 100%);
        -webkit-mask-image: none;
        mask-image: none;
        height: 300px;
    }
    .nearu-home .nearu-hero-inner { padding-top: 28px; }
    .nearu-home .nearu-hero-text { max-width: 100%; }
    .nearu-home .nearu-hero .col-lg-6:last-child { min-height: 0; display: none; }
}

/* ============================================================
   6. MOBILE (<= 575.98px)
   ============================================================ */
@media (max-width: 575.98px) {
    .nearu-home .nearu-hero { padding-bottom: 90px; }
    .nearu-home .nearu-hero::before { height: 220px; }
    .nearu-home .nearu-hero::after { height: 220px; }
    .nearu-home .nearu-hero-inner { padding-top: 22px; }
    .nearu-home .nearu-hero-cta { gap: .75rem; }
}

/* Carousel version: move the existing full-banner image and overlay from
   the hero shell onto each slide so the complete banner slides together. */
.nearu-home .nearu-hero::before,
.nearu-home .nearu-hero::after {
    content: none;
}

.nearu-home .nearu-hero {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 0 78px;
    overflow: visible;
    border-radius: 0;
}

.nearu-home .nearu-hero-slider,
.nearu-home .nearu-hero-slider .carousel-inner {
    width: 100%;
    border-radius: 0;
}

.nearu-home .nearu-hero-slider .carousel-inner {
    overflow: hidden;
}

.nearu-home .nearu-hero-slide {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border-radius: 0;
    min-height: 560px;
    padding: 64px 0 118px;
}

.nearu-home .nearu-hero-slide .nearu-hero-inner > .row {
    min-height: 0;
    overflow: visible;
    border-radius: 0;
}

.nearu-home .nearu-hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    background-image: var(--nearu-slide-bg);
    background-repeat: no-repeat;
    background-position: right 0 top 50%;
    background-size: cover;
}

.nearu-home .nearu-hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    border-radius: inherit;
    background:
        linear-gradient(
            135deg,
            rgba(251, 234, 241, .55) 0%,
            rgba(253, 246, 236, .30) 30%,
            rgba(255, 255, 255, 0) 55%
        ),
        linear-gradient(
            100deg,
            #fdf4f7 0%,
            #fdf4f7 28%,
            rgba(253, 244, 247, .94) 36%,
            rgba(255, 255, 255, .62) 44%,
            rgba(255, 255, 255, .22) 52%,
            rgba(255, 255, 255, 0) 60%
        );
}

.nearu-home .nearu-hero-slide .nearu-hero-inner,
.nearu-home .nearu-hero-slide > [class*="col-"] {
    position: relative;
    z-index: 2;
}

.nearu-home .nearu-hero-slide .nearu-hero-inner {
    padding-top: 0;
}

.nearu-home .nearu-hero-highlights-wrap {
    position: relative;
    z-index: 5;
    margin-top: -30px;
}

.nearu-home .nearu-highlights {
    margin-top: 0;
}

@media (max-width: 991.98px) {
    .nearu-home .nearu-hero {
        max-width: none;
        margin: 0;
        padding: 0 0 66px;
        border-radius: 0;
    }

    .nearu-home .nearu-hero-slide {
        min-height: 0;
        padding: 300px 0 78px;
    }

    .nearu-home .nearu-hero-slide::before {
        height: 300px;
        bottom: auto;
        background-position: center 30%;
        background-size: cover;
    }

    .nearu-home .nearu-hero-slide::after {
        height: 300px;
        bottom: auto;
        background: linear-gradient(180deg, rgba(255,255,255,0) 60%, #ffffff 100%);
    }

    .nearu-home .nearu-hero-highlights-wrap {
        margin-top: -58px;
    }
}

@media (max-width: 575.98px) {
    .nearu-home .nearu-hero {
        padding-bottom: 58px;
    }

    .nearu-home .nearu-hero-slide {
        padding: 220px 0 70px;
    }

    .nearu-home .nearu-hero-slide::before,
    .nearu-home .nearu-hero-slide::after {
        height: 220px;
    }

    .nearu-home .nearu-hero-highlights-wrap {
        margin-top: -48px;
    }
}
