/* Light editorial salon look: white + warm greige, warm charcoal ink, espresso buttons. */
:root {
  --white: #ffffff;
  --greige: #eee9e3;
  --ink: #3b3634;
  --muted: #857b74;
  --line: #e4ddd5;
  --espresso: #4e3b2f;
  --espresso-ink: #ffffff;
  --sand: #c9b8a6;
  --ok: #3f7a52;
  --danger: #b3261e;
  --serif: "Marcellus", "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22, .7, .2, 1);
  --header-h: 68px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --white: #161311;
    --greige: #211c19;
    --ink: #eee7e1;
    --muted: #a99d94;
    --line: #332b26;
    --espresso: #e2cdb8;
    --espresso-ink: #1a1512;
    --sand: #7d6a5a;
    --ok: #8fd0a2;
    --danger: #ff8a80;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: inherit; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0; }
h2 { font-size: clamp(1.75rem, 5vw, 2.5rem); margin-bottom: 8px; }
h3 { font-size: 1.35rem; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.section { padding-top: 64px; }
.band { background: var(--greige); padding-bottom: 56px; margin-top: 64px; }
.lede { color: var(--muted); margin: 0; max-width: 46ch; }
.note { color: var(--muted); font-size: 14px; margin: 12px 0 0; }
.center { text-align: center; }

/* Short underline under section headings, a quiet signature. */
.section-head h2::after, .carousel-head h2::after, .booking-intro h2::after, .info-grid h2::after, .narrow h2::after {
  content: ""; display: block; width: 36px; height: 2px; background: var(--ink); margin-top: 12px;
}

.demo-banner { background: var(--greige); color: var(--muted); text-align: center; font-size: 13px; padding: 6px 16px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--white) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-color: var(--line); }
.header-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 20px;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  transition: height .35s var(--ease);
}
.site-header.scrolled .header-inner { height: 56px; }
.wordmark {
  font-family: var(--serif); font-size: clamp(15px, 4.4vw, 22px); letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; line-height: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis;
}
.header-inner .btn { flex-shrink: 0; }
.nav { display: none; gap: 28px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); position: relative; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 24px; border-radius: 2px;
  border: 1px solid transparent; text-decoration: none; cursor: pointer;
  font: 500 15px var(--sans); letter-spacing: .02em; text-align: center;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-sm { min-height: 38px; padding: 8px 16px; font-size: 14px; }
.btn-dark { background: var(--espresso); color: var(--espresso-ink); }
.btn-dark:hover { background: var(--ink); }
.btn-light { background: #fff; color: #2a2523; }
.btn-light:hover { background: #f1ebe5; }
.btn-ghost-light { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .15); }
.btn-outline { border-color: var(--ink); color: var(--ink); margin-top: 18px; }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-block { width: 100%; margin-top: 12px; }

:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; }

/* ---------- Hero slideshow ---------- */
.hero {
  position: relative; overflow: hidden;
  height: min(calc(100svh - var(--header-h)), 820px); min-height: 540px;
  color: #fff; background: #2a2523;
  display: flex; align-items: flex-end;
}
.slides { position: absolute; inset: 0; }
.slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.12);
  transition: opacity 1.4s var(--ease), transform 8s linear;
}
.slide.active { opacity: 1; transform: scale(1); }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(20, 15, 12, .78) 0%, rgba(20, 15, 12, .35) 45%, rgba(20, 15, 12, 0) 72%);
}
.hero-inner { position: relative; z-index: 1; width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px 56px; }
.hero p { margin: 0 0 10px; font-size: 15px; letter-spacing: .04em; opacity: .9; }
.hero h1 { font-size: clamp(2.6rem, 9vw, 5.2rem); max-width: 12ch; margin-bottom: 20px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px; font-size: 14px; text-decoration: none;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); backdrop-filter: blur(6px);
}
.star { color: #f3d27a; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot.open { background: #8fe3a9; }
.dot.closed { background: #ffa199; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Text rises in once on load, line by line. */
.hero-line { opacity: 0; transform: translateY(24px); animation: rise .9s var(--ease) forwards; animation-delay: calc(.25s + var(--i) * .12s); }
@keyframes rise { to { opacity: 1; transform: none; } }

.dots { position: absolute; z-index: 2; right: 20px; bottom: 24px; display: flex; gap: 8px; }
.dots button {
  width: 28px; height: 3px; padding: 0; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .4); position: relative; overflow: hidden;
}
.dots button::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.dots button[aria-current="true"]::after { animation: fill var(--slide-ms, 6000ms) linear forwards; }
.dots.paused button[aria-current="true"]::after { animation: none; transform: scaleX(1); }
@keyframes fill { to { transform: scaleX(1); } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-bottom: 1px solid var(--line); background: var(--white); }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee-track span { font-family: var(--serif); font-size: 18px; padding: 16px 0; white-space: nowrap; color: var(--muted); }
.marquee-track span::after { content: "✿"; color: var(--sand); margin: 0 26px; font-size: 13px; vertical-align: 2px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Category tiles ---------- */
.section-head { margin-bottom: 28px; }
.section-head .lede { margin-top: 14px; }
/* Phones: swipe row that bleeds to the screen edge. Wider screens: 3-column grid (below). */
.tiles {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 0 -20px; padding: 0 20px; scroll-padding: 0 20px;
}
.tiles::-webkit-scrollbar { display: none; }
.tiles .tile { flex: 0 0 64vw; scroll-snap-align: start; }
.tile { display: block; text-decoration: none; text-align: center; cursor: pointer; background: none; border: 0; padding: 0; color: inherit; font: inherit; }
.tile .frame { aspect-ratio: 4 / 5; }
.tile-name { font-family: var(--serif); font-size: 1.35rem; margin-top: 14px; display: block; }
.tile-price { color: var(--muted); font-size: 14px; }

.frame { display: block; overflow: hidden; background: var(--greige); }
.frame img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.tile:hover .frame img, .shot:hover .frame img, .member:hover .frame img { transform: scale(1.05); }

/* ---------- Price list ---------- */
.pricelist { margin-top: 56px; }
.pricelist-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button {
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  border-radius: 999px; padding: 6px 14px; min-height: 36px; font: 500 14px var(--sans); cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s;
}
.chips button:hover { color: var(--ink); border-color: var(--ink); }
.chips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.category h4 { font: 500 14px var(--sans); color: var(--muted); margin: 26px 0 4px; letter-spacing: .02em; }
.service {
  display: grid; grid-template-columns: 1fr auto; gap: 0 16px; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--line);
  animation: fade-in .45s var(--ease) both;
}
.service-name { font-size: 17px; }
.service-meta { color: var(--muted); font-size: 14px; }
.service-side { text-align: right; }
.service-price { font-weight: 600; white-space: nowrap; }
.service-price small { font-weight: 400; color: var(--muted); font-size: 13px; }
.service button {
  background: none; border: 0; padding: 2px 0; cursor: pointer; color: var(--ink);
  font: 500 14px var(--sans); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--sand);
}
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } }

/* ---------- Carousels ---------- */
.carousel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.carousel-nav { display: none; gap: 8px; }
.round {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--ink);
  background: transparent; color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer;
  transition: background-color .25s, color .25s, opacity .25s;
}
.round:hover { background: var(--ink); color: var(--white); }
.round:disabled { opacity: .3; cursor: default; background: transparent; color: var(--ink); }
.rail {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 0 20px; scroll-padding: 0 20px; scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
@media (min-width: 1200px) {
  .rail { padding-left: calc((100vw - 1160px) / 2 + 20px); scroll-padding-left: calc((100vw - 1160px) / 2 + 20px); }
}
.progress { height: 2px; background: var(--line); margin-top: 28px; position: relative; overflow: hidden; }
.progress span { position: absolute; top: 0; bottom: 0; left: 0; width: 30%; background: var(--ink); transition: transform .3s var(--ease), width .3s; }

.shot { flex: 0 0 auto; width: 72vw; max-width: 340px; margin: 0; scroll-snap-align: start; }
.shot .frame { aspect-ratio: 4 / 5; }
.shot .frame img { object-position: 50% 70%; }
.shot figcaption { padding-top: 12px; font-size: 15px; text-align: center; }

.member { flex: 0 0 auto; width: 76vw; max-width: 300px; scroll-snap-align: start; display: flex; flex-direction: column; }
.member .frame { aspect-ratio: 4 / 5; }
.member-body { padding-top: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.member-name { font-family: var(--serif); font-size: 1.6rem; line-height: 1.1; }
.member-role { color: var(--muted); font-size: 14px; }
.member-bio { font-size: 15px; margin: 4px 0 0; }
.skills { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; padding: 0; list-style: none; }
.skills li { border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; font-size: 13px; color: var(--muted); }
.member button {
  margin-top: 12px; align-self: flex-start; background: none; border: 0; padding: 4px 0; cursor: pointer;
  color: var(--ink); font: 500 15px var(--sans); text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--sand);
  transition: text-decoration-color .25s;
}
.member button:hover { text-decoration-color: var(--ink); }

/* ---------- Booking ---------- */
.booking-grid { display: grid; gap: 32px; }
.booking-visual .frame { aspect-ratio: 16 / 10; }
.booking-intro { margin-top: 24px; }
.booking-intro .lede { margin-top: 14px; }
.booking-card { background: var(--white); padding: 24px 20px; border: 1px solid var(--line); }
.field { margin-bottom: 16px; min-width: 0; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label { display: block; font-weight: 500; font-size: 14px; margin-bottom: 6px; }
.optional { color: var(--muted); font-weight: 400; }
input, select, textarea {
  width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 2px;
  background: var(--white); color: var(--ink); font: 16px var(--sans); padding: 11px 12px;
  transition: border-color .2s;
}
input:hover, select:hover, textarea:hover { border-color: var(--sand); }
textarea { resize: vertical; }
.invalid { border-color: var(--danger); animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.err { color: var(--danger); font-size: 13px; margin: 5px 0 0; }
.err:empty, .field-hint:empty { display: none; }
.field-hint { color: var(--muted); font-size: 13px; margin: 5px 0 0; }
.preview { background: var(--greige); padding: 14px 16px; margin: 6px 0 4px; }
.preview-label { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.preview pre { margin: 0; white-space: pre-wrap; font: 14px/1.6 var(--sans); }

/* ---------- Info ---------- */
.info-grid h2 { margin-bottom: 20px; }
.hours { width: 100%; border-collapse: collapse; font-size: 15px; }
.hours td { padding: 9px 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.hours .today td { font-weight: 600; }
.address { margin: 16px 0 0; color: var(--muted); font-size: 15px; }
.deposit-amount { font-family: var(--serif); font-size: 2rem; margin: 0; }
.qris { display: block; max-width: 240px; width: 100%; margin-top: 12px; }
.policies { padding-left: 18px; color: var(--muted); font-size: 15px; margin: 18px 0 0; }
.policies li { margin-bottom: 8px; }

details { border-bottom: 1px solid var(--line); }
details:first-of-type { margin-top: 12px; }
summary { cursor: pointer; padding: 18px 0; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--muted); transition: transform .3s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0; padding: 0 0 18px; color: var(--muted); }
details[open] p { animation: fade-in .4s var(--ease); }

.footer { margin-top: 80px; padding: 48px 20px 56px; background: var(--greige); text-align: center; color: var(--muted); font-size: 14px; }
.footer p { margin: 0; }
.footer-mark { font-family: var(--serif); font-size: 26px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin-bottom: 8px !important; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 30;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
  transform: scale(0); visibility: hidden;
  transition: transform .4s var(--ease), visibility .4s;
}
/* Appears once the hero's own WhatsApp button has scrolled away. */
.wa-float.show { transform: scale(1); visibility: visible; }
.wa-float.show:hover { transform: scale(1.08); }

/* ---------- Scroll reveal (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Wider screens ---------- */
@media (min-width: 720px) {
  .tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; padding: 0; overflow: visible; }
  .carousel-nav { display: flex; }
  .section { padding-top: 88px; }
  .band { padding-top: 88px; }
  .band { margin-top: 88px; padding-bottom: 80px; }
}
@media (min-width: 960px) {
  .nav { display: flex; }
  .wordmark { font-size: 24px; letter-spacing: .14em; }
  .booking-grid { grid-template-columns: 1fr 440px; gap: 64px; align-items: start; }
  .booking-visual { position: sticky; top: 90px; }
  .booking-visual .frame { aspect-ratio: 4 / 5; }
  .info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
  .hero-inner { padding-bottom: 80px; }
  .dots { right: max(20px, calc((100vw - 1160px) / 2 + 20px)); bottom: 36px; }
}
@media (max-width: 360px) {
  .row { grid-template-columns: 1fr; gap: 0; }
  .wordmark { font-size: 18px; letter-spacing: .1em; }
}

/* ---------- Reduced motion: keep everything, drop the movement ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-line { animation: none; opacity: 1; transform: none; }
  .wa-float { transition: none; }
  .slide { transition: opacity .01s; transform: none; }
  .marquee-track { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .service, details[open] p, .invalid { animation: none; }
  .rail { scroll-behavior: auto; }
  .frame img { transition: none; }
}
