/* =============================================
   SST Class — Site Header (double nav)
   Topbar + Main Nav — shared across all pages
   ============================================= */

/* ── Reset basics ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── Variables ── */
:root {
  --sh-topbar-h: 40px;
  --sh-nav-h:    68px;
  --sh-total-h:  108px;
  --sh-bg-deep:  #070415;
  --sh-bg-nav:   rgba(13,16,33,.96);
  --sh-border:   rgba(124,58,237,.18);
  --sh-border2:  rgba(124,58,237,.32);
  --sh-purple:   #7c3aed;
  --sh-violet:   #a78bfa;
  --sh-white:    #f0f6fc;
  --sh-text:     #c8d1eb;
  --sh-muted:    #7b88a8;
  --sh-radius:   10px;
  --sh-trans:    .2s ease;
}

/* ── Skip link ── */
.skip-link {
  position: absolute;
  top: -100px; left: 1rem;
  background: var(--sh-purple);
  color: #fff;
  padding: .5rem 1rem;
  border-radius: var(--sh-radius);
  font-size: .875rem;
  font-weight: 600;
  z-index: 9999;
  text-decoration: none;
  font-family: 'Inter', system-ui, sans-serif;
}
.skip-link:focus { top: .5rem; }

/* ── Topbar ── */
.sst-topbar {
  height: var(--sh-topbar-h);
  background: var(--sh-bg-deep);
  border-bottom: 1px solid var(--sh-border);
  display: flex;
  align-items: center;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  font-family: 'Inter', system-ui, sans-serif;
}
.sst-topbar .sh-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.sh-topbar-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.sh-topbar-item {
  display: flex;
  align-items: center;
  gap: .375rem;
  font-size: .72rem;
  color: var(--sh-muted);
  white-space: nowrap;
}
.sh-topbar-item svg { flex-shrink: 0; opacity: .7; }
.sh-topbar-item a { color: var(--sh-muted); text-decoration: none; transition: color var(--sh-trans); }
.sh-topbar-item a:hover { color: var(--sh-violet); }
.sh-topbar-div { width: 1px; height: 16px; background: var(--sh-border); }
.sh-topbar-restrita {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  font-size: .72rem;
  font-weight: 600;
  color: var(--sh-muted);
  padding: .25rem .75rem;
  border: 1px solid var(--sh-border);
  border-radius: 20px;
  text-decoration: none;
  transition: all var(--sh-trans);
}
.sh-topbar-restrita:hover {
  color: var(--sh-violet);
  border-color: rgba(124,58,237,.5);
  background: rgba(124,58,237,.12);
}

/* ── Main nav ── */
.sst-mainnav {
  height: var(--sh-nav-h);
  background: var(--sh-bg-nav);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--sh-border);
  position: fixed;
  top: var(--sh-topbar-h);
  left: 0; right: 0;
  z-index: 999;
  transition: box-shadow var(--sh-trans);
  font-family: 'Inter', system-ui, sans-serif;
}
.sst-mainnav.sh-scrolled { box-shadow: 0 4px 32px rgba(0,0,0,.5); }
.sst-mainnav .sh-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.sh-nav-logo img { height: 32px; display: block; }
.sh-nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.sh-nav-link {
  font-size: .875rem;
  font-weight: 500;
  color: var(--sh-text);
  padding: .5rem .8rem;
  border-radius: var(--sh-radius);
  text-decoration: none;
  transition: all var(--sh-trans);
  position: relative;
}
.sh-nav-link:hover { color: var(--sh-white); background: rgba(255,255,255,.06); }
.sh-nav-link.sh-active { color: var(--sh-white); background: rgba(255,255,255,.06); }
.sh-nav-link.sh-active::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 50%;
  transform: translateX(-50%);
  width: 20px; height: 2px;
  background: var(--sh-violet);
  border-radius: 2px;
}
.sh-nav-link.sh-psico { color: #a78bfa !important; }
.sh-nav-link.sh-psico:hover { background: rgba(124,58,237,.12) !important; color: #c4b5fd !important; }
.sh-nav-link.sh-psico.sh-active { color: #c4b5fd !important; }

.sh-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #6d28d9, #7c3aed);
  padding: .55rem 1.25rem;
  border-radius: var(--sh-radius);
  text-decoration: none;
  transition: all var(--sh-trans);
  box-shadow: 0 0 20px rgba(124,58,237,.35);
}
.sh-nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(124,58,237,.6);
}

/* ── Hamburger ── */
.sh-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: .5rem;
  cursor: pointer;
}
.sh-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--sh-text);
  border-radius: 2px;
  transition: all var(--sh-trans);
}
.sh-hamburger.sh-open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.sh-hamburger.sh-open span:nth-child(2) { opacity: 0; }
.sh-hamburger.sh-open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ── Mobile menu ── */
.sst-mobile-menu {
  display: none;
  position: fixed;
  top: var(--sh-total-h);
  left: 0; right: 0;
  background: #100828;
  border-bottom: 1px solid var(--sh-border);
  padding: 1rem 1.5rem 1.5rem;
  z-index: 998;
  flex-direction: column;
  gap: .25rem;
  font-family: 'Inter', system-ui, sans-serif;
}
.sst-mobile-menu.sh-open { display: flex; }
.sh-menu-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 997;
  background: rgba(0,0,0,.5);
}
.sh-menu-backdrop.sh-open { display: block; }
.sst-mobile-menu .sh-nav-link { padding: .75rem 1rem; display: block; }
.sh-mobile-cta {
  margin-top: .5rem;
  display: block;
  text-align: center;
  font-weight: 700;
  font-size: .9rem;
  color: #fff;
  background: linear-gradient(135deg, #6d28d9, #7c3aed);
  padding: .875rem;
  border-radius: var(--sh-radius);
  text-decoration: none;
}

/* ── Page offset ── */
.sh-page-offset { padding-top: var(--sh-total-h) !important; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .sh-nav-links { display: none; }
  .sh-hamburger { display: flex; }
}
@media (max-width: 560px) {
  .sh-topbar-item:nth-child(n+3),
  .sh-topbar-div:nth-child(n+3) { display: none; }
}
