/* 느린오후 필라테스(가상) — 손님 화면. 사장님 화면은 admin.css가 이 파일 위에 덧씌운다. */
@font-face {
  font-family: 'Pretendard Variable';
  src: url('/fonts/PretendardVariable.woff2') format('woff2-variations');
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #F6F2EA;
  --sand: #ECE3D3;
  --ink: #2C2A25;
  --ink-soft: #6B655A;
  --line: #DCD2C0;
  --olive: #56603F;
  --olive-deep: #3F4830;
  --clay: #B8673F;
  --clay-soft: #F2DDCF;
  --white: #FFFDF9;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.65 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
  letter-spacing: -0.2px;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.6px; line-height: 1.3; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.small { font-size: 13px; color: var(--ink-soft); }
.eyebrow { margin: 0 0 14px; font-size: 13px; font-weight: 600; color: var(--clay); letter-spacing: 0.4px; }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 48px; padding: 0 22px; border-radius: 4px;
  font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--olive-deep);
}
.btn--solid { background: var(--olive-deep); color: var(--white); }
.btn--solid:hover { background: var(--ink); border-color: var(--ink); }
.btn--line { background: transparent; color: var(--olive-deep); }
.btn--line:hover { background: var(--sand); }
.btn--wide { width: 100%; }

/* 머리 */
.top { border-bottom: 1px solid var(--line); background: var(--paper); }
.top__in { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 18px; color: var(--olive-deep); }
.brand em { font-style: normal; font-weight: 400; color: var(--ink-soft); }
.brand__mark { width: 32px; height: 32px; color: var(--olive-deep); }
.top__nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.top__nav a { text-decoration: none; color: var(--ink-soft); }
.top__nav a:hover { color: var(--ink); }
.owner-link {
  padding: 8px 14px; border-radius: 4px; background: var(--clay); color: var(--white);
  font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.owner-link:hover { background: var(--ink); }

/* 소개 */
.intro { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 56px; }
.intro h1 { font-size: 44px; line-height: 1.22; letter-spacing: -1.4px; margin-bottom: 20px; }
.lead { margin: 0 0 28px; font-size: 17px; color: var(--ink-soft); max-width: 30em; }
.intro__art svg { display: block; width: 100%; height: auto; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); width: calc(100% - 40px); max-width: 1040px; padding: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts div { padding: 18px 0; display: flex; gap: 12px; align-items: baseline; }
.facts div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.facts strong { font-size: 15px; }
.facts span { color: var(--ink-soft); font-size: 15px; }

.block { padding-top: 72px; padding-bottom: 24px; }
.block__title { font-size: 28px; margin-bottom: 28px; }

/* 수업·가격 */
.menu { border-top: 2px solid var(--ink); }
.menu__row { display: flex; justify-content: space-between; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.menu__row h3 { font-size: 18px; margin-bottom: 4px; }
.menu__row p { margin: 0; color: var(--ink-soft); font-size: 15px; max-width: 34em; }
.menu__price { text-align: right; white-space: nowrap; }
.menu__price span { display: block; font-size: 13px; color: var(--ink-soft); }
.menu__price strong { font-size: 19px; }
.menu__price i, .passes i { font-style: normal; font-weight: 400; font-size: 13px; color: var(--ink-soft); }
.passes { margin-top: 36px; padding: 24px; background: var(--sand); border-radius: 6px; }
.passes h3 { font-size: 16px; margin-bottom: 10px; }
.passes ul { list-style: none; margin: 0 0 12px; padding: 0; }
.passes li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px dashed #CFC3AE; }
.passes p { margin: 0; }

/* 예약 */
.book { margin-top: 64px; padding: 72px 0 80px; background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.book__sub { margin: -16px 0 32px; color: var(--ink-soft); }
.book__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 40px; align-items: start; }
.step { margin: 0; padding: 0; border: 0; min-width: 0; }
.step legend { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding: 0; font-weight: 700; font-size: 17px; }
.step legend b { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--olive-deep); color: var(--white); font-size: 13px; }

.pick { display: grid; gap: 8px; }
.pick__opt { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 6px; cursor: pointer; background: var(--paper); }
.pick__opt:has(input:checked) { border-color: var(--olive-deep); background: #EEF0E6; }
.pick__opt input { margin: 4px 0 0; accent-color: var(--olive-deep); width: 18px; height: 18px; flex: none; }
.pick__opt b { display: block; font-size: 15px; }
.pick__opt i { font-style: normal; font-size: 14px; color: var(--ink-soft); }

.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.day {
  display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 0;
  padding: 8px 2px 9px; border: 1.5px solid var(--line); border-radius: 6px;
  background: var(--paper); color: var(--ink); font: inherit; cursor: pointer;
}
.day:hover:not(:disabled) { border-color: var(--olive); }
.day__dow { font-size: 12px; color: var(--ink-soft); }
.day__num { font-size: 19px; font-weight: 700; line-height: 1.2; }
.day__sub { font-size: 10.5px; color: var(--olive); white-space: nowrap; }
.day:disabled { cursor: not-allowed; background: transparent; border-style: dashed; opacity: .55; }
.day:disabled .day__sub { color: var(--ink-soft); }
.day.is-on { background: var(--olive-deep); border-color: var(--olive-deep); color: var(--white); }
.day.is-on .day__dow, .day.is-on .day__sub { color: #DDE2CF; }

.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slot {
  display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 54px;
  border: 1.5px solid var(--olive); border-radius: 6px; background: var(--white);
  color: var(--olive-deep); font: inherit; cursor: pointer;
}
.slot b { font-size: 16px; }
.slot span { font-size: 11.5px; }
.slot--open:hover { background: #EEF0E6; }
.slot.is-on { background: var(--olive-deep); color: var(--white); }
.slot:disabled { cursor: not-allowed; border-color: var(--line); color: #A79F90; }
.slot--taken { background: repeating-linear-gradient(135deg, var(--sand) 0 6px, #E4D9C6 6px 12px); }
.slot--taken b, .slot--past b { text-decoration: line-through; }
.slot--blocked { background: var(--paper); border-style: dashed; }
.slot--past { background: var(--paper); }
.hint { grid-column: 1 / -1; margin: 0; color: var(--ink-soft); }
.legend-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 12px 0 0; font-size: 13px; color: var(--ink-soft); }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin: 0 -2px 0 8px; vertical-align: -1px; }
.dot:first-child { margin-left: 0; }
.dot--open { border: 1.5px solid var(--olive); background: var(--white); }
.dot--taken { background: repeating-linear-gradient(135deg, var(--sand) 0 3px, #D7C9B2 3px 6px); }
.dot--off { border: 1.5px dashed var(--line); }

.field { display: block; margin-bottom: 12px; }
.field > span { display: block; margin-bottom: 5px; font-size: 14px; font-weight: 600; }
.field i { font-style: normal; font-weight: 400; color: var(--ink-soft); }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 6px;
  background: var(--paper); color: var(--ink); font: inherit; font-size: 16px;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--olive-deep); background: var(--white); }
.field textarea { resize: vertical; }

.summary { grid-column: 2; padding: 20px; border-radius: 6px; background: var(--sand); }
.summary > p:first-child { margin: 0 0 12px; font-size: 15px; }
.summary .small { margin: 10px 0 0; }
.error { margin: 0 0 10px; color: #A2391B; font-size: 14px; font-weight: 600; }
.error:empty { display: none; }

.done { max-width: 560px; margin: 0 auto; padding: 40px 32px; text-align: center; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
.done > svg { width: 52px; height: 52px; color: var(--olive); }
.done h3 { margin: 12px 0 18px; font-size: 22px; }
.done dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0 auto 18px; max-width: 320px; text-align: left; }
.done dt { color: var(--ink-soft); font-size: 14px; }
.done dd { margin: 0; font-weight: 600; }
.done p { color: var(--ink-soft); font-size: 15px; }
.done__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }

/* 오시는 길 */
.visit { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact { display: grid; grid-template-columns: 56px 1fr; gap: 12px 12px; margin: 0; }
.contact dt { font-weight: 700; font-size: 15px; }
.contact dd { margin: 0; }
.contact a { color: var(--olive-deep); font-weight: 700; }
.map { width: 100%; height: auto; display: block; margin-top: 8px; }

.maker { margin-top: 48px; }
.maker p {
  margin: 0; padding: 16px 18px; border-left: 3px solid var(--clay);
  background: var(--clay-soft); font-size: 14px; color: #5A4636; border-radius: 0 6px 6px 0;
}
.maker b { color: var(--ink); margin-right: 4px; }

.foot { display: flex; justify-content: space-between; gap: 16px; padding-top: 32px; padding-bottom: 96px; margin-top: 48px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-soft); }

.float-owner {
  position: fixed; right: 20px; bottom: 20px; z-index: 50;
  padding: 12px 18px; border-radius: 99px; background: var(--ink); color: var(--paper);
  font-size: 14px; font-weight: 600; text-decoration: none; box-shadow: 0 6px 20px rgba(44, 42, 37, .22);
}
.float-owner:hover { background: var(--clay); }

/* 태블릿 이하 */
@media (max-width: 860px) {
  .top__nav { display: none; }
  .owner-link { margin-left: auto; }
  .intro { grid-template-columns: 1fr; gap: 32px; padding-top: 44px; }
  .intro h1 { font-size: 34px; }
  .intro__art { order: -1; max-width: 360px; }
  .book__grid, .visit { grid-template-columns: 1fr; }
  .summary { grid-column: auto; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .owner-link { padding: 7px 11px; font-size: 13px; }
  .brand { font-size: 17px; }
  .intro__art { display: none; }
  .intro { padding-top: 36px; padding-bottom: 36px; }
  .intro h1 { font-size: 31px; }
  .lead { font-size: 16px; }
  .facts { grid-template-columns: 1fr; width: calc(100% - 32px); padding: 0; }
  .facts div { padding: 12px 0; }
  .facts div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .block { padding-top: 56px; }
  .block__title { font-size: 24px; margin-bottom: 20px; }
  .menu__row { flex-direction: column; gap: 6px; }
  .menu__price { text-align: left; display: flex; gap: 10px; align-items: baseline; }
  .menu__price span { order: 2; }
  .passes { padding: 18px 16px; }
  .passes li { flex-direction: column; gap: 0; }
  .book { padding: 56px 0 64px; }
  .days { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
  .day { padding: 7px 0 8px; }
  .day__num { font-size: 17px; }
  .day__sub { font-size: 9.5px; white-space: normal; text-align: center; line-height: 1.25; }
  .done { padding: 32px 18px; }
  .done__actions .btn { width: 100%; }
  .foot { flex-direction: column; }
  .float-owner { right: 12px; bottom: 12px; }
}

/* hidden 속성이 .book__grid 의 display:grid 에 덮이지 않게(신청 완료 뒤 폼이 남던 문제) */
[hidden] { display: none !important; }
