/* ═══════════════════════════════════════════════════════════
   KB오토카 중고차사이트 — main.css (v2 구조 리뉴얼)
   구조: 중앙정렬 스택 헤더 / 풀블리드 포토 히어로 + 글라스 스탯 타일 /
        중앙 타이틀 섹션 + 소프트 카드 / 타임라인형 리스트 /
        가로 밴드 컨택트 / 라이트 센터 푸터
   ※ 매물 목록(.gallery/.card)은 기존 그대로 유지
   ═══════════════════════════════════════════════════════════ */

:root {
  --ac:      #ca8a04;
  --ac-d:    #a16207;
  --ac-l:    rgba(202,138,4,.13);
  --ac-line: rgba(202,138,4,.35);
  --c1: #ca8a04;  --c2: #eab308;  --c3: #d97706;  --c4: #b45309;
  --c5: #dc2626;  --c6: #16a34a;  --c7: #0d9488;  --c8: #7c3aed;
  --c9: #db2777;  --c10:#57534e;

  --dark:   #14161a;
  --text:   #1e1f22;
  --text2:  #555768;
  --text3:  #888;
  --bg:     #ffffff;
  --bg2:    #f8f8f6;
  --border: #ececec;
  --radius: 12px;
  --max-w:  1160px;
  --mono: ui-monospace, 'SFMono-Regular', 'JetBrains Mono', Menlo, Consolas, monospace;
  --soft: 0 2px 4px rgba(20,22,26,.04), 0 10px 30px rgba(20,22,26,.07);
}

*, *::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; }
section[id] { scroll-margin-top: 110px; }

/* ━━━ HEADER — 중앙 정렬 스택 (로고 위 / 내비 아래) ━━━ */
.site-hd {
  position: sticky; top: 0; z-index: 300;
  background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s;
}
.site-hd.scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.08); }
.hd-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 10px 20px 0;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.hd-logo { display: flex; align-items: center; gap: 10px; }
.hd-logo-chip {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: #C8A96B; color: #2D1F00;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Arial Black', Arial, sans-serif; font-weight: 900; font-size: 16px;
}
.hd-logo-text { font-weight: 900; font-size: 1.15rem; letter-spacing: -.01em; color: var(--text); }
.main-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 2px; }
.main-nav a {
  color: var(--text2); font-size: .82rem; font-weight: 600;
  padding: 9px 13px 11px; border-bottom: 3px solid transparent;
  transition: color .15s, border-color .15s;
}
.main-nav a:hover { color: var(--text); border-bottom-color: var(--ac-line); }
.main-nav .nav-cta {
  color: var(--ac-d); font-weight: 800; border-bottom-color: var(--ac);
}
.main-nav .nav-cta:hover { color: var(--ac); }
.nav-toggle { display: none; color: var(--text); font-size: 1.3rem; position: absolute; right: 16px; top: 12px; }

/* ━━━ HERO — 풀블리드 포토 + 하단 오버레이 + 글라스 스탯 타일 ━━━ */
.hero-sec {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 560px; display: flex; align-items: flex-end;
  background: linear-gradient(135deg, #1b1d22, #3a2f12);
}
.hero-photo-wrap { position: absolute; inset: 0; z-index: -2; }
.hero-photo {
  width: 100%; height: 100%;
  background-size: cover; background-position: center 45%; background-repeat: no-repeat;
  filter: saturate(1.1) contrast(1.05);
}
.hero-sec::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10,11,13,.25) 0%, rgba(10,11,13,.55) 45%, rgba(10,11,13,.92) 100%);
}
.hero-panel { width: 100%; }
.hero-panel-in { max-width: var(--max-w); margin: 0 auto; padding: 90px 20px 40px; }
.hero-eyebrow {
  display: inline-block; padding: 5px 14px; border-radius: 999px;
  background: var(--ac); color: #fff;
  font-size: .72rem; font-weight: 800; letter-spacing: .06em;
  margin-bottom: 18px;
}
.hero-ttl {
  font-size: clamp(1.45rem, 6.2vw, 3.4rem);
  font-weight: 900; color: #fff;
  line-height: 1.08; letter-spacing: -.025em;
  margin-bottom: 16px; white-space: nowrap;
}
.hero-lede { font-size: 1.02rem; color: rgba(255,255,255,.82); line-height: 1.75; max-width: 680px; margin-bottom: 28px; }
.hero-meta {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin-bottom: 28px;
}
.hm-item {
  padding: 14px 18px; border-radius: 14px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(8px);
  display: flex; flex-direction: column; gap: 4px;
}
.hm-l { font-size: .72rem; color: rgba(255,255,255,.65); font-weight: 600; }
.hm-v { font-size: .95rem; font-weight: 800; color: #fff; }
.hero-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 13px 30px; background: var(--ac); color: #fff; border-radius: 999px;
  font-weight: 800; font-size: .92rem;
  transition: background .15s, transform .15s;
}
.hero-cta:hover { background: var(--c2); color: #14161a; transform: translateY(-1px); }

/* ━━━ SECTIONS — 중앙 타이틀 ━━━ */
.sec-wrap  { padding: 76px 0; }
.sec-alt   { background: var(--bg2); }
.sec-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.sec-ttl {
  font-size: 1.7rem; font-weight: 900; margin-bottom: 10px;
  text-align: center; letter-spacing: -.01em;
}
.sec-ttl::after {
  content: ''; display: block; width: 44px; height: 4px; border-radius: 4px;
  background: var(--ac); margin: 14px auto 0;
}
.sec-sub  { color: var(--text2); margin-bottom: 30px; font-size: .95rem; text-align: center; }
.sec-desc { color: var(--text2); margin: 0 auto 34px; line-height: 1.8; max-width: 760px; text-align: center; }

.doc-hd {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  margin-bottom: 22px; text-align: center;
}
.doc-hd-n {
  font-family: var(--mono); font-size: .76rem; font-weight: 800;
  color: var(--ac-d); background: var(--ac-l);
  padding: 4px 14px; border-radius: 999px;
}
.doc-hd-t { font-size: 1.7rem; font-weight: 900; color: var(--text); letter-spacing: -.01em; }
.doc-hd-t::after {
  content: ''; display: block; width: 44px; height: 4px; border-radius: 4px;
  background: var(--ac); margin: 14px auto 0;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   GALLERY / CAR CARDS — 매물목록
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(206px, 1fr));
  gap: 14px;
}
.card {
  display: block; color: inherit; text-decoration: none;
  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-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, .row-lbl { color: var(--text3); }
.price { font-weight: 800; font-size: 1.05rem; color: var(--ac-d); }
.pay   { font-weight: 600; font-size: .9rem;   color: var(--c1); }
.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: #fff;
  border-radius: 20px; font-weight: 700; font-size: .82rem; margin-left: 6px;
}


/* ━━━ INFO CARDS — 분리된 소프트 타일 ━━━ */
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}
.info-card {
  background: #fff; border-radius: 18px; box-shadow: var(--soft);
  border-top: 4px solid var(--ac);
  padding: 24px 22px; text-align: center;
}
.ic-label { font-size: .78rem; color: var(--text3); font-weight: 700; margin-bottom: 10px; }
.ic-value { font-size: 1.25rem; font-weight: 900; color: var(--text); line-height: 1.3; margin-bottom: 6px; }
.ic-note  { font-size: .8rem; color: var(--text2); }

/* ── 매장 안내: 2열 라벨 타일 ── */
.info-list {
  list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
  max-width: 860px; margin: 0 auto;
}
.info-list li {
  display: flex; flex-direction: column; gap: 4px; font-size: .95rem;
  padding: 18px 22px; background: #fff; border-radius: 16px; box-shadow: var(--soft);
}
.info-list li:nth-child(3) { grid-column: 1 / -1; }
.il-k { color: var(--ac-d); font-weight: 800; font-size: .76rem; }
.il-v { color: var(--text); font-weight: 600; }

/* ── 비교표: 둥근 카드형 테이블 ── */
.spec-table-wrap { overflow-x: auto; border-radius: 18px; box-shadow: var(--soft); background: #fff; max-width: 860px; margin: 0 auto; }
.spec-tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.spec-tbl th, .spec-tbl td { padding: 14px 20px; border-bottom: 1px solid var(--border); text-align: left; }
.spec-tbl thead th { background: var(--ac-l); color: var(--ac-d); font-weight: 800; font-size: .8rem; }
.spec-tbl tbody th { font-weight: 800; color: var(--text); }
.spec-tbl tbody tr:nth-child(even) { background: var(--bg2); }
.spec-tbl tr:last-child th, .spec-tbl tr:last-child td { border-bottom: none; }
.spec-tbl caption { text-align: left; font-size: .78rem; color: var(--text3); padding: 14px 20px 0; caption-side: top; }

/* ━━━ FEATURES — 센터 타일 3열 ━━━ */
.feat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px;
}
.feat-card {
  background: #fff; border-radius: 18px; box-shadow: var(--soft);
  padding: 28px 24px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px;
  transition: transform .2s;
}
.feat-card:hover { transform: translateY(-3px); }
.feat-num {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--ac); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 900;
}
.feat-body strong { display: block; font-size: 1rem; margin-bottom: 8px; color: var(--text); }
.feat-body p { font-size: .86rem; color: var(--text2); line-height: 1.7; margin: 0; }

/* ━━━ SCENARIOS — 가로 3열 카드 ━━━ */
.scenario-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; }
.scenario-card {
  background: #fff; border-radius: 18px; box-shadow: var(--soft);
  padding: 28px 24px; position: relative; overflow: hidden;
}
.sn-num {
  display: block; font-size: 2.6rem; font-weight: 900; line-height: 1;
  color: var(--ac-l); margin-bottom: 10px;
}
.sn-body strong { display: block; font-size: 1rem; margin-bottom: 8px; color: var(--text); }
.sn-body p { font-size: .87rem; color: var(--text2); line-height: 1.7; margin: 0; }

/* ━━━ NUMBERED LIST — 세로 타임라인 ━━━ */
.num-list {
  list-style: none; position: relative; max-width: 780px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 22px;
}
.num-list::before {
  content: ''; position: absolute; left: 21px; top: 8px; bottom: 8px; width: 2px; background: var(--ac-line);
}
.num-list > li { display: flex; gap: 20px; align-items: flex-start; position: relative; }
.nl-num {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%;
  background: #fff; color: var(--ac-d); border: 2px solid var(--ac);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 900; z-index: 1;
}
.nl-body {
  flex: 1; background: #fff; border-radius: 16px; box-shadow: var(--soft); padding: 16px 22px;
}
.nl-body strong { display: block; font-size: .98rem; margin-bottom: 4px; }
.nl-body p { font-size: .88rem; color: var(--text2); line-height: 1.7; }

/* ━━━ FAQ — 둥근 카드 아코디언 ━━━ */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 820px; margin: 0 auto; }
.faq-item { background: #fff; border-radius: 16px; box-shadow: var(--soft); overflow: hidden; }
.faq-q {
  width: 100%; display: flex; align-items: center; gap: 14px;
  padding: 18px 22px; font-size: .96rem; font-weight: 700; color: var(--text); text-align: left;
}
.faq-q:hover, .faq-q[aria-expanded="true"] { color: var(--ac-d); }
.fq-num { font-size: .78rem; color: var(--ac-d); font-weight: 800; background: var(--ac-l); border-radius: 999px; padding: 2px 9px; flex-shrink: 0; }
.fq-txt { flex: 1; }
.fq-icon {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg2); color: var(--dark); font-size: 1rem; font-weight: 700;
  transition: background .15s, color .15s;
}
.faq-q[aria-expanded="true"] .fq-icon { background: var(--ac); color: #fff; }
.faq-a { padding: 0 22px 20px 70px; }
.faq-a p { font-size: .9rem; color: var(--text2); line-height: 1.8; }

/* ━━━ CONTACT — 밝은 박스 + 액센트 상단선 ━━━ */
.contact-sec { background: var(--bg) !important; padding: 56px 0; }
.contact-sec .sec-inner {
  max-width: 760px; text-align: center; background: #fafbfc;
  border: 1px solid var(--border); border-top: 4px solid var(--ac);
  border-radius: 18px; padding: 40px 24px;
}
.contact-en { font-size: .78rem; letter-spacing: 2px; color: var(--ac-d); font-weight: 800; text-transform: uppercase; margin-bottom: 6px; }
.contact-ttl { font-size: 1.8rem; font-weight: 900; margin-bottom: 8px; color: var(--text); }
.contact-desc { color: var(--text2); font-size: .95rem; }
.contact-tel {
  display: inline-block; margin-top: 18px; font-size: 2rem; font-weight: 900; letter-spacing: .5px;
  color: var(--ac); border-bottom: 3px solid var(--ac); padding-bottom: 2px;
}
.contact-hours { margin-top: 10px; font-size: .83rem; color: var(--text2); }

/* ━━━ FOOTER — 다크 ━━━ */
.site-ft { background: #0a0b0d; color: #c9cbd1; padding: 48px 0 0; font-size: .85rem; }
.ft-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 20px 34px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px 40px;
}
.ft-brand { margin-bottom: 10px; }
.ft-biz { color: #fff; font-weight: 900; font-size: 1.05rem; margin-bottom: 14px; }
.ft-dl { display: flex; flex-direction: column; gap: 6px; }
.ft-row { display: flex; gap: 8px; }
.ft-row dt { flex: 0 0 92px; width: 92px; color: #8b8e97; font-weight: 700; }
.ft-row dd { color: #e5e6ea; }
.ft-row a { color: var(--ac); font-weight: 700; }
.ft-col-ttl { color: var(--ac); font-size: .78rem; font-weight: 800; margin-bottom: 12px; }
.ft-nav-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.ft-nav-list a { color: #c9cbd1; transition: color .15s; }
.ft-nav-list a:hover { color: var(--ac); }
.ft-bottom {
  max-width: var(--max-w); margin: 0 auto; padding: 22px 20px 30px;
  border-top: 1px solid #23262c; color: #8b8e97; font-size: .78rem; line-height: 1.75;
}

/* ━━━ RESPONSIVE ━━━ */
@media (max-width: 960px) {
  .hero-meta { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .hd-inner { flex-direction: row; justify-content: flex-start; padding: 10px 20px; position: relative; }
  .main-nav {
    display: none; position: fixed; top: 52px; left: 0; right: 0; bottom: 0;
    background: #fff; flex-direction: column; padding: 4px 0;
    border-top: 1px solid var(--border); z-index: 299; overflow-y: auto;
  }
  .main-nav.nav-open { display: flex; }
  .main-nav a { border-bottom: 1px solid var(--border); padding: 15px 20px; }
  .nav-toggle { display: block; }
  .hero-sec { min-height: 520px; }
  .hero-panel-in { padding: 70px 20px 30px; }
  .sec-wrap { padding: 56px 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .info-list { grid-template-columns: 1fr; }
  .contact-tel { font-size: 1.5rem; }
  .faq-a { padding-left: 22px; }
  .ft-inner { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .hero-meta { grid-template-columns: 1fr; }
}

/* 로고 칩 (special.izecar.com 동일 디자인) */
.brand-chip{width:34px;height:34px;border-radius:9px;background:rgb(183,15,40);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:900;font-size:17px;flex-shrink:0}
.ft-brand .brand-chip{width:30px;height:30px;font-size:15px}
.hd-logo{gap:10px}.hd-logo-text{font-weight:800;font-size:15px}
