/* Demo salon. An appointment card: services as a priced list with durations, the booking card as the centerpiece. */
:root {
  --bg: #F6F1F3;
  --surface: #FFFFFF;
  --ink: #2A1A22;
  --muted: #6E5A64;
  --plum: #6B2F4E;
  --rose: #C9738F;
  --rose-strong: #A8506E;
  --line: #E6D9DF;
  --display: "El Messiri","Marcellus",serif;
  --body: "Tajawal",system-ui,sans-serif;
  --latin: "Marcellus",Georgia,serif;
  --page-width: 940px;
  --gutter: 16px;
  --focus: var(--rose);
}

@media (prefers-color-scheme:dark) {
  :root:not([data-theme="light"]) {
    --bg: #160E12;
    --surface: #21161C;
    --ink: #F3E9EE;
    --muted: #B39DA8;
    --plum: #E3A6C2;
    --rose: #E58BA9;
    --rose-strong: #A8506E;
    --line: #3A2830;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #160E12;
  --surface: #21161C;
  --ink: #F3E9EE;
  --muted: #B39DA8;
  --plum: #E3A6C2;
  --rose: #E58BA9;
  --rose-strong: #A8506E;
  --line: #3A2830;
  color-scheme: dark;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.65;
}

/* "this is a demo" strip, links back to Wajha */
.demo {
  display: block;
  text-decoration: none;
  background: var(--plum);
  color: var(--bg);
  text-align: center;
  font-size: .82rem;
  padding: 6px max(16px,env(safe-area-inset-right)) 6px max(16px,env(safe-area-inset-left));
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-block: 18px;
}

.brand {
  font-family: var(--display);
  font-size: 1.45rem;
  color: var(--plum);
  font-weight: 700;
}

html[lang=en] .brand {
  font-family: var(--latin);
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 1.15rem;
}

.lang {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 16px;
  min-height: 44px;
  font: inherit;
  font-size: .9rem;
  cursor: pointer;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: center;
  padding-block: 30px 40px;
}

@media (max-width:720px) {
  .hero {
    grid-template-columns: 1fr;
  }
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.1rem,6.5vw,3.6rem);
  line-height: 1.2;
  margin: 0 0 14px;
  text-wrap: balance;
}

html[lang=en] .hero h1 {
  font-family: var(--latin);
  font-weight: 400;
}

.hero p {
  margin: 0 0 20px;
  color: var(--muted);
  max-width: 46ch;
}

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 700;
  text-decoration: none;
  background: var(--plum);
  color: var(--bg);
}

/* booking card */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  min-width: 0;
}

.card h3 {
  margin: 0 0 4px;
  font-family: var(--display);
  color: var(--plum);
}

html[lang=en] .card h3 {
  font-family: var(--latin);
  font-weight: 400;
}

.slots {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 8px;
  margin-top: 12px;
}

.slot {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 4px;
  min-height: 44px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.slot[aria-pressed=true] {
  background: var(--rose-strong);
  border-color: var(--rose-strong);
  color: #fff;
}

.slot:disabled {
  opacity: .35;
  text-decoration: line-through;
  cursor: default;
}

.pick {
  margin-top: 14px;
  font-size: .92rem;
  color: var(--muted);
}

section {
  padding-block: 26px;
}

h2 {
  font-family: var(--display);
  font-size: 1.8rem;
  margin: 0 0 16px;
  color: var(--plum);
}

html[lang=en] h2 {
  font-family: var(--latin);
  font-weight: 400;
}

/* services */
.svc {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
  gap: 12px 36px;
}

.row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
}

.row b {
  font-weight: 700;
}

.row .t {
  grid-column: 1;
  color: var(--muted);
  font-size: .88rem;
}

.row .p {
  grid-row: 1/3;
  grid-column: 2;
  align-self: center;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--plum);
}

/* team */
.team {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
  gap: 12px;
}

.member {
  display: flex;
  gap: 12px;
  align-items: center;
}

.av {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--line);
  display: grid;
  place-items: center;
  font-family: var(--display);
  color: var(--plum);
  font-weight: 700;
  flex: none;
}

.member small {
  display: block;
  color: var(--muted);
}

.hours-line {
  margin: 0;
}

footer {
  padding-block: 34px 90px;
  color: var(--muted);
  font-size: .85rem;
}

footer a {
  color: inherit;
}

.wa {
  position: fixed;
  bottom: calc(16px + env(safe-area-inset-bottom));
  inset-inline-end: calc(16px + env(safe-area-inset-right));
  background: #1F7A4D;
  color: #fff;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0,0,0,.2);
}
