@charset "utf-8";
/* === DESKTOP === */

/* Anchor + desktop pill */
.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 50px;
  transform: translateX(-50%);
  z-index: 9999;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 12px 28px;
  background: #000;
  border-radius: 9999px;
  display: inline-block;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  white-space: nowrap;              /* keep one line */
}
.nav-list li { display: inline-block; white-space: nowrap; }
.nav-list li + li { margin-left: 40px; }
.nav-list a {
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;              /* belt & braces */
}

.nav-toggle { display: none; }

/* Mobile pill button (pure CSS) */
.menu-button {
  display: none;
  cursor: pointer;
  padding: 13px 26px 13px 22px;
  border-radius: 9999px;
  background: #ff6a4a; /* brand colour here if needed */
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
  user-select: none;
  -webkit-tap-highlight-color: transparent; /* iOS tap flash off */
  position: relative;
  z-index: 10001; /* stays above the backdrop */
}
.menu-button:focus { outline: none; }

.menu-text { display: inline-block; vertical-align: middle; }
.menu-icon {
  display: inline-block;
  width: 22px; height: 16px;
  margin-left: 10px;
  position: relative; vertical-align: middle;
}
.menu-icon:before,
.menu-icon:after {
  content: "";
  position: absolute; left: 0; right: 0;
  height: 3px; background: #fff; border-radius: 3px;
}
.menu-icon:before { top: 3px; }
.menu-icon:after  { bottom: 3px; }

/* Popup */
.mobile-popup {
  display: none;
  position: fixed;
  left: 50%;
  bottom: 30px;                     /* sits just above the pill */
  transform: translateX(-50%);
  z-index: 10000;
  width: calc(100vw - 32px);        /* wide to avoid wrapping */
  max-width: 420px;
}
.popup-inner {
  background: #fff;
  border-radius: 28px;
  padding: 14px 18px;
  box-shadow: 0 18px 42px rgba(0,0,0,.28);
  text-align: left;
}
.popup-link {
  display: block;
  padding: 12px 6px;
  border-radius: 12px;
  color: #111;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;              /* keep single line */
}
.popup-link + .popup-link { margin-top: 8px; }
.popup-link:hover { background: #f5f5f5; }

/* Backdrop without blur (no dim, no blur) */
.mobile-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0);
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  z-index: 9998;
}

/* =========================
   Responsive adjustments
   ========================= */

/* Tighten spacing before the switch so it never wraps */
@media only screen and (max-width: 780px) and (min-width: 701px) {
  .nav-list { padding: 12px 22px; }
  .nav-list li + li { margin-left: 28px; }
  .nav-list a { font-size: 15px; }
}

/* Switch to mobile at 700px */
@media only screen and (max-width: 700px) {
  .nav-list { display: none; }
  .menu-button { display: inline-block; }

  /* Open state */
  .nav-toggle:checked ~ .mobile-popup { display: block; }
  .nav-toggle:checked ~ .mobile-backdrop { display: block; }

  /* Turn the two bars into an X when open */
  .nav-toggle:checked + .menu-button .menu-icon:before {
    top: 50%; transform: translateY(-50%) rotate(45deg);
  }
  .nav-toggle:checked + .menu-button .menu-icon:after {
    top: 50%; bottom: auto; transform: translateY(-50%) rotate(-45deg);
  }
}

/* Optional extra tweaks for very small phones */
@media only screen and (max-width: 481px) {
  /* add any micro-adjustments here if needed */
}
