/* =========================================
   VMFACTORY - Tesla Specialist Shop
   Dark theme · Red point color
========================================= */

:root {
  --bg: #0a0a0a;
  --bg-alt: #121212;
  --surface: #1a1a1a;
  --border: #2a2a2a;
  --text: #f2f2f2;
  --text-dim: #a6a6a6;
  --text-soft: #6f6f6f;
  --accent: #e82127; /* tesla red */
  --accent-dark: #b5181d;
  --accent-soft: rgba(232, 33, 39, 0.12);
  --radius: 16px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.55);
  --max-width: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.site-header.scrolled {
  background: rgba(10, 10, 10, 0.94);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.logo {
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.5px;
  color: var(--text);
}
.logo span { color: var(--accent); }

.nav {
  display: flex;
  gap: 34px;
  margin-left: auto;
  margin-right: 28px;
}
.nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dim);
  transition: color .2s ease;
}
.nav a:hover { color: var(--text); }

.header-call { display: inline-flex; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  display: block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 16px rgba(232, 33, 39, 0.24);
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(232, 33, 39, 0.30);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-call {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 11px 20px;
  font-size: 13px;
}
.btn-call:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  padding-top: 110px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-color: #0a0a0a;
  background-image:
    linear-gradient(90deg, rgba(10,10,10,0.85) 0%, rgba(10,10,10,0.45) 38%, rgba(10,10,10,0.08) 65%, rgba(10,10,10,0) 100%),
    url('images/hero.jpeg');
  background-size: cover;
  background-position: center 45%;
  background-repeat: no-repeat;
  z-index: -1;
}
/* 히어로 이미지 위에 얹는 장식용 붉은 글로우 (이미지를 가리지 않도록 투명 레이어만 사용) */
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 78% 18%, rgba(232,33,39,0.18), transparent 55%),
    radial-gradient(ellipse at 12% 85%, rgba(232,33,39,0.10), transparent 50%);
  z-index: -1;
}
.hero-inner { position: relative; }

.badge {
  display: inline-block;
  padding: 8px 16px;
  background: var(--accent-soft);
  border: 1px solid rgba(232, 33, 39, 0.35);
  color: var(--accent);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(32px, 6vw, 58px);
  font-weight: 900;
  line-height: 1.22;
  margin: 0 0 22px;
  letter-spacing: -0.5px;
}
.hero h1 .accent { color: var(--accent); }

.hero-desc {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 0 38px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero-stats {
  display: flex;
  gap: 44px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 30px;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat strong { font-size: 21px; font-weight: 900; color: var(--text); }
.stat span { font-size: 13px; color: var(--text-dim); }

/* ---------- Section common ---------- */
section { padding: 120px 0; }
.section-eyebrow {
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.5px;
  margin: 0 0 14px;
}
.section-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 900;
  margin: 0 0 20px;
  line-height: 1.32;
  letter-spacing: -0.5px;
}
.section-desc {
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 0 48px;
}

/* ---------- About ---------- */
.about { background: var(--bg-alt); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  margin-top: 40px;
  align-items: start;
}
.about-text p {
  color: var(--text-dim);
  font-size: 16px;
  margin-bottom: 20px;
}
.about-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.about-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.about-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
}
.about-card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-dim);
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 26px;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.service-card:hover {
  border-color: rgba(232, 33, 39, 0.35);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.service-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 14px;
  padding: 12px;
}
.service-icon svg { width: 100%; height: 100%; }
.service-card h3 {
  font-size: 17px;
  margin: 0 0 10px;
}
.service-card p {
  font-size: 14px;
  color: var(--text-dim);
  margin: 0;
}

/* ---------- Cases ---------- */
.cases { background: var(--bg-alt); }
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.case-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.case-img {
  aspect-ratio: 4 / 3;
  background: #0e0e0e;
}
.case-img img { width: 100%; height: 100%; object-fit: cover; }
.case-img--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px dashed var(--border);
  background: repeating-linear-gradient(45deg, #141414, #141414 10px, #0e0e0e 10px, #0e0e0e 20px);
}
.case-img--empty span {
  color: var(--text-soft);
  font-size: 13px;
}
.case-body { padding: 22px; }
.case-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}
.case-body h3 {
  font-size: 16px;
  margin: 0 0 8px;
}
.case-body p {
  font-size: 14px;
  color: var(--text-dim);
  margin: 0;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}
.contact-info {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow-sm);
}
.info-row {
  display: flex;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.info-row:last-of-type { border-bottom: none; }
.info-label {
  width: 80px;
  flex-shrink: 0;
  color: var(--text-soft);
  font-weight: 500;
}
.info-value a:hover { color: var(--accent); }

.contact-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  min-height: 280px;
}
.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 44px 0;
  text-align: center;
}
.footer-logo {
  font-weight: 900;
  font-size: 18px;
  margin: 0 0 12px;
  color: var(--text);
}
.footer-logo span { color: var(--accent); }
.site-footer p {
  color: var(--text-dim);
  font-size: 13px;
  margin: 6px 0;
}
.copyright { color: var(--text-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  section { padding: 72px 0; }
  .nav {
    position: fixed;
    top: 74px; left: 0; right: 0;
    margin: 0;
    background: rgba(10, 10, 10, 0.98);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    flex-direction: column;
    padding: 20px 24px;
    gap: 18px;
    transform: translateY(-150%);
    opacity: 0;
    transition: transform .25s ease, opacity .25s ease;
  }
  .nav.open { transform: translateY(0); opacity: 1; }
  .nav-toggle { display: flex; }
  .header-call { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .br-pc { display: none; }
}
