/* ════════════════════════════════════════
   TUCA MARIA — Hero Banner
   hero-banner.css v2.1
   Locație: /wp-content/themes/generatepress-child/assets/css/modules/hero-banner.css

   Concept: "The Attorney as the Brand"
   Filozofie: portretul E bannerul. Textul e
   un layer editorial deasupra lui, nu o
   grămadă de elemente aruncate pe ecran.
════════════════════════════════════════ */

/* ── CONTAINER FIX ──
   Înlocuiește selectoarele :has() care erau scumpe.
   .hb-container-fix este wrapper-ul injectat de shortcode.
── */
.hb-container-fix {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    position: static !important;
    display: block !important;
    overflow: visible !important;
}

#hb-hero, #hb-hero *, #hb-hero *::before, #hb-hero *::after {
    box-sizing: border-box !important;
}

/* ── KEYFRAMES ── */
@keyframes hbIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes hbFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes hbLineExpand {
    from { transform: scaleX(0); transform-origin: left; }
    to   { transform: scaleX(1); transform-origin: left; }
}
@keyframes hbDot {
    0%,100% { opacity: .5; transform: scale(1); }
    50%     { opacity: 1;  transform: scale(1.7); }
}

/* ══════════════════════════════════════
   WRAPPER
══════════════════════════════════════ */
#hb-hero {
    position: relative !important;
    width: 100% !important;
    height: 100vh !important;
    min-height: 640px !important;
    max-height: 1080px !important;
    overflow: hidden !important;
    display: block !important;
    background: #06050400 !important;
    font-family: 'Roboto Condensed', sans-serif !important;
}

/* ══════════════════════════════════════
   IMAGINE
══════════════════════════════════════ */
.hb-bg {
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
}
.hb-bg picture {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}
.hb-bg img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: 60% 50% !important;
    transform: translateZ(0) !important;
}

/* ══════════════════════════════════════
   OVERLAY DESKTOP
══════════════════════════════════════ */
.hb-overlay {
    position: absolute !important;
    inset: 0 !important;
    z-index: 2 !important;
    background:
        linear-gradient(
            115deg,
            rgba(6,5,4,.96) 0%,
            rgba(6,5,4,.75) 25%,
            rgba(6,5,4,.10) 42%,
            transparent 52%
        ),
        linear-gradient(
            to top,
            rgba(6,5,4,.80) 0%,
            rgba(6,5,4,.40) 18%,
            transparent 38%
        ) !important;
}

/* ══════════════════════════════════════
   BARA SUPERIOARĂ
══════════════════════════════════════ */
.hb-topbar {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 10 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: clamp(24px,4vh,48px) clamp(32px,4vw,64px) !important;
    animation: hbFade 1s ease .1s both !important;
}

.hb-logo-maria {
    height: clamp(44px, 5.5vw, 80px) !important;
    width: auto !important;
    display: block !important;
    filter: drop-shadow(0 2px 20px rgba(0,0,0,.7)) !important;
}

.hb-logo-barou {
    height: clamp(48px, 5vw, 72px) !important;
    width: auto !important;
    display: block !important;
    filter: drop-shadow(0 2px 16px rgba(0,0,0,.7)) brightness(1.05) !important;
    opacity: .80 !important;
}

/* ══════════════════════════════════════
   CONȚINUT PRINCIPAL
══════════════════════════════════════ */
.hb-content {
    position: absolute !important;
    bottom: clamp(40px,7vh,80px) !important;
    left: clamp(32px,4vw,64px) !important;
    z-index: 10 !important;
    width: clamp(300px, 46vw, 600px) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0 !important;
}

/* Tagline badge */
.hb-tag {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 9px !important;
    font-weight: 500 !important;
    letter-spacing: .25em !important;
    text-transform: uppercase !important;
    color: #c9a96e !important;
    margin: 0 0 20px 0 !important;
    padding: 0 !important;
    animation: hbIn .8s ease .3s both !important;
}
.hb-tag-line {
    display: block !important;
    width: 24px !important;
    height: 1px !important;
    background: #c9a96e !important;
    flex-shrink: 0 !important;
}
.hb-tag-dot {
    width: 4px !important;
    height: 4px !important;
    border-radius: 50% !important;
    background: #c9a96e !important;
    flex-shrink: 0 !important;
    /* FIX: limitat la 3 iterații — nu mai ține GPU ocupat infinit */
    animation: hbDot 2.5s ease-in-out 3 !important;
}

/* Titlu */
.hb-title {
    font-family: 'Roboto Slab', serif !important;
    font-size: clamp(36px, 4.8vw, 68px) !important;
    font-weight: 300 !important;
    line-height: 1.0 !important;
    color: #ffffff !important;
    text-transform: uppercase !important;
    letter-spacing: .06em !important;
    margin: 0 0 6px 0 !important;
    padding: 0 !important;
    text-shadow: 0 4px 40px rgba(0,0,0,.6) !important;
    animation: hbIn .9s cubic-bezier(.22,1,.36,1) .5s both !important;
    user-select: none !important;
}
.hb-title-name {
    display: block !important;
    font-weight: 700 !important;
    font-size: 1.25em !important;
    color: #c9a96e !important;
    letter-spacing: .08em !important;
    line-height: 1.0 !important;
    animation: hbIn .9s cubic-bezier(.22,1,.36,1) .65s both !important;
}

/* Linia separatoare gold */
.hb-rule {
    width: 100% !important;
    max-width: 280px !important;
    height: 1px !important;
    background: linear-gradient(90deg, rgba(201,169,110,.6), transparent) !important;
    margin: 20px 0 !important;
    transform: scaleX(0) !important;
    transform-origin: left !important;
    animation: hbLineExpand .8s cubic-bezier(.22,1,.36,1) .8s both !important;
}

/* Locație */
.hb-location {
    font-size: 10px !important;
    font-weight: 300 !important;
    letter-spacing: .35em !important;
    text-transform: uppercase !important;
    color: rgba(255,255,255,.45) !important;
    margin: 0 0 32px 0 !important;
    padding: 0 !important;
    animation: hbIn .9s ease .9s both !important;
}

/* CTA wrapper */
.hb-btn-wrap {
    animation: hbIn .9s ease 1.1s both !important;
}

/* CTA button */
#hb-hero .hb-btn-wrap a.custom-btn,
#hb-hero .hb-btn-wrap a.custom-btn.btn-large {
    font-family: 'Roboto Condensed', sans-serif !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: .25em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    color: #060504 !important;
    background: linear-gradient(135deg, #ddb96f 0%, #c9a96e 50%, #a8782e 100%) !important;
    border: none !important;
    border-radius: 1px !important;
    padding: 16px 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 14px !important;
    position: relative !important;
    overflow: hidden !important;
    cursor: pointer !important;
    margin: 0 !important;
    box-shadow: 0 8px 40px rgba(168,120,46,.40) !important;
    transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s ease !important;
}

/* Glare effect */
#hb-hero .hb-btn-wrap a.custom-btn::before {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent) !important;
    transform: translateX(-100%) !important;
    transition: transform .5s ease !important;
}
#hb-hero .hb-btn-wrap a.custom-btn:hover::before { transform: translateX(100%) !important; }
#hb-hero .hb-btn-wrap a.custom-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 16px 56px rgba(168,120,46,.55) !important;
    color: #060504 !important;
    text-decoration: none !important;
}

/* Săgeată buton */
#hb-hero .hb-btn-wrap a.custom-btn::after {
    content: '→' !important;
    font-size: 14px !important;
    font-weight: 300 !important;
    transition: transform .3s ease !important;
}
#hb-hero .hb-btn-wrap a.custom-btn:hover::after {
    transform: translateX(4px) !important;
}

/* ══════════════════════════════════════
   MOBILE
══════════════════════════════════════ */
@media (max-width: 767px) {

    #hb-hero {
        height: 100svh !important;
        min-height: 700px !important;
        max-height: none !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .hb-bg {
        position: absolute !important;
        inset: 0 !important;
    }
    .hb-bg img {
        object-position: 50% 50% !important;
    }

    .hb-overlay {
        background:
            linear-gradient(
                to top,
                rgba(6,5,4,.88) 0%,
                rgba(6,5,4,.70) 18%,
                rgba(6,5,4,.25) 35%,
                transparent     52%
            ),
            linear-gradient(
                to bottom,
                rgba(6,5,4,.55) 0%,
                rgba(6,5,4,.20) 12%,
                transparent     22%
            ) !important;
    }

    .hb-topbar {
        padding: 24px 20px !important;
        align-items: flex-start !important;
        animation: hbFade .8s ease .1s both !important;
    }

    .hb-logo-maria {
        height: 44px !important;
    }

    .hb-logo-barou {
        height: 30px !important;
        opacity: .65 !important;
    }

    .hb-content {
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        padding: 32px 24px 40px !important;
        flex-wrap: wrap !important;
    }

    .hb-tag {
        font-size: 8.5px !important;
        letter-spacing: .20em !important;
        margin-bottom: 16px !important;
        color: #c9a96e !important;
        order: 2 !important;
        font-size: 9px !important;
        letter-spacing: .18em !important;
    }

    .hb-title {
        order: 1 !important;
        font-size: clamp(34px, 10vw, 48px) !important;
        letter-spacing: .04em !important;
        margin-bottom: 4px !important;
        line-height: 1.0 !important;
    }
    .hb-title-name {
        font-size: 1.3em !important;
        letter-spacing: .06em !important;
    }

    .hb-rule {
        display: none !important;
    }

    .hb-location {
        display: none !important;
    }

    .hb-btn-wrap {
        order: 3 !important;
        width: 100% !important;
    }
    #hb-hero .hb-btn-wrap a.custom-btn,
    #hb-hero .hb-btn-wrap a.custom-btn.btn-large {
        width: 100% !important;
        justify-content: center !important;
        padding: 18px 24px !important;
        font-size: 10px !important;
        letter-spacing: .22em !important;
    }
}

/* ── FALLBACK animații reduse ── */
@media (prefers-reduced-motion: reduce) {
    .hb-topbar,
    .hb-tag,
    .hb-title,
    .hb-title-name,
    .hb-rule,
    .hb-location,
    .hb-btn-wrap {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    .hb-rule { transform: scaleX(1) !important; }
}
