/* ===== SITE HEADER ===== */
.site-header {
  width: 100%;
  background: #fff;
  border-bottom: 2px solid #e8e8e8;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 76px;
  display: flex;
  align-items: center;
  gap: 40px;
}

/* ---- Logo ---- */
.header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  letter-spacing: -0.5px;
}

.header-logo__img {
  max-height: 48px;
  max-width: 180px;
  object-fit: contain;
  display: block;
}

.logo-w {
  color: #1565c0;
  font-style: italic;
  font-weight: 900;
  font-size: 2.6rem;
  line-height: 1;
}

.logo-text {
  color: #1565c0;
  font-size: 2rem;
  font-weight: 300;
}

.logo-text strong {
  font-weight: 800;
  color: #1565c0;
}

/* ---- Nav ---- */
.header-nav {
  flex: 1;
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-menu > li {
  position: relative;
}

.nav-menu > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  color: #333;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  border-radius: 6px;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}

.nav-menu > li > a:hover {
  color: #1565c0;
  background: #e8f0fe;
}

.nav-menu > li > a .arrow {
  font-size: 1.1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  margin-top: -10px;
}


/* ---- Dropdown ---- */
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  list-style: none;
  margin: 0;
  padding: 14px 0 6px; /* padding-top tạo khoảng cách thay vì gap */
  min-width: 200px;
  z-index: 100;
}

/* Bridge: lấp khoảng trống giữa nav link và dropdown */
.has-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 14px;
  background: transparent;
}

/* Hover dropdown chỉ trên desktop */
@media (min-width: 769px) {
  .nav-menu > li.has-dropdown:hover .dropdown {
    display: block;
  }
}

.dropdown li a {
  display: block;
  padding: 10px 18px;
  color: #333;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s, background 0.15s;
}

.dropdown li a:hover {
  color: #1565c0;
  background: #e8f0fe;
}

/* ---- CTA Button ---- */
.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: #1565c0;
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 999px;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.15s;
}

.btn-contact:hover {
  background: #0d47a1;
  transform: translateY(-1px);
}

/* ---- Hamburger ---- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: auto;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #333;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Animate to X */
.hamburger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}
.hamburger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .header-inner { gap: 16px; }
  .nav-menu > li > a { padding: 8px 10px; font-size: 0.95rem; }
  .btn-contact { padding: 9px 16px; font-size: 0.9rem; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .btn-contact { display: none; }

  .header-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e8e8e8;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    z-index: 999;
  }

  .header-nav.nav-open {
    display: block;
  }

  .nav-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
  }

  .nav-menu > li > a {
    padding: 14px 24px;
    font-size: 1rem;
    border-radius: 0;
    justify-content: space-between;
  }

  .nav-menu > li > a:hover {
    background: #e8f0fe;
  }

  /* Mobile dropdown */
  .dropdown {
    position: static;
    box-shadow: none;
    border: none;
    border-top: 1px solid #e0e8ff;
    border-radius: 0;
    background: #f5f8ff;
    padding: 0;
    display: none;
  }

  .has-dropdown.open > .dropdown {
    display: block;
  }

  .has-dropdown.open > a .arrow {
    margin-top: -10px;
    /* no transform */
  }

  .dropdown li a {
    padding: 12px 36px;
    font-size: 0.95rem;
    border-top: 1px solid #e0e8ff;
  }
}
