/* =========================================================
   진성로지스틱스 — global styles (Figma 시안 기준 토큰)
   ========================================================= */
:root {
  --primary: #1e59b7;
  --primary-light: #7fb0ff;
  --accent: #3e86f5;
  --navy: #0e1b2f;
  --navy-header: #0b1524;
  --navy-footer: #0a1423;
  --ink: #0e1b2f;
  --body: #5a6a80;
  --body-2: #35455c;
  --body-3: #4e5d72;
  --muted: #6b7a8e;
  --muted-2: #8a97a8;
  --placeholder: #9eaaba;
  --bg-soft: #f5f8fc;
  --bg-card: #f8fafe;
  --bg-thumb: #f2f6fc;
  --bg-chip: #eef3fb;
  --line: #e6edf8;
  --line-2: #e0e9f5;
  --line-3: #e2eaf6;
  --line-4: #dde6f3;
  --line-5: #d3ddec;
  --gold: #bf7e1e;
  --red: #d14343;
  --kakao: #fee500;
  --font-kr: "Pretendard Variable", "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-en: "Pretendard Variable", "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --shadow-card: 0 18px 44px rgba(14, 27, 47, 0.06);
  --shadow-btn: 0 10px 26px rgba(30, 89, 183, 0.35);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 90px; } /* 고정 헤더에 가려지지 않도록 */
body {
  font-family: var(--font-kr);
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  word-break: keep-all;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
input, textarea, select { font-family: inherit; }
.en { font-family: var(--font-en); }

.container {
  width: 100%;
  margin: 0 auto;
  padding-inline: max(24px, calc((100% - 1600px) / 2));
}

/* ---------- section head 공통 ---------- */
.sec-eyebrow {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 2.16px;
  color: var(--primary);
  text-transform: uppercase;
}
.sec-title {
  font-weight: 800;
  font-size: clamp(28px, 3.2vw, 44px);
  letter-spacing: -0.03em;
  color: var(--ink);
}
.sec-sub { color: var(--body); font-size: 17px; letter-spacing: -0.01em; }
.title-row { display: flex; align-items: center; gap: 40px; }
.title-row .rule { flex: 1; height: 1px; background: var(--line-4); }
.title-link {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--primary); font-weight: 700; font-size: 15px; white-space: nowrap;
  transition: gap 0.25s var(--ease);
}
.title-link:hover { gap: 14px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 8px; font-weight: 700; letter-spacing: -0.01em;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, border-color 0.25s, color 0.25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-btn); }
.btn-primary:hover { background: #1a4ea3; box-shadow: 0 14px 32px rgba(30, 89, 183, 0.45); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: #16263f; }
.btn-ghost-light {
  background: rgba(255, 255, 255, 0.08); color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.16); }
.btn-outline {
  background: #fff; color: var(--body-3); border: 1px solid var(--line-5);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-outline-navy { background: #fff; color: var(--navy); border: 1.2px solid var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: #fff; }

/* ---------- reveal 애니메이션 ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }

/* ---------- form 요소 ---------- */
.field { display: flex; flex-direction: column; gap: 10px; }
.field label { font-weight: 700; font-size: 13.5px; color: var(--body-2); letter-spacing: -0.01em; }
.field label .req { color: var(--red); margin-left: 2px; }
.field label .opt { color: var(--muted-2); font-weight: 500; font-size: 12px; margin-left: 4px; }
.input, .textarea {
  width: 100%; background: #fff; border: 1px solid var(--line-2);
  border-radius: 8px; padding: 0 18px; height: 54px;
  font-size: 14.5px; color: var(--ink); outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.textarea { padding: 16px 18px; height: 110px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--placeholder); }
.input:focus, .textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(30, 89, 183, 0.12); }

.chip-btn {
  padding: 12px 18px; border-radius: 8px; font-weight: 700; font-size: 13.5px;
  background: #fff; border: 1px solid var(--line-2); color: var(--body-3);
  transition: all 0.2s var(--ease);
}
.chip-btn:hover { border-color: var(--primary); color: var(--primary); }
.chip-btn.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip-btn.is-navy { background: var(--navy); border-color: var(--navy); color: #fff; }

.agree-row { display: flex; align-items: center; gap: 12px; }
.agree-check {
  width: 22px; height: 22px; border-radius: 7px; flex: none;
  background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-family: var(--font-en); font-weight: 700;
  border: 1px solid var(--navy); transition: all 0.15s;
}
.agree-check.off { background: #fff; color: transparent; border-color: var(--line-5); }
.agree-row .txt { flex: 1; font-size: 14px; color: var(--body-3); }
.agree-row .view {
  background: #ebf1fa; border-radius: 8px; padding: 6px 12px; font-size: 12px; color: var(--muted);
  border: 0; font-family: inherit; cursor: pointer; transition: background 0.2s, color 0.2s;
}
.agree-row .view:hover { background: var(--navy, #1e59b7); color: #fff; }

/* ---------- 개인정보처리방침 ---------- */
.policy-inner { max-width: 880px; margin: 0 auto; }
.policy-intro {
  font-size: 15.5px; line-height: 1.9; color: var(--body-3);
  padding: 22px 24px; background: #f5f8fc; border-radius: 12px; margin: 0 0 32px;
}
.policy-toc {
  margin: 0 0 44px; padding: 22px 26px 22px 44px; border: 1px solid var(--line-5);
  border-radius: 12px; counter-reset: toc;
  columns: 2; column-gap: 32px;
}
.policy-toc li { margin-bottom: 9px; font-size: 14.5px; break-inside: avoid; }
.policy-toc a { color: var(--body-3); text-decoration: none; }
.policy-toc a:hover { color: var(--navy); text-decoration: underline; }

.policy-body h2 {
  font-size: 19px; font-weight: 800; color: var(--ink); letter-spacing: -0.01em;
  margin: 44px 0 14px; padding-top: 26px; border-top: 1px solid var(--line-5);
  scroll-margin-top: 120px;
}
.policy-body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.policy-body p { font-size: 15px; line-height: 1.9; color: var(--body-3); margin: 0 0 14px; }
.policy-body ul { margin: 0 0 14px; padding-left: 20px; }
.policy-body li { font-size: 15px; line-height: 1.9; color: var(--body-3); margin-bottom: 6px; }
.policy-body b { font-weight: 700; color: var(--ink); }
.policy-body a { color: var(--navy); }

.policy-tbl { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 14.5px; }
.policy-tbl th, .policy-tbl td {
  text-align: left; padding: 12px 16px; border: 1px solid var(--line-5); line-height: 1.75;
}
.policy-tbl th {
  width: 34%; background: #f5f8fc; font-weight: 700; color: var(--ink); vertical-align: top;
}
.policy-tbl td { color: var(--body-3); }

.policy-note {
  font-size: 13.5px !important; color: var(--muted) !important;
  background: #f5f8fc; border-radius: 10px; padding: 14px 18px; line-height: 1.85 !important;
}
.policy-date {
  margin-top: 36px !important; padding-top: 20px; border-top: 1px solid var(--line-5);
  font-size: 14px !important; color: var(--muted) !important; font-weight: 600;
}
.policy-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 44px; }
.policy-cta .btn { padding: 16px 28px; }

@media (max-width: 720px) {
  .policy-toc { columns: 1; padding: 18px 20px 18px 38px; }
  .policy-tbl th { width: 40%; }
  .policy-tbl th, .policy-tbl td { padding: 10px 12px; font-size: 13.5px; }
}

/* ---------- 약관 모달 ---------- */
#termsModal { z-index: 210; }          /* 견적 모달(200) 위에 표시 */
.terms-card { width: 680px; padding-bottom: 32px; }
.terms-body {
  margin: 22px 0 26px; max-height: 52vh; overflow-y: auto;
  padding-right: 6px; font-size: 14px; line-height: 1.75; color: var(--body-3);
}
.terms-body section { padding: 16px 0; border-top: 1px solid var(--line-5, #e6edf8); }
.terms-body section:first-child { border-top: 0; padding-top: 0; }
.terms-body h4 {
  font-size: 14px; font-weight: 800; color: var(--ink); margin: 0 0 8px;
}
.terms-body p { margin: 0; }
.terms-body ul { margin: 0; padding-left: 18px; }
.terms-body li { margin-bottom: 4px; }
.terms-body li:last-child { margin-bottom: 0; }
.terms-body b { font-weight: 700; color: var(--ink); }
.terms-contact { font-size: 13px; color: var(--muted); }
.terms-contact a { color: inherit; text-decoration: underline; }
.terms-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.terms-foot .btn { margin-left: auto; }
.terms-more { font-size: 13.5px; font-weight: 600; color: var(--navy); text-decoration: none; }
.terms-more:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .terms-body { max-height: 46vh; font-size: 13.5px; }
}

/* ---------- 모달 ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(11, 21, 38, 0.55); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  animation: fadeIn 0.25s var(--ease);
}
.modal-card {
  background: #fff; border-radius: 16px; width: 620px; max-width: 100%;
  max-height: calc(100vh - 60px); overflow: auto;
  padding: 44px 48px; position: relative;
  animation: popIn 0.3s var(--ease);
}
@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: translateY(16px) scale(0.97); } }
.modal-close {
  position: absolute; top: 24px; right: 26px; font-size: 20px; color: var(--muted);
  transition: color 0.2s, transform 0.2s;
}
.modal-close:hover { color: var(--ink); transform: rotate(90deg); }

/* ---------- 토스트 ---------- */
.toast-stack { position: fixed; right: 24px; bottom: 24px; z-index: 300; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--navy); color: #fff; border-radius: 10px; padding: 14px 20px;
  font-size: 14px; font-weight: 500; box-shadow: 0 12px 30px rgba(14, 27, 47, 0.3);
  display: flex; align-items: center; gap: 10px;
  animation: toastIn 0.3s var(--ease);
}
.toast i { color: var(--primary-light); }
@keyframes toastIn { from { opacity: 0; transform: translateX(24px); } }
.toast.is-leaving { opacity: 0; transform: translateY(8px); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }

/* ---------- 반응형 ---------- */
@media (max-width: 1024px) {
  .title-row { gap: 20px; flex-wrap: wrap; }
}
@media (max-width: 768px) {
  .sec-sub { font-size: 15px; }
  .modal-card { padding: 32px 24px; }
}

/* ---------- 디자인 모드 저장값 (inc/blocks.php) ---------- */
.cms-hidden { display: none !important; }
/* 편집기의 "대표 색상 강조" — 문구 일부를 그라데이션으로 */
.grad {
  background: linear-gradient(90deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
