/* Import: Inter */
@import url(https://fonts.googleapis.com/css2?family=Inter+Tight:ital,wght@0,300..700;1,300..700&family=Inter:wght@300..700&family=IBM+Plex+Sans+Arabic:wght@400;500;700&display=swap);

@font-face {
    font-family: "Mabry Pro";
    src: local("Mabry Pro Bold"), url('../fonts/mabry-pro/MabryPro-Bold.woff2'), url('../fonts/mabry-pro/MabryPro-Bold.woff');
    font-weight: 700;
    text-rendering: optimizeLegibility;
    font-display: swap;
    ascent-override: 90%;
}

.navbar {
    background-color: #f3eee9;
    font-family: 'Mabry Pro', sans-serif;
    font-weight: 700;
    padding: 10px 20px;
    position: relative;
    z-index: 1000;
    width: 100%;
    box-sizing: border-box;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.logo {
    display: flex;
    align-items: center;
}

    .logo img {
        height: 34px;
        width: auto;
    }

/* Desktop nav */
.nav-links {
    display: flex;
    justify-content: flex-end;
    list-style: none;
    margin: 0;
    padding: 0;
}

    .nav-links li {
        margin-left: 20px;
    }

    .nav-links a {
        text-decoration: none;
        color: #000;
        font-size: 18px;
        font-weight: bold;
        transition: color 0.2s;
    }

        .nav-links a:hover {
            color: #178d72;
        }

/* HAMBURGER MENU - Maximum specificity override */
@media screen and (max-width: 768px) {
    /* Force hamburger visibility with maximum specificity */
    nav.navbar button#hamburger.hamburger,
    .navbar button#hamburger.hamburger,
    button#hamburger.hamburger,
    #hamburger.hamburger,
    .hamburger {
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        position: relative !important;
        width: 34px !important;
        height: 24px !important;
        background: none !important;
        border: none !important;
        cursor: pointer !important;
        padding: 0 !important;
        margin: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
        z-index: 9999 !important;
    }

        /* Hamburger bars styling with maximum specificity */
        nav.navbar button#hamburger.hamburger .hamburger-bar,
        .navbar button#hamburger.hamburger .hamburger-bar,
        button#hamburger.hamburger .hamburger-bar,
        #hamburger.hamburger .hamburger-bar,
        .hamburger .hamburger-bar,
        nav.navbar button#hamburger.hamburger span.hamburger-bar,
        .navbar button#hamburger.hamburger span.hamburger-bar,
        button#hamburger.hamburger span.hamburger-bar,
        #hamburger.hamburger span.hamburger-bar,
        .hamburger span.hamburger-bar {
            display: block !important;
            width: 100% !important;
            height: 3px !important;
            background-color: #000 !important;
            background: #000 !important;
            margin: 3px 0 !important;
            border-radius: 2px !important;
            opacity: 1 !important;
            visibility: visible !important;
            position: relative !important;
            transition: all 0.3s ease !important;
            transform: none !important;
        }

        /* Hamburger animation when active */
        .hamburger.active .hamburger-bar:nth-child(1),
        .hamburger.active span.hamburger-bar:nth-child(1) {
            transform: translateY(10px) rotate(45deg) !important;
        }

        .hamburger.active .hamburger-bar:nth-child(2),
        .hamburger.active span.hamburger-bar:nth-child(2) {
            opacity: 0 !important;
        }

        .hamburger.active .hamburger-bar:nth-child(3),
        .hamburger.active span.hamburger-bar:nth-child(3) {
            transform: translateY(-10px) rotate(-45deg) !important;
        }
}

/* Mobile menu (hidden by default) */
.mobile-menu {
    display: none;
    flex-direction: column;
    background-color: #f5eee9;
    opacity: 0.95;
    width: 220px;
    position: absolute;
    top: 100%;
    left: 20px;
    padding: 20px;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
}

    .mobile-menu.show {
        display: flex !important;
    }

    .mobile-menu a {
        color: #333;
        text-decoration: none;
        padding: 0.8rem 0;
        display: block;
        font-size: 18px;
        font-family: 'Mabry Pro', sans-serif;
        font-weight: 700;
        transition: color 0.2s;
    }

        .mobile-menu a:hover {
            color: #178d72;
        }

/* RESPONSIVE BREAKPOINTS */

/* Desktop: Show nav links, hide hamburger */
@media screen and (min-width: 769px) {
    .nav-links {
        display: flex !important;
    }

    .hamburger {
        display: none !important;
    }

    .mobile-menu {
        display: none !important;
    }
}

/* Mobile/Tablet: Hide nav links, show hamburger */
@media screen and (max-width: 768px) {
    .nav-links {
        display: none !important;
    }

    .hamburger {
        display: flex !important;
    }

    .mobile-menu.show {
        display: flex !important;
    }
}