/* ==========================================================================
   PARTIALS.CSS — Shared component styles
   Loaded LAST on every page so it overrides any older nav/footer rules in
   styles.css or styles-scroll.css. Single source of truth for nav + footer.
   ========================================================================== */

/* --- Tokens (safe defaults; overridden if defined elsewhere) --- */
:root {
  --vc-bg: #09090b;
  --vc-text: #fafafa;
  --vc-muted: #a1a1aa;
  --vc-border: #27272a;
  --vc-brand: #ac4fc6;
  --vc-mono: 'avenir-next', 'Avenir Next', 'Avenir', system-ui, sans-serif;
  --vc-display: 'quiche-sans', Georgia, serif;
  --vc-sans: 'avenir-next', 'Avenir Next', 'Avenir', system-ui, sans-serif;
  --vc-nav-h: 80px;
  --vc-pad: clamp(20px, 5vw, 40px);
}

/* ==========================================================================
   NAV — fixed, transparent, blurred. Identical on every page.
   ========================================================================== */

.nav,
body > .nav,
nav.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--vc-nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--vc-pad);
  background: rgba(9, 9, 11, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background 240ms ease, border-color 240ms ease;
}

.nav.scrolled {
  background: rgba(9, 9, 11, 0.92);
  border-bottom-color: var(--vc-border);
}

.nav .nav-logo {
  display: inline-flex;
  align-items: center;
  height: 100%;
  text-decoration: none;
  flex-shrink: 0;
}

.nav .nav-logo img,
.nav .nav-logo-img {
  height: 44px;
  width: auto;
  display: block;
}

.nav .nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav .nav-link {
  font-family: var(--vc-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--vc-muted);
  text-decoration: none;
  position: relative;
  padding: 6px 0;
  transition: color 200ms ease;
}

.nav .nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--vc-text);
  transition: width 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nav .nav-link:hover,
.nav .nav-link.active {
  color: var(--vc-text);
}

.nav .nav-link:hover::after,
.nav .nav-link.active::after {
  width: 100%;
}

@media (max-width: 600px) {
  .nav .nav-logo img,
  .nav .nav-logo-img { height: 34px; }
  .nav .nav-links { gap: 24px; }
}

/* ==========================================================================
   FOOTER — centered, clearly NOT a nav. Identical on every page.
   ========================================================================== */

.footer {
  background: var(--vc-bg);
  border-top: 1px solid var(--vc-border);
  padding: clamp(56px, 7vw, 88px) var(--vc-pad) clamp(40px, 5vw, 56px);
  margin-top: 0;
  text-align: center;
}

.footer .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0;
}

.footer .footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}

.footer .footer-logo {
  height: 20px;
  width: auto;
  display: block;
  opacity: 0.55;
  transition: opacity 200ms ease;
}

.footer .footer-logo:hover {
  opacity: 1;
}

.footer .footer-links {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.footer .footer-links a {
  font-family: var(--vc-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--vc-muted);
  text-decoration: none;
  transition: color 200ms ease;
}

.footer .footer-links a:hover {
  color: var(--vc-text);
}

.footer .footer-copy {
  font-family: var(--vc-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--vc-muted);
  opacity: 0.5;
  margin: 0;
  padding-top: 28px;
  border-top: 1px solid var(--vc-border);
  width: 100%;
}
