/* Customer website (C39 / G19). Mobile-first; brand colour from Settings → Website via --brand on <html>. */
:root {
  --brand: #6C4BF4;
  --brand-ink: #fff;
  --bg: #faf9fc;
  --surface: #ffffff;
  --surface-2: #f2f0f7;
  --ink: #1d1b26;
  --muted: #625f70;
  --line: #e6e3ee;
  --ok: #1f8a4c;
  --err: #c0392b;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(29, 27, 38, .07);
  --wrap: 1160px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121118; --surface: #1b1a23; --surface-2: #24222e; --ink: #f1eff7; --muted: #a8a4b8; --line: #2f2c3b;
    --shadow: 0 6px 24px rgba(0, 0, 0, .35); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121118; --surface: #1b1a23; --surface-2: #24222e; --ink: #f1eff7; --muted: #a8a4b8; --line: #2f2c3b;
  --shadow: 0 6px 24px rgba(0, 0, 0, .35); color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", "Noto Sans Arabic", sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 5vw, 3.2rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.4rem, 3.2vw, 2rem); letter-spacing: -.01em; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 8px; top: 8px; transform: translateY(-200%); background: var(--brand); color: var(--brand-ink); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { transform: none; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 60%, transparent); outline-offset: 2px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 44px; padding: 0 20px;
  border-radius: 999px; border: 1px solid transparent; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  background: var(--brand); color: var(--brand-ink); transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px color-mix(in srgb, var(--brand) 35%, transparent); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { box-shadow: none; background: var(--surface-2); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: .9rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.link { color: var(--brand); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* header */
.site-head { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.1rem; min-width: 0; }
.brand img { height: 36px; width: auto; }
.brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { display: none; gap: 4px; margin-inline-start: auto; }
.nav a { padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.head-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none; position: relative; }
.icon-btn .count { position: absolute; top: -4px; inset-inline-end: -4px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--brand); color: var(--brand-ink); font-size: .7rem; display: grid; place-items: center; padding: 0 4px; }
.menu-toggle { display: inline-grid; }
.head-actions .btn { display: none; white-space: nowrap; }
@media (min-width: 560px) { .head-actions .btn { display: inline-flex; } }
.drawer { display: none; border-top: 1px solid var(--line); background: var(--surface); }
.drawer.open { display: block; }
.drawer a { display: block; padding: 14px 16px; text-decoration: none; border-bottom: 1px solid var(--line); }
.lang-form select { min-height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 0 10px; font: inherit; }
@media (min-width: 960px) {
  .nav { display: flex; }
  .head-actions { margin-inline-start: 8px; }
  .menu-toggle, .drawer { display: none !important; }
}

/* sections */
section { padding: 48px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.section-head p { margin: 0; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 6px; }

/* hero */
.hero { padding: 28px 0 40px; }
.hero-grid { display: grid; gap: 24px; align-items: center; }
.hero-card { position: relative; border-radius: 24px; overflow: hidden; min-height: 260px; background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 85%, #000), color-mix(in srgb, var(--brand) 55%, #ff7aa2)); }
.hero-card img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.hero-placeholder { min-height: 260px; height: 100%; display: grid; place-items: center; color: rgba(255,255,255,.85); font-size: 5rem; aspect-ratio: 4 / 3; }
.hero-text p { font-size: 1.1rem; color: var(--muted); max-width: 40ch; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.hero-facts { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 22px; color: var(--muted); font-size: .95rem; }
.hero-facts b { color: var(--ink); }
.slider { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slider::-webkit-scrollbar { display: none; }
.slider > * { scroll-snap-align: start; }
.slider a, .slider div { position: relative; display: block; }
.slider .cap { position: absolute; inset-inline: 0; bottom: 0; padding: 16px; color: #fff; font-weight: 700; background: linear-gradient(transparent, rgba(0,0,0,.6)); }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 1fr; } .hero { padding: 48px 0 56px; } }

/* cards & grids */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.grid-team { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.grid-team .person { padding: 16px 10px; }
.grid-team .avatar { width: 72px; height: 72px; font-size: 1.5rem; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.card .media { aspect-ratio: 4 / 3; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); font-size: 2rem; }
.card .media img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .body p { margin: 0; }
.card .foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; flex-wrap: wrap; }
.price { font-weight: 800; font-size: 1.05rem; }
.price s { color: var(--muted); font-weight: 500; font-size: .9rem; margin-inline-start: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: .85rem; text-decoration: none; white-space: nowrap; }
.chip.active { background: var(--brand); color: var(--brand-ink); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.cat-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; text-align: center; padding: 16px 8px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.cat-tile .ico { width: 64px; height: 64px; border-radius: 50%; background: color-mix(in srgb, var(--brand) 14%, var(--surface)); display: grid; place-items: center; overflow: hidden; color: var(--brand); font-size: 1.4rem; }
.cat-tile .ico img { width: 100%; height: 100%; object-fit: cover; }
.cats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.person { text-align: center; padding: 20px 16px; }
.avatar { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 10px; background: color-mix(in srgb, var(--brand) 14%, var(--surface)); display: grid; place-items: center; overflow: hidden; color: var(--brand); font-weight: 800; font-size: 2rem; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.stars { color: #f5a623; letter-spacing: 1px; }
.quote { padding: 20px; }
.quote p { font-size: 1.02rem; }
.offer { padding: 18px; border: 2px dashed color-mix(in srgb, var(--brand) 45%, var(--line)); background: color-mix(in srgb, var(--brand) 6%, var(--surface)); }
.code { font-family: ui-monospace, Consolas, monospace; font-weight: 800; letter-spacing: .08em; padding: 4px 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); }
.list { display: grid; gap: 10px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.row .meta { color: var(--muted); font-size: .9rem; }

/* content */
.page-head { padding-top: 32px; padding-bottom: 8px; }
.prose { max-width: 72ch; }
.prose img { border-radius: 12px; margin: 1em 0; }
.prose h2, .prose h3 { margin-top: 1.4em; }
details.faq { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; }
details.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; }
details.faq summary::after { content: "+"; float: inline-end; color: var(--muted); }
details.faq[open] summary::after { content: "–"; }
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: 6px 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: end; }
.hours tr.today td { font-weight: 700; }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 24px; }

/* forms */
.form { display: grid; gap: 14px; }
.form .two { display: grid; gap: 14px; }
@media (min-width: 640px) { .form .two { grid-template-columns: 1fr 1fr; } }
label.field { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.input, .select, .textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font: inherit; font-weight: 400;
}
.textarea { min-height: 120px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.field-error { color: var(--err); font-size: .85rem; font-weight: 500; }
.alert { padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; }
.alert-ok { background: color-mix(in srgb, var(--ok) 12%, var(--surface)); color: var(--ok); }
.alert-err { background: color-mix(in srgb, var(--err) 12%, var(--surface)); color: var(--err); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.split { display: grid; gap: 24px; }
@media (min-width: 900px) { .split { grid-template-columns: 1.4fr 1fr; align-items: start; } }

/* CTA band, footer */
.cta-band { border-radius: 24px; padding: 32px 24px; color: var(--brand-ink); background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 60%, #ff7aa2)); display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.cta-band h2 { margin: 0; }
.cta-band .btn { background: #fff; color: #1d1b26; }
.site-foot { margin-top: 40px; padding: 40px 0 96px; border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: .95rem; }
.site-foot .cols { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.site-foot h3 { color: var(--ink); font-size: 1rem; }
.site-foot a { text-decoration: none; display: inline-block; padding: 3px 0; }
.site-foot a:hover { color: var(--ink); }
.socials { display: flex; gap: 8px; margin-top: 8px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); }
.copy { margin-top: 24px; font-size: .85rem; }
@media (min-width: 960px) { .site-foot { padding-bottom: 40px; } }

/* mobile bottom bar: book / call / whatsapp */
.bottom-bar { position: fixed; inset-inline: 0; bottom: 0; z-index: 30; display: flex; gap: 8px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
.bottom-bar .btn { flex: 1; }
@media (min-width: 960px) { .bottom-bar { display: none; } }

/* directory (SaaS) */
.search { display: grid; gap: 10px; grid-template-columns: 1fr; max-width: 680px; }
@media (min-width: 640px) { .search { grid-template-columns: 1fr 200px auto; } }
.salon-logo { width: 56px; height: 56px; border-radius: 14px; background: var(--surface-2); overflow: hidden; display: grid; place-items: center; font-weight: 800; color: var(--brand); }
.salon-logo img { width: 100%; height: 100%; object-fit: cover; }

.empty { text-align: center; padding-block: 40px; color: var(--muted); }
[dir="rtl"] .fa-arrow-right, [dir="rtl"] .fa-chevron-right { transform: scaleX(-1); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* booking wizard (book.js) */
.steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 20px; counter-reset: st; flex-wrap: wrap; }
.steps li { counter-increment: st; display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; font-size: .95rem; }
.steps li::before { content: counter(st); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-size: .85rem; }
.steps li + li::after { content: none; }
.steps li.active { color: var(--ink); }
.steps li.active::before, .steps li.done::before { background: var(--brand); color: var(--brand-ink); }
.steps li.done::before { content: "✓"; }
.row.pick { cursor: pointer; }
.row.pick.on { border-color: var(--brand); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 25%, transparent); }
.row.pick input { accent-color: var(--brand); width: 18px; height: 18px; vertical-align: -3px; }
.book-bar { position: sticky; bottom: 76px; margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); z-index: 5; }
@media (min-width: 960px) { .book-bar { bottom: 16px; } }
button.chip { border: 1px solid transparent; cursor: pointer; font: inherit; min-height: 40px; }
.chip.date { flex-direction: column; gap: 0; min-width: 64px; padding: 6px 10px; border-radius: 14px; line-height: 1.2; }
.chip.date b { font-size: 1.15rem; }
.slots { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.chip.slot { justify-content: center; min-height: 44px; border-radius: 12px; font-weight: 600; }
table.sum td { padding: 8px 0; }
table.sum tr.total td { font-weight: 800; font-size: 1.1rem; border-bottom: 0; }
[data-coupon] { grid-template-columns: 1fr auto; }
