/* NAVBAR BACKGROUND – gradient Ducont */
.new-navbar,
.new-navbar-mob {
    --g1: #103a90;
    --g2: #0a2b6b;
    --g3: #144ba0;
    background:
        radial-gradient(1200px 600px at 10% -10%, rgba(255, 255, 255, .06), transparent 40%),
        linear-gradient(120deg, var(--g1), var(--g2) 50%, var(--g3));
         position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

/* ===== DESKTOP NAV (.new-navbar) – EXACT CA LA TINE ===== */

.new-navbar {
    padding: 20px 0px;
}

/* wrapper flex cu cele 3 zone */
.new-navbar-inner {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* STÂNGA / DREAPTA */
.nav-left,
.nav-right {
    position: absolute;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    pointer-events: auto;
}

.nav-left {
    left: 0;
    box-sizing: border-box;
    padding-left: 60px;
    justify-content: flex-start;
}

.nav-right {
    right: 0;
    box-sizing: border-box;
    padding-right: 60px;
    justify-content: flex-end;
    gap: 18px;
}

/* ascundem banda stângă când intră peste centru */
.nav-left.hide-left {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease;
}

/* ascundem banda dreaptă când intră peste centru */
.nav-right.hide-right {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease;
}

/* LOGO CENTRAL – inițial complet scos din flux */
.new-navbar .nav-center .navbar-brand.nav-center-logo {
    display: none !important;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity .28s ease, transform .28s ease;
}

.new-navbar .nav-center .navbar-brand.nav-center-logo.visible {
    display: flex !important;
    opacity: 1;
    transform: translateY(0);
}

/* COPIE DREAPTA ÎN CENTRU */
.nav-right-clone {
    display: none;
    align-items: center;
    gap: 18px;
    margin-left: auto;
}

.nav-right-clone.visible-right {
    display: flex;
}

/* CENTRU = container Bootstrap */
.nav-center.container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 2%;
    position: relative;
    z-index: 2;
}

/* LINKURI GENERALE */
.new-navbar .nav-link {
    position:relative;
    color: #ffffff;
    font-size: 16px;
    padding: .5rem 1rem;
    white-space: nowrap;
    font-weight:400 !important;
    letter-spacing: .3px;
}

.new-navbar .nav-link:hover,
.new-navbar .nav-link:focus {
    color: #ffffff;
    text-decoration: none;
    opacity: 0.9;
}

/* LOGO */
.navbar-brand img {
    height: 32px;
}

/* DROPDOWN MENIU / LIMBI */
.dropdown-custom {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

/* ===== MEGA DROPDOWN — 2 COLOANE LATERALE ===== */
.mega-dropdown {
    position: relative;
}

/* Meniul mare */
.mega-dropdown .mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;

    /* forțăm 2 coloane reale */
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;

    padding: 20px 24px;
    min-width: 420px;

    background: #0b2552;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 40px rgba(0,0,0,0.35);

    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}

/* Deschis – pe hover sau când Bootstrap pune .show */
.mega-dropdown:hover > .mega-menu,
.mega-dropdown.show > .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition: opacity .18s ease, transform .18s ease, visibility 0s;
}

/* Coloanele */
.mega-column {
    display: flex;
    flex-direction: column;
}

/* Titlu categorie – mai deschis */
.mega-title {
    font-size:16px;
    color: #fff;
    margin-bottom: 10px;
    padding-left: 10px;
    letter-spacing: 0.04em;
}

/* Link-urile din mega menu */
.mega-dropdown .dropdown-item.ducont-border-item {
    padding: 6px 10px;
    white-space: normal;
}

/* Mobil – dacă vrei să nu fie deranjant, poți pune coloană unică */
@media (max-width: 992px) {
    .mega-dropdown .mega-menu {
        position: static;
        min-width: 100%;
        box-shadow: none;
        border-radius: 0;
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 10px 0;
    }
}



.new-navbar .dropdown-menu {
    background:
        radial-gradient(1200px 600px at 10% -10%, rgba(255, 255, 255, .06), transparent 40%),
        linear-gradient(120deg, var(--g1), var(--g2) 50%, var(--g3));
    border: 1px solid white;
    border-radius: 5px;
    padding: 25px 8px 10px;
}

/* Baza – buton normal, alb, text negru (fallback / items simple) */
.new-navbar .dropdown-item {
    position: relative;
    display: block;
    opacity:1 !important;
    background-color: #ffffff;
    color: #000000 !important;
    border-radius: 5px;
    border: 1px solid rgba(0,0,0,.15);
    padding: 6px 14px;
    margin-bottom: 8px;
    white-space: nowrap;
    font-size: 14px;
    text-decoration: none;
    z-index: 0;
}

/* ===== EFECT TOP/BOTTOM BARS + GLOW pe item-urile cu clasa .ducont-border-item ===== */
.new-navbar .dropdown-item.ducont-border-item {
    position: relative;
    overflow: hidden;
    color: #ffffff !important;
    border-radius: 5px;
    margin-bottom: 8px;
    white-space: nowrap;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition:
        box-shadow .4s ease,
        border-color .4s ease,
        transform .2s ease;
}

/* textul – peste efect */
.new-navbar .dropdown-item.ducont-border-item .dropdown-label {
    position: relative;
    z-index: 2;
    color: black;
    font-weight: 500;
}


/* hover – dispar barele + glow albastru */
.new-navbar .dropdown-item.ducont-border-item:hover::before,
.new-navbar .dropdown-item.ducont-border-item:hover::after {
    transform: scale(0);
}

.new-navbar .dropdown-item.ducont-border-item:hover {
    box-shadow: inset 0px 0px 15px #2B5BAF;
    border-color: #2B5BAF;
    transform: translateY(-1px);
    background-color: #f8f9fa !important;
}

/* HOVER DROPDOWN doar pe desktop (>= 992px) */
@media (min-width: 992px) {
    .new-navbar .dropdown-menu {
         display: block;
        top: 35px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(6px);
        pointer-events: none;
        transition:
            opacity .22s ease,
            transform .22s ease,
            visibility .22s ease;
    }

    .new-navbar .dropdown:hover > .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .new-navbar .nav-item.with-line {
        position: relative;
    }

    .new-navbar .nav-item.with-line::after,
    .new-navbar .nav-link.with-line::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: -4px;
        transform: translateX(-50%);
        width: 0;
        height: 2px;
        background: #fff;
        transition: width .25s ease;
        border-radius: 2px;
    }

    .new-navbar .nav-item.with-line:hover::after,
    .new-navbar .nav-link.with-line:hover::after {
        width: 50%;
    }
}

/* LOGIN – doar icon */
.login-link {
    display: flex;
    align-items: center;
}

.login-link img {
    height: 18px;
    width: auto;
    display: block;
}

/* BUTON PREȚURI */
.nav-calculate-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-image: linear-gradient(275deg, #d0921c, #ff951a 55%, #dd6a08);
    border-radius: 5px;
    padding: 4px 16px;
    color: #ffffff !important;
    font-weight: 500;
    line-height: 1.9;
    text-decoration: none !important;
}

.nav-calculate-item img {
    height: 20px;
    width: auto;
    display: block;
}

.nav-calculate-item:hover,
.nav-calculate-item:focus {
    background: #ffa10a;
    color: #ffffff !important;
    text-decoration: none;
}

/* TELEFON */
.nav-phone {
    font-size: 20px;
    color: #ffb121;
    text-decoration: none;
    white-space: nowrap;
    font-weight: 400;
}

.nav-phone span {
    font-size: 22px;
    font-weight: 700;
    color: #ffb121;
}

.nav-phone:hover,
.nav-phone:focus,
.nav-phone:active {
    color: #ffb121 !important;
    text-decoration: none !important;
}

.nav-phone:hover span,
.nav-phone:focus span,
.nav-phone:active span {
    color: #ffb121 !important;
    text-decoration: none !important;
}

#LangMenu + .dropdown-menu,
#LangMenuClone + .dropdown-menu{
    min-width: 64px !important;
}

@media (min-width: 1230px) and (max-width: 1399px) {
    .nav-phone {
        display: none !important;
    }
}


/* ===== MOBILE NAVBAR (.new-navbar-mob) – NOUĂ ===== */

.new-navbar-mob {
    display: none; /* implicit ascunsă pe desktop */
    padding: 14px 0;
}

/* bară superioară: logo + burger */
.mob-inner {
    max-width: 1230px;
    width:100%;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

.mob-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding:10px 10px;
}

.mob-logo img {
    height: 25px;
    display: block;
}

.menu {
    --color: #fff;
    width: 38px;
    height: 38px;
    padding: 0;
    margin: 0;
    outline: none;
    position: relative;
    border: none;
    background: none;
    cursor: pointer;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
}

.menu svg {
    width: 52px;
    height: 40px;
    top: -3px;
    left: -12px;
    stroke: var(--color);
    stroke-width: 2px;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    display: block;
    position: absolute;
}

.menu svg path {
    transition: stroke-dasharray var(--duration, .85s) var(--easing, ease) var(--delay, 0s),
                stroke-dashoffset var(--duration, .85s) var(--easing, ease) var(--delay, 0s);
    stroke-dasharray: var(--array-1, 26px) var(--array-2, 100px);
    stroke-dashoffset: var(--offset, 126px);
    transform: translateZ(0);
}

.menu svg path:nth-child(2) {
    --duration: .7s;
    --easing: ease-in;
    --offset: 100px;
    --array-2: 74px;
}

.menu svg path:nth-child(3) {
    --offset: 133px;
    --array-2: 107px;
}

/* ======= ACTIVE STATE (X) ======= */

.menu.active svg path {
    --offset: 57px;
}

.menu.active svg path:nth-child(1),
.menu.active svg path:nth-child(3) {
    --delay: .15s;
    --easing: cubic-bezier(.2, .4, .2, 1.1);
}

.menu.active svg path:nth-child(2) {
    --duration: .4s;
    --offset: 2px;
    --array-1: 1px;
}

.menu.active svg path:nth-child(3) {
    --offset: 58px;
}

.menu {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent !important;
    user-select: none !important;
}

.menu:focus,
.menu:active,
.menu:focus-visible {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.mob-phone, .mob-phone span{
    font-size:18px;
}

.nav-phone.mob-phone {
    display: inline-flex;
    align-items: center;
}

.nav-phone.mob-phone .phone-icon {
    color: #ffb121;
    margin-right: 10px;
    margin-bottom:-9px;
}

.mob-menu {
    max-width: 1230px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 0 60px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 18px;
    transform: translateY(-6px);
    transition:
        max-height .45s ease,
        opacity .38s ease,
        padding .38s ease,
        transform .38s ease;
}

/* când este deschis */
.mob-menu.open {
    max-height: 800px;
    padding: 4px 10px 12px;
    opacity: 1;
    transform: translateY(0);
}

/* item general */
.mob-item {
    border-bottom: 1px solid rgba(255,255,255,.18);
    padding: 6px 0;
}

/* link / buton de nivel 1 */
.mob-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 4px 0;
    border: 0;
    background: none;
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    font-weight:500;
    cursor: pointer;
}

.mob-arrow-img {
    width: 9px;
    height: auto;
    transition: transform .25s ease;
    opacity: .85;
}

/* când submenu e deschis – întoarcem săgeata în jos */
.mob-item.open .mob-arrow-img {
    transform: rotate(180deg);
}

/* pentru <a> de nivel 1 fără submenu */
.mob-link--simple {
    justify-content: flex-start;
}

/* săgeata din dreapta (>) */
.mob-arrow {
    width: 7px;
    height: 7px;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    transform: rotate(-45deg);
    transition: transform .2s ease;
}

/* când submenu e deschis → săgeată jos (˅) */
.mob-item.open .mob-arrow {
    transform: rotate(45deg);
}

/* SUBMENU — animăm height + fade + slide */
.mob-submenu {
    max-height: 0;
    opacity: 0;
    overflow: hidden;

    transform: translateY(-4px);
    transform-origin: top;

    margin-top: 0;
    padding: 0;

    transition:
        max-height .55s cubic-bezier(.25,.8,.25,1),
        opacity   .45s ease,
        transform .45s cubic-bezier(.25,.8,.25,1),
        margin-top .45s ease,
        padding    .45s ease;
}

/* SUBMENU DESCHIS */
.mob-item.has-sub.open .mob-submenu {
    max-height: 420px;
    opacity: 1;
    transform: translateY(0);

    margin-top: 4px;
    padding: 4px 0 2px;
}


/* linkuri din submenu – pills ușor de apăsat */
.mob-sublink {
    display: block;
    padding: 7px 10px;
    border-radius: 8px;
    color: #f5f7ff;
    font-size: 15px;
    text-decoration: none;
}

/* spațiu între item-uri */
.mob-sublink + .mob-sublink {
    margin-top: 3px;
    border-top: none !important;
}

/* tap/hover – highlight pe item-ul apăsat */
.mob-sublink:hover,
.mob-sublink:active {
    background: linear-gradient(120deg, #103a90, #144ba0);
    color: #ffffff;
}

/* Login + icon */
.mob-login {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size:18px;
}

.mob-login i {
    color: #ffffff;
    font-size:18px;
}

/* buton Prețuri de jos */
.mob-cta {
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background-image: linear-gradient(275deg, #d0921c, #ff951a 55%, #dd6a08);
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    border-radius: 5px;
    padding: 8px 14px;
    font-size: 18px;
}

.mob-cta img {
    height: 18px;
    width: auto;
    display: block;
}

.mob-link {
    border: none;
    background: none;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
}

/* Fără efecte la focus / active */
.mob-link:focus,
.mob-link:active,
.mob-link:focus-visible {
    border: none;
    outline: none;
    box-shadow: none;
    background: none;
}

/* Fără highlight la tap și pe Prețuri / Login */
.mob-cta,
.mob-login,
.mob-cta:focus,
.mob-cta:active,
.mob-login:focus,
.mob-login:active {
    -webkit-tap-highlight-color: transparent;
    outline: none;
    border: none;
    box-shadow: none;
}

/* pentru linkurile text (fără background propriu) */
.mob-link,
.mob-link:link,
.mob-link:visited,
.mob-link:hover,
.mob-link:active,
.mob-link:focus,
.mob-link--simple,
.mob-link--simple:link,
.mob-link--simple:visited,
.mob-link--simple:hover,
.mob-link--simple:active,
.mob-link--simple:focus,
.mob-login,
.mob-login:link,
.mob-login:visited,
.mob-login:hover,
.mob-login:active,
.mob-login:focus {
    color: #ffffff;
    text-decoration: none;
    background: none;
    outline: none;
    border: none;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
}

/* butonul Prețuri – nu-i atingem background-ul cu gradient */
.mob-cta,
.mob-cta:link,
.mob-cta:visited,
.mob-cta:hover,
.mob-cta:active,
.mob-cta:focus {
    color: #ffffff;
    text-decoration: none;
    outline: none;
    border: none;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
}

.mob-login-icon {
    display: inline-block;
    animation: mob-bounce-slow 3s ease-in-out infinite;
}

.mob-login-inner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mob-login-inner i {
    color: #ffffff;
    font-size: 16px;
}


/* ===== STATE ACTIV pentru .mob-item.has-sub pe mobil ===== */

/* CARDUL – îl animăm la deschidere/închidere (bg, shadow, padding) */
.mob-item.has-sub {
    transition:
        background  .45s cubic-bezier(.25,.8,.25,1),
        padding     .45s cubic-bezier(.25,.8,.25,1),
        margin      .45s cubic-bezier(.25,.8,.25,1),
        border-color .45s ease,
        box-shadow   .45s ease;
}

/* pregătim butonul de nivel 1 pentru efectul de highlight */
.mob-item.has-sub > .mob-link {
    position: relative;
    border-radius: 12px;
    padding: 8px 0;
}

/* bară verticală portocalie pe stânga (inițial invizibilă) */
.mob-item.has-sub > .mob-link::before {
    content: "";
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 65%;
    border-radius: 999px;
    background-image: linear-gradient(180deg, #ffb121, #ff951a);
    opacity: 0;
    transition:
        width .22s ease,
        opacity .22s ease,
        transform .22s ease;
}

/* când submenu este DESCHIS – header + submeniu în ACELAȘI CARD */
.mob-item.has-sub.open {
    margin-top: 6px;
    padding: 8px 10px 8px;
    border-radius: 12px;

    /* card mai deschis la culoare */
    background:
        radial-gradient(700px 350px at 0% 0%, rgba(255,255,255,0.10), transparent 55%),
        rgba(10, 36, 98, 0.90);

    border: 1px solid rgba(255, 255, 255, 0.20);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

/* header activ */
.mob-item.has-sub.open > .mob-link {
    background: transparent;      /* card-ul este pe .mob-item */
    border-radius: 12px 12px 0 0; /* partea de sus a cardului */
}

/* text din header – mai gri decât sublink-urile */
.mob-item.has-sub.open .mob-label {
    color: rgba(230,233,245);
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* activăm bara portocalie */
.mob-item.has-sub.open > .mob-link::before {
    width: 3px;
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}


/* Desktop ≥ 1230px: doar .new-navbar */
@media (min-width: 1230px) {
    .new-navbar {
        display:block;
    }
    .new-navbar-mob {
        display:none;
    }
}

/* Mobile / tablet < 1230px: doar .new-navbar-mob */
@media (max-width: 1229px) {
    .new-navbar {
        display:none;
    }
    .new-navbar-mob {
        display:flex;
    }
}

/* === KILL BLUE & UNDERLINE în meniul mobil, inclusiv visited (inclusiv Safari) === */
.new-navbar-mob .mob-menu a,
.new-navbar-mob .mob-menu a:link,
.new-navbar-mob .mob-menu a:visited,
.new-navbar-mob .mob-menu a:hover,
.new-navbar-mob .mob-menu a:active,
.new-navbar-mob .mob-menu a:focus {
   color:#ffffff !important;
   text-decoration:none;
}