/* =========================================================
   쓰리 마사지 — Design System
   Dark premium theme, warm gold accents.
   ========================================================= */

:root {
  /* Palette */
  --bg:            #0c1016;   /* near-black deep navy */
  --bg-2:          #111722;   /* panel */
  --bg-3:          #161e2b;   /* raised card */
  --line:          #243043;   /* hairline */
  --gold:          #c9a86a;   /* warm gold */
  --gold-soft:     #e3c98f;
  --gold-dim:      rgba(201,168,106,.18);
  --text:          #eef2f7;
  --text-2:        #b8c2d0;
  --text-3:        #7f8b9c;
  --danger:        #d98b7a;
  --ok:            #8fc7a8;

  --radius:        16px;
  --radius-sm:     10px;
  --maxw:          1160px;
  --shadow:        0 18px 50px rgba(0,0,0,.45);
  --shadow-sm:     0 6px 18px rgba(0,0,0,.30);
  --ease:          cubic-bezier(.22,.61,.36,1);

  --font: "Pretendard", "Pretendard Variable", -apple-system, BlinkMacSystemFont,
          "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; letter-spacing: -0.02em; font-weight: 700; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.eyebrow {
  display: inline-block; font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin-bottom: 14px;
}
.lead { color: var(--text-2); font-size: 1.05rem; max-width: 70ch; }
.muted { color: var(--text-3); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: .98rem;
  border: 1px solid transparent; transition: transform .2s var(--ease), background .2s, border-color .2s;
}
.btn:active { transform: translateY(1px); }
.btn--gold { background: linear-gradient(180deg, var(--gold-soft), var(--gold)); color: #1a1407; }
.btn--gold:hover { background: var(--gold-soft); }
.btn--ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-soft); }
.btn--block { width: 100%; justify-content: center; }
.btn--lg { padding: 16px 28px; font-size: 1.05rem; }

/* =========================================================
   Header / Navigation
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(12,16,22,.82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 24px;
}
.brand { display: flex; align-items: baseline; gap: 10px; font-weight: 800; font-size: 1.15rem; }
.brand b { color: var(--gold); }
.brand span { font-size: .72rem; letter-spacing: .18em; color: var(--text-3); text-transform: uppercase; }

/* Desktop menu */
.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: 10px; font-weight: 600; color: var(--text-2);
  transition: color .18s, background .18s;
}
.nav-item:hover > .nav-link,
.nav-link[aria-current="page"] { color: var(--text); }
.nav-item.has-dd > .nav-link::after {
  content: ""; width: 6px; height: 6px; margin-left: 2px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px); opacity: .6; transition: transform .2s;
}
.nav-item.has-dd:hover > .nav-link::after { transform: rotate(225deg) translateY(2px); }

/* Dropdown */
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 230px; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow); padding: 10px;
  opacity: 0; visibility: hidden; transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown::before { /* hover bridge */
  content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px;
}
.dropdown a {
  display: block; padding: 10px 12px; border-radius: 9px; color: var(--text-2);
  font-size: .95rem; font-weight: 500; transition: background .15s, color .15s;
}
.dropdown a:hover { background: var(--gold-dim); color: var(--gold-soft); }

/* Mega dropdown for 지역안내 */
.dropdown--mega { min-width: 620px; max-width: calc(100vw - 32px); left: 0; right: auto; transform: translateY(8px); padding: 16px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 22px; }
.nav-item:hover .dropdown--mega,
.nav-item:focus-within .dropdown--mega { transform: translateY(0); }
.dd-group > p {
  margin: 4px 0 6px; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; padding: 0 12px;
}
.dd-group .dd-areas { display: flex; flex-wrap: wrap; gap: 2px; }
.dd-group .dd-areas a { padding: 7px 11px; font-size: .9rem; }

/* Header right */
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta .btn { padding: 10px 18px; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 11px; background: var(--bg-3);
  border: 1px solid var(--line); padding: 0; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--text); position: relative; transition: .25s var(--ease);
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
body.menu-open .nav-toggle span { background: transparent; }
body.menu-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
body.menu-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* =========================================================
   Mobile drawer (accordion)
   ========================================================= */
.mobile-drawer {
  position: fixed; inset: 68px 0 0 0; z-index: 99;
  background: var(--bg); border-top: 1px solid var(--line);
  transform: translateX(100%); transition: transform .3s var(--ease);
  overflow-y: auto; padding: 14px 18px 80px;
}
body.menu-open .mobile-drawer { transform: translateX(0); }
.m-acc { border-bottom: 1px solid var(--line); }
.m-acc > a.m-row,
.m-acc > button.m-row {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 16px 4px; background: none; border: 0; color: var(--text);
  font-size: 1.05rem; font-weight: 600; text-align: left;
}
.m-acc > button.m-row::after {
  content: ""; width: 8px; height: 8px; border-right: 2px solid var(--text-3);
  border-bottom: 2px solid var(--text-3); transform: rotate(45deg); transition: transform .25s;
}
.m-acc.open > button.m-row::after { transform: rotate(-135deg); }
.m-panel { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.m-acc.open > .m-panel { max-height: 1600px; }
.m-panel-inner { padding: 0 6px 14px; }
.m-sub-title {
  font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold);
  font-weight: 700; margin: 12px 0 4px;
}
.m-panel a { display: block; padding: 11px 12px; color: var(--text-2); border-radius: 9px; font-weight: 500; }
.m-panel a:hover, .m-panel a:active { background: var(--gold-dim); color: var(--gold-soft); }
.m-areas { display: flex; flex-wrap: wrap; gap: 4px; }
.m-areas a { background: var(--bg-3); border: 1px solid var(--line); border-radius: 8px; padding: 9px 13px; }
.mobile-cta { margin-top: 20px; display: grid; gap: 10px; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 500px at 80% -10%, rgba(201,168,106,.16), transparent 60%),
    radial-gradient(800px 400px at 0% 10%, rgba(50,80,120,.18), transparent 55%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero-inner { padding: 92px 0 84px; max-width: 800px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.18; }
.hero h1 .g { color: var(--gold); }
.hero p { margin-top: 20px; font-size: 1.12rem; color: var(--text-2); max-width: 60ch; }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--text-2); font-size: .86rem;
}
.chip b { color: var(--gold-soft); }

/* =========================================================
   Cards / grids
   ========================================================= */
.grid { display: grid; gap: 20px; }
.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: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  transition: border-color .2s, transform .2s var(--ease);
}
.card:hover { border-color: rgba(201,168,106,.45); transform: translateY(-3px); }
.card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.card p { color: var(--text-2); font-size: .96rem; margin: 0; }
.card .card-link { display: inline-flex; gap: 6px; margin-top: 14px; color: var(--gold-soft); font-weight: 600; font-size: .92rem; }
.card .card-link::after { content: "→"; transition: transform .2s; }
.card:hover .card-link::after { transform: translateX(4px); }

.section-head { margin-bottom: 36px; }
.section-head h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
.section-head p { margin-top: 12px; }

/* =========================================================
   Price cards (premium)
   ========================================================= */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.price-card {
  position: relative; background: linear-gradient(180deg, #18212f, #0f1722);
  border: 1px solid rgba(201,168,106,.32); border-radius: var(--radius);
  padding: 26px 24px; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.price-card.is-best { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold-dim), var(--shadow); }
.price-badge {
  position: absolute; top: -12px; right: 20px; background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: #1a1407; font-size: .72rem; font-weight: 800; letter-spacing: .1em;
  padding: 5px 12px; border-radius: 999px;
}
.price-cat { font-size: .74rem; letter-spacing: .12em; color: var(--gold); font-weight: 700; text-transform: uppercase; }
.price-card h3 { font-size: 1.35rem; margin: 8px 0 10px; }
.price-card .desc { color: var(--text-2); font-size: .92rem; min-height: 0; }
.price-rows { margin-top: 18px; border-top: 1px solid var(--line); }
.price-row { display: flex; align-items: baseline; justify-content: space-between; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.price-row .dur { color: var(--text-2); font-size: .95rem; }
.price-row .amt { font-weight: 700; font-size: 1.08rem; font-variant-numeric: tabular-nums; }
.price-row .amt b { color: var(--gold-soft); }
.price-card .btn { margin-top: 20px; }

/* Notice box */
.notice {
  background: var(--bg-2); border: 1px solid var(--line); border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm); padding: 22px 24px;
}
.notice h3 { font-size: 1.05rem; margin-bottom: 10px; }
.notice ul { display: grid; gap: 8px; }
.notice li { position: relative; padding-left: 18px; color: var(--text-2); font-size: .95rem; }
.notice li::before { content: ""; position: absolute; left: 0; top: .65em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* =========================================================
   Article / prose
   ========================================================= */
.prose { max-width: 760px; }
.prose > * + * { margin-top: 18px; }
.prose h2 { font-size: 1.5rem; margin-top: 40px; }
.prose h3 { font-size: 1.2rem; margin-top: 28px; color: var(--gold-soft); }
.prose p { color: var(--text-2); }
.prose ul { display: grid; gap: 10px; padding-left: 4px; }
.prose ul li { position: relative; padding-left: 20px; color: var(--text-2); }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 7px; height: 7px; border-radius: 2px; background: var(--gold); transform: rotate(45deg); }
.prose strong { color: var(--text); }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .86rem; color: var(--text-3); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--gold-soft); }
.breadcrumb span.sep { opacity: .5; }

.page-head { padding: 56px 0 32px; border-bottom: 1px solid var(--line);
  background: radial-gradient(900px 300px at 85% -40%, rgba(201,168,106,.12), transparent 60%), var(--bg); }
.page-head h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
.page-head p { margin-top: 14px; color: var(--text-2); max-width: 70ch; }

/* Tag/category pills */
.cats { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.cat-pill {
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg-2); color: var(--text-2); font-size: .9rem; font-weight: 600; transition: .18s;
}
.cat-pill:hover, .cat-pill.active { border-color: var(--gold); color: var(--gold-soft); background: var(--gold-dim); }

.post-card { display: flex; flex-direction: column; }
.post-card .post-cat { font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.post-card h3 { font-size: 1.12rem; margin: 10px 0; }
.post-card p { flex: 1; }

/* Region group on areas index */
.region-block { margin-bottom: 14px; }
.region-block h3 { font-size: 1.25rem; margin-bottom: 4px; }
.region-block .region-sub { color: var(--text-3); font-size: .9rem; margin-bottom: 16px; }
.area-links { display: flex; flex-wrap: wrap; gap: 10px; }
.area-links a {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 12px;
  background: var(--bg-3); border: 1px solid var(--line); color: var(--text); font-weight: 600; transition: .18s;
}
.area-links a:hover { border-color: var(--gold); color: var(--gold-soft); transform: translateY(-2px); }
.area-links a small { color: var(--text-3); font-weight: 500; }

/* CTA band */
.cta-band {
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; text-align: center;
}
.cta-band h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
.cta-band p { color: var(--text-2); margin: 12px 0 24px; }
.cta-band .phone { font-size: 1.6rem; font-weight: 800; color: var(--gold-soft); letter-spacing: .02em; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; color: var(--text);
  font-size: 1.05rem; font-weight: 600; padding: 20px 36px 20px 4px; position: relative; }
.faq-q::after { content: "+"; position: absolute; right: 6px; top: 18px; font-size: 1.4rem; color: var(--gold); transition: transform .2s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.faq-item.open .faq-a { max-height: 500px; }
.faq-a p { color: var(--text-2); padding: 0 4px 22px; margin: 0; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 56px 0 40px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; }
.footer-grid a { display: block; color: var(--text-2); padding: 5px 0; font-size: .94rem; }
.footer-grid a:hover { color: var(--gold-soft); }
.footer-brand b { color: var(--gold); font-size: 1.2rem; font-weight: 800; }
.footer-brand p { color: var(--text-3); font-size: .9rem; margin: 12px 0 0; max-width: 32ch; }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; color: var(--text-3); font-size: .85rem; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 940px) {
  .nav-menu, .nav-cta .btn--ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  .grid-3, .grid-4, .price-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .section { padding: 52px 0; }
  .grid-2, .grid-3, .grid-4, .price-grid { grid-template-columns: 1fr; }
  .hero-inner { padding: 64px 0 56px; }
  .cta-band { padding: 28px 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .nav-cta .btn { padding: 9px 14px; font-size: .9rem; }
}
@media (min-width: 941px) and (max-width: 1100px) {
  .dropdown--mega { min-width: 540px; }
}
