/* =============================================
   HEADER
   ============================================= */

#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 6vw, 80px);
  gap: 20px;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}

#site-header.scrolled {
  background: rgba(7,7,7,0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: rgba(255,85,0,0.1);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-text {
  font-family: var(--fh);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--t);
  letter-spacing: -0.025em;
  white-space: nowrap;
}

/* Nav */
.h-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.h-nav a {
  font-family: var(--fh);
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(237,237,237,0.45);
  text-decoration: none;
  transition: color 0.2s;
}
.h-nav a:hover { color: var(--t); }

/* Right side */
.h-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Guarantee seal */
.h-guarantee {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--fh);
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(237,237,237,0.4);
  white-space: nowrap;
}
.h-guarantee svg { color: var(--green); flex-shrink: 0; }

/* Mobile */
.h-menu-btn {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}
.h-menu-btn span {
  display: block;
  width: 20px; height: 1.5px;
  background: var(--t);
  border-radius: 1px;
}

@media (max-width: 820px) {
  .h-nav, .h-guarantee { display: none; }
  .h-menu-btn { display: flex; }
  .h-right .btn { padding: 10px 18px; font-size: 0.82rem; }
}
@media (max-width: 480px) {
  .logo-text { font-size: 0.78rem; }
  .h-right .btn { padding: 9px 14px; font-size: 0.78rem; }
}

/* ——— Mobile Nav Overlay ——— */
#mobile-nav {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0; bottom: 0;
  background: rgba(8,8,8,0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 990;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
#mobile-nav.open {
  opacity: 1;
  pointer-events: auto;
}
@media (max-width: 820px) {
  #mobile-nav { display: flex; }
}

.m-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
}
.m-nav-link {
  font-family: var(--fh);
  font-size: 1.25rem;
  font-weight: 700;
  color: rgba(237,237,237,0.55);
  text-decoration: none;
  padding: 14px 20px;
  width: 100%;
  text-align: center;
  border-radius: 10px;
  transition: color 0.2s, background 0.2s;
}
.m-nav-link:hover {
  color: var(--t);
  background: rgba(255,255,255,0.04);
}
.m-nav-btn {
  margin-top: 20px;
  width: 100%;
  max-width: 320px;
  text-align: center;
  justify-content: center;
}
.m-nav-guarantee {
  font-family: var(--fh);
  font-size: 0.72rem;
  color: rgba(237,237,237,0.3);
  text-align: center;
  margin-top: 10px;
}

/* Hamburger → X animation */
.h-menu-btn span {
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}
.h-menu-btn.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.h-menu-btn.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.h-menu-btn.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}
