/* ===========================================================================
   메인 페이지 리뉴얼 — clutch.ca 레이아웃/톤을 참고한 디자인.

   전부 #vkm-home 아래로 스코프를 잠근다. 나머지 화면은 원본 영카트 CSS
   (default_shop.css / style_resp.css)를 그대로 쓰고 있어서, 전역으로 풀면
   서브 페이지 레이아웃이 통째로 무너진다.
   =========================================================================== */

#vkm-home {
  --ink: #191919;
  --ink-2: #606060;
  --ink-3: #ababab;
  --line: #dddddd;
  --line-soft: #eeeeee;
  --bg: #ffffff;
  --bg-2: #f6f6f6;
  --accent: #e60012; /* VKM 기존 포인트 레드 */
  --accent-soft: #fff1f1;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 32px;

  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

#vkm-home *,
#vkm-home *::before,
#vkm-home *::after {
  box-sizing: border-box;
}

#vkm-home img {
  max-width: 100%;
}

#vkm-home a {
  color: inherit;
  text-decoration: none;
}

#vkm-home h1,
#vkm-home h2,
#vkm-home h3,
#vkm-home h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

#vkm-home p {
  margin: 0;
}

#vkm-home ul,
#vkm-home ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---------- 레이아웃 ---------- */

.vh-wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.vh-section {
  padding: 56px 0;
}

.vh-section + .vh-section {
  border-top: 1px solid var(--line-soft);
}

.vh-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.vh-head h2 {
  font-size: 32px;
  line-height: 1.2;
}

.vh-head .vh-more {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
}

.vh-head .vh-more:hover {
  color: var(--accent);
}

.vh-sub {
  margin-top: 6px;
  font-size: 16px;
  color: var(--ink-2);
}

/* ---------- 히어로 ---------- */

.vh-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}

.vh-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding: 56px 0 64px;
}

.vh-hero h1 {
  font-size: 36px;
  line-height: 1.3;
  max-width: 17em;
}

/* 히어로 이미지 */
.vh-hero-art {
  position: relative;
  align-self: stretch;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-2);
}

.vh-hero-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 히어로 하단 지표 */
.vh-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 84px;
}

.vh-stat {
  flex: 1 1 140px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.vh-stat b {
  display: block;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.vh-stat span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink-2);
}

/* ---------- 대형 배너 2장 ---------- */

.vh-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.vh-banner {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-2);
  min-height: 300px;
  border: 1px solid var(--line-soft);
}

.vh-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.vh-banner:hover img {
  transform: scale(1.04);
}

.vh-banner-body {
  position: relative;
  z-index: 1;
  padding: 28px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.94) 60%, rgba(255, 255, 255, 0));
}

.vh-banner-body h3 {
  font-size: 26px;
}

.vh-banner-body p {
  margin-top: 6px;
  font-size: 15px;
  color: var(--ink-2);
  max-width: 24em;
}

.vh-banner-go {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

/* ---------- 차량 카드 그리드 ---------- */

.vh-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.vh-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  transition: box-shadow 200ms ease, transform 200ms ease;
  height: 100%;
}

.vh-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.vh-card-img {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg-2);
  overflow: hidden;
}

.vh-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vh-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.vh-badge {
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid var(--accent);
  background: #fff;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}

.vh-badge.is-muted {
  border-color: var(--line);
  color: var(--ink-2);
}

.vh-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  flex: 1 1 auto;
}

.vh-card-body h3 {
  font-size: 17px;
  line-height: 1.3;
}

.vh-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-2);
}

.vh-card-meta .dot {
  color: var(--ink-3);
}

.vh-rule {
  height: 1px;
  background: var(--line);
}

.vh-price {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.vh-price-note {
  font-size: 12px;
  color: var(--ink-3);
}

.vh-card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.vh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  border: 1px solid transparent;
  cursor: pointer;
  transition: opacity 150ms ease, background 150ms ease, border-color 150ms ease;
  white-space: nowrap;
}

.vh-btn-primary {
  background: var(--accent);
  color: #fff;
}

.vh-btn-primary:hover {
  opacity: 0.88;
}

.vh-btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

.vh-btn-ghost:hover {
  border-color: var(--ink);
}

.vh-btn-dark {
  background: var(--ink);
  color: #fff;
}

.vh-btn-block {
  width: 100%;
}

.vh-card-actions .vh-btn {
  flex: 1 1 0;
  padding: 10px 8px;
}

.vh-empty {
  padding: 48px 0;
  text-align: center;
  color: var(--ink-3);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

/* ---------- 브랜드 재고 ---------- */

.vh-brands {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.vh-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 14px;
  background: #fff;
  transition: border-color 150ms ease;
}

.vh-brand:hover {
  border-color: var(--ink);
}

.vh-brand b {
  font-weight: 700;
}

.vh-brand span {
  color: var(--ink-2);
  font-size: 13px;
}

/* ---------- 왜 우리를 찾는가 ---------- */

/* 열 사이를 세로 실선으로 끊는다. gap 을 넉넉히 잡고 그 한가운데에 왼쪽
   테두리를 그리면, 칸 수가 반응형으로 줄어도 선이 따라 붙는다. */
.vh-why {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
}

.vh-why-item {
  position: relative;
}

.vh-why-item + .vh-why-item::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -24px;
  border-left: 1px solid var(--line);
}

.vh-why-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--bg-2);
}

.vh-why-item h3 {
  width: fit-content;
  max-width: 100%;
  margin: 18px auto 0;
  font-size: 23px;
  line-height: 1.35;
  text-align: left;
}

.vh-why-item p {
  width: fit-content;
  max-width: 84%;
  margin: 12px auto 0;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-2);
  text-align: left;
}

/* ---------- 소식 + 문의 ---------- */

.vh-news {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.vh-news-item {
  display: flex;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.vh-news-item img {
  width: 88px;
  height: 66px;
  object-fit: cover;
  border-radius: 8px;
  flex: none;
}

.vh-news-item h3 {
  font-size: 16px;
  line-height: 1.4;
}

.vh-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: #fff;
}

.vh-contact-act {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.vh-contact h3 {
  color: #fff;
  font-size: 20px;
}

.vh-contact p {
  margin-top: 8px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.72);
}

.vh-contact .vh-phone {
  display: block;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.vh-contact .vh-btn {
  background: #fff;
  color: var(--ink);
}

/* ---------- 사이트맵 ---------- */

.vh-sitemap {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.vh-sitemap h3 {
  font-size: 15px;
  margin-bottom: 10px;
}

.vh-sitemap a {
  display: block;
  padding: 4px 0;
  font-size: 14px;
  color: var(--ink-2);
}

.vh-sitemap a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- 반응형 ---------- */

@media (max-width: 1100px) {
  #vkm-home .vh-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  #vkm-home .vh-sitemap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #vkm-home .vh-news {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  #vkm-home .vh-hero-inner {
    grid-template-columns: minmax(0, 1fr);
    padding: 40px 0 48px;
  }
  #vkm-home .vh-hero h1 {
    font-size: 30px;
  }
  #vkm-home .vh-hero-art {
    order: -1;
    aspect-ratio: 16 / 9;
  }
  #vkm-home .vh-duo {
    grid-template-columns: minmax(0, 1fr);
  }
  #vkm-home .vh-why {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  #vkm-home .vh-why-item + .vh-why-item::before {
    left: 0;
    right: 0;
    top: -16px;
    bottom: auto;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  #vkm-home .vh-news {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  #vkm-home .vh-wrap {
    padding: 0 16px;
  }
  #vkm-home .vh-section {
    padding: 40px 0;
  }
  #vkm-home .vh-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #vkm-home .vh-head h2 {
    font-size: 26px;
  }
  #vkm-home .vh-hero h1 {
    font-size: 25px;
  }
  #vkm-home .vh-card-actions {
    flex-direction: column;
  }
}

@media (max-width: 460px) {
  #vkm-home .vh-grid,
  #vkm-home .vh-news,
  #vkm-home .vh-sitemap {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 글로벌 파트너만 원본 마크업(.main_sales)을 그대로 쓴다. 원본은 세로 간격을
   자기 margin-top 으로 잡는데, 여기서는 .vh-section 의 padding 이 이미 그 역할을
   하므로 중복분만 없앤다. 배치(5열 float)와 제목 스타일은 원본 그대로 둔다. */
#vkm-home .main_sales {
  margin-top: 0;
}

/* 원본 .main_sales 의 MORE 버튼은 #mid_part h2 a 규칙으로 꾸며져 있었는데,
   리뉴얼로 그 컨테이너가 사라져 제목과 같은 크기의 굵은 글씨로 남았다.
   로고 배치(5열 float)는 원본 그대로 두고 머리말만 다른 섹션과 맞춘다. */
#vkm-home .main_sales h2 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0 0 24px;
  padding: 0;
  border-bottom: 0;
  font-size: 32px;
  line-height: 1.2;
}

#vkm-home .main_sales h2 a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
}

#vkm-home .main_sales h2 a:hover {
  color: var(--accent);
}
