/* Nail studio master. Colours + fonts come from site.json (app.js sets the variables). */
:root {
  --bg: #fbf7f4;
  --surface: #ffffff;
  --tint: #f3e9e4;
  --ink: #1f1a1c;
  --muted: #574c50;
  --line: #e6dbd5;
  --accent: #8e3b4f;
  --accent-ink: #ffffff;
  --display: "DM Serif Display", Georgia, serif;
  --body: "DM Sans", system-ui, sans-serif;
  --display-weight: 400;
  --radius: 18px;
  --wrap: 1160px;
  --gutter: 16px;
  --bar: 0px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.62 var(--body);
  overflow-x: hidden; padding-bottom: var(--bar);
}
@media (min-width: 900px) { body { font-size: 1.125rem; } }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: var(--display-weight); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 8vw, 4.4rem); }
h2 { font-size: clamp(2rem, 5.2vw, 3rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 700px) { :root { --gutter: 28px; } }
section { padding: 64px 0; }
@media (min-width: 900px) { section { padding: 96px 0; } }
.eyebrow { display: inline-block; font-size: .9375rem; font-weight: 600; color: var(--accent); margin-bottom: .6em; letter-spacing: .02em; }
.lead { font-size: 1.1875rem; color: var(--muted); max-width: 38em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 10px 14px; z-index: 99; }
.skip:focus { left: 8px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 1.4em; border-radius: 999px; border: 2px solid var(--accent);
  background: var(--accent); color: var(--accent-ink); font: 600 1rem/1 var(--body);
  text-decoration: none; cursor: pointer; transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.small { min-height: 44px; padding: 0 1.1em; font-size: .9375rem; }
.btn svg { width: 20px; height: 20px; flex: none; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* demo banner + header */
.demo-banner { background: var(--ink); color: var(--bg); text-align: center; font-size: .9375rem; padding: 8px var(--gutter); line-height: 1.4; }
.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { font-family: var(--display); font-weight: var(--display-weight); font-size: 1.5rem; text-decoration: none; margin-right: auto; display: flex; align-items: center; gap: 10px; min-height: 44px; }
.brand img { height: 40px; width: auto; }
.nav { display: none; gap: 4px; }
.nav a { text-decoration: none; padding: 10px 14px; border-radius: 999px; font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; }
.nav a[aria-current="page"] { background: var(--tint); }
.icon-btn { min-width: 44px; min-height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 12px; cursor: pointer; font: 600 .9375rem var(--body); position: relative; }
.icon-btn svg { width: 22px; height: 22px; }
.count { background: var(--accent); color: var(--accent-ink); border-radius: 999px; min-width: 22px; height: 22px; font-size: .875rem; display: inline-grid; place-items: center; padding: 0 6px; }
.count:empty, .count[data-n="0"] { display: none; }
.menu-btn { display: inline-flex; }
@media (min-width: 900px) { .nav { display: flex; } .menu-btn { display: none; } }
.mobile-nav { display: none; border-top: 1px solid var(--line); padding: 8px var(--gutter) 16px; }
.mobile-nav.open { display: grid; }
.mobile-nav a { text-decoration: none; font-size: 1.25rem; padding: 12px 4px; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .mobile-nav.open { display: none; } }

/* hero */
.hero { padding: 32px 0 56px; background: radial-gradient(120% 80% at 80% 10%, var(--tint), transparent 60%); }
.hero .wrap { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .hero { padding: 56px 0 96px; } .hero .wrap { grid-template-columns: 1.05fr 1fr; gap: 48px; } }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .lead { margin-bottom: 1.4em; }
.stage-wrap { display: grid; gap: 14px; }
.stage { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 520px; margin: 0 auto; border-radius: 28px; overflow: hidden; background: radial-gradient(70% 60% at 50% 45%, var(--surface), var(--tint)); }
.stage img.fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s; }
.stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; transition: opacity .6s; touch-action: pan-y; }
.stage.is-3d canvas { opacity: 1; }
.stage.is-3d img.fallback { opacity: 0; }
.picker { display: none; gap: 12px; justify-items: center; }
.stage-wrap.has-3d .picker { display: grid; }
.swatches { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; }
.swatch { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0; }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); }
.finishes { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px; flex-wrap: wrap; justify-content: center; }
.finishes button { min-height: 40px; min-width: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: none; font: 500 .9375rem var(--body); color: var(--ink); cursor: pointer; }
.finishes button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.picker-label { font-size: .9375rem; color: var(--muted); margin: 0; }

/* trust strip */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.hero-stats { grid-column: 1 / -1; }
@media (min-width: 700px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stat b { display: block; font-family: var(--display); font-weight: var(--display-weight); font-size: 1.3rem; line-height: 1.2; }
.stat span { font-size: .9375rem; color: var(--muted); }

/* cards */
.grid { display: grid; gap: 16px; }
@media (min-width: 700px) { .grid.two { grid-template-columns: repeat(2, 1fr); } .grid.three { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid.three { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.card h3 { margin: 0; }
.card .meta { color: var(--muted); font-size: 1rem; }
.card .price { font-weight: 700; font-size: 1.25rem; }
.card .foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; }
.section-head h2 { margin: 0; }
.tinted { background: var(--tint); }

/* services menu */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 500 1rem var(--body); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.chip[aria-pressed="true"], .chip.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.menu-nav { position: sticky; top: 64px; z-index: 5; background: var(--bg); padding-top: 8px; }
.menu-cat { padding: 28px 0 8px; scroll-margin-top: 140px; }
.menu-cat h2 { font-size: clamp(1.75rem, 4.5vw, 2.4rem); }
.svc { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.svc h3 { font-family: var(--body); font-weight: 600; font-size: 1.125rem; margin: 0; letter-spacing: 0; }
.svc .dur { color: var(--muted); font-size: 1rem; }
.svc p { grid-column: 1 / -1; margin: 2px 0 0; color: var(--muted); font-size: 1rem; }
.svc .right { display: flex; align-items: center; gap: 12px; grid-row: 1 / span 2; grid-column: 2; align-self: start; }
.svc .amt { font-weight: 700; font-size: 1.125rem; white-space: nowrap; }
.tag { display: inline-block; font-size: .875rem; font-weight: 600; background: var(--tint); color: var(--ink); border-radius: 999px; padding: 2px 10px; margin-left: 6px; vertical-align: middle; }
.addons { display: flex; flex-wrap: wrap; gap: 10px; }
.addon { display: inline-flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 4px 4px 16px; min-height: 52px; }
.addon b { font-weight: 600; }

/* stepper */
.add { min-width: 44px; min-height: 44px; border-radius: 999px; border: 2px solid var(--accent); background: var(--surface); color: var(--accent); font: 700 1rem var(--body); cursor: pointer; padding: 0 16px; }
.stepper { display: inline-flex; align-items: center; border: 2px solid var(--accent); border-radius: 999px; background: var(--accent); color: var(--accent-ink); }
.stepper button { min-width: 44px; min-height: 40px; border: 0; background: none; color: inherit; font: 700 1.25rem/1 var(--body); cursor: pointer; border-radius: 999px; }
.stepper output { min-width: 1.5em; text-align: center; font-weight: 700; }

/* gallery */
.gallery { columns: 2; column-gap: 10px; }
@media (min-width: 700px) { .gallery { columns: 3; column-gap: 14px; } }
.gallery figure { margin: 0 0 10px; break-inside: avoid; position: relative; border-radius: 14px; overflow: hidden; background: var(--tint); }
.gallery button { display: block; padding: 0; border: 0; width: 100%; cursor: zoom-in; background: none; }
.gallery img { width: 100%; height: auto; }
.gallery figcaption { position: absolute; left: 8px; bottom: 8px; background: color-mix(in srgb, var(--bg) 92%, transparent); color: var(--ink); font-size: .875rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.teaser { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 700px) { .teaser { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
.teaser img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; border-radius: 14px; }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 900px); }
dialog.lightbox img { max-height: 84vh; width: auto; border-radius: 12px; margin: 0 auto; }
dialog.lightbox p { color: #fff; text-align: center; margin: 10px 0 0; }
dialog::backdrop { background: rgba(20, 14, 16, .72); }
.lightbox .close { position: absolute; top: 8px; right: 8px; }

/* info / contact */
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: 10px 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; font-weight: 500; }
.hours tr.today td { font-weight: 700; color: var(--accent); }
.map { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius); background: var(--tint); }
.list { padding-left: 1.1em; margin: 0; }
.list li { margin: .35em 0; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { padding-left: 32px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 14px no-repeat; }
.cta-band { background: var(--ink); color: var(--bg); border-radius: 28px; padding: 40px 24px; text-align: center; }
.cta-band .lead { color: color-mix(in srgb, var(--bg) 82%, var(--ink)); margin: 0 auto 1.4em; }
.cta-band .btn.ghost { color: var(--bg); border-color: var(--bg); }
.cta-band .row { justify-content: center; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 28px; font-size: 1rem; }
.site-footer .wrap { display: grid; gap: 24px; }
@media (min-width: 800px) { .site-footer .wrap { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h3 { font-size: 1.25rem; }
.site-footer a { text-underline-offset: 3px; display: inline-block; padding: 10px 0; }
.site-footer p { line-height: 1.5; }
.credit { grid-column: 1 / -1; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* sticky mobile booking bar */
.book-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--surface); border-top: 1px solid var(--line); padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); display: flex; gap: 10px; align-items: center; box-shadow: 0 -8px 24px rgba(0,0,0,.06); }
.book-bar .sum { margin-right: auto; line-height: 1.3; font-size: 1rem; }
.book-bar .sum b { display: block; font-size: 1.0625rem; }
.book-bar .btn { flex: none; white-space: nowrap; }
@media (min-width: 900px) { .book-bar { display: none; } }

/* booking drawer */
dialog.drawer { border: 0; padding: 0; margin: auto 0 0; width: 100%; max-width: 100%; max-height: 92vh; border-radius: 24px 24px 0 0; background: var(--bg); color: var(--ink); }
@media (min-width: 700px) { dialog.drawer { margin: 0 0 0 auto; height: 100vh; max-height: 100vh; width: 440px; border-radius: 0; } }
.drawer-in { padding: 20px var(--gutter) calc(24px + env(safe-area-inset-bottom)); display: grid; gap: 16px; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; }
.drawer-head h2 { font-size: 1.75rem; margin: 0; }
.line { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line .nm { font-weight: 600; }
.line .sub { color: var(--muted); font-size: .9375rem; }
.total { display: flex; justify-content: space-between; font-size: 1.25rem; font-weight: 700; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 1rem; }
.field input, .field select, .field textarea { font: 400 1.0625rem var(--body); color: var(--ink); background: var(--surface); border: 1.5px solid #b9aaa3; border-radius: 12px; min-height: 48px; padding: 10px 14px; width: 100%; }
.field textarea { min-height: 84px; resize: vertical; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.empty { color: var(--muted); }
.note { font-size: .9375rem; color: var(--muted); margin: 0; }
.toast { position: fixed; left: 50%; bottom: calc(var(--bar) + 16px); transform: translateX(-50%) translateY(20px); background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 999px; opacity: 0; transition: .25s; z-index: 60; pointer-events: none; font-size: 1rem; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
