/* ==========================================================================
   HOME HERO (Premium) — widget Elementor.
   Portat din hero-fx/variants/v5-premium, dar cu TOATE selectoarele scoped sub
   .ghica-hh, ca să nu afecteze restul paginii. Fără reset global (* / html /
   body), fără font/color pe body. Imaginea de fundal vine inline din widget.
   Keyframes prefixate cu ghh- ca să nu se ciocnească cu alte animații.
   ========================================================================== */

.ghica-hh {
    --brand-accent: #eb6920; /* portocaliu Ghica — umplere butoane */
    --brand-accent-text: #f3a579; /* accent-60 — text highlight */
    --brand-accent-hover: #d75e1a;
    --brand-primary: #172843; /* bleumarin */
    --brand-ok: #2e9e5b; /* verde (promoție activă) */
    --ink: #0b111d;

    position: relative;
    width: 100%;
    min-height: 100svh;
    padding-left: var(--gap, 30px);
    padding-right: var(--gap, 30px);
    overflow: hidden;
    isolation: isolate;
    font-family:
        "Poppins",
        system-ui,
        -apple-system,
        "Segoe UI",
        sans-serif;
    color: #fff;
    -webkit-font-smoothing: antialiased;
}
.ghica-hh *,
.ghica-hh *::before,
.ghica-hh *::after {
    box-sizing: border-box;
}
.ghica-hh h1,
.ghica-hh p {
    margin: 0;
}

/* ---- Ken Burns: zoom + pan foarte lent ---------------------------------- */
.ghica-hh .hero__bg {
    position: absolute;
    inset: -4%;
    z-index: 0;
    background-position: center 58%;
    background-size: cover;
    background-repeat: no-repeat;
    transform-origin: 30% 70%;
    animation: ghh-kenburns 28s ease-in-out infinite alternate;
    will-change: transform;
}
@keyframes ghh-kenburns {
    from {
        transform: scale(1) translate(0, 0);
    }
    to {
        transform: scale(1.12) translate(-2%, -1.5%);
    }
}

/* ---- Bokeh / praf auriu (canvas) --------------------------------------- */
.ghica-hh .hero__fx {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
}

/* ---- Voal de contrast --------------------------------------------------- */
.ghica-hh .hero__scrim {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(
            90deg,
            rgba(8, 14, 26, 0.74) 0%,
            rgba(8, 14, 26, 0.34) 46%,
            rgba(8, 14, 26, 0) 74%
        ),
        linear-gradient(
            0deg,
            rgba(8, 14, 26, 0.55) 0%,
            rgba(8, 14, 26, 0) 44%
        )
        /* ,
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.5) 0%,
            transparent 30%
        ); */
}

/* ---- Grain de film ------------------------------------------------------ */
.ghica-hh .hero__grain {
    position: absolute;
    inset: -100%;
    z-index: 5;
    pointer-events: none;
    opacity: 0.06;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 160px 160px;
    animation: ghh-grain 0.6s steps(3) infinite;
}
@keyframes ghh-grain {
    0% {
        transform: translate(0, 0);
    }
    33% {
        transform: translate(-4%, 2%);
    }
    66% {
        transform: translate(3%, -3%);
    }
    100% {
        transform: translate(0, 0);
    }
}

/* ---- Conținut ----------------------------------------------------------- */
.ghica-hh .hero__content {
    position: relative;
    z-index: 7;
    max-width: var(--content-width, 1200px);
    margin: 0 auto;
    min-height: 100svh;
    padding-bottom: clamp(28px, 6vw, 84px);
    padding-top: calc(50px + clamp(28px, 6vw, 84px));
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ghica-hh h1 {
    color: #fff;
    max-width: 15ch;
    text-wrap: balance;
    font-size: clamp(32px, 5.2vw, 62px);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 34px rgba(0, 0, 0, 0.42);
    opacity: 0;
    animation: ghh-rise 0.9s 0.15s ease forwards;
}
.ghica-hh h1 .accent {
    color: var(--brand-accent-text);
}

.ghica-hh .lead {
    margin-top: 20px;
    max-width: 500px;
    font-size: clamp(15px, 1.5vw, 19px);
    line-height: 1.62;
    opacity: 0;
    animation: ghh-rise 0.9s 0.3s ease forwards;
}
.ghica-hh .lead-inner {
    opacity: 0.92;
}

.ghica-hh .cta {
    margin-top: 34px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    opacity: 0;
    animation: ghh-rise 0.9s 0.45s ease forwards;
}
.ghica-hh .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}
.ghica-hh .btn--primary {
    background: var(--brand-primary);
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.ghica-hh .btn--accent {
    background: var(--brand-accent);
    color: #fff;
    box-shadow: 0 10px 30px rgba(235, 105, 32, 0.42);
}
.ghica-hh .btn:hover {
    transform: translateY(-2px);
    color: #fff;
}
.ghica-hh .btn--accent:hover {
    background: var(--brand-accent-hover);
    box-shadow: 0 14px 38px rgba(235, 105, 32, 0.55);
}

/* ---- Info-badges din sticlă -------------------------------------------- */
.ghica-hh .hero__badges {
    display: flex;
    gap: 12px;
    opacity: 0;
    animation: ghh-rise 0.9s 0s ease forwards;
}
.ghica-hh .badge {
    display: flex;
    align-items: center;
    text-align: left;
    gap: 10px;
    padding: 11px 15px;
    border-radius: 14px;
    background: rgba(13, 22, 38, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.16);
    -webkit-backdrop-filter: blur(14px) saturate(130%);
    backdrop-filter: blur(14px) saturate(130%);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.32);
    white-space: nowrap;
}
.ghica-hh .badge__icon {
    width: 18px;
    height: 18px;
    flex: none;
    color: var(--brand-accent-text);
}
.ghica-hh .badge__num {
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    color: var(--brand-accent-text);
}
.ghica-hh .badge__text {
    font-size: 12.5px;
    line-height: 1.2;
    opacity: 0.95;
}
.ghica-hh .badge__text b {
    font-weight: 600;
}

/* desktop: badges plutitoare, împrăștiate în dreapta */
@media (min-width: 901px) {
    .ghica-hh .hero__badges {
        position: absolute;
        inset: 0;
        z-index: 7;
        pointer-events: none;
        animation: none;
        opacity: 1;
    }
    .ghica-hh .badge {
        position: absolute;
        animation: ghh-floatY ease-in-out infinite;
        will-change: transform;
    }
    .ghica-hh .badge:nth-child(1) {
        top: 22%;
        right: 11%;
        animation-duration: 7.5s;
    }
    .ghica-hh .badge:nth-child(2) {
        top: 45%;
        right: 24%;
        animation-duration: 9s;
        animation-delay: -2.5s;
    }
    .ghica-hh .badge:nth-child(3) {
        top: 66%;
        right: 13%;
        animation-duration: 8s;
        animation-delay: -4s;
    }
}
@keyframes ghh-floatY {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

/* mobil: rând compact înaintea textului */
@media (max-width: 900px) {
    .ghica-hh .hero__badges {
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 22px;
    }
    .ghica-hh .badge {
        padding: 8px 12px;
        border-radius: 12px;
        gap: 8px;
        background: rgba(11, 17, 29, 0.55);
        border-color: rgba(255, 255, 255, 0.16);
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    }
    .ghica-hh .badge__num {
        font-size: 18px;
    }
    .ghica-hh .badge__text {
        font-size: 11.5px;
    }
    .ghica-hh .badge__text br {
        display: none;
    }
}

/* ---- Casetă de promoție (sub butoane) — întreaga casetă e link ---------- */
.ghica-hh .hero__promo {
    position: relative;
    align-self: flex-start;
    margin-top: 26px;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 26px 16px 16px;
    border-radius: 20px;
    background: rgba(13, 22, 38, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.18);
    -webkit-backdrop-filter: blur(14px) saturate(135%);
    backdrop-filter: blur(14px) saturate(135%);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.32);
    color: #fff;
    text-decoration: none;
    opacity: 0;
    animation: ghh-rise 0.9s 0.6s ease forwards;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}
.ghica-hh .hero__promo:hover {
    transform: translateY(-2px);
    border-color: rgba(243, 165, 121, 0.5);
}

.ghica-hh .hero__promo__media {
    position: relative;
    width: 80px;
    height: 80px;
    flex: none;
}
.ghica-hh .hero__promo__img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.ghica-hh .hero__promo__media--icon {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(235, 105, 32, 0.18);
    border: 2px solid rgba(255, 255, 255, 0.3);
}
.ghica-hh .hero__promo__media--icon .hero__promo__icon {
    width: 38px;
    height: 38px;
    color: var(--brand-accent-text);
}

.ghica-hh .hero__promo__dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--brand-ok);
    border: 2px solid #fff;
    box-shadow: 0 0 0 0 rgba(46, 158, 91, 0.6);
    animation: ghh-dotPulse 1.8s ease-out infinite;
}
@keyframes ghh-dotPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(46, 158, 91, 0.55);
    }
    70% {
        box-shadow: 0 0 0 9px rgba(46, 158, 91, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(46, 158, 91, 0);
    }
}

.ghica-hh .hero__promo__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}
.ghica-hh .hero__promo__text {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.15;
}
.ghica-hh .hero__promo__sub {
    font-size: 12.5px;
    opacity: 0.82;
    line-height: 1.25;
}
.ghica-hh .hero__promo__link {
    margin-top: 6px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--brand-accent-text);
}
.ghica-hh .hero__promo:hover .hero__promo__link {
    text-decoration: underline;
}

@keyframes ghh-rise {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- Reduce motion ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    .ghica-hh .hero__bg,
    .ghica-hh .hero__grain,
    .ghica-hh .badge,
    .ghica-hh .hero__promo__dot {
        animation: none;
    }
    .ghica-hh .hero__badges,
    .ghica-hh h1,
    .ghica-hh .lead,
    .ghica-hh .cta,
    .ghica-hh .hero__promo {
        opacity: 1;
        animation: none;
    }
}
