/* ═══════════════════════════════════════════════════════════
   경차중고차가격 — main.css (에디토리얼 레이아웃)
   색: --ac(앰버옐로 25%)+변주 10색, 남색 없음
   ═══════════════════════════════════════════════════════════ */

/* ── 디자인 토큰 ── */
:root {
  --ac:      #f5a623;        /* 앰버 옐로 — 주 액센트 */
  --ac-d:    #d4880a;        /* 딥 앰버 */
  --ac-l:    rgba(245,166,35,.13); /* 라이트 틴트 */
  --ac-line: rgba(245,166,35,.35); /* 경계선 틴트 */

  /* 변주 10색 (남색 없음) */
  --c1: #e67e22;   /* 웜 오렌지 */
  --c2: #f39c12;   /* 골든 옐로 */
  --c3: #d35400;   /* 번트 오렌지 */
  --c4: #e74c3c;   /* 웜 레드 */
  --c5: #c0392b;   /* 딥 레드 */
  --c6: #27ae60;   /* 에메랄드 */
  --c7: #16a085;   /* 틸 */
  --c8: #3498db;   /* 스카이 블루 (라이트, 남색 아님) */
  --c9: #8e44ad;   /* 웜 퍼플 */
  --c10:#2c3e50;   /* 차콜 (남색 아님, 어두운 회색 계열) */

  --dark:   #14161a;
  --text:   #1e1f22;
  --text2:  #555768;
  --text3:  #888;
  --bg:     #ffffff;
  --bg2:    #f8f8f6;
  --border: #ececec;
  --radius: 12px;
  --max-w:  1160px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 15px; }
body { font-family: 'Pretendard', 'Noto Sans KR', -apple-system, sans-serif;
       color: var(--text); background: var(--bg); line-height: 1.65; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── Header (변경 없음) ── */
.site-hd {
  position: sticky; top: 0; z-index: 300;
  background: var(--dark);
  border-bottom: 2px solid var(--ac);
  transition: box-shadow .2s;
}
.site-hd.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,.4); }
.hd-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; height: 54px; gap: 20px;
}
.hd-logo { flex-shrink: 0; }
.logo-txt { color: #fff; font-weight: 800; font-size: 1.1rem; letter-spacing: -.3px; }
.main-nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.main-nav a {
  color: #c8c9cc; font-size: .85rem; padding: 6px 12px;
  border-radius: 6px; transition: color .15s, background .15s;
}
.main-nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.main-nav .nav-cta {
  background: var(--ac); color: var(--dark); font-weight: 700;
  padding: 6px 16px; border-radius: 20px;
}
.main-nav .nav-cta:hover { background: var(--ac-d); color: #fff; }
.nav-toggle { display: none; color: #fff; font-size: 1.3rem; margin-left: auto; }

/* ── HERO — 스플릿 에디토리얼 레이아웃(좌: 텍스트/스탯카드, 우: 차량 사진) ── */
.hero-sec {
  background: var(--dark);
  overflow: hidden;
}
.hero-split {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr .9fr;
  min-height: 420px;
}
.hero-text {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; justify-content: center;
  padding: 56px 28px 56px 24px;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ac); margin-bottom: 18px;
}
.hero-eyebrow::before { content:''; width: 22px; height: 2px; background: var(--ac); display:inline-block; }
.hero-text h1 {
  font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 900;
  line-height: 1.08; letter-spacing: -.02em; color: #fff; margin-bottom: 22px;
  word-break: keep-all;
}
.hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; max-width: 420px; }
.hstat { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 10px; padding: 12px 14px; }
.hstat b { display: block; font-size: 1.05rem; color: var(--ac); font-weight: 800; margin-bottom: 2px; }
.hstat span { font-size: .74rem; color: #9799a3; }
.hero-photo {
  position: relative;
  background-size: cover; background-position: center 40%;
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0% 100%);
}
.hero-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, var(--dark) 0%, rgba(20,22,26,0) 30%);
}

/* ── Section header — 큰 고스트 넘버 + 타이틀(에디토리얼) ── */
.sec-wrap  { padding: 60px 0; }
.sec-alt   { background: var(--bg2); }
.sec-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.sec-hd2 { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 28px; }
.sec-ghost {
  font-size: clamp(2.6rem, 6vw, 4rem); font-weight: 900; line-height: .8;
  color: var(--ac); opacity: .22; flex-shrink: 0;
}
.sec-ttl {
  font-size: 1.4rem; font-weight: 800; margin-bottom: 10px;
  padding-left: 14px;
  border-left: 4px solid var(--ac);
}
.sec-hd2 .sec-ttl { margin-bottom: 6px; }
.sec-sub  { color: var(--text2); margin-bottom: 24px; font-size: .95rem; }
.sec-desc { color: var(--text2); margin-bottom: 24px; line-height: 1.75; max-width: 720px; }

/* ── Gallery grid (매물 그리드 — 변경 없음) ── */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(206px, 1fr));
  gap: 14px;
}
.card {
  background: #fff; border: 1px solid #ececec;
  border-radius: var(--radius); overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.1); transform: translateY(-2px); }
.card > a { display: block; color: inherit; text-decoration: none; }

/* ★ 고정 높이 — aspect-ratio 금지, img 속성 치수 금지 */
.card-img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.card-body { padding: 13px 14px 14px; }
.car-name {
  font-weight: 700; font-size: .95rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 5px;
}
.car-meta {
  font-size: .82rem; color: var(--text2); margin-bottom: 10px; line-height: 1.55;
}
.car-meta b { color: var(--text); }
.price-row, .pay-row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: .83rem;
}
.price-row { margin-bottom: 3px; }
.lbl { color: var(--text3); }
.price { font-weight: 800; font-size: 1.05rem; color: var(--ac); }
.pay   { font-weight: 600; font-size: .9rem;   color: var(--c1); }

/* Grid CTA (대시 테두리 — 변경 없음) */
.grid-cta {
  margin-top: 24px; padding: 18px 22px;
  border: 2px dashed var(--ac-line);
  border-radius: 10px; font-size: .95rem;
  color: var(--text2); text-align: center;
}
.cta-pill {
  display: inline-block; padding: 3px 14px;
  background: var(--ac); color: var(--dark);
  border-radius: 20px; font-weight: 700; font-size: .82rem;
  margin-left: 6px;
}

/* ── Stat card grid (안내 섹션) ── */
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 8px; }
.stat-card {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 16px 18px; border-top: 3px solid var(--ac);
}
.stat-card .il-k { display: block; font-size: .74rem; color: var(--text3); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.stat-card .il-v { display: block; font-size: 1rem; font-weight: 700; color: var(--text); }

/* ── Spec table (모델 비교) — 카드형 래핑 ── */
.spec-table-wrap {
  overflow-x: auto; border-radius: 14px; border: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0,0,0,.03);
}
.spec-tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.spec-tbl thead th {
  background: var(--dark); color: #fff; font-weight: 700;
  padding: 13px 16px; text-align: left;
}
.spec-tbl tbody th, .spec-tbl tbody td { padding: 13px 16px; text-align: left; }
.spec-tbl tbody tr:nth-child(odd) { background: var(--bg2); }
.spec-tbl tbody th { color: var(--ac-d); font-weight: 800; }

/* ── Feature card grid (특징) ── */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.feature-card {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 20px 18px; position: relative; overflow: hidden;
}
.feature-card::before {
  content: attr(data-n);
  position: absolute; top: -8px; right: 4px;
  font-size: 3.4rem; font-weight: 900; color: var(--fc, var(--ac));
  opacity: .10; line-height: 1;
}
.feature-card .fc-bar { width: 28px; height: 4px; border-radius: 4px; background: var(--fc, var(--ac)); margin-bottom: 14px; }
.feature-card strong { display: block; font-size: 1rem; margin-bottom: 6px; }
.feature-card p { font-size: .87rem; color: var(--text2); line-height: 1.65; }

/* ── Scenario card row (추천 시나리오) ── */
.scenario-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.scenario-card {
  background: var(--dark); color: #fff; border-radius: 14px; padding: 22px 20px;
}
.scenario-card .sc-num { font-size: .78rem; color: var(--ac); font-weight: 800; letter-spacing: .1em; margin-bottom: 10px; display: block; }
.scenario-card strong { display: block; font-size: 1.02rem; margin-bottom: 8px; }
.scenario-card p { font-size: .85rem; color: #c3c5cc; line-height: 1.6; }

/* ── Timeline (체크포인트) ── */
.timeline { position: relative; padding-left: 34px; }
.timeline::before {
  content: ''; position: absolute; left: 10px; top: 6px; bottom: 6px;
  width: 2px; background: var(--ac-line);
}
.tl-item { position: relative; padding-bottom: 26px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ''; position: absolute; left: -34px; top: 2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--ac); border: 3px solid var(--bg2);
}
.sec-wrap:not(.sec-alt) .tl-item::before { border-color: var(--bg); }
.tl-item strong { display: block; font-size: .98rem; margin-bottom: 4px; }
.tl-item p { font-size: .87rem; color: var(--text2); line-height: 1.65; }

/* ── FAQ Accordion (숫자 배지형) ── */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden; background: #fff;
}
.faq-q {
  width: 100%; display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  font-size: .95rem; font-weight: 600; color: var(--text);
  text-align: left; transition: background .15s;
}
.faq-q .fq-n {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px;
  background: var(--ac-l); color: var(--ac-d); font-weight: 800; font-size: .8rem;
  display: flex; align-items: center; justify-content: center;
}
.faq-q:hover { background: var(--bg2); }
.faq-q[aria-expanded="true"] { background: var(--ac-l); border-bottom: 1px solid var(--ac-line); }
.fq-txt { flex: 1; }
.fq-icon { flex-shrink: 0; width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--ac); color: var(--dark);
  font-size: 1rem; font-weight: 700; transition: transform .2s;
}
.faq-q[aria-expanded="true"] .fq-icon { transform: rotate(45deg); }
.faq-a { padding: 14px 18px 16px 58px; }
.faq-a p { font-size: .88rem; color: var(--text2); line-height: 1.75; }

/* ── 매장안내 — 인포카드 + 하이라이트 주소 ── */
.store-panel {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
}
.store-addr {
  background: var(--dark); color: #fff; padding: 28px 26px;
  display: flex; flex-direction: column; justify-content: center;
}
.store-addr .sa-label { font-size: .74rem; color: var(--ac); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; }
.store-addr .sa-name { font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; }
.store-addr .sa-line { font-size: .88rem; color: #c3c5cc; line-height: 1.7; }
.store-list { padding: 24px 26px; display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.store-list .info-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.store-list .info-list li { display: flex; gap: 12px; font-size: .93rem; }

/* ── Info list (범용, 구형 호환) ── */
.info-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.info-list li { display: flex; gap: 12px; font-size: .93rem; }
.il-k { min-width: 92px; flex-shrink: 0; color: var(--text3); font-weight: 600; }
.il-v { color: var(--text); }

/* ── Contact — 가로형(밝은배경 유지) ── */
.contact-sec { background: #fafbfc !important; }
.contact-sec .sec-inner {
  border: 1px solid var(--border);
  border-top: 4px solid var(--ac);
  border-radius: 18px;
  padding: 36px 40px;
  background: #fafbfc;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.contact-left { text-align: left; }
.contact-en { display: block; font-size: .78rem; letter-spacing: 2px; color: var(--ac); font-weight: 700; text-transform: uppercase; margin-bottom: 8px; }
.contact-ttl { font-size: 1.4rem; font-weight: 800; margin-bottom: 8px; }
.contact-desc { color: var(--text2); font-size: .92rem; }
.contact-right { text-align: right; }
.contact-tel {
  display: inline-block; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 900;
  color: var(--ac); text-decoration: underline; text-decoration-color: var(--ac);
  letter-spacing: .5px;
}
.contact-hours { margin-top: 8px; font-size: .8rem; color: var(--text3); }

/* ── Footer — 멀티컬럼(사이드바 아님, 하단 가로 컬럼) ── */
.site-ft { background: #0a0b0d; color: #8a8b90; padding: 44px 0 28px; font-size: .84rem; }
.ft-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.ft-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; border-bottom: 1px solid rgba(255,255,255,.08); padding-bottom: 26px; margin-bottom: 18px; }
.ft-biz { color: #ddd; font-weight: 700; font-size: 1rem; margin-bottom: 16px; }
.ft-dl { display: flex; flex-direction: column; gap: 7px; }
.ft-row { display: flex; gap: 0; }
.ft-row dt { width: 92px; flex-shrink: 0; color: #666; font-weight: 600; }
.ft-row dd { color: #9a9b9f; }
.ft-row a { color: #bbb; }
.ft-note-ttl { color: #ddd; font-weight: 700; font-size: .9rem; margin-bottom: 12px; }
.ft-copy { line-height: 1.75; margin-bottom: 8px; color: #666; font-size: .8rem; }
.ft-date { font-size: .78rem; color: #555; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; min-height: 0; }
  .hero-photo { height: 240px; clip-path: none; order: -1; }
  .hero-photo::after { background: linear-gradient(180deg, rgba(20,22,26,0) 55%, var(--dark) 100%); }
  .hero-text { padding: 30px 20px 40px; }
  .store-panel { grid-template-columns: 1fr; }
  .ft-grid { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 700px) {
  .main-nav { display: none; position: fixed; top: 54px; left: 0; right: 0;
    background: var(--dark); flex-direction: column; padding: 12px;
    border-bottom: 2px solid var(--ac); z-index: 299; }
  .main-nav.nav-open { display: flex; }
  .nav-toggle { display: block; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .contact-sec .sec-inner { flex-direction: column; text-align: center; padding: 28px 22px; }
  .contact-left, .contact-right { text-align: center; }
  .stat-grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .gallery { grid-template-columns: 1fr; }
}
