/* =====================================================
   Neuropi Namespaced Navbar Styles
   -----------------------------------------------------
   Features:
   1. Fixed transparent navbar at top of page
   2. Turns white with shadow when user scrolls
   3. Responsive slide menu panel for mobile/tablet
   4. Smooth transitions for background, text, and logo
   ===================================================== */

/* ===== Top Navbar (default: transparent) ===== */
.neuropi-nav-bar {
  position: fixed;
  inset: 0 0 auto 0;
  width: 100%;
  background: transparent;
  padding: 1rem 2rem;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.neuropi-nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* Brand text + logo */
.neuropi-nav-brand {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
  text-transform: uppercase;
}

.neuropi-nav-brand img {
  height: 72px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: filter 0.3s ease;
}

/* Menu button */
.neuropi-nav-menu-btn {
  background: #ff471d;
  color: #fff;
  border: 2px solid #ff471d;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Lato, sans-serif;
  letter-spacing: 1px;
}

/* ===== Scroll State (navbar after scrolling) ===== */
.neuropi-nav-bar.scrolled {
  background: #fff;
  box-shadow: 0 4px 6px rgba(0,0,0,.1);
}

.neuropi-nav-bar.scrolled .neuropi-nav-brand {
  color: #1a4255;
}

.neuropi-nav-bar.scrolled .neuropi-nav-menu-btn {
  background: #ff471d;
  color: #fff;
  border-color: #ff471d;
}

/* ===== Slide Menu Panel ===== */
.neuropi-menu-panel {
  position: fixed;
  top: 0;
  right: -40%;
  width: 40%;
  height: 100vh;
  background-color: #ff471d;
  color: #fff;
  padding: 2rem;
  z-index: 1100;
  transition: right 0.4s ease-in-out;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Active slide menu (visible) */
.neuropi-menu-panel.active {
  right: 0;
}

.neuropi-menu-close {
  background: none;
  color: #fff;
  font-size: 2rem;
  border: none;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  left: 1rem;
}

.neuropi-menu-list {
  list-style: none;
  margin: 0;
  padding: 5rem 0 1rem 0;
  flex: 1;
  overflow-y: auto;
}

.neuropi-menu-list li {
  margin: 1.75rem 0; /* ⬅ Increased spacing between items */
}

/* ===== Bigger & bolder links ===== */
.neuropi-menu-list li a {
  color: #fff;
  text-decoration: none;
  font-size: 2.25rem; /* ⬅ Bigger than before (was 1.75rem) */
  font-weight: bold;
  display: block;
  padding-bottom: 0.75rem; /* ⬅ Slightly more padding under text */
  border-bottom: 2px solid rgba(255,255,255,0.4);
  transition: border-color 0.3s ease;
}

.neuropi-menu-list li a:hover {
  border-bottom-color: #fff;
}

/* ===== Scroll Sentinel ===== */
#neuropi-nav-sentinel {
  position: absolute;
  top: 0;
  height: 1px;
  width: 1px;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 1024px) {
  .neuropi-menu-panel {
    width: 55%;
    right: -55%;
  }
}

@media (max-width: 767px) {
  .neuropi-nav-brand img {
    height: 56px;
  }

  .neuropi-menu-panel {
    width: 50%;
    right: -50%;
    padding: 1.5rem;
  }

  .neuropi-menu-list {
    padding-top: 4rem;
  }

  .neuropi-menu-list li {
    margin: 1.5rem 0; /* Slightly tighter on small screens */
  }

  .neuropi-menu-list li a {
    font-size: 1.75rem; /* Bigger on mobile than before */
  }
}


@media (max-width: 767px) {
  /* Target the inner flex container */
  .neuropi-footer-contact[style*="display: flex"] {
    flex-direction: column !important;
    align-items: center !important; /* centers children horizontally */
    justify-content: center !important;
    text-align: center !important; /* centers text inside p */
    gap: 1rem;
    padding: 1rem; /* ⬅ added padding all around */
  }

  /* Make sure all text inside is centered and spaced */
  .neuropi-footer-contact p {
    text-align: center !important;
    margin: 0;
    padding: 0 0.5rem; /* ⬅ small left/right padding for breathing space */
  }
}


