/* navbar.css — sticky header, dropdown, mobile drawer */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.navbar.is-scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 74px;
}

/* Brand */
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 34px; height: 34px; }
.brand-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--neutral);
}
.brand:hover .brand-name { color: var(--primary); }

/* Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-inline: auto;
}
.nav-links > li { position: relative; }
.nav-links a.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--neutral-700);
}
.nav-links a.nav-link:hover { color: var(--primary); background: var(--primary-50); }
.nav-links a.nav-link.is-active { color: var(--primary); font-weight: 600; }
.nav-link svg { width: 14px; height: 14px; transition: transform 0.2s var(--ease); }
.nav-dropdown.is-open > .nav-link svg { transform: rotate(180deg); }

/* Dropdown */
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 268px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}
.nav-dropdown.is-open .nav-dropdown-menu { opacity: 1; visibility: visible; transform: none; }
.nav-dropdown-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--neutral-700);
}
.nav-dropdown-menu a:hover { background: var(--primary-50); color: var(--primary); }

/* Actions */
.navbar-actions { display: flex; align-items: center; gap: 12px; }
.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 11px 20px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.contact-btn:hover { background: var(--secondary); color: #fff; transform: translateY(-2px); }
.contact-btn svg { width: 16px; height: 16px; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--primary);
}
.icon-btn:hover { background: var(--primary-50); border-color: var(--primary-200); }
.icon-btn svg { width: 18px; height: 18px; }

/* Hamburger */
.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 0;
  position: relative;
}
.hamburger span {
  position: absolute;
  left: 12px;
  width: 18px;
  height: 2px;
  background: var(--neutral);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease), top 0.25s var(--ease);
}
.hamburger span:nth-child(1) { top: 15px; }
.hamburger span:nth-child(2) { top: 21px; }
.hamburger span:nth-child(3) { top: 27px; }
.hamburger.is-open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* Mobile */
@media (max-width: 900px) {
  .hamburger { display: block; }
  .navbar-container { gap: 14px; justify-content: space-between; }
  .navbar-actions .contact-btn .phone-number { display: none; }
  .contact-btn { padding: 11px 14px; }

  .nav-links {
    position: fixed;
    inset: 74px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 16px var(--gutter) 28px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    max-height: calc(100vh - 74px);
    overflow-y: auto;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }
  .nav-links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a.nav-link { padding: 14px 12px; font-size: 1rem; }

  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--primary-100);
    border-radius: 0;
    margin: 0 0 6px 14px;
    padding: 0 0 0 8px;
    display: none;
  }
  .nav-dropdown.is-open .nav-dropdown-menu { display: block; }
}
