/* =========================
   GLOBAL NAV + FOOTER + CURSOR
   ========================= */

*, #inner-topnav *, #inner-mobile-menu *, #site-footer * {
  box-sizing: border-box;
}

html, body {
  cursor: none;
}

/* CURSOR */
#cur {
  position: fixed;
  z-index: 9999;
  width: 8px;
  height: 8px;
  background: #0a0a0a;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  mix-blend-mode: multiply;
}

#cur-ring {
  position: fixed;
  z-index: 9998;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(10,10,10,0.25);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, border-color 0.3s;
}

body:has(a:hover) #cur-ring,
body:has(button:hover) #cur-ring {
  width: 56px;
  height: 56px;
  border-color: #c41e1e;
}

/* NAV */
#inner-topnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 400;
  padding: 28px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(247,245,242,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #e2e0dc;
  transform: translateY(0);
  transition: transform 0.28s ease, padding 0.2s ease;
  font-family: 'DM Sans', Helvetica, Arial, sans-serif;
}

#inner-topnav.nav-hidden {
  transform: translateY(-100%);
}

.itnav-logo {
  font-family: 'DM Sans', Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(10,10,10,0.72);
  text-decoration: none;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  line-height: 1;
}

.itnav-logo:hover {
  color: #0a0a0a;
}

.itnav-right {
  display: flex;
  gap: 36px;
  align-items: center;
}

.itnav-link {
  font-family: 'DM Sans', Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(10,10,10,0.55);
  text-decoration: none;
  transition: color 0.2s;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  line-height: 1;
}

.itnav-link:hover {
  color: #0a0a0a;
}

.itnav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.itnav-drop-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(10,10,10,0.55);
  display: flex;
  align-items: center;
  padding: 0;
  transition: color 0.2s;
  line-height: 1;
}

.itnav-drop-btn:hover {
  color: #0a0a0a;
}

.itnav-drop-panel {
  display: none;
  position: absolute;
  top: calc(100% + 16px);
  right: 0;
  background: #ffffff;
  border: 1px solid #e2e0dc;
  box-shadow: 0 8px 32px rgba(10,10,10,0.08);
  min-width: 200px;
  z-index: 500;
}

.itnav-drop-panel.open {
  display: block;
}

.itnav-drop-item {
  display: block;
  font-family: 'DM Sans', Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(10,10,10,0.6);
  text-decoration: none;
  padding: 12px 20px;
  transition: all 0.15s;
}

.itnav-drop-item:hover {
  color: #0a0a0a;
  background: #f0f0f0;
  padding-left: 24px;
}

.itnav-drop-divider {
  height: 1px;
  background: #e2e0dc;
  margin: 4px 0;
}

.itnav-buy {
  font-family: 'DM Sans', Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffffff;
  background: #0a0a0a;
  padding: 9px 22px;
  text-decoration: none;
  transition: background 0.2s;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.itnav-buy:hover {
  background: #c41e1e;
}

.itnav-burger {
  display: none;
  width: 36px;
  height: 36px;
  border: 1px solid #e2e0dc;
  background: #ffffff;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.itnav-burger span {
  display: block;
  width: 14px;
  height: 1px;
  background: #0a0a0a;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.itnav-burger.open span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.itnav-burger.open span:nth-child(2) {
  opacity: 0;
}

.itnav-burger.open span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

#inner-mobile-menu {
  display: none;
  position: fixed;
  top: 93px;
  left: 0;
  right: 0;
  z-index: 399;
  background: rgba(247,245,242,0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #e2e0dc;
  padding: 18px 24px 20px;
  font-family: 'DM Sans', Helvetica, Arial, sans-serif;
}

#inner-mobile-menu.open {
  display: block;
}

.imm-link,
.imm-explore-toggle,
.imm-sub-link {
  font-family: 'DM Sans', Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(10,10,10,0.7);
  text-decoration: none;
}

.imm-link {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid rgba(226,224,220,0.7);
}

.imm-explore-toggle {
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(226,224,220,0.7);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.imm-sub-link {
  display: block;
  padding: 10px 0;
  color: rgba(10,10,10,0.58);
}

/* FOOTER */
#site-footer {
  background: #0a0a0a;
  color: #f7f5f2;
  font-family: 'DM Sans', Helvetica, Arial, sans-serif;
  padding: 60px 40px 30px;
  margin-top: 5rem;
}

/* STICKY BANNER */
#buy-sticky-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #c41e1e;
  color: #fff;
  text-align: center;
  padding: 10px 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  display: block;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

#buy-sticky-banner:hover {
  background: #a81919;
}

body main {
  padding-top: 115px;
}

/* MOBILE */
@media (max-width: 700px) {
  #inner-topnav {
    padding: 20px 24px;
  }

  body main {
    padding-top: 95px;
  }

  .itnav-right {
    gap: 16px;
  }

  .itnav-right > .itnav-link,
  .itnav-right > .itnav-dropdown {
    display: none;
  }

  .itnav-burger {
    display: flex;
  }

  .itnav-buy {
    padding: 9px 18px;
  }

  #inner-mobile-menu {
    top: 77px;
  }

  #site-footer {
    padding: 3rem 20px 2rem;
  }

  #site-footer .sf-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  #site-footer .sf-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  #cur,
  #cur-ring {
    display: none;
  }

  html,
  body {
    cursor: auto;
  }
}
