/* ============================================
   BDK Wheels Solutions S.R.L. — Hero
   Rotatie crossfade hero1..hero5 la 3s (JS)
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    height: 100vh;
    height: 100svh;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    padding: 5rem 0 2rem;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, var(--navy) 100%);
    z-index: -2;
}

/* Straturi de imagine: crossfade intre ele, JS pune clasa .active
   pe stratul curent. Fundalul navy ramane mereu dedesubt. */
.hero-slide {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity;
}

.hero-slide.active {
    opacity: 0.82;
}

/* Tintă portocalie minimă (~5-8%): culorile intense ale imaginilor
   rămân dominante, portocaliul e doar o tentă subtilă pe margini. */
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(255,107,0,0.08) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 20%, rgba(255,107,0,0.05) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 80%, rgba(255,140,51,0.03) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

/* Overlay textura fina peste toate straturile */
.hero-bg-effects .noise-overlay {
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0;
    padding: 2rem 0;
    /* Vectorial: textul din hero se scalează după lățimea ACESTUI container,
       nu a ecranului. Astfel, pe orice mobil, "Vulcanizare" încape pe un rând
       fără depășire. cqi = 1% din lățimea containerului. */
    container-type: inline-size;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,107,0,0.15);
    border: 1px solid rgba(255,107,0,0.3);
    color: var(--orange-text);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 32px;
    animation: fadeInDown 0.8s ease;
}

.badge-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--orange);
    border-radius: 50%;
    animation: badgePulse 2s ease-in-out infinite;
}

/* ========== HERO BG EFFECTS ========== */
.hero-bg-effects {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    will-change: transform;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,107,0,0.04) 0%, transparent 70%);
    top: -10%;
    left: -10%;
    animation: orbFloat1 20s ease-in-out infinite;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,140,51,0.03) 0%, transparent 70%);
    bottom: -10%;
    right: -10%;
    animation: orbFloat2 25s ease-in-out infinite;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,107,0,0.02) 0%, transparent 70%);
    top: 40%;
    left: 50%;
    animation: orbFloat3 15s ease-in-out infinite;
}

.noise-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.025;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.hero-title {
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-title-top {
    display: block;
    font-size: clamp(2.9rem, 12cqi, 5.75rem);
    font-weight: 900;
    color: var(--white);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.hero-title-main-wrap {
    display: block;
    overflow: hidden;
    position: relative;
    height: 1.2em;
    max-width: 100%;
}

.hero-title-main {
    display: inline-block;
    position: absolute;
    left: 0;
    top: 0;
    font-size: clamp(1.9rem, 8cqi, 3.2rem);
    font-weight: 300;
    color: var(--orange-text);
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: -2px;
    text-shadow: 0 4px 30px rgba(255,107,0,0.3);
    animation: slideText 4s ease-in-out infinite;
    white-space: nowrap;
}

.hero-title-sub {
    display: block;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 400;
    color: rgba(255,255,255,0.7);
    letter-spacing: 2px;
    margin-top: 12px;
}

.hero-desc {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin: 0 0 40px;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-stats {
    display: flex;
    gap: 48px;
    justify-content: flex-start;
    animation: fadeInUp 0.8s ease 0.8s both;
}

.stat {
    text-align: left;
}

.stat-num {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--orange-text);
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.4);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
    animation: scrollPulse 2s ease infinite;
}
