/* =============================================
   SHARED NAV — Mega Menu v9
   ============================================= */

/* --- NAV BAR --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--olive, #564d22);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 90px;
}
.nav-logo {
  display: flex;
  align-items: center;
  padding-left: 35px;
}
.nav-logo img {
  height: 75px;
  width: auto;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 85px;
}
.nav-link {
  font-family: 'Degular', sans-serif;
  font-weight: 500;
  font-size: 20px;
  color: var(--white, #fff);
  text-decoration: none;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  cursor: pointer;
}
.nav-link:hover { opacity: 0.8; }

/* --- DESKTOP CONTACT US DROPDOWN --- */
.nav-dropdown {
  position: relative;
  display: inline-block;
}
.nav-dropdown-trigger { display: inline-flex; align-items: center; gap: 6px; }
.nav-caret {
  font-size: 14px;
  line-height: 1;
  opacity: 0.85;
  transition: transform 0.2s ease;
  display: inline-block;
}
.nav-dropdown.open .nav-caret { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--olive, #564d22);
  min-width: 220px;
  padding: 8px 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 99;
}
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
/* Invisible hover bridge — gap between trigger and menu shouldn't kill hover */
.nav-dropdown.open .nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
}
.nav-dropdown-item {
  display: block;
  font-family: 'Degular', sans-serif;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.4px;
  color: var(--cream, #f3f1e6);
  text-decoration: none;
  padding: 10px 22px;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-dropdown-item:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.nav-hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.nav-hamburger span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--white, #fff);
  margin-bottom: 6px;
}
.nav-hamburger span:last-child { margin-bottom: 0; }

/* --- MEGA MENU DROPDOWN --- */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white, #fff);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: max-height 0.25s ease, opacity 0.25s ease, transform 0.25s ease, padding 0.25s ease;
  z-index: 99;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  padding: 0 60px;
}
.mega-menu.open {
  max-height: 700px;
  opacity: 1;
  transform: translateY(0);
  padding: 48px 60px;
  overflow: visible;
}
/* Invisible hover bridge so mouse can travel from trigger to menu content */
.mega-menu.open::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  height: 20px;
}
.mega-menu-inner {
  display: flex;
  gap: 0;
  align-items: flex-start;
}
.mega-menu-col {
  flex: 1;
  min-width: 0;
  padding: 0 24px;
}
.mega-menu-col:first-child { padding-left: 0; }
.mega-menu-col:last-child { padding-right: 0; }
.mega-menu-divider {
  width: 1px;
  background: rgba(86,77,34,0.12);
  align-self: stretch;
  flex-shrink: 0;
}
.mega-menu-col-heading {
  display: block;
  text-decoration: none;
  margin-bottom: 14px;
}
.mega-menu-col-heading:hover .mm-col-num { opacity: 0.6; }
.mm-col-num {
  display: block;
  font-family: 'Degular', sans-serif;
  font-weight: 600;
  font-size: 18.333px;
  color: var(--black, #000);
  line-height: 1.2;
}
.mega-menu-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mega-menu-col ul li {
  line-height: 32px;
}
.mega-menu-col ul li a {
  font-family: 'Degular', sans-serif;
  font-weight: 400;
  font-size: 18px;
  color: var(--black, #000);
  text-decoration: none;
  transition: color 0.15s;
}
.mega-menu-col ul li a:hover {
  color: var(--olive, #564d22);
}
.mm-indoor-outdoor-label {
  font-family: 'Degular', sans-serif;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--olive, #564d22);
  margin: 12px 0 6px;
}

/* --- MOBILE MENU --- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--olive, #564d22);
  z-index: 98;
  display: flex;
  flex-direction: column;
  padding: 120px 32px 40px;
  overflow-y: auto;
  transform: translateX(100%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-link {
  font-family: 'Degular', sans-serif;
  font-weight: 500;
  font-size: 40px;
  color: var(--white, #fff);
  text-decoration: none;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  display: block;
  padding: 8px 0;
}
.mobile-menu-link:hover { opacity: 0.8; }
.mobile-collections-row {
  display: flex;
  align-items: center;
}
.mobile-toggle-btn {
  background: none;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  color: rgba(255,255,255,0.5);
  font-size: 20px;
}
.mobile-collections-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.mobile-collections-panel.open {
  max-height: 3000px;
}
.mobile-coll-group {
  padding: 4px 0;
}
.mobile-coll-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mobile-coll-name {
  flex: 1;
  font-family: 'Degular', sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--white, #fff);
  text-decoration: none;
}
.mobile-coll-name:hover { opacity: 0.7; }
.mobile-coll-stones {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding-left: 4px;
}
.mobile-coll-stones.open {
  max-height: 1000px;
}
.mobile-coll-stones ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mobile-coll-stones ul li a {
  font-family: 'Degular', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: var(--white, #fff);
  text-decoration: none;
  line-height: 30px;
  opacity: 0.7;
}
.mobile-coll-stones ul li a:hover { opacity: 1; }

/* Mobile CONTACT US accordion */
.mobile-contact-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding-left: 24px;
}
.mobile-contact-panel.open {
  max-height: 400px;
}
.mobile-sub-link {
  display: block;
  font-family: 'Degular', sans-serif;
  font-weight: 400;
  font-size: 22px;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 6px 0;
}
.mobile-sub-link:hover { color: #fff; }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .nav { padding: 24px 21px; }
  .nav-logo { padding-left: 0; }
  .nav-logo img { height: 54px; }
  .nav-menu { display: none; }
  .nav-hamburger { display: block; }
  .mega-menu { display: none; }
  .nav-dropdown-menu { display: none; }
}
