/* ============================================================
   SANGEETHA — Navbar
   Desktop > 900px | Tablet 768–900px | Mobile < 768px
============================================================ */

/* ── Header shell ──────────────────────────────────────── */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #F6E7C8;
    border-bottom: 1px solid #E0C99A;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    transition: box-shadow var(--transition);
}

#site-header.scrolled {
    box-shadow: 0 2px 20px rgba(61,31,13,0.13);
}

/* ── Inner layout ──────────────────────────────────────── */
.navbar-inner {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: clamp(1.5rem, 5vw, 5rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    height: 100%;
}

/* ── Logo ──────────────────────────────────────────────── */
.navbar-logo {
    flex-shrink: 0;
}
.navbar-logo img {
    height: 48px;
    width: auto;
    display: block;
}

/* ── Desktop nav links ─────────────────────────────────── */
.navbar-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.navbar-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 0;
}

.navbar-links li a {
    display: block;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 500;
    color: #3D1F0D;
    white-space: nowrap;
    position: relative;
    transition: color var(--transition);
}

.navbar-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 12px;
    right: 12px;
    height: 2px;
    background: #80051D;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--transition);
}

.navbar-links li a:hover,
.navbar-links li a.active {
    color: #80051D;
}

.navbar-links li a:hover::after,
.navbar-links li a.active::after {
    transform: scaleX(1);
}

/* ── Right cluster ─────────────────────────────────────── */
.navbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* ── Book a Table button ───────────────────────────────── */
.btn-book-table {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--maroon);
    color: var(--cream);
    border: 2px solid var(--maroon);
    border-radius: var(--radius-pill);
    padding: 10px 20px;
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    transition: background var(--transition), border-color var(--transition);
}
.btn-book-table:hover {
    background: var(--deep-maroon);
    border-color: var(--deep-maroon);
    color: var(--cream);
}

/* ── Hamburger ─────────────────────────────────────────── */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    flex-shrink: 0;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #3D1F0D;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Animate to × when open */
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Nav Drawer (tablet + mobile) ─────────────────────── */
.nav-drawer {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: #F6E7C8;
    border-bottom: 1px solid #E0C99A;
    box-shadow: 0 8px 28px rgba(61,31,13,0.12);
    padding: 8px 1.5rem 24px;
    z-index: 999;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: transform 0.28s ease, opacity 0.22s ease, visibility 0s linear 0.28s;
}

.nav-drawer.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transition: transform 0.28s ease, opacity 0.22s ease, visibility 0s linear 0s;
}

.nav-drawer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-drawer ul li a {
    display: block;
    padding: 13px 0;
    font-size: 15px;
    font-weight: 500;
    color: #3D1F0D;
    border-bottom: 1px solid rgba(61,31,13,0.08);
    transition: color var(--transition);
}

.nav-drawer ul li:last-child a {
    border-bottom: none;
}

.nav-drawer ul li a:hover {
    color: #80051D;
}

/* Book a Table inside drawer — mobile only */
.drawer-book-btn {
    display: none;
    width: 100%;
    justify-content: center;
    margin-top: 20px;
    padding: 13px 20px;
}

/* ── Tablet (768px – 900px) ─────────────────────────────── */
@media (max-width: 900px) {
    .navbar-nav {
        display: none;
    }
    .hamburger {
        display: flex;
    }
}

/* ── Mobile (< 768px) ───────────────────────────────────── */
@media (max-width: 767px) {
    .navbar-right .btn-book-table {
        display: none;
    }
    .drawer-book-btn {
        display: inline-flex;
    }
}

/* ── Dropdown ──────────────────────────────────────────── */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: #3D1F0D;
    white-space: nowrap;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    transition: color var(--transition);
}

.nav-dropdown-toggle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 12px;
    right: 12px;
    height: 2px;
    background: #80051D;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--transition);
}

.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown-toggle.active {
    color: #80051D;
}

.nav-dropdown:hover .nav-dropdown-toggle::after,
.nav-dropdown-toggle.active::after {
    transform: scaleX(1);
}

.nav-chevron {
    font-size: 11px;
    transition: transform 0.2s ease;
}

.nav-dropdown:hover .nav-chevron,
.nav-dropdown.open .nav-chevron {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    min-width: 185px;
    background: #F6E7C8;
    border: 1px solid rgba(212,164,55,0.35);
    border-radius: 10px;
    padding: 6px 0;
    list-style: none;
    box-shadow: 0 8px 28px rgba(61,31,13,0.14);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
    z-index: 1001;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0s;
}

.nav-dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    font-size: 13.5px;
    font-weight: 500;
    color: #80051D;
    white-space: nowrap;
    transition: color 0.2s, background 0.2s;
}

.nav-dropdown-menu li a:hover {
    color: #D4A437;
    background: rgba(212,164,55,0.1);
}

.nav-dropdown-menu li a::after {
    display: none;
}

/* ── Drawer labels & sub-items ─────────────────────────── */
.drawer-label {
    padding: 12px 0 4px;
    font-family: var(--font-body);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #80051D;
}

.nav-drawer ul li.drawer-label {
    border-bottom: none;
}

.drawer-sub-item a {
    padding-left: 16px !important;
    color: #5C3D2A !important;
    font-size: 14px !important;
}
