/* ---------------------------------------------
   1번렌트카 — Design tokens
   Color   : Navy #12263F / Navy deep #0A1930 / Amber #C9862B
             Paper #F6F3EC / Ink #1C1F24 / Steel #5B7089 / Line #E3DDCF
   Type    : Pretendard (single family, weight-driven hierarchy)
   Layout  : Left-aligned, asymmetric hero with plate motif,
             numbered service rows (license-plate index, not a process)
--------------------------------------------- */

:root {
  --navy: #12263F;
  --navy-deep: #0A1930;
  --amber: #C9862B;
  --amber-deep: #A66A1B;
  --paper: #F6F3EC;
  --ink: #1C1F24;
  --steel: #5B7089;
  --line: #E3DDCF;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.main-nav {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: flex-start;
  margin-left: 48px;
}

.main-nav a {
  color: rgba(255,255,255,0.82);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.main-nav a:hover {
  color: #fff;
  border-color: var(--amber);
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--amber);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 10px 20px;
  border-radius: 999px;
  transition: background 0.15s ease;
}

.header-phone:hover { background: var(--amber-deep); }

.header-phone svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.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: #fff;
  display: block;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 96px 24px 120px;
  max-width: 640px;
  margin-left: 0;
  margin-right: auto;
}

.hero-kicker {
  color: var(--amber);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  margin: 0 0 20px;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}

.hero-desc {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  max-width: 480px;
  margin: 0 0 36px;
}

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

.hero-address {
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  margin: 0;
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2.2s ease;
}

.hero-slide.is-active { opacity: 1; }

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg,
    rgba(10,25,48,0.92) 0%,
    rgba(10,25,48,0.78) 32%,
    rgba(10,25,48,0.35) 55%,
    rgba(10,25,48,0.08) 78%);
  pointer-events: none;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--amber);
  color: var(--navy-deep);
}

.btn-primary:hover { background: var(--amber-deep); }

.btn-ghost {
  border-color: rgba(255,255,255,0.35);
  color: #fff;
}

.btn-ghost:hover { border-color: #fff; }

.btn-block { width: 100%; }

/* ---------- Section shared ---------- */

.section-title {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.35;
  margin: 0 0 40px;
  color: var(--navy);
}

section { padding: 88px 0; }

/* ---------- Services ---------- */

.services { background: var(--paper); }

.service-list {
  border-top: 1px solid var(--line);
}

.service-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 90px;
}

.service-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.service-icon svg { width: 100%; height: 100%; }

.service-body h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 10px;
}

.service-body p {
  color: var(--steel);
  margin: 0 0 14px;
  max-width: 620px;
}

.service-tags {
  list-style: none;
  display: flex;
  gap: 10px;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.service-tags li {
  font-size: 0.82rem;
  color: var(--navy);
  background: rgba(18,38,63,0.06);
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 600;
}

.service-link {
  font-weight: 700;
  color: var(--amber-deep);
  border: 1px solid var(--amber);
  padding: 10px 18px;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.service-link:hover {
  background: var(--amber);
  color: #fff;
}

/* ---------- About ---------- */

.about { background: #fff; }

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.about-photo {
  width: 100%;
  max-width: 420px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 12px 30px rgba(18,38,63,0.18);
}

.about-photo img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.about-lead {
  color: var(--steel);
  font-size: 1.02rem;
  max-width: 420px;
}

.about-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 28px;
}

.point h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 8px;
  padding-left: 16px;
  border-left: 3px solid var(--amber);
}

.point p {
  color: var(--steel);
  margin: 0 0 0 19px;
  font-size: 0.95rem;
}

/* ---------- Guide ---------- */

.guide { background: var(--paper); }

.guide-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.guide-steps li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 22px;
}

.step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.guide-steps h3 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 8px;
}

.guide-steps p {
  color: var(--steel);
  font-size: 0.9rem;
  margin: 0;
}

/* ---------- Contact ---------- */

.contact { background: #fff; }

.contact-inner {
  max-width: 560px;
}

.contact-detail {
  margin-top: 32px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.contact-detail p {
  display: flex;
  gap: 16px;
  margin: 0 0 14px;
  font-size: 0.98rem;
}

.contact-detail strong {
  flex-shrink: 0;
  width: 48px;
  color: var(--steel);
  font-weight: 600;
  font-size: 0.88rem;
}

.contact-detail a {
  font-weight: 700;
  color: var(--navy);
}

.contact-call-btn {
  margin-top: 32px;
  font-size: 1.1rem;
  padding: 18px 32px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.65);
  padding: 48px 0;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand {
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  margin: 0 0 10px;
}

.footer-inner p { margin: 0 0 6px; }

.footer-copy {
  color: rgba(255,255,255,0.4);
  font-size: 0.82rem;
}

/* ---------- Focus visibility ---------- */

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .about-inner, .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .guide-steps { grid-template-columns: 1fr 1fr; }
  .about-points { grid-template-columns: 1fr; }
  .hero-slide.is-active { opacity: 0.9; }
  .hero::after {
    background: linear-gradient(180deg,
      rgba(10,25,48,0.88) 0%,
      rgba(10,25,48,0.72) 45%,
      rgba(10,25,48,0.55) 100%);
  }
}

@media (max-width: 760px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .main-nav.nav-open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-toggle { display: flex; }
  .header-phone { display: none; }
  .service-row {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .service-icon { margin-bottom: 12px; }
  .service-link { justify-self: flex-start; }
  .guide-steps { grid-template-columns: 1fr; }
  .hero-inner { padding: 64px 24px 96px; }
  section { padding: 64px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- 관리자 페이지 바로가기 (작은 플로팅 버튼) ---------- */

.admin-fab {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.7);
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.15s ease, color 0.15s ease;
}

.admin-fab:hover {
  background: rgba(255,255,255,0.22);
  color: #fff;
}

/* ---------- 스크롤 등장 애니메이션 ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

