/**
 * EIP Nav Modal — Styles
 * File: assets/css/eip-nav.css
 *
 * Add to your main style.css or enqueue separately.
 * All classes prefixed with eip- to avoid conflicts.
 */

/* ── Modal overlay ── */
.eip-menu-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: #000;
  color: #fff;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  /* opacity: 0; */
  visibility: hidden;
  transition: all 0.3s ease-in-out;
  padding-bottom: env(safe-area-inset-bottom, 0);
  transform: translate(0px, -100%);
  transition-duration: 0.3s;
  top: 0;
  left: 0;
  right: 0;
}
.eip-menu-modal.is-active {
  opacity: 1;
  visibility: visible;
  transform: translate(0px, 0px);
}

@media (prefers-reduced-motion: reduce) {
  .eip-menu-modal,
  .eip-nav-expand,
  .eip-nav-sub {
    transition: none !important;
  }
}

.eip-menu-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0 clamp(1.6rem, 5vw, 3.2rem);
}

/* ── Top bar ── */
.eip-menu-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  flex-shrink: 0;
}

.eip-menu-logo {
  font-size: 0;
}
.eip-menu-logo small {
}

.eip-close-btn {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #fff;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px 20px;
  border-radius: 100px;
  cursor: pointer;
  transition: border-color 0.2s;
  min-height: 44px;
  min-width: 44px;
}
.eip-close-btn:hover {
  border-color: #fff;
}
.eip-close-btn:focus-visible {
  outline: 2px solid #f0ff3d;
  outline-offset: 2px;
}

/* ── Nav list ── */
.eip-nav-main {
  flex: 1;
  display: flex;
  align-items: center;
  max-width: 750px;
  margin: 0 auto;
  width: 100%;
}

.eip-nav-list {
  list-style: none;
  width: 100%;
  padding: 0;
  margin: 0;
}
.eip-nav-list > li {
  /* border-bottom: 1px solid rgba(255, 255, 255, 0.07); */
  margin: 0;
  overflow: hidden;
}
.eip-nav-list > li:first-child {
  /* border-top: 1px solid rgba(255, 255, 255, 0.07); */
}

/* ── Nav row (parent link + expand button) ── */
.eip-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.eip-nav-link {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 300;
  color: #fff;
  text-decoration: none;
  line-height: 1.2;
  padding: 12px 0;
  flex: 1;
  display: flex;
  align-items: center;
  transition: opacity 0.2s;
}
.eip-nav-link:hover {
  opacity: 0.6;
  border: 0;
}
.eip-nav-link:focus-visible {
  outline: 2px solid #f0ff3d;
  outline-offset: 4px;
}
.eip-nav-link[aria-current="page"] {
  opacity: 0.5;
}

.eip-nav-simple {
  min-height: 64px;
  display: flex;
  align-items: center;
}

/* ── Expand/collapse button ── */
.eip-nav-expand {
  width: 48px;
  height: 48px;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  font-size: 22px;
  font-weight: 300;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  margin-left: 16px;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s, transform 0.3s ease;
  line-height: 1;
  padding: 10px;
}
.eip-nav-expand:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.eip-nav-expand:focus-visible {
  outline: 2px solid #f0ff3d;
  outline-offset: 2px;
}
.eip-nav-expand[aria-expanded="true"] {
  transform: rotate(45deg);
}

/* ── Sub-menu ── */
.eip-nav-sub {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease, visibility 0s 0.4s;
}
.eip-nav-sub.is-open {
  max-height: 320px;
  opacity: 1;
  visibility: visible;
  transition: max-height 0.4s ease, opacity 0.3s ease, visibility 0s 0s;
}

.eip-nav-sub a {
  font-family: 'Inter', sans-serif;
  font-size: clamp(15px, 2.5vw, 19px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  display: flex;
  align-items: center;
  padding: 10px 0 10px 20px;
  min-height: 48px;
  transition: color 0.2s;
  border: 0;
}
.eip-nav-sub a:hover {
  color: #fff;
}
.eip-nav-sub a:focus-visible {
  outline: 2px solid #f0ff3d;
  outline-offset: 2px;
  color: #fff;
}
.eip-nav-sub a::before {
  content: '\2192';
  margin-right: 12px;
  font-size: 13px;
  opacity: 0.4;
}
.eip-nav-sub a[aria-current="page"] {
  color: #fff;
}
.eip-nav-sub li:last-child a {
  padding-bottom: 16px;
}

/* ── Bottom ── */
.eip-menu-bottom {
  padding: 32px 0;
  text-align: center;
  flex-shrink: 0;
  font-size: 20px;
}
.eip-cta-btn {
  display: block;
  background: #f0ff3d;
  color: #000;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 14px 32px;
  border-radius: 100px;
  text-decoration: none;
  margin-bottom: 12px;
  transition: opacity 0.2s;
}
.eip-cta-btn:hover {
  opacity: 0.85;
}
.eip-cta-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.eip-menu-bottom p {
}
.eip-menu-bottom a:not(.eip-cta-btn) {
  color: rgb(255 255 255);
  text-decoration: none;
}

/* ── Utility ── */
.eip-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.eip-nav-list > li > div {
    /* transition-delay: 0s; */
    transform: translateY(100%);
}

.eip-menu-modal.is-active .eip-nav-list > li > div {
    transform: translateY(0%);
    transition: all 0.3s ease-in-out;
    transition-delay: 0.3s;
}
@media (min-width:768px){
  .eip-menu-bottom {
      display: flex;
      align-items: center;
      gap: 2rem;
      justify-content: space-between;
  }
  .eip-menu-bottom p{
    margin: 0;
    width: 33.333%;
  }
  .eip-menu-bottom > :first-child{
      order: 2;
  }
  .eip-menu-bottom > :last-child{
      order: 1;
      text-align: left;
  }
  .eip-menu-bottom > :nth-child(2){
      order: 2;
      text-align: right;
  }
  
}
@media (min-width:1440px){
  .eip-nav-link {
      font-size: 5.6rem;
      padding: 1px 0;
  }
}