/* ==============================
   common.css — 공통 헤더/푸터/반응형 스타일
   ============================== */

/* ---------- 헤더 ---------- */
.nb-header {
  position: fixed; top: 0; left: 0; right: 0; height: 80px; z-index: 1001;
  display: flex; align-items: center; color: #fff; background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .3s, color .3s, border-color .3s;
}
.nb-header-inner {
  max-width: 1280px; width: 100%; margin: 0 auto; padding: 0 80px;
  display: flex; align-items: center; justify-content: space-between;
}
.nb-logo { display: flex; align-items: center; }
.nb-nav { display: flex; align-items: center; gap: 48px; }
.nb-nav a { font-size: 16px; font-weight: 600; color: inherit; opacity: 0.92; transition: color .2s; }
.nb-nav a:hover { opacity: 1; }
.nb-nav a.active { color: #1E5EFF; opacity: 1; }
/* 드롭다운 */
.nb-nav-item { position: relative; display: flex; align-items: center; }
.nb-nav-item > a { white-space: nowrap; }
.nb-nav-dropdown {
  display: none; position: absolute; top: calc(100% + 10px); left: 0;
  background: #fff; border-radius: 10px; min-width: 160px;
  box-shadow: 0 8px 28px rgba(10,31,68,0.18); z-index: 1002;
  flex-direction: column; overflow: hidden;
}
.nb-nav-dropdown::before {
  content: ''; position: absolute; top: -5px; left: 18px;
  width: 10px; height: 10px; background: #fff;
  transform: rotate(45deg); box-shadow: -2px -2px 3px rgba(0,0,0,0.06);
}
.nb-nav-item.open .nb-nav-dropdown { display: flex; }
.nb-nav-dropdown a {
  display: block; padding: 11px 20px; font-size: 14px; font-weight: 500;
  color: #1A1F2E !important; white-space: nowrap;
  border-bottom: 1px solid #F0F2F6; position: relative; z-index: 1; background: #fff;
}
.nb-nav-dropdown a:last-child { border-bottom: none; }
.nb-nav-dropdown a:hover { background: #F0F6FF !important; color: #1E5EFF !important; }
.nb-header-actions { display: flex; align-items: center; gap: 20px; }
.nb-lang { display: flex; align-items: center; gap: 5px; color: #fff; transition: color .3s; }
.nb-header.scrolled .nb-lang,
.nb-header[style*="rgba(255,255,255"] .nb-lang { color: #0A1F44; }
.nb-lang-btn {
  background: none; border: none; cursor: pointer;
  font: 600 13px/1 'Pretendard', sans-serif; color: inherit;
  padding: 2px 3px; opacity: 0.55; transition: opacity .2s;
}
.nb-lang-btn:hover { opacity: 1; }
.nb-lang-btn.nb-lang-active { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.nb-lang-sep { font-size: 11px; opacity: 0.3; }
.nb-btn-cta {
  display: flex; align-items: center; justify-content: center;
  width: 140px; height: 48px; background: #1E5EFF; color: #fff !important;
  font-size: 15px; font-weight: 700; border-radius: 999px;
  box-shadow: 0 8px 24px rgba(30,94,255,0.28);
}
.nb-menu-toggle {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  flex-direction: column; gap: 0;
  background: transparent; border: none; color: inherit; cursor: pointer; padding: 0;
}
.nb-menu-toggle span { display: block; width: 20px; height: 2px; background: currentColor; margin: 3px 0; }

/* ---------- 모바일 드로어 (서브페이지용) ---------- */
.nb-mobile-drawer {
  position: fixed; top: 80px; left: 0; right: 0; z-index: 99;
  background: #fff; border-bottom: 1px solid #E1E6EE;
  box-shadow: 0 8px 24px rgba(10,31,68,0.08);
  padding: 8px 20px 16px; display: none; flex-direction: column;
}
.nb-mobile-drawer.open { display: flex; }
.nb-mobile-drawer a {
  padding: 14px 0; font-size: 16px; font-weight: 500; color: #1A1F2E;
  border-bottom: 1px solid #F0F2F6; text-decoration: none;
}
.nb-mobile-drawer a.active { font-weight: 700; color: #1E5EFF; }
.nb-mobile-drawer a:last-child { border-bottom: none; }

/* ---------- body overflow ---------- */
body { overflow-x: hidden; }

/* ---------- 스크롤 스냅 (JS용) ---------- */

/* ---------- 서브 히어로 ---------- */
.sub-hero {
  position: relative; min-height: 320px; padding-top: 80px;
  background: linear-gradient(135deg, #001A4D 0%, #0A1F44 55%, #1E5EFF 100%);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.sub-hero .dot-pattern {
  position: absolute; inset: 0; opacity: 0.06; pointer-events: none;
}
.sub-hero-inner {
  position: relative; text-align: center; padding: 0 24px; max-width: 880px;
}
.sub-hero-eyebrow {
  font-size: 14px; font-weight: 700; color: #4A8BFF;
  text-transform: uppercase; letter-spacing: 0.2em; margin-bottom: 18px;
}
.sub-hero-title {
  font-size: 48px; font-weight: 800; color: #fff; line-height: 1.25;
  margin: 0 0 16px; letter-spacing: -0.02em;
}
.sub-hero-desc {
  font-size: 18px; color: #C8D2E4; line-height: 1.6; margin: 0;
}

/* ---------- 공통 푸터 반응형 ---------- */
.footer-grid-4 {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-bottom {
  padding-top: 28px; display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 16px;
}

/* ========== 반응형: 태블릿 ========== */
@media (max-width: 1439px) {
  .nb-header-inner { padding: 0 48px; }
}

@media (max-width: 1279px) {
  .nb-nav { display: none !important; }
  .nb-btn-cta { display: none !important; }
  .nb-menu-toggle { display: flex !important; }
  .nb-header-inner { padding: 0 20px; }
  .footer-grid-4 { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ---------- 공통 푸터 ---------- */
.nb-footer { background: #0A1F44; padding: 64px 0 32px; }
.nb-footer .nb-container { max-width: 1280px; margin: 0 auto; padding: 0 80px; }
.nb-footer-grid {
  display: flex; justify-content: space-between; align-items: center;
  gap: 32px; padding-bottom: 48px;
}
.nb-footer-logo { font: 900 24px/1 'Pretendard'; color: #fff; margin-bottom: 20px; }
.nb-footer-logo .accent { color: #4A8BFF; }
.nb-footer-addr { font: 400 13px/1.8 'Pretendard'; color: #8A99B8; }
.nb-footer-col-title { font: 700 14px/1 'Pretendard'; color: #fff; margin-bottom: 18px; }
.nb-footer-links { display: flex; flex-direction: column; gap: 12px; }
.nb-footer-links a { font: 400 14px/1 'Pretendard'; color: #A6B3CC; text-decoration: none; transition: color .2s; }
.nb-footer-links a:hover { color: #fff; }
.nb-footer-sns { display: flex; gap: 12px; margin-left: auto; }
.nb-footer-sns-icon {
  width: 40px; height: 40px; border-radius: 999px; border: 1px solid #2A3F66;
  display: flex; align-items: center; justify-content: center;
  color: #A6B3CC; transition: border-color .2s, color .2s;
}
.nb-footer-sns-icon:hover { border-color: #4A8BFF; color: #4A8BFF; }
.nb-footer-bottom {
  border-top: 1px solid #1C3158; padding-top: 24px;
  font: 400 13px/1 'Pretendard'; color: #6B7A99;
}

/* ========== 반응형: 태블릿 푸터 ========== */
@media (max-width: 1279px) {
  .nb-footer .nb-container { padding: 0 48px; }
  .nb-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 48px; }
}

/* ========== 반응형: 모바일 ========== */
@media (max-width: 767px) {
  .sub-hero { height: 260px; }
  .sub-hero-title { font-size: 28px !important; }
  .sub-hero-desc { font-size: 15px !important; }
  .footer-grid-4 { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .nb-footer { padding: 32px 0 20px; }
  .nb-footer .nb-container { padding: 0 20px; }
  .nb-footer-grid { grid-template-columns: 1fr; gap: 20px; padding-bottom: 20px; }
  .nb-footer-logo { font-size: 18px; margin-bottom: 8px; }
  .nb-footer-addr { font-size: 11px; }
  .nb-footer-col-title { font-size: 12px; margin-bottom: 10px; }
  .nb-footer-links a { font-size: 12px; }
  .nb-footer-bottom { font-size: 10px; line-height: 1.5; padding-top: 16px; }
  .nb-footer-grid > div:not(:first-child) { display: none; }
  .nb-footer-bottom { display: none; }
}
