/* ══════════════════════════════════════════
   ELOSTI HEADER — Floating Capsule Navbar
   ══════════════════════════════════════════ */

:root {
    --el-navy:       #002575;   /* primary / nav text */
    --el-blue:       #0b43bd;   /* contact btn bg */
    --el-blue-dark:  #000863;   /* btn hover */
    --el-orange:     #ff6600;   /* mobile CTA accent */
    --el-green:      #1bca00;   /* WhatsApp */
    --el-white:      #ffffff;
    --el-shadow:     0 4px 32px rgba(0, 37, 117, 0.10);
    --el-radius:     99px;
}

/* ── Typography ── */
.el-header,
.el-mobile-overlay {
    font-family: 'Outfit', sans-serif;
}

/* ══ HEADER WRAPPER ══ */
.el-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    pointer-events: none;
    padding-top: 34px;
    background-image: url('https://elosti.ro/wp-content/uploads/2025/06/Screenshot-2025-06-24-at-20.48.09.jpg');
    background-repeat: repeat;
    background-size: 180px 180px;
    background-position: top left;
    transition: padding-top .35s ease, background-color .35s ease;
}

/* La scroll: bg dispare, header se micșorează */
.el-header.scrolled {
    background-image: none;
    background-color: transparent;
    padding-top: 14px;
}

/* ══ TOPBAR ══ */
.el-topbar-wrap {
    pointer-events: all;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
    transition: opacity .3s ease, transform .3s ease;
}

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

.el-topbar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(0, 37, 117, 0.55);
    text-decoration: none;
    transition: color .2s;
    letter-spacing: .01em;
    white-space: nowrap;
}
.el-topbar-item:hover { color: var(--el-navy); }
.el-topbar-item strong { color: var(--el-navy); font-weight: 700; }

/* Hide topbar on scroll */
.el-header.scrolled .el-topbar-wrap {
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
}

/* Navbar se micșorează la scroll */
.el-header.scrolled .el-navbar-inner {
    height: 72px;
}
.el-header.scrolled .el-navbar {
    box-shadow: 0 2px 20px rgba(0, 37, 117, 0.12);
}

/* ══ NAVBAR ══ */
.el-navbar-wrap {
    pointer-events: all;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.el-navbar {
    background-color: var(--el-white);
    background-image: url('https://elosti.ro/wp-content/uploads/2025/06/Screenshot-2025-06-24-at-20.48.09.jpg');
    background-repeat: repeat;
    background-size: 180px 180px;
    border-radius: var(--el-radius);
    box-shadow: var(--el-shadow);
    border: 1px solid rgba(0, 37, 117, 0.06);
}

.el-navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 92px;
    padding: 0 28px;
    transition: height .35s ease;
}

/* ── Logo group (logo + telefon) ── */
.el-logo-group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.el-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.el-logo img {
    height: 36px;
    width: auto;
    display: block;
}

.el-nav-phone {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 15px;
    font-weight: 700;
    color: var(--el-navy);
    text-decoration: none;
    border-left: 1.5px solid rgba(0, 37, 117, 0.12);
    margin-left: 22px;
    padding-left: 22px;
    white-space: nowrap;
    transition: color .2s;
}
.el-nav-phone:hover { color: var(--el-blue); }

/* ── WhatsApp navbar cu pulse ── */
.el-nav-wa {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(27, 202, 0, 0.10);
    border-radius: 50%;
    color: var(--el-green);
    margin-left: 14px;
    text-decoration: none;
    flex-shrink: 0;
    transition: background .2s;
}
.el-nav-wa:hover { background: rgba(27, 202, 0, 0.20); }

.el-wa-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(27, 202, 0, 0.35);
    animation: elWaPulse 2.2s ease-out infinite;
    pointer-events: none;
}

@keyframes elWaPulse {
    0%   { transform: scale(1);   opacity: 0.8; }
    60%  { transform: scale(1.9); opacity: 0; }
    100% { transform: scale(1.9); opacity: 0; }
}

/* ── Nav right (links + cta) ── */
.el-nav-right {
    display: flex;
    align-items: center;
    gap: 0;
}

/* ── Nav links ── */
.el-nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.el-nav-links li a {
    font-size: 21px;
    font-weight: 600;
    color: var(--el-navy);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 99px;
    transition: background .2s, color .2s, transform .15s;
    white-space: nowrap;
}
.el-nav-links li a:hover {
    background: rgba(0, 37, 117, 0.07);
    color: var(--el-blue);
    transform: translateY(-1px);
}

/* ── Desktop CTAs ── */
.el-nav-ctas {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 22px;
}

.el-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--el-orange);
    color: var(--el-white) !important;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: var(--el-radius);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .02em;
    transition: background .2s, transform .15s, box-shadow .2s;
    white-space: nowrap;
}
.el-contact-btn:hover {
    background: #e05500;
    box-shadow: 0 6px 24px rgba(255, 102, 0, 0.40);
    transform: translateY(-2px);
}

/* ── Hamburger ── */
.el-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: var(--el-navy);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: background .2s;
}
.el-hamburger:hover { background: var(--el-blue); }

.el-hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--el-white);
    border-radius: 2px;
    transition: transform .3s ease, opacity .3s ease;
    transform-origin: center;
}
.el-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.el-hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.el-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══ MOBILE OVERLAY ══ */
.el-mobile-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(160deg, #002575 0%, #001a55 100%);
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: circle(0% at calc(100% - 42px) 70px);
    transition: clip-path .5s cubic-bezier(0.77, 0, 0.175, 1);
    pointer-events: none;
}
.el-mobile-overlay.active {
    clip-path: circle(150% at calc(100% - 42px) 70px);
    pointer-events: all;
}

/* Close button */
.el-mobile-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.12);
    border: 1.5px solid rgba(255,255,255,0.20);
    border-radius: 50%;
    color: var(--el-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}
.el-mobile-close:hover { background: rgba(255,255,255,0.20); }

/* Mobile nav */
.el-mobile-nav {
    position: absolute;
    top: calc(50% - 20px);
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0 30px;
    text-align: center;
}

/* Mobile links */
.el-mobile-links {
    list-style: none;
    margin: 0 0 36px;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.el-mobile-links li a {
    font-size: 28px;
    font-weight: 800;
    color: rgba(255,255,255,0.90);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .04em;
    transition: color .2s;
    display: block;
    padding: 4px 0;
}
.el-mobile-links li a:hover { color: var(--el-white); }

/* Mobile CTAs */
.el-mobile-ctas {
    width: 240px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: opacity .4s ease, transform .4s ease;
}
.el-mobile-overlay.active .el-mobile-ctas {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.el-mobile-contact-btn {
    background: var(--el-orange);
    color: var(--el-white);
    border: none;
    border-radius: var(--el-radius);
    font-size: 15px;
    font-weight: 800;
    padding: 17px 20px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(255,102,0,0.30);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
}

.el-mobile-phone-btn {
    background: rgba(255,255,255,0.10);
    color: rgba(255,255,255,0.80);
    border: 1.5px solid rgba(255,255,255,0.20);
    border-radius: var(--el-radius);
    font-size: 14px;
    font-weight: 600;
    padding: 13px 20px;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    letter-spacing: .5px;
}

/* Mobile info (WA, address) */
.el-mobile-info {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.el-mobile-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.50);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color .2s;
    text-align: center;
}
.el-mobile-info-item:hover { color: rgba(255,255,255,0.80); }
.el-mobile-wa-color { color: rgba(27,202,0,0.85) !important; }

/* ══ RESPONSIVE ══ */
@media (max-width: 900px) {
    .el-nav-right,
    .el-nav-phone,
    .el-nav-wa {
        display: none;
    }
    .el-hamburger {
        display: flex;
    }
    .el-navbar-inner {
        height: 60px;
        padding: 0 20px;
    }
    .el-logo img {
        height: 30px;
    }
    .el-header {
        padding-top: 10px;
    }
    .el-topbar-wrap {
        display: none;
    }
}

@media (min-width: 901px) {
    .el-mobile-overlay {
        display: none !important;
    }
}
