/* ──────────────────────────────────────────
   의왕 출장마사지 88마사지 — 럭셔리 다크 + 오렌지
   다크 네이비 + 오렌지 #FF6B35 / Pretendard / 글래스 오버레이
   ────────────────────────────────────────── */
:root {
  /* ── 배경·패널 팔레트 ─────────────────── */
  --bg:            #070b14;
  --bg-2:          #0a1120;
  --panel:         #0d1626;
  --panel-2:       #101b30;
  --line:          #1b2742;

  /* ── 오렌지 주 색상 ──────────────────── */
  --orange-primary: #FF6B35;
  --orange-light:   #FFB84D;
  --orange-hover:   #FF8B5F;

  /* ── 골드 보조 ───────────────────────── */
  --gold:       #c8a25e;
  --gold-soft:  #e9d7ab;
  --gold-deep:  #a9853f;

  /* ── 텍스트 ─────────────────────────── */
  --text:     #eaedf4;
  --text-dim: #97a1b8;

  /* ── 타이포·레이아웃 ─────────────────── */
  --serif:     "Noto Serif KR", "Nanum Myeongjo", serif;
  --sans:      "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  --max:       1180px;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── 리셋 ────────────────────────────────── */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.85;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold-soft); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--orange-primary); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ── 헤더 ─────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background:
    radial-gradient(ellipse 46% 180% at 8% -50%, rgba(255,107,53,.12), transparent 58%),
    radial-gradient(ellipse 42% 150% at 55% -40%, rgba(90,124,210,.16), transparent 62%),
    radial-gradient(ellipse 46% 170% at 96% -45%, rgba(56,90,180,.34), transparent 60%),
    linear-gradient(115deg, #0c1530 0%, #15244c 34%, #101d3e 58%, #0a1228 100%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 34px rgba(4,8,18,.55);
}

.header-accent {
  height: 3px;
  background: linear-gradient(90deg,
    transparent 0%, #c85a2a 18%, var(--orange-primary) 38%,
    #FFB84D 50%, var(--orange-primary) 62%, #c85a2a 82%, transparent 100%);
  background-size: 200% 100%;
  animation: accent-flow 7s linear infinite;
}

@keyframes accent-flow {
  0%   { background-position: 200%  0; }
  100% { background-position: -200% 0; }
}

.header-top { border-bottom: 1px solid rgba(255,107,53,.18); }
.main-nav   { background: rgba(6,10,20,.45); backdrop-filter: blur(8px); }

.header-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 20px; min-height: 68px;
}

.brand {
  font-family: var(--serif);
  font-size: 1.24rem; font-weight: 900;
  letter-spacing: .12em; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 11px;
}

.brand-text {
  background: linear-gradient(120deg, #FFD699 0%, #FFB84D 30%, var(--orange-primary) 55%, #FFA94D 80%, var(--orange-primary) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  font-size: .92rem; font-weight: 900; color: #fff;
  background: linear-gradient(135deg, #FFB84D, var(--orange-primary) 55%, #E85A2B);
  box-shadow:
    0 0 0 1px rgba(255,107,53,.5),
    0 0 0 5px rgba(255,107,53,.08),
    0 4px 14px rgba(255,107,53,.3);
}

.brand:hover .brand-mark {
  box-shadow:
    0 0 0 1px rgba(255,107,53,.7),
    0 0 0 5px rgba(255,107,53,.14),
    0 4px 20px rgba(255,107,53,.45);
}

.header-tagline {
  font-size: .78rem; color: var(--text-dim); letter-spacing: .18em;
  border-left: 1px solid rgba(255,107,53,.22); padding-left: 20px;
  white-space: nowrap;
}

.tag-gem { color: var(--orange-primary); font-size: .55rem; vertical-align: 1px; }

.header-call {
  margin-left: auto; white-space: nowrap; font-weight: 800;
  color: white;
  background: linear-gradient(135deg, #FFB84D, var(--orange-primary) 60%, #E85A2B);
  border-radius: 26px; padding: 10px 24px; font-size: .95rem;
  display: inline-flex; align-items: center; gap: 9px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.3),
    0 6px 20px rgba(255,107,53,.26);
  transition: var(--transition);
}

.header-call:hover { filter: brightness(1.06); color: white; transform: translateY(-1px); }

.call-label {
  font-size: .7rem; font-weight: 700; opacity: .8;
  border-right: 1px solid rgba(255,255,255,.3); padding-right: 9px;
  letter-spacing: .08em;
}

@media (prefers-reduced-motion: reduce) { .header-accent { animation: none; } }

/* ── 햄버거 ──────────────────────────────── */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 40px; padding: 0 10px;
  background: none; border: 1px solid var(--orange-primary);
  border-radius: 9px; cursor: pointer;
}

.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--orange-primary); border-radius: 2px; transition: .2s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── 내비게이션 ───────────────────────────── */
.nav-inner { max-width: var(--max); margin: 0 auto; padding: 0 12px; }

.nav-list {
  list-style: none; display: flex; flex-wrap: nowrap;
  justify-content: center;
}

.nav-item { position: relative; }

.nav-item > a {
  position: relative;
  display: block; padding: 14px 15px; font-size: .93rem;
  letter-spacing: .04em; color: var(--text); white-space: nowrap;
}

.nav-item > a::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 8px;
  height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, #E85A2B, var(--orange-primary), #E85A2B);
  transform: scaleX(0); transform-origin: center;
  transition: transform .22s ease;
}

.nav-item > a:hover::after,
.nav-item.is-active > a::after { transform: scaleX(1); }
.nav-item.is-active > a { color: var(--orange-primary); }
.nav-item > a:hover { color: var(--orange-light); }

.sub-menu {
  display: none; position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  min-width: 200px; max-height: 70vh; overflow-y: auto;
  background: var(--bg-2); border: 1px solid rgba(255,107,53,.3);
  border-radius: 12px; list-style: none; padding: 10px 0;
  box-shadow: 0 18px 44px rgba(0,0,0,.6);
  backdrop-filter: blur(8px);
}

.nav-item.has-sub:hover .sub-menu,
.nav-item.has-sub:focus-within .sub-menu { display: block; }

.sub-menu a {
  display: block; padding: 8px 20px; font-size: .88rem; color: var(--text-dim);
  white-space: nowrap; transition: var(--transition);
}

.sub-menu a:hover { color: var(--orange-primary); background: rgba(255,107,53,.08); }

/* ── 히어로 ───────────────────────────────── */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse 70% 100% at 50% -20%, rgba(255,107,53,.15), transparent 62%),
    radial-gradient(ellipse 50% 60% at 85% 110%, rgba(28,45,86,.55), transparent 70%),
    linear-gradient(180deg, #0b1322 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
  text-align: center;
  padding: 88px 24px 64px;
  overflow: hidden;
}

.hero::after {
  content: ""; position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: 1px; height: 58px;
  background: linear-gradient(180deg, var(--orange-primary), transparent);
  opacity: .7;
}

.hero-content { max-width: 820px; margin: 0 auto; position: relative; }

.hero-badge {
  display: inline-block;
  font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--orange-primary);
  padding: 8px 16px;
  border: 1px solid var(--orange-primary); border-radius: 24px;
  margin-bottom: 16px;
  background: rgba(255,107,53,.06);
}

.hero-title {
  font-family: var(--serif);
  font-size: 3.2rem; font-weight: 900; line-height: 1.3;
  margin-bottom: 16px; color: var(--text);
}

.hero-accent {
  background: linear-gradient(120deg, var(--orange-light), var(--orange-primary), #E85A2B);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hero-lead { font-size: 1.08rem; color: var(--text-dim); margin-bottom: 32px; line-height: 1.8; }

.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 48px; }

.btn {
  display: inline-block; padding: 14px 28px; border-radius: 8px;
  font-weight: 700; font-size: .95rem; letter-spacing: .04em;
  transition: var(--transition); cursor: pointer; border: none; text-decoration: none;
}

.btn-primary {
  background: var(--orange-primary); color: white;
  box-shadow: 0 8px 24px rgba(255,107,53,.3);
}

.btn-primary:hover {
  background: var(--orange-hover);
  box-shadow: 0 12px 32px rgba(255,107,53,.4);
  transform: translateY(-2px); color: white;
}

.btn-secondary {
  background: transparent; color: var(--orange-primary);
  border: 1px solid var(--orange-primary);
}

.btn-secondary:hover {
  background: rgba(255,107,53,.1);
  color: var(--orange-hover); border-color: var(--orange-hover);
}

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  max-width: 600px; margin: 0 auto;
}

.stat {
  padding: 20px;
  background: rgba(255,107,53,.05);
  border: 1px solid rgba(255,107,53,.2); border-radius: 12px;
  text-align: center; backdrop-filter: blur(8px);
}

.stat-number { font-size: 2.2rem; font-weight: 900; color: var(--orange-primary); margin-bottom: 8px; }
.stat-label  { font-size: .85rem; color: var(--text-dim); font-weight: 600; }

/* ── 메인 콘텐츠 ───────────────────────────── */
.site-main { background: var(--bg); padding: 48px 0; }

.page-content { animation: fadeIn .3s ease-in-out; min-width: 0; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

h1,h2,h3,h4,h5,h6 { font-family: var(--serif); font-weight: 700; line-height: 1.4; margin-bottom: 16px; color: var(--text); }

h1 { font-size: 2.4rem; margin-bottom: 24px; border-bottom: 2px solid var(--orange-primary); padding-bottom: 16px; }

h2 { font-size: 1.8rem; margin-top: 48px; margin-bottom: 24px; position: relative; padding-bottom: 12px; }

h2::before {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 48px; height: 2px; background: var(--orange-primary);
}

h3 { font-size: 1.3rem; margin-top: 32px; }
h4 { font-size: 1.1rem; }
h5 { font-size: 1rem;   }
h6 { font-size: .95rem; }

p    { margin-bottom: 16px; color: var(--text); }
ul,ol{ margin-left: 24px; margin-bottom: 16px; color: var(--text); }
li   { margin-bottom: 12px; line-height: 1.8; }
strong { font-weight: 700; color: var(--orange-primary); }

/* ── 카드 그리드 ───────────────────────────── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin: 24px 0; }

.card {
  display: block; padding: 28px 24px;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px;
  color: var(--text); text-decoration: none;
  transition: var(--transition); position: relative; overflow: hidden;
}

.card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,107,53,.08), transparent);
  opacity: 0; transition: opacity var(--transition);
}

.card::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--orange-primary), var(--orange-light), var(--orange-primary));
  transform: translateX(-100%); transition: transform var(--transition);
}

.card:hover {
  border-color: var(--orange-primary);
  box-shadow: 0 0 0 1px rgba(255,107,53,.3), 0 8px 24px rgba(255,107,53,.15);
  transform: translateY(-4px);
}

.card:hover::before { opacity: 1; }
.card:hover::after  { transform: translateX(0); }

.card h3 { position: relative; z-index: 1; margin-top: 0; color: var(--orange-light); font-size: 1.2rem; }
.card p  { position: relative; z-index: 1; color: var(--text-dim); font-size: .95rem; }

.card-arrow {
  position: relative; z-index: 1;
  display: inline-block; color: var(--orange-primary); margin-top: 12px;
  font-weight: 700; opacity: 0; transform: translateX(-8px); transition: var(--transition);
}

.card:hover .card-arrow { opacity: 1; transform: translateX(0); }

/* ── 푸터 ─────────────────────────────────── */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 48px 0 0; margin-top: 64px; }

.footer-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  padding: 48px 24px; max-width: var(--max); margin: 0 auto;
}

.footer-col { color: var(--text-dim); }
.footer-about { grid-column: 1; }

.footer-brand {
  font-family: var(--serif); font-size: 1.24rem; font-weight: 900;
  margin-bottom: 12px;
  background: linear-gradient(120deg, var(--orange-light), var(--orange-primary));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.footer-desc { font-size: .9rem; color: var(--text-dim); margin-bottom: 20px; line-height: 1.7; }

.footer-contact { font-style: normal; display: flex; flex-direction: column; gap: 8px; }

.footer-contact-row { display: flex; gap: 12px; font-size: .88rem; color: var(--text-dim); }
.footer-contact-row a { color: var(--orange-primary); font-weight: 600; }

.footer-label { font-weight: 600; color: var(--text); min-width: 70px; }

.footer-title { font-weight: 700; color: var(--text); margin-bottom: 16px; font-size: .95rem; letter-spacing: .04em; }

.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a  { font-size: .9rem; color: var(--text-dim); transition: var(--transition); }
.footer-col a:hover { color: var(--orange-primary); }

/* ── 푸터 하단 (오렌지 버튼) ────────────────── */
.footer-bottom {
  background: rgba(255,107,53,.03);
  border-top: 1px solid var(--line);
  padding: 32px 0;
}

.footer-bottom-inner {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  max-width: var(--max); margin: 0 auto; padding: 0 24px; text-align: center;
}

.footer-copy  { font-size: .85rem; color: var(--text-dim); }
.footer-note  { font-size: .8rem;  color: var(--text-dim); max-width: 600px; }

.footer-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }

/* 오렌지 버튼 — 웹사이트 제작문의 / 제휴문의 */
.btn-telegram,
.btn-partnership {
  background-color: var(--orange-primary);
  color: #fff;
  border: none; border-radius: 8px;
  padding: 11px 20px;
  font-weight: 700; font-size: .92rem;
  font-family: var(--sans);
  cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(255,107,53,.35);
  letter-spacing: .02em;
}

.btn-telegram:hover,
.btn-partnership:hover {
  background-color: var(--orange-hover);
  box-shadow: 0 8px 24px rgba(255,107,53,.5);
  transform: translateY(-2px);
  color: #fff;
  text-decoration: none;
}

.btn-telegram:active,
.btn-partnership:active { transform: translateY(0); }

/* ── FAB ─────────────────────────────────── */
.call-fab {
  position: fixed; bottom: 24px; right: 24px;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--orange-primary); color: white;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(255,107,53,.4);
  transition: var(--transition); z-index: 50; text-decoration: none;
}

.call-fab svg { width: 28px; height: 28px; fill: currentColor; }

.call-fab:hover {
  background: var(--orange-hover);
  box-shadow: 0 12px 32px rgba(255,107,53,.5);
  transform: scale(1.1);
}

.call-fab-label {
  position: absolute; bottom: -32px;
  font-size: .75rem; font-weight: 700;
  white-space: nowrap; pointer-events: none;
  opacity: 0; transition: opacity var(--transition);
}

.call-fab:hover .call-fab-label { opacity: 1; }

/* ── 브레드크럼 ──────────────────────────── */
.breadcrumb { margin-bottom: 24px; }

.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; font-size: .9rem; }

.breadcrumb li { margin: 0; display: flex; align-items: center; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 8px; color: var(--text-dim); }
.breadcrumb a  { color: var(--orange-light); }
.breadcrumb a:hover { color: var(--orange-primary); }
.breadcrumb span { color: var(--text-dim); }

/* ── FAQ ─────────────────────────────────── */
.faq-list dt {
  font-weight: 700; color: var(--orange-primary);
  margin-top: 20px; padding-top: 12px;
  border-top: 1px solid rgba(255,107,53,.2);
}

.faq-list dt:first-of-type { margin-top: 0; border-top: none; padding-top: 0; }
.faq-list dd { color: var(--text-dim); margin: 8px 0 0 0; padding: 0; line-height: 1.8; }

/* ── 목차 (TOC) ──────────────────────────── */
.page-toc {
  display: none; position: sticky; top: 150px; align-self: start;
  width: 100%; max-height: calc(100vh - 170px); overflow-y: auto;
  font-size: .85rem;
  background: rgba(13,22,38,.8); border: 1px solid var(--line);
  border-radius: 8px; padding: 16px; backdrop-filter: blur(8px);
}

.page-layout { padding: 0 40px; }

.page-layout.has-toc {
  display: grid; grid-template-columns: 220px 1fr; gap: 80px;
  max-width: 1400px; margin: 0 auto; padding: 0 40px;
}

.page-layout.has-toc .page-toc { display: block; }

.toc-title { font-weight: 700; color: var(--orange-primary); margin-bottom: 12px; font-size: .9rem; letter-spacing: .04em; }

.page-toc ul { list-style: none; margin: 0; padding: 0; }
.page-toc li { margin-bottom: 6px; }
.page-toc a  { color: var(--text-dim); font-size: .8rem; transition: var(--transition); display: block; padding: 4px 8px; border-radius: 4px; }
.page-toc a:hover { color: var(--orange-primary); background: rgba(255,107,53,.08); }

/* ── 반응형 ──────────────────────────────── */
@media (max-width: 1200px) {
  .page-layout.has-toc { grid-template-columns: 1fr; }
  .page-toc { position: relative; left: auto; top: auto; width: 100%; max-height: none; margin-bottom: 32px; max-width: 100%; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .hero-title { font-size: 2.4rem; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    max-height: 0; overflow: hidden; transition: max-height .3s;
    background: var(--bg-2); z-index: 99;
  }

  .main-nav.open { max-height: 60vh; }
  .nav-list { flex-direction: column; }
  .nav-item { width: 100%; }

  .nav-item > a { padding: 16px 24px; border-bottom: 1px solid var(--line); }

  .sub-menu {
    position: static; transform: none; display: none;
    background: var(--panel); border: none; border-radius: 0;
    max-height: none; box-shadow: none; margin-top: 0;
  }

  .nav-item.has-sub:hover .sub-menu,
  .nav-item.has-sub:focus-within .sub-menu { display: block; }

  .sub-menu a { padding: 12px 24px 12px 48px; }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-about { grid-column: auto; }

  .hero-title { font-size: 1.8rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .header-tagline { display: none; }
  .card-grid { grid-template-columns: 1fr; }

  .header-call { margin-left: 12px; padding: 8px 16px; font-size: .85rem; }
  .call-label  { display: none; }

  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.3rem; }

  .footer-actions { flex-direction: column; align-items: center; }
  .btn-telegram,
  .btn-partnership { width: 100%; max-width: 320px; justify-content: center; }

  .related-links__grid { grid-template-columns: 1fr; }
}

/* ── 관련 안내 페이지 카드 ───────────────────────────────────────── */
.related-links {
  margin-top: 52px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.related-links__heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange-primary);
  margin-bottom: 18px;
}

.related-links__heading::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 2px;
  background: var(--orange-primary);
  border-radius: 1px;
}

.related-links__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.rel-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--orange-primary);
  border-radius: 8px;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--text-dim);
  font-size: .84rem;
  line-height: 1.55;
  word-break: keep-all;
  transition: background var(--transition), border-color var(--transition),
              color var(--transition), transform var(--transition),
              box-shadow var(--transition);
}

.rel-card:hover {
  background: var(--panel-2);
  border-color: var(--orange-primary);
  border-left-color: var(--orange-light);
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,107,53,.12);
}

.rel-card__arrow {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  background: rgba(255,107,53,.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  color: var(--orange-primary);
  transition: background var(--transition), color var(--transition);
}

.rel-card:hover .rel-card__arrow {
  background: var(--orange-primary);
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
