/* ==========================================================================
   HostCS.ro — Site header / navigation
   ========================================================================== */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 101;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  background: var(--bg-elevated-2);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--text-muted);
}

.topbar-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 24px;
  gap: 7px;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.topbar-links a:hover { color: var(--accent); }
.topbar-links svg { width: 15px; height: 15px; }

.topbar-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
}

.topbar-note .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(53, 197, 106, 0.18);
}

.topbar-offer strong {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: .08em;
}

.topbar-offer .offer-mobile { display: none; }

@media (max-width: 720px) {
  .topbar-offer .offer-desktop { display: none; }
  .topbar-offer .offer-mobile { display: inline; }
}

@media (max-width: 560px) {
  .topbar-links a span { display: none; }
}

.site-header {
  position: fixed;
  top: var(--topbar-h);
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(10, 10, 12, 0.55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(10, 10, 12, 0.9);
  border-bottom-color: var(--border);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
}

.brand img { height: 36px; width: auto; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  position: relative;
  padding: 10px 16px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 4px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-links a.is-active {
  color: var(--accent);
}

.nav-links a.is-active::after { transform: scaleX(1); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
body.nav-open .nav-toggle .icon-menu { display: none; }
body.nav-open .nav-toggle .icon-close { display: block; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }

  .nav-links {
    position: fixed;
    top: calc(var(--topbar-h) + var(--header-h));
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(100vh - var(--topbar-h) - var(--header-h));
    flex-direction: column;
    align-items: stretch;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 10px 20px 20px;
    gap: 4px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
    overflow-y: auto;
  }

  .nav-links a { padding: 16px 18px; font-size: 16px; }

  body.nav-open .nav-links {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  body.nav-open {
    overflow: hidden;
  }

  .nav-actions .btn-ghost { display: none; }
  .nav-cta span { display: none; }
}
