/* Lailak salon / Sindian barber — template styles. Theme via html[data-type]. */
:root {
  --bg: #F7F1F4;
  --paper: #FFFDFE;
  --ink: #2E1A2B;
  --mute: #75606F;
  --accent: #9C4F7A;
  --accent-ink: #FFFFFF;
  --soft: #EADDE7;
  --line: #B8935A;
  --rule: rgba(46, 26, 43, .14);
  --focus: #6B2E8C;
  --arch: 999px 999px 0 0;
  --frame-r: 999px 999px 6px 6px;
  --display: 'El Messiri', 'IBM Plex Sans Arabic', serif;
  --body: 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --wa: #1F8F5F;
  color-scheme: light;
  /* Tecnoman motion system (دليل الإلهام §2). Salon = slow luxe rhythm ×1.2; barber overrides to ×0.9. */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-inout: cubic-bezier(.65, 0, .35, 1);
  --ease-snap: cubic-bezier(.34, 1.56, .64, 1);
  --ease-lux: cubic-bezier(.16, 1, .3, 1);
  --ease-in: cubic-bezier(.55, 0, 1, .45);
  --k: 1.2;
  --ease: var(--ease-lux);
  --d-1: calc(120ms * var(--k));
  --d-2: calc(220ms * var(--k));
  --d-3: calc(420ms * var(--k));
  --d-4: calc(700ms * var(--k));
  --d-5: calc(1100ms * var(--k));
  --tap: 200ms; /* anything answering a touch stays under 220ms */
  --sheen: rgba(255, 246, 250, .62);
  --frame-fill: linear-gradient(165deg, #EFE2EA 0%, #D9B8CC 52%, #B98AA6 100%);
}
html[data-type="barber"] {
  --bg: #141A1C;
  --paper: #1C2427;
  --ink: #ECE5D8;
  --mute: #A9A79D;
  --accent: #C9974B;
  --accent-ink: #17140F;
  --soft: #26302F;
  --line: #C9974B;
  --rule: rgba(236, 229, 216, .14);
  --focus: #E8C27E;
  --arch: 6px;
  --frame-r: 4px;
  color-scheme: dark;
  --k: .9;
  --ease: var(--ease-out);
  --sheen: rgba(214, 150, 92, .42);
  --frame-fill: linear-gradient(165deg, #2B3533 0%, #1C2427 55%, #3A3326 100%);
}

html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.7 var(--body);
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.25; margin: 0; }
p { margin: 0; }
small { font-size: .78em; }

/* ---------- floating chips (studio chrome) ---------- */
.chip-bar {
  position: fixed; inset-inline-start: 10px; bottom: 10px; z-index: 40;
  display: flex; gap: 6px; flex-wrap: wrap; max-width: calc(100vw - 20px);
}
.chip {
  font: 500 12px/1 var(--body); padding: 8px 11px; border-radius: 999px;
  background: rgba(30, 20, 28, .82); color: #fff; text-decoration: none; border: 0;
  backdrop-filter: blur(6px);
}
html[data-type="barber"] .chip { background: rgba(236, 229, 216, .9); color: #17140F; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-inline-end: auto; }
.brand-mark .bm-arch { fill: var(--accent); }
.brand-mark .bm-in { fill: none; stroke: var(--line); stroke-width: 1.6; }
html[data-type="barber"] .brand-mark .bm-arch { fill: none; stroke: var(--accent); stroke-width: 2.4; d: path("M5 46V3h30v43z"); }
html[data-type="barber"] .brand-mark .bm-in { d: path("M11 46V9h18v37"); }
.brand-name { font: 700 24px/1 var(--display); letter-spacing: .01em; }
.brand-name.small { font-size: 22px; }
.nav { display: none; gap: 26px; }
.nav a { text-decoration: none; color: var(--mute); font-size: 15px; }
.nav a:hover { color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px; border-radius: 999px; border: 1px solid var(--accent);
  background: var(--accent); color: var(--accent-ink); text-decoration: none;
  font: 600 16px/1 var(--body);
  transition: background .2s, color .2s, transform .2s;
}
.btn:hover { background: color-mix(in srgb, var(--accent) 86%, var(--ink)); }
.btn:active { transform: scale(.98); }
.btn-small { min-height: 44px; padding: 0 16px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn-ghost:hover { background: var(--soft); }
.btn-wide { width: 100%; }
.btn-wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.btn-wa:hover { background: #187a50; }
html[data-type="barber"] .btn { border-radius: 4px; }
.link-quiet {
  background: none; border: 0; padding: 4px 0; min-height: 44px; display: inline-flex; align-items: center; color: var(--accent);
  text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; font: 500 15px var(--body);
}

/* ---------- hero ---------- */
.hero {
  display: grid; gap: 34px; padding: 30px 20px 56px;
  max-width: 1180px; margin: 0 auto;
}
.hero-title { font-size: clamp(36px, 9.6vw, 68px); font-weight: 700; line-height: 1.12; max-width: 13ch; text-wrap: balance; }
html[lang="en"] .hero-title { letter-spacing: -.01em; }
.hero-lead { margin-top: 16px; color: var(--mute); font-size: 17px; max-width: 46ch; }
.hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 26px; flex-wrap: wrap; }
.hero-hours { margin-top: 22px; font-size: 14px; color: var(--mute); padding-inline-start: 12px; border-inline-start: 2px solid var(--line); }

.mirror { margin: 0; position: relative; justify-self: center; width: min(78vw, 400px); }
.mirror::before {
  content: ''; position: absolute; inset: -12px 12px 12px -12px;
  border: 1px solid var(--line); border-radius: var(--frame-r); pointer-events: none;
}
[dir="rtl"] .mirror::before { inset: -12px -12px 12px 12px; }
.mirror-frame {
  position: relative; aspect-ratio: 4 / 5.4; overflow: hidden;
  border-radius: var(--frame-r); background: var(--frame-fill);
  transform-style: preserve-3d;
}
.mirror-pic { position: absolute; inset: 0; }
.mirror-pic picture, .mirror-pic img { display: block; width: 100%; height: 100%; }
.mirror-pic img { object-fit: cover; object-position: 50% 40%; }
.mirror-sheen {
  position: absolute; inset: -10% -40%; pointer-events: none; opacity: 0;
  background: linear-gradient(105deg, transparent 38%, var(--sheen) 50%, transparent 62%);
  transform: translateX(-70%);
}
html[data-type="barber"] .mirror-frame { outline: 6px solid var(--paper); outline-offset: 0; }
html[data-type="barber"] .mirror::after {
  content: ''; position: absolute; top: 18px; bottom: 18px; inset-inline-end: -22px; width: 8px; border-radius: 4px;
  background: repeating-linear-gradient(160deg, var(--accent) 0 10px, transparent 10px 20px);
  opacity: .8;
}

.next-tag { position: absolute; inset-inline-start: -14px; bottom: 34px; }
.next-btn {
  display: grid; gap: 2px; text-align: start; padding: 12px 16px 12px 18px;
  background: var(--paper); color: var(--ink); border: 1px solid var(--rule);
  border-radius: 16px; box-shadow: 0 14px 30px -18px rgba(46, 26, 43, .45);
}
.next-k { font-size: 12px; color: var(--mute); }
.next-v { font: 600 17px/1.3 var(--display); }
html[data-type="barber"] .next-btn { border-radius: 4px; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .7); }

/* ---------- sections ---------- */
.sec { max-width: 1180px; margin: 0 auto; padding: 56px 20px; }
.sec-head { display: grid; gap: 8px; margin-bottom: 26px; }
.sec-head h2 { font-size: clamp(28px, 6.6vw, 42px); }
.sec-note { color: var(--mute); font-size: 15px; max-width: 58ch; }

/* tabs */
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--rule); margin-bottom: 6px; scrollbar-width: none; }
.tab {
  flex: none; background: none; border: 0; padding: 10px 14px 12px; color: var(--mute);
  font: 500 16px var(--body); border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }

/* price list */
.price-list { list-style: none; margin: 0; padding: 0; }
.svc {
  display: grid; grid-template-columns: 1fr auto auto; grid-template-areas: "name price btn";
  align-items: center; gap: 4px 14px; padding: 16px 0; border-bottom: 1px dashed var(--rule);
}
.svc-name { grid-area: name; display: grid; }
.svc-title { font: 600 18px/1.4 var(--display); }
.svc-dur { font-size: 13px; color: var(--mute); }
.leader { display: none; }
.price { grid-area: price; font-weight: 600; white-space: nowrap; font-size: 15px; }
.price small { color: var(--mute); font-weight: 400; }
.svc .toggle { grid-area: btn; }

.toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; min-width: 44px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--accent); background: transparent; color: var(--accent);
  font: 500 14px var(--body);
  transition: background var(--tap) var(--ease-out), color var(--tap) var(--ease-out), transform var(--tap) var(--ease-out);
}
.toggle:active { transform: scale(.95); }
.toggle svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.toggle svg path { transform-box: fill-box; transform-origin: center; transition: transform var(--tap) var(--ease-out), opacity var(--tap) linear, stroke-dashoffset 260ms var(--ease-out); }
.tg-c { stroke-dasharray: 1; stroke-dashoffset: 1; }
.toggle[aria-pressed="true"] .tg-a, .toggle[aria-pressed="true"] .tg-b { transform: rotate(90deg) scale(.2); opacity: 0; }
.toggle[aria-pressed="true"] .tg-c { stroke-dashoffset: 0; transition-delay: 70ms; }
.toggle[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.toggle-label { display: none; }
html[data-type="barber"] .toggle { border-radius: 4px; }

/* packages */
.sec-packages { padding-top: 24px; }
.packages { display: grid; gap: 14px; }
.pkg {
  display: grid; gap: 14px; padding: 22px; background: var(--paper);
  border: 1px solid var(--rule); border-radius: 22px;
}
.pkg-hero { background: var(--ink); color: var(--bg); border-color: var(--ink); border-radius: 160px 160px 22px 22px; padding-top: 46px; text-align: center; }
.pkg-hero .pkg-inc { justify-items: center; }
.pkg-hero .pkg-meta, .pkg-hero .pkg-inc li { color: color-mix(in srgb, var(--bg) 75%, var(--ink)); }
.pkg-hero .pkg-foot { justify-content: center; gap: 18px; }
.pkg-hero .toggle { border-color: var(--line); color: var(--bg); }
.pkg-hero .toggle[aria-pressed="true"] { background: var(--line); color: var(--ink); }
.pkg h3 { font-size: 24px; }
.pkg-meta { font-size: 14px; color: var(--mute); }
.pkg-inc { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 15px; }
.pkg-inc li { color: var(--mute); }
.pkg-inc li::before { content: ''; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--line); margin-inline-end: 10px; vertical-align: middle; }
.pkg-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.pkg-foot .price { font: 700 22px var(--display); }
.pkg .toggle-label { display: inline; }
html[data-type="barber"] .pkg { border-radius: 4px; }
html[data-type="barber"] .pkg-hero { background: var(--soft); color: var(--ink); border: 1px solid var(--accent); border-radius: 4px; padding-top: 22px; text-align: start; }
html[data-type="barber"] .pkg-hero .pkg-inc { justify-items: start; }
html[data-type="barber"] .pkg-hero .pkg-foot { justify-content: space-between; }
html[data-type="barber"] .pkg-hero .pkg-meta, html[data-type="barber"] .pkg-hero .pkg-inc li { color: var(--mute); }
html[data-type="barber"] .pkg-hero .toggle { color: var(--accent); border-color: var(--accent); }
html[data-type="barber"] .pkg-hero .toggle[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }

/* team */
.team { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 16px; }
.person { display: grid; gap: 10px; justify-items: start; }
.avatar { width: 100%; max-width: 104px; height: auto; }
@media (min-width: 640px) { .avatar { max-width: 150px; } }
.av-line { stroke: rgba(255, 255, 255, .6); stroke-width: 1; }
.av-letter { font: 600 34px var(--display); fill: #fff; }
html[data-type="barber"] .av-shape { d: path("M4 94V10a6 6 0 0 1 6-6h60a6 6 0 0 1 6 6v84z"); }
html[data-type="barber"] .av-line { d: path("M12 94V14h56v80"); stroke: rgba(236, 229, 216, .35); }
html[data-type="barber"] .av-letter { fill: var(--ink); }
.person-name { font: 600 20px/1.3 var(--display); }
.person-role { font-size: 14px; color: var(--mute); }

/* ---------- booking ---------- */
.sec-book { padding-top: 64px; }
.book-grid { display: grid; gap: 28px; }
.steps { display: grid; gap: 8px; }
.step { border: 0; margin: 0; padding: 0 0 24px; border-bottom: 1px solid var(--rule); min-width: 0; }
.step + .step { padding-top: 16px; }
.step legend { display: flex; align-items: center; gap: 10px; font: 600 20px var(--display); padding: 0; margin-bottom: 14px; float: inline-start; width: 100%; }
.step legend + * { clear: both; }
.step-n {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--line); font: 600 14px var(--body); color: var(--accent);
}
.chosen { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; }
.chosen li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; background: var(--paper); border-radius: 12px; border: 1px solid var(--rule); }
.chosen li small { color: var(--mute); }
.chosen li.empty { color: var(--mute); background: transparent; border-style: dashed; }
.chosen-end { display: flex; align-items: center; gap: 10px; white-space: nowrap; font-weight: 500; }
.x { width: 36px; height: 36px; position: relative; } .x::after { content: ""; position: absolute; inset: -4px; } .x { border-radius: 50%; border: 1px solid var(--rule); background: transparent; font-size: 18px; line-height: 1; color: var(--mute); }
html[data-type="barber"] .chosen li { border-radius: 4px; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--rule);
  background: var(--paper); font: 500 15px var(--body);
}
.pill[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }

.days { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; margin: 0 -2px; scroll-snap-type: x proximity; }
.day {
  flex: none; width: 74px; display: grid; justify-items: center; gap: 0; padding: 10px 4px 8px;
  border-radius: 40px 40px 12px 12px; border: 1px solid var(--rule); background: var(--paper);
  scroll-snap-align: start;
}
html[data-type="barber"] .day { border-radius: 4px; }
.day-w { font-size: 12px; color: var(--mute); white-space: nowrap; }
.day-n { font: 700 24px/1.2 var(--display); }
.day-m { font-size: 12px; color: var(--mute); }
.day-tag { margin-top: 4px; font-size: 10.5px; color: var(--accent); white-space: nowrap; }
.day.is-fri { border-color: var(--line); }
.day[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.day[aria-pressed="true"] .day-w, .day[aria-pressed="true"] .day-m, .day[aria-pressed="true"] .day-tag { color: inherit; opacity: .8; }
.day:disabled { opacity: .45; cursor: not-allowed; }

.slot-info { font-size: 14px; color: var(--mute); margin-bottom: 12px; }
.slot-group + .slot-group { margin-top: 14px; }
.slot-label { font-size: 13px; color: var(--mute); margin-bottom: 6px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }
.slot {
  min-height: 44px; border-radius: 10px; border: 1px solid var(--rule); background: var(--paper);
  font: 500 15px var(--body); direction: ltr;
}
[lang="ar"] .slot { direction: rtl; }
.slot[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.slot:disabled { background: transparent; color: color-mix(in srgb, var(--mute) 60%, transparent); text-decoration: line-through; cursor: not-allowed; border-style: dashed; }
html[data-type="barber"] .slot { border-radius: 4px; }

.fields { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; font-size: 14px; color: var(--mute); }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--rule);
  background: var(--paper); color: var(--ink); font-size: 16px;
}
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--mute) 70%, transparent); }
[dir="rtl"] #fPhone { text-align: right; }
html[data-type="barber"] .field input, html[data-type="barber"] .field textarea { border-radius: 4px; }
.form-error { color: #B3261E; font-size: 14px; min-height: 1px; }
html[data-type="barber"] .form-error { color: #F2A38F; }

/* ticket: the appointment card */
.book-side { display: grid; gap: 14px; align-self: start; }
.ticket {
  background: var(--paper); border: 1px solid var(--rule); border-radius: 24px;
  padding: 22px; position: relative; overflow: hidden;
}
.ticket::before {
  content: ''; position: absolute; inset: 8px; border: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
  border-radius: 18px; pointer-events: none;
}
html[data-type="barber"] .ticket, html[data-type="barber"] .ticket::before { border-radius: 4px; }
.t-head { text-align: center; padding: 6px 0 16px; border-bottom: 1px dashed var(--rule); }
.t-shop { font: 700 26px/1.2 var(--display); }
.t-kind { font-size: 13px; color: var(--mute); }
.t-body { margin: 0; padding: 12px 0; display: grid; }
.t-row { display: grid; grid-template-columns: 84px 1fr; gap: 10px; padding: 7px 0; font-size: 15px; }
.t-row dt { color: var(--mute); font-size: 13px; padding-top: 2px; }
.t-row dd { margin: 0; font-weight: 500; }
.muted { color: var(--mute); }
.t-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; border-top: 1px dashed var(--rule); }
.t-total strong { font: 700 24px var(--display); }
.t-total small { color: var(--mute); font-weight: 400; font-family: var(--body); }
.t-note { margin-top: 12px; font-size: 13px; color: var(--mute); }
.tv { display: block; overflow: hidden; padding-block: .12em; margin-block: -.12em; }
.tv-in { display: block; }
.t-total .tv { display: inline-block; vertical-align: bottom; }
.t-stamp {
  position: absolute; inset-inline-end: 20px; bottom: 122px; z-index: 2; pointer-events: none;
  padding: 5px 14px 7px; color: var(--line); border: 2px solid var(--line); border-radius: 10px;
  outline: 1px solid color-mix(in srgb, var(--line) 70%, transparent); outline-offset: 3px;
  font: 700 22px/1.1 var(--display); transform: rotate(-9deg); opacity: .9;
  background: color-mix(in srgb, var(--paper) 70%, transparent);
}
html[data-type="barber"] .t-stamp { border-radius: 3px; }
html[dir="ltr"] .t-stamp { transform: rotate(9deg); }

/* ---------- gallery: arched frames that drift at two speeds ---------- */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.g { margin: 0; }
.g-frame { position: relative; overflow: hidden; background: var(--frame-fill); border-radius: var(--frame-r); aspect-ratio: 3 / 4.3; }
.g1 .g-frame { --frame-fill: linear-gradient(165deg, #E9DCE6, #C9A6BC 60%, #9C6F8C); }
.g2 .g-frame { --frame-fill: linear-gradient(165deg, #F2E6DA, #D9BFA1 60%, #B8935A); }
.g3 .g-frame { --frame-fill: linear-gradient(165deg, #EEE4EC, #CDB6D1 60%, #8E6A93); }
html[data-type="barber"] .g-frame { --frame-fill: linear-gradient(165deg, #26302F, #1C2427 60%, #3A3326); }
.g-frame::after {
  content: ''; position: absolute; inset: 7px; border: 1px solid rgba(255, 255, 255, .55);
  border-radius: inherit; pointer-events: none;
}
html[data-type="barber"] .g-frame::after { border-color: rgba(201, 151, 75, .45); }
.g:nth-child(odd) { margin-top: 0; }
.g:nth-child(even) { margin-top: 40px; }
.g picture, .g img { display: block; width: 100%; height: 100%; }
.g img { object-fit: cover; }
.g figcaption { font-size: 13px; color: var(--mute); margin-top: 10px; }

/* ---------- section break: a wide arched alcove ---------- */
.break { max-width: 1280px; margin: 8px auto 0; padding: 0 20px; }
.break-media {
  position: relative; overflow: hidden; aspect-ratio: 4 / 5;
  border-radius: 50% 50% 18px 18px / 90px 90px 18px 18px;
  background: linear-gradient(172deg, #7A4469 0%, #4A2742 55%, #2E1A2B 100%);
}
html[data-type="barber"] .break-media {
  border-radius: 4px;
  background: radial-gradient(40% 50% at 70% 40%, rgba(201, 151, 75, .25), transparent 70%), linear-gradient(172deg, #26302F, #141A1C);
}
.break-pic { position: absolute; inset: -8% 0; }
.break-pic picture, .break-pic img { display: block; width: 100%; height: 100%; }
.break-pic img { object-fit: cover; }
.break-copy {
  position: absolute; inset: auto 0 0; padding: 80px 24px 28px; color: #fff;
  background: linear-gradient(to bottom, transparent, rgba(30, 14, 28, .78));
}
html[data-type="barber"] .break-copy { background: linear-gradient(to bottom, transparent, rgba(8, 10, 11, .85)); }
.break-q { font: 700 clamp(30px, 7.4vw, 60px)/1.2 var(--display); max-width: 16ch; text-wrap: balance; }
.break-s { margin-top: 10px; font-size: 15px; opacity: .88; max-width: 46ch; }

/* ---------- visit ---------- */
.visit-grid { display: grid; gap: 34px; }
.addr { margin: 14px 0 20px; font-size: 17px; max-width: 40ch; }
.pay { margin-top: 32px; }
.pay h3, .hours-card h3 { font-size: 22px; margin-bottom: 8px; }
.pay p { color: var(--mute); font-size: 15px; max-width: 50ch; }
.pay-list { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pay-list li { padding: 6px 14px; border: 1px solid var(--rule); border-radius: 999px; font-size: 14px; background: var(--paper); }
html[data-type="barber"] .pay-list li { border-radius: 4px; }
.hours-card { background: var(--paper); border: 1px solid var(--rule); border-radius: 24px; padding: 24px; }
html[data-type="barber"] .hours-card { border-radius: 4px; }
.hours { width: 100%; border-collapse: collapse; font-size: 15px; }
.hours th, .hours td { padding: 10px 0; border-bottom: 1px solid var(--rule); text-align: start; font-weight: 400; }
.hours td { text-align: end; direction: ltr; }
[dir="rtl"] .hours td { direction: rtl; text-align: left; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours tr.is-fri th, .hours tr.is-fri td { color: var(--accent); }
.hours tr.is-today th { font-weight: 600; }
.hours tr.is-today th::after { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-inline-start: 8px; vertical-align: middle; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--rule); padding: 30px 20px 90px; max-width: 1180px; margin: 0 auto; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.socials { display: flex; gap: 18px; }
.socials a { color: var(--mute); font-size: 14px; }
.foot-small { margin-top: 18px; }
.credit { font-size: 13px; color: var(--mute); }
.credit a { color: var(--mute); }
.motion-toggle { background: none; border: 0; padding: 6px 0; font-size: 13px; color: var(--mute); text-decoration: underline; text-underline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .motion-toggle { display: none; } }

/* ---------- dock ---------- */
.dock {
  position: fixed; inset-inline: 10px; bottom: 50px; z-index: 35;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 16px; border-radius: 999px; text-decoration: none;
  background: var(--ink); color: var(--bg); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .55);
}
[dir="rtl"] .dock { padding: 10px 16px 10px 10px; }
.dock[hidden] { display: none; }
.dock-info { display: flex; gap: 10px; font-size: 13px; flex-wrap: wrap; align-items: baseline; }
.dock-info strong { font-weight: 600; }
.dock-info span { opacity: .75; }
.dock-go { background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; white-space: nowrap; }
html[data-type="barber"] .dock { background: var(--ink); color: #17140F; border-radius: 6px; }
html[data-type="barber"] .dock-go { border-radius: 4px; background: #17140F; color: var(--ink); }
.is-embed .dock { bottom: 12px; }

/* ---------- preview sheet ---------- */
.sheet {
  border: 0; padding: 0; width: min(520px, calc(100vw - 20px)); max-height: calc(100vh - 40px);
  border-radius: 24px; background: var(--paper); color: var(--ink);
}
.sheet::backdrop { background: rgba(20, 10, 18, .55); backdrop-filter: blur(3px); }
.sheet-in { padding: 24px 20px 20px; display: grid; gap: 14px; }
.sheet h2 { font-size: 24px; }
.sheet-note { color: var(--mute); font-size: 14px; }
.wa-bubble {
  position: relative; background: #DCF8C6; color: #111B21; border-radius: 12px 12px 12px 2px;
  padding: 12px 14px 22px; max-height: 46vh; overflow: auto;
  background-image: none;
}
[dir="rtl"] .wa-bubble { border-radius: 12px 12px 2px 12px; }
.wa-bubble pre { margin: 0; white-space: pre-wrap; font: 400 14.5px/1.6 var(--body); }
.wa-time { position: absolute; bottom: 4px; inset-inline-end: 10px; font-size: 11px; color: #667781; }
.sheet-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.sheet-actions .btn { flex: 1 1 160px; }
html[data-type="barber"] .sheet { border-radius: 6px; }

/* ---------- larger screens ---------- */
@media (min-width: 640px) {
  .svc { grid-template-columns: auto 1fr auto auto; grid-template-areas: "name leader price btn"; }
  .leader { display: block; grid-area: leader; align-self: end; margin-bottom: 14px; border-bottom: 2px dotted color-mix(in srgb, var(--line) 60%, transparent); min-width: 30px; }
  .svc-name { display: flex; align-items: baseline; gap: 12px; }
  .toggle-label { display: inline; }
  .packages { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .team { grid-template-columns: repeat(4, 1fr); }
  .gallery { gap: 22px; }
  .break-media { aspect-ratio: 16 / 9; border-radius: 50% 50% 22px 22px / 140px 140px 22px 22px; }
  .break-copy { padding: 120px 48px 44px; }
  .fields { grid-template-columns: 1fr 1fr; }
  .field-wide { grid-column: 1 / -1; }
  .dock { inset-inline-start: auto; inset-inline-end: 20px; bottom: 20px; min-width: 420px; }
}
@media (min-width: 900px) {
  .nav { display: flex; }
  .site-head { padding: 14px 40px; }
  .hero { grid-template-columns: 1.1fr .9fr; align-items: center; padding: 56px 40px 90px; gap: 60px; }
  .mirror { width: min(100%, 440px); }
  .next-tag { inset-inline-start: -60px; bottom: 60px; }
  .sec { padding: 80px 40px; }
  .sec-head { grid-template-columns: 1fr 1fr; align-items: end; gap: 40px; margin-bottom: 36px; }
  .sec-packages { padding-top: 30px; }
  .book-grid { grid-template-columns: 1fr 360px; gap: 48px; }
  .book-side { position: sticky; top: 90px; }
  .visit-grid { grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: start; }
  .chip-bar { bottom: 16px; inset-inline-start: 16px; }
  .foot { padding: 40px 40px 70px; }
  .hero-title { font-size: clamp(52px, 5.6vw, 80px); }
  .gallery { grid-template-columns: repeat(4, 1fr); gap: 26px; align-items: start; }
  .g:nth-child(even) { margin-top: 90px; }
  .break { padding: 0 40px; }
  .break-media { aspect-ratio: 21 / 9; border-radius: 50% 50% 24px 24px / 190px 190px 24px 24px; }
  .break-copy { padding: 160px 72px 56px; }
}
/* Wide screens: a two-column printed list keeps each name close to its price */
@media (min-width: 1100px) {
  .price-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 72px; }
}

/* ======================================================================
   MOTION (only with html.motion = JS on, no reduced-motion, not switched off)
   ====================================================================== */
@keyframes mirrorIn { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes settle { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes sheen {
  0% { transform: translateX(-70%); opacity: 0; }
  18% { opacity: 1; }
  82% { opacity: 1; }
  100% { transform: translateX(70%); opacity: 0; }
}
@keyframes lineUp { from { transform: translate3d(var(--lx, 0), 110%, 0); } to { transform: none; } }
@keyframes riseIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes snapIn { from { opacity: 0; transform: translateY(14px) scale(.88); } to { opacity: 1; transform: none; } }
@keyframes showLate { to { visibility: visible; } }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes stamp { 0% { opacity: 0; transform: rotate(var(--rot)) scale(1.7); } 100% { opacity: .9; transform: rotate(var(--rot)) scale(1); } }
html[dir="rtl"] { --lx: 16px; }
html[dir="ltr"] { --lx: -16px; }

/* line-mask wrapper (words grouped into lines; Arabic is never split into letters) */
.ln { display: block; overflow: hidden; padding: .16em 0 .22em; margin: -.16em 0 -.22em; }
.ln-in { display: block; }

/* hero intro: pure CSS, starts at first paint, no library needed */
.motion .mirror-frame { animation: mirrorIn var(--d-5) var(--ease) .05s both; }
.motion .mirror-pic img { animation: settle calc(1700ms * var(--k)) var(--ease) .05s both; }
.motion .mirror-sheen { animation: sheen 1.6s var(--ease-inout) calc(900ms * var(--k)) both; }
.motion .hero-title { visibility: hidden; animation: showLate 0s 1.4s forwards; }
.motion .hero-title.is-split { visibility: visible; animation: none; }
.motion .hero-title.is-split .ln-in { animation: lineUp var(--d-4) var(--ease) both; animation-delay: calc(120ms + var(--i, 0) * 90ms); }
.motion .hero-lead { animation: riseIn var(--d-4) var(--ease) calc(420ms * var(--k)) both; }
.motion .hero-actions { animation: riseIn var(--d-4) var(--ease) calc(540ms * var(--k)) both; }
.motion .hero-hours { animation: riseIn var(--d-4) var(--ease) calc(640ms * var(--k)) both; }
.motion .next-tag { animation: snapIn 520ms var(--ease-snap) calc(1150ms * var(--k)) both; }

/* price list: dotted leaders draw in once the list is on screen, and again on each tab */
.leader { transform-origin: right center; }
html[dir="ltr"] .leader { transform-origin: left center; }
.st .price-list:not(.is-in) .leader { transform: scaleX(0); }
.motion .price-list.is-in .leader { animation: draw var(--d-4) var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms + 120ms); }
.motion .price-list.is-in .svc { animation: riseIn var(--d-3) var(--ease) both; animation-delay: calc(var(--i, 0) * 55ms); }

/* appointment card: each changed value slides up through its own mask; then the stamp */
.motion .tv.is-new .tv-in { animation: lineUp var(--d-3) var(--ease) both; }
.t-stamp { --rot: -9deg; }
html[dir="ltr"] .t-stamp { --rot: 9deg; }
.motion .t-stamp.is-new { animation: stamp 480ms var(--ease-snap) 120ms both; }

/* magnetic CTA inner layer */
.btn-magnet { transition: background .2s, color .2s; }
.btn-in { display: inline-flex; align-items: center; gap: 8px; pointer-events: none; }

/* switched off in the footer: hard stop */
html.no-motion *, html.no-motion *::before, html.no-motion *::after { animation: none !important; transition: none !important; }

/* images fade in when they arrive; a missing file leaves the coloured frame */
.img-fx .mirror-pic img, .img-fx .g img, .img-fx .break-pic img { opacity: 0; transition: opacity var(--d-3) var(--ease-out); }
.img-fx img.is-loaded { opacity: 1; }
.img-fx img.is-missing { visibility: hidden; }
