﻿/* Menu-only CSS (no global colors/backgrounds/fonts) */
/* ---------- Header shell (only header/menu styled) ---------- */

.site-header {
    /*position: sticky;*/
    /*top: 0;*/
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.nav-wrap {
    /*max-width: 1100px;*/
    margin: 0 auto;
    display: flex;
    align-items: safe center;
    gap: 12px;
    padding: 12px 16px;
}

/* Brand (minimal) */
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #111827;
    text-decoration: none;
    font-weight: 600;
}

    .brand .mark {
        width: 24px;
        height: 24px;
        border-radius: 6px;
        background: #3b82f6; /* small accent block */
    }

/* ---------- Desktop menu ---------- */
.menu {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .menu a {
        position: relative;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 8px 12px;
        border-radius: 8px;
        color: #374151;
        text-decoration: none;
        transition: background 160ms ease, color 160ms ease;
    }

        .menu a:hover {
            background: #f3f4f6;
            color: #111827;
        }

        .menu a.active {
            color: #111827;
            font-weight: 600;
        }

            .menu a.active::after {
                content: "";
                position: absolute;
                left: 10px;
                right: 10px;
                bottom: 4px;
                height: 2px;
                border-radius: 2px;
                background: #111827;
            }

        /* ---------- Icons (desktop & mobile) ---------- */
        .menu a .icon,
        .mobile-drawer a .icon {
            width: 18px;
            height: 18px;
            flex-shrink: 0;
            display: inline-block;
        }

            .menu a .icon svg,
            .mobile-drawer a .icon svg {
                display: block;
                width: 100%;
                height: 100%;
                stroke: currentColor;
                fill: none;
                stroke-width: 2;
                stroke-linecap: round;
                stroke-linejoin: round;
            }

/* ---------- Hamburger button ---------- */
.nav-toggle {
    margin-left: auto;
    display: none; /* hidden on desktop */
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    color: #374151;
    cursor: pointer;
}

    .nav-toggle svg {
        width: 22px;
        height: 22px;
    }

    .nav-toggle .line {
        transition: transform 200ms ease, opacity 200ms ease;
        transform-origin: center;
    }

    .nav-toggle[aria-expanded="true"] .line1 {
        transform: translateY(6px) rotate(45deg);
    }

    .nav-toggle[aria-expanded="true"] .line2 {
        opacity: 0;
    }

    .nav-toggle[aria-expanded="true"] .line3 {
        transform: translateY(-6px) rotate(-45deg);
    }

/* ---------- Off-canvas mobile drawer ---------- */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    box-shadow: 2px 0 16px rgba(0,0,0,0.08);
    transform: translateX(-100%); /* hidden off-screen */
    transition: transform 300ms ease;
    z-index: 1001; /* above header */
    display: flex;
    flex-direction: column;
    padding: 12px;
}

    .mobile-drawer a {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 12px;
        border-radius: 8px;
        border: 1px solid #e5e7eb;
        color: #374151;
        text-decoration: none;
        margin-bottom: 8px;
        transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
    }

        .mobile-drawer a:hover {
            background: #f9fafb;
            color: #111827;
            border-color: #d1d5db;
        }

        .mobile-drawer a.active {
            border-color: #111827;
            color: #111827;
            font-weight: 600;
        }

    /* Drawer open state */
    .mobile-drawer.open {
        transform: translateX(0);
    }

/* Backdrop overlay (click to close) */
.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 250ms ease;
    z-index: 1000; /* below drawer but above page */
}

    .drawer-backdrop.open {
        opacity: 1;
        pointer-events: auto;
    }

/* ---------- Responsive: show hamburger, hide desktop menu ---------- */
@media (max-width: 768px) {
    .menu {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
    }
}


.FBCTX-NAV .menu a {
    color: darkgreen;
}

    .FBCTX-NAV .menu a.active::after {
        background: darkgreen;
    }

    .FBCTX-NAV .menu a .icon svg {
        stroke: currentColor;
    }

.FBCTX-NAV .mobile-drawer a {
    color: darkgreen;
    border-color: #bfd9bf;
}

    .FBCTX-NAV .mobile-drawer a.active {
        border-color: darkgreen;
    }

.FBCTX-NAV .nav-toggle {
    color: darkgreen;
    border-color: #bfd9bf;
}
