/* ============================================================
   We Serve — Curvy Floating Navbar
   ============================================================ */

/* ===================== FLOATING PILL ===================== */
.we-nav {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2.5rem);
    max-width: 1080px;
    z-index: 1000;
    transition: top 0.4s cubic-bezier(.4,0,.2,1), box-shadow 0.4s ease;
}

.we-nav__pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    height: 64px;
    padding: 0 1.25rem 0 1.5rem;

    background: rgba(7, 15, 28, 0.68);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);

    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.07);

    box-shadow:
        0 4px 28px rgba(0, 0, 0, 0.38),
        0 0 0 1px rgba(232, 160, 32, 0.06),
        inset 0 1px 0 rgba(255,255,255,0.05);

    transition: all 0.4s cubic-bezier(.4,0,.2,1);
}

/* Gold shimmer line at top of pill */
.we-nav__pill::before {
    content: '';
    position: absolute;
    top: 0; left: 15%; right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(232,160,32,0.5), transparent);
    border-radius: 0 0 100px 100px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

/* Scrolled state */
.we-nav.is-scrolled { top: 10px; }
.we-nav.is-scrolled .we-nav__pill {
    background: rgba(5, 13, 24, 0.95);
    border-color: rgba(232, 160, 32, 0.14);
    box-shadow:
        0 8px 36px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(232, 160, 32, 0.1),
        0 0 30px rgba(232, 160, 32, 0.04);
}
.we-nav.is-scrolled .we-nav__pill::before { opacity: 1; }

/* ===================== LOGO / BRAND ===================== */
.we-nav__brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    flex-shrink: 0;
}

.we-nav__drop {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 2px 8px rgba(232,160,32,0.45));
    transition: filter 0.3s ease, transform 0.3s ease;
}
.we-nav__drop svg { width: 22px; height: 28px; }
.we-nav__logo { height: 48px; width: auto; max-width: 190px; object-fit: contain; display: block; }
.we-drawer__logo img { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; }
.we-nav__brand:hover .we-nav__drop {
    filter: drop-shadow(0 4px 16px rgba(232,160,32,0.7));
    transform: translateY(-2px) scale(1.05);
}

.we-nav__brand-name {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.we-nav__brand-name strong {
    font-size: 1rem;
    font-weight: 900;
    color: #f0eadc;
    letter-spacing: 0.03em;
}
.we-nav__brand-name span {
    font-size: 0.6rem;
    color: rgba(255,255,255,0.38);
    font-weight: 400;
}

/* ===================== DESKTOP LINKS ===================== */
.we-nav__links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.15rem;
    position: relative;
    flex: 1;
    justify-content: center;
}

.we-nav__link {
    display: block;
    position: relative;
    z-index: 1;
    padding: 0.45rem 1rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.52);
    text-decoration: none;
    border-radius: 50px;
    transition: color 0.25s ease;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.we-nav__link:hover  { color: rgba(255,255,255,0.9); }
.we-nav__link.is-active { color: #fff; font-weight: 700; }

/* ======= Sliding pill indicator ======= */
.we-nav__indicator-wrap {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.we-nav__indicator {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 34px;
    background: linear-gradient(135deg, var(--we-gold), var(--we-orange));
    border-radius: 50px;
    box-shadow: 0 3px 14px rgba(232,160,32,0.4);
    transition: left 0.38s cubic-bezier(.4,0,.2,1),
                width 0.38s cubic-bezier(.4,0,.2,1),
                opacity 0.25s ease;
    pointer-events: none;
    opacity: 0;
}

/* ===================== CTA BUTTON ===================== */
.we-nav__end {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.we-nav__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(232, 160, 32, 0.12);
    border: 1.5px solid rgba(232, 160, 32, 0.35);
    color: var(--we-gold);
    font-weight: 700;
    font-size: 0.82rem;
    font-family: 'Cairo', sans-serif;
    padding: 0.42rem 1.15rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}
.we-nav__cta::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--we-gold), var(--we-orange));
    border-radius: 50px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}
.we-nav__cta span, .we-nav__cta i {
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}
.we-nav__cta:hover::after { opacity: 1; }
.we-nav__cta:hover { color: #050d1a; border-color: transparent; }
.we-nav__cta i { font-size: 0.78rem; }

/* ===================== BURGER ===================== */
.we-nav__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 38px; height: 38px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}
.we-nav__burger-bar {
    display: block;
    height: 1.5px;
    background: rgba(255,255,255,0.7);
    border-radius: 2px;
    transition: all 0.35s cubic-bezier(.4,0,.2,1);
}
.we-nav__burger-bar:nth-child(1) { width: 18px; }
.we-nav__burger-bar:nth-child(2) { width: 13px; }
.we-nav__burger-bar:nth-child(3) { width: 18px; }

.we-nav__burger:hover { border-color: var(--we-gold); background: rgba(232,160,32,0.1); }
.we-nav__burger:hover .we-nav__burger-bar { background: var(--we-gold); }

/* X state */
.we-nav__burger.is-open .we-nav__burger-bar:nth-child(1) { width: 17px; transform: translateY(6.5px) rotate(45deg); }
.we-nav__burger.is-open .we-nav__burger-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.we-nav__burger.is-open .we-nav__burger-bar:nth-child(3) { width: 17px; transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 991.98px) {
    .we-nav__links { display: none; }
    .we-nav__burger { display: flex; }
    .we-nav__cta { display: none !important; }
    .we-nav { top: 14px; width: calc(100% - 1.5rem); }
    .we-nav__pill { height: 58px; padding: 0 1rem; }
}

/* ===================== MOBILE DRAWER ===================== */
.we-drawer {
    position: fixed;
    inset: 0;
    z-index: 1100;
    visibility: hidden;
    pointer-events: none;
}
.we-drawer.is-open {
    visibility: visible;
    pointer-events: all;
}

/* Backdrop */
.we-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 8, 18, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.we-drawer.is-open .we-drawer__backdrop { opacity: 1; }

/* Panel — slides from right (RTL: right side) */
.we-drawer__panel {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: min(340px, 88vw);
    background: #070f1c;
    border-left: 1px solid rgba(232,160,32,0.12);
    display: flex;
    flex-direction: column;
    padding: 0;
    transform: translateX(100%);
    transition: transform 0.42s cubic-bezier(.4,0,.2,1);

    /* Curved left edge */
    border-radius: 28px 0 0 28px;
    overflow: hidden;
}
.we-drawer.is-open .we-drawer__panel { transform: translateX(0); }

/* Gold gradient line at left (curved) edge */
.we-drawer__panel::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0; right: 0;
    width: 2px;
    background: linear-gradient(180deg, transparent, var(--we-gold) 30%, var(--we-orange) 70%, transparent);
    opacity: 0.5;
}

/* Head */
.we-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.5rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.we-drawer__logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}
.we-drawer__logo i {
    font-size: 1.6rem;
    background: linear-gradient(135deg, var(--we-gold), var(--we-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.we-drawer__logo strong {
    display: block;
    font-size: 1rem;
    font-weight: 900;
    color: #f0eadc;
    line-height: 1.2;
}
.we-drawer__logo span {
    display: block;
    font-size: 0.65rem;
    color: rgba(255,255,255,0.35);
}

.we-drawer__close {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s ease;
}
.we-drawer__close:hover {
    background: rgba(232,160,32,0.15);
    border-color: rgba(232,160,32,0.4);
    color: var(--we-gold);
    transform: rotate(90deg);
}

/* Nav links */
.we-drawer__nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1rem;
    gap: 0.25rem;
    overflow-y: auto;
}

.we-drawer__link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1rem;
    text-decoration: none;
    color: rgba(255,255,255,0.55);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 14px;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}
.we-drawer__link:hover {
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.9);
}
.we-drawer__link.is-active {
    background: rgba(232,160,32,0.1);
    color: var(--we-gold);
    border: 1px solid rgba(232,160,32,0.18);
}

.we-drawer__link-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    flex-shrink: 0;
    transition: all 0.25s ease;
}
.we-drawer__link:hover .we-drawer__link-dot { background: rgba(255,255,255,0.5); }
.we-drawer__link.is-active .we-drawer__link-dot { background: var(--we-gold); box-shadow: 0 0 6px rgba(232,160,32,0.6); }

.we-drawer__link span:last-of-type { flex: 1; }

.we-drawer__link i {
    color: rgba(255,255,255,0.2);
    font-size: 0.9rem;
    transition: all 0.25s ease;
}
.we-drawer__link:hover i { color: rgba(255,255,255,0.5); transform: translateX(-3px); }
.we-drawer__link.is-active i { color: var(--we-gold); }

/* Stagger animation for links */
.we-drawer.is-open .we-drawer__link:nth-child(1) { animation: drawerLinkIn 0.4s ease 0.1s both; }
.we-drawer.is-open .we-drawer__link:nth-child(2) { animation: drawerLinkIn 0.4s ease 0.17s both; }
.we-drawer.is-open .we-drawer__link:nth-child(3) { animation: drawerLinkIn 0.4s ease 0.24s both; }
.we-drawer.is-open .we-drawer__link:nth-child(4) { animation: drawerLinkIn 0.4s ease 0.31s both; }
.we-drawer.is-open .we-drawer__link:nth-child(5) { animation: drawerLinkIn 0.4s ease 0.38s both; }

@keyframes drawerLinkIn {
    from { opacity: 0; transform: translateX(18px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Foot */
.we-drawer__foot {
    padding: 1.25rem 1.5rem 2rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.we-drawer__tel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.25s;
}
.we-drawer__tel:hover { color: var(--we-gold); }
.we-drawer__tel i { color: var(--we-gold); }

body.we-drawer-open { overflow: hidden; }

/* ===================== PAGE SPACING ===================== */
/* Inner pages — breadcrumb accounts for floating navbar height */
.we-breadcrumb { padding-top: calc(18px + 64px + 2.5rem); }

@media (max-width: 991.98px) {
    .we-breadcrumb { padding-top: calc(14px + 58px + 2rem); }
}
