/* ============================================================
   오토프로 모터스 / AutoPro — Template #1 "예약 위젯 플래그십"
   Deep charcoal + electric blue. Static, system fonts only.
   (c) 2026 AutoPro Motors
   ============================================================ */

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: #0f1115;
  color: #ffffff;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Malgun Gothic",
    "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  line-height: 1.6;
  letter-spacing: -0.01em;
}
:root {
  --bg: #0f1115;
  --bg2: #16181d;
  --card: #1c1f26;
  --card2: #22262f;
  --accent: #3b82f6;
  --accent2: #2563eb;
  --accent-soft: rgba(59, 130, 246, 0.14);
  --text: #ffffff;
  --muted: #9aa4b2;
  --muted2: #6b7480;
  --border: #2a2e37;
  --maxw: 1200px;
  --radius: 16px;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: 88px; }
.section--tight { padding-block: 56px; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
.section-head p { color: var(--muted); font-size: 1.02rem; margin: 0; }
.section-head--center { margin-inline: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700; font-size: 1rem;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  color: #ffffff;
  box-shadow: 0 10px 26px -10px rgba(59, 130, 246, 0.7);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -12px rgba(59, 130, 246, 0.85); }
.btn--ghost {
  background: transparent; color: #ffffff; border-color: var(--border);
}
.btn--ghost:hover { transform: translateY(-3px); border-color: var(--accent); background: var(--accent-soft); }
.btn--lg { padding: 17px 34px; font-size: 1.06rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(15, 17, 21, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.18rem; }
.brand__logo {
  width: 40px; height: 40px; flex: 0 0 auto;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  border-radius: 11px;
}
.brand__logo svg { width: 24px; height: 24px; }
.brand__name { line-height: 1.05; }
.brand__name small { display: block; font-size: .62rem; font-weight: 600; color: var(--muted); letter-spacing: .12em; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  padding: 9px 15px; border-radius: 9px; font-weight: 600; color: var(--muted);
  transition: color .15s ease, background .15s ease;
}
.nav a:hover, .nav a.is-active { color: #fff; background: var(--card); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.hamburger {
  display: none;
  width: 46px; height: 46px; border-radius: 11px;
  background: var(--card); border: 1px solid var(--border);
  cursor: pointer; padding: 0; place-items: center;
}
.hamburger svg { width: 24px; height: 24px; stroke: #fff; }

/* Drawer CTA base rule (BEFORE media query) */
.drawer__cta { display: none; }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 90;
  height: 100dvh; overflow-y: auto;
  background: #0f1115; /* fully opaque */
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  padding: 22px;
}
.drawer.is-open { opacity: 1; visibility: visible; }
.drawer__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.drawer__close {
  width: 46px; height: 46px; border-radius: 11px; background: var(--card);
  border: 1px solid var(--border); cursor: pointer; display: grid; place-items: center;
}
.drawer__close svg { width: 24px; height: 24px; stroke: #fff; }
.drawer__nav a {
  display: block; padding: 16px 8px; font-size: 1.28rem; font-weight: 700;
  border-bottom: 1px solid var(--border); color: #fff;
}
.drawer__cta { margin-top: 26px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: 70px 96px; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(1100px 500px at 70% 10%, rgba(59,130,246,0.20), transparent 60%),
    linear-gradient(180deg, rgba(15,17,21,0.72) 0%, rgba(15,17,21,0.92) 62%, #0f1115 100%);
}
.hero__inner { position: relative; z-index: 2; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px; border-radius: 999px;
  background: var(--accent-soft); border: 1px solid rgba(59,130,246,0.4);
  color: #cfe0ff; font-size: .82rem; font-weight: 600; margin-bottom: 22px;
}
.hero__badge span.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero h1 {
  font-size: clamp(2.1rem, 6vw, 4rem);
  max-width: 15ch; margin-bottom: 18px;
}
.hero h1 .grad {
  background: linear-gradient(120deg, #60a5fa, #3b82f6, #2563eb);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { color: #d7dde6; font-size: clamp(1rem, 2.2vw, 1.2rem); max-width: 46ch; margin-bottom: 34px; }

/* Hero car SVG */
.hero__car { position: relative; margin: 8px 0 40px; max-width: 640px; }
.hero__car svg { width: 100%; height: auto; }
.hero__road {
  position: relative; height: 10px; margin-top: -8px; border-radius: 999px;
  background: #23272f; overflow: hidden;
}
.hero__road::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, var(--accent) 0 34px, transparent 34px 74px);
  opacity: .8;
  animation: lane 1.1s linear infinite;
}
@keyframes lane { to { transform: translateX(-74px); } }

/* Drive-in animation for hero car */
.drive-in { transform: translateX(-40px); opacity: 0; transition: transform .9s cubic-bezier(.2,.7,.2,1), opacity .9s ease; }
.drive-in.is-in { transform: translateX(0); opacity: 1; }

/* ---------- Booking widget ---------- */
.booking {
  position: relative; z-index: 3;
  background: linear-gradient(180deg, #1c1f26 0%, #171a20 100%);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,0.9), 0 0 0 1px rgba(59,130,246,0.06);
}
.booking__title { display: flex; align-items: center; gap: 10px; font-size: 1.16rem; margin-bottom: 20px; }
.booking__title svg { width: 22px; height: 22px; }
.booking__grid {
  display: grid;
  grid-template-columns: minmax(0,1.2fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1fr) minmax(0,auto);
  gap: 14px; align-items: end;
}
.field { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: .78rem; font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.field input, .field select {
  width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box;
  padding: 13px 14px;
  background: #0f1115; color: #fff;
  border: 1px solid var(--border); border-radius: 12px;
  font-size: .96rem; font-family: inherit;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%239aa4b2' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 38px; }
.booking__submit { min-width: 0; }
.booking__submit .btn { width: 100%; height: 100%; min-height: 50px; }

/* ---------- Featured fleet cards ---------- */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.car-card {
  position: relative;
  background: linear-gradient(180deg, var(--card) 0%, var(--bg2) 100%);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.car-card:hover { transform: translateY(-6px); border-color: rgba(59,130,246,0.5); box-shadow: 0 24px 46px -26px rgba(0,0,0,0.8); }
.car-card__badge {
  position: absolute; top: 16px; right: 16px; inset-inline-start: auto;
  background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700;
  padding: 5px 11px; border-radius: 999px;
}
.car-card__art { background: radial-gradient(120% 120% at 50% 20%, #232833, #14161b); border-radius: 12px; padding: 18px 10px; margin-bottom: 16px; }
.car-card__art svg { width: 100%; height: auto; }
.car-card__class { font-size: .78rem; color: var(--accent); font-weight: 700; }
.car-card h3 { font-size: 1.22rem; margin: 4px 0 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .76rem; color: #c6cedb; background: var(--card2);
  border: 1px solid var(--border); padding: 5px 10px; border-radius: 8px;
}
.tag svg { width: 13px; height: 13px; }
.car-card__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 6px; }
.price { line-height: 1.1; }
.price b { font-size: 1.5rem; color: #fff; }
.price small { display: block; color: var(--muted); font-size: .8rem; }
.price .per { font-size: .9rem; color: var(--muted); font-weight: 600; }

/* ---------- Reasons ---------- */
.reasons { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.reason { min-width: 0; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; transition: transform .25s ease, background .25s ease; }
.reason:hover { transform: translateY(-5px); background: var(--card); }
.reason__ic { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); border: 1px solid rgba(59,130,246,0.35); margin-bottom: 16px; }
.reason__ic svg { width: 30px; height: 30px; stroke: var(--accent); }
.reason h3 { font-size: 1.14rem; }
.reason p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Steps ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.step { position: relative; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; text-align: center; min-width: 0; }
.step__num { position: absolute; top: 14px; right: 16px; inset-inline-start: auto; font-size: 2.4rem; font-weight: 800; color: rgba(59,130,246,0.18); }
.step__ic { width: 64px; height: 64px; margin: 4px auto 16px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--accent2)); }
.step__ic svg { width: 32px; height: 32px; stroke: #fff; }
.step h3 { font-size: 1.1rem; }
.step p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- Locations ---------- */
.loc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.loc-card { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); min-width: 0; }
.loc-card img { width: 100%; height: 190px; object-fit: cover; }
.loc-card__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(15,17,21,0.95) 100%); }
.loc-card__body { position: absolute; left: 0; right: 0; bottom: 0; inset-block-start: auto; padding: 18px; }
.loc-card__body h3 { font-size: 1.16rem; margin-bottom: 4px; display: flex; align-items: center; gap: 7px; }
.loc-card__body h3 svg { width: 18px; height: 18px; }
.loc-card__body p { color: #cfd6e0; font-size: .86rem; margin: 0; }

/* ---------- Stats ---------- */
.stats-band { background: linear-gradient(120deg, #14161b, #1a1f2b); border-block: 1px solid var(--border); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 22px; text-align: center; }
.stat { min-width: 0; }
.stat b { display: block; font-size: clamp(2.2rem, 6vw, 3.2rem); font-weight: 800; background: linear-gradient(120deg, #60a5fa, #3b82f6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-weight: 600; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: 24px; padding: 56px 32px; text-align: center; background: linear-gradient(120deg, #1d4ed8, #3b82f6); }
.cta-band h2 { font-size: clamp(1.6rem, 4.5vw, 2.6rem); color: #fff; }
.cta-band p { color: #dbe7ff; max-width: 46ch; margin-inline: auto; margin-bottom: 26px; }
.cta-band .btn--ghost { border-color: rgba(255,255,255,0.5); color: #fff; }
.cta-band .btn--light { background: #fff; color: #1d4ed8; }
.cta-band .btn--light:hover { transform: translateY(-3px); }

/* ---------- Generic content / tables ---------- */
.lead-block { max-width: 760px; }
.lead-block p { color: var(--muted); font-size: 1.05rem; }

.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table.rate { width: 100%; border-collapse: collapse; min-width: 560px; }
table.rate th, table.rate td { padding: 15px 16px; text-align: left; border-bottom: 1px solid var(--border); }
table.rate thead th { background: var(--card2); font-size: .82rem; letter-spacing: .04em; color: var(--muted); text-transform: uppercase; }
table.rate tbody tr:hover { background: rgba(59,130,246,0.06); }
table.rate td.price-cell b { color: var(--accent); font-size: 1.05rem; }
table.rate .cls { font-weight: 700; }
table.rate .cls small { display: block; color: var(--muted); font-weight: 500; }

/* ---------- Filter chips (fleet) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.chip {
  padding: 10px 18px; border-radius: 999px; cursor: pointer;
  background: var(--card); border: 1px solid var(--border); color: var(--muted);
  font-weight: 600; font-size: .92rem; transition: all .15s ease;
}
.chip:hover { color: #fff; border-color: var(--accent); }
.chip.is-active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Fleet cards hide when filtered */
.car-card.is-hidden { display: none; }

/* ---------- Feature list ---------- */
.feat-list { display: grid; gap: 14px; }
.feat-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.feat-list li svg { width: 22px; height: 22px; flex: 0 0 auto; stroke: var(--accent); margin-top: 2px; }
.feat-list li b { color: #fff; display: block; }

/* ---------- Options cards ---------- */
.opt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.opt-card { min-width: 0; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.opt-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.12rem; }
.opt-card h3 svg { width: 24px; height: 24px; stroke: var(--accent); }
.opt-card .opt-price { color: var(--accent); font-weight: 800; font-size: 1.2rem; margin-bottom: 8px; }
.opt-card p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- Reserve form ---------- */
.form-card { background: linear-gradient(180deg, var(--card) 0%, var(--bg2) 100%); border: 1px solid var(--border); border-radius: 22px; padding: 30px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.form-grid .field.full { grid-column: 1 / -1; }
.field textarea {
  width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box;
  padding: 13px 14px; background: #0f1115; color: #fff;
  border: 1px solid var(--border); border-radius: 12px; font-family: inherit; font-size: .96rem; resize: vertical; min-height: 100px;
}
.field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.check-row { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: .92rem; }
.check-row input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); flex: 0 0 auto; }
.form-note { color: var(--muted2); font-size: .84rem; }

.terms { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.terms h3 { font-size: 1.05rem; }
.terms ul { display: grid; gap: 10px; }
.terms li { position: relative; padding-left: 20px; color: var(--muted); font-size: .92rem; }
.terms li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.two-col { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; align-items: start; }

/* ---------- Page hero (subpages) ---------- */
.page-hero { position: relative; overflow: hidden; padding-block: 70px 50px; border-bottom: 1px solid var(--border); }
.page-hero__bg { position: absolute; inset: 0; z-index: 0; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,17,21,0.7), rgba(15,17,21,0.94)); }
.page-hero__inner { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.page-hero p { color: #d7dde6; max-width: 52ch; margin: 0; }
.breadcrumb { color: var(--muted); font-size: .86rem; margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { background: #0b0d10; border-top: 1px solid var(--border); padding-block: 54px 30px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 30px; }
.footer-grid h4 { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.footer-grid a, .footer-grid li { color: #c6cedb; font-size: .92rem; }
.footer-links li { margin-bottom: 9px; }
.footer-links a:hover { color: var(--accent); }
.footer-brand p { color: var(--muted); font-size: .92rem; max-width: 34ch; margin-top: 12px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--muted2); font-size: .84rem; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

/* Gauge needle sweep */
.gauge-needle { transform-box: fill-box; transform-origin: bottom center; transform: rotate(-90deg); transition: transform 1.4s cubic-bezier(.2,.8,.2,1); }
.gauge-needle.is-in { transform: rotate(38deg); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .booking__grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .booking__submit { grid-column: 1 / -1; }
  .two-col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding-block: 60px; }
  .nav { display: none; }
  .header-actions .btn { display: none; }
  .hamburger { display: grid; }
  .drawer__cta { display: block; }  /* shown only on mobile */

  .booking__grid { grid-template-columns: minmax(0, 1fr); }
  .booking__submit { grid-column: auto; }
  .booking { padding: 20px; }

  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .steps::before { display: none; }
}

@media (max-width: 400px) {
  .wrap { padding-inline: 15px; }
  .booking { padding: 16px; }
  .brand__name small { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .drive-in { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero__road::before { animation: none !important; }
  .gauge-needle { transition: none !important; transform: rotate(38deg) !important; }
  .btn:hover, .car-card:hover, .reason:hover, .step:hover { transform: none !important; }
}
