/*
Theme Name: 삼성카즈 I30
Theme URI: http://i30.rvscar.com
Author: 삼성카즈
Author URI: http://i30.rvscar.com
Description: 현대 I30 중고차 전문 삼성카즈 공식 홈페이지
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: samsung-i30
*/

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

:root {
  --primary: #1a2e4a;
  --accent: #e8382a;
  --light-gray: #f5f7fa;
  --border: #e0e4eb;
  --text: #222;
  --muted: #666;
  --white: #fff;
  --card-shadow: 0 2px 16px rgba(0,0,0,0.10);
  --radius: 10px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }

img { max-width: 100%; display: block; }

/* ===== HEADER ===== */
.site-header {
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.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-mark {
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 1px;
}

.site-logo .logo-text {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.site-nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

.site-nav a {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.2s;
  font-weight: 500;
}

.site-nav a:hover { background: rgba(255,255,255,0.12); color: #fff; }

.site-nav .nav-contact {
  background: var(--accent);
  color: #fff !important;
  font-weight: 700;
}

.site-nav .nav-contact:hover { background: #c92d20; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #0f1e35 100%);
  color: #fff;
  padding: 80px 20px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}

.hero-inner { position: relative; max-width: 800px; margin: 0 auto; }

.hero h1 {
  font-size: clamp(52px, 10vw, 96px);
  font-weight: 900;
  letter-spacing: 6px;
  line-height: 1;
  margin-bottom: 16px;
  color: #fff;
}

.hero-accent { color: var(--accent); }

.hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 12px;
}

.hero-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.8;
}

.hero-badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-badge {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
}

/* ===== SECTION ===== */
.section {
  padding: 60px 20px;
}

.section-alt { background: var(--light-gray); }

.section-inner { max-width: 1200px; margin: 0 auto; }

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 10px;
}

.section-desc {
  font-size: 15px;
  color: var(--muted);
}

/* ===== CARS GRID ===== */
.cars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.car-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--border);
}

.car-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.14);
}

.car-img-wrap {
  position: relative;
  background: #f0f2f5;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.car-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.car-card:hover .car-img-wrap img { transform: scale(1.04); }

.car-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
}

.car-body { padding: 20px; }

.car-model {
  font-size: 17px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
}

.car-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
  margin-bottom: 16px;
}

.car-spec {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

.car-spec-icon {
  width: 6px;
  height: 6px;
  background: var(--border);
  border-radius: 50%;
  flex-shrink: 0;
}

.car-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.car-price {
  font-size: 22px;
  font-weight: 900;
  color: var(--accent);
}

.car-price span {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.btn-inquiry {
  background: var(--primary);
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-inquiry:hover { background: var(--accent); }

/* ===== FEATURES ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

.feature-item {
  text-align: center;
  padding: 32px 20px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.feature-icon {
  font-size: 36px;
  margin-bottom: 14px;
}

.feature-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

/* ===== FOOTER ===== */
.site-footer {
  background: #0d1e30;
  color: rgba(255,255,255,0.6);
  padding: 40px 20px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.footer-logo-mark {
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 3px;
}

.footer-logo-text {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.footer-biz {
  font-size: 13px;
  line-height: 1.9;
}

.footer-biz strong { color: rgba(255,255,255,0.85); }

.footer-copy {
  text-align: right;
  font-size: 12px;
}

.footer-copy p { margin-bottom: 4px; }

/* ===== CONTACT PAGE ===== */
.contact-section {
  padding: 80px 20px;
  max-width: 700px;
  margin: 0 auto;
}

.contact-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
  padding: 48px;
  text-align: center;
}

.contact-card h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 10px;
}

.contact-card p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 32px;
}

.phone-number {
  font-size: 38px;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: 2px;
  margin: 24px 0;
}

.phone-number a { color: var(--primary); }
.phone-number a:hover { color: var(--accent); }

.contact-hours {
  background: var(--light-gray);
  border-radius: 8px;
  padding: 20px;
  margin-top: 24px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}

.btn-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  transition: background 0.2s;
  margin: 16px 0;
}

.btn-call:hover { background: #c92d20; }

/* ===== PAGE HERO ===== */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #0f1e35 100%);
  color: #fff;
  padding: 60px 20px;
  text-align: center;
}

.page-hero h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 10px;
}

.page-hero p {
  color: rgba(255,255,255,0.7);
  font-size: 16px;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .header-inner { padding: 0 16px; }
  .site-logo .logo-text { font-size: 17px; }
  .site-nav a { padding: 7px 10px; font-size: 13px; }
  .hero { padding: 60px 16px 50px; }
  .cars-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-copy { text-align: left; }
  .contact-card { padding: 32px 24px; }
  .phone-number { font-size: 28px; }
  .features-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
}
