/*
  header-footer.css — 공통 헤더·푸터. tokens.css 다음에 로드.
*/
.skip-link{
  position: absolute; top: -120px; left: 12px; z-index: 100;
  background: var(--accent); color: var(--white); padding: 12px 18px; border-radius: var(--r);
  font-weight: 700; text-decoration: none; transition: top .18s ease-out;
}
.skip-link:focus{ top: 12px; }

/* ===== 헤더 ===== */
.site-header{ position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.site-header__inner{ height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-header.is-scrolled{ box-shadow: var(--sh-2); }

.site-logo{ flex: none; display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; color: var(--navy); text-decoration: none; }
.site-logo svg{ flex: none; }

.site-nav{ display: none; }
.site-header__cta{ display: none; }
.site-header__cta-mobile{ flex: none; min-height: 40px; padding: 0 16px; font-size: 14px; }

.site-header__menu-btn{ display: none; }

@media (min-width: 768px){
  .site-nav{ display: block; }
  .site-header__menu-btn{ display: none; }
  .site-nav__list{ display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
  .site-nav__list a{
    display: flex; align-items: center; height: 44px; padding: 0 14px; border-radius: var(--r);
    font-weight: 600; font-size: 15px; color: var(--ink-2); text-decoration: none;
  }
  .site-nav__list a:hover, .site-nav__list a[aria-current="page"]{ color: var(--accent); background: var(--accent-soft); }

  .site-header__cta{ display: inline-flex; min-height: 42px; padding: 0 20px; font-size: 14px; }
  .site-header__cta-mobile{ display: none; }
}

/* ===== 푸터 (가로형 컴팩트) ===== */
.site-footer{ background: var(--navy); color: #CBD5E1; }
.site-footer__inner{ padding-block: 18px; }
.site-footer__biz{ display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 0 0 10px; }
.site-footer__biz span{ font-size: 12.5px; line-height: 1.6; color: #94A3B8; white-space: nowrap; padding-right: 16px; border-right: 1px solid #334155; }
.site-footer__biz span:last-child{ padding-right: 0; border-right: 0; }
.site-footer__links{ display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 10px; padding: 0; list-style: none; }
.site-footer__links a{ color: #E2E8F0; font-size: 13px; text-decoration: none; }
.site-footer__links a:hover{ text-decoration: underline; }
.site-footer__bottom{ border-top: 1px solid #1E293B; }
.site-footer__bottom p{ margin: 0; padding-block: 14px; font-size: 12px; color: #64748B; }

@media (max-width: 767.98px){
  .site-footer__inner{ padding-block: 12px; }
  .site-footer__biz{ gap: 3px 10px; margin-bottom: 6px; }
  .site-footer__biz span{ font-size: 10.5px; line-height: 1.5; white-space: normal; padding-right: 10px; }
  .site-footer__links{ gap: 2px 12px; margin-bottom: 6px; }
  .site-footer__links a{ font-size: 11.5px; }
  .site-footer__bottom p{ padding-block: 6px; font-size: 10.5px; }
}

/* ===== 모바일 하단 고정 CTA ===== */
body{ padding-bottom: 72px; }
@media (min-width: 768px){ body{ padding-bottom: 0; } }
.mobile-cta-bar{
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; gap: 8px;
  height: 60px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: var(--white); border-top: 1px solid var(--line-2); box-shadow: var(--sh-3);
}
.mobile-cta-bar__btn{ flex: 1; gap: 6px; padding: 0 10px; font-size: 14px; min-height: 44px; }
@media (min-width: 768px){ .mobile-cta-bar{ display: none; } }

@media (prefers-reduced-motion: reduce){
  .skip-link{ transition: none !important; }
}
