/* Header Styles matching Figma Prototype (ref_01_hero.png) */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: background 0.3s ease;
}

.site-header.scrolled {
  position: fixed;
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 40px 31px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* Left: Hamburger Button with asymmetrical strokes matching Figma */
.menu-toggle-btn {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 8px;
  gap: 4px;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
}

.menu-toggle-btn:hover {
  background: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.hamburger-bar {
  display: block;
  height: 2px;
  background-color: #262626;
  border-radius: 1px;
  transition: all 0.25s ease;
}

.hamburger-bar:nth-child(1) {
  width: 16px;
}

.hamburger-bar:nth-child(2) {
  width: 10px; /* Gạch thứ 2 ngắn hơn đúng theo Figma */
}

.hamburger-bar:nth-child(3) {
  width: 16px;
}

/* Center: Brand Logo */
.brand-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
}

/* Right: Search, Lang, CTA */
.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.search-btn {
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.search-btn:hover {
  opacity: 0.8;
}

.lang-switch {
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  transition: opacity 0.2s ease;
}

.lang-switch:hover {
  opacity: 0.8;
}

.btn-consult {
  background-color: var(--color-accent-orange);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  height: 31px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  text-transform: uppercase;
  transition: background-color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.btn-consult:hover {
  background-color: var(--color-accent-orange-hover);
  transform: translateY(-1px);
}

/* Navigation Drawer */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.nav-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.nav-drawer {
  position: fixed;
  top: 0;
  left: -360px;
  width: 320px;
  height: 100vh;
  background: #FFFFFF;
  z-index: 10001;
  box-shadow: 4px 0 25px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transition: left 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 30px;
}

.nav-drawer.open {
  left: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 25px;
}

.drawer-title {
  font-family: var(--font-serif);
  font-size: 16px;
  letter-spacing: 2px;
  font-weight: 600;
  color: var(--color-text-main);
}

.drawer-close-btn {
  font-size: 28px;
  line-height: 1;
  color: var(--color-text-main);
  cursor: pointer;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
}

.drawer-link {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: var(--color-text-main);
  transition: color 0.2s ease, transform 0.2s ease;
}

.drawer-link:hover {
  color: var(--color-accent-orange);
  transform: translateX(4px);
}

.drawer-footer {
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.drawer-cta-btn {
  display: block;
  text-align: center;
  background-color: var(--color-accent-orange);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 12px 20px;
  border-radius: 4px;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .header-container {
    padding: 20px;
  }
  .logo-img {
    height: 32px;
  }
  .btn-consult, .lang-switch {
    display: none;
  }
}
