/* ============================================================
   1급열쇠 — 전체 사이트 스타일 (럭셔리 블랙 & 골드 테마)
   ============================================================ */
:root {
  --brand: #d4af37;
  --brand-dark: #b58f27;
  --brand-glow: rgba(212, 175, 55, 0.25);
  --accent: #ffc107;
  --ink: #f5f6f9;
  --ink-2: #d0d5e0;
  --ink-3: #8a94a6;
  --line: #222836;
  --line-gold: rgba(212, 175, 55, 0.22);
  --bg: #0b0c10;
  --bg-2: #141720;
  --bg-card: #181c28;
  --radius: 14px;
  --max: 1180px;
  --font: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: #f5d77f; text-decoration: underline; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- 헤더 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 12, 16, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-gold);
}
.header-inner { display: flex; align-items: center; gap: 18px; height: 68px; }
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -.02em;
  color: var(--ink);
  flex: 0 0 auto;
}
.logo:hover { text-decoration: none; }
.logo .mark { width: 32px; height: 32px; flex: 0 0 auto; filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.4)); }
.logo .a { color: var(--brand); text-shadow: 0 0 10px rgba(212, 175, 55, 0.3); }
.logo .b { color: #ffffff; }
.logo .tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0;
  display: block;
  line-height: 1.2;
}

nav.main { margin-left: auto; display: flex; align-items: center; gap: 4px; }
nav.main > ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 4px; }
nav.main li { position: relative; }
nav.main > ul > li > a {
  display: block;
  padding: 9px 15px;
  font-weight: 600;
  font-size: 15.5px;
  color: var(--ink-2);
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
nav.main > ul > li > a:hover {
  background: rgba(212, 175, 55, 0.12);
  text-decoration: none;
  color: var(--brand);
}
nav.main > ul > li > a::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 6px;
  vertical-align: 2px;
  border-right: 1.6px solid var(--ink-3);
  border-bottom: 1.6px solid var(--ink-3);
  transform: rotate(45deg);
}
.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #141722;
  border: 1px solid var(--line-gold);
  border-radius: 12px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 175, 55, 0.1);
  padding: 8px;
  list-style: none;
  margin: 8px 0 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: 0.18s ease;
}
nav.main li:hover > .submenu, nav.main li:focus-within > .submenu {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.submenu a {
  display: block;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 14.5px;
  color: var(--ink-2);
}
.submenu a:hover {
  background: rgba(212, 175, 55, 0.15);
  color: var(--brand);
  text-decoration: none;
}

.head-call {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #e5c05d 0%, #b58f27 100%);
  color: #0b0c10;
  font-weight: 800;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 15px;
  margin-left: 16px;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
  transition: all 0.2s ease;
}
.head-call:hover {
  background: linear-gradient(135deg, #f5d77f 0%, #d4af37 100%);
  text-decoration: none;
  color: #000;
  box-shadow: 0 6px 22px rgba(212, 175, 55, 0.5);
  transform: translateY(-1px);
}
.burger { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* ---------- 히어로 ---------- */
.hero {
  background: radial-gradient(circle at 50% 20%, #241f13 0%, #0b0c10 75%);
  border-bottom: 1px solid var(--line-gold);
  color: #fff;
  padding: 64px 0 54px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse at top, rgba(212, 175, 55, 0.15), transparent 70%);
  pointer-events: none;
}
.hero h1 {
  margin: 0 0 16px;
  font-size: 42px;
  line-height: 1.25;
  letter-spacing: -.03em;
  font-weight: 800;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #f5d77f 0%, #d4af37 50%, #e5c05d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.3));
}
.hero p {
  margin: 0 0 28px;
  font-size: 17.5px;
  color: var(--ink-2);
  max-width: 660px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  padding: 15px 28px;
  border-radius: 999px;
  font-size: 17px;
  transition: all 0.2s ease;
}
.btn-call {
  background: linear-gradient(135deg, #f5d77f 0%, #d4af37 60%, #b58f27 100%);
  color: #0b0c10;
  box-shadow: 0 6px 24px rgba(212, 175, 55, 0.35);
}
.btn-call:hover {
  background: linear-gradient(135deg, #ffffff 0%, #f5d77f 100%);
  color: #000;
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.5);
  transform: translateY(-2px);
  text-decoration: none;
}
.btn-ghost {
  border: 1.5px solid rgba(212, 175, 55, 0.5);
  color: var(--brand);
  background: rgba(212, 175, 55, 0.06);
}
.btn-ghost:hover {
  background: rgba(212, 175, 55, 0.18);
  border-color: var(--brand);
  color: #fff;
  text-decoration: none;
}
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero-badges span {
  font-size: 13.5px;
  font-weight: 600;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: var(--ink-2);
  padding: 6px 15px;
  border-radius: 999px;
}

/* ---------- 섹션 ---------- */
section.block { padding: 56px 0; }
section.block.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { text-align: center; margin-bottom: 36px; }
.sec-head h2 { margin: 0 0 10px; font-size: 29px; letter-spacing: -.02em; color: #fff; }
.sec-head p { margin: 0; color: var(--ink-3); font-size: 16px; }

.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.svc-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}
.svc-card:hover {
  border-color: var(--brand);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 20px rgba(212, 175, 55, 0.15);
  text-decoration: none;
  transform: translateY(-3px);
  background: #1e2332;
}
.svc-card h3 { margin: 0 0 8px; font-size: 18px; color: #fff; }
.svc-card p { margin: 0; font-size: 14.5px; color: var(--ink-3); line-height: 1.65; }
.svc-card .ico { font-size: 28px; margin-bottom: 12px; display: block; }

.step-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; counter-reset: s; }
.step {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  position: relative;
}
.step::before {
  counter-increment: s;
  content: counter(s);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e5c05d, #b58f27);
  color: #0b0c10;
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 14px;
}
.step h3 { margin: 0 0 8px; font-size: 17px; color: #fff; }
.step p { margin: 0; font-size: 14.5px; color: var(--ink-3); }

/* 지역 목록 */
.region-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.region-group h3 {
  margin: 0 0 12px;
  font-size: 17px;
  color: var(--brand);
  border-bottom: 2px solid var(--line-gold);
  padding-bottom: 8px;
}
.region-links { display: flex; flex-wrap: wrap; gap: 7px; }
.region-links a {
  font-size: 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 6px 13px;
  border-radius: 999px;
  color: var(--ink-2);
  transition: all 0.15s ease;
}
.region-links a:hover {
  background: var(--brand);
  color: #0b0c10;
  font-weight: 600;
  border-color: var(--brand);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

/* ---------- 목록 페이지 ---------- */
.page-head { padding: 36px 0 24px; border-bottom: 1px solid var(--line); }
.page-head h1 { margin: 0 0 10px; font-size: 32px; letter-spacing: -.02em; color: #fff; }
.page-head p { margin: 0; color: var(--ink-3); font-size: 16px; }
.crumb { font-size: 14px; color: var(--ink-3); margin-bottom: 14px; }
.crumb a { color: var(--ink-3); }
.crumb a:hover { color: var(--brand); }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px 20px; padding: 36px 0; }
.post-card { display: block; color: inherit; }
.post-card:hover { text-decoration: none; }
.post-card .thumb {
  aspect-ratio: 16/10;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-card);
  margin-bottom: 12px;
  border: 1px solid var(--line);
}
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: 0.3s ease; }
.post-card:hover .thumb img { transform: scale(1.05); }
.post-card h3 { margin: 0 0 6px; font-size: 16px; line-height: 1.5; font-weight: 600; color: var(--ink); }
.post-card:hover h3 { color: var(--brand); }
.post-card time { font-size: 13.5px; color: var(--ink-3); }

/* ---------- 글 페이지 ---------- */
.article-layout { display: grid; grid-template-columns: 260px 1fr; gap: 48px; padding: 32px 0 64px; align-items: start; }
.toc {
  position: sticky;
  top: 88px;
  background: var(--bg-card);
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  font-size: 14px;
  max-height: calc(100vh - 120px);
  overflow: auto;
}
.toc-title { font-weight: 800; font-size: 15.5px; margin: 0 0 12px; color: var(--brand); display: flex; align-items: center; justify-content: space-between; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.toc > ol > li { counter-increment: t; margin-bottom: 3px; }
.toc > ol > li > a::before { content: counter(t) ". "; color: var(--ink-3); }
.toc a { display: block; padding: 5px 8px; border-radius: 6px; color: var(--ink-2); line-height: 1.5; }
.toc a:hover { background: rgba(212, 175, 55, 0.15); color: var(--brand); text-decoration: none; }
.toc ol ol { padding-left: 14px; counter-reset: u; }
.toc ol ol li { counter-increment: u; }
.toc ol ol a { font-size: 13.2px; color: var(--ink-3); }
.toc ol ol a::before { content: counter(t) "-" counter(u) ". "; }

article h1 { font-size: 34px; line-height: 1.35; letter-spacing: -.025em; margin: 0 0 12px; color: #ffffff; }
article .meta { color: var(--ink-3); font-size: 14.5px; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
article h2 {
  font-size: 23px;
  margin: 48px 0 16px;
  letter-spacing: -.02em;
  padding-left: 14px;
  border-left: 4px solid var(--brand);
  color: #ffffff;
}
article h3 { font-size: 18.5px; margin: 30px 0 12px; color: var(--brand); }
article p { margin: 0 0 16px; color: var(--ink-2); line-height: 1.8; }
article ul { margin: 0 0 20px; padding-left: 22px; }
article li { margin-bottom: 8px; color: var(--ink-2); }
article .banner { margin: 32px 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }

.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 12px;
  background: var(--bg-card);
}
.faq-item .q { font-weight: 700; margin: 0 0 8px; color: var(--brand); font-size: 16.5px; }
.faq-item .a { margin: 0; color: var(--ink-2); font-size: 15.2px; line-height: 1.7; }

.area-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.area-chips li { margin: 0; }
.area-chips a, .area-chips span {
  display: inline-block;
  font-size: 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 6px 13px;
  border-radius: 999px;
  color: var(--ink-2);
}
.area-chips a:hover { background: var(--brand); color: #0b0c10; font-weight: 600; border-color: var(--brand); text-decoration: none; }

.cta-box {
  background: radial-gradient(circle at 50% 50%, #231f14 0%, #12141c 100%);
  border: 1px solid var(--line-gold);
  color: #fff;
  border-radius: 16px;
  padding: 32px 28px;
  margin: 38px 0;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 25px rgba(212, 175, 55, 0.12);
}
.cta-box h3 { margin: 0 0 8px; font-size: 22px; color: var(--brand); }
.cta-box p { margin: 0 0 20px; color: var(--ink-2); font-size: 15.5px; }
.cta-box .btn-call { font-size: 19px; }

/* ---------- 푸터 ---------- */
footer.site {
  background: #060709;
  border-top: 1px solid var(--line-gold);
  color: var(--ink-3);
  padding: 48px 0 100px;
  font-size: 14px;
  margin-top: 24px;
}
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
footer.site h4 { color: #fff; font-size: 16px; margin: 0 0 14px; }
footer.site a { color: var(--ink-3); }
footer.site a:hover { color: var(--brand); }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { margin-bottom: 8px; }
footer.site .biz { border-top: 1px solid #1a1e28; padding-top: 22px; font-size: 13px; line-height: 1.9; color: #687182; }
footer.site .fphone {
  color: var(--brand);
  font-size: 26px;
  font-weight: 800;
  display: block;
  margin-bottom: 6px;
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.2);
}

/* ---------- 하단 고정 전화 버튼 ---------- */
.floating {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  display: flex;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.7);
  border-top: 1px solid var(--line-gold);
}
.floating a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 8px;
  font-weight: 800;
  font-size: 18px;
  color: #0b0c10;
  background: linear-gradient(135deg, #f5d77f 0%, #d4af37 100%);
}
.floating a.sms {
  background: #1e2332;
  color: var(--brand);
  border-left: 1px solid var(--line-gold);
  flex: 0 0 34%;
}
.floating a:hover { text-decoration: none; opacity: 0.95; }

/* ---------- 반응형 ---------- */
@media (max-width: 1000px) {
  .article-layout { grid-template-columns: 1fr; gap: 0; }
  .toc { position: static; max-height: none; margin-bottom: 28px; }
  .toc ol { display: none; }
  .toc.open ol { display: block; }
  .toc-title { cursor: pointer; }
}
@media (max-width: 860px) {
  .burger { display: block; }
  nav.main {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: #12141c;
    border-bottom: 1px solid var(--line-gold);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 16px 20px;
    display: none;
    max-height: calc(100vh - 68px);
    overflow: auto;
  }
  nav.main.open { display: flex; }
  nav.main > ul { flex-direction: column; gap: 0; }
  nav.main > ul > li > a { padding: 14px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  nav.main > ul > li > a::after { float: right; margin-top: 8px; }
  .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    background: #1a1e2a;
    border-radius: 8px;
    margin: 6px 0 10px;
    display: none;
  }
  nav.main li.open > .submenu { display: block; }
  .head-call { display: none; }
  .hero { padding: 44px 0 40px; }
  .hero h1 { font-size: 30px; }
  .hero p { font-size: 16px; }
  article h1 { font-size: 26px; }
  article h2 { font-size: 20.5px; margin: 36px 0 14px; }
  .page-head h1 { font-size: 26px; }
  footer.site .cols { grid-template-columns: 1fr; gap: 24px; }
  .post-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 20px 14px; }
  .post-card h3 { font-size: 14.5px; }
}

.post-card .thumb.sq { aspect-ratio: 1/1; }
article .banner img { border-radius: 14px; border: 1px solid var(--line); }
article .banner { max-width: 560px; margin: 32px auto; }
@media (max-width: 860px) { article .banner { max-width: 100%; } }
