/* TB왁싱 공통 스타일 */
:root {
  --bg: #F7F4EF;
  --band: #EFEAE2;
  --surface: #FFFFFF;
  --ink: #211E1B;
  --ink-2: #4A443E;
  --muted: #6B645C;
  --line: #E4DED5;
  --line-2: #D9D2C7;
  --accent: #7A3E2E;
  --accent-dark: #5A2B1F;
  --kakao: #FEE500;
  --serif: "Noto Serif KR", serif;
  --sans: "IBM Plex Sans KR", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
  padding-bottom: 76px;
}
img { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
h1, h2, h3, p { margin: 0; }
h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(26px, 4vw, 36px);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.container { max-width: 1200px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.narrow { max-width: 860px; }
.section { padding-top: 64px; padding-bottom: 64px; }
.muted { color: var(--muted); }
.intro { max-width: 560px; margin-bottom: 28px; }
.body-text { color: var(--ink-2); margin: 12px 0 22px; }

/* 버튼 */
.btn-pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px; border-radius: 999px; font-weight: 600;
}
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; font-weight: 500; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-line { border: 1px solid var(--ink); color: var(--ink); font-weight: 500; }
.btn-line:hover { background: var(--ink); color: var(--bg); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { color: #fff; }
.btn-kakao { background: var(--kakao); color: #191919; }
.btn-kakao:hover { color: #191919; }
.btn-white { background: #fff; color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* 상단 */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(247, 244, 239, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-top {
  max-width: 1200px; margin: 0 auto; padding: 14px 20px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo { font-family: var(--serif); font-weight: 700; font-size: 22px; color: var(--ink); letter-spacing: -0.02em; }
.main-nav {
  max-width: 1200px; margin: 0 auto; padding: 0 12px;
  display: flex; gap: 4px; overflow-x: auto; white-space: nowrap; scrollbar-width: none;
}
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a { display: flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--ink-2); font-size: 15px; }
.main-nav a:hover { color: var(--accent); }

/* 첫 화면 */
.hero {
  padding-top: 48px; padding-bottom: 32px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 40px; align-items: center;
}
.eyebrow { font-size: 14px; color: var(--accent); font-weight: 600; margin-bottom: 14px; }
.hero h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(34px, 6vw, 60px); line-height: 1.2; letter-spacing: -0.035em;
  margin-bottom: 18px; text-wrap: pretty;
}
.lead { color: var(--ink-2); font-size: 17px; max-width: 480px; margin-bottom: 28px; }
.hero-image { display: block; aspect-ratio: 4 / 5; max-height: 620px; border-radius: 6px; overflow: hidden; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; }

/* 지점 찾기 */
.find-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 24px; }
.search {
  flex: 1 1 280px; max-width: 380px; display: flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 18px; background: var(--surface);
  border: 1px solid var(--line-2); border-radius: 999px;
}
.search span { font-size: 14px; color: var(--muted); white-space: nowrap; }
.search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: inherit; color: var(--ink); }
.region-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.region-card {
  display: flex; flex-direction: column; justify-content: space-between; min-height: 88px;
  padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; color: var(--ink);
}
.region-card:hover { border-color: var(--accent); color: var(--ink); }
.region-card strong { font-size: 18px; font-weight: 600; }
.region-card span { font-size: 13px; color: var(--muted); }
#region-empty { margin-top: 16px; }

/* 배경 띠 */
.band { background: var(--band); }
.band-dark { background: var(--ink); color: var(--bg); }
.band-dark .intro { color: #C9C1B6; margin-bottom: 32px; }

/* 왁싱 안내 */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.service-card { display: flex; flex-direction: column; gap: 10px; padding: 26px 22px; background: var(--bg); border-radius: 6px; color: var(--ink); }
.service-card:hover { color: var(--ink); outline: 1px solid var(--accent); }
.service-card h3 { font-size: 20px; font-weight: 600; }
.service-card p { color: var(--ink-2); font-size: 15px; }
.service-card .more { margin-top: auto; font-size: 14px; color: var(--accent); font-weight: 500; }

/* 처음 방문 */
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 36px; }
.visit-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.visit-list li { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 40px 1fr; gap: 12px; }
.visit-list .num { font-family: var(--serif); color: var(--accent); font-size: 18px; }
.visit-list h3 { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.visit-list p { color: var(--muted); font-size: 15px; }

/* 관리 과정 */
.step-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 1px; background: #3A3530; border: 1px solid #3A3530;
}
.step-grid li { background: var(--ink); padding: 24px 20px; }
.step-grid .step { font-size: 13px; color: #D9A48F; }
.step-grid h3 { font-size: 18px; font-weight: 600; margin: 6px 0; }
.step-grid p { color: #C9C1B6; font-size: 15px; }

/* 공간: 기존 디자인 유지 + 가로 스냅 캐러셀 */
.space-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(72%, 320px);
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 10px;
  scrollbar-width: none;
}
.space-grid::-webkit-scrollbar { display: none; }
.space-card {
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: var(--band);
}
.space-card img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.space-item {
  display: block;
  width: 100%;
  margin: 0;
  color: inherit;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.space-item .space-card { width: 100%; max-width: none; }
@media (min-width: 720px) {
  .space-grid { grid-auto-columns: calc((100% - 36px) / 4); }
}
@media (min-width: 1024px) {
  .space-grid { grid-auto-columns: calc((100% - 84px) / 8); }
}

/* 왁싱 정보 */
#guide h2 { margin-bottom: 24px; }
.guide-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); column-gap: 32px; border-top: 1px solid var(--line-2); }
.guide-list a { display: flex; justify-content: space-between; align-items: center; min-height: 60px; border-bottom: 1px solid var(--line-2); color: var(--ink); font-size: 17px; }
.guide-list a:hover { color: var(--accent); }
.guide-list span { color: var(--accent); }

/* 자주 묻는 질문 */
#faq h2 { margin-bottom: 24px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; padding: 20px 0; display: flex; justify-content: space-between; gap: 16px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary h3 { font-size: 17px; font-weight: 600; }
.faq-list summary span { color: var(--accent); }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list p { color: var(--ink-2); padding-bottom: 20px; }

/* 예약·문의 */
.contact-wrap { padding-bottom: 72px; }
.contact-box {
  background: var(--accent); color: #fff; border-radius: 8px; padding: 40px 28px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px;
}
.contact-box h2 { font-size: clamp(24px, 4vw, 32px); margin-bottom: 6px; }
.contact-box p { color: #F2E2DA; }

/* 하단 */
.site-footer { border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.footer-grid { padding-top: 40px; padding-bottom: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 28px; }
.site-footer .logo { font-size: 20px; margin-bottom: 8px; }
.site-footer a { color: var(--ink-2); }
.footer-menu { display: grid; gap: 4px; align-content: start; }
.footer-regions { display: flex; flex-wrap: wrap; gap: 4px 12px; align-content: flex-start; }
.copyright { padding-bottom: 28px; font-size: 13px; color: #8A8278; }

/* 하단 고정 문의 */
.fixed-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; justify-content: center;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(247, 244, 239, 0.96); border-top: 1px solid var(--line);
}
.fixed-cta-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; max-width: 520px; }
.fixed-cta a { display: flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 999px; font-weight: 600; }

/* 세부페이지 */
.main-nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.page-hero { padding-top: 32px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.page-hero h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(32px, 5.5vw, 52px); line-height: 1.2; letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.page-hero .lead { max-width: 640px; }
.section > .body-text { max-width: 720px; margin-top: 4px; }
.section > h2 + .body-text { margin-top: 8px; }
.check-list {
  list-style: none; margin: 16px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px;
}
.check-list li { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 22px 20px; }
.check-list h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.check-list p { color: var(--ink-2); font-size: 15px; }
.section > .visit-list { margin-top: 16px; max-width: 760px; }
.process-list { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid #3A3530; }
.process-list li { display: grid; grid-template-columns: 72px 1fr; gap: 16px; padding: 24px 0; border-bottom: 1px solid #3A3530; }
.process-list .step { font-size: 14px; color: #D9A48F; padding-top: 2px; }
.process-list h3 { font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.process-list p { color: #C9C1B6; max-width: 640px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; margin-top: 20px; }
.related-card { display: flex; flex-direction: column; gap: 6px; padding: 22px 20px; background: var(--bg); border-radius: 6px; color: var(--ink); }
.related-card:hover { color: var(--ink); outline: 1px solid var(--accent); }
.related-card h3 { font-size: 18px; font-weight: 600; }
.related-card p { color: var(--muted); font-size: 14px; }
.related-card .more { margin-top: auto; padding-top: 8px; font-size: 14px; color: var(--accent); font-weight: 500; }
.more-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 16px; font-weight: 600; color: var(--accent); }
.band-dark .more-link { color: #D9A48F; }
.space-grid figure { margin: 0; }
.space-grid figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.contact-card { display: flex; flex-direction: column; gap: 6px; padding: 32px 28px; background: var(--ink); color: var(--bg); border-radius: 8px; }
.contact-card:hover { color: #fff; }
.contact-card.kakao { background: var(--kakao); color: #191919; }
.contact-card.kakao:hover { color: #191919; }
.contact-card p { font-size: 20px; font-weight: 500; }
.contact-card .more { margin-top: 12px; font-size: 14px; font-weight: 600; }
.copyright a { color: #8A8278; }

/* 메인 공간 캐러셀: 8개 이미지별 검색 주제 보조 캡션 */
#space .space-grid figcaption {
  margin-top: 7px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
  word-break: keep-all;
}
