@import url("https://cdn.jsdelivr.net/gh/wanteddev/wanted-sans@v1.0.3/packages/wanted-sans/fonts/webfonts/static/complete/WantedSans.min.css");
/* =============================================
   common.css | 협신포장 공통 스타일
   작성일: 2026-03
   ============================================= */

/* ── CSS 변수 ── */
:root {
  --color-primary: #1a2e6e;
  --color-secondary: #2b4bb3;
  --color-accent: #4160b5;
  --color-text: #1a1a2e;
  --color-text-light: #64748b;
  --color-white: #ffffff;
  --color-bg: #ffffff;
  --color-footer-bg: #0d1424;
  --font-main: 'Wanted Sans Variable', sans-serif;
  --inner-width: 1440px;
  --inner-pad: 60px;
  --transition: 0.3s ease;
  --radius: 16px;
  --header-h: 80px;
  --header-top: 24px;
}

/* =============================================
   HEADER 빛 흐름 애니메이션
   ============================================= */
@keyframes headerShine {
  0%   {transform: translateX(-140%) skewX(-18deg);}
  100% {transform: translateX(360%)  skewX(-18deg);}
}
@keyframes headerGlow {
  0%, 100% {opacity: 0.45;}
  50%       {opacity: 1;}
}

/* ── Reset ── */
*, *::before, *::after {box-sizing: border-box; margin: 0; padding: 0;}
html {scroll-behavior: smooth;}
body {font-family: var(--font-main); font-weight: 400; color: var(--color-text); background: var(--color-bg); line-height: 1.6; word-break: keep-all;
overflow-x: hidden; letter-spacing:-0.03em;-webkit-font-smoothing: antialiased;  -moz-osx-font-smoothing: grayscale;  text-rendering: optimizeLegibility;}
img {display: block; max-width: 100%; height: auto;}
a {text-decoration: none; color: inherit; transition: var(--transition);}
ul, ol {list-style: none;}
address {font-style: normal;}
button {cursor: pointer; border: none; background: none; font-family: inherit;}
.sr-only {position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;}
.inner {max-width: var(--inner-width); margin: 0 auto; padding: 0 var(--inner-pad);}

/* =============================================
   HEADER
   - 초기 : top:24px, pill형 글래스모피즘
   - 스크롤 후 : top:0, full-width
   ============================================= */
#header {position: fixed; top: var(--header-top); left: 50%; transform: translateX(-50%); width: calc(100% - 80px); max-width: 1360px; z-index: 1000;
overflow: hidden; border-radius: 999px; background: rgba(20,35,90,0.85); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);  transition: top 0.45s cubic-bezier(0.4,0,0.2,1), width 0.45s cubic-bezier(0.4,0,0.2,1), max-width 0.45s cubic-bezier(0.4,0,0.2,1), border-radius 0.45s cubic-bezier(0.4,0,0.2,1), background 0.45s ease, box-shadow 0.45s ease;}
/* 헤더 빛줄기 */
#header::before {content: ''; position: absolute; top: 0; left: 0; width: 55%; height: 100%; background: linear-gradient(105deg, transparent 20%, rgba(255,255,255,0.1) 40%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.06) 60%, transparent 80%); animation: headerShine 7s ease-in-out infinite; pointer-events: none; z-index: 0; border-radius: inherit;}
/* 헤더 상단 글로우 라인 */
#header::after {content: ''; position: absolute; top: 0; left: 8%; width: 84%; height: 1px; background: linear-gradient(to right, transparent, rgba(255,255,255,0.30) 25%, rgba(255,255,255,0.55) 50%, rgba(255,255,255,0.30) 75%, transparent); animation: headerGlow 4.5s ease-in-out infinite; pointer-events: none; z-index: 0;}
#header.is-scrolled {top: 0; width: 100%; max-width: 100%; border-radius: 0; background: rgba(18,30,80,0.97); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border: none; border-bottom: 1px solid rgba(255,255,255,0.07); box-shadow: 0 4px 32px rgba(0,0,0,0.32);}
/* 스크롤 후 빛 강도 낮춤 */
#header.is-scrolled::before {background: linear-gradient(105deg, transparent 20%, rgba(255,255,255,0.03) 40%, rgba(255,255,255,0.07) 50%, rgba(255,255,255,0.03) 60%, transparent 80%);}
#header.is-scrolled::after {opacity: 0.5;}
#header .inner {position: relative; z-index: 1; display: flex; align-items: center; height: var(--header-h); padding: 0 40px; max-width: 100%;}

/* 로고 */
#header .logo {flex-shrink: 0; display: flex; align-items: center;}
#header .logo a {display: flex; align-items: center; transition: opacity var(--transition);}
#header .logo a:hover {opacity: 0.85;}

/* GNB 데스크탑 - 중앙 */
#gnb {flex: 1; display: flex; justify-content: center;}
#gnb .gnb__list {display: flex; align-items: center;}
#gnb .gnb__item {position: relative;}
#gnb .gnb__link {display: flex; align-items: center; height: var(--header-h); padding: 0 26px; color: rgba(255,255,255,0.80); font-size: 15px; font-weight: 500; position: relative; overflow: hidden; transition: color 0.25s ease;}
#gnb .gnb__link::before {content: ''; position: absolute; inset: 18px 10px; background: rgba(255,255,255,0.10); border-radius: 999px; transform: scale(0.6); opacity: 0; transition: transform 0.28s cubic-bezier(0.34,1.56,0.64,1), opacity 0.22s ease;}
#gnb .gnb__link:hover {color: var(--color-white);}
#gnb .gnb__link:hover::before {transform: scale(1); opacity: 1;}
#gnb .gnb__link.is-active {color: var(--color-white);}
#gnb .gnb__link.is-active::before {transform: scale(1); opacity: 1; background: rgba(176,174,243,0.20);}

/* 우측 */
#header .header__right {flex-shrink: 0; display: flex; align-items: center; gap: 10px;}

/* 전화 버튼 */
#header .header__tel {display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: var(--color-accent); border-radius: 50%; color: var(--color-white); transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow var(--transition);}
#header .header__tel:hover {transform: scale(1.14); box-shadow: 0 0 0 6px rgba(232,160,32,0.20);}

/* 햄버거 버튼 - 기본 숨김, 모바일에서 표시 */
#header .btn-menu {display: none; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; padding: 8px;}
#header .btn-menu__bar {display: block; width: 100%; height: 2px; background: var(--color-white); border-radius: 2px; transition: transform 0.32s ease, opacity 0.24s ease;}
#header .btn-menu.is-active .btn-menu__bar:nth-child(1) {transform: translateY(7px) rotate(45deg);}
#header .btn-menu.is-active .btn-menu__bar:nth-child(2) {opacity: 0;}
#header .btn-menu.is-active .btn-menu__bar:nth-child(3) {transform: translateY(-7px) rotate(-45deg);}

/* =============================================
   모바일 GNB 패널
   - header 바깥, 완전 독립 fixed
   - 기본 : display:none (모바일에서만 표시)
   ============================================= */
#gnb-mobile {display: none;}

/* =============================================
   커스텀 커서 (데스크탑)
   ============================================= */
.cursor {position: fixed; width: 36px; height: 36px; border: 1.5px solid rgba(255,255,255,0.6); border-radius: 50%; pointer-events: none; z-index: 9999; transform: translate(-50%,-50%); transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, background 0.3s ease; mix-blend-mode: difference;}
.cursor-dot {position: fixed; width: 5px; height: 5px; background: #fff; border-radius: 50%; pointer-events: none; z-index: 9999; transform: translate(-50%,-50%); mix-blend-mode: difference;}
.cursor.is-hovered {width: 56px; height: 56px; background: rgba(255,255,255,0.06); border-color: var(--color-accent);}
.cursor-dot.is-hovered {background: var(--color-accent);}

/* =============================================
   FOOTER
   ============================================= */
#footer {background: var(--color-footer-bg); padding: 70px 0 36px;}
#footer .inner {display: flex; flex-direction: column; align-items: center; gap: 36px;}
#footer .footer__logo {display: flex; align-items: center; gap: 14px;}
#footer .footer__company {color: var(--color-white); font-size: 20px; font-weight: 700;}
#footer .footer__dl {display: flex; gap: 64px; justify-content: center; flex-wrap: wrap;}
#footer .footer__dl-group {display: flex; flex-direction: column; align-items: center; gap: 8px;}
#footer .footer__dl dt {color: #5a70a8; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em;}
#footer .footer__dl dd {color: rgba(255,255,255,0.75); font-size: 14px;}
#footer .footer__dl dd a {color: rgba(255,255,255,0.75); transition: color var(--transition);}
#footer .footer__dl dd a:hover {color: var(--color-accent);}
#footer .footer__copy {border-top: 1px solid rgba(255,255,255,0.07); width: 100%; text-align: center; padding-top: 28px; margin-top: 4px;}
#footer .footer__copy small {color: #2e3f6a; font-size: 12px; letter-spacing: 0.06em;}

/* =============================================
   RESPONSIVE - 1280px 이하
   ============================================= */
@media (max-width: 1280px) {
:root {--inner-pad: 40px;}
#header .inner {padding: 0 32px;}
#gnb .gnb__link {padding: 0 18px; font-size: 14px;}
}

/* =============================================
   RESPONSIVE - 1024px 이하
   ============================================= */
@media (max-width: 1024px) {
:root {--inner-pad: 28px;}
#header {width: calc(100% - 48px);}
#header.is-scrolled {width: 100%;}
#gnb .gnb__link {padding: 0 14px;}
#footer .footer__dl {gap: 36px;}
}

/* =============================================
   RESPONSIVE - 모바일 767px 이하
   ============================================= */
@media (max-width: 767px) {
:root {--inner-pad: 20px; --header-h: 60px; --header-top: 12px;}

/* 헤더 */
#header {width: calc(100% - 32px);}
#header.is-scrolled {width: 100%;}
#header .inner {padding: 0 20px; justify-content: space-between;}

/* 데스크탑 GNB 숨김 */
#gnb {display: none;}

/* 햄버거 표시 */
#header .btn-menu {display: flex;}

/* ─────────────────────────────────────────
   모바일 GNB 패널
   헤더(fixed)와 완전히 독립된 fixed 패널
   top 값은 JS에서 헤더 bottom 기준으로 설정
   ───────────────────────────────────────── */
#gnb-mobile {
  display: block;
  position: fixed;
  /* 초기 top: 헤더top(12) + 헤더높이(60) + 여백(8) = 80px */
  top: 80px;
  left: 16px;
  right: 16px;
  z-index: 999;
  background: rgba(12,22,60,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 20px;
  /* 기본 닫힌 상태 */
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  border-color: transparent;
  transition: max-height 0.38s cubic-bezier(0.4,0,0.2,1), opacity 0.28s ease, border-color 0.28s ease;
}
#gnb-mobile.is-open {max-height: 500px; opacity: 1; pointer-events: auto; border-color: rgba(255,255,255,0.10);}

/* 리스트 : 4개 1:1:1:1 균등 */
#gnb-mobile .gnb-mobile__list {display: flex; flex-direction: column; padding: 8px 0;}
#gnb-mobile .gnb-mobile__item {display: flex; flex: 1;}
#gnb-mobile .gnb-mobile__link {flex: 1; display: flex; align-items: center; padding: 18px 24px; font-size: 16px; font-weight: 600; color: rgba(255,255,255,0.80); border-bottom: 1px solid rgba(255,255,255,0.07); transition: color var(--transition), background var(--transition);}
#gnb-mobile .gnb-mobile__item:last-child .gnb-mobile__link {border-bottom: none;}
#gnb-mobile .gnb-mobile__link:hover {color: var(--color-white); background: rgba(255,255,255,0.06);}

/* 푸터 */
#footer .footer__dl {flex-direction: column; align-items: center; gap: 22px;}
#footer .footer__company {font-size: 18px;}
}