﻿/* ==========================================================================
   FACILITYRF PUBLIC NAVBAR - B2B SAAS STYLE
   ========================================================================== */

/* Navbar Wrapper */
.frf-navbar {
    background-color: #ffffff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.04);
    padding: 0.85rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f4f8;
}

    /* Brand Logo Styling */
    .frf-navbar .navbar-brand img {
        height: 48px; /* Đảm bảo logo sắc nét và cân đối */
        width: auto;
        object-fit: contain;
    }

    /* Nav Links Styling */
    .frf-navbar .nav-link {
        color: #1e293b; /* Dark Navy Slate */
        font-size: 1.05rem;
        font-weight: 500;
        padding: 0.6rem 1.2rem !important;
        transition: color 0.2s ease-in-out;
        display: flex;
        align-items: center;
        gap: 6px;
    }

        .frf-navbar .nav-link:hover,
        .frf-navbar .nav-link:focus,
        .frf-navbar .nav-item.show .nav-link {
            color: #2563eb; /* Primary Blue */
        }

        /* Chevron Arrow Rotation on Hover */
        .frf-navbar .nav-link .chevron-icon {
            font-size: 0.75rem;
            transition: transform 0.25s ease;
            opacity: 0.7;
        }

    .frf-navbar .nav-item:hover .chevron-icon {
        transform: rotate(180deg);
        opacity: 1;
        color: #2563eb;
    }

    /* Dropdown Menu Professional Styling */
    .frf-navbar .dropdown-menu {
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.08);
        padding: 0.75rem;
        min-width: 280px;
        margin-top: 0;
        /* CSS Fade & Slide Animation */
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }

/* Hover trigger for Desktop (Không cần click JS) */
@media (min-width: 992px) {
    .frf-navbar .nav-item.dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* Dropdown Item Customization */
.frf-navbar .dropdown-item {
    color: #334155;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

    .frf-navbar .dropdown-item:hover {
        background-color: #eff6ff; /* Light Blue Tint */
        color: #2563eb;
        transform: translateX(3px);
    }

.frf-navbar .dropdown-item-desc {
    display: block;
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 400;
    margin-top: 2px;
}

/* CTA Request Demo Button */
.btn-frf-primary {
    background-color: #3b82f6; /* Bright Professional Blue */
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.65rem 1.6rem;
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
    transition: all 0.2s ease;
}

    .btn-frf-primary:hover {
        background-color: #1d4ed8;
        color: #ffffff;
        box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
        transform: translateY(-1px);
    }

/* Mobile Responsive Tweaks */
@media (max-width: 991.98px) {
    .frf-navbar .dropdown-menu {
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background-color: #f8fafc;
        margin-left: 1rem;
    }

        .frf-navbar .dropdown-menu.show {
            display: block;
        }

    .frf-navbar .btn-frf-primary {
        width: 100%;
        margin-top: 1rem;
        text-center: center;
    }
}
