/* ============================================================
   인동티에스 고객 사이트 V4 — 디자인 시스템 SSOT
   톤: 화이트 · 다크 · 레드 (OEM 포털)
   폰트: Pretendard(본문) + Space Mono(숫자/코드/전화/날짜)
   기본 radius 0(각진). 모든 고객 페이지가 이 파일을 공유한다.
   분기점: 모바일 < 900px
   ============================================================ */

:root {
  --red: #e4202a;
  --red-d: #c41822;
  --ink: #1a1a1a;
  --ink-d: #000000;
  --util: #111315;
  --bg: #f5f5f3;
  --surface: #ffffff;
  --border: #e6e6e3;
  --border-in: #d8d8d5;
  --divider: #efefec;
  --body: #44484c;
  --muted: #6b6b6b;
  --muted2: #8a8a8a;
  --muted3: #9a9a9a;
  --disabled: #b0b0b0;
  --placeholder: #c2c2bd;
  --ok: #1f9d57;   --ok-bg: #e9f7ee;   --ok-bd: #c7e9d4;
  --warn: #e0820a; --warn-bg: #fdf0db; --warn-bd: #f0d9a8;
  --info: #2a6fdb; --info-bg: #f6f8fc; --info-bd: #dfe7f5;
  --err: #c41822;  --err-bg: #fdecec;  --err-bd: #f5c6c9;
  --maxw: 1320px;
  --mono: 'Space Mono', ui-monospace, monospace;
}

/* ── reset / base ── */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--surface);
  color: var(--ink);
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  font-size: 15px;
  /* 폰트 로딩(FOUT) 시 폴백↔Pretendard x-height를 맞춰 페이지 이동 때 글자 크기 점프 방지 */
  font-size-adjust: 0.52;
  overflow-x: hidden;
  word-break: keep-all;
  overflow-wrap: break-word;
  text-wrap: pretty;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
::selection { background: var(--red); color: #fff; }
.cv-mono { font-family: var(--mono); }
@keyframes cvScrollBob { 0%,100%{transform:translateY(0);opacity:.35} 50%{transform:translateY(7px);opacity:1} }
@keyframes cvPopIn { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }
/* 중앙정렬(translateX(-50%))을 유지하는 팝인 — 가로 점프 방지 (.cv-navdrop-menu 전용) */
@keyframes cvNavDropIn { from{opacity:0;transform:translate(-50%,8px)} to{opacity:1;transform:translate(-50%,0)} }
.cv-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; }

/* ── layout helpers ── */
.cv-container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.cv-section { padding: clamp(60px, 8vw, 104px) 0; }
.cv-eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.cv-eyebrow .bar { width: 22px; height: 3px; background: var(--red); flex: none; }
.cv-eyebrow .label { font-size: 13px; font-weight: 700; letter-spacing: 1px; color: var(--red); }
.cv-h2 { font-weight: 800; font-size: clamp(26px, 3.6vw, 42px); line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); }
.cv-lead { color: var(--muted); font-size: 16px; line-height: 1.7; }

/* ── buttons ── */
.cv-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 15px; padding: 12px 24px;
  border: 1px solid transparent; cursor: pointer; text-align: center;
  transition: background .15s, border-color .15s, color .15s;
}
.cv-btn-red { background: var(--red); color: #fff; }
.cv-btn-red:hover { background: var(--red-d); }
.cv-btn-dark { background: var(--ink); color: #fff; }
.cv-btn-dark:hover { background: var(--ink-d); }
.cv-btn-light { background: rgba(255,255,255,.96); color: var(--ink); }
.cv-btn-light:hover { background: #fff; }
.cv-btn-outline { background: transparent; color: var(--ink); border-color: var(--border-in); }
.cv-btn-outline:hover { border-color: var(--ink); }
.cv-btn-block { display: flex; width: 100%; }
.cv-btn:disabled { opacity: .5; cursor: not-allowed; }

/* ── cards ── */
.cv-card { background: var(--surface); border: 1px solid var(--border); }
.cv-card-hover { transition: border-color .15s, box-shadow .15s; }
.cv-card-hover:hover { border-color: var(--ink); box-shadow: 0 12px 30px rgba(0,0,0,.08); }

/* ── form ── */
.cv-field { display: flex; flex-direction: column; gap: 8px; }
.cv-label { font-size: 13px; font-weight: 700; color: var(--ink); }
.cv-label .req { color: var(--red); margin-left: 3px; }
.cv-input, .cv-select, .cv-textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--border-in);
  background: #fff; font-size: 15px; font-family: inherit; color: var(--ink);
  outline: none; border-radius: 0; transition: border-color .15s;
}
.cv-input:focus, .cv-select:focus, .cv-textarea:focus { border-color: var(--ink); }
.cv-input::placeholder, .cv-textarea::placeholder { color: var(--placeholder); }
.cv-input:disabled, .cv-select:disabled { background: #f7f7f5; color: var(--disabled); }
.cv-textarea { resize: vertical; min-height: 96px; line-height: 1.6; }
.cv-select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8a8a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; background-size: 18px;
  padding-right: 40px;
}
.cv-check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 14px; color: var(--body); }
.cv-check input { width: 18px; height: 18px; accent-color: var(--red); flex: none; margin-top: 1px; }

/* ── alerts ── */
.cv-alert { padding: 13px 16px; font-size: 14px; border: 1px solid; display: flex; gap: 10px; align-items: flex-start; line-height: 1.55; }
.cv-alert-err  { background: var(--err-bg);  border-color: var(--err-bd);  color: var(--err); }
.cv-alert-ok   { background: var(--ok-bg);   border-color: var(--ok-bd);   color: var(--ok); }
.cv-alert-info { background: var(--info-bg); border-color: var(--info-bd); color: var(--info); }
.cv-alert-warn { background: var(--warn-bg); border-color: var(--warn-bd); color: var(--warn); }

/* ── badges / pills ── */
.cv-badge-red { display: inline-block; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 11px; }
.cv-badge-dark { display: inline-block; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 11px; }
.cv-pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border: 1px solid var(--border-in); background: #fff; font-size: 14px; font-weight: 600; color: var(--ink); border-radius: 999px; cursor: pointer; transition: all .15s; }
.cv-pill.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ════════════════════════════════════════════
   공통 크롬 — 모든 고객 페이지 공유 (public_base.html)
   ════════════════════════════════════════════ */

/* 상단 유틸리티 바 (데스크톱 전용) */
.cv-util { background: var(--util); color: #cfd2d5; }
.cv-util-inner { max-width: var(--maxw); margin: 0 auto; height: 38px; padding: 0 24px; display: flex; align-items: center; justify-content: flex-end; gap: 22px; font-size: 12.5px; }
.cv-util a { color: #cfd2d5; transition: color .15s; }
.cv-util a:hover { color: #fff; }
.cv-util .sep { width: 1px; height: 11px; background: rgba(255,255,255,.2); }
.cv-util .phone { color: #fff; font-weight: 600; font-family: var(--mono); }

/* 언어 토글 (KO/EN) — 데스크톱 유틸바(다크 배경) */
.cv-lang { display: inline-flex; align-items: center; gap: 1px; }
.cv-lang a { color: #9a9da1; font-weight: 700; font-size: 11.5px; letter-spacing: .4px; padding: 2px 6px; border-radius: 2px; }
.cv-lang a:hover { color: #fff; }
.cv-lang a.on { color: #fff; background: rgba(255,255,255,.16); }
/* 언어 토글 — 모바일 드로어 행(라이트 배경) */
.cv-dropdown .cv-lang-row { display: flex; gap: 8px; padding: 12px 24px; border-bottom: 1px solid #f0f0ee; }
.cv-dropdown .cv-lang-row a { display: inline-flex; align-items: center; justify-content: center; flex: 1; padding: 9px 0; font-size: 13.5px; font-weight: 700; color: var(--muted); border: 1px solid var(--border); border-radius: 3px; }
.cv-dropdown .cv-lang-row a:hover { color: var(--ink); background: #fafaf8; }
.cv-dropdown .cv-lang-row a.on { color: #fff; background: var(--ink); border-color: var(--ink); }

/* 메인 네비 (sticky 70px) */
.cv-header { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.cv-header-inner { max-width: var(--maxw); margin: 0 auto; height: 70px; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.cv-logo { display: flex; align-items: center; gap: 11px; }
.cv-logo img { width: 30px; height: 30px; filter: invert(.08); }
.cv-logo .t1 { display: block; font-size: 19px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); line-height: 1.05; }
.cv-logo .t2 { display: block; font-size: 11px; letter-spacing: .2px; color: var(--muted2); line-height: 1.15; }
.cv-nav { display: flex; align-items: center; gap: 2px; height: 100%; flex-wrap: nowrap; white-space: nowrap; }
.cv-nav a { position: relative; padding: 8px 10px; font-size: 14px; font-weight: 600; color: var(--ink); border-bottom: 2px solid transparent; white-space: nowrap; transition: color .15s, border-color .15s; }
.cv-nav a:hover { border-bottom-color: var(--red); color: var(--red); }
.cv-nav a.active { border-bottom-color: var(--red); color: var(--red); }
.cv-nav-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 17px; height: 17px; padding: 0 5px; margin-left: 4px; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; line-height: 1; border-radius: 9px; font-family: var(--mono); vertical-align: top; }
.cv-nav-cta { display: inline-flex; align-items: center; gap: 7px; padding: 12px 20px; background: var(--red); color: #fff; font-weight: 700; font-size: 15px; border: none; cursor: pointer; font-family: inherit; white-space: nowrap; transition: background .15s; }
.cv-nav-cta:hover { background: var(--red-d); }
/* 예약 드롭다운 (데스크톱 CTA + 모바일 하단바 공용) */
.cv-reserve { position: relative; }
.cv-reserve-menu { display: none; position: absolute; top: calc(100% + 4px); right: 0; z-index: 70; min-width: 160px; background: #fff; border: 1px solid var(--border); box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.cv-reserve.open .cv-reserve-menu { display: block; }
.cv-reserve-menu a { display: block; padding: 13px 18px; font-size: 14.5px; font-weight: 700; color: var(--ink); border-bottom: 1px solid #f0f0ee; white-space: nowrap; transition: background .15s, color .15s; }
.cv-reserve-menu a:last-child { border-bottom: none; }
.cv-reserve-menu a:hover { background: #fafaf8; color: var(--red); }
.cv-reserve-menu.up { top: auto; bottom: calc(100% + 6px); right: auto; left: 50%; transform: translateX(-50%); box-shadow: 0 -4px 20px rgba(0,0,0,.15); }
/* 모바일 하단바 예약 버튼 (드롭다운 트리거) */
.cv-botbar .cv-reserve { display: flex; }
.cv-botbar .cv-reserve > .cta { flex: 1; padding: 10px 0 calc(11px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: #fff; background: var(--red); font-weight: 700; border: none; cursor: pointer; font-family: inherit; }
/* 모바일 헤더 액션 (전화 + 햄버거) */
.cv-mhead { display: none; align-items: center; gap: 8px; }
.cv-mhead .icon-btn { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border: 1px solid #dcdcd9; color: var(--ink); background: #fff; }
.cv-mhead .burger { width: 42px; height: 42px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; background: var(--ink); border: none; cursor: pointer; }
.cv-mhead .burger span { width: 18px; height: 2px; background: #fff; display: block; }

/* 모바일 네비 드롭다운 (헤더 아래로 펼쳐짐) */
.cv-navoverlay { position: fixed; inset: 0; z-index: 79; }
.cv-dropdown { position: fixed; top: 70px; left: 0; right: 0; z-index: 80; max-height: calc(100vh - 70px); max-height: calc(100dvh - 70px); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; background: #fff; border-bottom: 2px solid var(--red); box-shadow: 0 8px 24px rgba(0,0,0,.12); flex-direction: column; }
.cv-dropdown a { display: block; padding: 14px 24px; font-size: 15px; font-weight: 700; color: var(--ink); border-bottom: 1px solid #f0f0ee; transition: background .15s, color .15s; }
.cv-dropdown a:hover { background: #fafaf8; color: var(--red); }
.cv-dropdown a.active { color: var(--red); }
.cv-dropdown a.guest-only { color: var(--muted); font-weight: 600; }
.cv-dropdown a.cta { background: var(--red); color: #fff; font-weight: 800; text-align: center; border-bottom: none; }
.cv-dropdown a.cta:hover { background: var(--red-d); }
.cv-dropdown a.sub { font-size: 13.5px; font-weight: 600; color: var(--muted); }

/* 네비 드롭다운 (벤츠 트럭 모델 — 데스크톱 hover 펼침) */
.cv-navdrop { position: relative; display: inline-flex; align-items: center; height: 100%; }
.cv-navdrop > a { display: inline-flex; align-items: center; gap: 4px; }
.cv-navdrop-menu { display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); z-index: 70; min-width: 232px; background: #fff; border: 1px solid var(--border); border-top: 2px solid var(--red); box-shadow: 0 12px 32px rgba(0,0,0,.12); padding: 8px 0; }
.cv-navdrop:hover .cv-navdrop-menu, .cv-navdrop:focus-within .cv-navdrop-menu { display: block; animation: cvNavDropIn .12s ease; }
.cv-navdrop-menu a { display: flex; align-items: center; gap: 11px; padding: 11px 18px; font-size: 14px; font-weight: 600; color: var(--ink); border-bottom: none; white-space: nowrap; }
.cv-navdrop-menu a:hover { background: #fafaf8; color: var(--red); border-bottom: none; }
.cv-navdrop-menu a svg { width: 17px; height: 17px; color: var(--red); flex: none; }
.cv-navdrop-menu a strong { display: block; font-weight: 700; }
.cv-navdrop-menu a .sub { display: block; font-size: 12px; color: var(--muted2); font-weight: 600; }
.cv-navdrop-menu a:hover .sub { color: var(--red); }
.cv-navdrop-sep { height: 1px; background: #f0f0ee; margin: 4px 0; }

/* 페이지 헤더(hero) — 내부 페이지 공통 다크 밴드 */
.cv-pagehero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.cv-pagehero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .18; }
.cv-pagehero-inner { position: relative; max-width: var(--maxw); margin: 0 auto; padding: clamp(40px, 6vw, 76px) 24px; z-index: 1; }
.cv-breadcrumb { font-size: 13px; color: rgba(255,255,255,.55); margin-bottom: 16px; }
.cv-breadcrumb a:hover { color: #fff; }
.cv-pagehero .eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.cv-pagehero .eyebrow .bar { width: 24px; height: 3px; background: var(--red); }
.cv-pagehero .eyebrow .label { font-size: 13px; font-weight: 700; letter-spacing: 1px; color: #fff; }
.cv-pagehero h1 { font-weight: 800; font-size: clamp(26px, 4.2vw, 46px); line-height: 1.08; letter-spacing: -0.025em; }
.cv-pagehero p { font-size: clamp(14px, 1.7vw, 17px); color: #dcdcdc; margin-top: 16px; max-width: 620px; line-height: 1.6; }

/* 푸터 */
.cv-footer { background: var(--ink); color: #cfd2d5; }
.cv-footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 56px 24px 40px; }
.cv-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 0 28px; }
.cv-footer .brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.cv-footer .brand img { width: 26px; height: 26px; filter: invert(1); }
.cv-footer .brand span { font-size: 17px; font-weight: 800; color: #fff; }
.cv-footer .desc { font-size: 13px; color: var(--muted3); line-height: 1.7; }
.cv-footer h4 { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 14px; }
.cv-footer .col { display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; }
.cv-footer .col a { color: #b6b9bd; transition: color .15s; }
.cv-footer .col a:hover { color: #fff; }
.cv-footer-legal { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 24px; font-size: 12.5px; color: #85888c; line-height: 1.9; }
.cv-footer-legal .links { margin-top: 8px; display: flex; gap: 16px; }
.cv-footer-legal .links a { color: #9a9da1; transition: color .15s; }
.cv-footer-legal .links a:hover { color: #fff; }
.cv-footer-legal .copy { margin-top: 10px; color: #6b6e72; font-size: 12px; }

/* 모바일 하단 고정 바 (기본 5종) */
.cv-botbar { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 55; background: rgba(255,255,255,.97); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--border); grid-template-columns: repeat(5, 1fr); }
.cv-botbar a { padding: 10px 0 calc(11px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: var(--body); }
.cv-botbar a.cta { color: #fff; background: var(--red); font-weight: 700; }

/* 맨 위로 버튼 */
.cv-totop { position: fixed; right: 20px; bottom: 28px; z-index: 54; width: 48px; height: 48px; background: var(--ink); color: #fff; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.18); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s, background .15s; }
.cv-totop.show { opacity: 1; visibility: visible; }
.cv-totop:hover { background: var(--red); }

/* ── 반응형 ── */
@media (max-width: 899px) {
  .cv-util { display: none; }
  .cv-nav, .cv-nav-reserve { display: none; }
  .cv-mhead { display: flex; }
  .cv-botbar { display: grid; }
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px)); }
  .cv-totop { bottom: 74px; }
  .cv-footer-grid { grid-template-columns: 1fr; gap: 0; }
  .cv-footer-grid > div:not(.cv-footer-about) { display: none; }
  .cv-footer-about .brand img { width: 24px; height: 24px; }
  .cv-footer-about .brand span { font-size: 16px; }
  .cv-footer-about .desc { font-size: 12.5px; padding-left: 34px; }
}
@media (min-width: 900px) {
  .cv-dropdown, .cv-navoverlay { display: none !important; }
}

/* ── 유틸 ── */
.cv-hide-m { }
.cv-show-m { display: none; }
@media (max-width: 899px) {
  .cv-hide-m { display: none !important; }
  .cv-show-m { display: revert; }
}

/* 인쇄 */
@media print {
  .cv-util, .cv-header, .cv-botbar, .cv-totop, .cv-dropdown, .cv-navoverlay { display: none !important; }
  body { padding-bottom: 0 !important; }
}
