/* ===================================
   css/navbar.css  —  Navigation, Logo, Mobile Menu
   Extracted from styles.css (L79–251) + mobile responsive rules.
   styles.css remains authoritative during this migration pass.
   =================================== */

/* ── Fixed Navbar ── */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 10000;
    background: rgba(0, 102, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 0.85rem 0;
    transition: var(--transition-base);
}

/* Resize container specifically for the navbar to allow elements to breathe */
.navbar .container {
    max-width: 1360px;
    width: min(100% - 32px, 1360px);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem; /* Reduced from 2.25rem (var(--spacing-lg)) */
}

/* ── Logo ── */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* Reduced from 1.1rem (var(--spacing-sm)) */
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.01em;
}

.logo img  { height: 40px; width: auto; border-radius: 8px; object-fit: contain; flex-shrink: 0; }

/* Logo: image + text group side by side, image aligns to top of text */
.logo-text-group {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
    justify-content: center;
    position: relative;
}

/* Slogan — tiny, single line, never wraps */
.nav-slogan {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    width: max-content !important; /* Ensure slogan is never cut off */
    font-style: italic !important;
    font-size: 0.58rem !important; /* Slightly reduced for a cleaner, highly premium look */
    font-weight: 600 !important; /* Slightly bolder for high contrast readability */
    letter-spacing: 0.01em !important; /* Clean letter tracking */
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: visible !important; /* Ensure it is fully seen rather than hidden/truncated */
    color: #a5f3fc !important; /* Premium bright cyan with high contrast and perfect visibility on corporate blue */
    margin-top: 1px !important; /* Tightly tucked right below the text */
    display: block !important;
}

/* Copyright — bold, white, left-aligned */
.footer-copyright {
    font-size: 0.65rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin: 0;
    letter-spacing: 0.01em;
    justify-self: start;
}

/* Slogan — full gradient across entire text */
.footer-slogan-bar {
    font-size: 0.92rem;
    font-weight: 600;
    margin: 0;
    font-style: italic;
    letter-spacing: 0.02em;
    text-align: center;
    white-space: nowrap;
}
.footer-slogan-bar span {
    color: #ffffff;
    font-weight: 700;
}

/* ── Nav Links ── */
@media (min-width: 769px) {
    .nav-links {
        display: flex !important;
        gap: 1.25rem !important; /* Reduced from 2.25rem (var(--spacing-lg)) */
        align-items: center !important;
        margin-left: 3rem !important; /* Shifted left from 6.5rem to enable fit of all tabs */
        margin-right: auto !important;  /* Pushes WhatsApp CTA/Login to the far right, eliminating the huge empty middle space */
    }
}

/* Medium viewports (landscape tablets/phones forced to desktop layout): scale down items to fit all tabs */
@media (min-width: 769px) and (max-width: 1024px) {
    .nav-links {
        margin-left: 1.5rem !important;
        gap: 0.85rem !important;
    }
    .nav-links a {
        font-size: 0.9rem !important;
    }
    .login-btn {
        padding: 0.35rem 1rem !important;
        font-size: 0.85rem !important;
        margin-left: 0.25rem !important;
    }
    .nav-cta {
        gap: 0.5rem !important;
    }
    .nav-cta .whatsapp-btn {
        padding: 0.6rem 1rem !important;
        font-size: 0.85rem !important;
    }
    .nav-qr-btn {
        width: 38px !important;
        height: 38px !important;
    }
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
    position: relative;
    padding: 0.5rem 0;
    opacity: 0.9;
    display: inline-flex; /* Use inline-flex for perfect alignment */
    align-items: center;
}

.nav-links a:hover,
.nav-links a.active,
.nav-links a[aria-current="page"] {
    opacity: 1;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: white;
    transition: var(--transition-base);
}

.nav-links a:hover::after,
.nav-links a.active::after,
.nav-links a[aria-current="page"]::after {
    width: 100%;
}

/* ── Login Button ── */
.login-btn {
    border: 1.5px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 50px !important;
    padding: 0.4rem 1.25rem !important;
    opacity: 1 !important;
    margin-left: 0.5rem; /* Reduced from 1rem to match new link spacing */
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: inline-flex !important; /* Forces vertical centering of text inside button */
    align-items: center !important;
    justify-content: center !important;
}

.login-btn:hover {
    background: white;
    border-color: white !important;
    color: #0066FF !important;
}

.login-btn::after { display: none !important; }

/* ── Dropdown Navigation ── */
.nav-item { position: relative; }

.nav-dropdown {
    position: absolute;
    top: 100%; left: 0;
    background: rgba(30, 41, 59, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    padding: 1rem 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.nav-item:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--gray-text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.nav-dropdown a:hover {
    background: rgba(0, 102, 255, 0.1);
    color: var(--light-text);
    border-left-color: #0066FF;
    padding-left: 2rem;
}

.nav-dropdown a::after { display: none; }

/* ── WhatsApp Button (nav) ── */
.nav-cta .whatsapp-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition-base);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.nav-cta .whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* ── Hamburger Toggle ── */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px; height: 3px;
    background: var(--light-text);
    border-radius: 2px;
    transition: var(--transition-base);
}

/* Responsive rules moved to css/responsive.css */

/* ── Navbar CTA: WhatsApp button + QR icon button (separate, QR comes AFTER) ── */
.nav-cta {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

/* ── Standalone QR icon button container (positioned AFTER the WhatsApp btn) ── */
.nav-qr-container {
    position: relative;
    display: inline-block;
}

.nav-qr-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-qr-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 255, 255, 0.15);
}

.nav-qr-btn svg {
    stroke: currentColor;
}

/* ── QR dropdown panel ── */
.nav-qr-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: rgba(15, 23, 42, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 1rem;
    width: 180px;
    max-width: none !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    z-index: 1001;
    text-align: center;
}


.nav-qr-dropdown::before {
    content: '';
    position: absolute;
    bottom: 100%;
    right: 14px;
    border: 7px solid transparent;
    border-bottom-color: rgba(15, 23, 42, 0.97);
}

/* Show QR panel when hovering the QR icon button */
.nav-qr-container:hover .nav-qr-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Show QR panel when active (for click/tap toggles) */
.nav-qr-dropdown.active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}


.nav-qr-dropdown img {
    width: 100%;
    max-width: 140px;
    height: auto;
    border-radius: 8px;
    background: white;
    padding: 5px;
    display: block;
    margin: 0 auto;
}

.nav-qr-dropdown p {
    font-size: 0.75rem;
    font-weight: 700;
    color: #34d399;
    margin: 0.6rem 0 0 0;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* Hide mobile-only elements on desktop */
.mobile-nav-cta {
    display: none !important;
}

/* Hide QR icon button on mobile — users cannot scan their own screen */
@media (max-width: 768px) {
    .nav-qr-container {
        display: none !important;
    }
}


