:root {
  --handa-orange: #e6802c;
  --handa-dark: #2b2520;
  --handa-mid: #eeb68e;
  --handa-white: #fff;
}

/* ══════════════════════════════
   HEADER
══════════════════════════════ */
#handa-header {
  position: fixed !important;
  top: 0; left: 0; right: 0;
  z-index: 9999 !important;
  padding: 0 40px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  background: transparent;
}

/* ── 초기 상태 (투명) ── */
#handa-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── 스크롤 후 상태 (플로팅 박스) ── */
#handa-header.scrolled {
  padding: 16px 40px;
}
#handa-header.scrolled .header-inner {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 60px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
  padding: 0 36px;
  height: 78px;
  max-width: 1440px;
  margin: 0 auto;
}

/* ── 로고 이미지: 기본 전부 숨김 ── */
#handa-header .logo-default,
#handa-header .logo-white,
#handa-header .logo-mobile-default,
#handa-header .logo-mobile-white {
  height: 42px;
  display: none !important;
}

/* ── PC (769px+) 기본(서브 포함): 컬러 로고 ── */
@media (min-width: 769px) {
  #handa-header .logo-default { display: block !important; }
}

/* ── PC (769px+) 메인 초기: 흰색 로고 ── */
@media (min-width: 769px) {
  #handa-header.is-index:not(.scrolled) .logo-default { display: none  !important; }
  #handa-header.is-index:not(.scrolled) .logo-white   { display: block !important; }
}

/* ── PC (769px+) 메인+스크롤: 컬러 복귀 ── */
@media (min-width: 769px) {
  #handa-header.is-index.scrolled .logo-white   { display: none  !important; }
  #handa-header.is-index.scrolled .logo-default { display: block !important; }
}
/* ── 로고 공통 ── */
#handa-header .header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

/* ── 메인 페이지 초기: 텍스트/아이콘 흰색 ── */
#handa-header.is-index:not(.scrolled) .nav-item > a {
  color: rgba(255,255,255,0.92);
}
#handa-header.is-index:not(.scrolled) .nav-item > a:hover {
  color: #fff;
}
#handa-header.is-index:not(.scrolled) .hamburger span {
  background: #fff;
}

/* ── 히어로 서브페이지 초기: 흰색 ── */
#handa-header.is-hero:not(.scrolled) .nav-item > a {
  color: rgba(255,255,255,0.92);
}
#handa-header.is-hero:not(.scrolled) .nav-item > a:hover {
  color: #fff;
}
#handa-header.is-hero:not(.scrolled) .hamburger span {
  background: #fff;
}
@media (min-width: 769px) {
  #handa-header.is-hero:not(.scrolled) .logo-default { display: none  !important; }
  #handa-header.is-hero:not(.scrolled) .logo-white   { display: block !important; }
  #handa-header.is-hero.scrolled .logo-white          { display: none  !important; }
  #handa-header.is-hero.scrolled .logo-default        { display: block !important; }
}
@media (max-width: 768px) {
  #handa-header.is-hero:not(.scrolled) .logo-mobile-default { display: none  !important; }
  #handa-header.is-hero:not(.scrolled) .logo-mobile-white   { display: block !important; }
  #handa-header.is-hero.scrolled .logo-mobile-white         { display: none  !important; }
  #handa-header.is-hero.scrolled .logo-mobile-default       { display: block !important; }
}

/* ── PC 네비 ── */
#handa-header .header-nav {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
}
#handa-header .nav-item {
  position: relative;
}
#handa-header .nav-item > a {
  display: block;
  padding: 8px 30px;
  font-size: 18px;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: color 0.25s;
  white-space: nowrap;
}
#handa-header.scrolled .nav-item > a {
  color:;
}
#handa-header .nav-item > a:hover,
#handa-header.scrolled .nav-item > a:hover {
  color: var(--handa-orange);
}

/* ── 드롭다운 ── */
#handa-header .nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#handa-header .dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  transform: translateY(-6px);
  background: var(--handa-white);
  border-radius: 14px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.14);
  padding: 16px 0;
  min-width: 140px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  z-index: 100;
}
#handa-header .dropdown::before {
  content: '';
  position: absolute;
  top: -6px; left: 20px;
  width: 12px; height: 12px;
  background: var(--handa-white);
  rotate: 45deg;
  border-radius: 2px;
}
#handa-header .dropdown a {
  display: block;
  padding: 10px 24px;
  font-size: 16px;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
#handa-header .dropdown a:hover {
  color: var(--handa-orange);
  background: #fdf8f4;
}

/* ── 우측: 문의하기 버튼 ── */
#handa-header .header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
#handa-header .btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: #e7802d;
  color: var(--handa-white);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 100px;
  letter-spacing: 0.3px;
  transition: all 0.3s;
  white-space: nowrap;
  border: 1.5px solid transparent;
}
#handa-header .btn-contact:hover {
  background: var(--handa-orange);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(230,128,44,0.35);
}
#handa-header.scrolled .btn-contact {
  color: var(--handa-white);
}

/* ── 햄버거 (모바일) ── */
#handa-header .hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: transparent;
}
#handa-header .hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #333;
  border-radius: 2px;
  transition: all 0.3s;
}
#handa-header.scrolled .hamburger span { background: var(--handa-dark); }
#handa-header .hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
#handa-header .hamburger.open span:nth-child(2) { opacity: 0; transform: translateX(-8px); }
#handa-header .hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── 모바일 메뉴 패널 ── */
#mobileMenu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(43,37,32,0.97);
  z-index: 9998;
  flex-direction: column;
  padding: 88px 0 60px;
  overflow-y: auto;
  opacity: 0;
  transition: opacity 0.3s;
}
#mobileMenu.open {
  display: flex;
  opacity: 1;
}
#mobileMenu .mobile-acc-item {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
#mobileMenu .mobile-acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
}
#mobileMenu .mobile-acc-trigger .acc-label {
  font-size: 18px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.3px;
}
#mobileMenu .mobile-acc-trigger.solo {
  text-decoration: none;
  display: flex;
}
#mobileMenu .mobile-acc-trigger.solo .acc-label { color: rgba(255,255,255,0.9); }

#mobileMenu .acc-arrow {
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
#mobileMenu .acc-arrow svg {
  width: 14px; height: 14px;
  stroke: rgba(255,255,255,0.4);
  fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
#mobileMenu .mobile-acc-item.open .acc-arrow { transform: rotate(180deg); }
#mobileMenu .mobile-acc-item.open .acc-arrow svg { stroke: var(--handa-orange); }
#mobileMenu .mobile-acc-item.open .acc-label { color: var(--handa-orange); }

#mobileMenu .mobile-acc-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
#mobileMenu .mobile-acc-panel.open { max-height: 400px; }
#mobileMenu .mobile-acc-panel a {
  display: block;
  padding: 14px 40px 14px 56px;
  font-size: 16px;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}
#mobileMenu .mobile-acc-panel a::before {
  content: '';
  position: absolute;
  left: 42px; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
}
#mobileMenu .mobile-acc-panel a:hover { color: var(--handa-orange); }
#mobileMenu .mobile-acc-panel a:hover::before { background: var(--handa-orange); }

#mobileMenu .mobile-contact {
  margin-top: auto;
  padding: 40px 40px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
#mobileMenu .mobile-contact a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--handa-orange);
  color: var(--handa-white);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 100px;
}

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 1024px) {
  #handa-header .nav-item > a { padding: 8px 14px; font-size: 14px; }
}

@media (max-width: 768px) {
  #handa-header { padding: 0 20px; }
  #handa-header.scrolled { padding: 12px 20px; }
  #handa-header.scrolled .header-inner {
    border-radius: 50px;
    padding: 0 24px;
    height: 60px;
  }
  #handa-header .header-nav { display: none; }
  #handa-header .btn-contact { display: none; }
  #handa-header .hamburger { display: flex; }

  /* 기본: 컬러 모바일 로고 */
  #handa-header .logo-mobile-default { display: block !important; }

  /* 메인 초기: 흰색 모바일 로고 */
  #handa-header.is-index:not(.scrolled) .logo-mobile-default { display: none  !important; }
  #handa-header.is-index:not(.scrolled) .logo-mobile-white   { display: block !important; }

  /* 스크롤 후: 컬러 복귀 */
  #handa-header.scrolled .logo-mobile-white   { display: none  !important; }
  #handa-header.scrolled .logo-mobile-default { display: block !important; }
}