/* ── Nav link (desktop underline) ── */
.nav-link {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    user-select: none;
}
.nav-link .bar {
    display: none;
    width: 40%;
    height: 3px;
    border-radius: 9999px;
    background-color: #000;
    margin-top: 2px;
}
.nav-link.active .bar { display: block; }

/* ── Hamburger button ── */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.2s;
}
.hamburger-btn:hover { background-color: #e5e7eb; }
.hamburger-btn .bar-line {
    display: block;
    width: 22px;
    height: 2.5px;
    background: #000;
    border-radius: 9999px;
    transition: all 0.3s ease;
}
.hamburger-btn .bar-line + .bar-line { margin-top: 5px; }
.hamburger-btn.open .bar-line:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger-btn.open .bar-line:nth-child(2) { opacity: 0; }
.hamburger-btn.open .bar-line:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
@media (max-width: 767px) {
    .hamburger-btn { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; }
}

/* ── Mobile slide-in drawer ── */
.drawer-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 100;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }
.drawer {
    position: fixed; top: 0; right: 0;
    width: 260px; height: 100vh;
    background: #fff;
    z-index: 101;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex; flex-direction: column;
    padding: 24px 20px;
}
.drawer.open { transform: translateX(0); }
.drawer .drawer-header { display: flex; justify-content: flex-end; margin-bottom: 24px; }
.drawer .drawer-close { background: none; border: none; cursor: pointer; padding: 6px; border-radius: 6px; transition: background-color 0.2s; }
.drawer .drawer-close:hover { background-color: #f3f4f6; }
.drawer .drawer-link { display: block; padding: 12px 8px; font-size: 0.95rem; font-weight: 500; color: #111827; border-radius: 8px; transition: background-color 0.2s; text-decoration: none; }
.drawer .drawer-link:hover { background-color: #f3f4f6; }
.drawer .drawer-link.active { background-color: #e5e7eb; font-weight: 600; }