/* 기아자동차 신차 출고 전문 상담원 — 공통 디자인 시스템 */
:root {
  --white: #ffffff;
  --black: #14161a;
  --gray-900: #1f2226;
  --gray-700: #3d4148;
  --gray-500: #6b7076;
  --gray-300: #d4d7dc;
  --gray-100: #f3f4f6;
  --silver: #c9ccd1;
  --accent: #c81f3f;
  --accent-dark: #8f1530;
  --kakao: #FEE500;
  --kakao-text: #391b1b;
  --bg: #f6f1ec;
  --bg-tint: #fdeef1;
  --bg-tint2: #eaf1fb;
  --navy: #142033;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(20,22,26,.08);
  --font: -apple-system, BlinkMacSystemFont, "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--gray-900);
  background: var(--bg); line-height: 1.65; font-size: 16px;
  padding-bottom: 0;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .6em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; color: var(--gray-700); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section--alt { background: linear-gradient(180deg, var(--bg-tint2), var(--bg-tint)); }
.section--dark { background: linear-gradient(135deg, var(--navy), var(--black)); color: var(--white); }
.section--dark p { color: var(--gray-300); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 36px; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--black); color: var(--white);
  padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* 헤더 */
.site-header {
  position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.9);
  backdrop-filter: blur(6px); border-bottom: 3px solid var(--accent);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.site-logo { font-weight: 800; font-size: 1rem; white-space: nowrap; }
.site-nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: .92rem; font-weight: 600; }
.site-nav a { color: var(--gray-700); }
.site-nav a:hover { color: var(--accent); }

/* 브레드크럼 */
.breadcrumb { font-size: .85rem; color: var(--gray-500); padding: 14px 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumb li:not(:last-child)::after { content: "›"; margin-left: 6px; color: var(--gray-300); }
.breadcrumb a:hover { color: var(--accent); }

/* 히어로 */
.hero { padding: 64px 0; background: linear-gradient(180deg, var(--bg-tint), transparent); }
.hero--pg-delivery-documents { padding: 44px 0; }
.hero--pg-delivery-documents .hero__image::before { padding-top: 75%; }
.hero__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.hero__eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; color: var(--accent); background: #fdeef1; padding: 5px 12px; border-radius: 20px; margin-bottom: 14px; }
.hero__lead { font-size: 1.05rem; color: var(--gray-700); margin-bottom: 24px; }
.hero__image { position: relative; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.hero__image::before { content: ""; display: block; padding-top: 150%; }
.hero__image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero--dark { background: var(--black); color: var(--white); }
.hero--dark p, .hero--dark .hero__lead { color: var(--gray-300); }
.hero--dark .hero__eyebrow { background: rgba(200,31,63,.18); color: #ff8fa3; }
.hero--imagebg { position: relative; padding: 0; }
.hero--imagebg .hero-bg-img { width: 100%; height: clamp(320px,52vw,560px); object-fit: cover; }
.hero--imagebg .hero-bg-card {
  position: relative; margin: -90px 20px 0; background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 28px; max-width: 900px; margin-left: auto; margin-right: auto;
}

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; padding: 14px 20px;
  border-radius: 10px; font-weight: 700; font-size: .95rem; border: 2px solid transparent; cursor: pointer;
  min-height: 52px;
}
.btn-call { background: var(--accent); color: var(--white); }
.btn-sms { background: var(--white); color: var(--accent); border-color: var(--accent); }
.btn-kakao { background: var(--kakao); color: var(--kakao-text); }
.btn-outline { background: transparent; border-color: var(--gray-300); color: var(--gray-900); }
.btn-block { width: 100%; }

.cta-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 8px; }

/* 프로세스 스텝 */
.process-steps { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.process-step { flex: 1 1 140px; text-align: center; padding: 20px 14px; background: var(--card); border-top: 4px solid var(--accent); border-radius: var(--radius); box-shadow: var(--shadow); }
.process-step__num { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--white); font-weight: 800; margin-bottom: 10px; }
.process-step__title { font-weight: 700; margin-bottom: 6px; }
.process-step__desc { font-size: .88rem; color: var(--gray-500); margin: 0; }
.process-arrow { display: flex; align-items: center; color: var(--gray-300); font-size: 1.4rem; }

/* 타임라인 */
.timeline { position: relative; margin-left: 12px; border-left: 3px solid var(--gray-300); padding-left: 28px; }
.timeline-item { position: relative; padding-bottom: 32px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ""; position: absolute; left: -35px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 3px solid var(--white); box-shadow: 0 0 0 2px var(--accent); }
.timeline-item__title { font-weight: 700; margin-bottom: 4px; }

/* 카드 그리드 */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.feature-card { background: var(--card); border: 1px solid var(--gray-100); border-top: 4px solid var(--accent); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.feature-card__num { font-weight: 800; color: var(--accent); font-size: .85rem; margin-bottom: 8px; display: block; }

.checklist-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.checklist-item { display: flex; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--gray-300); border-radius: 10px; padding: 14px 16px; font-weight: 600; }
.checklist-item input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }

/* 표 */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); box-shadow: var(--shadow); }
table.data-table { width: 100%; border-collapse: collapse; min-width: 480px; background: var(--white); }
table.data-table th, table.data-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--gray-100); font-size: .93rem; }
table.data-table thead th { background: var(--gray-900); color: var(--white); font-weight: 700; }
table.data-table tbody tr:nth-child(even) { background: var(--gray-100); }
table.data-table--dark thead th { background: var(--black); }
table.data-table--dark { background: var(--gray-900); color: var(--gray-100); }
table.data-table--dark td, table.data-table--dark th { border-color: #2c2f35; }
table.data-table--dark tbody tr:nth-child(even) { background: #24272d; }

/* 캐러셀 */
.carousel { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 18px; -webkit-overflow-scrolling: touch; }
.carousel-card {
  flex: 0 0 190px; scroll-snap-align: start; background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.carousel-card img { display: block; width: 100%; height: 200px; object-fit: cover; }
.carousel-card__body { padding: 16px; }
.carousel-card__body h3 { font-size: 1rem; margin-bottom: 6px; }
.carousel-card__body p { font-size: .88rem; margin-bottom: 10px; }
.carousel-card__link { font-weight: 700; color: var(--accent); font-size: .88rem; }

/* 차량 카드 */
.vehicle-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 240px)); gap: 18px; }
.vehicle-card { background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.vehicle-card img { display: block; width: 100%; height: 240px; object-fit: cover; }
.vehicle-card__body { padding: 14px; }
.vehicle-card__type { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--accent); background: #fdeef1; padding: 3px 10px; border-radius: 20px; margin-bottom: 8px; }
.vehicle-card__target {
  font-size: .85rem; color: var(--gray-500); margin-bottom: 12px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.vehicle-card .btn { padding: 10px 16px; min-height: auto; font-size: .88rem; }

/* 갤러리 */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 160px)); gap: 12px; }
.gallery-grid figure { margin: 0; flex: 1 1 140px; min-width: 0; max-width: 160px; }
.gallery-grid img { display: block; width: 100%; height: 200px; object-fit: contain; background: var(--gray-100); border-radius: 10px; }
.gallery-grid figcaption { font-size: .78rem; color: var(--gray-500); margin-top: 6px; text-align: center; }

/* 관련 페이지 카드 */
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.related-card { background: var(--white); border: 1px solid var(--gray-300); border-radius: 10px; padding: 16px; text-align: center; font-weight: 700; }
.related-card:hover { border-color: var(--accent); color: var(--accent); }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--white); border: 1px solid var(--gray-100); border-radius: 12px; padding: 6px 20px; }
.faq-item summary { cursor: pointer; padding: 14px 0; list-style: none; }
.faq-item summary h3 { display: inline; font-size: 1rem; font-weight: 700; margin: 0; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; float: right; color: var(--accent); font-weight: 800; }
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-a { padding: 0 0 16px; color: var(--gray-700); }

/* CTA 섹션 */
.cta-section { background: linear-gradient(135deg, var(--navy), var(--accent-dark)); color: var(--white); padding: 56px 0; text-align: center; }
.cta-section p { color: var(--gray-300); max-width: 560px; margin: 0 auto 24px; }
.cta-section .cta-buttons { max-width: 720px; margin: 0 auto; }

/* 모바일 고정 CTA */
.mobile-fixed-cta { display: none; }

/* 상담 준비 리스트 */
.prep-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; counter-reset: prep; }
.prep-item { background: var(--white); border: 1px solid var(--gray-100); border-radius: 10px; padding: 16px; box-shadow: var(--shadow); font-weight: 600; font-size: .9rem; }

.badge { display: inline-block; background: var(--gray-100); color: var(--gray-700); font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 20px; }

/* 사업자정보(푸터) */
.site-footer { background: var(--gray-900); color: var(--gray-300); padding: 36px 0 90px; font-size: .82rem; }
.site-footer .biz-info { color: var(--gray-300); }
.site-footer a { color: var(--silver); }
.site-footer a:hover { color: var(--white); }
.site-footer .copyright { color: var(--gray-500); margin-top: 10px; }

/* 반응형 */
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__image { order: -1; }
  .process-arrow { display: none; }
  .process-steps { flex-direction: column; }
  #about .feature-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important; }
  #vehicles-grid, #local-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important; }
}

@media (max-width: 640px) {
  .site-nav { display: none; }
  .cta-buttons { grid-template-columns: 1fr 1fr; }
  .cta-buttons .btn-kakao { grid-column: 1 / -1; }
  body { padding-bottom: 76px; }
  .mobile-fixed-cta {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: var(--white); border-top: 1px solid var(--gray-300);
    padding: 10px max(10px, env(safe-area-inset-left)) calc(10px + env(safe-area-inset-bottom));
    gap: 8px; box-shadow: 0 -6px 18px rgba(0,0,0,.08);
  }
  .mfc-btn { flex: 1; text-align: center; padding: 13px 6px; border-radius: 10px; font-weight: 700; font-size: .85rem; }
  .mfc-call { background: var(--accent); color: var(--white); }
  .mfc-sms { background: var(--gray-100); color: var(--gray-900); }
  .mfc-kakao { background: var(--kakao); color: var(--kakao-text); }
  .hero--imagebg .hero-bg-card { margin-top: -60px; padding: 20px; }
  #vehicles table.data-table, #how-to-choose table.data-table, #good-car-guide table.data-table { min-width: 0; table-layout: fixed; }
  #vehicles table.data-table th, #vehicles table.data-table td,
  #how-to-choose table.data-table th, #how-to-choose table.data-table td,
  #good-car-guide table.data-table th, #good-car-guide table.data-table td { padding: 10px 6px; font-size: .78rem; word-break: keep-all; }
  #good-car-guide table.data-table th:first-child, #good-car-guide table.data-table td:first-child { width: 30%; }
  .carousel { scroll-snap-type: x mandatory; padding: 6px 20px 18px; }
  .carousel-card { flex: 0 0 100%; }
  #home-services .related-grid, #detail-guides .related-grid, #home-local .related-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .veh-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .compare-split { grid-template-columns: 1fr !important; }
  .lead-answer, .stat-cards, .info-box, .warning-box { padding: 18px !important; }
}

/* ===== 상세페이지 공용 확장 컴포넌트 (18개 서비스 상세 / 지역 상세 공용) ===== */
.pv-accent-b { --accent: #1f5fa8; --accent-dark: #123a68; }

.lead-answer { background: var(--white); border-left: 5px solid var(--accent); border-radius: 10px; padding: 22px 26px; margin: 0 0 8px; box-shadow: var(--shadow); }
.lead-answer__label { display: inline-block; font-size: .78rem; font-weight: 800; color: var(--accent); letter-spacing: .04em; margin-bottom: 8px; }
.lead-answer p { margin: 0; font-size: 1.05rem; color: var(--gray-900); }

.veh-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.veh-grid figure { margin: 0; }
.veh-grid .veh-frame { position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--gray-100); }
.veh-grid .veh-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.veh-grid figcaption { font-size: .82rem; color: var(--gray-500); margin-top: 8px; text-align: center; }
@media (min-width: 641px) and (max-width: 900px) { .veh-grid { grid-template-columns: repeat(2, 1fr); } }

.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.stat-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; text-align: center; }
.stat-card__num { display: block; font-size: 1.7rem; font-weight: 800; color: var(--accent); margin-bottom: 4px; }
.stat-card__label { font-size: .88rem; color: var(--gray-500); }

.info-box { background: var(--bg-tint2); border-radius: var(--radius); padding: 20px 24px; border: 1px solid #d5e3f5; }
.info-box h4 { margin: 0 0 8px; font-size: 1rem; }
.warning-box { background: #fff6e9; border: 1px solid #f0d9ab; border-radius: var(--radius); padding: 18px 22px; }
.warning-box::before { content: "⚠ 참고"; display: block; font-weight: 800; color: #a06a00; margin-bottom: 6px; font-size: .85rem; }
.warning-box p { margin: 0; color: #6b4f00; }

.compare-split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.compare-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; border-top: 5px solid var(--gray-300); }
.compare-card--accent { border-top-color: var(--accent); }
.compare-card h4 { margin: 0 0 10px; }
.compare-card ul { margin: 0; padding-left: 18px; }
.compare-card ul li { margin-bottom: 6px; }

.timeline-v { position: relative; padding-left: 26px; border-left: 3px solid var(--gray-300); display: flex; flex-direction: column; gap: 22px; }
.timeline-v__item { position: relative; }
.timeline-v__item::before { content: ""; position: absolute; left: -32px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); }
.timeline-v__item h4 { margin: 0 0 4px; }
.timeline-v__item p { margin: 0; color: var(--gray-700); font-size: .92rem; }

.decision-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: center; }
.decision-flow__step { background: var(--white); border: 2px solid var(--accent); border-radius: 999px; padding: 10px 18px; font-weight: 700; font-size: .9rem; }
.decision-flow__arrow { color: var(--accent); font-weight: 800; }

/* 히어로 변형 킷 */
.hero--dashboard .wrap.hero__grid { align-items: stretch; }
.hero--dashboard .hero__text { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.hero--split .hero__grid { grid-template-columns: 1fr 1fr; }
.hero--magazine { background: linear-gradient(135deg, var(--navy), var(--black)); color: var(--white); }
.hero--magazine .hero__lead { color: var(--gray-300); }
.hero--magazine .hero__eyebrow { color: var(--accent); }
.hero--showroom { background: var(--bg-tint2); }
.hero--calc .hero__text { border: 2px dashed var(--accent); border-radius: var(--radius); padding: 24px; }
.hero--checklist .hero__eyebrow::before { content: "✓ "; }
.hero--timeline .hero__grid { grid-template-columns: 1.3fr .7fr; }
.hero--finance { background: linear-gradient(180deg, var(--bg-tint2), var(--bg)); }
.hero--finance .hero__text { border-radius: var(--radius); }
.hero--compare .hero__grid { grid-template-columns: 1fr 1fr; align-items: stretch; }
.hero--compare .hero__text { border-right: 3px dashed var(--gray-300); padding-right: 24px; }
@media (max-width: 640px) { .hero--compare .hero__text { border-right: 0; padding-right: 0; } }

@media (max-width: 640px) {
  .hero--split .hero__grid, .hero--timeline .hero__grid { grid-template-columns: 1fr; }
}
