#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  z-index: 1000;
  transform: translateZ(0);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

body {
  padding-top: var(--navbar-height, 108px);
}

#navbar.scrolled .navbar-main {
  box-shadow: 0 10px 24px rgba(11, 13, 14, 0.08);
}

.navbar-topbar {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: rgba(255, 255, 255, 0.96);
  font-size: 0.92rem;
}

.topbar-inner,
.navbar-inner,
.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
}

.topbar-inner {
  justify-content: space-between;
  gap: 16px;
  min-height: 42px;
}

.topbar-left {
  gap: 12px;
  flex-wrap: wrap;
}

.topbar-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.topbar-phone-icon {
  flex: 0 0 14px;
}

.topbar-phone:hover {
  text-decoration: underline;
}

.topbar-divider {
  opacity: 0.45;
}

.topbar-walkin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.navbar-main {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(231, 233, 234, 0.8);
}

.navbar-inner {
  justify-content: space-between;
  gap: 24px;
  min-height: 66px;
}

.navbar-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 0;
  line-height: 0;
}

.navbar-logo .navbar-logo-image {
  display: block;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  object-fit: contain;
}

.navbar-brand-name {
  color: var(--gray-900);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  white-space: nowrap;
}

@media (max-width: 639px) {
  .navbar-logo .navbar-logo-image {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .navbar-brand-name {
    font-size: 22px;
  }
}

.navbar-links {
  display: none;
  align-items: center;
  gap: 18px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 10px 0;
  color: var(--gray-700);
  font-size: 0.97rem;
  font-weight: 500;
  background: transparent;
  box-shadow: none;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 2.5px;
  border-radius: 999px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.28s ease, opacity 0.28s ease;
  opacity: 0;
}

.nav-link:hover {
  color: var(--gray-900);
}

.nav-link.active {
  color: var(--primary-dark);
  font-weight: 600;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
  opacity: 1;
}

#navbar.scrolled .nav-link.active {
  color: var(--primary-dark);
}

.navbar-cta-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-book-now {
  min-height: 46px;
  padding: 11px 22px;
  font-size: 0.98rem;
}

.hamburger-btn {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: rgba(13, 132, 123, 0.08);
}

.hamburger-bar {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--primary-dark);
  transition: all 0.3s ease;
}

.hamburger-btn.active .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger-btn.active .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: grid;
  gap: 12px;
  width: 100%;
  max-height: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  padding: 0 16px;
  border-bottom: 1px solid rgba(231, 233, 234, 0.8);
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu.open {
  max-height: 540px;
  padding: 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mobile-link,
.btn-mobile-book {
  padding: 14px 16px;
  border-radius: 16px;
  font-weight: 700;
}

.mobile-link {
  background: rgba(248, 250, 250, 0.88);
  color: var(--gray-700);
}

.mobile-link:hover {
  background: rgba(13, 132, 123, 0.08);
  color: var(--primary-dark);
}

.btn-mobile-book {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
}

@media (min-width: 1100px) {
  .navbar-links {
    display: flex;
  }

  .hamburger-btn,
  .mobile-menu {
    display: none;
  }
}

@media (max-width: 1099px) {
  .btn-book-now {
    display: none;
  }

  .mobile-menu.open {
    max-height: calc(100vh - var(--navbar-height, 108px));
    max-height: calc(100dvh - var(--navbar-height, 108px));
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 639px) {
  .navbar-topbar {
    font-size: 0.76rem;
  }

  .topbar-divider {
    display: none;
  }

  .topbar-inner {
    min-height: 42px;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    gap: 8px;
    padding: 6px 0;
  }

  .topbar-left,
  .topbar-right {
    width: auto;
    min-width: 0;
  }

  .topbar-left {
    flex-wrap: nowrap;
  }

  .topbar-hours {
    display: none;
  }

  .topbar-right {
    flex-shrink: 0;
  }

  .topbar-walkin {
    width: auto;
  }

  .navbar-inner {
    min-height: 64px;
    gap: 12px;
  }

  .navbar-logo-image {
    width: min(136px, 42vw);
  }

  .hamburger-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .mobile-menu.open {
    max-height: calc(100vh - var(--navbar-height, 106px));
    max-height: calc(100dvh - var(--navbar-height, 106px));
    padding: 12px 16px max(16px, env(safe-area-inset-bottom));
  }

  .mobile-link,
  .btn-mobile-book {
    padding: 13px 14px;
  }
}

@media (max-width: 359px) {
  .navbar-topbar {
    font-size: 0.7rem;
  }

  .topbar-phone {
    gap: 5px;
  }

  .topbar-walkin {
    gap: 5px;
  }
}
