/* Web booking pages: /s/<id> (shop.html), /b (b.html), /pay (pay.html). */
:root {
  --bg: #FBF3EA; --ink: #1B120C; --soft: #6b5a4c; --faint: #9a8877; --line: #e3d5c4; --card: #fff;
  --gold: #B4883C; --danger: #9b2c1f; --ok: #2f6b3a; --focus: #2b5fd9;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); line-height: 1.45;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 16px;
}
main { max-width: 560px; margin: 0 auto; padding: 16px 20px 40px; }
h1, h2 { font-family: Georgia, "Iowan Old Style", serif; font-weight: 700; line-height: 1.2; }
h1 { font-size: 28px; margin: 12px 0 6px; }
h2 { font-size: 20px; margin: 28px 0 10px; }
[tabindex="-1"]:focus { outline: none; }
p { margin: 6px 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.muted { color: var(--soft); }
.small { font-size: 14px; }
.center { text-align: center; padding: 40px 0; }
.cap::first-letter { text-transform: uppercase; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Focus is always visible for keyboard users. */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Buttons and links styled as buttons: 44px+ tap targets. */
.btn {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; padding: 12px 18px;
  border-radius: 14px; border: 1px solid transparent; font: inherit; font-weight: 700; font-size: 17px;
  text-decoration: none; cursor: pointer; margin: 10px 0; text-align: center;
}
.btn:disabled { opacity: .45; cursor: not-allowed; }
.primary { background: var(--ink); color: var(--bg); }
.secondary, .store { background: var(--card); color: var(--ink); border-color: var(--line); }
.danger { background: var(--danger); color: #fff; }
.btn.small { width: auto; min-height: 44px; margin: 0; padding: 8px 16px; font-size: 15px; background: var(--ink); color: var(--bg); }
.btn.link { width: auto; min-height: 44px; margin: 0; padding: 8px 0; background: none; color: var(--soft); font-weight: 600; font-size: 15px; }

/* Shop */
.hero { width: calc(100% + 40px); margin: -16px -20px 0; height: 200px; object-fit: cover; background: linear-gradient(135deg, #3a2a1e, #B4883C); }
.shop-head { margin-top: 8px; }
.rating { font-weight: 600; }
.bio { white-space: pre-line; }
.list { list-style: none; padding: 0; margin: 0; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.row.tight { padding: 8px 0; }
.row strong, .choice strong { display: block; }
.row .muted, .choice .muted { display: block; font-size: 14px; }
.grow { flex: 1; min-width: 0; }
.price { font-weight: 700; white-space: nowrap; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none; object-fit: cover; background: #ead9c4;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700;
}
.review { padding: 12px 0; border-bottom: 1px solid var(--line); }
.stars { color: var(--gold); letter-spacing: 2px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; margin: 14px 0; }
.notice { background: #fff8ee; }
.notice h2 { margin-top: 4px; }
.notice .app-links { margin-top: 12px; border-top: 0; padding-top: 0; }
.app-links { margin-top: 36px; padding-top: 8px; border-top: 1px solid var(--line); }
.stores { display: flex; gap: 10px; }
.stores .btn { flex: 1; }
.foot { margin-top: 28px; text-align: center; color: var(--faint); font-size: 14px; }
.foot a { display: inline-block; padding: 12px 4px; }

/* Steps */
.step-head h1 { margin-top: 4px; }
.choice {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 12px 14px; margin: 8px 0;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; font: inherit; color: inherit; text-align: left; cursor: pointer;
}
.days { display: flex; gap: 8px; overflow-x: auto; padding: 6px 2px 10px; scroll-snap-type: x proximity; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.day {
  flex: none; width: 64px; min-height: 76px; border-radius: 14px; border: 1px solid var(--line); background: var(--card);
  font: inherit; color: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; scroll-snap-align: start;
}
.day .wd, .day .mo { font-size: 13px; color: var(--soft); }
.day strong { font-size: 20px; }
.day.empty { opacity: .5; }
.day[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); opacity: 1; }
.day[aria-pressed="true"] .wd, .day[aria-pressed="true"] .mo { color: var(--bg); }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 10px; margin-top: 8px; }
.time {
  min-height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font: inherit; font-weight: 600;
  color: inherit; cursor: pointer;
}
.time[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.field { margin: 14px 0; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field input {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card);
  font: inherit; font-size: 17px; color: inherit;
}
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 14px; min-height: 1em; margin: 4px 0 0; }
.summary dt { font-size: 13px; color: var(--soft); margin-top: 6px; }
.summary dd { margin: 0; }
.when { font-weight: 700; font-size: 18px; }
.when::first-letter { text-transform: uppercase; }
.email-check p, .email-ok p { font-weight: 600; word-break: break-word; }
.actions { display: flex; gap: 10px; }
.actions .btn { flex: 1; }
.actions.stack { flex-direction: column; gap: 0; }
.email-ok { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.methods { border: 0; padding: 0; margin: 18px 0 6px; }
.methods legend { font-family: Georgia, serif; font-weight: 700; font-size: 20px; margin-bottom: 6px; padding: 0; }
.method {
  display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 14px; margin: 8px 0;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; cursor: pointer;
}
.method input { width: 22px; height: 22px; accent-color: var(--ink); flex: none; }
.method:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.method strong, .method .muted { display: block; }
.prices { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin: 12px 0; }
.prices dd { margin: 0; text-align: right; }
.prices .total { font-weight: 700; padding-top: 6px; border-top: 1px solid var(--line); }
.payment-element { margin: 16px 0; min-height: 120px; }
.captcha { margin: 12px 0; }
.msg { padding: 12px 14px; border-radius: 12px; margin: 12px 0; }
.msg.error { background: #fbe9e6; color: var(--danger); }
.msg.info { background: #eef5ee; color: var(--ok); }
.badge { display: inline-block; font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: 99px; background: #eef5ee; color: var(--ok); }
.badge.cancelled { background: #f1e8de; color: var(--soft); }
.badge.pending { background: #fff3dc; color: #8a5a00; }
.success { text-align: center; padding-top: 20px; }
.check {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto; background: var(--ok); color: #fff; font-size: 34px;
  display: flex; align-items: center; justify-content: center;
}
noscript .btn { margin: 10px 0; }

/* Language switcher (English / Norsk / اردو) and right-to-left layout for Urdu. Added with app branch feat/urdu-i18n. */
.foot .langs { display: block; }
.foot .langs > * { display: inline-block; padding: 12px 8px; }
.foot .langs [aria-current] { color: var(--ink, inherit); font-weight: 700; }
html[dir="rtl"] body { font-family: "Noto Naskh Arabic", "Segoe UI", Tahoma, Arial, sans-serif; line-height: 1.8; }
html[dir="rtl"] h1, html[dir="rtl"] h2 { font-family: "Noto Naskh Arabic", "Segoe UI", Tahoma, serif; line-height: 1.6; }
html[dir="rtl"] input[type="email"] { direction: ltr; text-align: right; }

/* Shop page as a mini website: photo hero with name + Book button. */
.hero-wrap { position: relative; width: calc(100% + 40px); margin: -16px -20px 0; }
.hero-wrap .hero { width: 100%; margin: 0; height: 340px; }
.hero-wrap::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0) 30%, rgba(0,0,0,.75)); pointer-events: none; }
.hero-text { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 1; color: #fff; }
.hero-text h1 { font-size: 34px; margin: 0 0 4px; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.hero-text p { margin: 0 0 12px; }
.btn.hero-book { background: var(--gold); color: #fff; margin: 0; max-width: 260px; }
@media (min-width: 600px) { .hero-wrap .hero { height: 420px; border-radius: 0 0 20px 20px; } }

/* App Store + Google Play badges (bottom app section). */
.store-badges { display: flex; gap: 10px; margin: 10px 0; }
.store-badge { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 6px 10px; background: #000; border-radius: 12px; color: #fff; text-decoration: none; font-weight: 700; font-size: 16px; line-height: 1.1; }
.store-badge small { display: block; font-size: 11px; font-weight: 500; }
.badge-icon svg { width: 22px; height: 22px; fill: #fff; display: block; }
