/* =========================================================
   자신만만 렌터카연구소 — 단기자동차렌트
   STEP 15. 디자인 변주 — "DISPATCH BOARD" 컨셉
   딥 차콜 + 일렉트릭 라임의 배차판/전광판 톤. 버튼은 예외 없이 각진 사각형.
   헤딩 Syne(기하학적 디스플레이) + 본문 Pretendard + 라벨/숫자 JetBrains Mono.
   ========================================================= */

:root {
  --ink: #15161a;         /* 딥 차콜(다크 배경 · 기본 텍스트) */
  --ink-2: #2b2d33;       /* 서브 차콜(카드 보더, 다크 서피스) */
  --muted: #63666d;       /* 슬레이트 그레이 본문 보조색 */
  --paper: #f1efe7;       /* 웜 뉴트럴 페이퍼(라이트 배경, 아이보리 아님) */
  --paper-alt: #e6e3d7;   /* 페이퍼 대비용 톤다운 배경 */
  --line: #d6d2c4;        /* 라이트 헤어라인 */
  --line-dark: #3a3c43;   /* 다크 헤어라인 */
  --surface: #ffffff;     /* 카드 서피스 */
  --white: #ffffff;

  --lime: #d6ff3f;        /* 일렉트릭 라임 — 메인 액센트 */
  --lime-deep: #92b800;   /* 딥 라임(라이트 배경 위 텍스트/아이콘용, 대비 확보) */
  --signal: #ff5330;      /* 시그널 오렌지-레드 — 극소량 강조용 */

  --radius: 0;            /* 카드/버튼 공통 — 각진 톤 통일 */
  --shadow-hard: 5px 5px 0 var(--ink);
  --shadow-hard-sm: 3px 3px 0 var(--ink);

  --font-display: 'Syne', 'Pretendard', -apple-system, sans-serif;
  --font-body: 'Pretendard', -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --container: 1180px;
}

* { box-sizing: border-box; word-break: keep-all; overflow-wrap: break-word; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  line-height: 1.22;
  margin: 0 0 14px;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.01em;
}
h1 { font-size: 2.6rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.12rem; }
p { margin: 0 0 14px; color: var(--muted); }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.section { padding: 64px 0; }
.section.bg-alt { background: var(--paper-alt); }
.section-head { max-width: 720px; margin: 0 0 34px; }
.section-head p { margin: 0; }
.section-head-center { max-width: 100% !important; text-align: center; }
.section-head-center .section-kicker::before { margin-right: 0; }
.section-head-center .section-kicker { display: inline-flex; }
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--ink-2);
  margin-bottom: 12px;
}
.section-kicker::before {
  content: '';
  display: inline-block;
  width: 9px;
  height: 9px;
  background: var(--lime);
  border: 1px solid var(--ink);
}
.hero .section-kicker, .hero-band .section-kicker { color: var(--lime); }
.hero .section-kicker::before, .hero-band .section-kicker::before { background: var(--ink); border-color: var(--lime); }

/* ── 버튼 (radius 0 예외 없음) ────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 0 !important;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .02em;
  border: 2px solid var(--ink);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, color .12s ease;
  box-shadow: var(--shadow-hard-sm);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(0, 0); box-shadow: 1px 1px 0 var(--ink); }
.btn-primary { background: var(--lime); color: var(--ink); }
.btn-primary:hover { background: var(--ink); color: var(--lime); border-color: var(--ink); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); box-shadow: none; }
.btn-outline:hover { background: var(--ink); color: var(--paper); box-shadow: var(--shadow-hard-sm); }
.hero .btn-outline, .hero-band .btn-outline { color: var(--paper); border-color: var(--paper); }
.hero .btn-outline:hover, .hero-band .btn-outline:hover { background: var(--paper); color: var(--ink); }
.btn-sm { padding: 10px 18px; font-size: .8rem; }
.btn-lg { padding: 17px 34px; font-size: .98rem; }
.btn-block { display: flex; width: 100%; }

/* ── 헤더 ─────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--ink);
  border-bottom: 2px solid var(--lime);
}
.site-header.is-scrolled { box-shadow: 0 6px 18px rgba(0, 0, 0, .28); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 20px;
}
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo img { border: 2px solid var(--lime); }
.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--paper);
  letter-spacing: -.01em;
}
.nav-main { display: flex; align-items: center; gap: 28px; }
.nav-main a {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--paper);
}
.nav-main a:hover { color: var(--lime); }
.nav-main .btn { margin-left: 4px; text-transform: none; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 2px solid var(--lime);
  background: var(--ink);
  cursor: pointer;
}
.hamburger span { display: block; width: 18px; height: 2px; margin: 0 auto; background: var(--lime); }

.overlay-menu {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  padding: 20px 24px 32px;
  transform: translateX(100%);
  transition: transform .25s ease;
  overflow-y: auto;
}
.overlay-menu.open { transform: translateX(0); }
.overlay-head { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.overlay-head .logo-text { color: var(--paper); }
.overlay-close { width: 42px; height: 42px; border: 2px solid var(--lime); background: var(--ink); color: var(--lime); font-size: 1.3rem; cursor: pointer; }
.overlay-nav { display: flex; flex-direction: column; gap: 4px; margin: 24px 0; }
.overlay-nav a {
  padding: 14px 4px;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: .92rem;
  color: var(--paper);
}
.overlay-nav a:hover { color: var(--lime); }
.overlay-cta { margin-top: auto; }

/* ── 히어로: 다크 밴드 + (분리된) 미디어 밴드 ───────────── */
.hero {
  padding: 88px 0 68px;
  background: var(--ink);
  color: var(--paper);
}
.hero-copy { max-width: 700px; }
.hero-copy h1 { margin-bottom: 18px; color: var(--paper); }
.hero-copy p { font-size: 1.06rem; color: rgba(241, 239, 231, .78); }
.hero-cta { display: flex; gap: 14px; margin-top: 24px; flex-wrap: wrap; }
.hero.hero-center { text-align: center; padding: 72px 0; }
.hero.hero-center .hero-copy { max-width: 740px; margin: 0 auto; }
.hero.hero-center .hero-cta { justify-content: center; }

.hero-media { background: var(--paper-alt); padding: 0 0 0; }
.media-frame {
  position: relative;
  max-width: 960px;
  margin: -46px auto 0;
  border: 3px solid var(--ink);
  background: var(--ink);
}
.media-frame::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  width: 34px;
  height: 34px;
  background: var(--lime);
  border: 3px solid var(--ink);
  z-index: 2;
}
.media-frame img { width: 100%; height: 380px; object-fit: cover; }

/* ── 그리드/카드 ──────────────────────────────────── */
.grid { display: grid; gap: 2px; background: var(--line); border: 1px solid var(--line); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border-radius: 0;
  padding: 30px 26px;
  border-left: 4px solid var(--lime);
}
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; }
.card-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 30px;
  padding: 0 8px;
  border: 2px solid var(--ink);
  font-family: var(--font-mono);
  color: var(--ink);
  font-weight: 700;
  font-size: .82rem;
  margin-bottom: 16px;
}

/* ── 타임라인(진행 절차) ──────────────────────────── */
.timeline { position: relative; display: flex; flex-direction: column; gap: 0; background: none; border: none; }
.timeline-step {
  position: relative;
  display: flex;
  gap: 22px;
  padding: 26px 4px;
  border-bottom: 1px solid var(--line);
}
.timeline-step:first-child { border-top: 1px solid var(--line); }
.timeline-num {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--lime);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
}
.timeline-copy h3 { margin-bottom: 6px; }
.timeline-copy p { margin: 0; }

/* ── 이미지 갤러리(필름스트립) ────────────────────── */
.gallery { display: grid; gap: 16px; grid-template-columns: repeat(5, 1fr); background: none; border: none; }
.gallery-strip {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
}
.gallery-item { border: 2px solid var(--ink); overflow: hidden; background: var(--paper-alt); scroll-snap-align: start; }
.gallery-item img { width: 100%; height: 190px; object-fit: cover; }
.gallery-item .cap { padding: 10px 12px; font-size: .82rem; color: var(--muted); font-family: var(--font-mono); }

/* ── 홈 디렉토리 리스트(카테고리 안내) ─────────────── */
.directory-grid { grid-template-columns: repeat(2, 1fr); background: var(--line); border: 1px solid var(--line); }
.directory-card {
  background: var(--surface);
  border-left: 4px solid transparent;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: border-color .12s ease, background .12s ease;
}
.directory-card:hover { border-left-color: var(--lime); background: var(--paper); }
.directory-card h3 { margin: 0 0 4px; font-size: 1.02rem; }
.directory-card p { margin: 0; font-size: .88rem; }
.directory-card::after {
  content: '→';
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--ink);
}
.directory-card:hover::after { color: var(--lime-deep); }

/* ── FAQ 아코디언 ─────────────────────────────────── */
.faq-list { max-width: 800px; margin: 0 auto; border-top: 2px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 4px;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}
.faq-icon { flex-shrink: 0; font-family: var(--font-mono); font-size: 1.2rem; color: var(--lime-deep); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-item.open .faq-a { max-height: 500px; }
.faq-a-inner { padding: 0 4px 22px; }
.faq-a-inner p { margin: 0; }

/* ── CTA 배너 ─────────────────────────────────────── */
.cta-banner {
  background: var(--ink);
  color: var(--white);
  border-radius: 0;
  border-top: 6px solid var(--lime);
  padding: 52px 34px;
  text-align: center;
}
.cta-banner h2 { color: var(--white); }
.cta-banner p { color: rgba(255, 255, 255, .74); }

/* ── Dispatch dock (플로팅 CTA) ───────────────────── */
.dispatch-dock {
  position: fixed;
  right: 0;
  bottom: 100px;
  z-index: 800;
  display: flex;
  flex-direction: column;
}
.dispatch-btn {
  width: 66px;
  height: 66px;
  border: 2px solid var(--ink);
  border-right: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  border-radius: 0 !important;
}
.dispatch-btn-primary { background: var(--lime); color: var(--ink); }
.dispatch-btn-top { background: var(--ink); color: var(--lime); font-size: 1.05rem; border-top: none; }

/* ── 상담 카드 (contact 전용) ─────────────────────── */
.contact-grid { max-width: 780px; margin: 0 auto; background: none; border: none; gap: 20px; }
.contact-card {
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 0;
  padding: 34px 28px;
  text-align: center;
}
.contact-card .card-num { border-color: var(--ink); background: var(--ink); color: var(--lime); }
.contact-card .contact-num { font-family: var(--font-mono); font-size: 1.55rem; font-weight: 700; color: var(--ink); margin: 10px 0; }

/* ── 사이트맵 리스트 ──────────────────────────────── */
.sitemap-wrap { max-width: 780px; margin: 0 auto; }
.sitemap-group { margin-bottom: 32px; border-left: 4px solid var(--lime); padding-left: 20px; }
.sitemap-group h2 { font-size: 1.08rem; margin-bottom: 12px; }
.sitemap-group ul { display: flex; flex-direction: column; gap: 8px; }
.sitemap-group a { color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.sitemap-group a:hover { color: var(--lime-deep); border-color: var(--lime-deep); }

/* ── 가이드 본문 ──────────────────────────────────── */
.article-wrap { max-width: 820px; margin: 0 auto; }
.article-body h2 { margin-top: 44px; font-size: 1.34rem; }
.article-body h3 { margin-top: 26px; }
.article-body p { font-size: 1rem; }
.article-body ul { list-style: disc; padding-left: 22px; margin: 0 0 14px; }
.article-body li { margin-bottom: 8px; color: var(--muted); }

/* ── 푸터 ─────────────────────────────────────────── */
.site-footer { background: var(--paper-alt); border-top: 4px solid var(--ink); padding: 44px 0 26px; }
.footer-links {
  display: flex;
  gap: 22px;
  margin-bottom: 22px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: .84rem;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.footer-links a:hover { color: var(--lime-deep); }
.footer-info p { margin: 0 0 6px; font-size: .88rem; }
.footer-legal { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 18px; }
.footer-legal p { font-size: .78rem; margin: 0 0 8px; color: #8a8a80; }
.footer-copy { font-family: var(--font-mono); font-size: .76rem; color: #96968a; margin: 12px 0 0; }

/* ── 스크롤 리빌 ──────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ── 반응형 ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .container { padding: 0 20px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .directory-grid { grid-template-columns: 1fr; }
  .gallery:not(.gallery-strip) { grid-template-columns: repeat(3, 1fr); }
  .media-frame img { height: 300px; }
  h1 { font-size: 2.1rem; }
}
@media (max-width: 768px) {
  .nav-main { display: none; }
  .hamburger { display: flex; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .gallery:not(.gallery-strip) { grid-template-columns: repeat(2, 1fr); }
  h1 { font-size: 1.72rem; }
  h2 { font-size: 1.32rem; }
  .section { padding: 44px 0; }
  .hero { padding: 60px 0 48px; }
  .cta-banner { padding: 38px 22px; }
  .timeline-step { gap: 16px; }
  .timeline-num { width: 38px; height: 38px; font-size: .88rem; }
}
@media (max-width: 480px) {
  .gallery-strip { grid-auto-columns: minmax(78%, 1fr); }
  .gallery:not(.gallery-strip) { grid-template-columns: 1fr 1fr; }
  .header-inner { height: 62px; }
  .logo-text { font-size: .86rem; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .media-frame img { height: 220px; }
  .dispatch-dock { bottom: 76px; }
  .dispatch-btn { width: 56px; height: 56px; font-size: .66rem; }
}
