/* GNB — Global Navigation Bar */
body { padding-top: 60px; }

.gnb {
  position: fixed; top: 0; left: 0; right: 0; height: 60px; z-index: 150;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid #e2e8f0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: 'Pretendard Variable', Pretendard, -apple-system, 'Apple SD Gothic Neo', sans-serif;
}
.gnb-inner {
  padding: 0 20px;
  height: 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}

/* Logo */
.gnb-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.gnb-logo img { display: block; height: 30px; width: auto; }

/* Desktop nav */
.gnb-nav { display: none; align-items: center; gap: 2px; }
@media (min-width: 1024px) { .gnb-nav { display: flex; } }

.gnb-link {
  font-size: 14px; font-weight: 600;
  color: #475569; text-decoration: none;
  padding: 7px 14px; border-radius: 999px;
  transition: background 0.15s, color 0.15s;
  border: none; background: none; cursor: pointer;
  font-family: inherit; line-height: 1.5;
  white-space: nowrap;
}
.gnb-link:hover, .gnb-link:focus-visible { background: #f1f5f9; color: #087eaf; outline: none; }
.gnb-link--active { background: #e9f5f8; color: #087eaf; }

/* Dropdown */
.gnb-dropdown { position: relative; }
.gnb-dropdown-btn { display: inline-flex; align-items: center; gap: 5px; }
.gnb-caret { font-size: 10px; transition: transform 0.2s; display: inline-block; }
.gnb-dropdown-btn[aria-expanded="true"] .gnb-caret { transform: rotate(180deg); }

.gnb-dropdown-menu {
  display: none; position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 180px;
  background: #fff; border: 1px solid #e2e8f0;
  border-radius: 12px; padding: 6px;
  box-shadow: 0 8px 24px rgba(15,23,42,0.08);
  z-index: 100;
}
.gnb-dropdown-menu--open { display: block; }
.gnb-dropdown-item {
  display: block; padding: 9px 14px;
  font-size: 14px; color: #475569; text-decoration: none;
  border-radius: 8px;
  transition: background 0.12s, color 0.12s;
  font-weight: 500;
}
.gnb-dropdown-item:hover { background: #f1f5f9; color: #087eaf; }

/* Hamburger */
.gnb-hamburger {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 36px; height: 36px; padding: 7px 6px;
  background: none; border: none; cursor: pointer; border-radius: 8px;
  flex-shrink: 0;
}
.gnb-hamburger:hover { background: #f1f5f9; }
.gnb-hamburger span { display: block; height: 2px; background: #0f172a; border-radius: 2px; transition: 0.2s; }
@media (min-width: 1024px) { .gnb-hamburger { display: none; } }

/* Mobile Drawer */
.gnb-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 280px; max-width: 85vw;
  background: #fff; z-index: 200;
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
  box-shadow: -4px 0 24px rgba(15,23,42,0.1);
}
.gnb-drawer--open { transform: translateX(0); }

.gnb-drawer-inner { padding: 16px; display: flex; flex-direction: column; }
.gnb-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
}
.gnb-drawer-close {
  font-size: 18px; color: #64748b;
  background: none; border: none; cursor: pointer;
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: inherit;
}
.gnb-drawer-close:hover { background: #f1f5f9; color: #0f172a; }

.gnb-drawer-link {
  display: block; padding: 11px 14px;
  font-size: 15px; font-weight: 500; color: #475569; text-decoration: none;
  border-radius: 10px; margin-bottom: 2px;
  transition: background 0.12s, color 0.12s;
}
.gnb-drawer-link:hover { background: #f1f5f9; color: #087eaf; }
.gnb-drawer-link--active { background: #e9f5f8; color: #087eaf; font-weight: 700; }

.gnb-drawer-section {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; color: #94a3b8;
  padding: 10px 14px 4px; text-transform: uppercase;
}
.gnb-drawer-sublink { padding-left: 28px; font-size: 14px; }

/* Overlay */
.gnb-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(15,23,42,0.3); z-index: 199;
}
.gnb-overlay--show { display: block; }
