:root {
  /* Sky — primary brand */
  --brand: #0EA5E9;
  --brand-light: #38BDF8;
  --brand-dark: #0284C7;
  --brand-muted: #E0F2FE;
  --brand-rgb: 14, 165, 233;
  --wing: var(--brand);
  --wing-light: var(--brand-light);
  --brand-wing: #007dd1;

  /* Navy */
  --navy: #0F172A;
  --navy-mid: #1E293B;
  --navy-soft: #334155;

  /* Purple — secondary / Pro */
  --purple: #7C3AED;
  --purple-deep: #5B21B6;
  --purple-soft: #A78BFA;
  --pro-red: var(--purple);

  /* Neutrals */
  --dark: #0F172A;
  --mid: #475569;
  --light: #94A3B8;
  --bg: #F1F5F9;
  --white: #FFFFFF;
  --border: #E2E8F0;
  --card-shadow: 0 2px 16px rgba(15, 23, 42, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-sans, 'Noto Sans KR', 'Noto Sans', 'DM Sans', sans-serif);
  background: var(--bg);
  color: var(--dark);
  font-size: 14px;
  line-height: 1.6;
}

/* ── TOP BAR ── */
.topbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--light);
}
.topbar-right { display: flex; gap: 16px; }
.topbar-right a { color: var(--mid); text-decoration: none; font-size: 12px; }
.topbar-right a:hover { color: var(--wing); }

/* ── HEADER ── */
header {
  background-color: #ffffff;
  background: var(--white, #ffffff);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.header-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px;
  min-height: 84px;
  height: auto;
  display: flex; align-items: center; gap: 24px;
  background-color: #ffffff;
  background: inherit;
}
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.header-logo-img {
  display: block;
  height: 45px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}
.brand-logo {
  font-family: var(--font-sans, 'DM Sans', 'Noto Sans KR', sans-serif);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--dark);
  line-height: 1;
}
.brand-logo .brand-wing { color: var(--brand-wing); }
.logo-text.brand-logo { font-size: 22px; }
.search-wrap {
  flex: 1; max-width: 420px;
  display: flex; align-items: center;
  border: 1.5px solid var(--border);
  border-radius: 8px; overflow: hidden;
  background: var(--white);
}
.search-wrap:focus-within { border-color: var(--wing); }
.search-wrap input {
  flex: 1; border: none; outline: none;
  padding: 10px 14px; font-size: 13px;
  color: var(--dark); background: transparent;
  font-family: inherit;
}
.search-wrap input::placeholder { color: var(--light); }
.offer-btn {
  background: var(--wing);
  color: white; border: none; cursor: pointer;
  padding: 10px 18px; font-size: 13px; font-weight: 600;
  white-space: nowrap; font-family: inherit;
  transition: background 0.2s;
}
.offer-btn:hover { background: var(--wing-light); }
.header-icons {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  margin-inline-start: auto;
  margin-inline-end: 0;
  flex-shrink: 0;
}
.header-icon-btn,
.header-icons > a {
  color: var(--mid);
  text-decoration: none;
  font-size: 18px;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}
.header-icon-btn:hover,
.header-icons > a:hover { color: var(--wing); }

.header-icon-btn {
  position: relative;
}

.header-notif-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: #e74c3c;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.lang-switcher {
  position: relative;
}
.lang-switcher-toggle.is-open,
.lang-switcher.is-open .lang-switcher-toggle { color: var(--wing); }
.lang-switcher-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  min-width: 140px;
  padding: 6px 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  z-index: 200;
}
.lang-switcher-panel[hidden] { display: none !important; }
.lang-switcher-option {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--dark);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.lang-switcher-option:hover {
  background: #f1f5f9;
  color: var(--wing);
}
.lang-switcher-option.is-active {
  font-weight: 700;
  color: var(--wing);
  background: #f0f9ff;
}

/* 헤더 바는 LTR 그리드 유지(로고–검색–우측 아이콘). 본문만 RTL */
[dir="rtl"] .header-inner {
  direction: ltr;
}
[dir="rtl"] .header-icons {
  direction: ltr;
  flex-direction: row;
}
[dir="rtl"] .lang-switcher-panel {
  right: 0;
  left: auto;
}

/* ── NAV ── */
.site-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px;
  display: flex; gap: 0;
}
.nav-inner a {
  display: block; padding: 14px 20px;
  font-size: 13px; font-weight: 500;
  color: var(--mid); text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
.nav-inner a:hover, .nav-inner a.active {
  color: var(--wing); border-bottom-color: var(--wing);
}

/* ── HERO BANNER ── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 55%, #0c4a6e 100%);
  position: relative; overflow: hidden;
  padding: 72px 24px 80px;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60"><circle cx="30" cy="30" r="1" fill="%23ffffff08"/></svg>') repeat;
  pointer-events: none;
}
.hero-badge {
  position: relative;
  z-index: 1;
  display: inline-flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 40px; padding: 8px 24px;
  margin-bottom: 28px;
}
.hero-badge .hero-brand-logo {
  font-size: 20px;
  font-weight: 700;
  color: white;
  text-transform: none;
}
.hero-badge .hero-brand-logo .brand-wing { color: var(--brand-wing); }
.hero h1 {
  position: relative;
  z-index: 1;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700; color: white;
  letter-spacing: -0.3px; margin-bottom: 16px;
}
.hero p {
  position: relative;
  z-index: 1;
  font-size: 14px; color: rgba(255,255,255,0.6);
  max-width: 520px; margin: 0 auto; line-height: 1.8;
}

/* ── SECTIONS ── */
.section {
  max-width: 1200px; margin: 0 auto;
  padding: 52px 24px 0;
}
.section-header { margin-bottom: 24px; }
.section-header h2 {
  font-size: 20px; font-weight: 700; color: var(--dark);
  letter-spacing: -0.3px; margin-bottom: 4px;
}
.section-header p {
  font-size: 12px; color: var(--light);
}

/* ── CAR GRID ── */
.car-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.car-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.car-card-link .car-card {
  height: 100%;
}

.car-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.car-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.13);
}
.car-img {
  position: relative;
  aspect-ratio: 4/3;
  background: #eee;
  overflow: hidden;
}
.car-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.3s;
}
.car-card:hover .car-img img { transform: scale(1.04); }
.pro-badge {
  position: absolute; top: 8px; right: 8px;
  background: var(--pro-red);
  color: white; font-size: 10px; font-weight: 700;
  padding: 3px 8px; border-radius: 4px;
  letter-spacing: 0.3px;
}
.car-info { padding: 12px 14px 14px; }
.car-year-make {
  font-size: 10px; color: var(--light);
  text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 3px;
}
.car-name {
  font-size: 13px; font-weight: 600; color: var(--dark);
  margin-bottom: 8px; line-height: 1.4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.car-specs {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 10px;
}
.car-spec {
  font-size: 10px; color: var(--light);
  display: flex; align-items: center; gap: 3px;
}
.car-spec::before {
  content: ''; display: inline-block;
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--border);
}
.car-spec:first-child::before { display: none; }
.car-price {
  font-size: 17px; font-weight: 700; color: var(--dark);
  letter-spacing: -0.5px;
}
.car-price sup { font-size: 12px; font-weight: 500; color: var(--mid); }

/* ── VIEW MORE ── */
.view-more-wrap { text-align: center; padding: 24px 0 0; }
.view-more-btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--border);
  background: var(--white); color: var(--mid);
  padding: 11px 28px; border-radius: 8px;
  font-size: 13px; font-weight: 500;
  cursor: pointer; text-decoration: none;
  transition: all 0.2s; font-family: inherit;
}
.view-more-btn:hover {
  border-color: var(--wing); color: var(--wing);
  background: var(--brand-muted);
}

/* ── BANNER SLIDE ── */
.info-banner-wrap {
  max-width: 1200px; margin: 52px auto 0;
  padding: 0 24px;
}
.info-banner {
  background: linear-gradient(135deg, var(--navy-mid), var(--navy-soft));
  border-radius: 16px; padding: 48px 56px;
  display: flex; align-items: center; justify-content: space-between;
  position: relative; overflow: hidden;
}
.info-banner .banner-content {
  position: relative;
  z-index: 1;
}
.info-banner .banner-media {
  position: relative;
  z-index: 1;
}
.info-banner::before {
  content: var(--banner-watermark, '01');
  position: absolute; right: 260px; top: 50%;
  transform: translateY(-50%);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 120px; color: rgba(255,255,255,0.04);
  line-height: 1;
}
.banner-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 48px; color: rgba(255,255,255,0.15);
  line-height: 1; margin-bottom: 12px;
}
.banner-text {
  font-size: 18px; font-weight: 600; color: white;
  line-height: 1.6; max-width: 400px;
}
.banner-text em {
  color: var(--wing); font-style: normal;
}
.banner-nav {
  display: flex; gap: 8px; margin-top: 20px;
}
.banner-nav button {
  width: 32px; height: 32px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
  color: white; border-radius: 6px;
  cursor: pointer; font-size: 14px;
  transition: all 0.2s;
}
.banner-nav button:hover { background: rgba(255,255,255,0.15); }
.banner-page { font-size: 11px; color: rgba(255,255,255,0.4); align-self: center; margin-left: 8px; }
.banner-img {
  width: 280px; height: 180px; object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.4));
}
.banner-img-placeholder {
  width: 280px; height: 180px;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border-radius: 12px; border: 1px dashed rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.2); font-size: 12px;
}

/* ── FAQ ── */
.faq-section {
  max-width: 1200px; margin: 52px auto 0;
  padding: 0 24px 60px;
}
.faq-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
}
.faq-header h2 {
  font-size: 20px; font-weight: 700; color: var(--dark);
  letter-spacing: -0.3px;
}
.faq-header .faq-logos {
  display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
}
.faq-logos .brand-logo { font-size: 18px; }
.faq-logos .e-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  color: var(--purple-soft);
  font-style: italic;
}
.footer-main-brand.brand-logo {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.85);
}
.footer-main-brand.brand-logo .brand-wing { color: var(--brand-wing); }
.faq-logos .e-logo { color: var(--pro-red); font-weight: 700; font-style: italic; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: 10px; margin-bottom: 8px;
  overflow: hidden; background: var(--white);
  transition: box-shadow 0.2s;
}
.faq-item:hover { box-shadow: var(--card-shadow); }
.faq-q {
  padding: 16px 20px;
  display: flex; align-items: flex-start; gap: 12px;
  cursor: pointer;
  width: 100%;
  border: none;
  background: transparent;
  text-align: inherit;
  font-family: inherit;
}
.faq-q:disabled { cursor: default; }
.faq-q:disabled .faq-arrow { display: none; }
.faq-a {
  padding: 0 20px 16px 52px;
  font-size: 13px; line-height: 1.7; color: var(--mid);
}
.faq-a p { margin: 0; }
.faq-item.is-open { border-color: var(--wing); }
.faq-item.is-open .faq-arrow {
  transform: rotate(180deg);
  color: var(--wing);
}
.faq-icon {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--wing); color: white;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.faq-q-text { font-size: 13px; color: var(--dark); font-weight: 500; flex: 1; }
.faq-arrow { color: var(--light); font-size: 12px; margin-left: auto; }

/* ── FOOTER ── */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.5);
  padding: 40px 24px;
  font-size: 11px; text-align: center;
  line-height: 2;
}
.footer-legal-links {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 8px 20px; margin-bottom: 12px;
}
.footer-legal-links a {
  color: rgba(255,255,255,0.65); text-decoration: none; font-size: 11px;
}
.footer-legal-links a:hover { color: var(--wing); }

/* ── QUICK BTN ── */
.quick-btn {
  position: fixed; right: 0; top: 50%;
  transform: translateY(-50%);
  background: var(--wing);
  color: white; padding: 14px 10px;
  writing-mode: vertical-rl;
  font-size: 11px; font-weight: 700;
  letter-spacing: 1px; cursor: pointer;
  border-radius: 8px 0 0 8px;
  z-index: 200;
  box-shadow: -2px 0 12px rgba(var(--brand-rgb), 0.35);
}

@media (max-width: 900px) {
  .car-grid { grid-template-columns: repeat(2, 1fr); }
  .header-inner { gap: 12px; }
  .header-logo-img { height: 38px; max-width: 152px; }
  .search-wrap { max-width: 260px; }
  .info-banner { flex-direction: column; gap: 24px; text-align: center; }
}
@media (max-width: 560px) {
  .car-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero { padding: 48px 16px 56px; }
}
