@charset "utf-8";

/* ==========================================
   DRBL HEADER - FINAL MASTER + LANGUAGE TOGGLE
   - Hero 위: 완전 투명
   - Scroll 후: 살짝 불투명 글래스
   - 로고/메뉴 중앙 정렬
   - Company 드롭다운 고정폭
   - Hover 시 흔들림 없음
   - Mobile drawer 포함
   - 메뉴 폰트 = 본문 폰트와 동일
   - 메뉴 영문 대문자 통일
   - 메뉴 16px / 600 두께 최종 반영
   - KR / EN 토글 최종 반영
   - Brand 드롭다운 pill background 제거
   ========================================== */

/* ===== TOKENS ===== */
:root{
  --navFont: 16px;
  --navTracking: .03em;
  --navColor: rgba(0,0,0,.82);

  --headerMax: 1200px;
  --headerPadX: 16px;
  --headerPadTop: 18px;
  --headerPadBottom: 14px;
  --logoNavGap: 8px;

  --menuGapGroup: 96px;
  --menuGapInner: 78px;
  --menuH: 42px;
  --companySlotW: 128px;

  /* Hero 위 = 완전 투명 */
  --headerHeroBg: transparent;
  --headerHeroLine: transparent;

  /* 스크롤 후 = 지금 느낌 유지 */
  --headerSolidBg: rgba(246,244,238,.20);
  --headerSolidLine: rgba(255,255,255,.12);

  --hoverBg: rgba(255,255,255,.30);
  --activeBg: rgba(255,255,255,.36);
  --hoverShadow: 0 3px 10px rgba(0,0,0,.04);

  --dropBg: rgba(255,255,255,.84);
  --dropLine: rgba(0,0,0,.06);
  --dropShadow: 0 10px 24px rgba(0,0,0,.08);

  /* language switch */
  --langBg: rgba(255,255,255,.34);
  --langBorder: rgba(255,255,255,.44);
  --langText: rgba(0,0,0,.72);
  --langActiveBg: rgba(0,0,0,.82);
  --langActiveText: #fff;
  --langDivider: rgba(0,0,0,.24);
}

/* ===== BODY SPACING ===== */
body{
  padding-top: var(--headerSpace, 110px);
}
body.header-on-hero{
  padding-top: 0 !important;
}

/* ===== HEADER SHELL ===== */
.header,
.site-header{
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  z-index: 999;
  overflow: visible;

  background: var(--headerSolidBg);
  border-bottom: 1px solid var(--headerSolidLine);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  transform: translateY(var(--headerY, 0px));
  will-change: transform;
  transition:
    background .25s ease,
    border-color .25s ease,
    backdrop-filter .25s ease,
    -webkit-backdrop-filter .25s ease,
    transform .25s ease;
}

/* Hero 위 = 완전 투명 */
.site-header.is-on-hero,
.header.is-on-hero{
  background: transparent !important;
  border-bottom-color: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
}

/* Scroll 후 = 살짝 불투명 */
.site-header.is-solid,
.header.is-solid{
  background: var(--headerSolidBg) !important;
  border-bottom-color: var(--headerSolidLine) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

/* ===== INNER ===== */
.header-inner{
  max-width: var(--headerMax);
  margin: 0 auto;
  padding: var(--headerPadTop) var(--headerPadX) var(--headerPadBottom);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--logoNavGap);

  overflow: visible;
}

/* ===== LOGO ===== */
.brand{
  display:flex;
  align-items:center;
  justify-content:center;
  margin:0 auto;
}
.brand img{
  width:180px;
  height:auto;
  display:block;
}

/* ===== NAV LAYOUT ===== */
.nav{
  width:100%;
  display:grid;
  grid-template-columns: 1fr auto 1fr;
  align-items:center;
  column-gap: var(--menuGapGroup);
  margin:0 auto;
  padding:0;
  overflow: visible;
}

.nav > .nav-left,
.nav > .nav-right{
  display:flex;
  align-items:center;
  min-height: var(--menuH);
  height: var(--menuH);
  gap: var(--menuGapInner);
}

.nav > .nav-left{
  justify-self:end;
  justify-content:flex-end;
}

.nav > .nav-right{
  justify-self:start;
  justify-content:flex-start;
}

.nav > .nav-center{
  justify-self:center;
}

/* ===== COMMON MENU ITEM ===== */
.nav-left > a,
.nav-right > a,
.nav > .nav-center,
.drop-link,
.dropbtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: var(--menuH);
  min-height: var(--menuH);
  margin:0;
  padding:0 16px;

  font-size: var(--navFont);
  font-family: inherit;
  font-weight: 600;
  letter-spacing: var(--navTracking);
  line-height:1;
  color: var(--navColor);
  text-decoration:none;
  white-space:nowrap;
  text-transform: uppercase;

  border-radius:999px;
  box-sizing:border-box;
  transform:none !important;

  transition:
    background .18s ease,
    color .18s ease,
    box-shadow .18s ease,
    backdrop-filter .18s ease,
    -webkit-backdrop-filter .18s ease;
}

/* ===== HOVER / ACTIVE ===== */
.nav-left > a:hover,
.nav-right > a:hover,
.nav > .nav-center:hover{
  background: var(--hoverBg);
  color: rgba(0,0,0,.92);
  box-shadow: var(--hoverShadow);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.nav a.active,
.nav a[aria-current="page"]{
  background: var(--activeBg);
  color:#111;
  box-shadow: var(--hoverShadow);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

/* ===== COMPANY SLOT ===== */
.dropdown{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: var(--companySlotW);
  min-width: var(--companySlotW);
  max-width: var(--companySlotW);
  flex:0 0 var(--companySlotW);
  height: var(--menuH);
  min-height: var(--menuH);
  margin:0;
  padding:0;
  overflow:visible !important;
}

.drop-combo{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: var(--companySlotW);
  min-width: var(--companySlotW);
  max-width: var(--companySlotW);
  height: var(--menuH);
  min-height: var(--menuH);
  padding:0 12px;
  gap:4px;
  border-radius:999px;
  box-sizing:border-box;
  transition:
    background .18s ease,
    color .18s ease,
    box-shadow .18s ease,
    backdrop-filter .18s ease,
    -webkit-backdrop-filter .18s ease;
}

.drop-link{
  padding:0;
}

.dropbtn{
  width:16px;
  min-width:16px;
  padding:0;
  border:0;
  background:transparent;
  cursor:pointer;
  color:rgba(0,0,0,.60);
}

.caret{
  display:inline-block;
  width:8px;
  height:8px;
  border-right:1.5px solid currentColor;
  border-bottom:1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
}

/* Company hover/open/active */
.dropdown:hover .drop-combo,
.dropdown.is-open .drop-combo,
.dropdown.is-active .drop-combo{
  background: var(--hoverBg);
  box-shadow: var(--hoverShadow);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.dropdown:hover .drop-link,
.dropdown.is-open .drop-link,
.dropdown.is-active .drop-link,
.dropdown:hover .dropbtn,
.dropdown.is-open .dropbtn,
.dropdown.is-active .dropbtn{
  color:#111;
}

/* ===== BRAND DROPDOWN : pill background 제거 ===== */
.dropdown[data-menu="brand"]{
  width:auto !important;
  min-width:auto !important;
  max-width:none !important;
  flex:0 0 auto !important;
}

.dropdown[data-menu="brand"] .drop-combo{
  width:auto !important;
  min-width:auto !important;
  max-width:none !important;
  padding:0 !important;
  gap:4px;
  background:transparent !important;
  box-shadow:none !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
}

.dropdown[data-menu="brand"] .drop-link,
.dropdown[data-menu="brand"] .dropbtn{
  background:transparent !important;
  box-shadow:none !important;
}

/* Brand는 Company처럼 흰 캡슐 배경이 뜨지 않게 */
.dropdown[data-menu="brand"]:hover .drop-combo,
.dropdown[data-menu="brand"].is-open .drop-combo,
.dropdown[data-menu="brand"].is-active .drop-combo{
  background:transparent !important;
  box-shadow:none !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
}

/* 링크/캐럿만 살짝 반응 */
.dropdown[data-menu="brand"]:hover .drop-link,
.dropdown[data-menu="brand"].is-open .drop-link,
.dropdown[data-menu="brand"].is-active .drop-link,
.dropdown[data-menu="brand"]:hover .dropbtn,
.dropdown[data-menu="brand"].is-open .dropbtn,
.dropdown[data-menu="brand"].is-active .dropbtn{
  color:#111 !important;
}

/* ===== DROPDOWN MENU ===== */
.dropdown-menu{
  position:absolute;
  left:50%;
  top:calc(100% + 8px);
  transform:translateX(-50%) translateY(6px);
  min-width:110px;

  display:flex;
  flex-direction:column;
  gap:4px;
  padding:8px;
  border-radius:14px;

  background: var(--dropBg);
  border:1px solid var(--dropLine);
  box-shadow: var(--dropShadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  opacity:0;
  visibility:hidden;
  pointer-events:none;
  z-index:2000;

  transition:
    opacity .18s ease,
    visibility .18s ease,
    transform .18s ease;
}

.dropdown-menu::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:-14px;
  height:14px;
  background:transparent;
}

.dropdown:hover .dropdown-menu,
.dropdown.is-open .dropdown-menu{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translateX(-50%) translateY(0);
}

.dropdown-menu a{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:0 10px;
  border-radius:10px;

  font-size:12px;
  font-family: inherit;
  font-weight: 600;
  letter-spacing:.03em;
  color:rgba(0,0,0,.76);
  text-decoration:none;
  text-transform: uppercase;

  background: rgba(255,255,255,.78);
  border:1px solid rgba(0,0,0,.08);

  transition:
    background .18s ease,
    color .18s ease,
    transform .18s ease,
    border-color .18s ease;
}

.dropdown-menu a:hover{
  background: rgba(0,0,0,.05);
  color:#111;
  transform: translateY(-1px);
}

/* ===== LANGUAGE SWITCH ===== */
.lang-switch{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  height:34px;
  margin-left:8px;
  padding:0 9px;

  border:1px solid var(--langBorder);
  border-radius:999px;
  background: var(--langBg);
  box-shadow: 0 2px 8px rgba(0,0,0,.03);

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  cursor:pointer;
  white-space:nowrap;
  flex:0 0 auto;

  transition:
    background .18s ease,
    border-color .18s ease,
    box-shadow .18s ease,
    transform .18s ease,
    color .18s ease;
}

.lang-switch:hover{
  background: rgba(255,255,255,.46);
  border-color: rgba(255,255,255,.58);
  box-shadow: 0 4px 12px rgba(0,0,0,.05);
}

.lang-switch .lang-ko,
.lang-switch .lang-en{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:26px;
  height:22px;
  padding:0 6px;
  border-radius:999px;

  font-size:10px;
  font-weight:700;
  letter-spacing:.08em;
  line-height:1;
  text-transform: uppercase;
  color: var(--langText);

  transition:
    background .18s ease,
    color .18s ease,
    box-shadow .18s ease;
}

.lang-switch .divider{
  font-size:10px;
  font-weight:600;
  line-height:1;
  color: var(--langDivider);
  transform: translateY(-.5px);
}

.lang-switch[data-lang="ko"] .lang-ko,
.lang-switch[data-lang="en"] .lang-en{
  background: var(--langActiveBg);
  color: var(--langActiveText);
  box-shadow: 0 2px 6px rgba(0,0,0,.10);
}

.site-header.is-on-hero .lang-switch,
.header.is-on-hero .lang-switch{
  background: rgba(255,255,255,.28);
  border-color: rgba(255,255,255,.38);
}

.site-header.is-solid .lang-switch,
.header.is-solid .lang-switch{
  background: rgba(255,255,255,.44);
  border-color: rgba(0,0,0,.08);
}

/* ===== MOBILE ===== */
.menu-btn{
  display:none;
  border:1px solid rgba(0,0,0,.12);
  background:rgba(255,255,255,.66);
  padding:9px 12px;
  border-radius:12px;
  cursor:pointer;
  color:#111;
  font-family: inherit;
  font-weight: 600;
  letter-spacing:.03em;
  text-transform: uppercase;
}

.drawer{
  display:none;
  width:100%;
  border-top:1px solid rgba(0,0,0,.10);
  background: rgba(246,244,238,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.drawer.is-open{
  display:block;
}

.drawer-inner{
  max-width: var(--headerMax);
  margin:0 auto;
  padding:10px var(--headerPadX) 14px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.drawer-top{
  display:flex;
  justify-content:flex-end;
  padding-bottom:2px;
}

.drawer a{
  padding:12px 12px;
  border-radius:12px;
  color:rgba(0,0,0,.80);
  text-decoration:none;
  background:rgba(255,255,255,.45);
  border:1px solid rgba(0,0,0,.08);
  font-family: inherit;
  font-weight: 600;
  letter-spacing:.03em;
  text-transform: uppercase;
}

.drawer a.active{
  background:rgba(255,255,255,.78);
  color:#111;
  font-weight:700;
}

.drawer a:hover{
  background:rgba(255,255,255,.72);
}

.lang-switch.mobile{
  margin-left:0;
  height:38px;
  padding:0 10px;
  background: rgba(255,255,255,.74);
  border-color: rgba(0,0,0,.10);
}

.lang-switch.mobile .lang-ko,
.lang-switch.mobile .lang-en{
  min-width:30px;
  height:25px;
  font-size:11px;
}

/* mobile accordion */
.m-acc{
  border-radius:14px;
  overflow:hidden;
}
.m-acc-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.m-acc-link{
  flex:1;
  display:flex;
  align-items:center;
  min-height:44px;
  padding:0 6px;
  text-decoration:none;
  color:inherit;
  font-family: inherit;
  font-weight: 600;
  letter-spacing:.03em;
  text-transform: uppercase;
}
.m-acc-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:36px;
  height:36px;
  padding:0;
  border:0;
  background:transparent;
  color:inherit;
  cursor:pointer;
  font-family: inherit;
  font-weight: 600;
}
.m-acc-panel{
  display:none;
  padding:10px 0 0;
}
.m-acc.is-open .m-acc-panel{
  display:block;
}
.m-acc-panel a{
  margin-top:8px;
}

/* ===== 헤더 전체 폰트 강제 통일 ===== */
.header,
.site-header,
.header *{
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width:980px){
  :root{
    --navFont: 15px;
    --navTracking: .03em;
    --menuGapGroup: 56px;
    --menuGapInner: 52px;
    --companySlotW: 116px;
    --menuH: 40px;
  }

  .brand img{
    width:160px;
  }

  .lang-switch{
    height:32px;
    padding:0 8px;
    gap:5px;
    margin-left:6px;
  }

  .lang-switch .lang-ko,
  .lang-switch .lang-en{
    min-width:24px;
    height:20px;
    padding:0 5px;
    font-size:10px;
  }
}

@media (max-width:720px){
  .nav{
    display:none;
  }

  .menu-btn{
    display:inline-flex;
    align-items:center;
    gap:8px;
  }

  .header-inner{
    align-items:stretch;
    padding:14px 16px 12px;
  }

  .brand{
    justify-content:center;
  }

  .brand img{
    width:150px;
  }
}