/* ═══════════════════════════════════════════════════════════
   K8U 중고차 — 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 {
  position: relative; min-height: 480px;
  background: var(--dark) center/cover no-repeat;
  display: flex; align-items: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(20,22,26,.82) 0%, rgba(20,22,26,.6) 100%);
}
.hero-body {
  position: relative; max-width: var(--max-w); margin: 0 auto; padding: 60px 24px;
  color: #fff;
}
.hero-tag {
  display: inline-block; padding: 4px 14px; border-radius: 20px;
  background: var(--ac); color: var(--dark);
  font-size: .78rem; font-weight: 700; margin-bottom: 16px;
}
.hero-body h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 900;
  line-height: 1.2; margin-bottom: 14px;
}
.hero-sub { font-size: 1rem; color: #adb5c2; max-width: 560px; margin-bottom: 28px; }
.hero-btn {
  display: inline-block; padding: 12px 28px;
  background: var(--ac); color: var(--dark);
  font-weight: 700; border-radius: 8px; font-size: 1rem;
  transition: background .15s;
}
.hero-btn:hover { background: var(--ac-d); color: #fff; }

/* ── Spec Strip ── */
.spec-strip {
  background: var(--dark); border-top: 1px solid rgba(255,255,255,.06);
  padding: 18px 0;
}
.spec-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 20px;
  display: flex; flex-wrap: wrap; gap: 0;
}
.spec-item {
  display: flex; flex-direction: column; gap: 3px;
  padding: 10px 24px; border-right: 1px solid rgba(255,255,255,.1);
}
.spec-item:last-child { border-right: none; }
.si-l { font-size: .72rem; color: #7a7d88; text-transform: uppercase; letter-spacing: .5px; }
.si-v { font-size: .9rem; color: #e8e9ec; font-weight: 600; }

/* ── Section wrappers ── */
.sec-wrap  { padding: 56px 0; }
.sec-alt   { background: var(--bg2); }
.sec-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.sec-ttl {
  font-size: 1.4rem; font-weight: 800; margin-bottom: 10px;
  padding-left: 14px;
  border-left: 4px solid var(--ac);
}
.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;
}

/* ── 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); }

/* ── Spec table ── */
.spec-table-wrap { overflow-x: auto; }
.spec-tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.spec-tbl th, .spec-tbl td { padding: 11px 14px; border-bottom: 1px solid var(--border); text-align: left; }
.spec-tbl th { width: 130px; background: var(--bg2); color: var(--text2); font-weight: 600; }
.spec-tbl tr:last-child th, .spec-tbl tr:last-child td { border-bottom: none; }

/* ── Numbered list (01, 02…) ── */
.num-list { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.num-list > li { display: flex; gap: 16px; align-items: flex-start; }
.nl-num {
  flex-shrink: 0; width: 36px; height: 36px;
  background: var(--ac); color: var(--dark);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 800;
}
.nl-body strong { display: block; font-size: .98rem; margin-bottom: 4px; }
.nl-body p { font-size: .88rem; 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; justify-content: space-between;
  gap: 12px; padding: 16px 18px;
  font-size: .95rem; font-weight: 600; color: var(--text);
  text-align: left; transition: background .15s;
}
.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; }
.faq-a p { font-size: .88rem; color: var(--text2); line-height: 1.75; }

/* ── 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: 44px 40px;
  text-align: center;
  background: #fafbfc;
}
.contact-en { font-size: .78rem; letter-spacing: 2px; color: var(--ac); font-weight: 700; text-transform: uppercase; margin-bottom: 8px; }
.contact-ttl { font-size: 1.5rem; font-weight: 800; margin-bottom: 12px; }
.contact-desc { color: var(--text2); font-size: .95rem; margin-bottom: 28px; }
.contact-tel {
  display: inline-block; font-size: 1.7rem; font-weight: 900;
  color: var(--ac); text-decoration: underline; text-decoration-color: var(--ac);
  letter-spacing: .5px;
}
.contact-hours { margin-top: 10px; font-size: .83rem; color: var(--text3); }

/* ── Footer ── */
.site-ft {
  background: #0a0b0d; color: #8a8b90;
  padding: 36px 0; font-size: .84rem;
}
.ft-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.ft-biz { color: #ddd; font-weight: 700; font-size: 1rem; margin-bottom: 16px; }
.ft-dl { display: flex; flex-direction: column; gap: 7px; margin-bottom: 20px; }
.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-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) {
  .spec-inner { gap: 0; }
  .spec-item { padding: 8px 16px; }
}
@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-sec { min-height: 340px; }
  .hero-body h1 { font-size: 1.5rem; }
  .contact-sec .sec-inner { padding: 28px 20px; border-radius: 12px; }
  .contact-tel { font-size: 1.35rem; }
  .spec-inner { flex-direction: column; }
  .spec-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); padding: 8px 16px; }
}
@media (max-width: 420px) {
  .gallery { grid-template-columns: 1fr; }
}
