/* =========================================================
   SALON APPOINTMENTS · Brazilian Hair (2026-11-14)
   The /book page (book.html, js/book.js) and Staff > Bookings (js/staff-bookings.js). Same family as the shop:
   white page, black buttons, the gold accent only for small things, Cormorant headings, Jost words.
   ========================================================= */

/* ---------- the film at the top ---------- */
.bk-hero { position: relative; overflow: hidden; background: #1a1512; color: #fff; min-height: min(78svh, 620px); display: flex; align-items: flex-end; }
.bk-film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.bk-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,14,12,.82) 0%, rgba(20,14,12,.35) 45%, rgba(20,14,12,.05) 75%); }
.bk-hero-copy { position: relative; z-index: 1; padding-top: 40px; padding-bottom: 28px; }
.bk-kicker { margin: 0 0 8px; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.78); }
.bk-hero h1 { font-size: clamp(44px, 12vw, 76px); line-height: .98; color: #fff; }
.bk-hero h1 .line2 { display: block; font-style: italic; padding-inline-start: .6em; }
.bk-hero h1::after { content: ""; display: block; width: 56px; height: 2px; background: var(--gilt); margin-top: 14px; }
.bk-hero p:last-child { max-width: 34em; margin: 14px 0 0; color: rgba(255,255,255,.88); font-size: 15.5px; }
html[lang="ar"] .bk-kicker { letter-spacing: 0; }

/* ---------- the four steps ---------- */
.bk { padding-top: 8px; padding-bottom: 40px; max-width: 760px; }
.bk-step { padding: 26px 0 8px; border-bottom: 1px solid var(--mist); }
.bk-step:last-of-type { border-bottom: 0; }
.bk-step h2 { display: flex; align-items: center; gap: 12px; font-size: 30px; margin-bottom: 16px; }
.bk-n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff;
  font-family: var(--ui); font-size: 14px; font-weight: 500; }
.bk-hint { margin: 0 0 12px; }
.bk-paused { margin: 20px 0 0; padding: 14px 16px; border-radius: var(--radius); background: #FBF3EA; border: 1px solid #EAD7C0; color: #6B4A22; font-weight: 500; }

/* 1 branch */
.bk-branches { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.bk-branch { display: grid; gap: 4px; justify-items: start; text-align: start; padding: 16px; border-radius: var(--tile, 18px); border: 1px solid var(--mist);
  background: #fff; color: var(--ink); font: inherit; cursor: pointer; position: relative; min-height: 96px; }
.bk-branch svg { width: 22px; height: 22px; fill: none; stroke: var(--gilt); stroke-width: 1.6; margin-bottom: 4px; }
.bk-branch b { font-family: var(--display); font-size: 22px; font-weight: 500; line-height: 1.1; }
.bk-branch span { font-size: 13px; color: var(--muted); }
.bk-branch[aria-checked="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.bk-branch[aria-checked="true"]::after { content: ""; position: absolute; top: 14px; inset-inline-end: 14px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--ink) 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 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* 2 service: the group tiles (one photo each) and the service rows (no photos) */
.bk-groups { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 12px; margin: 0 calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; scroll-snap-type: x proximity; }
.bk-groups::-webkit-scrollbar { display: none; }
.bk-group { flex: none; width: 112px; display: grid; gap: 7px; padding: 0; border: 0; background: none; font: inherit; color: var(--ink); cursor: pointer; text-align: start; scroll-snap-align: start; }
.bk-gimg { display: block; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: var(--card); outline: 1px solid transparent; outline-offset: 2px; transition: outline-color .15s; }
.bk-gimg img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.bk-group b { font-size: 13.5px; font-weight: 500; line-height: 1.25; }
.bk-group[aria-selected="true"] .bk-gimg { outline: 2px solid var(--ink); }
.bk-group[aria-selected="false"] .bk-gimg img { filter: saturate(.75); opacity: .82; }
.bk-services { display: grid; gap: 10px; margin-top: 4px; }
.bk-service { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; align-items: center; text-align: start; padding: 14px 16px; padding-inline-end: 44px;
  border-radius: 14px; border: 1px solid var(--mist); background: #fff; color: var(--ink); font: inherit; cursor: pointer; position: relative; }
.bk-sv-main { display: grid; gap: 3px; }
.bk-sv-main b { font-size: 16px; font-weight: 500; }
.bk-sv-side { display: grid; gap: 3px; justify-items: end; text-align: end; white-space: nowrap; }
.bk-sv-side b { font-size: 14.5px; font-weight: 600; }
.bk-tick { position: absolute; inset-inline-end: 14px; top: 50%; translate: 0 -50%; width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(17,17,17,.3); }
.bk-service[aria-checked="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.bk-service[aria-checked="true"] .bk-tick { border: 0; background: var(--ink) 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 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; }
@media (max-width: 420px) {
  .bk-service { grid-template-columns: 1fr; }
  .bk-sv-side { justify-items: start; text-align: start; grid-auto-flow: column; justify-content: start; gap: 10px; align-items: baseline; }
}

/* 3 day and time (the checkout's chips) */
.bk-days { display: flex; gap: 8px; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter) 12px; scrollbar-width: none; }
.bk-days::-webkit-scrollbar { display: none; }
.bk-day { min-width: 76px; padding: 10px 12px; }
.bk-day b { font-weight: 500; }
.bk-day em { font-style: normal; font-size: 11.5px; color: var(--gilt); margin-top: 2px; }
.bk-day[aria-checked="true"] em { color: #E9C99E; }
.bk-day:disabled { opacity: .45; cursor: default; background: #F6F6F7; }
.bk-day:disabled em { color: #6B7078; }
.bk-tpart { margin-top: 10px; }
.bk-tpart h3 { font-family: var(--ui); font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; margin: 0 0 8px; }
html[lang="ar"] .bk-tpart h3 { letter-spacing: 0; }
.bk-tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.bk-time { width: 100%; justify-items: center; }

/* 4 details and the summary */
#bkForm { max-width: 520px; }
html[lang="ar"] #bkPhone { direction: ltr; text-align: right; }
.bk-summary { display: grid; gap: 0; background: var(--card); border-radius: var(--radius); padding: 6px 16px; margin: 6px 0 14px; }
.bk-summary > p { margin: 10px 0; }
.bk-sum-row { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid rgba(17,17,17,.08); font-size: 14.5px; }
.bk-sum-row:last-child { border-bottom: 0; }
.bk-sum-row span { color: var(--muted); }
.bk-sum-row b { font-weight: 500; text-align: end; }
.bk-err { color: var(--warn); min-height: 1px; margin: 0 0 8px; font-size: 14px; }
.bk-err:empty { display: none; }
.bk-pay { text-align: center; margin: 10px 0 0; }

/* my appointments (kept on this phone) */
.bk-mine { margin-top: 20px; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--mist); background: #fff; }
.bk-mine h3 { font-size: 22px; margin-bottom: 6px; }
.bk-mine-row { display: grid; gap: 2px; padding: 8px 0; border-top: 1px solid var(--mist); }
.bk-mine-row:first-of-type { border-top: 0; }

/* the thank-you view */
.bk-done { max-width: 560px; padding-top: 40px; padding-bottom: 48px; display: grid; gap: 12px; text-align: center; }
.bk-done h1 { font-size: 38px; }
.bk-done .muted { margin: 0 0 6px; }
.bk-done-mark { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 6px; background: var(--ink); display: grid; place-items: center;
  animation: bkPop .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.bk-done-mark svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.bk-done-card { text-align: start; }
@keyframes bkPop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .bk-done-mark { animation: none; } }

/* the home page's booking band (index.html) */
.bk-band { margin: 8px 0 0; padding: 22px var(--gutter); border-radius: var(--tile, 18px); background: var(--ink); color: #fff; display: grid; gap: 10px; }
.bk-band h2 { color: #fff; font-size: 30px; }
.bk-band p { margin: 0; color: rgba(255,255,255,.8); font-size: 14.5px; }
.bk-band .btn { background: #fff; color: var(--ink); border-color: #fff; justify-self: start; }

@media (min-width: 900px) {
  .bk-hero { min-height: 560px; }
  .bk-groups { flex-wrap: wrap; overflow: visible; margin: 0; padding-inline: 0; }
  .bk-group { width: 128px; }
  .bk-group:hover .bk-gimg img { transform: scale(1.05); }
  .bk-branch:hover, .bk-service:hover { border-color: rgba(17,17,17,.45); }
}

/* =========================================================
   STAFF > BOOKINGS
   ========================================================= */
.sb-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 6px 0 14px; }
.sb-head h2 { font-size: 30px; }
.sb-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 14px; }
.sb-stat { background: #fff; border-radius: 16px; padding: 14px 16px; border-top: 3px solid var(--ink); }
.sb-stat small { display: block; color: var(--muted); font-size: 12.5px; }
.sb-stat b { font-size: 26px; font-weight: 600; }
.sb-days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 8px; scrollbar-width: thin; }
.sb-day { flex: none; display: grid; justify-items: center; gap: 2px; min-width: 72px; padding: 8px 10px; border-radius: 12px; border: 1px solid rgba(17,17,17,.15);
  background: #fff; color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
.sb-day b { font-size: 15px; }
.sb-day i { font-style: normal; font-size: 11.5px; color: var(--muted); }
.sb-day[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.sb-day[aria-pressed="true"] i { color: rgba(255,255,255,.75); }
.sb-day.has-new::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gilt); }
.sb-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.sb-filters select { width: auto; min-width: 150px; }
.sb-list { display: grid; gap: 10px; }
.sb-card { background: #fff; border-radius: 16px; padding: 14px 16px; display: grid; grid-template-columns: 86px 1fr; gap: 14px; align-items: start;
  border-inline-start: 4px solid var(--mist); }
.sb-card[data-status="new"] { border-inline-start-color: var(--gilt); }
.sb-card[data-status="confirmed"] { border-inline-start-color: var(--ink); }
.sb-card[data-status="done"] { border-inline-start-color: var(--ok); }
.sb-card[data-status="cancelled"], .sb-card[data-status="noshow"] { border-inline-start-color: var(--warn); opacity: .72; }
.sb-time b { display: block; font-size: 19px; font-weight: 600; }
.sb-time span { font-size: 12.5px; color: var(--muted); }
.sb-body { display: grid; gap: 4px; min-width: 0; }
.sb-body .sb-svc { font-weight: 600; font-size: 15.5px; }
.sb-meta { font-size: 13.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.sb-note { font-size: 13.5px; background: #F7F5F2; border-radius: 8px; padding: 6px 10px; margin-top: 2px; }
.sb-pill { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 99px; background: #F1ECE6; color: #6B4A22; }
.sb-pill[data-s="confirmed"] { background: #111; color: #fff; }
.sb-pill[data-s="done"] { background: #E3F1EA; color: var(--ok); }
.sb-pill[data-s="cancelled"], .sb-pill[data-s="noshow"] { background: #FBE9E1; color: var(--warn); }
.sb-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.sb-actions .btn { min-height: 34px; padding: 6px 12px; font-size: 13px; }
.sb-empty { background: #fff; border-radius: 16px; padding: 28px 16px; text-align: center; color: var(--muted); }
.sb-settings { background: #fff; border-radius: 16px; padding: 16px; margin-top: 18px; }
.sb-settings summary { cursor: pointer; font-weight: 600; font-size: 15.5px; }
.sb-hours { display: grid; gap: 8px; margin: 14px 0; }
.sb-hrow { display: grid; grid-template-columns: 110px auto 1fr; gap: 10px; align-items: center; font-size: 14px; }
.sb-hrow .sb-hsel { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.sb-hrow select { width: auto; min-height: 36px; padding: 4px 8px; }
.sb-hrow[data-closed="true"] .sb-hsel { opacity: .35; pointer-events: none; }
.sb-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 10px 0; }
.sb-grid2 label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 500; }
.sb-dates { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.sb-dates button { border: 1px solid var(--mist); background: #fff; border-radius: 99px; padding: 4px 10px; font: inherit; font-size: 12.5px; cursor: pointer; }
.sb-save-row { display: flex; gap: 10px; align-items: center; margin-top: 12px; }
@media (max-width: 560px) {
  .sb-card { grid-template-columns: 1fr; gap: 6px; }
  .sb-time b { display: inline; margin-inline-end: 8px; }
  .sb-hrow { grid-template-columns: 1fr auto; }
  .sb-hrow .sb-hsel { grid-column: 1 / -1; }
}

/* a section hidden with the hidden attribute stays hidden even with its own display rule */
.bk-hero[hidden], .bk[hidden], .bk-done[hidden], .bk-mine[hidden], .bk-paused[hidden], .bk-hint[hidden] { display: none; }
