/**
 * site.css — plan2 시안2 coevolution 스타일 (시안1 미차용)
 */

/* ===== plan2 contain 90% 폭 (전역) ===== */
.contain { width: 90%; max-width: none; padding-left: 0; padding-right: 0; margin-left: auto; margin-right: auto; box-sizing: border-box; }

/* contain 내부 width:100% 덮어쓰기 방지 */
.coevo-main .hero-inner.contain,
.coevo-main .story-sec .sec-inner.contain,
.sub-detail .detail-hero .inner.contain { width: 90%; }

/* 서브 레이아웃 90% */
body.page-sub #contArea.contain { width: 90%; max-width: none; margin-left: auto; margin-right: auto; padding-left: 0; padding-right: 0; box-sizing: border-box; }
body.page-sub #contArea .contain { width: 100%; max-width: none; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
body.page-sub .sub-head .contain { width: 90%; }

/* 플로팅 — 우측 고정 · 아이콘만 */
.side-actions { right: 24px; }

#gnb a.is-unlinked,
.lnb a.is-unlinked,
.mobile-navigation a.is-unlinked { cursor: default; }

.page-main #container { padding-top: 0; }

/* ===== 메인 — fullPage.js (중원엔지니어링 동일 방식 · fp-auto-height 푸터) ===== */
html.fp-enabled,
html.fp-enabled body.page-main { overflow: hidden; height: 100%; }
.page-main #fullpage .section.hero-coevo,
.page-main #fullpage .section.story-sec { height: 100%; overflow: hidden; box-sizing: border-box; }
.page-main #fullpage .section.hero-coevo .hero-inner,
.page-main #fullpage .section.story-sec .sec-inner { min-height: 100%; height: 100%; box-sizing: border-box; }
.page-main #fullpage .fp-footer-wrap { height: auto !important; background: #242424; }
.page-main #fullpage .fp-footer-wrap .foot-coevo { height: auto; }
.page-main #fp-nav { display: none; }

/* ===== 메인 — 섹션 인디케이터 (좌측) ===== */
.snap-indicator { position: fixed; left: 24px; top: 50%; z-index: 88; display: flex; flex-direction: column; align-items: center; gap: 10px; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-50%); transition: opacity 0.3s ease, visibility 0.3s ease; }
.snap-indicator.is-visible { opacity: 1; visibility: visible; pointer-events: auto; }
.snap-indicator.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.snap-indicator .snap-num { font-family: var(--font-en); font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, 0.45); line-height: 1; }
.snap-indicator .snap-num-current { font-size: 14px; color: rgba(255, 255, 255, 0.92); }
.snap-indicator .snap-progress { display: block; width: 2px; height: 64px; border-radius: 2px; background: rgba(255, 255, 255, 0.15); position: relative; overflow: hidden; }
.snap-indicator .snap-progress-bar { position: absolute; top: 0; left: 0; width: 100%; height: 0; background: var(--color-primary); border-radius: 2px; transition: height 0.55s cubic-bezier(0.45, 0, 0.15, 1); }
.snap-indicator .snap-dots { display: flex; flex-direction: column; gap: 8px; list-style: none; margin: 0; padding: 0; }
.snap-indicator .snap-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.28); cursor: pointer; transition: background 0.2s ease, transform 0.2s ease; }
.snap-indicator .snap-dot.is-active { background: var(--color-primary); transform: scale(1.25); }
.snap-indicator .snap-dot:hover { background: rgba(255, 255, 255, 0.55); }
.snap-indicator .snap-dot.is-active:hover { background: var(--color-primary); }
@media (prefers-reduced-motion: reduce) {
  html.fp-enabled,
  html.fp-enabled body.page-main { overflow: auto; height: auto; }
  .page-main #fullpage .section.hero-coevo,
  .page-main #fullpage .section.story-sec { height: auto; overflow: visible; }
}

/* placeholder · icon-slot · logo-slot */
.placeholder { position: relative; display: block; margin: 0; background: rgba(255, 255, 255, 0.05); border: 1px dashed rgba(255, 255, 255, 0.14); }
.placeholder::before { content: ""; display: block; width: 100%; }
.icon-slot { display: block; flex-shrink: 0; width: 28px; height: 28px; background: rgba(255, 255, 255, 0.08); border: 1px dashed rgba(255, 255, 255, 0.22); border-radius: 6px; }
.logo-slot { display: block; width: 138px; height: 36px; background: rgba(255, 255, 255, 0.1); border: 1px dashed rgba(255, 255, 255, 0.25); border-radius: 4px; }

.glass { background: var(--glass-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--glass-border); border-radius: 16px; }

/* ===== 헤더 — 한국어 GNB · 메뉴별 서브메뉴 ===== */
.sitelogo a { display: block; line-height: 0; }
.sitelogo .logo-white { display: block; height: 36px; width: auto; }
#header { position: fixed; top: 0; left: 0; width: 100%; z-index: 100; background: transparent; border-bottom: 0; transition: background 0.25s ease; }
#header.is-scrolled { background: rgba(11, 18, 32, 0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
#header .contain { display: flex; align-items: center; justify-content: space-between; height: var(--header-height); background: transparent; border: 0; }
#header .sitelogo { flex-shrink: 0; }
#header #gnb { flex: 1 1 auto; text-align: center; }
#header #gnb>ul { display: flex; justify-content: flex-end; list-style: none; }
#header #gnb>ul>li { position: relative; padding: 0 28px; }
#header #gnb>ul>li>a { display: flex; align-items: center; height: var(--header-height); color: rgba(255, 255, 255, 0.85); font-size: var(--font-size-16); font-weight: 600; letter-spacing: -0.03em; text-decoration: none; text-transform: none; transition: color 0.15s ease; }
#header #gnb>ul>li>a:hover { color: var(--color-primary); }
#header #gnb>ul>li.active>a { color: #fff; }
#gnb .submenu { display: none; position: absolute; top: calc(100% - 4px); left: 50%; width: auto; min-width: 168px; height: auto; overflow: visible; transform: translateX(-50%); padding: var(--space-10); background: rgba(18, 26, 42, 0.96); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35); z-index: 120; text-align: center; }
#gnb .submenu>ul { padding: 0; list-style: none; text-align: center; }
#gnb .submenu>ul>li>a { display: block; padding: var(--space-10) var(--space-12); color: #fff; font-size: var(--font-size-14); text-decoration: none; white-space: nowrap; border-radius: 8px; transition: background 0.15s ease, color 0.15s ease; text-align: center; }
#gnb .submenu>ul>li>a:hover { color: #fff; background: var(--color-primary); text-decoration: none; }
.submenu-bg { display: none !important; }
#header .btn-m-menu span { background: #fff; }

/* ===== 서브 레이아웃 — 화이트 ===== */
body.page-sub { background: #fff; color: #222; }
body.page-sub #wrapper,
body.page-sub #container { background: #fff; }
body.page-sub .sub-head { position: relative; overflow: hidden; min-height: 320px; padding: calc(var(--header-height) + var(--space-40)) 0 var(--space-50); background: #0b1220; border-bottom: 0; box-sizing: border-box; }
body.page-sub .sub-head .bg { position: absolute; inset: 0; margin: 0; z-index: 0; }
body.page-sub .sub-head .bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
body.page-sub .sub-head .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.42) 55%, rgba(0, 0, 0, 0.65) 100%); }
body.page-sub .sub-head .contain { position: relative; z-index: 1; }
body.page-sub .sub-head .en { font-size: var(--font-size-13); font-weight: 600; font-family: var(--font-en); text-transform: uppercase; color: rgba(255, 255, 255, 0.72); margin-bottom: var(--space-12); }
body.page-sub .sub-head .tit { font-size: clamp(36px, calc(60 / var(--inner) * 100vw), 60px); font-weight: 700; line-height: 1.15; color: #fff; }
body.page-sub .sub-nav ul { display: flex; flex-wrap: wrap; gap: var(--space-10); list-style: none; margin: var(--space-24) 0 0; padding: 0; justify-content: flex-start; }
body.page-sub .sub-nav li { margin: 0; }
body.page-sub .sub-nav .btn-line { min-width: 0; height: 44px; padding: 0 var(--space-24); font-size: var(--font-size-14); border-color: rgba(255, 255, 255, 0.85); color: #fff; }
body.page-sub .sub-nav .btn-line:hover { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
body.page-sub .sub-nav .btn-line.is-active { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
body.page-sub .sub-nav .btn-line.is-unlinked { opacity: 1; pointer-events: auto; cursor: default; border-color: rgba(255, 255, 255, 0.78); color: rgba(255, 255, 255, 0.9); background: rgba(255, 255, 255, 0.08); }
body.page-sub .sub-nav .btn-line.is-unlinked:hover { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
body.page-sub .sub-nav .btn-line.is-active.is-unlinked { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
body.page-sub .real-cont { min-height: 200px; padding: var(--space-40) 0 var(--space-100); color: #333; }
body.page-sub .glass { background: var(--color-bg-soft); border: 1px solid var(--color-line); backdrop-filter: none; -webkit-backdrop-filter: none; }
body.page-sub .placeholder { background: #f0f2f5; border: 1px dashed #d5dbe3; }
body.page-sub .icon-slot { background: rgba(11, 18, 32, 0.06); border: 1px dashed rgba(11, 18, 32, 0.12); }
body.page-sub .btn-line { border-color: #333; color: #333; }
body.page-sub .btn-line:hover { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }

body.page-story .real-cont { padding-top: var(--space-40); }
body.page-story .sub-head { border-bottom: 0; }

body.page-contact .contact-page .hotline .item { background: transparent; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }

/* ===== 푸터 — foot-coevo (메인 index.html 기준) ===== */
#footer.foot-coevo { padding: 0; background: #242424; text-align: left; }
.foot-coevo { background: #242424; color: rgba(255, 255, 255, 0.55); border-top: 1px solid rgba(255, 255, 255, 0.08); text-align: left; }
.foot-body { padding: var(--space-50) 0 var(--space-30); }
.body-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-30); flex-wrap: wrap; }
.foot-brand { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-20); width: 100%; }
.foot-brand .foot-logo { display: block; height: 32px; width: auto; }
.foot-util { display: flex; align-items: center; justify-content: space-between; gap: var(--space-24) var(--space-40); width: 100%; flex-wrap: wrap; }
.foot-hotline { display: flex; flex-direction: row; align-items: center; flex-wrap: wrap; gap: var(--space-24) var(--space-40); margin-left: 0; }
.foot-hotline .item { display: flex; align-items: baseline; gap: var(--space-10); }
.foot-hotline .label { font-size: 18px; color: rgba(255, 255, 255, 0.45); white-space: nowrap; }
.foot-hotline .tel { font-size: clamp(24px, 2vw, 34px); font-weight: 700; color: var(--color-primary); text-decoration: none; transition: color 0.15s ease; }
.foot-hotline .tel:hover { color: color-mix(in srgb, var(--color-primary) 72%, #000); }
.foot-policy { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-10) var(--space-20); list-style: none; margin: 0 0 0 auto; padding: 0; }
.foot-policy a { font-size: 16px; line-height: 1.8; color: rgba(255, 255, 255, 0.55); text-decoration: none; white-space: nowrap; transition: color 0.15s ease; }
.foot-policy a:hover { color: #fff; }
.foot-policy a.is-unlinked { opacity: 1; cursor: default; }
.foot-sns { display: flex; align-items: center; gap: var(--space-10); list-style: none; margin: 0; padding: 0; flex-shrink: 0; }
.foot-sns a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--btn-radius); background: var(--color-foot-sns); border: 0; transition: background 0.18s ease; }
.foot-sns a:hover { background: var(--color-primary); }
.foot-sns a.is-unlinked { opacity: 1; cursor: default; }
.foot-sns svg { display: block; width: 16px; height: 16px; fill: #cccccc; transition: fill 0.18s ease; }
.foot-sns a:hover svg { fill: #fff; }
.foot-bottom { padding: var(--space-20) 0 var(--space-30); border-top: 0; }
.btm-inner { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-8); }
.btm-row { display: flex; align-items: center; justify-content: flex-start; gap: var(--space-20); width: 100%; }
.btm-row .copyright { margin: 0; flex: 0 1 auto; min-width: 0; text-align: left; }
.btm-row .foot-sns { margin-left: auto; }
.foot-bottom .addr,
.foot-bottom .copyright { font-size: 16px; font-weight: 400; line-height: 1.8; color: rgba(255, 255, 255, 0.25); }
.foot-bottom .design-credit { color: inherit; font-size: inherit; text-decoration: none; }
.foot-bottom .design-credit:hover { text-decoration: underline; color: rgba(255, 255, 255, 0.5); }

/* ===== 사이드 액션 → 하단 우측 스택 (눈에 잘 띄는 구조) ===== */
.side-actions { position: fixed; bottom: 24px; z-index: 90; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.sa-btn { display: flex; flex-direction: row-reverse; align-items: center; justify-content: center; gap: 0; width: 56px; height: 56px; min-width: 56px; padding: 0; border-radius: var(--btn-radius); background: rgba(11, 18, 32, 0.95); border: 1px solid rgba(255, 255, 255, 0.35); color: #fff; text-decoration: none; cursor: pointer; overflow: hidden; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45); transition: width 0.22s ease, padding 0.22s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease; }
.sa-btn .icon-slot { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex-shrink: 0; background: transparent; border: 0; border-radius: 0; }
.sa-btn .icon-slot svg { display: block; width: 100%; height: 100%; fill: currentColor; }
.sa-btn .sa-text { display: block; opacity: 0; max-width: 0; overflow: hidden; white-space: nowrap; font-size: var(--font-size-13); font-weight: 600; line-height: 1; transition: opacity 0.22s ease, max-width 0.22s ease; }
.sa-btn:hover,
.sa-btn:focus-visible { width: auto; min-width: 56px; padding: 0 var(--space-15) 0 var(--space-20); justify-content: flex-start; gap: var(--space-10); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); }
.sa-btn:hover .sa-text,
.sa-btn:focus-visible .sa-text { opacity: 1; max-width: 120px; }
.sa-btn.store { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.sa-btn:hover { background: rgba(11, 18, 32, 1); border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.sa-btn.store:hover { background: #8a002c; border-color: #8a002c; }
.sa-btn.chat:hover { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.sa-btn.store .icon-slot { border: 0; background: transparent; }
.sa-btn.top { opacity: 0; visibility: hidden; transition: opacity 0.2s ease, visibility 0.2s; }
.sa-btn.top.is-show { opacity: 1; visibility: visible; }

/* 메인 index 플로팅 — 서브 공통 */
#sideActions .sa-btn { min-width: 62px; min-height: 62px; width: 62px; height: 62px; box-shadow: 0 6px 22px rgba(0, 0, 0, 0.2); border: 1px solid rgba(255, 255, 255, 0.25); }
#sideActions .sa-btn:hover,
#sideActions .sa-btn:focus-visible { width: auto; min-width: 62px; padding: 0 var(--space-15) 0 var(--space-20); justify-content: flex-start; gap: var(--space-10); }
#sideActions .sa-btn:hover .sa-text,
#sideActions .sa-btn:focus-visible .sa-text { opacity: 1; max-width: 120px; }
#sideActions .contact { background: #d41464; border-color: #d41464; color: #fff; }
#sideActions .contact:hover { background: #b81258; border-color: #b81258; color: #fff; }
#sideActions .store { background: #03a94d; border-color: #03a94d; color: #fff; }
#sideActions .store:hover { background: #028a40; border-color: #028a40; color: #fff; }
#sideActions .chat { background: #31344b; border-color: #31344b; color: #fff; }
#sideActions .chat:hover { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
#sideActions .icon-slot { width: 30px; height: 30px; }
#sideActions .main-quick-icon,
#sideActions .main-quick-icon * { fill: none !important; stroke: currentColor !important; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#sideActions .main-quick-icon { width: 30px; height: 30px; }

/* 챗 도크 — 세로형 패널 (플로팅 버튼 위) */
.chat-dock { --side-stack-h: calc(62px * 4 + 6px * 3); --float-gap: 12px; position: fixed; right: 24px; bottom: calc(24px + var(--side-stack-h) + var(--float-gap)); z-index: 91; display: flex; flex-direction: column; width: 300px; max-width: calc(100vw - 48px); height: min(520px, calc(100vh - 140px - var(--side-stack-h))); background: var(--color-canvas); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--btn-radius); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4); overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s; }
.chat-dock.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.dock-head { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; padding: var(--space-20) var(--space-25); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.dock-title { font-family: var(--font-en); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.8); }
.dock-close { background: none; border: 0; color: rgba(255, 255, 255, 0.4); font-size: 16px; cursor: pointer; line-height: 1; border-radius: var(--btn-radius); transition: color 0.15s ease; }
.dock-close:hover { color: #fff; }
.dock-body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: var(--space-15); padding: var(--space-20) var(--space-25); overflow-y: auto; }
.dock-body .msg { padding: var(--space-15) var(--space-20); background: rgba(255, 255, 255, 0.05); border-radius: var(--btn-radius); font-size: 13px; line-height: 1.6; color: rgba(255, 255, 255, 0.75); }
.dock-body .msg.is-reply { align-self: flex-start; max-width: 92%; background: rgba(165, 0, 52, 0.12); border-left: 2px solid var(--color-primary); }
.dock-foot { flex-shrink: 0; display: flex; align-items: center; gap: var(--space-10); padding: var(--space-15) var(--space-20); border-top: 1px solid rgba(255, 255, 255, 0.08); }
.dock-input { flex: 1; min-width: 0; height: 40px; padding: 0 var(--space-15); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--btn-radius); background: rgba(255, 255, 255, 0.05); color: #fff; font-size: 13px; }
.dock-input::placeholder { color: rgba(255, 255, 255, 0.35); }
.dock-input:disabled { opacity: 0.75; cursor: not-allowed; }
.dock-send { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: var(--btn-radius); background: var(--color-primary); color: #fff; font-size: 18px; line-height: 1; cursor: not-allowed; opacity: 0.55; }
.btn-line { display: inline-flex; align-items: center; justify-content: center; min-width: 180px; height: 48px; padding: 0 var(--space-24); border: 1px solid rgba(255, 255, 255, 0.45); border-radius: var(--btn-radius); color: #fff; font-size: var(--font-size-15); font-weight: 600; text-decoration: none; transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease; }
.btn-line:hover { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.btn-line.is-unlinked { cursor: default; }
.btn-primary { display: inline-flex; align-items: center; justify-content: center; min-width: 180px; height: 48px; padding: 0 var(--space-24); border: 0; border-radius: var(--btn-radius); background: var(--color-primary); color: #fff; font-size: var(--font-size-15); font-weight: 600; text-decoration: none; cursor: pointer; transition: background 0.2s ease; }
.btn-primary:hover { background: #8a002c; color: #fff; }
.btn-pack { border-radius: var(--btn-radius); }
.contact-page .btn-text { border: 0; background: transparent; color: var(--color-primary); font-size: var(--font-size-14); text-decoration: underline; cursor: pointer; }

/* layout.css 기본 밝은 헤더 덮어쓰기 */
#header { position: fixed; top: 0; left: 0; right: 0; }
body.page-main #container,
body.page-sub #container,
body.page-story #container { padding-top: 0; }
