/* 결 헤어 (가상의 미용실) — 모모듀 샘플 사이트
   검은 바탕의 잡지 같은 룩북, 가는 영문 세리프, 사진이 주인공 */
:root {
  --bg: #121110;
  --bg2: #1B1A18;
  --line: #34312D;
  --text: #F2EEE8;
  --muted: #A79F94;
  --gold: #CDB58E;
  --display: 'Cormorant Garamond', 'Gowun Batang', serif;
  --sans: 'Noto Sans KR', 'Malgun Gothic', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-weight: 300; font-size: 16.5px; line-height: 1.75; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h2, h3 { font-weight: 400; }
b, strong { font-weight: 700; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.en { font-family: var(--display); font-weight: 500; letter-spacing: .02em; }

.sample-bar { background: var(--gold); color: #121110; font-size: 14px; font-weight: 400; }
.sample-bar .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 14px; padding-top: 7px; padding-bottom: 7px; text-align: center; }
.sample-bar a { font-weight: 700; text-decoration: none; white-space: nowrap; }

/* 머리 */
.top { position: sticky; top: 0; z-index: 30; background: rgba(18,17,16,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 16px; padding-top: 14px; padding-bottom: 10px; }
.logo { text-decoration: none; display: flex; flex-direction: column; line-height: 1.1; }
.logo b { font-family: var(--display); font-weight: 600; font-size: 28px; letter-spacing: .14em; }
.logo small { font-size: 11.5px; letter-spacing: .3em; color: var(--muted); }
.nav { grid-column: 1 / -1; display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; padding-top: 6px; }
.nav a { text-decoration: none; color: var(--muted); font-size: 15px; letter-spacing: .06em; white-space: nowrap; padding: 4px 0; border-bottom: 1px solid transparent; }
.nav a[aria-current="page"], .nav a:hover { color: var(--text); border-bottom-color: var(--gold); }
.book-btn { background: var(--text); color: var(--bg); text-decoration: none; font-weight: 700; font-size: 14.5px; padding: 9px 18px; letter-spacing: .04em; }

/* 첫 화면: 사진 위에 글 */
.hero { position: relative; min-height: min(78vh, 680px); display: flex; align-items: flex-end; overflow: hidden; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% center; filter: grayscale(.25) contrast(1.05); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,17,16,.1) 30%, rgba(18,17,16,.92) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-bottom: 44px; width: 100%; }
.hero__en { font-size: 58px; line-height: .95; }
.hero__en i { color: var(--gold); }
.hero p { margin-top: 14px; font-size: 18px; color: #DED6CA; max-width: 30em; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border: 1px solid var(--text); color: var(--text); background: transparent; text-decoration: none; font: inherit; font-weight: 700; font-size: 15.5px; letter-spacing: .06em; cursor: pointer; }
.btn--fill { background: var(--text); color: var(--bg); }
.btn--gold { background: var(--gold); border-color: var(--gold); color: var(--bg); }

/* 섹션 */
.sec { padding: 64px 0; border-top: 1px solid var(--line); }
.label { font-family: var(--display); font-size: 15px; letter-spacing: .35em; color: var(--gold); text-transform: uppercase; }
.sec h2 { font-family: var(--display); font-size: 44px; line-height: 1.05; margin: 6px 0 10px; }
.sec h2 span { display: block; font-family: var(--sans); font-size: 19px; font-weight: 400; color: var(--muted); margin-top: 8px; letter-spacing: 0; }

/* 룩북 */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 22px 0 20px; }
.chip { flex-shrink: 0; background: transparent; border: 1px solid var(--line); color: var(--muted); font: inherit; font-size: 15px; padding: 7px 16px; cursor: pointer; border-radius: 999px; }
.chip[aria-pressed="true"] { border-color: var(--gold); color: var(--text); }
.looks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.look { position: relative; overflow: hidden; background: var(--bg2); }
.look[hidden] { display: none; }
.look img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .5s ease; }
.look:hover img { transform: scale(1.04); }
.look figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 12px 12px; background: linear-gradient(transparent, rgba(0,0,0,.8)); display: flex; flex-direction: column; gap: 2px; }
.look b { font-size: 15.5px; }
.look small { color: #CFC6BA; font-size: 13px; }
.look a { position: absolute; inset: 0; }
.look a span { position: absolute; top: 10px; right: 10px; background: rgba(18,17,16,.75); border: 1px solid var(--gold); color: var(--gold); font-size: 12.5px; padding: 3px 9px; opacity: 0; transition: .2s; }
.look:hover a span, .look a:focus-visible span { opacity: 1; }

/* 디자이너 */
.designers { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 24px; }
.designer { background: var(--bg); padding: 24px 22px; display: grid; grid-template-columns: 64px 1fr; gap: 4px 16px; align-items: center; }
.designer__mark { grid-row: span 2; width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--gold); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 26px; color: var(--gold); }
.designer h3 { font-size: 19px; font-weight: 700; }
.designer h3 small { font-weight: 300; color: var(--muted); font-size: 14px; margin-left: 6px; }
.designer p { color: var(--muted); font-size: 15px; }
.designer__tags { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.designer__tags span { font-size: 13px; border: 1px solid var(--line); padding: 2px 10px; color: #D8D0C4; }

/* 가격 */
.prices { display: grid; gap: 0 56px; margin-top: 24px; }
.prices dl { margin: 0; }
.prices dt { font-family: var(--display); font-size: 24px; color: var(--gold); padding: 18px 0 6px; border-bottom: 1px solid var(--line); }
.prices dd { margin: 0; display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.prices dd span:last-child { white-space: nowrap; }
.note { color: var(--muted); font-size: 14.5px; margin-top: 16px; }

/* 매장 */
.place { display: grid; gap: 22px; }
.place img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.place ul { list-style: none; padding: 0; margin: 0; }
.place li { display: grid; grid-template-columns: 70px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.place li b { color: var(--gold); font-weight: 400; letter-spacing: .1em; }

/* 예약 페이지 */
.page-head { padding: 48px 0 24px; }
.page-head h1 { font-family: var(--display); font-weight: 500; font-size: 52px; line-height: 1; }
.page-head p { color: var(--muted); margin-top: 10px; }
.bk { display: grid; gap: 40px; padding-bottom: 140px; }
.bk-step { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 22px 0 0; min-width: 0; }
.pair { display: grid; gap: 0 24px; }
.bk-step h2 { font-size: 21px; font-weight: 700; display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; }
.bk-step h2 .en { color: var(--gold); font-size: 26px; font-weight: 500; }
.opts { display: grid; gap: 8px; }
.opt { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid var(--line); padding: 14px 16px; cursor: pointer; }
.opt input { position: absolute; opacity: 0; }
.opt small { color: var(--muted); display: block; font-size: 13.5px; }
.opt__price { white-space: nowrap; font-family: var(--display); font-size: 21px; }
.opt:has(input:checked) { border-color: var(--gold); background: #1F1C17; }
.opt:has(input:focus-visible) { outline: 2px solid var(--gold); }
.opt:has(input:disabled) { opacity: .4; cursor: not-allowed; }
.days { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.day { flex-shrink: 0; width: 64px; border: 1px solid var(--line); padding: 10px 0; text-align: center; cursor: pointer; }
.day input { position: absolute; opacity: 0; }
.day small { display: block; color: var(--muted); font-size: 12.5px; }
.day b { font-family: var(--display); font-size: 24px; font-weight: 500; }
.day:has(input:checked) { background: var(--text); color: var(--bg); border-color: var(--text); }
.day:has(input:checked) small { color: #5B554E; }
.day:has(input:disabled) { opacity: .35; cursor: not-allowed; }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.slot { border: 1px solid var(--line); text-align: center; padding: 10px 0; cursor: pointer; font-size: 15.5px; }
.slot input { position: absolute; opacity: 0; }
.slot:has(input:checked) { background: var(--gold); color: var(--bg); border-color: var(--gold); font-weight: 700; }
.slot:has(input:disabled) { color: #5E5850; text-decoration: line-through; cursor: not-allowed; }
.slots-note { color: var(--muted); font-size: 14px; margin-top: 10px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; font-size: 15px; }
.field input, .field textarea { font: inherit; font-weight: 300; color: var(--text); background: var(--bg2); border: 1px solid var(--line); padding: 12px 14px; min-height: 50px; }
.field input:focus, .field textarea:focus { outline: 1px solid var(--gold); border-color: var(--gold); }
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(27,26,24,.97); border-top: 1px solid var(--gold); }
.bar .wrap { display: flex; align-items: center; gap: 14px; padding-top: 12px; padding-bottom: 12px; }
.bar__sum { flex: 1; min-width: 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
.bar__sum b { display: block; color: var(--text); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar__total { font-family: var(--display); font-size: 26px; color: var(--gold); white-space: nowrap; }
.bar .btn { min-height: 46px; padding: 0 18px; }
.err { color: #F09A8A; font-size: 14.5px; }

.toast { position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 16px); background: var(--text); color: var(--bg); padding: 12px 18px; font-size: 14.5px; font-weight: 400; opacity: 0; pointer-events: none; transition: .25s; z-index: 60; max-width: calc(100% - 32px); text-align: center; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.modal { border: 1px solid var(--gold); background: var(--bg2); color: var(--text); padding: 28px 24px; max-width: 420px; width: calc(100% - 32px); }
.modal::backdrop { background: rgba(0,0,0,.7); }
.modal h2 { font-family: var(--display); font-size: 34px; font-weight: 500; }
.modal p { color: var(--muted); margin: 8px 0; }
.modal ul { padding-left: 18px; margin: 12px 0 18px; }
.modal .btn { width: 100%; margin-top: 8px; }

.foot { border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--muted); font-size: 14.5px; }
.foot .logo { margin-bottom: 12px; }
.foot a { color: var(--gold); }

@media (min-width: 800px) {
  .top .wrap { grid-template-columns: auto 1fr auto; padding-bottom: 14px; }
  .nav { grid-column: auto; justify-content: center; padding-top: 0; gap: 32px; }
  .hero { min-height: min(86vh, 860px); }
  .hero__en { font-size: 104px; }
  .hero .wrap { padding-bottom: 72px; }
  .sec { padding: 96px 0; }
  .sec h2 { font-size: 64px; }
  .looks { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .look:nth-child(3n+2) { margin-top: 48px; }
  .designers { grid-template-columns: repeat(3, 1fr); }
  .prices { grid-template-columns: 1fr 1fr; }
  .place { grid-template-columns: 1.3fr 1fr; align-items: center; gap: 48px; }
  .page-head h1 { font-size: 80px; }
  .bk { grid-template-columns: 1fr 1fr; gap: 40px 56px; }
  .bk-step--wide { grid-column: 1 / -1; }
  .slots { grid-template-columns: repeat(6, 1fr); }
  .pair { grid-template-columns: 1fr 1fr; }
}

/* 숨긴 선택 버튼이 화면 밖으로 밀려 나가지 않게 */
.opt, .day, .slot { position: relative; }
.top .wrap > .book-btn { grid-column: 2; grid-row: 1; }
@media (min-width: 800px) { .top .wrap > .book-btn { grid-column: 3; } }
