/* =========================================================
   하나퀵캐시 (HanaQuickCash) — Stylesheet
   모든 색상/타이포/레이아웃은 이 파일에서 관리합니다.
========================================================= */

@font-face { font-family: "SCDream"; src: url("fonts/SCDream4.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "SCDream"; src: url("fonts/SCDream5.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "SCDream"; src: url("fonts/SCDream6.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "SCDream"; src: url("fonts/SCDream7.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "SCDream"; src: url("fonts/SCDream8.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "SCDream"; src: url("fonts/SCDream9.woff2") format("woff2"); font-weight: 900; font-display: swap; }

:root {
  /* 브랜드 컬러 */
  --teal-700: #0b6a5f;
  --teal-600: #0e8074;
  --teal-500: #14a38f;
  --teal-100: #e2f5f1;
  --coral-600: #e85a38;
  --coral-500: #f97350;
  --coral-100: #fee9e2;

  /* 텍스트 */
  --ink-900: #12203a;
  --ink-700: #37425a;
  --ink-500: #69728a;
  --ink-400: #99a1b5;
  --white: #ffffff;

  /* 표면 */
  --bg-page: #ffffff;
  --bg-alt: #f4f8f8;
  --line: #e3e9ec;
  --footer-dark: #10202a;

  /* 그림자 */
  --shadow-sm: 0 2px 10px rgba(18, 32, 58, 0.06);
  --shadow-md: 0 14px 34px rgba(18, 32, 58, 0.10);
  --shadow-coral: 0 10px 22px rgba(249, 115, 80, 0.32);
  --shadow-teal: 0 10px 22px rgba(14, 128, 116, 0.28);

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --wrap: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "SCDream", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--ink-900);
  background: var(--bg-page);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
input, select { font-family: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { display: inline-block; vertical-align: middle; flex-shrink: 0; }

/* -------------------- 버튼 -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 14px 26px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: linear-gradient(135deg, var(--teal-500), var(--teal-600) 65%, var(--teal-700)); color: var(--white); box-shadow: var(--shadow-teal); }
.btn-primary:hover { box-shadow: 0 16px 30px rgba(14, 128, 116, 0.38); transform: translateY(-1px); }

.btn-coral { background: linear-gradient(135deg, var(--coral-500), var(--coral-600)); color: var(--white); box-shadow: var(--shadow-coral); }
.btn-coral:hover { box-shadow: 0 16px 30px rgba(249, 115, 80, 0.42); transform: translateY(-1px); }

.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-block { width: 100%; }

/* -------------------- 상단 안내 바 -------------------- */
.top-bar { background: var(--footer-dark); }
.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 34px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 12.5px;
  font-weight: 500;
}

/* -------------------- 헤더 -------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { flex-shrink: 0; display: flex; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-mark { font-size: 20px; font-weight: 900; letter-spacing: -0.5px; color: var(--ink-900); }
.brand-en { font-size: 10.5px; font-weight: 600; color: var(--ink-400); letter-spacing: 0.5px; }

.main-nav { display: flex; align-items: center; gap: 38px; }
.main-nav a { color: var(--ink-700); font-weight: 600; font-size: 15px; transition: color .15s ease; }
.main-nav a:hover { color: var(--teal-600); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-cta { display: inline-flex; }

.nav-toggle { display: none; align-items: center; justify-content: center; width: 40px; height: 40px; background: transparent; border: none; color: var(--ink-900); }

.mobile-nav { display: flex; flex-direction: column; gap: 4px; padding: 14px 24px 22px; background: var(--white); border-top: 1px solid var(--line); }
.mobile-nav a:not(.btn) { color: var(--ink-700); font-weight: 600; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.mobile-nav .btn { margin-top: 14px; }
.mobile-nav[hidden] { display: none; }

/* -------------------- 히어로 -------------------- */
.hero { position: relative; overflow: hidden; padding-top: 40px; background: #fdfaf3; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 620px;
  gap: 24px;
}

.hero-copy { max-width: 460px; padding: 40px 0 56px; position: relative; z-index: 2; }

.hero-title { color: var(--ink-900); font-size: clamp(32px, 4.4vw, 50px); font-weight: 900; line-height: 1.2; margin: 0 0 6px; letter-spacing: -1px; }
.hero-title2 { color: var(--ink-900); font-size: clamp(19px, 2.2vw, 25px); font-weight: 700; margin: 0 0 16px; }
.hero-sub { color: var(--ink-500); font-size: 15px; font-weight: 500; margin: 0 0 30px; }

.hero-btns { margin-bottom: 40px; }

.hero-perks { display: flex; gap: 30px; flex-wrap: wrap; }
.hero-perks li { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.perk-ic {
  width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--white); color: var(--teal-600); box-shadow: var(--shadow-sm);
}
.hero-perks strong { font-size: 13.5px; font-weight: 800; color: var(--ink-900); }
.hero-perks span { font-size: 12px; color: var(--ink-500); }

/* -------------------- 신뢰 밴드 -------------------- */
.trust-band { background: var(--bg-alt); padding: 34px 0; }
.trust-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.trust-band-copy strong { display: block; font-size: 18px; font-weight: 800; color: var(--ink-900); margin-bottom: 6px; }
.trust-band-copy p { margin: 0; font-size: 13.5px; color: var(--ink-500); line-height: 1.6; }
.trust-strip { display: flex; gap: 34px; flex-wrap: wrap; }
.trust-strip li { display: flex; align-items: center; gap: 10px; color: var(--ink-700); font-weight: 700; font-size: 14px; }
.trust-strip .ic { color: var(--teal-600); }

/* -------------------- 공통 섹션 -------------------- */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: 40px; }
.section-head h2 { font-size: clamp(23px, 2.6vw, 30px); font-weight: 800; color: var(--ink-900); margin: 0; line-height: 1.35; letter-spacing: -0.5px; }

/* -------------------- 서비스 카드 -------------------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px 28px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-ic {
  width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--teal-100); color: var(--teal-600); margin-bottom: 20px;
}
.feature-card h3 { font-size: 18px; font-weight: 800; margin: 0 0 10px; color: var(--ink-900); }
.feature-card p { margin: 0; color: var(--ink-500); font-size: 14.5px; }

/* -------------------- 장점 그리드 -------------------- */
.advantage-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; margin-bottom: 38px; }
.advantage-grid li { text-align: center; }
.advantage-ic {
  width: 58px; height: 58px; border-radius: 50%; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--white); border: 1.5px solid var(--line); color: var(--teal-600);
}
.advantage-grid strong { display: block; font-size: 14px; font-weight: 800; color: var(--ink-900); margin-bottom: 6px; line-height: 1.35; }
.advantage-grid p { margin: 0; font-size: 12px; color: var(--ink-500); line-height: 1.5; }

.pill-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pill-row li { background: var(--white); border: 1.5px solid var(--line); color: var(--ink-700); font-weight: 700; font-size: 13.5px; padding: 9px 20px; border-radius: 999px; }
.pill-row li.pill-active { background: var(--teal-600); border-color: var(--teal-600); color: var(--white); }

/* -------------------- 콘텐츠 + 사이드바 -------------------- */
.content-layout { padding-top: 84px; }
.content-grid { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.content-main > * + * { margin-top: 72px; }

/* -------------------- 프로세스 -------------------- */
.process-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: start; gap: 4px; }
.process-step {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 14px; text-align: center; position: relative; box-shadow: var(--shadow-sm);
}
.step-no {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--teal-600); color: var(--white); font-weight: 800; font-size: 12.5px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(14, 128, 116, 0.35);
}
.step-ic {
  width: 48px; height: 48px; border-radius: 50%; background: var(--teal-100); color: var(--teal-700);
  display: flex; align-items: center; justify-content: center; margin: 10px auto 14px;
}
.process-step h3 { font-size: 15px; font-weight: 800; margin: 0 0 6px; color: var(--ink-900); }
.process-step p { margin: 0; color: var(--ink-500); font-size: 12px; }
.step-arrow { color: var(--line); align-self: center; padding-top: 50px; }

/* -------------------- CTA 배너 -------------------- */
.cta-banner {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: linear-gradient(120deg, var(--teal-600), var(--teal-500));
  border-radius: var(--radius-lg); padding: 26px 30px;
  box-shadow: 0 18px 40px rgba(14, 128, 116, 0.3);
}
.cta-ic {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.16); color: var(--white);
  display: flex; align-items: center; justify-content: center;
}
.cta-banner-copy { flex: 1 1 auto; }
.cta-banner-copy strong { display: block; color: var(--white); font-size: 21px; font-weight: 800; margin-bottom: 4px; }
.cta-banner-copy span { color: rgba(255, 255, 255, 0.85); font-size: 13.5px; font-weight: 500; }

/* -------------------- 후기 -------------------- */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.review-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 22px; box-shadow: var(--shadow-sm); }
.quote-ic { color: var(--teal-500); opacity: .3; margin-bottom: 12px; display: block; }
.review-card p { margin: 0 0 18px; font-size: 13.5px; color: var(--ink-700); line-height: 1.6; }
.review-who { display: flex; align-items: center; gap: 9px; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--teal-100); color: var(--teal-600); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.review-who strong { font-size: 13.5px; color: var(--ink-900); font-weight: 700; }

/* -------------------- 가이드 -------------------- */
.guide-grid { display: flex; flex-direction: column; gap: 12px; }
.guide-card {
  display: flex; align-items: center; gap: 14px; width: 100%;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 18px 20px; text-align: left; transition: border-color .15s ease, box-shadow .15s ease;
}
.guide-card:hover { border-color: var(--teal-500); box-shadow: var(--shadow-sm); }
.guide-ic {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px;
  background: var(--teal-100); color: var(--teal-600);
  display: flex; align-items: center; justify-content: center;
}
.guide-copy { flex: 1 1 auto; display: flex; flex-direction: column; gap: 3px; }
.guide-copy strong { font-size: 14.5px; color: var(--ink-900); font-weight: 700; }
.guide-copy small { font-size: 12.5px; color: var(--ink-500); }
.guide-chevron { color: var(--ink-400); flex-shrink: 0; }

/* -------------------- 사이드바 폼 -------------------- */
.content-side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 20px; }

.apply-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-md); }
.apply-form h2 { font-size: 18.5px; font-weight: 800; color: var(--ink-900); margin: 0 0 22px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--ink-700); margin-bottom: 7px; }
.field input[type="text"], .field input[type="tel"], .field select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-size: 14px; color: var(--ink-900); background: var(--white);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2369728a' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 36px; }
.field input:focus, .field select:focus { outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 4px rgba(20, 163, 143, 0.14); }
.field input.invalid, .field select.invalid { border-color: #e5484d; }

.field-error { margin: 6px 0 0; font-size: 12px; color: #e5484d; display: none; }
.field-error.show { display: block; }

.field-check { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; position: relative; margin-bottom: 20px; }
.checkbox { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-700); cursor: pointer; }
.checkbox input { width: 18px; height: 18px; accent-color: var(--teal-600); cursor: pointer; }
.link-btn { background: none; border: none; color: var(--teal-600); font-size: 12.5px; font-weight: 700; }
.link-btn:hover { color: var(--teal-700); }
.field-check .field-error { width: 100%; margin-top: -2px; }

.apply-info { display: flex; flex-direction: column; gap: 12px; }
.info-item { display: flex; gap: 12px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 16px 18px; }
.info-ic { flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px; background: var(--teal-100); color: var(--teal-600); display: flex; align-items: center; justify-content: center; }
.info-item strong { display: block; font-size: 14px; color: var(--ink-900); margin-bottom: 3px; }
.info-item p { margin: 0; color: var(--ink-500); font-size: 12.5px; line-height: 1.5; }

/* -------------------- 푸터 -------------------- */
.site-footer { background: var(--footer-dark); padding-top: 24px; }
.footer-disclaimer { display: flex; flex-wrap: wrap; gap: 8px 28px; padding-bottom: 24px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.footer-disclaimer p { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255, 255, 255, 0.45); }
.footer-disclaimer .ic { color: rgba(255, 255, 255, 0.4); }

.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; padding: 24px 0; }
.footer-brand { display: flex; align-items: baseline; gap: 10px; }
.footer-brand .brand-mark { color: var(--white); }
.footer-tagline { color: rgba(255, 255, 255, 0.4); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }
.footer-nav { display: flex; gap: 26px; }
.footer-nav button { background: none; border: none; color: rgba(255, 255, 255, 0.6); font-size: 13.5px; font-weight: 600; padding: 0; }
.footer-nav button:hover { color: var(--teal-500); }

.footer-bottom { padding: 18px 0 28px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.footer-bottom p { margin: 0 0 6px; font-size: 11.5px; color: rgba(255, 255, 255, 0.35); }
.footer-copyright { color: rgba(255, 255, 255, 0.28) !important; margin-top: 10px !important; }

/* -------------------- 모달 -------------------- */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(18, 32, 58, 0.55); backdrop-filter: blur(2px); }
.modal-panel { position: relative; background: var(--white); border-radius: var(--radius-lg); max-width: 480px; width: 100%; max-height: 85vh; overflow-y: auto; box-shadow: 0 30px 80px rgba(0,0,0,0.28); animation: modal-pop .22s ease; }
@keyframes modal-pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 24px 26px 0; }
.modal-head h3 { margin: 0; font-size: 17.5px; font-weight: 800; color: var(--ink-900); }
.modal-close { background: none; border: none; color: var(--ink-500); width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.modal-close:hover { background: var(--bg-alt); }
.modal-body { padding: 20px 26px; }
.modal-body p { font-size: 13.5px; color: var(--ink-500); line-height: 1.7; margin: 0 0 16px; }
.modal-foot { padding: 0 26px 26px; }

.modal-panel-sm { max-width: 380px; text-align: center; padding: 40px 32px 32px; }
.modal-success-ic { display: inline-flex; align-items: center; justify-content: center; width: 68px; height: 68px; border-radius: 50%; background: var(--teal-100); color: var(--teal-600); margin-bottom: 20px; }
.modal-panel-sm h3 { font-size: 19px; font-weight: 800; color: var(--ink-900); margin: 0 0 10px; }
.modal-panel-sm p { font-size: 14px; color: var(--ink-500); margin: 0 0 26px; line-height: 1.6; }

/* -------------------- 맨 위로 -------------------- */
.to-top {
  position: fixed; right: 24px; bottom: 24px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--teal-600); color: var(--white); border: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-teal);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  z-index: 90;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }

/* -------------------- 스크롤 리빌 -------------------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].in { opacity: 1; transform: none; }

/* =========================================================
   반응형
========================================================= */
@media (max-width: 1180px) {
  .content-grid { grid-template-columns: 1fr 300px; gap: 28px; }
}

@media (max-width: 1024px) {
  .wrap { padding: 0 20px; }

  .hero-inner { flex-direction: column; align-items: center; min-height: 0; text-align: center; }
  .hero-copy { padding: 40px 0 8px; text-align: center; max-width: 560px; }
  .hero-btns { display: flex; justify-content: center; }
  .hero-perks { justify-content: center; }
  .hero-perks li { align-items: center; }

  .trust-band-inner { flex-direction: column; text-align: center; }
  .trust-strip { justify-content: center; }

  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .advantage-grid { grid-template-columns: repeat(3, 1fr); }
  .process-flow { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .step-arrow { display: none; }

  .content-grid { grid-template-columns: 1fr; }
  .content-side { position: static; }
  .review-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .content-layout { padding-top: 56px; }
  .content-main > * + * { margin-top: 52px; }

  .top-bar-inner span { font-size: 11px; }
  .hero-title { font-size: 30px; }

  .feature-grid { grid-template-columns: 1fr; }
  .advantage-grid { grid-template-columns: repeat(2, 1fr); }
  .process-flow { grid-template-columns: 1fr; }

  .cta-banner { flex-direction: column; text-align: center; padding: 26px 22px; }
  .cta-banner .btn { width: 100%; }

  .apply-form { padding: 24px 20px; }
  .field-check { flex-direction: column; align-items: flex-start; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-nav { gap: 18px; flex-wrap: wrap; }
  .footer-disclaimer { flex-direction: column; gap: 6px; }

  /* 상담 신청 폼이 히어로 바로 아래로 이동합니다 (assets/script.js) */
  #mobile-apply-slot:not(:empty) { padding: 4px 20px 44px; }
}
