/* =========================================================================
   Header / Nav
   ========================================================================= */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
}

.topbar{
  background: rgba(6,10,16,.7);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  font-size: .82rem;
  color: var(--text-muted);
  transition: max-height .4s var(--ease), opacity .4s var(--ease), padding .4s var(--ease);
  overflow: hidden;
}
.topbar-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 9px;
}
.topbar-item{
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}
.topbar-item i{ color: var(--green); font-size: .95em; }
.topbar-phone:hover{ color: var(--green); }

.navbar{
  padding-block: 18px;
  /* Always frosted, even at the very top of the page — otherwise the hero
     photo behind it (low-opacity, no blur of its own) shows through the
     nav as distracting sharp-edged smudges instead of a clean glass panel. */
  background: rgba(6,10,16,.4);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  transition: padding .4s var(--ease), background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled .navbar{
  padding-block: 12px;
  background: rgba(6,10,16,.75);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-bottom-color: var(--border);
}
.site-header.is-scrolled .topbar{
  max-height: 0;
  opacity: 0;
  padding-block: 0;
  border-bottom-color: transparent;
}

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

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -.01em;
}
.brand img{
  height: 40px;
  width: 40px;
  object-fit: cover;
  border-radius: 10px;
  background: #fff;
  padding: 3px;
  box-shadow: 0 0 0 1px var(--border-strong);
}

.nav-links{
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a{
  position: relative;
  display: inline-block;
  padding: 8px 14px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: .92rem;
  font-weight: 500;
  border-radius: 999px;
  transition: color .3s var(--ease), background .3s var(--ease);
}
.nav-links a:hover{
  color: var(--text);
  background: var(--surface);
}
.nav-links a.is-active{
  color: var(--green);
}

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

.menu-toggle{
  display: none;
  position: relative;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  cursor: pointer;
}
.menu-toggle span{
  position: absolute;
  left: 10px; right: 10px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .35s var(--ease), opacity .35s var(--ease), top .35s var(--ease);
}
.menu-toggle span:nth-child(1){ top: 14px; }
.menu-toggle span:nth-child(2){ top: 20px; }
.menu-toggle span:nth-child(3){ top: 26px; }
.menu-toggle.is-open span:nth-child(1){ top: 20px; transform: rotate(45deg); }
.menu-toggle.is-open span:nth-child(2){ opacity: 0; }
.menu-toggle.is-open span:nth-child(3){ top: 20px; transform: rotate(-45deg); }

.mobile-menu{
  position: fixed;
  inset: 0;
  z-index: 600;
  background: rgba(6,10,16,.92);
  backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s var(--ease);
}
.mobile-menu.is-open{
  opacity: 1;
  visibility: visible;
}
.mobile-menu-close{
  position: absolute;
  top: 22px; right: 22px;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
}
.mobile-menu ul{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.mobile-menu li a{
  display: block;
  padding: 14px 10px;
  font-size: 1.6rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  opacity: 0;
  transform: translateY(24px);
}
.mobile-menu li a:hover{ color: var(--green); }
.mobile-menu .btn{ margin-top: 18px; }

body.menu-locked{ overflow: hidden; }
