/* SERVISO — Top navigation, logo, hamburger, mobile overlay. */
/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background .4s var(--ease-smooth), box-shadow .4s var(--ease-smooth);
}
.navbar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--primary) 0%, transparent 50%, var(--primary-light) 100%);
  opacity: 0;
  transition: opacity .4s var(--ease-smooth);
}
.navbar.scrolled {
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(32px) saturate(200%) brightness(110%);
  -webkit-backdrop-filter: blur(32px) saturate(200%) brightness(110%);
  box-shadow: var(--shadow-md);
}
.navbar.scrolled::after { opacity: .3; }

.navbar > .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

/* Logo */
.nav-brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-width: 0;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  flex-shrink: 0;
}
.open-badge {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .75rem;
  font-weight: 600;
  padding: .3rem .65rem;
  border-radius: 999px;
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.9);
  white-space: nowrap;
  transition: background .4s var(--ease-smooth), color .4s var(--ease-smooth);
}
.navbar.scrolled .open-badge { background: var(--gray-100); color: var(--gray-700); }
.open-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.open-badge.is-open .open-dot { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.25); }
.open-badge.is-closed .open-dot { background: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,.2); }
@media (max-width: 400px) {
  .open-badge { padding: .4rem; }
  .open-badge-label { display: none; }
}
.logo-img {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter .4s var(--ease-smooth);
}
.navbar.scrolled .logo-img { filter: none; }

/* Fallback text logo */
.logo-texts { display: flex; flex-direction: column; line-height: 1.1; }
.logo-sub {
  font-size: .6875rem;
  font-weight: 400;
  color: rgba(255,255,255,.7);
  text-transform: uppercase;
  letter-spacing: .08em;
  transition: color .4s var(--ease-smooth);
}
.logo-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: white;
  transition: color .4s var(--ease-smooth);
}
.navbar.scrolled .logo-sub { color: var(--gray-500); }
.navbar.scrolled .logo-name { color: var(--gray-900); }
.logo-icon { height: 40px; width: 40px; }

/* Nav menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.nav-menu li a {
  display: block;
  padding: .625rem 1.125rem;
  border-radius: 8px;
  color: rgba(255,255,255,.9);
  font-weight: 500;
  font-size: .9375rem;
  transition: all .3s var(--ease-smooth);
}
.nav-menu li a:hover { color: white; background: rgba(255,255,255,.15); }
.navbar.scrolled .nav-menu li a { color: var(--gray-700); }
.navbar.scrolled .nav-menu li a:hover { color: var(--primary); background: rgba(21,101,192,.08); }
.nav-menu li a.active { color: white; font-weight: 600; }
.navbar.scrolled .nav-menu li a.active { color: var(--primary); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .5rem;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}
.hamburger span {
  display: block;
  height: 2px;
  width: 24px;
  background: white;
  border-radius: 2px;
  transition: all .3s var(--ease-smooth);
}
.navbar.scrolled .hamburger span { background: var(--gray-900); }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.hamburger.active span { background: var(--gray-900) !important; }

/* Nav overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 998;
  opacity: 0;
  transition: opacity .3s var(--ease-smooth);
}
.nav-overlay.active { opacity: 1; }

/* ── Responsive ─────────────────────────────────────────────── */
/* Kept beside the component these rules modify, instead of in a single
 * block at the bottom of the stylesheet, separated from everything they
 * apply to. */

@media (max-width: 768px) {
  /* backdrop-filter on an ancestor creates a new containing block for
       position:fixed descendants (same category as transform/filter/perspective).
       .navbar.scrolled's blur was making the fixed, full-screen .nav-menu overlay
       size itself relative to the navbar bar instead of the real viewport —
       collapsing it into a ~64px strip pinned at the top whenever the navbar
       had .scrolled applied (i.e. any time you're not at the very top of the
       page). Dropping the blur on mobile only; desktop is unaffected since the
       menu isn't position:fixed there. */
  .navbar.scrolled {
  backdrop-filter: none;
      -webkit-backdrop-filter: none;
  }
  /* Mobile nav */
  .nav-menu {
  position: fixed;
      top: 0; left: 0; right: 0; bottom: 0;
      background: rgba(255,255,255,.97);
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: .5rem;
      opacity: 0;
      visibility: hidden;
      transform: translateY(-16px);
      transition: opacity .3s var(--ease-smooth), transform .3s var(--ease-smooth), visibility 0s .3s;
      z-index: 1000;
      padding: 2rem;
  }
  .nav-menu.open {
  opacity: 1;
      visibility: visible;
      transform: translateY(0);
      transition: opacity .3s var(--ease-smooth), transform .3s var(--ease-smooth);
  }
  .nav-menu li a { color: var(--gray-800) !important; font-size: 1.25rem; padding: 1rem 2rem; border-radius: 12px; text-align: center; min-width: 200px; display: block; }
  .nav-menu li a:hover { background: var(--gray-100) !important; color: var(--primary) !important; }
  .hamburger { display: flex; }
}
