﻿.eg-home-hero {
    --eg-hero-angle: 135deg;
    position: relative;
    padding: clamp(42px, 4.05vw, 73px) 0 clamp(44px, 4.2vw, 76px);
    overflow: hidden;
    isolation: isolate;
    color: #fff;
}

@media (max-width: 575.98px) {
    .eg-home-hero {
        --eg-hero-angle: 180deg;
        padding: 32px 0 32px;
    }
}



.eg-home-hero-content {
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.eg-home-hero-logo {
    width: clamp(180px, 18vw, 260px);
    height: auto;
    display: block;
    filter: drop-shadow(0 18px 40px rgba(0,0,0,.25));
}

.eg-home-hero-title {
    font-family: inherit;
    font-weight: 700;
    letter-spacing: 0;
    margin: 0 0 10px 0;
    font-size: clamp(1.76rem, 2.72vw, 2.88rem); 
    line-height: 1.08;
    text-wrap: balance;
}



.eg-home-hero-subtitle {
    margin: 0 0 20px 0;
    color: rgba(255, 255, 255, .92);
    font-size: clamp(1.04rem, 1.15vw, 1.12rem);
    line-height: 1.55;
    max-width: 540px;
}

.eg-home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.eg-home-btn-primary,
.eg-home-btn-secondary {
    border-radius: 16px;
    padding: 11px 16px;
    font-weight: 850;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    transform: translateZ(0);
    transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
}

.eg-home-btn-primary {
    background: linear-gradient(180deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,0) 100%), #075a81;
    border: 1px solid rgba(255, 255, 255, .14);
    color: #fff;
    box-shadow: 0 18px 55px rgba(0, 0, 0, .22);
}

    .eg-home-btn-primary:hover {
        filter: brightness(1.06);
        color: #fff;
        transform: translateY(-1px);
        box-shadow: 0 22px 70px rgba(0,0,0,.26);
    }

    .eg-home-btn-primary:active {
        transform: translateY(0);
        filter: brightness(1.02);
    }

.eg-home-btn-secondary {
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(0, 31, 54, .14);
    color: #001f36;
    box-shadow: 0 14px 45px rgba(0,0,0,.16);
}

    .eg-home-btn-secondary:hover {
        filter: brightness(.99);
        color: #001f36;
        transform: translateY(-1px);
        box-shadow: 0 18px 60px rgba(0,0,0,.20);
    }

    .eg-home-btn-secondary:active {
        transform: translateY(0);
    }

    .eg-home-btn-primary:focus-visible,
    .eg-home-btn-secondary:focus-visible {
        outline: 3px solid rgba(0, 159, 227, .45);
        outline-offset: 3px;
    }

/* HERO MEDIA: centrat vertical, aspect ratio stabil, fade pe margini */
.eg-home-hero-media {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: 0;
    overflow: hidden;
    background: transparent;
    isolation: isolate;
    margin-top: 6px;
}

@media (max-width: 991.98px) {
    .eg-home-hero-media {
        aspect-ratio: 4 / 3;
        margin-top: 10px;
        margin-bottom: 10px;
    }
}

.eg-home-hero-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transform: scale(1.03);
    filter: none; /* păstrează poza originală */
    opacity: 1;
    /* fade pe margini, centru intact */
    -webkit-mask-image: radial-gradient(ellipse at 55% 52%, rgba(0,0,0,1) 60%, rgba(0,0,0,.92) 68%, rgba(0,0,0,.55) 78%, rgba(0,0,0,0) 92%);
    mask-image: radial-gradient(ellipse at 55% 52%, rgba(0,0,0,1) 60%, rgba(0,0,0,.92) 68%, rgba(0,0,0,.55) 78%, rgba(0,0,0,0) 92%);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 135% 135%;
    mask-size: 135% 135%;
    -webkit-mask-position: center;
    mask-position: center;
}

.eg-home-hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    background:
    /* vignette clasic, centru complet transparent */
    radial-gradient(ellipse at 55% 52%, rgba(0,0,0,0) 58%, rgba(0,0,0,.12) 68%, rgba(0,0,0,.36) 80%, rgba(0,0,0,.72) 100%),
    /* întunecare mai proeminentă în partea de sus (nu atinge centrul) */
    radial-gradient(900px 520px at 15% 10%, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 62%),
    /* ajută să se „lipească” de text pe stânga, fără să murdărească centrul */
    linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.18) 22%, rgba(0,0,0,0) 42%);
    mix-blend-mode: multiply;
    opacity: .95;
}

.eg-home-hero-glow {
    display: none;
}



/* Sections */
.eg-home-section {
    padding: clamp(30px, 3.2vw, 54px) 0;
}

.eg-home-section-soft {
    background: linear-gradient(180deg, rgba(214, 230, 246, .58) 0%, rgba(214, 230, 246, .22) 52%, rgba(214, 230, 246, 0) 100%), var(--bg);
}

html[data-theme="dark"] .eg-home-section-soft {
    background: linear-gradient(180deg, rgba(214, 230, 246, .06) 0%, rgba(214, 230, 246, .03) 55%, rgba(0, 0, 0, 0) 100%), var(--bg);
}


.eg-home-h2 {
    font-weight: 950;
    letter-spacing: -0.03em;
    color: var(--brand-navy);
    margin-bottom: 18px;
    text-wrap: balance;
}

html[data-theme="dark"] .eg-home-h2 {
    color: var(--text);
}

.eg-home-h3 {
    font-weight: 900;
    color: var(--brand-navy);
    margin-bottom: 8px;
    font-size: 1.06rem;
}

html[data-theme="dark"] .eg-home-h3 {
    color: var(--text);
}

.eg-home-muted {
    color: var(--text-muted);
}

/* Feature cards */
.eg-home-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 14px;
}

@media (max-width: 991.98px) {
    .eg-home-feature-grid {
        grid-template-columns: 1fr;
    }
}

.eg-home-feature-card {
    position: relative;
    background: color-mix(in oklab, var(--surface) 92%, var(--brand-soft) 8%);
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
    padding: 18px 16px;
    transition: transform .16s ease, box-shadow .16s ease;
}

    .eg-home-feature-card::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 18px;
        background: linear-gradient(180deg, rgba(0,159,227,.16) 0%, rgba(0,159,227,0) 45%);
        opacity: .45;
        pointer-events: none;
    }

    .eg-home-feature-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

html[data-theme="dark"] .eg-home-feature-card {
    background: var(--surface);
}

/* Categories slider */
.eg-home-cats-wrap {
    position: relative;
    margin-top: 14px;
}

    .eg-home-cats-wrap::before,
    .eg-home-cats-wrap::after {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        width: 56px;
        pointer-events: none;
        z-index: 1;
    }

    .eg-home-cats-wrap::before {
        left: 0;
        background: linear-gradient(90deg, color-mix(in oklab, var(--bg) 88%, transparent 12%) 0%, transparent 100%);
    }

    .eg-home-cats-wrap::after {
        right: 0;
        background: linear-gradient(270deg, color-mix(in oklab, var(--bg) 88%, transparent 12%) 0%, transparent 100%);
    }

.eg-home-cats-rail {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 28px 52px 36px 52px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scroll-padding-inline: 52px;
    -webkit-overflow-scrolling: touch;
}

    .eg-home-cats-rail::-webkit-scrollbar {
        height: 10px;
    }

    .eg-home-cats-rail::-webkit-scrollbar-thumb {
        background: color-mix(in oklab, var(--border-strong) 70%, transparent 30%);
        border-radius: 999px;
    }

    .eg-home-cats-rail::-webkit-scrollbar-track {
        background: transparent;
    }

.eg-home-cat-card {
    flex: 0 0 calc((100% - 16px * 4) / 5);
    scroll-snap-align: center;
    border-radius: 18px;
    overflow: hidden;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-subtle);
    display: block;
    text-decoration: none;
    position: relative;
    transform: translateZ(0);
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
    will-change: transform;
    isolation: isolate;
}

@media (max-width: 991.98px) {
    .eg-home-cat-card {
        flex-basis: calc((100% - 16px) / 2);
    }
}

@media (max-width: 575.98px) {
    .eg-home-cat-card {
        flex-basis: 62%;
    }
}

.eg-home-cat-img {
    width: 100%;
    height: auto;
    display: block;
}

.eg-home-cat-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.16) 100%);
    opacity: 0;
    transition: opacity .16s ease;
    pointer-events: none;
}

.eg-home-cat-card:hover::after {
    opacity: 1;
}

/* Active + neighbors, ca să arate bine pe desktop, fără tăieri */
.eg-home-cat-card.is-active {
    transform: translateY(-6px) scale(1.12);
    box-shadow: var(--shadow-md);
    z-index: 5;
    filter: saturate(1.03);
}

@media (min-width: 992px) {
    .eg-home-cat-card.is-near {
        transform: translateY(-2px) scale(1.04);
        z-index: 3;
        filter: saturate(1.02);
    }

    .eg-home-cat-card.is-far {
        transform: translateY(-1px) scale(1.01);
        z-index: 2;
    }
}

@media (max-width: 991.98px) {
    .eg-home-cat-card.is-active {
        transform: translateY(-4px) scale(1.08);
    }
}

.eg-home-cat-card:hover:not(.is-active) {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-md);
    filter: saturate(1.02);
}

.eg-home-cat-card:focus-visible {
    outline: 3px solid rgba(0, 159, 227, .38);
    outline-offset: 4px;
}

/* Slider arrows */
.eg-home-cats-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
    background: color-mix(in oklab, var(--surface) 88%, var(--brand-soft) 12%);
    color: var(--text);
    box-shadow: var(--shadow-sm);
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 2;
    transition: transform .16s ease, filter .16s ease;
}

html[data-theme="dark"] .eg-home-cats-nav {
    background: color-mix(in oklab, var(--surface) 90%, #000 10%);
    border-color: var(--border-subtle);
}

.eg-home-cats-nav:hover {
    transform: translateY(-50%) scale(1.03);
    filter: brightness(1.02);
}

.eg-home-cats-prev {
    left: -10px;
}

.eg-home-cats-next {
    right: -10px;
}

@media (max-width: 991.98px) {
    .eg-home-cats-nav {
        display: none;
    }

    .eg-home-cats-wrap::before,
    .eg-home-cats-wrap::after {
        display: none;
    }

    .eg-home-cats-rail {
        padding: 24px 6px 30px 6px;
        scroll-padding-inline: 6px;
    }
}

.eg-home-launch {
    margin-top: 14px;
    background: color-mix(in oklab, var(--surface) 92%, var(--brand-soft) 8%);
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    padding: 13px 14px;
    color: var(--text);
    box-shadow: var(--shadow-sm);
}

@media (prefers-reduced-motion: reduce) {
    .eg-home-btn-primary,
    .eg-home-btn-secondary,
    .eg-home-feature-card,
    .eg-home-cat-card,
    .eg-home-cats-nav {
        transition: none;
    }

    .eg-home-cats-rail {
        scroll-behavior: auto;
    }
}

@supports (-webkit-touch-callout: none) {
    .eg-home-btn-primary,
    .eg-home-btn-secondary,
    .eg-home-cat-card {
        transform: none;
        will-change: auto;
    }

    .eg-home-hero-image {
        -webkit-mask-image: none;
        mask-image: none;
    }

    .eg-home-hero-media::after {
        mix-blend-mode: normal;
        opacity: .75;
    }
}
