/* Header & Topbar Styling */
.topbar {
  background: var(--primary-navy);
  color: var(--text-light);
  padding: 9px 0;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.topbar-info span {
  margin-right: 28px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 500;
}

.topbar-info i {
  color: var(--accent-gold);
  font-size: 14px;
}

.topbar-link {
  color: #ffffff;
  font-weight: 500;
}

.topbar-link:hover {
  color: var(--accent-gold);
}

.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 96px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-logo-img {
  height: 76px;
  max-height: 82px;
  width: auto;
  max-width: 420px;
  object-fit: contain;
  display: block;
}

.brand-text h2 {
  font-size: 20px;
  letter-spacing: 0.5px;
  color: var(--primary-navy);
  margin-bottom: 0;
  font-weight: 800;
}

.brand-text span {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1.2px;
  font-weight: 700;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--primary-slate);
  position: relative;
  padding: 10px 0;
  transition: var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-gold);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--accent-gold);
  border-radius: 2px;
  transition: var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-cta-btn {
  background: var(--accent-gold) !important;
  color: var(--primary-navy) !important;
  font-weight: 800 !important;
  font-size: 13.5px !important;
  letter-spacing: 0.5px !important;
  padding: 11px 22px !important;
  border-radius: 6px !important;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35) !important;
  transition: all 0.25s ease !important;
  white-space: nowrap !important;
}

.nav-cta-btn:hover {
  background: var(--accent-gold-hover) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.45) !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 20px;
  color: var(--primary-navy);
  cursor: pointer;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.menu-toggle:hover {
  background: var(--bg-light);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

/* Mobile Drawer & Backdrop */
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1990;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 86vw);
  background: #ffffff;
  z-index: 2000;
  box-shadow: -8px 0 24px rgba(15, 23, 42, 0.2);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.32s ease;
  overflow: hidden;
}

.mobile-drawer.active {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.mobile-drawer__head {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-light);
}

.mobile-drawer__brand {
  display: flex;
  flex-direction: column;
}

.mobile-drawer__brand-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-navy);
  letter-spacing: 0.5px;
}

.mobile-drawer__brand-sub {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.mobile-drawer__close {
  width: 44px;
  height: 44px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
}

.mobile-drawer__close:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
}

.mobile-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px 28px;
  display: flex;
  flex-direction: column;
}

.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--primary-navy);
  text-decoration: none;
  transition: var(--transition-fast);
}

.mobile-nav-link i {
  font-size: 15px;
  color: var(--text-muted);
  width: 20px;
  text-align: center;
}

.mobile-nav-link:hover {
  background: var(--bg-light);
  color: var(--accent-gold);
}

.mobile-nav-link:hover i {
  color: var(--accent-gold);
}

.mobile-nav-link.active {
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-gold);
}

.mobile-nav-link.active i {
  color: var(--accent-gold);
}

.mobile-drawer__cta {
  margin-bottom: 24px;
}

.mobile-cta-btn {
  width: 100%;
  padding: 13px 18px;
  font-size: 14px;
  font-weight: 800;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.mobile-drawer__info {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.mobile-drawer__info-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.mobile-drawer__info-item i {
  color: var(--accent-gold);
  font-size: 14px;
  margin-top: 2px;
}

.mobile-drawer__info-item strong {
  color: var(--primary-navy);
}

/* Tablet & Mobile Breakpoints */
@media (max-width: 1023px) {
  .topbar {
    padding: 7px 0;
    font-size: 12px;
  }
  .topbar-info span {
    margin-right: 14px;
  }
  .topbar-item--hours {
    display: none;
  }
  .navbar {
    height: 76px;
  }
  .site-logo-img {
    height: 56px;
    max-height: 60px;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .nav-menu {
    display: none;
  }
}

@media (max-width: 767px) {

  /* ===== MOBILE TOP BAR ===== */
  .topbar {
    padding: 5px 0;
    font-size: 8.5px;
  }

  .topbar .header-container {
    padding-left: 6px;
    padding-right: 6px;
  }

  .topbar-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0;
    width: 100%;
  }

  .topbar-info {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    white-space: nowrap;
    gap: 8px;
  }

  /* Không ẩn email + giờ làm việc trên mobile */
  .topbar-item--email,
  .topbar-item--hours {
    display: inline-flex !important;
  }

  .topbar-info span {
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 8.5px;
    line-height: 1.2;
    white-space: nowrap;
  }

  .topbar-info i {
    font-size: 8px;
    flex-shrink: 0;
  }

  .topbar-link {
    font-size: inherit;
    white-space: nowrap;
  }

  /* Không còn cột đăng nhập */
  .topbar-right {
    display: none !important;
  }


  /* ===== MOBILE MAIN HEADER ===== */

  .navbar {
    height: 58px;
  }

  .site-logo-img {
    height: 34px;
    max-height: 36px;
    max-width: 155px;
    width: auto;
  }

  .brand-logo {
    gap: 0;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

@media (max-width: 360px) {

  .topbar {
    font-size: 7.5px;
  }

  .topbar-info {
    gap: 5px;
  }

  .topbar-info span {
    font-size: 7.5px;
    gap: 2px;
  }

  .topbar-info i {
    font-size: 7px;
  }

  .navbar {
    height: 56px;
  }

  .site-logo-img {
    height: 31px;
    max-height: 33px;
    max-width: 140px;
  }

  .menu-toggle {
    width: 38px;
    height: 38px;
    font-size: 17px;
  }
}

/* Desktop Baseline Safety (>= 1024px) */
@media (min-width: 1024px) {
  .menu-toggle {
    display: none !important;
  }
  .nav-menu {
    display: flex !important;
  }
  .mobile-drawer,
  .mobile-drawer-backdrop {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}
