/*
Theme Name: 삼성카즈 118D
Theme URI: https://118dg.kjibs.com
Author: 삼성카즈
Author URI: https://118dg.kjibs.com
Description: BMW 118D중고차시세 전문 삼성카즈 테마
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: samsungcars-118d
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  background: #f5f7fa;
  color: #1a1a2e;
  line-height: 1.6;
  font-size: 16px;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ===== HEADER ===== */
.site-header {
  background: #0a0a1a;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-logo .logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #1565c0, #0d47a1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: -1px;
}
.site-logo .logo-text {
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.site-logo .logo-sub {
  color: #4fc3f7;
  font-size: 11px;
  font-weight: 500;
  display: block;
  margin-top: -4px;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.header-nav a {
  color: #cdd9e5;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.header-nav a:hover { color: #4fc3f7; }
.header-cta {
  background: linear-gradient(135deg, #1565c0, #0d47a1);
  color: white !important;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 13px !important;
  font-weight: 700 !important;
  transition: all 0.2s !important;
}
.header-cta:hover {
  background: linear-gradient(135deg, #1976d2, #1565c0) !important;
  transform: translateY(-1px);
}

/* ===== HERO SECTION ===== */
.hero-section {
  background: linear-gradient(135deg, #0a0a1a 0%, #0d1b2a 50%, #1a1a3e 100%);
  padding: 60px 20px 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(21,101,192,0.15) 0%, transparent 60%);
  animation: pulse-bg 6s ease-in-out infinite;
}
@keyframes pulse-bg {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(21,101,192,0.3);
  border: 1px solid rgba(79,195,247,0.4);
  color: #4fc3f7;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.hero-section h1 {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.hero-section h1 span.highlight {
  background: linear-gradient(135deg, #4fc3f7, #1565c0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  color: #8faac0;
  font-size: 16px;
  max-width: 560px;
  margin: 0 auto 30px;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}
.stat-item {
  text-align: center;
}
.stat-num {
  font-size: 28px;
  font-weight: 900;
  color: #4fc3f7;
  display: block;
}
.stat-label {
  font-size: 12px;
  color: #8faac0;
  margin-top: 2px;
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.btn-primary {
  background: linear-gradient(135deg, #1565c0, #0d47a1);
  color: white;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #1976d2, #1565c0);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(21,101,192,0.4);
  color: white;
}
.btn-secondary {
  background: transparent;
  color: #4fc3f7;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s;
  border: 1px solid rgba(79,195,247,0.4);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-secondary:hover {
  background: rgba(79,195,247,0.1);
  border-color: #4fc3f7;
  transform: translateY(-2px);
  color: #4fc3f7;
}

/* ===== INFO BAR ===== */
.info-bar {
  background: #1565c0;
  padding: 14px 20px;
}
.info-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.9);
  font-size: 13px;
  font-weight: 500;
}
.info-item strong {
  color: #fff;
  font-weight: 700;
}

/* ===== SECTION HEADER ===== */
.section-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.section-header {
  text-align: center;
  padding: 50px 0 30px;
}
.section-tag {
  display: inline-block;
  background: rgba(21,101,192,0.1);
  color: #1565c0;
  border: 1px solid rgba(21,101,192,0.25);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}
.section-sub {
  color: #6b7280;
  font-size: 14px;
}

/* ===== CAR GRID ===== */
.car-listing-section {
  background: #f5f7fa;
  padding-bottom: 60px;
}
.car-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-bottom: 20px;
}
@media (max-width: 900px) {
  .car-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .car-grid { grid-template-columns: 1fr; }
}

/* ===== CAR CARD ===== */
.car-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  transition: all 0.3s ease;
  border: 1px solid #e8ecf0;
}
.car-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(21,101,192,0.15);
  border-color: #1565c0;
}
.car-img-wrap {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #f0f4f8;
}
.car-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.car-card:hover .car-img-wrap img {
  transform: scale(1.05);
}
.car-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(21,101,192,0.9);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}
.car-badge.new {
  background: rgba(220,53,69,0.9);
}
.car-body {
  padding: 18px;
}
.car-name {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 4px;
  line-height: 1.4;
}
.car-trim {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 12px;
}
.car-specs {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  margin-bottom: 14px;
  background: #f8fafc;
  border-radius: 8px;
  overflow: hidden;
}
.spec-item {
  flex: 1;
  min-width: 80px;
  padding: 8px 10px;
  text-align: center;
  border-right: 1px solid #e8ecf0;
}
.spec-item:last-child { border-right: none; }
.spec-label {
  font-size: 10px;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 2px;
}
.spec-value {
  font-size: 12px;
  font-weight: 700;
  color: #374151;
}
.car-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}
.car-price {
  font-size: 22px;
  font-weight: 900;
  color: #1565c0;
}
.car-price sup {
  font-size: 13px;
  font-weight: 600;
  vertical-align: middle;
}
.btn-inquiry {
  background: linear-gradient(135deg, #1565c0, #0d47a1);
  color: white;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  display: inline-block;
  white-space: nowrap;
}
.btn-inquiry:hover {
  background: linear-gradient(135deg, #1976d2, #1565c0);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(21,101,192,0.4);
  color: white;
}

/* ===== PRICE INFO SECTION ===== */
.price-info-section {
  background: #ffffff;
  padding: 60px 20px;
}
.price-table-wrap {
  overflow-x: auto;
  margin-top: 20px;
  border-radius: 12px;
  border: 1px solid #e8ecf0;
}
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.price-table thead {
  background: #1565c0;
  color: white;
}
.price-table th {
  padding: 14px 16px;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
}
.price-table td {
  padding: 13px 16px;
  text-align: center;
  border-bottom: 1px solid #f0f4f8;
  color: #374151;
}
.price-table tbody tr:hover { background: #f8faff; }
.price-table tbody tr:last-child td { border-bottom: none; }
.price-table td:first-child { font-weight: 600; color: #1a1a2e; text-align: left; }
.price-range { color: #1565c0; font-weight: 700; }

/* ===== SEO CONTENT ===== */
.seo-content-section {
  background: #f5f7fa;
  padding: 60px 20px;
}
.seo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 30px;
}
@media (max-width: 700px) {
  .seo-grid { grid-template-columns: 1fr; }
}
.seo-card {
  background: white;
  border-radius: 14px;
  padding: 28px;
  border: 1px solid #e8ecf0;
}
.seo-card h3 {
  font-size: 17px;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid #1565c0;
}
.seo-card p, .seo-card li {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.8;
  margin-bottom: 8px;
}
.seo-card ul {
  list-style: none;
  padding: 0;
}
.seo-card li::before {
  content: '✓ ';
  color: #1565c0;
  font-weight: 700;
}
.spec-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}
.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #f8fafc;
  border-radius: 8px;
  font-size: 13px;
}
.spec-row dt { color: #9ca3af; font-size: 12px; }
.spec-row dd { font-weight: 700; color: #1a1a2e; font-size: 13px; }

/* ===== FAQ ===== */
.faq-section {
  background: #ffffff;
  padding: 60px 20px;
}
.faq-list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  border: 1px solid #e8ecf0;
  border-radius: 12px;
  overflow: hidden;
}
.faq-q {
  padding: 18px 22px;
  background: #f8fafc;
  font-size: 15px;
  font-weight: 700;
  color: #1a1a2e;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.faq-q::after {
  content: '+';
  font-size: 22px;
  color: #1565c0;
  font-weight: 300;
  flex-shrink: 0;
}
.faq-item.open .faq-q::after { content: '−'; }
.faq-a {
  padding: 18px 22px;
  font-size: 14px;
  color: #6b7280;
  line-height: 1.8;
  border-top: 1px solid #e8ecf0;
  display: none;
}
.faq-item.open .faq-a { display: block; }

/* ===== CONTACT SECTION ===== */
.contact-section {
  background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3e 100%);
  padding: 60px 20px;
  text-align: center;
}
.contact-section h2 {
  font-size: 28px;
  font-weight: 900;
  color: white;
  margin-bottom: 10px;
}
.contact-section p {
  color: #8faac0;
  font-size: 15px;
  margin-bottom: 30px;
  line-height: 1.7;
}
.contact-methods {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.contact-btn {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  padding: 16px 30px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  transition: all 0.3s;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.contact-btn:hover {
  background: rgba(21,101,192,0.5);
  border-color: #4fc3f7;
  transform: translateY(-2px);
  color: white;
}
.contact-btn.primary-btn {
  background: linear-gradient(135deg, #1565c0, #0d47a1);
  border-color: transparent;
}
.contact-btn.primary-btn:hover {
  background: linear-gradient(135deg, #1976d2, #1565c0);
}

/* ===== PHONE MODAL ===== */
.phone-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  backdrop-filter: blur(4px);
}
.phone-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.phone-modal {
  background: white;
  border-radius: 20px;
  padding: 40px 36px;
  text-align: center;
  max-width: 380px;
  width: 90%;
  transform: scale(0.9);
  transition: transform 0.3s;
  box-shadow: 0 30px 80px rgba(0,0,0,0.3);
}
.phone-modal-overlay.active .phone-modal {
  transform: scale(1);
}
.phone-modal-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #1565c0, #0d47a1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 26px;
}
.phone-modal h3 {
  font-size: 18px;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 6px;
}
.phone-modal p {
  color: #6b7280;
  font-size: 13px;
  margin-bottom: 20px;
}
.phone-number-display {
  font-size: 30px;
  font-weight: 900;
  color: #1565c0;
  letter-spacing: 1px;
  margin-bottom: 20px;
  padding: 16px;
  background: #f0f7ff;
  border-radius: 12px;
  border: 2px solid #1565c0;
}
.phone-modal-close {
  background: #f0f4f8;
  color: #6b7280;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s;
}
.phone-modal-close:hover { background: #e5e7eb; }

/* ===== FOOTER ===== */
.site-footer {
  background: #0a0a1a;
  color: #8faac0;
  padding: 40px 20px 24px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.footer-brand .logo-text {
  color: white;
  font-size: 22px;
  font-weight: 900;
  display: block;
  margin-bottom: 6px;
}
.footer-brand p {
  font-size: 13px;
  line-height: 1.7;
  max-width: 300px;
}
.footer-links {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-col h4 {
  color: white;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: #8faac0;
  margin-bottom: 8px;
  transition: color 0.2s;
}
.footer-col a:hover { color: #4fc3f7; }
.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin: 0 0 24px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}
.biz-info {
  font-size: 12px;
  line-height: 1.9;
  color: #6b7280;
}
.biz-info strong { color: #8faac0; }
.footer-copyright {
  font-size: 12px;
  color: #6b7280;
  text-align: right;
}

/* ===== TOAST NOTIFICATION ===== */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1565c0;
  color: white;
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 30px rgba(21,101,192,0.4);
  z-index: 9998;
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.4s ease;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ===== MOBILE NAV ===== */
.mobile-nav-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}
.mobile-nav-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s;
}
@media (max-width: 768px) {
  .header-nav { display: none; }
  .mobile-nav-btn { display: flex; }
  .hero-stats { gap: 20px; }
  .stat-num { font-size: 22px; }
  .info-bar-inner { gap: 20px; }
  .footer-top { flex-direction: column; }
  .footer-bottom { flex-direction: column; }
  .footer-copyright { text-align: left; }
}

/* ===== SCROLL TOP ===== */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, #1565c0, #0d47a1);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(21,101,192,0.4);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 997;
}
.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}
.scroll-top:hover { transform: translateY(-3px); }

/* ===== BREADCRUMB ===== */
.breadcrumb {
  background: white;
  padding: 10px 0;
  border-bottom: 1px solid #e8ecf0;
}
.breadcrumb-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #9ca3af;
}
.breadcrumb a { color: #1565c0; }
.breadcrumb span { color: #9ca3af; }
