/* =============================================
   ONE CONVEYANCING - NAVY BLUE NAVBAR
   ============================================= */

:root {
    --navy: #0a1635;
    --navy-dark: #060f24;
    --navy-light: #1a2547;
    --white: #ffffff;
    --off-white: #fafbfc;
    --text-dark: #1a1a2e;
    --text-gray: #6b7280;
    --border: #e5e7eb;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 40px rgba(10, 22, 53, 0.15);
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--off-white);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========== MAIN NAVBAR ========== */
.custom-navbar {
    background: var(--white) !important;
    padding: 0 !important;
    transition: all 0.3s var(--ease);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1050;
    border-bottom: 1px solid var(--border);
    min-height: 75px;
}

.custom-navbar.scrolled {
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-height: 68px;
}

.custom-navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    max-width: 1320px;
}

/* ========== LOGO ========== */
.navbar-brand {
    padding: 10px 0;
    margin: 0;
    transition: all 0.3s var(--ease);
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 42px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    transition: all 0.3s var(--ease);
    display: block;
}

.custom-navbar.scrolled .nav-logo {
    height: 38px;
}

.navbar-brand:hover .nav-logo {
    transform: scale(1.03);
}

/* ========== NAV MENU ========== */
.navbar-collapse {
    flex-grow: 1;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0 auto !important;
    padding: 0;
    flex-wrap: nowrap;
}

.nav-item {
    position: relative;
    flex-shrink: 0;
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 26px 14px !important;
    transition: all 0.3s var(--ease);
    text-decoration: none;
    position: relative;
    letter-spacing: 0.2px;
    display: inline-block;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--navy);
    transition: width 0.3s var(--ease);
    border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: calc(100% - 28px);
}

.nav-link:hover {
    color: var(--navy) !important;
}

.nav-link.active {
    color: var(--navy) !important;
    font-weight: 600;
}

/* ========== RIGHT SIDE ========== */
.nav-right {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
    white-space: nowrap;
}

/* Sign In */
.btn-signin {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    padding: 6px 2px;
    position: relative;
    transition: color 0.3s var(--ease);
    white-space: nowrap;
}

.btn-signin::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 2px;
    right: 2px;
    height: 1.5px;
    background: var(--text-dark);
    transition: all 0.3s var(--ease);
}

.btn-signin:hover {
    color: var(--navy);
}

.btn-signin:hover::after {
    background: var(--navy);
}

/* Book Consultation Button */
.btn-book {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--navy);
    color: var(--white);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    border-radius: 50px;
    letter-spacing: 0.3px;
    transition: all 0.3s var(--ease);
    border: 1px solid var(--navy);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn-book::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s var(--ease);
}

.btn-book:hover::before {
    left: 100%;
}

.btn-book:hover {
    background: var(--navy-light);
    border-color: var(--navy-light);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(10, 22, 53, 0.35);
}

.btn-book i {
    font-size: 0.75rem;
    transition: transform 0.3s var(--ease);
}

.btn-book:hover i {
    transform: translateX(4px);
}

/* ========== HAMBURGER ========== */
.navbar-toggler {
    border: none !important;
    padding: 8px;
    background: transparent;
    border-radius: 8px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease);
}

.navbar-toggler:hover {
    background: rgba(10, 22, 53, 0.06);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(10, 22, 53, 0.15) !important;
}

.hamburger {
    width: 22px;
    height: 16px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: all 0.35s var(--ease);
}

.hamburger span:nth-child(2) {
    width: 70%;
    margin-left: auto;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    width: 100%;
}

/* ========== OVERLAY ========== */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease);
}

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

/* ========== RESPONSIVE ========== */

/* Medium screens */
@media (max-width: 1199px) and (min-width: 992px) {
    .nav-link {
        padding: 26px 10px !important;
        font-size: 0.85rem;
    }
    .nav-right { gap: 12px; }
    .btn-book { padding: 10px 18px; font-size: 0.8rem; }
    .btn-signin { font-size: 0.85rem; }
    .nav-logo { height: 38px; }
}

/* Tablet & Mobile */
@media (max-width: 991px) {
    .custom-navbar .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .navbar-brand { padding: 10px 0; }
    .nav-logo { height: 40px; }

    .navbar-collapse {
        position: fixed;
        top: 0;
        right: -320px;
        width: 300px;
        height: 100vh;
        background: var(--white);
        padding: 90px 0 30px;
        transition: right 0.4s var(--ease);
        z-index: 1060;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
        overflow-y: auto;
        display: block !important;
        flex-direction: column;
        justify-content: flex-start;
    }

    .navbar-collapse.show { right: 0; }

    .navbar-collapse.collapsing {
        right: -320px;
        transition: right 0.35s var(--ease);
        height: 100vh !important;
    }

    .navbar-collapse.collapse.show { right: 0; }

    .nav-menu {
        flex-direction: column;
        gap: 0;
        padding: 0 20px;
        margin: 0 !important;
        width: 100%;
    }

    .nav-item {
        width: 100%;
        border-bottom: 1px solid var(--border);
    }

    .nav-link {
        padding: 16px 12px !important;
        font-size: 0.95rem;
        width: 100%;
    }

    .nav-link::after { display: none; }

    .nav-link:hover,
    .nav-link.active {
        background: rgba(10, 22, 53, 0.06);
        color: var(--navy) !important;
        border-radius: 8px;
    }

    .nav-right {
        flex-direction: column;
        gap: 12px;
        padding: 25px 20px 0;
        width: 100%;
        align-items: stretch;
    }

    .btn-signin {
        text-align: center;
        padding: 12px;
        border: 1px solid var(--border);
        border-radius: 50px;
    }

    .btn-signin::after { display: none; }

    .btn-signin:hover {
        border-color: var(--navy);
        background: rgba(10, 22, 53, 0.05);
    }

    .btn-book {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }
}

/* Small Mobile */
@media (max-width: 576px) {
    .nav-logo { height: 36px; }
    .custom-navbar.scrolled .nav-logo { height: 34px; }
    .navbar-collapse { width: 280px; right: -300px; }
}