/* ===== 새 버전 공통: 왼쪽 로고 + 오른쪽 메뉴가 한 줄에 있는 상단 바 ===== */
.topbar { position: sticky; top: 0; z-index: 30; background: rgb(255 255 255 / .97); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(6px); }
.topbar__inner { display: flex; align-items: center; gap: 32px; height: 92px; }
.topbar .brand img { height: 62px; width: auto; }
.topbar .gnb { background: none; margin-left: auto; }
.topbar .gnb__list { width: auto; margin: 0; gap: 30px; }
.topbar .gnb__list a { color: var(--ink); opacity: 1; font-size: 16px; font-weight: 600; padding: 34px 0; }
.topbar .gnb__list a:hover { color: var(--accent); }
.topbar__tel {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 4px; background: var(--nav); color: #fff;
  font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; transition: background-color .2s;
}
.topbar__tel:hover { background: var(--accent); }
.topbar__cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 4px; background: var(--nav); color: #fff;
  font-weight: 700; font-size: 15px; transition: background-color .2s;
}
.topbar__cta:hover { background: var(--accent); }
html { scroll-padding-top: 104px; }

@media (max-width: 1100px) {
  .topbar .gnb__list { gap: 20px; }
  .topbar__tel, .topbar__cta { display: none; }
}
@media (max-width: 760px) {
  .topbar__inner { height: 64px; }
  .topbar .brand img { height: 46px; }
  .topbar .menu-toggle { position: static; margin-left: auto; }
  .topbar .gnb { position: absolute; left: 0; right: 0; top: 64px; margin: 0; background: #fff; border-bottom: 1px solid var(--line); }
  .topbar .gnb__list { padding: 0 16px; }
  .topbar .gnb__list a { padding: 15px 0; border-bottom: 1px solid var(--line); }
  html { scroll-padding-top: 72px; }
}

/* 현재 페이지 메뉴 표시 */
.topbar .gnb__list a[aria-current="page"] { color: var(--accent); }
.topbar .gnb__list a[aria-current="page"]::after { transform: scaleX(1); }

/* 회사소개 하위 메뉴 */
.topbar .has-sub { position: relative; }
.topbar .sub {
  position: absolute; left: 50%; top: calc(100% - 8px); transform: translateX(-50%);
  min-width: 150px; padding: 8px 0; background: #fff; border: 1px solid var(--line); border-radius: 6px;
  box-shadow: 0 14px 34px -16px rgb(0 0 0 / .3);
  opacity: 0; visibility: hidden; transition: opacity .18s ease, visibility .18s ease;
}
.topbar .has-sub:hover .sub, .topbar .has-sub:focus-within .sub { opacity: 1; visibility: visible; }
.topbar .sub a { display: block; padding: 10px 20px !important; font-size: 15px; white-space: nowrap; }
.topbar .sub a::after { display: none; }
.topbar .sub a:hover { background: var(--tint); }

@media (max-width: 760px) {
  .topbar .sub { position: static; transform: none; opacity: 1; visibility: visible; border: 0; box-shadow: none; padding: 0 0 0 14px; min-width: 0; }
  .topbar .sub a { padding: 12px 0 !important; font-size: 15px; color: var(--ink-soft); }
}
