/* ============================================================
   EPF ECOSYSTEM — NAVBAR STYLES
   assets/css/navbar.css
   ============================================================ */

/* ── NAV BASE ── */
.epf-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: var(--bg-white);
  border-bottom: 1px solid var(--bd);
  box-shadow: var(--sh-sm);
  z-index: 1000;
  transition: box-shadow 0.2s;
}

.epf-nav.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.10);
}

.nav-inner {
  height: var(--nav-h);
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(16px, 3vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* ── LOGO ── */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: var(--radius);
}

/* ── DESKTOP LINKS ── */
.nav-links {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.nav-link {
  padding: 0 16px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tx-muted);
  text-decoration: none;
  position: relative;
  transition: color 0.18s;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
  border-radius: 2px 2px 0 0;
}

.nav-link:hover {
  color: var(--tx-heading);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-link.active {
  color: var(--teal);
}

.nav-link.active::after {
  transform: scaleX(1);
}

/* ── ACTIONS ── */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-cta {
  padding: 10px 22px;
  font-size: 12px;
}

/* ── HAMBURGER ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
}

.nav-hamburger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--tx-heading);
  border-radius: 2px;
  transition: all 0.25s ease;
}

.nav-hamburger.open .nav-hamburger-bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.open .nav-hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-hamburger.open .nav-hamburger-bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── MOBILE DRAWER ── */
.nav-mobile {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--bg-white);
  border-top: 1px solid var(--bd);
  box-shadow: var(--sh-lg);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
  z-index: 999;
  max-height: calc(100vh - var(--nav-h));
  overflow-y: auto;
}

.nav-mobile.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-links {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
}

.mob-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 24px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--tx-body);
  text-decoration: none;
  border-bottom: 1px solid var(--bd);
  transition: background 0.15s, color 0.15s, padding-left 0.15s;
}

.mob-link-icon {
  width: 18px;
  color: var(--teal);
  font-size: 14px;
  text-align: center;
  flex-shrink: 0;
}

.mob-link:hover {
  background: var(--teal-dim);
  color: var(--teal);
  padding-left: 30px;
}

.mob-link.active {
  color: var(--teal);
  background: var(--teal-dim);
}

.mob-link-cta {
  background: var(--teal);
  color: #fff;
  margin: 12px 16px;
  border-radius: var(--radius);
  border-bottom: none;
  justify-content: center;
}

.mob-link-cta .mob-link-icon {
  color: #fff;
}

.mob-link-cta:hover {
  background: var(--teal-dk);
  padding-left: 24px;
}

.mob-footer-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 24px;
  border-top: 1px solid var(--bd);
  font-size: 12px;
  color: var(--tx-muted);
  background: var(--bg-muted);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-cta {
    display: none;
  }
}