/* ═══════════════════════════════════════════════════════════
   drawer.css — mobile hamburger + slide-in nav drawer
   Import this on every page that uses drawer.html + script.js
   ═══════════════════════════════════════════════════════════ */

/* ── Hamburger button (visible only on mobile) ─────────── */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
    opacity: 0;
    animation: fadeUp 0.6s ease 0.36s forwards;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--ink);
    transition: 0.3s;
}

/* ── Slide-in drawer panel ──────────────────────────────── */
.mobile-drawer {
    display: none;
    position: fixed;
    top: 0; right: 0;
    width: 70vw;
    max-width: 280px;
    height: 100vh;
    background: var(--white);
    border-left: 1px solid var(--border);
    padding: 5rem 2rem 2rem;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}
.mobile-drawer.open { transform: translateX(0); }

.mobile-drawer a {
    font-family: 'Figtree', sans-serif;
    font-size: 1.2rem;
    color: var(--muted);
    text-decoration: none;
}
.mobile-drawer a:hover {
    color: var(--ink);
}

/* ── Scrim / backdrop ───────────────────────────────────── */
.drawer-scrim {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 900;
}

/* ── Reveal on mobile ───────────────────────────────────── */
@media (max-width: 1024px) {
    .hamburger        { display: flex; }
    .mobile-drawer    { display: flex; }
    .drawer-scrim     { display: block; visibility: hidden; }
    .drawer-scrim.active { visibility: visible; }
}