/* ============================================
   Juno Auto Mockup — NH 밝은 톤 + First Motors 구조
   ============================================ */

:root {
  --main-color: #0055a5;
  --main-color-dark: #003d78;
  --accent: #e93512;
  --accent-dark: #c42a0a;
  --navy: #0c1532;
  --bg-page: #ffffff;
  --bg-section: #f5f7fa;
  --bg-input: #f2f2f2;
  --border-light: #eaeaea;
  --text-primary: #0e0e0e;
  --text-secondary: #4a4a4a;
  --text-muted: #828282;
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.08);
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 20px;
  --inner-nh: 1024px;
  --inner-fm: 1200px;
  --font: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  color: var(--text-primary);
  background: var(--bg-page);
  letter-spacing: -0.03em;
  line-height: 1.5;
}

body.home { padding-bottom: 120px; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; }

.inner_wrap {
  max-width: var(--inner-nh);
  margin: 0 auto;
  padding: 0 20px;
}

.inner {
  max-width: var(--inner-fm);
  margin: 0 auto;
  padding: 0 20px;
}

.blind {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.hidden { display: none !important; }

.text-accent { color: var(--accent); font-weight: 700; }

/* ─── Header ─── */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 20px;
  position: relative;
}

.award-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  min-width: 140px;
}

.award-icon { color: var(--accent); font-size: 16px; }

.logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  text-align: center;
}

.logo a { display: block; }

.logo-text {
  font-size: 28px;
  font-weight: 800;
  color: var(--main-color);
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.logo-accent { color: var(--accent); }

.logo-sub {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

.header-phone {
  font-size: 18px;
  font-weight: 700;
  color: var(--main-color);
  min-width: 140px;
  text-align: right;
}

.gnb {
  background: var(--main-color);
}

.gnb ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.gnb li a {
  display: block;
  padding: 16px 8px;
  font-weight: 700;
  font-size: 17px;
  color: #fff;
  transition: opacity 0.2s;
}

.gnb li a:hover { opacity: 0.85; }

/* ─── Hero zone ─── */
.hero-zone {
  background: linear-gradient(160deg, #eef2f7 0%, #ffffff 55%, #f8fafc 100%);
}

.hero.visual {
  position: relative;
  padding: 40px 0 20px;
}

.hero__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 360px;
}

.hero__text {
  flex: 1;
  max-width: 520px;
}

.hero__brand {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--main-color);
  margin-bottom: 4px;
}

.hero__title {
  font-size: 32px;
  font-weight: 800;
  color: var(--main-color);
  line-height: 1.25;
  margin: 0 0 12px;
}

.hero__subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin: 0 0 20px;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.badge-pill {
  display: inline-block;
  padding: 8px 18px;
  border: 2px solid #222;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.8);
}

.hero__desc {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.7;
}

.hero__person {
  flex-shrink: 0;
  position: relative;
  text-align: center;
}

.hero__person-img {
  max-height: 400px;
  width: auto;
  object-fit: contain;
  object-position: bottom center;
}

.photo-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin: 8px 0 0;
  line-height: 1.4;
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-bottom: 16px;
}

.hero-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: #fff;
}

.hero-dots span.active {
  width: 28px;
  border-radius: 99px;
  background: var(--main-color);
  border-color: var(--main-color);
}

/* ─── Counsel card ─── */
.main_counsel {
  padding: 20px 0 40px;
}

.counsel-card {
  display: flex;
  align-items: stretch;
  background: linear-gradient(135deg, #e8eef5 0%, #f0f4f8 100%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  min-height: 130px;
}

.counsel-card__photo-wrap {
  width: 280px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #dce4ed 0%, #e8eef5 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.counsel-card__photo {
  width: 100%;
  max-height: 160px;
  object-fit: contain;
  object-position: bottom center;
}

.counsel-card__form {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
}

.inp_wrap { flex: 0 0 auto; }

.inp_wrap input {
  width: 220px;
  height: 49px;
  padding: 0 14px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 15px;
  background: #fff;
  font-family: var(--font);
}

.inp_wrap input:focus {
  outline: 2px solid var(--main-color);
  outline-offset: 0;
  border-color: var(--main-color);
}

.counsel-card__form .send {
  flex: 1;
  min-width: 140px;
}

.counsel-card__form .send button {
  width: 100%;
  padding: 18px 20px;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  border: none;
  border-radius: 10px;
  background: var(--main-color);
  transition: background 0.2s;
}

.counsel-card__form .send button:hover {
  background: var(--main-color-dark);
}

/* ─── Search panel (First Motors) ─── */
.quick_search {
  padding: 0 20px 20px;
}

.search-panel {
  background: #fff;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 40px 32px 50px;
}

.search-panel h3 {
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 28px;
  color: var(--text-primary);
}

.choose_cars {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
}

.car_tab {
  padding: 0 20px 8px;
  font-size: 26px;
  font-weight: 600;
  color: #9b9b9b;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.car_tab.on,
.car_tab:hover {
  color: var(--accent) !important;
  border-bottom-color: var(--accent);
}

.search_form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.search_form select {
  flex: 1;
  min-width: 160px;
  height: 55px;
  padding: 0 16px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  font-size: 17px;
  color: var(--text-secondary);
  font-family: var(--font);
  appearance: auto;
}

.search_btn {
  flex: 0 0 140px;
  height: 55px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--navy) !important;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  transition: background 0.2s;
}

.search_btn:hover { background: #1a2848 !important; }

.plate_search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
  max-width: 320px;
}

.plate_search input {
  flex: 1;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #ccc;
  border-radius: var(--radius-sm);
  font-size: 16px;
}

.plate_search_btn {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── Quick links ─── */
.srch_quick {
  padding: 20px;
}

.srch_quick .quick-block {
  background: #fff;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  margin-bottom: 20px;
}

.srch_quick h4 {
  font-size: 18px;
  margin: 0 0 20px;
  color: var(--text-primary);
}

.brand_grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 12px;
}

.brand_item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 4px;
  border-radius: 8px;
  transition: background 0.2s;
}

.brand_item:hover { background: var(--bg-section); }

.brand_logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  color: #fff;
}

.brand_logo.hyundai { background: #002c5f; }
.brand_logo.kia { background: #05141f; }
.brand_logo.bmw { background: #0066b1; }
.brand_logo.benz { background: #222; }
.brand_logo.audi { background: #bb0a30; }
.brand_logo.vw { background: #001e50; }
.brand_logo.toyota { background: #eb0a1e; }
.brand_logo.lexus { background: #1a1a1a; }
.brand_logo.tesla { background: #e82127; }

.brand_item span:last-child {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
}

.type_grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.type_item {
  text-align: center;
  padding: 16px 8px;
  border-radius: 8px;
  transition: background 0.2s;
}

.type_item:hover { background: var(--bg-section); }

.type_icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.type_item span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.price_grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.price_chip {
  padding: 12px 20px;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.price_chip:hover {
  background: var(--accent);
  color: #fff;
}

/* ─── Hot / Find sections ─── */
.hot_section,
.find_section,
.car_list_section {
  padding: 48px 20px;
}

.hot_section h2,
.find_section h2,
.car_list_section h2 {
  font-size: 32px;
  font-weight: 600;
  text-align: center;
  margin: 0 0 32px;
}

.hot_section h2 span,
.find_section h2 span,
.car_list_section h2 span {
  font-weight: 800;
  color: var(--main-color);
}

.tag_list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.tag_list a {
  display: block;
  padding: 14px 24px;
  background: #fff;
  border: 2px solid var(--border-light);
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s;
}

.tag_list a:hover {
  border-color: var(--main-color);
  color: var(--main-color);
}

.tab_wrap {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 24px;
  border-bottom: 2px solid #eee;
}

.tab_wrap button {
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: none;
  position: relative;
}

.tab_wrap button.active {
  color: var(--main-color);
}

.tab_wrap button.active::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 4px;
  background: var(--main-color);
}

.content_wrap .tab { display: none; }
.content_wrap .tab.active { display: block; }

.find_brand_grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.find_brand_grid a {
  text-align: center;
}

.find_brand_grid .fb {
  display: block;
  padding: 20px 12px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.2s;
}

.find_brand_grid a:hover .fb {
  border-color: var(--main-color);
  color: var(--main-color);
  box-shadow: var(--shadow-sm);
}

.find_type_row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.find_type_row a {
  padding: 16px 28px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s;
}

.find_type_row a:hover {
  background: var(--main-color);
  color: #fff;
  border-color: var(--main-color);
}

/* ─── Car cards ─── */
.car_cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.car_card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.car_card a {
  display: block;
  color: inherit;
}

.car_card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.car_card_img {
  height: 140px;
  background: linear-gradient(135deg, #e8ecf1 0%, #d4dce6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  overflow: hidden;
}

.car_card_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.car_card_body {
  padding: 14px;
}

.car_card_name {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 6px;
}

.car_card_meta {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 8px;
}

.car_card_price {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
}

.more_btn {
  display: block;
  width: 280px;
  margin: 0 auto;
  padding: 16px;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  background: var(--main-color);
  border-radius: 18px;
  transition: background 0.2s;
}

.more_btn:hover { background: var(--main-color-dark); }

.car_list_section.import {
  background: var(--bg-section);
  max-width: 100%;
  border-radius: 0;
}

/* ─── Footer counsel ─── */
.footer_counsel {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  background: rgba(0, 85, 165, 0.92);
  z-index: 100;
  padding: 8px 0;
  backdrop-filter: blur(6px);
}

.footer_counsel_inner {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer_counsel_photo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 8px;
  background: rgba(255,255,255,0.2);
}

.footer_counsel_form {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer_counsel_form input {
  height: 40px;
  padding: 0 12px;
  border: none;
  border-radius: 5px;
  font-size: 14px;
  flex: 1;
  max-width: 200px;
}

.footer_counsel_form button {
  padding: 12px 24px;
  font-weight: 700;
  color: var(--main-color);
  background: #fff;
  border: 2px solid #afafaf;
  border-radius: 12px;
  font-size: 15px;
}

/* ─── Footer ─── */
.site-footer {
  background: #f1f1f1;
  padding: 48px 20px;
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
}

.footer-brand {
  font-size: 20px;
  font-weight: 800;
  color: var(--main-color);
  margin: 0 0 12px;
}

.footer-law {
  margin-top: 16px;
  font-size: 13px;
}

/* ─── Toast ─── */
.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 14px 28px;
  background: var(--navy);
  color: #fff;
  border-radius: 8px;
  font-size: 15px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 200;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ─── Responsive ─── */
@media (max-width: 1100px) {
  .brand_grid { grid-template-columns: repeat(5, 1fr); }
  .car_cards { grid-template-columns: repeat(3, 1fr); }
  .find_brand_grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
  .header-top { flex-wrap: wrap; justify-content: center; gap: 12px; }
  .logo { position: static; transform: none; order: -1; }
  .award-badge, .header-contact { min-width: auto; }

  .hero__inner {
    flex-direction: column;
    text-align: center;
    min-height: auto;
  }

  .hero__text { max-width: 100%; }
  .hero__badges { justify-content: center; }
  .hero__person-img { max-height: 280px; }

  .counsel-card {
    flex-direction: column;
  }

  .counsel-card__photo-wrap {
    width: 100%;
    height: 140px;
  }

  .counsel-card__form {
    flex-direction: column;
    padding: 20px;
  }

  .inp_wrap input { width: 100%; }
  .counsel-card__form .send { width: 100%; }

  .search_form select { min-width: 100%; }
  .search_btn { width: 100%; flex: 1; }

  .brand_grid { grid-template-columns: repeat(4, 1fr); }
  .type_grid { grid-template-columns: repeat(3, 1fr); }
  .car_cards { grid-template-columns: repeat(2, 1fr); }

  .gnb ul { justify-content: center; gap: 4px; }
  .gnb li a { font-size: 14px; padding: 12px 6px; }

  .footer_counsel_inner { flex-wrap: wrap; }
  .footer_counsel_photo { display: none; }
}

@media (max-width: 520px) {
  .hero__title { font-size: 24px; }
  .brand_grid { grid-template-columns: repeat(3, 1fr); }
  .car_cards { grid-template-columns: 1fr; }
  .find_brand_grid { grid-template-columns: repeat(2, 1fr); }
  .tab_wrap button { padding: 12px 14px; font-size: 14px; }
}
