/* =========================================
   CLOCK7 MOBILE + DESKTOP HEADER STYLES
   ✅ Cleaned & Fully Responsive
========================================= */

/* Global Reset (SAFE) */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* ✅ CRITICAL: removes desktop right scrollbar */
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #f3f4f6;
    color: #0f172a;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

/* HEADER */
#global-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 20px;
}

/* LOGO */
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
}


/* Remove underline from the logo link */
.logo-link,
.logo-link:hover {
    text-decoration: none !important; /* Use !important only if standard rule fails */
}


/* DESKTOP NAV */
.desktop-nav {
    display: flex;
    gap: 14px;
}

.nav-link {
    text-decoration: none;
    color: #475569;
    font-size: 0.95rem;
    padding: 6px 10px;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
    background: #e0edff;
    color: #1d4ed8;
}

/* MOBILE HAMBURGER BUTTON */
.mobile-menu-btn {
    display: none; /* ✅ hidden on desktop */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: #0f172a;
}

/* MOBILE SLIDE-IN MENU */
#mobile-slide-menu {
    position: fixed;
    top: 0;
    right: -260px; /* stays off-canvas */
    width: 260px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -2px 0 10px rgba(0,0,0,0.15);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: right 0.35s ease;
    z-index: 2000;
}

#mobile-slide-menu.active {
    right: 0;
}

/* Close Button */
.close-btn {
    background: transparent;
    border: none;
    font-size: 1.6rem;
    align-self: flex-end;
    cursor: pointer;
}

/* Overlay */
#mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1500;
}

#mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* MOBILE BREAKPOINT */
@media (max-width: 900px) {

    /* Hide desktop nav */
    .desktop-nav {
        display: none;
    }

    /* Show hamburger */
    .mobile-menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}
