/* ============================================================
   INCHCRAFT - GLOBAL NAVIGATION & HEADER STYLES
   Parent Scoped: .ic-navbar, .mobile-navbar, .ic-mobile-offcanvas
   ============================================================ */

/* ---- Desktop Top Navbar ---- */
.ic-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    padding: 0;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.ic-navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
    border-bottom: 1px solid rgba(200, 59, 59, 0.15);
}

.ic-navbar .ic-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    padding: 0 1.75rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Logo */
.ic-navbar .ic-logo img {
    height: 38px;
    width: auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.ic-navbar .ic-logo:hover img {
    transform: scale(1.03);
    opacity: 0.9;
}

/* Desktop Navigation Links */
.ic-navbar .ic-nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0 1.25rem 0 auto;
    padding: 0;
}

.ic-navbar .ic-nav-links > li > a,
.ic-navbar .ic-nav-links > li > button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 13.5px;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
    letter-spacing: 0.2px;
    border-radius: 50rem;
    transition: all 0.25s ease;
    background: none;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.ic-navbar .ic-nav-links > li > a:hover,
.ic-navbar .ic-nav-links > li > button:hover {
    color: #c83b3b;
    background: rgba(200, 59, 59, 0.06);
}

.ic-navbar .ic-nav-links > li > a.active,
.ic-navbar .ic-nav-links > li > button.active {
    color: #c83b3b;
    background: rgba(200, 59, 59, 0.08);
}

.ic-navbar .ic-nav-links .ic-chevron {
    font-size: 10px;
    transition: transform 0.25s ease;
}

.ic-navbar .ic-nav-links > li:hover .ic-chevron {
    transform: rotate(180deg);
}

/* Visual Mega Menu */
.ic-navbar .ic-mega-wrapper {
    position: relative;
}

.ic-navbar .ic-mega-wrapper::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 20px;
}

.ic-navbar .ic-mega-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: -180px;
    transform: translateY(-10px) scale(0.98);
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 24px;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.15);
    width: 920px;
    max-width: calc(100vw - 40px);
    padding: 28px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.28s cubic-bezier(0.165, 0.84, 0.44, 1);
    pointer-events: none;
    z-index: 2000;
}

.ic-navbar .ic-mega-wrapper:hover .ic-mega-menu,
.ic-navbar .ic-mega-wrapper:focus-within .ic-mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.ic-navbar .ic-mega-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 220px;
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-left: 1px solid rgba(0, 0, 0, 0.08);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    rotate: 45deg;
}

.ic-navbar .ic-mega-col-title {
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    gap: 6px;
}

.ic-navbar .ic-mega-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.2s ease;
    margin-bottom: 3px;
    white-space: nowrap;
}

.ic-navbar .ic-mega-link:hover {
    background: rgba(200, 59, 59, 0.06);
    color: #c83b3b;
    padding-left: 14px;
}

.ic-navbar .ic-mega-link i {
    font-size: 12px;
    color: #c83b3b;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: rgba(200, 59, 59, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.ic-navbar .ic-mega-link:hover i {
    transform: scale(1.1);
    background: #c83b3b;
    color: #ffffff;
}

/* Packages highlight column */
.ic-navbar .ic-mega-highlight {
    background: linear-gradient(135deg, rgba(200, 59, 59, 0.05) 0%, rgba(15, 23, 42, 0.03) 100%);
    border: 1px solid rgba(200, 59, 59, 0.12);
    border-radius: 18px;
    padding: 12px;
}

.ic-navbar .ic-mega-highlight .ic-mega-link {
    font-weight: 600;
}

.ic-navbar .ic-pkg-badge {
    font-size: 10px;
    font-weight: 700;
    background: rgba(200, 59, 59, 0.1);
    color: #c83b3b;
    padding: 2px 8px;
    border-radius: 50rem;
    margin-left: auto;
}

/* Right side CTAs */
.ic-navbar .ic-nav-cta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.ic-navbar .ic-tel-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
    padding: 6px 10px;
    background: transparent;
    border: none;
    transition: all 0.25s ease;
}

.ic-navbar .ic-tel-link:hover {
    background: transparent;
    color: #c83b3b;
}

.ic-navbar .ic-tel-link i {
    color: #c83b3b;
}

.ic-navbar .ic-cta-btn {
    background: linear-gradient(135deg, #c83b3b 0%, #a82b2b 100%);
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    padding: 10px 22px;
    border-radius: 50rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 16px rgba(200, 59, 59, 0.3);
    white-space: nowrap;
}

.ic-navbar .ic-cta-btn:hover {
    background: #0f172a;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.3);
    color: #ffffff !important;
}

/* User profile button */
.ic-navbar .ic-user-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    text-decoration: none;
    padding: 7px 14px;
    border-radius: 50rem;
    background: rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
}

.ic-navbar .ic-user-btn:hover {
    background: rgba(0, 0, 0, 0.08);
    color: #0f172a;
}

/* Hamburger (desktop hidden) */
.ic-navbar .ic-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 9px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
}

.ic-navbar .ic-hamburger:hover {
    background: rgba(200, 59, 59, 0.08);
    border-color: rgba(200, 59, 59, 0.2);
}

.ic-navbar .ic-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #0f172a;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Body padding offset for fixed header */
body {
    padding-top: 68px;
}

/* ---- Mobile Bottom Nav ---- */
.mobile-navbar {
    display: none;
}

@media (max-width: 991.98px) {
    .ic-navbar .ic-desktop-nav {
        display: none !important;
    }

    .ic-navbar .ic-hamburger {
        display: flex;
    }

    body {
        padding-top: 60px;
        padding-bottom: calc(75px + env(safe-area-inset-bottom)) !important;
    }

    .ic-navbar .ic-nav-inner {
        height: 60px;
        padding: 0 1rem;
    }

    /* Mobile bottom nav */
    .mobile-navbar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 9999;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        padding: 6px 4px max(6px, env(safe-area-inset-bottom));
        justify-content: space-around;
        align-items: center;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
    }

    .mobile-navbar .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 4px 6px;
        gap: 2px;
        text-decoration: none;
        color: #64748b;
        font-size: 10.5px;
        font-weight: 600;
        transition: all 0.2s ease;
        flex: 1;
        text-align: center;
        background: none;
        border: none;
        cursor: pointer;
    }

    .mobile-navbar .nav-item i {
        font-size: 17px;
        transition: transform 0.2s ease;
    }

    .mobile-navbar .nav-item.active,
    .mobile-navbar .nav-item:hover {
        color: #c83b3b;
    }

    .mobile-navbar .nav-item.active i,
    .mobile-navbar .nav-item:hover i {
        transform: translateY(-2px);
    }

    /* Center Quote CTA button */
    .mobile-navbar .mobile-nav-cta {
        position: relative;
        top: -12px;
    }

    .mobile-navbar .mobile-nav-cta .bottom-nav-bg {
        background: linear-gradient(135deg, #c83b3b 0%, #0f172a 100%);
        width: 48px;
        height: 48px;
        border-radius: 50%;
        color: #ffffff;
        box-shadow: 0 6px 16px rgba(200, 59, 59, 0.35);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        margin: 0 auto;
    }

    .mobile-navbar .mobile-nav-cta:hover .bottom-nav-bg,
    .mobile-navbar .mobile-nav-cta:focus .bottom-nav-bg {
        transform: scale(1.1);
    }
}

/* ---- Fancy Offcanvas Mobile Menu ---- */
.ic-mobile-offcanvas {
    width: 330px !important;
    border-right: none !important;
    border-radius: 0 24px 24px 0 !important;
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.15) !important;
}

.ic-mobile-offcanvas .offcanvas-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 20px;
    color: #ffffff;
}

.ic-mobile-offcanvas .ic-mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s ease;
    margin-bottom: 4px;
}

.ic-mobile-offcanvas .ic-mobile-nav-link i {
    width: 32px;
    height: 32px;
    background: rgba(200, 59, 59, 0.08);
    color: #c83b3b;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.ic-mobile-offcanvas .ic-mobile-nav-link:hover {
    background: rgba(200, 59, 59, 0.06);
    color: #c83b3b;
}

.ic-mobile-offcanvas .ic-mobile-nav-link:hover i {
    background: #c83b3b;
    color: #ffffff;
}

.ic-mobile-offcanvas .ic-mobile-section-title {
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #94a3b8;
    text-transform: uppercase;
    padding: 18px 16px 8px;
}

/* Auth Page Navbar */
.ic-auth-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    height: 68px;
    display: flex;
    align-items: center;
}

.ic-auth-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

