/* ==========================================================================
   Header „loader" — meniul în care fiecare buton se umple
   proporțional cu cât ai derulat secțiunea corespunzătoare.
   Mecanica e cea de la Balky Studio, culorile și fontul sunt Skroll.
   ========================================================================== */

/* Proprietăți animabile pentru tăierea umplerii (stânga / dreapta). */
@property --nav-clip-l {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 0%;
}
@property --nav-clip-r {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 100%;
}

/* Pe desktop pilula are deja fundal propriu, deci bara nu mai are nevoie. */
@media (min-width: 768px) {
    #navbar.nav-scrolled {
        background-color: transparent;
        backdrop-filter: none;
        box-shadow: none;
    }
}

.nav-pill {
    --nav-pad-x: 0.95rem;
    --nav-pad-y: 0.35rem;
    --nav-accent: #4f46e5;
    position: relative;
    gap: 0.15rem;
    padding: 0.3rem;
    border: 1px solid rgba(15, 23, 42, 0.09);
    border-radius: 0.95rem;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

/* Logoul primeste aceeasi pastila, ca sa ramana lizibil si peste
   sectiunile inchise la culoare, unde bara nu mai are fundal propriu. */
.nav-logo-pill {
    padding: 0.16rem 0.9rem 0.16rem 0.16rem;
    border: 1px solid rgba(15, 23, 42, 0.09);
    border-radius: 0.95rem;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.nav-w-child {
    display: flex;
    align-items: center;
}

.nav-link {
    padding: 0.2rem;
    text-decoration: none;
    position: relative;
    display: block;
}

.nav-link-child {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--nav-pad-y) var(--nav-pad-x);
    border-radius: 0.55rem;
    overflow: hidden;
    color: #334155;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Stratul colorat + copia albă a textului, tăiate împreună. */
.nav-link-fill {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--nav-pad-y) var(--nav-pad-x);
    background-color: var(--nav-accent);
    color: #fff;
    pointer-events: none;
    clip-path: inset(0 var(--nav-clip-r, 100%) 0 var(--nav-clip-l, 0%));
}

/* Cele două straturi de litere pentru staggerul la hover. */
.nav-link-text {
    position: relative;
    display: block;
    overflow: hidden;
    /* Destul de inalt cat sa incapa diacriticele (A-breve, S-virgula),
       altfel overflow-ul taie caciula si lasa sa se vada copia ascunsa. */
    line-height: 1.5;
}

.nav-line {
    display: block;
    white-space: nowrap;
}

.nav-line.is--ab {
    position: absolute;
    top: 0;
    left: 0;
}

.nav-char {
    display: inline-block;
    will-change: transform;
}

/* Colțurile care sar de la un buton la altul. */
.nav-corners {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.25s ease;
}

.nav-corners.is--instant {
    transition: opacity 0.25s ease;
}

.nav-corner {
    position: absolute;
    width: 0.55rem;
    height: 0.55rem;
    border: 0 solid var(--nav-accent);
}

.nav-corner.is--tl {
    top: 0;
    left: 0;
    border-top-width: 1.5px;
    border-left-width: 1.5px;
    border-top-left-radius: 0.3rem;
}
.nav-corner.is--tr {
    top: 0;
    right: 0;
    border-top-width: 1.5px;
    border-right-width: 1.5px;
    border-top-right-radius: 0.3rem;
}
.nav-corner.is--bl {
    bottom: 0;
    left: 0;
    border-bottom-width: 1.5px;
    border-left-width: 1.5px;
    border-bottom-left-radius: 0.3rem;
}
.nav-corner.is--br {
    bottom: 0;
    right: 0;
    border-bottom-width: 1.5px;
    border-right-width: 1.5px;
    border-bottom-right-radius: 0.3rem;
}

/* Butonul de contact: umplere de jos în sus la hover. */
.nav-cta {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 0.55rem;
    padding: 0.55rem 1.2rem;
    border-radius: 0.6rem;
    background-color: var(--nav-accent);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
}

.nav-cta .nav-link-text {
    position: relative;
    z-index: 1;
}

.nav-cta-bg {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 0;
    background-color: #0f172a;
    transition: height 0.45s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.nav-cta:hover .nav-cta-bg,
.nav-cta:focus-visible .nav-cta-bg {
    height: 100%;
}

.nav-cta:active {
    transform: scale(0.97);
}

/* Dropdownul de la Servicii pornește sub cutia butonului. */
.nav-link-wrap .dropdown-menu {
    padding-top: 0.7rem;
}



/* Bare navigation at the top edge; colored controls retain their original layers. */
/* 03.10.2026 — the header sits on the page colour (#08090c), so its text and logo are always light. 04.10.2026: over the
   hero it is see-through and fills in gradually while the hero scrolls away (--nav-bg-a, set in nav-header.js). */
#navbar,#navbar.nav-scrolled{top:0;padding-top:0;padding-bottom:0;background:rgba(8,9,12,var(--nav-bg-a,1));backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:none}
.nav-pill,.nav-logo-pill{background:transparent;border-color:transparent;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}
.nav-pill{padding-top:0;padding-bottom:0}.nav-logo-pill{padding-top:0;padding-bottom:0}
.nav-logo-pill>span,.nav-link-child,#menu-toggle{color:var(--nav-ink,#f5f5f7)}

/* Shared 1200px content column for the navigation and Services. */
:root{--skroll-content-max:1200px;--skroll-content-gutter:40px}
#navbar{padding-left:var(--skroll-content-gutter);padding-right:var(--skroll-content-gutter)}
#navbar>div:first-child{max-width:var(--skroll-content-max)}
.nav-logo-pill{padding-left:0;border:0}.nav-pill{padding-left:0;padding-right:0;border:0}
@media(max-width:700px){:root{--skroll-content-gutter:24px}}
/* 02.10.2026 — the header in the language of V2. The scroll „loader” stays exactly as it was; the labels are no longer
   bold capitals (the only ones on the page) but sentence case, 14px, weight 500, like the other V2 buttons; the fill,
   the corners and „Contactează-ne” use the site's violet (#b6a0ff with dark text) instead of the V1 indigo. */
.nav-pill{--nav-accent:#b6a0ff}
.nav-link-child,.nav-cta{font-size:14px;font-weight:500;letter-spacing:-.01em;text-transform:none}
.nav-link-text{line-height:1.45}
.nav-link-fill{color:#140d24}
.nav-cta{padding:.62rem 1.15rem;border-radius:12px;color:#140d24;box-shadow:0 10px 28px -12px #8254ffb3}
.nav-cta-bg{background-color:#d9d0ff}
