/* =========================================================
   HOTEL MIRROR — Shared Navbar Styles
   Used on every page. Do not duplicate inline.
   ========================================================= */

/* ----- Reset / Variables (nav-scoped) ----- */
:root {
  --nav-cream: #f8f6f3;
  --nav-charcoal: #1a1a1a;
  --nav-gray: #666666;
  --nav-border: #d4cfc7;
}

/* ----- Base navbar ----- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 18px 60px;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
  /* Default: transparent — for pages with a full-bleed hero */
  background: transparent;
}

/* Solid state — applied via JS on scroll, or statically on inner pages */
.navbar.scrolled,
.navbar.solid {
  background: rgba(248, 246, 243, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  padding: 14px 60px;
}

/* ----- Nav container ----- */
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}

/* ----- Logo ----- */
.logo {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 2px;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.navbar.scrolled .logo,
.navbar.solid .logo {
  color: var(--nav-charcoal);
}

/* ----- Desktop nav links ----- */
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
  flex-wrap: nowrap;
}

.nav-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.3s ease, opacity 0.3s ease;
  position: relative;
  white-space: nowrap;
}

.navbar.scrolled .nav-links a,
.navbar.solid .nav-links a {
  color: var(--nav-charcoal);
}

/* Underline hover effect */
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* ----- Reserve Now button ----- */
.nav-links .reserve-btn {
  background: #ffffff;
  color: var(--nav-charcoal) !important;
  border: 1px solid #ffffff;
  padding: 9px 22px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
  display: inline-block;
  flex-shrink: 0;
}

.navbar.scrolled .nav-links .reserve-btn,
.navbar.solid .nav-links .reserve-btn {
  background: var(--nav-charcoal);
  color: #ffffff !important;
  border-color: var(--nav-charcoal);
}

.nav-links .reserve-btn:hover {
  opacity: 0.82;
  transform: translateY(-2px);
}

/* Remove the underline pseudo-element on the button */
.nav-links .reserve-btn::after {
  display: none !important;
}

/* ----- Language Switcher ----- */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

.navbar.scrolled .lang-switcher,
.navbar.solid .lang-switcher {
  border-left-color: var(--nav-border);
}

.lang-switcher button {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 1px;
  cursor: pointer;
  padding: 4px 6px;
  transition: color 0.3s ease, opacity 0.3s ease;
  font-family: "Inter", sans-serif;
}

.navbar.scrolled .lang-switcher button,
.navbar.solid .lang-switcher button {
  color: rgba(26, 26, 26, 0.65);
}

.lang-switcher button:hover {
  color: #ffffff;
  opacity: 1;
}

.navbar.scrolled .lang-switcher button:hover,
.navbar.solid .lang-switcher button:hover {
  color: var(--nav-charcoal);
}

.lang-switcher button.active {
  color: #ffffff;
  font-weight: 600;
}

.navbar.scrolled .lang-switcher button.active,
.navbar.solid .lang-switcher button.active {
  color: var(--nav-charcoal);
}

.lang-switcher .divider {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
  user-select: none;
}

.navbar.scrolled .lang-switcher .divider,
.navbar.solid .lang-switcher .divider {
  color: rgba(26, 26, 26, 0.3);
}

/* ----- Hamburger button (hidden on desktop) ----- */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1010;
  flex-shrink: 0;
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: #ffffff;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}

.navbar.scrolled .mobile-menu-btn span,
.navbar.solid .mobile-menu-btn span {
  background: var(--nav-charcoal);
}

/* X state */
.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ----- Full-screen mobile overlay ----- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  background: rgba(248, 246, 243, 0.99);
  z-index: 1005;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-links {
  list-style: none;
  text-align: center;
  padding: 0;
  margin: 0;
}

.mobile-menu-links li {
  margin: 18px 0;
}

.mobile-menu-links a {
  font-family: "Playfair Display", serif;
  font-size: 1.85rem;
  color: var(--nav-charcoal);
  text-decoration: none;
  transition: opacity 0.25s ease;
  display: block;
}

.mobile-menu-links a:hover {
  opacity: 0.55;
}

.mobile-menu-links .reserve-btn {
  display: inline-block;
  margin-top: 24px;
  background: var(--nav-charcoal);
  color: #ffffff !important;
  padding: 13px 40px;
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: none;
  font-size: 0.9rem;
}

/* Mobile lang switcher inside overlay */
.mobile-menu .lang-switcher {
  margin-top: 30px;
  border-left: none;
  padding-left: 0;
  gap: 10px;
  border-top: 1px solid var(--nav-border);
  padding-top: 24px;
}

.mobile-menu .lang-switcher button {
  color: rgba(26, 26, 26, 0.65);
  font-size: 0.9rem;
  padding: 6px 10px;
}

.mobile-menu .lang-switcher button.active {
  color: var(--nav-charcoal);
  font-weight: 600;
}

.mobile-menu .lang-switcher button:hover {
  color: var(--nav-charcoal);
}

.mobile-menu .lang-switcher .divider {
  color: rgba(26, 26, 26, 0.3);
}

/* =========================================================
   DARK PAGE VARIANT (for dining page)
   ========================================================= */
.navbar.solid.dark-page {
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
}

.navbar.solid.dark-page .logo {
  color: #ffffff;
}

.navbar.solid.dark-page .nav-links a {
  color: rgba(255, 255, 255, 0.85);
}

.navbar.solid.dark-page .nav-links a:hover {
  color: #ffffff;
}

.navbar.solid.dark-page .nav-links .reserve-btn {
  background: #ffffff;
  color: #0a0a0a !important;
  border-color: #ffffff;
}

.navbar.solid.dark-page .nav-links .reserve-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.9);
}

.navbar.solid.dark-page .lang-switcher {
  border-left-color: rgba(255, 255, 255, 0.2);
}

.navbar.solid.dark-page .lang-switcher button {
  color: rgba(255, 255, 255, 0.6);
}

.navbar.solid.dark-page .lang-switcher button:hover,
.navbar.solid.dark-page .lang-switcher button.active {
  color: #ffffff;
}

.navbar.solid.dark-page .lang-switcher .divider {
  color: rgba(255, 255, 255, 0.2);
}

.navbar.solid.dark-page .mobile-menu-btn span {
  background: #ffffff;
}

/* Dark mobile menu */
.mobile-menu.dark-page {
  background: rgba(10, 10, 10, 0.99);
}

.mobile-menu.dark-page .mobile-menu-links a {
  color: #ffffff;
}

.mobile-menu.dark-page .mobile-menu-links a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.mobile-menu.dark-page .mobile-menu-links .reserve-btn {
  background: #ffffff;
  color: #0a0a0a !important;
}

.mobile-menu.dark-page .lang-switcher {
  border-top-color: rgba(255, 255, 255, 0.2);
}

.mobile-menu.dark-page .lang-switcher button {
  color: rgba(255, 255, 255, 0.6);
}

.mobile-menu.dark-page .lang-switcher button.active,
.mobile-menu.dark-page .lang-switcher button:hover {
  color: #ffffff;
}

.mobile-menu.dark-page .lang-switcher .divider {
  color: rgba(255, 255, 255, 0.2);
}

/* =========================================================
   BREAKPOINTS
   ========================================================= */

/* Tablet — shrink gaps before hiding */
@media (max-width: 1200px) {
  .navbar,
  .navbar.scrolled,
  .navbar.solid {
    padding: 16px 40px;
  }

  .nav-links {
    gap: 22px;
  }

  .nav-links a {
    font-size: 0.78rem;
    letter-spacing: 0.6px;
  }

  .nav-links .reserve-btn {
    padding: 8px 16px;
    font-size: 0.74rem;
  }
}

/* Small tablet — hide links, show hamburger */
@media (max-width: 900px) {
  .navbar,
  .navbar.scrolled,
  .navbar.solid {
    padding: 16px 30px;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .navbar,
  .navbar.scrolled,
  .navbar.solid {
    padding: 14px 20px;
  }

  .logo {
    font-size: 1.15rem;
    letter-spacing: 1.5px;
  }

  .mobile-menu-links a {
    font-size: 1.5rem;
  }
}
