/* Demo café. Stair-stepped sections that climb like Amman's hillside steps; the menu as a price list. */
:root {
  --bg: #F3F2EE;
  --surface: #FFFFFF;
  --ink: #16231F;
  --muted: #5B6863;
  --pine: #1F4A43;
  --saffron: #C98F12;
  --saffron-text: #8F6408;
  --line: #D9DCD6;
  --display: "Reem Kufi","Bricolage Grotesque",system-ui,sans-serif;
  --body: "IBM Plex Sans Arabic","Bricolage Grotesque",system-ui,sans-serif;
  --latin: "Bricolage Grotesque",system-ui,sans-serif;
  --page-width: 980px;
  --gutter: 16px;
  --focus: var(--saffron);
}

@media (prefers-color-scheme:dark) {
  :root:not([data-theme="light"]) {
    --bg: #101816;
    --surface: #18231F;
    --ink: #ECEFEA;
    --muted: #9DAAA4;
    --pine: #7FC2B4;
    --saffron: #E8B341;
    --saffron-text: #E8B341;
    --line: #2A3833;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #101816;
  --surface: #18231F;
  --ink: #ECEFEA;
  --muted: #9DAAA4;
  --pine: #7FC2B4;
  --saffron: #E8B341;
    --saffron-text: #E8B341;
  --line: #2A3833;
  color-scheme: dark;
}

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

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

/* "this is a demo" strip, links back to Wajha */
.demo {
  display: block;
  text-decoration: none;
  background: var(--saffron);
  color: #1A1405;
  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-weight: 700;
  font-size: 1.35rem;
  color: var(--pine);
  letter-spacing: .01em;
}

html[lang=en] .brand {
  font-family: var(--latin);
  font-weight: 800;
}

.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 {
  padding-block: 36px 28px;
  display: grid;
  gap: 18px;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.2rem,7vw,4rem);
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}

html[lang=en] .hero h1 {
  font-family: var(--latin);
  font-weight: 800;
  letter-spacing: -.02em;
}

.hero h1 em {
  font-style: normal;
  color: var(--saffron-text);
}

.hero p {
  margin: 0;
  color: var(--muted);
  max-width: 52ch;
  font-size: 1.08rem;
}

.ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 12px;
  padding: 12px 20px;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--pine);
}

.btn.primary {
  background: var(--pine);
  color: var(--bg);
}

.btn.ghost {
  color: var(--pine);
}

/* the climbing steps */
.steps {
  display: flex;
  gap: 6px;
  align-items: flex-end;
  height: 46px;
  margin-top: 6px;
}

.steps span {
  flex: 1;
  background: var(--pine);
  opacity: .85;
  border-radius: 3px 3px 0 0;
}

.steps span:nth-child(1) {
  height: 20%;
}

.steps span:nth-child(2) {
  height: 40%;
}

.steps span:nth-child(3) {
  height: 60%;
}

.steps span:nth-child(4) {
  height: 80%;
}

.steps span:nth-child(5) {
  height: 100%;
}

@media (prefers-reduced-motion:no-preference) {
  .steps span {
    transform-origin: bottom;
    animation: rise .7s ease-out both;
  }
  .steps span:nth-child(2) {
    animation-delay: .08s;
  }
  .steps span:nth-child(3) {
    animation-delay: .16s;
  }
  .steps span:nth-child(4) {
    animation-delay: .24s;
  }
  .steps span:nth-child(5) {
    animation-delay: .32s;
  }
}

@keyframes rise {
  from {
    transform: scaleY(.3);
  }
  to {
    transform: scaleY(1);
  }
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(170px,1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  margin-block: 8px 40px;
}

.facts div {
  background: var(--surface);
  padding: 14px 16px;
}

.facts b {
  display: block;
  font-size: .78rem;
  letter-spacing: .06em;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
}

section {
  padding-block: 28px;
}

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

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

.sub {
  color: var(--muted);
  margin: 0 0 20px;
}

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

.menu h3 {
  font-size: 1rem;
  margin: 0 0 8px;
  color: var(--saffron-text);
  letter-spacing: .04em;
}

.item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-block: 7px;
  border-bottom: 1px dashed var(--line);
}

.item .n {
  min-width: 0;
}

.item .n small {
  display: block;
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.4;
}

.item .dots {
  flex: 1;
}

.item .p {
  font-family: var(--latin);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
}

/* visit */
.visit {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
}

.visit dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
}

.visit dt {
  color: var(--muted);
}

.visit dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.visit p {
  margin: 0 0 10px;
}

footer {
  padding-block: 34px;
  color: var(--muted);
  font-size: .85rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

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: 600;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
}
