/* 맥스모토 홈페이지 공통 스타일 */
:root {
  --red: #e61e34;
  --red-dark: #b9142a;
  --ink: #121212;
  --ink-2: #1c1c1d;
  --ink-3: #2a2a2c;
  --text: #1b1b1c;
  --muted: #5d5d62;
  --line: #e4e4e7;
  --bg: #ffffff;
  --bg-soft: #f4f4f5;
  --radius: 14px;
  --max: 1120px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 50; border-bottom: 1px solid #000; }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 40px; height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.brand-name .moto { color: var(--red); }
.brand-sub { font-size: 11px; color: #a9a9ae; letter-spacing: 0.02em; margin-top: 2px; }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav a { display: block; padding: 8px 10px; font-size: 14.5px; color: #d6d6da; text-decoration: none; border-radius: 8px; white-space: nowrap; }
.nav a:hover { color: #fff; background: var(--ink-3); }
.nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--red); border-radius: 0; }
.header-call { flex-shrink: 0; background: var(--red); color: #fff; text-decoration: none; font-weight: 700; font-size: 14.5px; padding: 9px 14px; border-radius: 999px; }
.header-call:hover { background: var(--red-dark); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid #3a3a3d; color: #fff; border-radius: 10px; width: 44px; height: 40px; font-size: 20px; cursor: pointer; }

@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .header-call { display: none; }
  .nav { position: absolute; left: 0; right: 0; top: 68px; background: var(--ink); border-bottom: 1px solid #000; display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: 8px 12px 16px; }
  .nav a { padding: 12px 10px; font-size: 16px; border-bottom: 1px solid #242426; border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--red); padding-left: 14px; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 20px; border-radius: 12px; font-weight: 700; font-size: 16px; text-decoration: none; border: 1.5px solid transparent; transition: background .15s, border-color .15s, color .15s; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-kakao { background: #fee500; color: #191919; }
.btn-kakao:hover { background: #f2d900; }
.btn-ghost { border-color: #4a4a4f; color: #fff; }
.btn-ghost:hover { border-color: #fff; }
.btn-line { border-color: var(--line); color: var(--text); background: #fff; }
.btn-line:hover { border-color: var(--text); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(1200px 500px at 85% -10%, #3a0d14 0%, transparent 60%), linear-gradient(180deg, #151516 0%, #0d0d0e 100%); }
.hero::after { content: ""; position: absolute; right: -120px; top: 0; bottom: 0; width: 360px; background: linear-gradient(100deg, transparent 0 38%, rgba(230,30,52,.9) 38% 44%, transparent 44% 52%, rgba(230,30,52,.35) 52% 55%, transparent 55%); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; padding: 72px 0 64px; max-width: 760px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .06em; color: #ff5a6c; margin-bottom: 14px; }
.hero h1 { font-size: clamp(30px, 5vw, 48px); line-height: 1.25; margin: 0 0 18px; letter-spacing: -0.02em; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero p.lead { font-size: clamp(16px, 2vw, 19px); color: #c9c9ce; margin: 0 0 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; padding: 0; list-style: none; }
.chips li { font-size: 14px; color: #e7e7ea; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); padding: 6px 12px; border-radius: 999px; }
.chips li::before { content: "✓ "; color: var(--red); font-weight: 800; }

.page-hero { background: linear-gradient(180deg, #151516 0%, #0f0f10 100%); color: #fff; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -80px; top: 0; bottom: 0; width: 240px; background: linear-gradient(100deg, transparent 0 40%, rgba(230,30,52,.85) 40% 46%, transparent 46%); pointer-events: none; }
.page-hero .container { position: relative; z-index: 1; padding-top: 40px; padding-bottom: 44px; }
.page-hero h1 { font-size: clamp(28px, 4.2vw, 40px); line-height: 1.3; margin: 8px 0 12px; letter-spacing: -0.02em; }
.page-hero p { color: #c9c9ce; margin: 0; max-width: 720px; font-size: 17px; }
.breadcrumb { font-size: 13px; color: #9b9ba1; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: #6c6c72; }
.breadcrumb a { color: #c9c9ce; text-decoration: none; }
.breadcrumb a:hover { color: #fff; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { margin-bottom: 28px; }
.section-head h2 { font-size: clamp(24px, 3.2vw, 32px); margin: 0 0 8px; letter-spacing: -0.02em; line-height: 1.35; }
.section-head h2::before { content: ""; display: block; width: 36px; height: 4px; background: var(--red); border-radius: 2px; margin-bottom: 14px; }
.section-head p { margin: 0; color: var(--muted); }

.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.service-card { display: flex; flex-direction: column; text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
.service-card:hover { border-color: var(--red); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.06); }
.service-card .icon { width: 48px; height: 48px; border-radius: 12px; background: var(--ink); color: var(--red); display: grid; place-items: center; margin-bottom: 14px; }
.service-card .icon svg { width: 26px; height: 26px; }
.service-card h3 { margin: 0 0 6px; font-size: 20px; }
.service-card p { margin: 0 0 14px; color: var(--muted); font-size: 15.5px; flex-grow: 1; }
.ask-card { background: var(--ink); color: #fff; border-color: var(--ink); }
.ask-card:hover { transform: none; border-color: var(--ink); }
.ask-card p { color: #bdbdc3; }
.ask-card .icon { background: var(--red); color: #fff; }
.ask-card .btn { padding: 10px 14px; font-size: 15px; }
.service-card .more { color: var(--red); font-weight: 700; font-size: 15px; }

.feature h3 { margin: 0 0 6px; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); font-size: 15.5px; }
.feature .num { display: inline-block; font-weight: 800; color: var(--red); font-size: 14px; margin-bottom: 6px; letter-spacing: .04em; }

/* Info table */
.info-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.info-table th, .info-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 15.5px; }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: 0; }
.info-table th { width: 150px; background: #fafafa; font-weight: 700; color: #333; }
@media (max-width: 600px) { .info-table th { width: 96px; padding: 12px; } .info-table td { padding: 12px; } }

/* Prose */
.prose { max-width: 780px; }
.prose h2 { font-size: 26px; margin: 44px 0 12px; letter-spacing: -0.02em; line-height: 1.35; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; margin: 28px 0 8px; }
.prose p { margin: 0 0 14px; font-size: 16.5px; }
.prose ul { padding-left: 20px; margin: 0 0 16px; }
.prose li { margin-bottom: 6px; font-size: 16.5px; }
.prose strong { color: #000; }
.note { background: #fff5f6; border: 1px solid #ffd0d6; border-left: 4px solid var(--red); padding: 14px 16px; border-radius: 10px; margin: 16px 0 20px; font-size: 15.5px; }

.layout-2 { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
@media (max-width: 960px) { .layout-2 { grid-template-columns: 1fr; } }
.side-box { position: sticky; top: 92px; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 24px; }
.side-box h2 { font-size: 18px; margin: 0 0 12px; }
.side-box dl { margin: 0 0 18px; display: grid; grid-template-columns: 76px 1fr; gap: 8px 10px; font-size: 14.5px; }
.side-box dt { color: #9d9da3; }
.side-box dd { margin: 0; color: #f1f1f3; }
.side-box .btn { width: 100%; margin-bottom: 8px; }

/* Quick facts */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0 0 28px; }
.fact { background: var(--bg-soft); border-radius: 12px; padding: 14px 16px; }
.fact span { display: block; font-size: 13px; color: var(--muted); }
.fact strong { font-size: 17px; }
@media (max-width: 700px) { .facts { grid-template-columns: repeat(2, 1fr); } }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; font-weight: 700; font-size: 16.5px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; color: var(--red); font-weight: 800; margin-right: 10px; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 22px; color: #888; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq .answer { padding: 0 18px 18px 40px; color: #333; font-size: 16px; }
.faq .answer p { margin: 0; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery figure { margin: 0; border-radius: 12px; overflow: hidden; background: #ddd; aspect-ratio: 4 / 3; position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 12px 10px; font-size: 13.5px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
@media (max-width: 700px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* Map */
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #eee; height: 440px; }
@media (max-width: 600px) { .map-wrap { height: 320px; } }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* CTA band */
.cta-band { background: var(--ink); color: #fff; border-radius: 18px; padding: 36px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--red); }
.cta-band h2 { margin: 0 0 6px; font-size: 24px; }
.cta-band p { margin: 0; color: #bdbdc3; }

.related { display: flex; flex-wrap: wrap; gap: 8px; }
.related a { text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: 15px; background: #fff; }
.related a:hover { border-color: var(--red); color: var(--red); }

/* ---------- Footer ---------- */
.site-footer { background: #0b0b0c; color: #a6a6ac; padding: 44px 0 110px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }
.site-footer h2 { color: #fff; font-size: 15px; margin: 0 0 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: #d2d2d6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.biz-info { line-height: 1.9; }
.copyright { border-top: 1px solid #222; margin-top: 32px; padding-top: 18px; font-size: 13px; color: #77777d; }
@media (min-width: 761px) { .site-footer { padding-bottom: 44px; } }

/* Mobile bottom bar */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #0b0b0c; border-top: 1px solid #2a2a2c; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); gap: 8px; }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 4px; border-radius: 10px; font-weight: 700; font-size: 15px; text-decoration: none; }
  .mobile-bar svg { width: 17px; height: 17px; }
  .mobile-bar .call { background: var(--red); color: #fff; }
  .mobile-bar .kakao { background: #fee500; color: #191919; }
  .mobile-bar .map { background: #26262a; color: #fff; }
  .hero-inner { padding: 52px 0 48px; }
  .section { padding: 48px 0; }
  .cta-band { padding: 28px 24px; }
  .hero::after { width: 200px; right: -110px; opacity: .6; }
}
