/* ===========================
   Desktop Navbar (unchanged)
   =========================== */
.navbar {
  backdrop-filter: none;
  z-index: 999;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  transition: all 0.5s;
  background-color: transparent;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.navbar-container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}
@media (min-width: 1024px) {
  .navbar-container {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

.nav-logo {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  text-decoration: none;
}
.nav-logo-img {
  height: 3rem;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}
@media (min-width: 768px) {
  .nav-logo-img { height: 3.5rem; }
}

.nav-logo:hover .nav-logo-img {
  transform: scale(1.05);
}

.nav-center {
  display: none;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  align-items: center;
  gap: 2.5rem;
}
@media (min-width: 1024px) {
  .nav-center { display: flex; }
}

.nav-right {
  display: none;
}
@media (min-width: 1024px) {
  .nav-right { display: block; }
}

.nav-link {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  transition: all 0.3s;
  position: relative;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}
.nav-link:hover { color: white; }

.nav-link-with-caret {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-caret {
  transition: transform 0.3s ease;
}

.nav-dropdown {
  position: relative;
}

.products-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.85rem);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 48rem;
  padding: 1.2rem;
  border-radius: 0.85rem;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 24px 45px rgba(15, 23, 42, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  z-index: 1005;
}

.products-dropdown-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.2rem;
}

.products-dropdown-column {
  padding: 0.7rem 0.8rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(241, 245, 249, 1);
  background: #fbfdff;
}

.products-dropdown-category {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #0f172a;
  text-decoration: none;
}

.products-dropdown-category:hover {
  color: #c5a059;
}

.products-dropdown-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  border-radius: 9999px;
  font-size: 0.62rem;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.07);
  color: #334155;
}

.products-dropdown-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.products-dropdown-item,
.products-dropdown-view-all {
  text-decoration: none;
  color: #475569;
  font-size: 0.78rem;
  line-height: 1.4;
}

.products-dropdown-item:hover,
.products-dropdown-view-all:hover {
  color: #0f172a;
}

.products-dropdown-view-all {
  display: inline-flex;
  width: fit-content;
  margin-top: 0.3rem;
  font-weight: 700;
  color: #c5a059;
}

.nav-dropdown:hover .products-dropdown-menu,
.nav-dropdown:focus-within .products-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown:hover .nav-caret,
.nav-dropdown:focus-within .nav-caret {
  transform: rotate(180deg);
}

.nav-underline {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 2px;
  background-color: #c5a059;
  transition: all 0.5s;
  border-radius: 9999px;
  width: 0;
  opacity: 0;
}
.nav-underline.is-active {
  width: 100%;
  opacity: 1;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border: 1px solid;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: all 0.4s;
  background: rgba(197, 160, 89, 0.15);
  color: #c5a059;
  border-color: rgba(197, 160, 89, 0.3);
  text-decoration: none;
  border-radius: 0.25rem;
}
.nav-cta:hover {
  background: #c5a059;
  color: #ffffff;
  border-color: #c5a059;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(197, 160, 89, 0.3);
}

/* Solid State Overrides */
.navbar.navbar--solid {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  border-bottom: 1px solid rgba(229, 231, 235, 1);
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}
.navbar.navbar--solid .nav-link { color: rgba(75, 85, 99, 1) !important; }
.navbar.navbar--solid .nav-link:hover { color: #0f172a !important; }
.navbar.navbar--solid .nav-link.is-active { color: #c5a059 !important; }
.navbar.navbar--solid .nav-cta {
  background: #c5a059;
  color: #ffffff;
  border-color: #c5a059;
}
.navbar.navbar--solid .nav-cta:hover {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

/* ===========================
   Toggle Button - Two-line hamburger
   =========================== */
.nav-toggle {
  display: inline-flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: rgba(15, 23, 42, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  z-index: 1001;
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
}
.nav-toggle:hover {
  transform: translateY(-1px);
  background: rgba(15, 23, 42, 0.24);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}
.nav-toggle:focus-visible {
  outline: 2px solid #c5a059;
  outline-offset: 3px;
}

.nav-toggle-icon {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.nav-toggle-bar {
  display: block;
  width: 16px;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
              opacity 0.3s ease,
              background-color 0.3s ease;
  transform-origin: center;
}
.nav-toggle-icon .nav-toggle-bar:nth-child(2) {
  width: 12px;
}
.nav-toggle-icon .nav-toggle-bar:nth-child(3) {
  width: 16px;
}

/* Solid state: dark bars */
.navbar.navbar--solid .nav-toggle-bar,
.nav-toggle--solid .nav-toggle-bar {
  background-color: #0f172a;
}
.navbar.navbar--solid .nav-toggle {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}
.navbar.navbar--solid .nav-toggle:hover {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.16);
}

/* Hamburger to X animation */
.nav-toggle[aria-expanded="true"] .nav-toggle-icon .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-icon .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
  width: 16px;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-icon .nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

/* When menu is open, bars always white (over dark overlay) */
.nav-toggle[aria-expanded="true"] {
  background: rgba(15, 23, 42, 0.92);
  border-color: rgba(255, 255, 255, 0.14);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar {
  background-color: #ffffff;
}

/* ===========================
   Mobile Menu
   =========================== */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1),
              visibility 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(197, 160, 89, 0.2), transparent 30%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.5), rgba(15, 23, 42, 0.78));
  backdrop-filter: blur(12px);
}

.mobile-drawer {
  position: relative;
  margin-left: auto;
  width: min(100%, 22rem);
  min-height: 100dvh;
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.94)),
    #0f172a;
  box-shadow: 0 24px 80px rgba(2, 6, 23, 0.45);
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.23, 1, 0.32, 1);
  overflow: hidden;
}

.mobile-menu.is-open .mobile-drawer {
  transform: translateX(0);
}

.mobile-drawer-glow {
  position: absolute;
  width: 11rem;
  height: 11rem;
  top: -3rem;
  right: -2.5rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197, 160, 89, 0.2), transparent 68%);
  pointer-events: none;
}

.mobile-drawer-header {
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 0.15rem 0 1rem;
  margin-bottom: 0.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.mobile-logo-img {
  height: 2.15rem;
  width: auto;
  object-fit: contain;
  opacity: 0.92;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.mobile-logo:hover .mobile-logo-img {
  opacity: 1;
  transform: scale(1.03);
}

.mobile-drawer-nav {
  position: relative;
  z-index: 1;
}

.mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0.25rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mobile-nav-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Staggered animation when menu is open */
.mobile-menu.is-open .mobile-nav-item {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.is-open .mobile-nav-item[data-stagger-index="0"] { transition-delay: 0.08s; }
.mobile-menu.is-open .mobile-nav-item[data-stagger-index="1"] { transition-delay: 0.14s; }
.mobile-menu.is-open .mobile-nav-item[data-stagger-index="2"] { transition-delay: 0.20s; }
.mobile-menu.is-open .mobile-nav-item[data-stagger-index="3"] { transition-delay: 0.26s; }
.mobile-menu.is-open .mobile-nav-item[data-stagger-index="4"] { transition-delay: 0.32s; }
.mobile-menu.is-open .mobile-nav-item[data-stagger-index="5"] { transition-delay: 0.38s; }
.mobile-menu.is-open .mobile-nav-item[data-stagger-index="6"] { transition-delay: 0.44s; }
.mobile-menu.is-open .mobile-nav-item[data-stagger-index="7"] { transition-delay: 0.50s; }

/* When closing, remove stagger delays for instant fade */
.mobile-nav-item {
  transition-delay: 0s;
}

/* Navigation links */
.mobile-link {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  padding: 0.8rem 0.85rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  color: rgba(255, 255, 255, 0.84);
  transition: color 0.3s ease, transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  font-family: 'Playfair Display', serif;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.15;
}
.mobile-link-toggle {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  cursor: pointer;
}
.mobile-link-toggle .mobile-submenu-caret {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.72);
  transition: transform 0.3s ease;
}
.mobile-link-toggle[aria-expanded="true"] .mobile-submenu-caret {
  transform: rotate(180deg);
}
.mobile-link:hover {
  color: #ffffff;
  transform: translateX(3px);
  border-color: rgba(197, 160, 89, 0.3);
  background: rgba(197, 160, 89, 0.08);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.16);
}
.mobile-link.is-active {
  color: #c5a059;
  border-color: rgba(197, 160, 89, 0.34);
  background: linear-gradient(135deg, rgba(197, 160, 89, 0.16), rgba(197, 160, 89, 0.06));
}

.mobile-link-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.9rem;
  height: 1.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.52);
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.mobile-products-submenu {
  display: none;
  margin-top: 0.5rem;
  padding: 0.5rem 0.4rem 0.2rem 0.4rem;
  border-left: 1px solid rgba(197, 160, 89, 0.3);
  margin-left: 0.95rem;
}

.mobile-products-submenu.is-open {
  display: block;
}

.mobile-submenu-top-link,
.mobile-submenu-category-link,
.mobile-submenu-link {
  text-decoration: none;
  display: block;
}

.mobile-submenu-top-link {
  color: #c5a059;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0.2rem 0 0.9rem;
}

.mobile-submenu-group + .mobile-submenu-group {
  margin-top: 0.9rem;
}

.mobile-submenu-category-link {
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.mobile-submenu-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.3rem;
}

.mobile-submenu-link {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.79rem;
  line-height: 1.35;
}

.mobile-submenu-link:hover {
  color: #c5a059;
}

@media (min-width: 480px) {
  .mobile-link {
    font-size: 1.22rem;
  }
}

.mobile-drawer-footer {
  position: relative;
  z-index: 1;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.mobile-menu.is-open .mobile-drawer-footer {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.28s;
}

.mobile-kicker {
  margin: 0 0 0.75rem;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.mobile-cta {
  width: 100%;
  padding: 0.82rem 1rem;
  background: linear-gradient(135deg, #c5a059, #d4b06a);
  border: 1px solid rgba(197, 160, 89, 0.5);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  transition: all 0.3s ease;
}
.mobile-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(197, 160, 89, 0.24);
}
.mobile-cta:focus-visible {
  outline: 2px solid #c5a059;
  outline-offset: 2px;
}

.mobile-contact {
  padding-top: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}

.mobile-contact-link {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  letter-spacing: 0.01em;
}
.mobile-contact-link:hover {
  color: #c5a059;
  transform: translateX(3px);
}

@media (max-width: 479px) {
  .mobile-drawer {
    width: min(100%, 19.5rem);
    padding: 0.8rem;
  }

  .mobile-link {
    font-size: 1.02rem;
    padding: 0.72rem 0.78rem;
  }

  .mobile-link-num {
    min-width: 1.75rem;
    height: 1.75rem;
  }
}
