/* ==========================================================================
   간다GO · 서울 출장마사지 안내
   Pretendard + 프리미엄 디자인 토큰 시스템
   ========================================================================== */

/* ---- Pretendard (self-hosted subset via CDN fallback) -------------------- */
@font-face {
  font-family: "Pretendard";
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
  src: local("Pretendard Variable"), local("Pretendard");
}

/* ==========================================================================
   1. 디자인 토큰 — 프리미엄 팔레트
   기존 토큰 이름을 유지하되 값만 프리미엄 다크/앰버 팔레트로 교체
   ========================================================================== */
:root {
  /* ---- 브랜드 앰버(오렌지) 스케일 ---- */
  --amber-300: #ffc078;
  --amber-400: #ffab52;
  --amber-500: #ff8a2b;   /* 기본 액센트 */
  --amber-600: #f7801e;
  --amber-700: #e46a00;

  /* ---- 뉴트럴(다크) 스케일 ---- */
  --ink-950: #080b12;
  --ink-900: #0b0e16;
  --ink-850: #10141f;
  --ink-800: #151b28;
  --ink-700: #1c2333;
  --ink-600: #263042;
  --ink-500: #3a475e;

  /* ---- 시맨틱 토큰 ---- */
  --bg: var(--ink-900);
  --bg-elev: var(--ink-850);
  --surface: var(--ink-800);
  --surface-2: var(--ink-700);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text: #f4f7fb;
  --text-muted: #9aa6b8;
  --text-dim: #6b7688;

  --accent: var(--amber-500);
  --accent-strong: var(--amber-600);
  --accent-ink: #1a0f00;

  /* ---- 그라디언트 / 오버레이 ---- */
  --grad-accent: linear-gradient(135deg, var(--amber-400) 0%, var(--amber-600) 100%);
  --grad-hero: radial-gradient(1200px 600px at 50% -10%, rgba(255, 138, 43, 0.16), transparent 60%);
  --overlay-glass: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01));
  --overlay-glow: 0 0 0 1px rgba(255, 138, 43, 0.35), 0 12px 40px -8px rgba(255, 138, 43, 0.45);

  /* ---- 반경 / 그림자 / 간격 ---- */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 30px 70px -20px rgba(0, 0, 0, 0.7);

  --step: 8px;
  --container: 1160px;

  --font: "Pretendard", "Pretendard Variable", -apple-system, BlinkMacSystemFont,
    system-ui, "Segoe UI", Roboto, "Helvetica Neue", "Apple SD Gothic Neo",
    "Noto Sans KR", sans-serif;
}

/* ==========================================================================
   2. 리셋 & 베이스
   ========================================================================== */
*,
*::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.65;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.25; letter-spacing: -0.02em; margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.section { padding: clamp(56px, 8vw, 104px) 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; }
.section-head p { color: var(--text-muted); font-size: 1.02rem; margin: 14px auto 0; }

/* ==========================================================================
   3. 버튼 컴포넌트 + 오버레이
   ========================================================================== */
.btn {
  --_bg: var(--surface-2);
  --_fg: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--_bg);
  color: var(--_fg);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  position: relative;
  isolation: isolate;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--accent {
  --_bg: var(--grad-accent);
  --_fg: var(--accent-ink);
  border-color: transparent;
  box-shadow: var(--overlay-glow);
}
.btn--accent:hover { box-shadow: 0 0 0 1px rgba(255, 138, 43, 0.5), 0 18px 48px -8px rgba(255, 138, 43, 0.6); }

.btn--ghost {
  --_bg: transparent;
  border-color: var(--accent-strong);
  --_fg: var(--accent);
}
.btn--ghost:hover { --_bg: rgba(255, 138, 43, 0.08); }

.btn--block { width: 100%; }

/* ==========================================================================
   4. 헤더 / 내비게이션
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; }
.brand__mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--grad-accent);
  display: grid; place-items: center;
  color: var(--accent-ink); font-weight: 900; font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
}
.nav__links { display: flex; gap: 26px; }
.nav__links a { color: var(--text-muted); font-weight: 600; font-size: 0.95rem; transition: color 0.15s; }
.nav__links a:hover { color: var(--text); }
.nav__cta { display: flex; align-items: center; gap: 10px; }
.nav__phone { font-weight: 800; color: var(--text); font-size: 0.98rem; white-space: nowrap; }

/* ---- 권역별 안내 메가 드롭다운 ---- */
.nav-dd { position: relative; }
.nav-dd > summary {
  list-style: none;
  cursor: pointer;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex; align-items: center; gap: 5px;
  transition: color 0.15s;
}
.nav-dd > summary::-webkit-details-marker { display: none; }
.nav-dd > summary::after { content: "▾"; font-size: 0.8rem; }
.nav-dd[open] > summary,
.nav-dd > summary:hover { color: var(--text); }
.nav-dd__panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  width: min(760px, 90vw);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px 18px;
  padding: 22px;
  background: var(--overlay-glass), var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.nav-dd__panel::before {
  content: "";
  position: absolute; top: -7px; left: 50%; transform: translateX(-50%) rotate(45deg);
  width: 13px; height: 13px;
  background: var(--bg-elev);
  border-left: 1px solid var(--border-strong);
  border-top: 1px solid var(--border-strong);
}
.nav-dd__region {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--accent);
  padding-bottom: 8px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--border);
}
.nav-dd__panel a {
  display: block;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 5px 0;
}
.nav-dd__panel a:hover { color: var(--accent); }

@media (max-width: 980px) {
  .nav-dd__panel { grid-template-columns: repeat(2, 1fr); width: min(460px, 92vw); }
}

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__phone { display: none; }
}

/* ==========================================================================
   5. 히어로
   ========================================================================== */
.hero {
  position: relative;
  padding: clamp(64px, 10vw, 120px) 0 clamp(48px, 7vw, 88px);
  background: var(--grad-hero), var(--bg);
  text-align: center;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: auto 0 -1px 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}
/* 히어로 2단(텍스트 + 이미지) */
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
  text-align: left;
}
.hero__media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: linear-gradient(160deg, var(--ink-700), var(--ink-900));
  box-shadow: var(--shadow-lg);
}
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__media-ph {
  position: absolute; inset: 0;
  display: grid; place-content: center; gap: 6px;
  text-align: center; color: var(--text-dim);
  font-weight: 700; font-size: 0.95rem;
}
.hero__media-ph small { color: var(--text-dim); opacity: 0.7; font-weight: 500; font-size: 0.78rem; }
.hero__media:not(.is-empty) .hero__media-ph { display: none; }

.hero h1 {
  font-size: clamp(2rem, 5.4vw, 3.3rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  max-width: 16ch;
  margin-inline: auto;
}
.hero__text h1 { margin-inline: 0; max-width: 18ch; }
.hero__text p { margin-inline: 0; }
.hero__text .hero__cta,
.hero__text .hero__trust { justify-content: flex-start; }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__text h1 { margin-inline: auto; }
  .hero__text p { margin-inline: auto; }
  .hero__text .hero__cta,
  .hero__text .hero__trust { justify-content: center; }
  .hero__media { aspect-ratio: 4 / 3; max-height: 320px; margin-top: 8px; }
}

/* 지역 페이지용 히어로(패딩 축소) */
.region-hero { padding: clamp(40px, 6vw, 76px) 0 clamp(28px, 4vw, 48px); }
.region-hero .hero__text h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); max-width: 20ch; }
.hero .accent-text { color: var(--accent); }
.hero p {
  margin: 22px auto 0;
  max-width: 62ch;
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.12rem);
}
.hero__cta {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.hero__trust {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: center;
  color: var(--text-dim);
  font-size: 0.88rem;
}
.hero__trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero__trust span::before { content: "✓"; color: var(--accent); font-weight: 900; }

/* ==========================================================================
   6. 요금(코스) 카드 — 스크린샷 재현
   ========================================================================== */
.pricing { position: relative; }
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.price-card {
  position: relative;
  background: var(--overlay-glass), var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 26px 30px;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.price-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.price-card__name { font-size: 1.12rem; font-weight: 800; }
.price-card__price { margin: 20px 0 4px; font-size: 2.5rem; font-weight: 900; letter-spacing: -0.03em; }
.price-card__price .won { font-size: 1rem; font-weight: 700; color: var(--text-muted); margin-left: 4px; }
.price-card__dur { color: var(--accent); font-weight: 800; font-size: 0.95rem; }
.price-card__desc { color: var(--text-muted); font-size: 0.95rem; margin: 8px 0 24px; }

.price-card--featured {
  background: var(--overlay-glass), var(--bg-elev);
  border-color: var(--accent);
  box-shadow: var(--overlay-glow);
}
.price-card__badge {
  position: absolute;
  top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--grad-accent);
  color: var(--accent-ink);
  font-weight: 800; font-size: 0.8rem;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}
.pricing__note {
  text-align: center;
  margin-top: 30px;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.pricing__note a { color: var(--accent); font-weight: 700; }

@media (max-width: 780px) {
  .pricing__grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
}

/* ==========================================================================
   7. 카드 그리드(지역/프로그램/이용장소)
   ========================================================================== */
.card-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.link-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 20px;
  background: var(--overlay-glass), var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}
.link-card:hover { transform: translateY(-3px); border-color: var(--accent-strong); }
.link-card__title { font-weight: 800; font-size: 1.02rem; }
.link-card__sub { color: var(--text-muted); font-size: 0.88rem; }
.link-card__arrow { color: var(--accent); font-weight: 800; margin-top: auto; align-self: flex-start; }

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip {
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-muted);
  font-weight: 600; font-size: 0.92rem;
  transition: color 0.15s, border-color 0.15s;
}
.chip:hover { color: var(--text); border-color: var(--accent-strong); }

/* ==========================================================================
   8. 체크리스트 / FAQ / Who-How-Why
   ========================================================================== */
.checklist {
  max-width: 760px; margin-inline: auto;
  display: grid; gap: 12px;
}
.checklist li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px 20px;
  background: var(--overlay-glass), var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
}
.checklist li::before {
  content: "✓";
  flex: none;
  width: 24px; height: 24px;
  border-radius: 7px;
  background: rgba(255, 138, 43, 0.14);
  color: var(--accent);
  font-weight: 900;
  display: grid; place-items: center;
  font-size: 0.85rem;
}

.faq { max-width: 820px; margin-inline: auto; }
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 700;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; font-weight: 400; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > p { padding: 0 22px 20px; color: var(--text-muted); margin: 0; }

.whw { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 940px; margin-inline: auto; }
.whw__item {
  padding: 26px 24px;
  background: var(--overlay-glass), var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.whw__item h3 { font-size: 1.1rem; margin-bottom: 8px; }
.whw__item h3 span { color: var(--accent); }
.whw__item p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }
@media (max-width: 720px) { .whw { grid-template-columns: 1fr; } }

/* 본문 프로즈(플래그십 지역 페이지) */
.prose { max-width: 820px; }
.prose h2 { font-size: 1.35rem; margin: 34px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--text-muted); margin: 0 0 12px; }
.prose .ul { margin: 4px 0 14px; display: grid; gap: 8px; }
.prose .ul li {
  position: relative; padding-left: 22px; color: var(--text-muted);
}
.prose .ul li::before {
  content: ""; position: absolute; left: 6px; top: 11px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.prose .more {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--accent); font-weight: 700; font-size: 0.92rem; margin: 2px 0 6px;
}
.related-links { display: flex; flex-wrap: wrap; gap: 10px; }
.related-links a {
  padding: 10px 16px; border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--text-muted); font-weight: 600; font-size: 0.9rem;
  transition: color 0.15s, border-color 0.15s;
}
.related-links a:hover { color: var(--accent); border-color: var(--accent-strong); }

/* 정책 고지 배너 */
.notice {
  max-width: 900px; margin: 28px auto 0;
  padding: 16px 22px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
}
.notice strong { color: var(--text); }

/* ==========================================================================
   9. 푸터 + 제작문의 / 제휴문의 버튼
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--ink-950);
  padding: clamp(48px, 7vw, 72px) 0 40px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.footer__brand .brand { margin-bottom: 14px; }
.footer__brand p { color: var(--text-muted); font-size: 0.92rem; max-width: 42ch; }
.footer__nap { margin-top: 16px; color: var(--text-muted); font-size: 0.92rem; display: grid; gap: 6px; }
.footer__nap b { color: var(--text); }
.footer__nap a { color: var(--accent); font-weight: 700; }
.footer__col h4 { font-size: 0.95rem; margin-bottom: 14px; color: var(--text); }
.footer__col a { display: block; color: var(--text-muted); font-size: 0.9rem; padding: 5px 0; transition: color 0.15s; }
.footer__col a:hover { color: var(--accent); }

/* --- 제작문의 / 제휴문의 CTA 블록 --- */
.footer__inquiry {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 26px 0 4px;
}
.footer__inquiry-label { color: var(--text-muted); font-size: 0.92rem; margin-right: 4px; }
.btn--tg { gap: 9px; }
.btn--tg svg { width: 18px; height: 18px; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  color: var(--text-dim);
  font-size: 0.85rem;
}
.footer__bottom a { color: var(--text-dim); }
.footer__bottom a:hover { color: var(--text-muted); }

@media (max-width: 780px) {
  .footer__top { grid-template-columns: 1fr; gap: 28px; }
}

/* ==========================================================================
   10. 모바일 플로팅 전화 버튼 (오렌지, 애니메이션, tap-to-call)
   ========================================================================== */
.floating-call {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 200;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--grad-accent);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 28px -6px rgba(255, 138, 43, 0.7);
  animation: fc-bob 2.4s ease-in-out infinite;
}
.floating-call svg { width: 27px; height: 27px; animation: fc-ring 2.4s ease-in-out infinite; }
.floating-call::before,
.floating-call::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: fc-pulse 2.2s ease-out infinite;
}
.floating-call::after { animation-delay: 1.1s; }

@keyframes fc-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes fc-ring {
  0%, 60%, 100% { transform: rotate(0); }
  10%, 30%, 50% { transform: rotate(-11deg); }
  20%, 40% { transform: rotate(11deg); }
}
@keyframes fc-pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.9); opacity: 0; }
}
.floating-call__tip {
  position: absolute;
  right: 72px; top: 50%; transform: translateY(-50%);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-weight: 700; font-size: 0.85rem;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  box-shadow: var(--shadow);
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s;
}
.floating-call:hover .floating-call__tip { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .floating-call, .floating-call svg, .floating-call::before, .floating-call::after { animation: none; }
}

/* 아주 큰 화면에선 살짝 키움 */
@media (min-width: 861px) { .floating-call { width: 64px; height: 64px; } }
