/* ========================================
   ABS NAVIGATION STYLES
   Navigation Pill, Links, CTA Button
   ======================================== */

/* ============================================
   NAVIGATION LIST (Pills Container)
   ============================================ */
.abs-nav-list {
  display: inline-flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 6px 10px;
  gap: 4px;
  background: #4a5a62;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  isolation: isolate;
  position: relative;
  z-index: 10;
}

/* Index page: Semi-transparent glass nav */
body[data-page="index"] .abs-nav-list {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* ============================================
   NAVIGATION ITEMS
   ============================================ */
.abs-nav-list li {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.abs-nav-list a {
  display: block;
  padding: 8px 18px;
  color: var(--white);
  font-size: 0.9rem;
  font-family: var(--font-body);
  font-weight: normal;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 25px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.abs-nav-list a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.abs-nav-list a.active,
.abs-nav-list a[aria-current="page"] {
  background-color: rgba(255, 255, 255, 0.15);
  font-weight: 500;
}

/* ============================================
   CTA BUTTON (Schedule Here!) - Now inside nav list
   ============================================ */
.abs-nav-list .abs-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  background-color: var(--primary);
  color: var(--white);
  font-size: 0.9rem;
  font-family: var(--font-heading);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  border: none;
  border-radius: 25px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.abs-nav-list .abs-cta-button:hover {
  background-color: #0088cb;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.abs-nav-list .abs-cta-button:active {
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE NAVIGATION
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
  .abs-nav-list {
    gap: 2px;
  }

  .abs-nav-list a {
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  .abs-nav-list .abs-cta-button {
    padding: 8px 18px;
    font-size: 0.85rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .abs-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
  }

  .abs-nav-list {
    flex-direction: column;
    width: 100%;
    border-radius: 16px;
    padding: 12px;
    gap: 4px;
  }

  .abs-nav-list li {
    width: 100%;
  }

  .abs-nav-list a {
    width: 100%;
    text-align: center;
    padding: 12px 20px;
    font-size: 0.95rem;
  }

  .abs-nav-list .abs-cta-button {
    width: 100%;
    padding: 12px 24px;
    text-align: center;
    font-size: 1rem;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .abs-nav-list {
    padding: 8px;
  }

  .abs-nav-list a {
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  .abs-nav-list .abs-cta-button {
    padding: 10px 20px;
    font-size: 0.95rem;
  }
}

/* ============================================
   MOBILE MENU TOGGLE (for future implementation)
   ============================================ */
.abs-mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.abs-mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--secondary);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* Show menu toggle on mobile */
@media (max-width: 768px) {
  .abs-mobile-menu-toggle {
    display: block;
  }

  /* Hide navigation by default on mobile (can be toggled with JS) */
  .abs-nav.mobile-hidden {
    display: none;
  }

  .abs-nav.mobile-visible {
    display: flex;
  }
}

/* Index page toggle icon (white for transparent header) */
body.index-page .abs-mobile-menu-toggle span,
body[data-page="index"] .abs-mobile-menu-toggle span {
  background-color: var(--white);
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

/* Focus states */
.abs-nav-list a:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

.abs-cta-button:focus-visible {
  outline: 2px solid var(--primary-dark);
  outline-offset: 2px;
}
