/* =========================================
   결 왁싱 스튜디오 - 공통 스타일
   ========================================= */

:root {
  --bg: #f7f3ee;
  --tint: #efe8df;
  --ink: #2a2420;
  --ink-soft: #5e544c;
  --line: #ddd2c6;
  --accent: #a2603f;
  --kakao: #fee500;
  --serif: "Gowun Batang", serif;
  --sans: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
  --wrap: 1180px;
  --radius: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
  padding-bottom: 96px;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
ul, ol { list-style: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.pc { display: none; }

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

/* ---------- 버튼 ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--dark { background: var(--ink); color: var(--bg); }
.btn--dark:hover { color: var(--bg); background: #000; }
.btn--line { border: 1px solid var(--ink); }
.btn--light { background: var(--bg); color: var(--ink); }
.btn--light:hover { color: var(--ink); }
.btn--line-light { border: 1px solid rgba(247,243,238,.5); color: var(--bg); }
.btn--line-light:hover { color: var(--bg); border-color: var(--bg); }

.link { display: inline-block; margin-top: 28px; font-weight: 600; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* ---------- 헤더 ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247,243,238,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }

.logo { font-family: var(--serif); font-size: 24px; font-weight: 700; display: flex; align-items: baseline; gap: 4px; }
.logo span { font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: .1em; color: var(--ink-soft); }
.logo--light, .logo--light span { color: var(--bg); }

.nav-toggle {
  width: 44px; height: 44px;
  background: none; border: 0; cursor: pointer;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 7px;
}
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--ink); transition: transform .25s; }
.nav-open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-open .nav-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

.nav {
  position: fixed;
  top: 64px; left: 0; right: 0; bottom: 0;
  background: var(--bg);
  padding: 24px 20px 120px;
  display: flex; flex-direction: column; gap: 4px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s, visibility .25s;
}
.nav-open .nav { opacity: 1; visibility: visible; pointer-events: auto; }
.nav > a, .nav__group > a { display: block; padding: 14px 0; font-size: 20px; font-weight: 600; border-bottom: 1px solid var(--line); }
.nav a.is-active { color: var(--accent); }
.nav__sub { display: flex; flex-direction: column; padding: 6px 0 10px 14px; }
.nav__sub a { padding: 10px 0; font-size: 16px; color: var(--ink-soft); }
.nav__cta { margin-top: 18px; text-align: center; background: var(--ink); color: var(--bg) !important; border-radius: 999px; border: 0 !important; }

/* ---------- 히어로 ---------- */
.hero { padding: 40px 0 64px; }
.hero__inner { display: grid; gap: 36px; }
.hero__title {
  font-family: var(--serif);
  font-size: clamp(40px, 11vw, 84px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
}
.hero__lead { margin-top: 22px; color: var(--ink-soft); font-size: 17px; text-wrap: pretty; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-soft); }
.hero__facts strong { display: block; font-family: var(--serif); font-size: 24px; color: var(--ink); }
.hero__visual { display: block; border-radius: var(--radius); overflow: hidden; transition: transform .3s; }
.hero__visual:hover { transform: translateY(-4px); }
.hero__visual img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* ---------- 섹션 ---------- */
.section { padding: 72px 0; }
.section--tint { background: var(--tint); }
.section__head { margin-bottom: 36px; }
.section__title { font-family: var(--serif); font-size: clamp(28px, 6.5vw, 44px); line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }

/* 메뉴 카드 */
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 20px; }
.menu-card { display: flex; flex-direction: column; }
.menu-card img { border-radius: var(--radius); aspect-ratio: 1; object-fit: cover; margin-bottom: 18px; transition: transform .3s; }
.menu-card:hover img { transform: scale(.98); }
.menu-card__title { font-size: 20px; font-weight: 700; }
.menu-card__text { margin-top: 6px; color: var(--ink-soft); font-size: 15px; }
.menu-card__more { margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--accent); }

/* 포인트 */
.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 28px 24px; }
.points li { border-top: 1px solid var(--ink); padding-top: 20px; }
.points__num { font-family: var(--serif); font-size: 15px; color: var(--accent); }
.points h3 { font-size: 19px; margin: 8px 0 6px; }
.points p { color: var(--ink-soft); font-size: 15px; }

/* 좌우 분할 */
.split { display: grid; gap: 32px; align-items: center; }
.split__img { border-radius: var(--radius); width: 100%; object-fit: cover; }
.split__text p { color: var(--ink-soft); margin-top: 16px; text-wrap: pretty; }

/* 단계 */
.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.steps li { background: var(--bg); border-radius: var(--radius); padding: 22px 18px; font-size: 14px; color: var(--ink-soft); }
.steps span { display: block; font-family: var(--serif); color: var(--accent); font-size: 15px; }
.steps strong { display: block; font-size: 18px; color: var(--ink); margin: 4px 0; }

.timeline { display: flex; flex-direction: column; }
.timeline li { display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.timeline__num { font-family: var(--serif); font-size: 22px; color: var(--accent); }
.timeline h3 { font-size: 19px; margin-bottom: 4px; }
.timeline p { color: var(--ink-soft); }

/* FAQ */
.faq__list { border-top: 1px solid var(--ink); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 36px 20px 0;
  font-weight: 600;
  font-size: 17px;
  position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 22px; font-weight: 300; transition: transform .2s; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding: 0 0 22px; color: var(--ink-soft); }

/* 페이지 히어로 */
.page-hero { padding: 40px 0 48px; border-bottom: 1px solid var(--line); }
.breadcrumb { display: flex; gap: 8px; font-size: 13px; color: var(--ink-soft); margin-bottom: 28px; }
.page-hero__title { font-family: var(--serif); font-size: clamp(34px, 9vw, 64px); line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }
.page-hero__lead { margin-top: 18px; max-width: 560px; color: var(--ink-soft); font-size: 17px; }

/* 갤러리 */
.gallery { display: grid; gap: 24px; }
.gallery__item img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery__item figcaption { margin-top: 14px; color: var(--ink-soft); font-size: 15px; }
.gallery__item strong { display: block; color: var(--ink); font-size: 18px; }

.checklist { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.checklist li { background: var(--bg); padding: 18px 20px; border-radius: 14px; font-weight: 500; }
.section--tint .checklist--col li, .checklist--col li { background: var(--bg); }
.checklist--col { grid-template-columns: 1fr; margin-top: 20px; }

/* 연락처 */
.contact { display: grid; gap: 16px; }
.contact__card { display: flex; flex-direction: column; gap: 6px; padding: 32px 26px; border-radius: var(--radius); background: var(--tint); }
.contact__card strong { font-size: 26px; font-family: var(--serif); }
.contact__card span:last-child { color: var(--ink-soft); font-size: 15px; }
.contact__card--kakao { background: var(--kakao); }
.contact__card--kakao:hover { color: var(--ink); }
.contact__label { font-size: 13px; font-weight: 600; letter-spacing: .08em; }

.info-table > div { display: grid; grid-template-columns: 88px 1fr; gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.info-table dt { font-weight: 600; }
.info-table small { color: var(--ink-soft); font-size: 14px; }

/* CTA */
.cta { background: var(--ink); color: var(--bg); padding: 72px 0; }
.cta__title { font-family: var(--serif); font-size: clamp(28px, 7vw, 46px); line-height: 1.3; }
.cta__text { margin-top: 14px; opacity: .85; }

/* 푸터 */
.footer { background: #1f1a17; color: #cfc5ba; padding: 56px 0 40px; font-size: 14px; }
.footer__inner { display: grid; gap: 28px; }
.footer__desc { margin-top: 10px; }
.footer__info > div { display: grid; grid-template-columns: 48px 1fr; gap: 8px; padding: 4px 0; }
.footer__info dt { color: #8e8379; }
.footer a:hover { color: #fff; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer__copy { color: #8e8379; font-size: 13px; }

/* ---------- 플로팅 버튼 ---------- */
.floating {
  position: fixed;
  left: 12px; right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.floating__btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 8px 24px rgba(42,36,32,.18);
  animation: float 3.2s ease-in-out infinite;
}
.floating__btn--kakao { background: var(--kakao); color: #191600; }
.floating__btn--kakao:hover { color: #191600; }
.floating__btn--tel { background: var(--ink); color: var(--bg); animation-delay: .4s; }
.floating__btn--tel:hover { color: var(--bg); }
.floating__dot { width: 8px; height: 8px; border-radius: 50%; background: #191600; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* =========================================
   태블릿 / PC
   ========================================= */
@media (min-width: 768px) {
  .wrap { padding: 0 32px; }
  .pc { display: inline; }
  .section { padding: 110px 0; }
  .hero { padding: 64px 0 100px; }
  .hero__inner { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 56px; }
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery__item--wide { grid-column: 1 / -1; }
  .gallery__item--wide img { aspect-ratio: 16 / 8; }
  .contact { grid-template-columns: 1fr 1fr; }
  .info-table > div { grid-template-columns: 160px 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__copy { grid-column: 1 / -1; }
  .page-hero { padding: 72px 0 80px; }
  .menu-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .points--3 { grid-template-columns: repeat(3, 1fr); }

  .floating { left: auto; right: 28px; bottom: 28px; grid-template-columns: auto auto; }
  .floating__btn { padding: 0 26px; }
}

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .nav {
    position: static;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    flex-direction: row;
    align-items: center;
    gap: 28px;
    padding: 0;
    background: none;
    overflow: visible;
  }
  .nav > a, .nav__group > a { padding: 0; font-size: 15px; font-weight: 500; border: 0; }
  .nav__group { position: relative; }
  .nav__sub {
    position: absolute;
    top: 100%; left: -18px;
    min-width: 200px;
    padding: 18px 18px 10px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 14px;
    opacity: 0; visibility: hidden;
    transform: translateY(8px);
    transition: .2s;
    margin-top: 12px;
  }
  .nav__sub::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
  .nav__group:hover .nav__sub { opacity: 1; visibility: visible; transform: none; }
  .nav__sub a { padding: 6px 0; font-size: 14px; }
  .nav__cta { margin: 0; padding: 10px 20px !important; }
}

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