/* ---------- Themes ---------- */
:root,
[data-theme="petal"] {
  --bg: #FBEFF1;
  --surface: #FFFFFF;
  --ink: #3A1F2B;
  --muted: #7A5A66;
  --line: #EBCAD3;
  --accent: #B0305C;
  --on-accent: #FFFFFF;
  --chosen: #F6DCE3;
  --tile-a: #F4D3DC;
  --tile-b: #EFC1CF;
  color-scheme: light;
}

[data-theme="onyx"] {
  --bg: #231A1C;
  --surface: #2E2326;
  --ink: #F4E9E1;
  --muted: #B7A6A0;
  --line: #4A3B3E;
  --accent: #D8B98A;
  --on-accent: #231A1C;
  --chosen: #3A2D30;
  --tile-a: #33272A;
  --tile-b: #3E3033;
  color-scheme: dark;
}

[data-theme="lilac"] {
  --bg: #F1EEF8;
  --surface: #FFFFFF;
  --ink: #2B2340;
  --muted: #645A7A;
  --line: #D8D0EC;
  --accent: #6D4AA8;
  --on-accent: #FFFFFF;
  --chosen: #E4DDF3;
  --tile-a: #E2DBF2;
  --tile-b: #D5CBEC;
  color-scheme: light;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

body.has-bar { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }

h1, h2, h3 { margin: 0; font-weight: 600; }

h2 {
  font-family: "Bodoni Moda", Didot, "Times New Roman", serif;
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: var(--muted);
  margin-bottom: 4px;
}

p { margin: 0; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

img { max-width: 100%; display: block; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 22px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 12px; top: -60px;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 999px;
  z-index: 50;
}
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--chosen); color: var(--ink); }

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
.btn-primary:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.btn-wide { width: 100%; }

.icon-btn {
  width: 48px; height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  color: var(--ink);
}
.icon-btn:hover { border-color: var(--ink); color: var(--ink); }
.icon-btn svg { width: 22px; height: 22px; }

/* ---------- Hero ---------- */
.hero {
  padding: calc(56px + env(safe-area-inset-top, 0px)) 0 48px;
}

.mark {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Bodoni Moda", Didot, serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
}

.name {
  font-family: "Bodoni Moda", Didot, "Times New Roman", serif;
  font-size: clamp(2.75rem, 11vw, 4.75rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.02em;
  max-width: 12ch;
}

.tagline {
  margin-top: 20px;
  font-size: 1.15rem;
  max-width: 34ch;
}

.location { margin-top: 6px; color: var(--muted); }

.status {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
}
.status::before {
  content: "";
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--muted);
}
.status.is-open::before { background: #2F9E62; }

/* The signature colour row: nail-shaped chips */
.swatches {
  display: flex;
  gap: 12px;
  margin: 34px 0 36px;
}
.swatch {
  position: relative;
  width: 36px;
  height: 54px;
  border-radius: 18px 18px 12px 12px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.swatch::after {
  content: "";
  position: absolute;
  left: 9px; top: 9px;
  width: 6px; height: 20px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.45);
}
.swatches:empty { display: none; }
[data-theme="onyx"] .swatch { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.social { display: flex; gap: 10px; }

/* Hero photo: under the buttons on phones, beside the name on wider screens */
.hero-photo {
  margin: 36px auto 0;
  width: calc(100% - 44px);
  max-width: 636px;
  aspect-ratio: 1 / 1;
  border-radius: 28px;
  overflow: hidden;
  background: var(--tile-a);
}
.hero-photo[hidden] { display: none; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 60%; }

@media (min-width: 900px) {
  .hero.has-photo {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 48px;
    max-width: 1080px;
    margin: 0 auto;
    padding-left: 22px;
    padding-right: 22px;
  }
  .hero.has-photo .wrap { max-width: none; margin: 0; padding: 0; }
  .hero.has-photo .hero-photo { margin: 0; width: 100%; aspect-ratio: 4 / 5; }
}

/* ---------- Sections ---------- */
.section { padding: 56px 0; border-top: 1px solid var(--line); }
.lede { margin-top: 10px; color: var(--muted); max-width: 52ch; }

/* ---------- Price list ---------- */
.category { margin-top: 36px; }

.items { list-style: none; margin: 0; padding: 0; }

.item {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 14px;
  padding: 16px 12px 16px 14px;
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  border-radius: 0;
}
.item:hover { background: var(--chosen); }
.item[aria-pressed="true"] { background: var(--chosen); }

.item-line {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.item-name { font-weight: 700; font-size: 1.05rem; }
.leader {
  flex: 1;
  min-width: 24px;
  border-bottom: 2px dotted var(--line);
  transform: translateY(-5px);
}
.item-price { font-weight: 700; white-space: nowrap; }
.item-price small { font-weight: 500; color: var(--muted); font-size: 0.85rem; margin-right: 3px; }

.item-meta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}
.tag {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1.5px solid var(--accent);
  color: var(--accent);
}
.item-desc { grid-column: 1 / -1; color: var(--muted); font-size: 0.95rem; max-width: 56ch; }

.picked {
  grid-column: 1 / -1;
  display: none;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--accent);
}
.item[aria-pressed="true"] .picked { display: block; }

/* ---------- Gallery ---------- */
.gallery {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (min-width: 560px) {
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.tile {
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  overflow: hidden;
  margin: 0;
  background: var(--tile-a);
}
.tile:nth-child(even) { background: var(--tile-b); }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile svg { width: 100%; height: 100%; }

/* ---------- Booking ---------- */
.summary {
  margin-top: 26px;
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.summary ul { list-style: none; margin: 0 0 12px; padding: 0; }
.summary li { display: flex; justify-content: space-between; gap: 14px; padding: 4px 0; }
.summary .total {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-weight: 700;
}
.summary .empty { color: var(--muted); }

.form { margin-top: 22px; display: flex; flex-direction: column; gap: 16px; }

.row { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 520px) {
  .row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 700; font-size: 0.95rem; }
.optional { font-weight: 500; color: var(--muted); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--chosen); }
.field [aria-invalid="true"] { border-color: #C0392B; }

.hint { color: var(--muted); font-size: 0.92rem; margin-top: -6px; }
.hint:empty { display: none; }

.check-row { display: flex; align-items: flex-start; gap: 12px; }
.check-row input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); flex-shrink: 0; }

.form-error { color: #C0392B; font-weight: 600; }
[data-theme="onyx"] .form-error,
[data-theme="onyx"] .field [aria-invalid="true"] { color: #FF9C8F; border-color: #FF9C8F; }
.form-error:empty { display: none; }

.fine { color: var(--muted); font-size: 0.9rem; text-align: center; }

.link-mode { margin-top: 26px; }

.deposit {
  margin-top: 30px;
  padding: 20px;
  border-radius: 18px;
  border: 1.5px dashed var(--line);
}
.deposit h3 { color: var(--ink); font-size: 1.1rem; margin-bottom: 6px; }
.deposit p { color: var(--muted); }
.pay { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.pay .btn { min-height: 44px; padding: 10px 18px; }
.deposit .pay-text { width: 100%; font-weight: 600; color: var(--ink); }

/* ---------- Policies ---------- */
.policies { margin-top: 22px; }
.policies details { border-bottom: 1px solid var(--line); }
.policies summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 4px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.policies summary::-webkit-details-marker { display: none; }
.policies summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--muted); }
.policies details[open] summary::after { content: "\2212"; }
.policies details p { padding: 0 4px 18px; color: var(--muted); max-width: 56ch; }

/* ---------- Reviews ---------- */
.reviews { margin-top: 24px; display: grid; gap: 22px; }
.reviews blockquote { margin: 0; }
.reviews blockquote p {
  font-family: "Bodoni Moda", Didot, serif;
  font-size: 1.3rem;
  line-height: 1.45;
}
.reviews cite { display: block; margin-top: 8px; font-style: normal; font-weight: 700; color: var(--muted); }

/* ---------- Visit ---------- */
.visit { margin-top: 22px; display: grid; gap: 28px; }
@media (min-width: 620px) {
  .visit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.hours { width: 100%; border-collapse: collapse; }
.hours th,
.hours td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.hours td { text-align: right; color: var(--muted); }
.hours tr.today th,
.hours tr.today td { font-weight: 700; color: var(--ink); }
.address { font-weight: 600; max-width: 30ch; }
.where-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* ---------- Footer ---------- */
.footer { padding: 40px 0 56px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.92rem; }

.demo-switcher {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.demo-switcher button {
  min-height: 40px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.demo-switcher button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }

/* ---------- Sticky booking bar ---------- */
.bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 20;
  max-width: 656px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 10px 10px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
}
.bar[hidden] { display: none; }
.bar-text { line-height: 1.3; }
.bar-main { display: block; font-weight: 700; font-size: 0.95rem; }
.bar-sub { display: block; font-size: 0.85rem; opacity: 0.8; }
.bar .btn-primary:hover { background: var(--bg); border-color: var(--bg); color: var(--ink); }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  top: calc(16px + env(safe-area-inset-top, 0px));
  transform: translate(-50%, -150%);
  z-index: 40;
  max-width: calc(100% - 32px);
  padding: 12px 20px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  text-align: center;
}
.toast:not(.show) { visibility: hidden; }
.toast.show { transform: translate(-50%, 0); }
@media (prefers-reduced-motion: no-preference) {
  .toast { transition: transform 0.25s ease; }
}

/* ---------- Larger screens ---------- */
@media (min-width: 900px) {
  .hero { padding-top: 96px; padding-bottom: 64px; }
  .section { padding: 72px 0; }
}
