/* ==========================================================================
   HERO — bpexch Dealer  |  Mobile-first, BEM, independent
   90%+ mobile users: fullscreen bg image + centered content
   ========================================================================== */

/* ── Custom Properties ─────────────────────────────────────── */
.hero {
    --hero-green: #22c55e;
    --hero-green-dark: #15803d;
    --hero-green-glow: rgba(34, 197, 94, 0.45);
    --hero-gold: #f0b429;
    --hero-white: #ffffff;
    --hero-white-70: rgba(255, 255, 255, 0.70);
    --hero-white-45: rgba(255, 255, 255, 0.45);
    --hero-glass-bg: rgba(255, 255, 255, 0.08);
    --hero-glass-border: rgba(255, 255, 255, 0.15);
    --hero-radius-pill: 9999px;
    --hero-radius-md: 14px;
    --hero-bounce: 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
    --hero-ease: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Block: .hero ──────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: auto;
    /* content-height on mobile */
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center 40%;
    background-repeat: no-repeat;
    background-attachment: scroll;
    /* scroll on mobile (fixed causes iOS bugs) */
    padding: 5.5rem 0 3.5rem;
    /* top clears fixed header */
    overflow: hidden;
    image-rendering: crisp-edges;
}

/* ── Element: overlay ──────────────────────────────────────── */
.hero__overlay {
    position: absolute;
    inset: 0;
    /* Multi-layer cinematic blend for full-bleed feel:
       1. Vertical dark fade  → text readability
       2. Radial vignette     → draw focus to center
       3. Cool navy tint      → brand colour bleed */
    background:
        linear-gradient(to bottom,
            rgba(4, 8, 18, 0.75) 0%,
            rgba(4, 8, 18, 0.48) 38%,
            rgba(4, 8, 18, 0.65) 72%,
            rgba(4, 8, 18, 0.90) 100%),
        radial-gradient(ellipse 120% 100% at 50% 50%,
            transparent 35%,
            rgba(2, 5, 14, 0.60) 100%),
        linear-gradient(150deg,
            rgba(8, 20, 55, 0.30) 0%,
            transparent 55%);
    z-index: 0;
    mix-blend-mode: normal;
}

/* ── Element: container ────────────────────────────────────── */
.hero__container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 560px;
    /* keeps text tight on desktop */
    margin-inline: auto;
    padding-inline: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.1rem;
}

/* ── Element: badge ────────────────────────────────────────── */
.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 1rem;
    border-radius: var(--hero-radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--hero-white-70);
    animation: h-fadein 0.5s ease both;
}

.hero__badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--hero-green);
    box-shadow: 0 0 8px var(--hero-green);
    flex-shrink: 0;
    animation: h-dot 2s ease-in-out infinite;
}

@keyframes h-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 8px var(--hero-green);
    }

    50% {
        opacity: .4;
        transform: scale(.6);
        box-shadow: 0 0 3px var(--hero-green);
    }
}

@keyframes h-fadein {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Element: headline ─────────────────────────────────────── */
.hero__headline {
    font-size: clamp(2.4rem, 9vw, 3.8rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.025em;
    color: var(--hero-white);
    margin: 0;
    animation: h-up 0.55s ease both 0.08s;
}

.hero__headline-brand {
    display: inline-block;
    background: linear-gradient(110deg, #5ba3d9 0%, var(--hero-gold) 55%, #5ba3d9 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: h-pan 4s linear infinite;
}

@keyframes h-pan {
    from {
        background-position: 0%
    }

    to {
        background-position: 200%
    }
}

@keyframes h-up {
    from {
        opacity: 0;
        transform: translateY(18px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

/* ── Element: subline ──────────────────────────────────────── */
.hero__subline {
    font-size: clamp(0.9rem, 3.5vw, 1.05rem);
    color: var(--hero-white-70);
    font-weight: 500;
    margin: 0;
    animation: h-up 0.55s ease both 0.16s;
}

.hero__subline-strong {
    color: var(--hero-white);
    font-weight: 700;
}

.hero__subline-name {
    color: var(--hero-gold);
    font-style: normal;
    font-weight: 700;
}

/* ── Element: desc ─────────────────────────────────────────── */
.hero__desc {
    font-size: clamp(0.82rem, 3vw, 0.95rem);
    color: var(--hero-white-45);
    line-height: 1.7;
    margin: 0;
    max-width: 380px;
    animation: h-up 0.55s ease both 0.22s;
}

/* ── Element: actions ──────────────────────────────────────── */
.hero__actions {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    width: 100%;
    animation: h-up 0.55s ease both 0.3s;
}

/* ── Element: btn (base) ───────────────────────────────────── */
.hero__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: var(--hero-radius-pill);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform var(--hero-bounce), box-shadow var(--hero-ease);
    -webkit-tap-highlight-color: transparent;
}

.hero__btn svg {
    flex-shrink: 0;
}

/* Modifier: WhatsApp */
.hero__btn--wa {
    background: linear-gradient(135deg, #25d366 0%, #128c4e 100%);
    color: #fff;
    box-shadow: 0 6px 28px var(--hero-green-glow);
    font-size: 1.05rem;
    padding: 1.1rem 1.5rem;
}

.hero__btn--wa::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #2ecc71, #22c55e);
    opacity: 0;
    transition: opacity var(--hero-ease);
    border-radius: inherit;
}

.hero__btn--wa:active,
.hero__btn--wa:hover {
    transform: scale(1.02) translateY(-2px);
    box-shadow: 0 12px 36px rgba(34, 197, 94, 0.55);
    color: #fff;
}

.hero__btn--wa:hover::after {
    opacity: 1;
}

.hero__btn--wa>* {
    position: relative;
    z-index: 1;
}

/* Modifier: phone (glass outline) */
.hero__btn--phone {
    background: rgba(255, 255, 255, 0.08);
    color: var(--hero-white-70);
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero__btn--phone:hover,
.hero__btn--phone:active {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.35);
    color: var(--hero-white);
    transform: scale(1.01) translateY(-1px);
}

/* ── Element: trust strip ──────────────────────────────────── */
.hero__trust {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.4rem 0;
    padding: 0.8rem 1.2rem;
    border-radius: var(--hero-radius-pill);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: 100%;
    animation: h-up 0.55s ease both 0.38s;
}

.hero__trust-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--hero-white-70);
    padding: 0 0.6rem;
    white-space: nowrap;
}

.hero__trust-item svg {
    color: var(--hero-green);
    flex-shrink: 0;
}

.hero__trust-divider {
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════
   TABLET ≥ 640px
══════════════════════════════════════════════════════════════ */
@media (min-width: 640px) {

    .hero__actions {
        flex-direction: row;
        justify-content: center;
    }

    .hero__btn {
        width: auto;
        flex: none;
        min-width: 190px;
    }

}

/* ══════════════════════════════════════════════════════════════
   DESKTOP ≥ 1024px
══════════════════════════════════════════════════════════════ */
@media (min-width: 1024px) {

    .hero {
        background-position: center 30%;
        min-height: 90svh;
        /* full-height only on desktop */
    }

    .hero__container {
        max-width: 680px;
    }

    .hero__headline {
        font-size: clamp(3.2rem, 5vw, 4.4rem);
    }

    .hero__trust-item {
        font-size: 0.85rem;
    }

}

/* ══════════════════════════════════════════════════════════════
   REDUCED-MOTION
══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {

    .hero__badge,
    .hero__headline,
    .hero__subline,
    .hero__desc,
    .hero__actions,
    .hero__trust {
        animation: none;
    }

    .hero__badge-dot {
        animation: none;
        opacity: 1;
    }

    .hero__headline-brand {
        animation: none;
    }
}

/* ══════════════════════════════════════════════════════════════
   PERFORMANCE: GPU-promote hero image layer
══════════════════════════════════════════════════════════════ */
.hero {
    will-change: transform;
    transform: translateZ(0);
    contain: layout style;
}