/* ============================================================
   NearU - Shared Components
   Centralised pieces used across multiple sections:
   panel shell + spacing, buttons, eyebrow, logo, app-store
   badges, status badge, tint utilities, a11y helpers.

   Depends on: theme-tokens.css (variables) + Bootstrap 5 (reset/grid)
   ============================================================ */

/* ============================================================
   SECTION SHELLS + STANDARD SPACING
   ============================================================ */
.nearu-categories,
.nearu-why,
.nearu-mymall,
.nearu-how,
.nearu-exists,
.nearu-cta-banner-section {
    background: #fff;
    padding: 4px 0 20px;
}

/* Homepage section entrance animation.
   Activated only after JS adds .reveal-ready, so content stays visible if JS fails. */
.nearu-home.reveal-ready .nearu-hero,
.nearu-home.reveal-ready .nearu-categories,
.nearu-home.reveal-ready .nearu-why,
.nearu-home.reveal-ready .nearu-mymall,
.nearu-home.reveal-ready .nearu-how,
.nearu-home.reveal-ready .nearu-exists,
.nearu-home.reveal-ready .nearu-cta-banner-section,
.nearu-home.reveal-ready .nearu-footer {
    opacity: 0;
    transform: translateY(34px);
    transition:
        opacity .72s cubic-bezier(.22, .61, .36, 1),
        transform .72s cubic-bezier(.22, .61, .36, 1);
    will-change: opacity, transform;
}

.nearu-home.reveal-ready .nearu-hero {
    transform: translateY(18px);
}

.nearu-home.reveal-ready .nearu-hero.revealed,
.nearu-home.reveal-ready .nearu-categories.revealed,
.nearu-home.reveal-ready .nearu-why.revealed,
.nearu-home.reveal-ready .nearu-mymall.revealed,
.nearu-home.reveal-ready .nearu-how.revealed,
.nearu-home.reveal-ready .nearu-exists.revealed,
.nearu-home.reveal-ready .nearu-cta-banner-section.revealed,
.nearu-home.reveal-ready .nearu-footer.revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .nearu-home.reveal-ready .nearu-hero,
    .nearu-home.reveal-ready .nearu-categories,
    .nearu-home.reveal-ready .nearu-why,
    .nearu-home.reveal-ready .nearu-mymall,
    .nearu-home.reveal-ready .nearu-how,
    .nearu-home.reveal-ready .nearu-exists,
    .nearu-home.reveal-ready .nearu-cta-banner-section,
    .nearu-home.reveal-ready .nearu-footer {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
.nearu-categories-panel,
.nearu-why-panel,
.nearu-how-panel,
.nearu-exists-panel {
    background: #fff;
    border-radius: var(--radius-panel);
    padding: 20px var(--panel-pad-x);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* ============================================================
   BUTTONS - shared pill system
   ============================================================ */
.nearu-btn-primary,
.nearu-btn-outline {
    border-radius: var(--radius-pill);
    font-weight: var(--fw-semibold);
    font-family: var(--font-primary);
    padding: 10px 15px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}
.nearu-btn-primary {
    background: var(--brand-gradient);
    color: #fff;
    border: 1px solid var(--nearu-accent);
}
.nearu-btn-primary:hover {
    background: #fff;
    color: var(--nearu-primary);
    border: 1px solid var(--nearu-primary);
    transform: translateY(-1px);
}
.nearu-btn-outline {
    background: #fff;
    color: var(--nearu-primary);
    border: 1px solid var(--nearu-primary);
}
.nearu-btn-outline:hover {
    background: var(--brand-gradient);
    color: #fff;
    border: 1px solid var(--nearu-accent);
    transform: translateY(-1px);
}
.nearu-hero-cta .btn-lg {
    font-size: 16px;
}
.nearu-cal-ico { margin-right: 4px; }

/* ============================================================
   EYEBROW LABEL
   ============================================================ */
.nearu-eyebrow {
    color: var(--nearu-primary);
    font-weight: var(--fw-bold);
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

/* ============================================================
   LOGO - monogram mark + wordmark
   ============================================================ */
.nearu-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.nearu-logo-mark {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: var(--radius-inner);
    background: var(--brand-gradient);
    color: #fff;
    font-weight: var(--fw-bold);
    font-size: 18px;
    font-family: var(--font-primary);
}
.nearu-logo-text {
    font-weight: var(--fw-bold);
    font-size: 22px;
    color: var(--nearu-ink);
    font-family: var(--font-primary);
}
.nearu-logo-u { color: var(--nearu-primary); }

/* ============================================================
   APP STORE BADGES - shared black pill
   ============================================================ */
.nearu-store-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.nearu-store-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #111;
    color: #fff;
    text-decoration: none;
    border-radius: var(--radius-inner);
    padding: 8px 14px;
    width: fit-content;
    transition: transform .2s ease;
}
.nearu-store-badge:hover {
    transform: translateY(-1px);
    color: #fff;
}
.nearu-store-badge i { font-size: 22px; }
.nearu-store-badge span {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    font-size: 14px;
    font-weight: var(--fw-bold);
}
.nearu-store-badge small {
    font-size: 8px;
    font-weight: var(--fw-regular);
    text-transform: uppercase;
    letter-spacing: .3px;
}

/* ============================================================
   STATUS BADGE  (change pill - used in CSS phone mockups)
   ============================================================ */
.nearu-badge {
    font-size: 9px;
    font-weight: var(--fw-bold);
    padding: 2px 7px;
    border-radius: var(--radius-pill);
}
.nearu-badge-up {
    color: var(--nearu-up);
    background: rgba(31, 169, 113, .12);
}

/* ============================================================
   TINT UTILITIES (shared)
   Default = colored glyph on a soft tinted circle/background.
   Used by Why NearU, MyMall, How NearU Works.
   ============================================================ */
.nearu-tint-red {
    color: var(--brand-red);
    background: rgba(181, 0, 86, .10);
}
.nearu-tint-orange {
    color: var(--brand-orange);
    background: rgba(239, 162, 32, .12);
}
.nearu-tint-green {
    color: #3FA34D;
    background: rgba(63, 163, 77, .10);
}
.nearu-tint-teal {
    color: #1FB6C9;
    background: rgba(31, 182, 201, .10);
}
.nearu-tint-muted {
    color: var(--nearu-muted);
    background: rgba(92, 92, 107, .08);
}

/* Categories tiles use tints as TEXT-COLOUR ONLY (no circle background).
   Scoped override keeps the approved Categories look unchanged. */
.nearu-cat-icon.nearu-tint-red,
.nearu-cat-icon.nearu-tint-orange,
.nearu-cat-icon.nearu-tint-green,
.nearu-cat-icon.nearu-tint-teal,
.nearu-cat-icon.nearu-tint-muted {
    background: transparent;
}

/* ============================================================
   ACCESSIBILITY HELPERS
   ============================================================ */
.screen-reader-text {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
    position: static;
    width: auto; height: auto;
    clip: auto;
    padding: 12px 20px;
    background: #fff;
    color: var(--nearu-primary);
    z-index: 100000;
}

.nearu-hero-inner {
	/* padding-top: 64px; */
    max-width: 100%;
    padding-left: clamp(28px, 4vw, 56px);
    padding-right: clamp(28px, 4vw, 56px);
}
