/* ============================================================
   MMPAV — Global Header & Footer Styles
   Shared across React app and vanilla pages
   ============================================================ */

/* ── Global Variables for Nav/Footer ── */
:root {
  --font-display: 'DM Sans', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-tech:    'Space Mono', monospace;
  --font-tag:     'DM Sans', sans-serif;

  --bg:           #000000;
  --bg-card:      rgba(30,30,30,0.75);
  --white:        #ffffff;
  --white-80:     rgba(255,255,255,0.80);
  --white-60:     rgba(255,255,255,0.60);
  --white-55:     rgba(255,255,255,0.55);
  --white-40:     rgba(255,255,255,0.40);
  --white-30:     rgba(255,255,255,0.30);
  --white-15:     rgba(255,255,255,0.15);
  --white-10:     rgba(255,255,255,0.10);
  --white-08:     rgba(255,255,255,0.08);
  --white-04:     rgba(255,255,255,0.04);

  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-pill: 9999px;

  --ease: cubic-bezier(0.16,1,0.3,1);
}

/* ── Container Utility ── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ─────────────────────────────────────────────
   NAV
───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: calc(100% - 2rem);
  max-width: 80rem;
}
.nav::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: -1;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav--scrolled::before {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.10);
}
.nav__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.5rem;
  margin: 0 auto;
}
.nav__logo { text-decoration: none; flex-shrink: 0; }
.nav__links { list-style: none; display: flex; gap: 2rem; }
.nav__link {
  position: relative;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--white-60);
  text-decoration: none;
  transition: color .2s;
  padding-bottom: 0.25rem;
}
.nav__link:hover { color: var(--white); }
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(to right, #22d3ee, #8b5cf6);
  transition: width 0.3s var(--ease);
}
.nav__link:hover::after {
  width: 100%;
}
.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  background: transparent;
  border: 1px solid rgba(99, 102, 241, 0.4);
  transition: all .3s var(--ease);
}
.nav__cta:hover {
  border-color: rgba(99, 102, 241, 0.7);
  background: linear-gradient(135deg, rgba(61, 224, 224, 0.1) 0%, rgba(99, 102, 241, 0.15) 50%, rgba(124, 58, 237, 0.1) 100%);
  transform: scale(1.02);
}
.nav__cta:active {
  transform: scale(0.97);
}
.nav__hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: .5rem; }
.nav__hamburger span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: .3s; }
.nav__mobile { display: none; flex-direction: column; gap: 1rem; padding: 1.5rem 2rem; background: rgba(0,0,0,.95); backdrop-filter: blur(20px); border-bottom: 1px solid var(--white-08); }
.nav__mobile-link { color: var(--white-80); text-decoration: none; font-size: 1rem; font-weight: 500; }
.nav__mobile--open { display: flex; }

@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__hamburger { display: flex; }
}


/* ─────────────────────────────────────────────
   NEW SHADCN-STYLE FOOTER
───────────────────────────────────────────── */
.footer {
  position: relative;
  background: var(--bg);
  border-top: 1px solid var(--white-08);
  padding: 4rem 0 0;
  overflow: hidden;
}
.footer__glow {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%; height: 128px;
  background: radial-gradient(35% 128px at 50% 0%, rgba(255,255,255,0.08), transparent);
  pointer-events: none;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 4rem;
  position: relative;
  z-index: 1;
}
@media (max-width: 900px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer__col--brand {
    grid-column: span 2;
  }
}
@media (max-width: 500px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
  .footer__col--brand {
    grid-column: span 1;
  }
}
.footer__col--brand .footer__logo {
  height: 2rem;
  width: auto;
  object-fit: contain;
  margin-bottom: 1.25rem;
  display: block;
}
.footer__desc {
  font-family: var(--font-tech);
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--white-55);
  margin-bottom: 1.5rem;
  max-width: 320px;
}
.footer__socials {
  display: flex;
  gap: 1rem;
}
.footer__socials a {
  display: flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem;
  border-radius: 50%;
  background: var(--white-04);
  color: var(--white-60);
  transition: all 0.2s;
  border: 1px solid var(--white-08);
}
.footer__socials a:hover {
  background: var(--white-10);
  color: var(--white);
  border-color: var(--white-20);
}
.footer__heading {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.25rem;
}
.footer__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.footer__list a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--white-55);
  text-decoration: none;
  transition: color 0.2s;
}
.footer__list a:hover {
  color: var(--white);
}
.footer__bottom {
  border-top: 1px solid var(--white-08);
  padding: 2rem 0;
  position: relative;
  z-index: 1;
}
.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer__bottom p {
  font-family: var(--font-tech);
  font-size: 0.8125rem;
  color: var(--white-40);
}
.footer__bottom-links {
  display: flex;
  gap: 1.5rem;
}
.footer__bottom-links a {
  font-family: var(--font-tech);
  font-size: 0.8125rem;
  color: var(--white-40);
  text-decoration: none;
  transition: color 0.2s;
}
.footer__bottom-links a:hover {
  color: var(--white-80);
}


/* ─────────────────────────────────────────────
   NAV DROPDOWN (HOVER)
───────────────────────────────────────────── */
.nav__dropdown {
  position: relative;
}
/* Sub-menu base */
.nav__dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(15,15,15,0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--white-10);
  border-radius: var(--radius-lg);
  padding: 0.5rem;
  list-style: none;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
/* Trigger area so it doesn't close when moving mouse down */
.nav__dropdown::after {
  content: '';
  position: absolute;
  top: 100%; left: 0; right: 0;
  height: 20px;
}
.nav__dropdown:hover .nav__dropdown-menu,
.nav__dropdown:focus-within .nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav__dropdown-menu li {
  margin: 0;
}
.nav__dropdown-menu a {
  display: block;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--white-60);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
}
.nav__dropdown-menu a:hover {
  background: var(--white-08);
  color: var(--white);
}

/* Update mobile nav */
.nav__mobile-dropdown {
  display: flex; flex-direction: column; gap: 0.5rem; padding-left: 1rem; border-left: 1px solid var(--white-10); margin: 0.5rem 0;
}
.nav__mobile-dropdown a {
  color: var(--white-55); font-size: 0.9rem; text-decoration: none; padding: 0.25rem 0;
}
.nav__mobile-dropdown a:hover { color: var(--white); }
