/* ═══════════════════════════════════════════════════════════════════════════
   vpforce-base.css — Shared VPForce brand design system
   Include this file in any VPForce web property to get consistent tokens
   and the standard navigation bar.

   Requirements:
     - Space Grotesk font loaded via <link> before this stylesheet
     - Font Awesome 6 loaded via <link> before this stylesheet
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Design Tokens ─────────────────────────────────────────────────────────── */
:root {
  --vpf-dark:             #170b28;
  --vpf-accent:           #ab37c8;
  --vpf-accent-hover:     #c050e0;
  --vpf-surface:          #ffffff;
  --vpf-surface-tinted:   #faf5ff;
  --vpf-bg:               #f8fafc;
  --vpf-border:           #e2e8f0;
  --vpf-text:             #475569;
  --vpf-text-muted:       #6b7280;
  --vpf-shadow-sm:        0 4px 6px rgba(0, 0, 0, 0.05);
}

/* ── Navigation Bar ────────────────────────────────────────────────────────── */

.vpforce-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--vpf-dark);
  border-top: 3px solid var(--vpf-accent);
  z-index: 1050;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.vpforce-navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.vpforce-navbar-brand {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  text-decoration: none;
  color: #ffffff;
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.025em;
}

.vpforce-navbar-brand:hover {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.vpforce-navbar-brand img {
  height: 38px;
  width: auto;
  filter: brightness(0) invert(1);
}

.vpforce-navbar-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.vpforce-navbar-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.vpforce-navbar-links a i {
  width: 1em;
  display: inline-block;
  text-align: center;
}

.vpforce-navbar-links a:hover {
  color: #ffffff;
  text-decoration: none;
}

.vpforce-navbar-links a[aria-current="page"] {
  color: #ffffff;
  font-weight: 600;
  position: relative;
}

.vpforce-navbar-links a[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--vpf-accent, #ab37c8);
  border-radius: 1px;
}

.vpforce-navbar-cta {
  background: var(--vpf-accent) !important;
  color: #ffffff !important;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-weight: 600 !important;
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, background-color 0.2s ease;
}

.vpforce-navbar-cta:hover {
  background: var(--vpf-accent-hover) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(171, 55, 200, 0.5);
}

/* ── Mobile hamburger toggle ─────────────────────────────────────────────── */

.vpforce-navbar-toggle {
  display: none;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  line-height: 1;
  transition: color 0.2s ease;
  position: relative;
  z-index: 999;
}

.vpforce-navbar-toggle:hover {
  color: #ffffff;
}

/* Icon swap: driven by aria-expanded on the toggle button itself — more robust
   than relying on the parent nav's .is-open class. */
.vpforce-navbar-toggle[aria-expanded="false"] .nav-icon-close { display: none; }
.vpforce-navbar-toggle[aria-expanded="true"]  .nav-icon-open  { display: none; }

/* ── Responsive ────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .vpforce-navbar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .vpforce-navbar-container {
    flex-direction: row;
    gap: 0;
    align-items: center;
    justify-content: space-between;
  }

  /* Full-screen overlay nav on mobile */
  .vpforce-navbar-links {
    position: fixed;
    inset: 0;
    background: rgba(23, 11, 40, 0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    opacity: 0;
    pointer-events: none;
    z-index: 998;
    transition: opacity 0.2s ease;
  }

  .vpforce-navbar-links a {
    font-size: 1.3rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    white-space: normal;
  }

  .vpforce-navbar-links a:hover {
    color: #ffffff;
  }

  .vpforce-navbar.is-open .vpforce-navbar-links {
    opacity: 1;
    pointer-events: auto;
  }

  .vpforce-navbar-links li.nav-hide-mobile {
    display: list-item; /* show all items in overlay mode */
  }
}

@media (max-width: 480px) {
  .vpforce-navbar-container {
    padding: 0.75rem 1rem;
  }

  .vpforce-navbar-brand span {
    display: none;
  }
}
