/* =========================
   CONTAINER
========================= */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================
   HEADER (OVER HERO)
========================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;

    z-index: 1000;

    background: transparent;
    border-bottom: none;

    transition: all 0.3s ease;
}

/* stare la scroll */
header.scrolled {
    background: #ffffff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 0;
    min-height: 88px;
}

/* =========================
   LOGO
========================= */
.logo img {
    height: 68px;
    width: auto;
    transition: all 0.3s ease;
}

/* logo alb peste hero */
header:not(.scrolled) .logo img {
    filter: brightness(0) invert(1);
}

/* =========================
   NAV DESKTOP
========================= */
.nav {
    display: flex;
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav li {
    position: relative;
}

.nav a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #0a2540;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 0;
    position: relative;
    transition: color 0.25s ease;
}

/* NAV peste hero (alb) */
header:not(.scrolled) .nav a {
    color: #ffffff;
}

header:not(.scrolled) .dropdown a {
    color: #0a2540;
}

/* underline */
.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: #C89B3C;
    transition: width 0.25s ease;
}

/* underline alb peste hero */
header:not(.scrolled) .nav a::after {
    background: #ffffff;
}

.nav a:hover::after {
    width: 100%;
}

/* =========================
   DROPDOWN DESKTOP
========================= */
.dropdown {
    position: absolute;
    top: 120%;
    left: 0;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    padding: 8px 0;
    min-width: 200px;
    display: none;
    z-index: 1200;
}

.has-dropdown:hover .dropdown {
    display: block;
}

.dropdown a {
    display: block;
    padding: 10px 16px;
}

.dropdown a:hover {
    background: #f5f7fa;
}

/* =========================
   LANGUAGE SWITCH
========================= */
.nav .language-menu {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 4px;
}

.nav .language-menu a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    padding: 5px 7px;
    border: 1px solid rgba(10, 37, 64, 0.18);
    border-radius: 5px;
    font-size: 12px;
    line-height: 1;
}

.nav .language-menu a::after {
    display: none;
}

header:not(.scrolled) .nav .language-menu a {
    border-color: rgba(255, 255, 255, 0.42);
}

.nav .language-menu a.is-current-lang {
    background: #C89B3C;
    border-color: #C89B3C;
    color: #111827;
}

header:not(.scrolled) .nav .language-menu a.is-current-lang {
    color: #111827;
}

/* =========================
   ICONS
========================= */
.icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    fill: currentColor;
}

@media (min-width: 769px) {
    .icon {
        display: none;
    }
}

/* =========================
   HAMBURGER
========================= */
.menu-toggle {
    display: none;
    width: 28px;
    height: 22px;
    position: relative;
    border: none;
    background: none;
    cursor: pointer;
    z-index: 3000;
}

.menu-toggle span {
    position: absolute;
    width: 100%;
    height: 3px;
    background: #0a2540;
    left: 0;
    transition: 0.3s;
}

/* hamburger alb peste hero */
header:not(.scrolled) .menu-toggle span {
    background: #ffffff;
}

.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 9px; }
.menu-toggle span:nth-child(3) { bottom: 0; }

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 9px;
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 9px;
}

/* =========================
   OVERLAY
========================= */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);

    opacity: 0;
    visibility: hidden;
    transition: 0.3s;

    z-index: 1500;
    pointer-events: none;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* =========================
   MOBILE MENU (FIXED)
========================= */
@media (max-width: 768px) {

    .logo img {
        height: 112px;
        width: auto;
    }

    .header-inner {
        padding: 14px 0;
        min-height: 96px;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
        z-index: 3100; /* peste nav */
    }


    /* NAV PANEL */
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;

        background: #ffffff;

        display: flex;
        flex-direction: column;

        padding-top: 80px;

        transition: right 0.3s ease;

        box-shadow: -10px 0 30px rgba(0,0,0,0.2);

        z-index: 3000; /* 🔥 peste overlay */
        pointer-events: auto;
    }

    .nav.active {
        right: 0;
    }

    /* ITEMS */
    .nav li {
        width: 100%;
        border-bottom: 1px solid #f1f5f9;
    }

    .nav a {
        display: block;
        padding: 18px 20px;

        font-size: 16px;
        font-weight: 500;

        color: #0a2540 !important; /* 🔥 fix text invizibil */
        text-decoration: none;
    }

    .nav a:hover {
        background: #f8fafc;
    }

    /* =========================
       DROPDOWN MOBILE
    ========================= */
    .nav .dropdown {
        display: none;
        position: static;
        background: #f8fafc;
        box-shadow: none;
    }

    .has-dropdown.active .dropdown {
        display: block;
    }

    .dropdown a {
        padding-left: 30px;
        font-size: 14px;
    }

    .nav .language-menu {
        display: flex;
        gap: 8px;
        padding: 16px 20px;
        margin-left: 0;
    }

    .nav .language-menu a {
        display: inline-flex;
        width: auto;
        min-width: 42px;
        padding: 9px 12px;
        color: #0a2540 !important;
    }

    /* dezactivăm hover desktop */
    .has-dropdown:hover .dropdown {
        display: none !important;
    }
}


/* =========================
   OVERLAY (IMPORTANT)
========================= */
.menu-overlay {
    position: fixed;
    inset: 0;

    background: rgba(0,0,0,0.45);

    opacity: 0;
    visibility: hidden;

    transition: 0.3s;

    z-index: 2500; /* sub nav */
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}


/* =========================
   DESKTOP FIX (CLEAN)
========================= */
@media (min-width: 769px) {

    .menu-toggle {
        display: none;
    }

    .nav {
        display: flex !important;
        position: static !important;

        height: auto !important;
        width: auto !important;

        background: transparent !important;
        box-shadow: none !important;

        padding-top: 0 !important;

        flex-direction: row;
    }

    .nav li {
        border: none;
    }

    .nav a {
        padding: 6px 0;
    }
}

/* =========================
   HERO GLOBAL (FINAL CLEAN)
========================= */
.page-hero {
    background:
        linear-gradient(135deg, rgba(15,23,42,0.92), rgba(30,41,59,0.92)),
        url('/assets/images/grid.svg');

    color: #fff;

    padding: 100px 0 25px; /* mai compact */
    margin-bottom: 0;
}

.page-hero h1 {
    font-size: 28px;
    margin-bottom: 6px;
}

.page-hero p {
    font-size: 15px;
    opacity: 0.75;
    max-width: 600px;
}


/* =========================
   BREADCRUMB (FINAL CLEAN)
========================= */
.breadcrumb-wrapper {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 10px 0;
    font-size: 13px;
}

/* link */
.breadcrumb-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    color: #6b7280;
    text-decoration: none;

    transition: 0.2s ease;
}

.breadcrumb-link:hover {
    color: #111827;
}

/* icon */
.breadcrumb svg {
    width: 12px;
    height: 12px;
    stroke: currentColor;
}

/* separator */
.breadcrumb-sep {
    display: flex;
    align-items: center;
    opacity: 0.35;
}

/* current */
.breadcrumb-current {
    color: #111827;
    font-weight: 500;
}


/* =========================
   NAV LINK ACTIV
========================= */
.nav a.active {
    color: #2563eb;
}

.nav a.active::after {
    width: 100%;
}

/* =========================
   SCROLL TO TOP
========================= */
#scrollTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;

    width: 48px;
    height: 48px;

    border: none;
    border-radius: 50%;

    background: #C89B3C;
    color: #fff;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    box-shadow: 0 10px 25px rgba(0,0,0,0.2);

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);

    transition: all 0.25s ease;

    z-index: 2000;
}

#scrollTopBtn svg {
    width: 20px;
    height: 20px;
}

/* vizibil */
#scrollTopBtn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* hover */
#scrollTopBtn:hover {
    background: #d9ab4a;
    transform: translateY(-3px);
}

#scrollTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;

    width: 48px;
    height: 48px;

    border: none;
    border-radius: 50%;

    background: rgba(200, 155, 60, 0.94);
    color: #fff;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    opacity: 0;
    visibility: hidden;

    transition: 0.25s;

    z-index: 3000;
}

/* vizibil */
#scrollTopBtn.show {
    opacity: 1;
    visibility: visible;
}

/* arrow */
#scrollTopBtn .arrow svg {
    width: 18px;
    height: 18px;
}

/* SVG ring */
.progress-ring {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotate(-90deg);
}

.progress-ring-bg {
    fill: transparent;
    stroke: rgba(255,255,255,0.15);
    stroke-width: 3;
}

.progress-ring-circle {
    fill: transparent;
    stroke: url(#progressGradient);
    stroke-width: 3;

    stroke-linecap: round;

    stroke-dasharray: 126;
    stroke-dashoffset: 126;

    transition: stroke-dashoffset 0.1s linear;

    filter: drop-shadow(0 0 6px rgba(37,99,235,0.6));
}

.progress-ring-circle {
    transition: stroke-dashoffset 0.08s linear; /* mai fluid */
}

.progress-ring-circle {
    filter: drop-shadow(0 0 4px rgba(37,99,235,0.5));
}

#scrollTopBtn {
    background: rgba(200, 155, 60, 0.88);
    backdrop-filter: blur(6px);
}

#scrollTopBtn:hover {
    transform: translateY(-2px) scale(1.04);
}

/* =========================
   HEADER PREMIUM DESKTOP
========================= */

.logo img {
    height: 88px;
    width: auto;
    transition: all 0.3s ease;
}

header:not(.scrolled) .logo img {
    filter: brightness(0) invert(1)
            drop-shadow(0 2px 12px rgba(0,0,0,.45));
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 108px;
    gap: 56px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav a {
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    transition: color .25s ease;
}

/* HERO STATE */
header:not(.scrolled) .nav a {
    color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(0,0,0,.35);
}

header:not(.scrolled) .nav a:hover {
    color: #C89B3C !important;
}

header:not(.scrolled) .nav a.active {
    color: #ffffff !important;
    background: rgba(255,255,255,.12);
    border-radius: 6px;
    padding: 8px 12px;
    backdrop-filter: blur(8px);
}

header:not(.scrolled) .nav a.active::after {
    display: none;
}

/* SCROLLED STATE */
header.scrolled .nav a {
    color: #0a2540;
}

header.scrolled .nav a.active {
    color: #C89B3C;
}

.nav .language-menu {
    margin-left: 20px;
}
/* =========================================================
   DROPDOWN FIX - DESKTOP
========================================================= */

@media (min-width: 769px) {
    header {
        overflow: visible;
        z-index: 3000;
    }

    .header-inner,
    nav,
    .nav,
    .nav li {
        overflow: visible;
    }

    .nav .has-dropdown {
        position: relative;
    }

    .nav .dropdown {
        display: block;
        position: absolute;
        top: calc(100% + 12px);
        left: 0;
        z-index: 5000;

        min-width: 240px;
        padding: 10px;
        margin: 0;

        background: #ffffff;
        border: 1px solid rgba(15,23,42,.08);
        border-radius: 12px;
        box-shadow: 0 18px 45px rgba(15,23,42,.16);

        opacity: 0;
        visibility: hidden;
        transform: translateY(8px);
        pointer-events: none;

        transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
    }

    .nav .has-dropdown:hover > .dropdown,
    .nav .has-dropdown:focus-within > .dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav .dropdown a {
        display: block;
        padding: 11px 12px;

        color: #0a2540 !important;
        background: transparent;

        border-radius: 8px;

        font-size: 14px;
        font-weight: 600;
        white-space: nowrap;
    }

    .nav .dropdown a::after {
        display: none;
    }

    .nav .dropdown a:hover {
        background: #eff6ff;
        color: #2563eb !important;
    }
}
