/* === Mobile Navigation — Hamburger + Overlay === */

/* Hamburger button */
.ham-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.ham-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: #0D0D0D;
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.18s ease;
  pointer-events: none;
}
.ham-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg) }
.ham-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0) }
.ham-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg) }

/* Mobile overlay menu */
.mob-menu {
  display: none;
  position: fixed;
  top: 66px;
  left: 0; right: 0;
  background: rgba(240,245,242,0.97);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border-bottom: 1.5px solid rgba(255,255,255,0.75);
  z-index: 198;
  padding: 8px 6% 28px;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(0,0,0,0.10);
  overflow-y: auto;
  max-height: calc(100vh - 66px);
}
.mob-menu.open {
  display: flex;
  animation: mobSlideDown 0.2s ease both;
}
@keyframes mobSlideDown {
  from { opacity: 0; transform: translateY(-10px) }
  to   { opacity: 1; transform: translateY(0) }
}

/* Mobile menu links */
.mob-menu a {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: #0D0D0D;
  text-decoration: none;
  padding: 17px 4px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.mob-menu a::after {
  content: '';
  display: block;
  width: 7px; height: 7px;
  border-right: 2px solid #aaa;
  border-top: 2px solid #aaa;
  transform: rotate(45deg);
  flex-shrink: 0;
}
.mob-menu a:hover { color: #1EC76A }

/* CTA button in mobile menu */
.mob-menu .mob-cta {
  margin-top: 18px;
  background: #0D0D0D;
  color: #fff;
  padding: 17px 28px;
  border-radius: 100px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  border-bottom: none;
  justify-content: center;
}
.mob-menu .mob-cta::after { display: none }
.mob-menu .mob-cta:hover,
.mob-menu .mob-cta:active { background: #333; color: #fff }

/* ── Responsive breakpoints ── */

@media (max-width: 900px) {
  /* Show hamburger */
  .ham-btn { display: flex !important }

  /* Hide desktop nav — inner pages (v5 inline-styled nav) */
  #navLinks { display: none !important }
  #navCtas  { display: none !important }

  /* Hide desktop nav — homepage (class-based nav) */
  .nav-links { display: none !important }
  .nav-ctas  { display: none !important }

  /* iOS Safari: background-attachment:fixed causes blank/glitchy backgrounds */
  body { background-attachment: scroll !important }
}

@media (min-width: 901px) {
  /* Never show mobile menu on desktop */
  .mob-menu { display: none !important }
}
