/* ============================================================
   NearU - Homepage Hero REBUILD (front-page only)
   ------------------------------------------------------------
   A fresh, self-contained hero implementation whose only goal is
   to match the approved homepage mockup. Loaded AFTER
   hero-section.css on the front page only, so every rule here
   wins the cascade and supersedes the previous hero sizing logic.

   Design goals (per brief):
   - Hero owns its OWN explicit spacing + min-height.
   - Stage is self-contained; device mockups never overflow.
   - No dependency on navbar height or any ancestor wrapper.
   - Stays correct even if parent containers change (flex/grid/etc).
   - Desktop match first, then tablet, then mobile.

   Scope: every selector is prefixed with .nearu-home so nothing
   outside the homepage hero is affected. Consumes global tokens;
   declares NO :root / variables.
   ============================================================ */

/* ============================================================
   1. SECTION SHELL - explicit spacing, height, background
   ============================================================ */
.nearu-home .nearu-hero {
    position: relative;
    /* Own background; does not rely on any ancestor.
    background: var(--brand-gradient-soft);
    /* Explicit vertical rhythm - independent of the (removed) navbar. */
    /* padding-top: 56px; */
    /* padding-bottom: 130px;   room for the overlapping highlights card */
    /* Self-sizing floor so the section can never collapse, even as a
       flex / grid child of an unknown ancestor. */
    /* min-height: 640px; */
    /* Let the highlights card overlap the lower edge without clipping. */
    /* overflow: visible; */
    /* Neutralize any inherited flex/grid item behaviour from a parent. */
    /* display: block; */
    /* width: 100%; */
    /* box-sizing: border-box; */ 
}

/* Guard: if an ancestor is display:flex/grid, keep the hero full-width
   and prevent it from being squeezed or stretched as an item. */
.nearu-home .nearu-hero {
    flex: 0 0 auto;
    align-self: stretch;
}

/* ============================================================
   2. INNER CONTAINER + TWO-COLUMN SPLIT
   ============================================================ */
.nearu-home .nearu-hero-inner {
    position: relative;
    z-index: 2;
    padding-top: 0;          /* spacing lives on the section, not here */
}

.nearu-home .nearu-hero .row {
    align-items: center;
}

/* ============================================================
   3. LEFT COLUMN - copy + CTAs
   ============================================================ */
.nearu-home .nearu-hero .nearu-eyebrow {
    display: inline-block;
    background: rgba(181, 0, 86, .08);
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    margin-bottom: 14px;
}
.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 {
    max-width: 430px;
    color: #2c3340;
    font-weight: 500;
    line-height: 1.65;
    font-weight: 600;
    margin: 0 0 32px;
}
.nearu-home .nearu-hero-cta { gap: 1rem; }
/* .nearu-home .nearu-hero-cta .btn-lg {
    padding: 14px 34px;
    font-size: 16px;
} */

/* ============================================================
   4. RIGHT COLUMN - self-contained device STAGE
   The stage owns a guaranteed height. All three layers are sized
   in % of the stage, so they scale together and stay INSIDE it.
   ============================================================ */
.nearu-home .nearu-hero-stage {
    position: relative;
    width: 100%;
    min-height: 480px;
    /* Hard ceiling so layers can never push past the hero on desktop. */
    overflow: visible;
}
/* .nearu-home .nearu-hero-stage .nearu-layer { position: absolute; } */

/* Layer 1 - background merchant photo (placeholder-friendly) */
.nearu-home .nearu-layer-photo {
    top: 0;
    right: 0;
    width: 80%;
    z-index: 1;
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: 0 12px 34px rgba(26, 27, 46, .10);
}
.nearu-home .nearu-layer-photo img { display: block; width: 100%; height: auto; }
.nearu-home .nearu-layer-photo > div,
.nearu-home .nearu-layer-photo.is-empty {
    min-height: 360px;
    background: linear-gradient(135deg, #f7d9cf, #f3c6b5);
}

/* Layer 2 - laptop dashboard (CSS), tucked lower-left, behind phone */
.nearu-home .nearu-layer-laptop {
    bottom: 24px;
    left: 0;
    width: 56%;
    z-index: 2;
}

/* Layer 3 - phone app (CSS), front-most, right */
.nearu-home .nearu-layer-phone {
    top: 20px;
    right: 4%;
    width: 33%;
    z-index: 3;
}

/* ============================================================
   5. HIGHLIGHTS CARD - overlaps the bottom of the hero
   ============================================================ */
.nearu-home .nearu-highlights {
    position: relative;
    z-index: 5;
    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;
    margin-bottom: -90px;    /* overlap onto the section below */
    padding: 12px 0;
}
.nearu-home .nearu-highlight-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 26px;
}
.nearu-home .nearu-highlight-icon {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-inner);
    background: rgba(239, 162, 32, .12);
    font-size: 20px;
}
.nearu-home .nearu-highlight-title {
    font-size: 16px;
    font-weight: var(--fw-bold);
    color: var(--nearu-ink);
    margin: 0 0 3px;
}
.nearu-home .nearu-highlight-text {
    font-size: 13px;
    color: var(--nearu-muted);
    margin: 0;
    line-height: 1.7;
    font-weight: 600;
    margin-top: 4px;
}

/* ============================================================
   6. TABLET  (<= 991.98px)
   Stage collapses to normal flow; mockups shrink and stay contained.
   ============================================================ */
@media (max-width: 991.98px) {
    .nearu-home .nearu-hero {
        padding-top: 40px;
        padding-bottom: 110px;
        min-height: 0;            /* content drives height when stacked */
    }
    .nearu-home .nearu-hero-text { max-width: 100%; }

    .nearu-home .nearu-hero-stage {
        min-height: 420px;
        margin-top: 12px;
    }
    .nearu-home .nearu-layer-photo  { position: relative; right: auto; width: 100%; }
    .nearu-home .nearu-layer-laptop { width: 50%; left: 0; bottom: 8px; }
    .nearu-home .nearu-layer-phone  { width: 27%; right: 3%; top: 14px; }

    .nearu-home .nearu-highlights {
        margin-top: 28px;
        margin-bottom: -70px;
    }
}

/* ============================================================
   7. MOBILE  (<= 575.98px)
   Centered copy; floating laptop + phone hidden (approved behaviour);
   photo becomes a simple banner; highlights stack.
   ============================================================ */
@media (max-width: 575.98px) {
    .nearu-home .nearu-hero {
        padding-top: 28px;
        padding-bottom: 90px;
        text-align: center;
    }
    .nearu-home .nearu-hero-cta { justify-content: center; }
    .nearu-home .nearu-hero-text { margin-left: auto; margin-right: auto; }

    .nearu-home .nearu-hero-stage { min-height: auto; }
    .nearu-home .nearu-layer-laptop,
    .nearu-home .nearu-layer-phone { display: none; }
    .nearu-home .nearu-layer-photo { position: relative; width: 100%; }
    .nearu-home .nearu-layer-photo > div,
    .nearu-home .nearu-layer-photo.is-empty { min-height: 200px; }

    .nearu-home .nearu-highlights {
        margin-top: 24px;
        margin-bottom: -60px;
    }
    .nearu-home .nearu-highlight-item {
        text-align: left;
        padding: 18px 20px;
    }
}

/* ============================================================
   8. REDUCED MOTION - no animations introduced; nothing to disable.
   ============================================================ */
