/* ───────────────────────────────────────────────────────────────
   E-Variant Shell CSS — 구 디자인 8개 페이지의 내비게이션·푸터·
   하단 고정바 껍데기를 새 홈(index.html/method.html/quote.html)과
   통일하기 위한 전용 스타일시트.

   출처: g-variant/style.css 에서 클래스 단위 규칙만 선별 이식.
   ⚠️ g-variant/style.css의 태그 단위 규칙(body, html, a, ul,
   h1/h2/h3/p, img/picture/video/svg, button/input/select/textarea)은
   절대 가져오지 않았음 — 기존 본문(e-variant/style.css 의존)이
   깨지는 것을 막기 위함.

   ⚠️ CSS 변수 이름 충돌 주의사항 (중요):
   g-variant의 --accent(#B26A1F)·--border(rgba(21,24,28,.1))는
   e-variant/tokens.css의 --accent(#ea580c)·--border(#e5e5e5)와
   "같은 이름, 다른 값"으로 충돌한다. 그대로 :root에 가져오면
   본문 전체의 강조색·테두리색이 조용히 바뀌어버린다.
   → 전부 --shell- 접두사로 이름을 바꿔 격리했다. (요청서의
     ":root 변수는 겹치지 않는다"는 전제는 이 두 변수에 한해 사실과
     달랐음 — 아래 :root 블록 참고)
   ─────────────────────────────────────────────────────────────── */

:root {
  --shell-bg: #F5F6F7;
  --shell-white: #FFFFFF;
  --shell-text: #15181C;
  --shell-text-soft: #4B525A;
  --shell-text-on-steel: #EEF1F3;
  --shell-text-on-steel-soft: #B9C3C9;
  --shell-steel-deep: #263D48;
  --shell-accent: #B26A1F;
  --shell-accent-deep: #8F5518;
  --shell-border: rgba(21, 24, 28, 0.1);
  --shell-ease: cubic-bezier(.2, .8, .2, 1);
  --shell-dur: 300ms;
  --shell-wrap: 1120px;
  --shell-wrap-narrow: 760px;
}

/* ─── 내비/푸터가 쓰는 컨테이너 ─── */
.wrap {
  width: 100%;
  max-width: var(--shell-wrap);
  margin: 0 auto;
  padding: 0 24px;
}
.wrap--narrow { max-width: var(--shell-wrap-narrow); }

/* ─── 버튼 (내비 CTA 전용 — btn--primary, btn--sm만 사용) ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 28px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: background var(--shell-dur) var(--shell-ease), border-color var(--shell-dur) var(--shell-ease), color var(--shell-dur) var(--shell-ease), transform var(--shell-dur) var(--shell-ease), box-shadow var(--shell-dur) var(--shell-ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(0) scale(0.99); }
.btn:hover { transform: translateY(-2px) scale(1.015); }
.btn--primary { background: var(--shell-accent); color: #fff; }
.btn--primary:hover { background: var(--shell-accent-deep); box-shadow: 0 10px 26px rgba(178,106,31,0.32); }
.btn--sm { height: 42px; padding: 0 20px; font-size: 14px; }

/* ─── 헤더 내비 (히어로 위 투명 → 스크롤 시 잉크 전환) ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 70;
  padding: 16px 0;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 280ms var(--shell-ease), border-color 280ms var(--shell-ease), box-shadow 280ms var(--shell-ease);
}
.nav.is-scrolled, .nav--solid {
  background: rgba(245,246,247,0.94);
  border-bottom-color: var(--shell-border);
  box-shadow: 0 2px 18px rgba(21,24,28,0.05);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav__brand {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-right: auto;
}
.nav__logo {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: #fff;
  transition: color 280ms var(--shell-ease);
}
.nav.is-scrolled .nav__logo, .nav--solid .nav__logo { color: var(--shell-text); }
.nav__badge {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  transition: color 280ms var(--shell-ease);
}
.nav.is-scrolled .nav__badge, .nav--solid .nav__badge { color: var(--shell-text-soft); }
.nav__links {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav__link {
  position: relative;
  padding: 4px 0;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.82);
  transition: color 280ms var(--shell-ease);
  white-space: nowrap;
}
.nav.is-scrolled .nav__link, .nav--solid .nav__link { color: var(--shell-text-soft); }
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  height: 2px;
  width: 0;
  background: var(--shell-accent);
  transition: width 220ms var(--shell-ease);
}
.nav__link:hover { color: #fff; }
.nav.is-scrolled .nav__link:hover, .nav--solid .nav__link:hover { color: var(--shell-text); }
.nav__link:hover::after { width: 100%; }
.nav__link.is-active { font-weight: 800; }
.nav__link.is-active::after { width: 100%; }
.nav.is-scrolled .nav__link.is-active, .nav--solid .nav__link.is-active { color: var(--shell-accent); }
.nav__cta { flex-shrink: 0; }

@media (max-width: 720px) {
  .nav__badge { display: none; }
  .nav__link:not(.nav__link--core) { display: none; }
  .nav__links { gap: 16px; }
  .nav__cta.btn--sm { padding: 0 16px; height: 40px; font-size: 13px; }
}

/* ─── 하단 고정 바 ─── */
.sticky-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  display: flex;
  background: var(--shell-white);
  border-top: 1px solid var(--shell-border);
  box-shadow: 0 -6px 24px rgba(21,24,28,0.08);
}
.sticky-bar__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 62px;
  font-size: 15.5px;
  font-weight: 700;
  transition: background 220ms var(--shell-ease);
}
.sticky-bar__btn--phone {
  color: var(--shell-text);
  border-right: 1px solid var(--shell-border);
}
.sticky-bar__btn--phone:hover { background: var(--shell-bg); }
.sticky-bar__btn--primary {
  background: var(--shell-accent);
  color: #fff;
}
.sticky-bar__btn--primary:hover { background: var(--shell-accent-deep); }

/* ─── 푸터 ─── */
.footer {
  background: var(--shell-steel-deep);
  color: var(--shell-text-on-steel-soft);
  padding: 40px 0 calc(40px + 62px);
  text-align: center;
  font-size: 13px;
  line-height: 1.9;
}
.footer strong { color: var(--shell-text-on-steel); font-weight: 700; }

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  margin-bottom: 18px;
}
.footer__links a {
  color: var(--shell-text-on-steel);
  font-size: 14px;
  font-weight: 600;
}
.footer__links a:hover { text-decoration: underline; }

/* ─── 보정: 고정 내비(.nav, position:fixed) 겹침 방지 ───
   구 페이지의 .e-hero(상단 패딩 120px)·.p-hero(96px+)는 이미 여유가
   있어 손댈 필요 없음. 단 페르소나 5개 페이지가 쓰는
   .e-hero--infg는 상단 패딩이 8px(모바일 4px)뿐이라, 고정 내비(약
   72~76px 높이)에 제목·아이브로우가 가려진다. 본문 내용은 그대로
   두고 상단 여백만 내비 높이만큼 보정한다. */
.e-hero--infg { padding-top: 96px; }
@media (max-width: 900px) {
  .e-hero--infg { padding-top: 88px; }
}
