/* Dr. Chef components: direction C "Retro Clinic".
   Rules for colour pairs (see tools/check-contrast.mjs):
   - Small text never sits on --orange; use --rust for small-text fills (price chips, small buttons).
   - Text on --turquoise uses --teal-900.
   - Orange fills carry only large text (19px+ bold). */

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 52px;
  padding: 0 var(--space-5);
  border: var(--border);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-hard);
  background: var(--white);
  color: var(--teal);
  font: var(--weight-black) 1.06rem/1 var(--font); /* 19px: counts as large text on orange */
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.btn:hover { color: var(--teal); background: var(--teal-50); }
.btn:active { transform: translate(calc(var(--shadow-x) * .75), 3px); box-shadow: var(--shadow-pressed); }
.btn--primary { background: var(--orange); color: var(--white); }
.btn--primary:hover { background: var(--rust); color: var(--white); }
.btn--dark { background: var(--teal); color: var(--white); }
.btn--dark:hover { background: var(--teal-900); color: var(--white); }
.btn--small { min-height: 40px; padding: 0 var(--space-4); font-size: var(--text-s); border-radius: var(--radius-s); }
.btn--small.btn--primary { background: var(--rust); }
.btn--block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; box-shadow: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border-soft);
}
.site-header__inner { display: flex; align-items: center; gap: var(--space-5); height: var(--header-h); }
.site-header__logo img { height: 58px; width: auto; }
.site-nav { display: flex; gap: var(--space-1); margin-inline-start: auto; }
.site-nav a {
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-s);
  color: var(--teal);
  text-decoration: none;
}
.site-nav a:hover { background: var(--aqua); color: var(--teal-900); }
.site-nav a[aria-current="page"] { background: var(--teal); color: var(--white); }
.menu-toggle { display: none; }

.lang-toggle {
  display: inline-flex;
  border: var(--border);
  border-radius: var(--radius-s);
  overflow: hidden;
}
.lang-toggle button {
  border: 0;
  background: var(--white);
  color: var(--teal);
  font-weight: var(--weight-black);
  font-size: var(--text-s);
  min-width: 44px;
  min-height: 44px;
  padding: 0 var(--space-3);
}
.lang-toggle button[aria-pressed="true"] { background: var(--teal); color: var(--white); }

@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .site-header__inner { justify-content: space-between; gap: var(--space-3); }
  .site-header__logo img { height: 48px; }
  .site-header__logo { margin-inline-end: auto; }
  .menu-toggle {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: var(--border);
    border-radius: var(--radius-s);
    background: var(--white);
  }
  .menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
    display: block; width: 18px; height: 3px; border-radius: 2px; background: var(--teal); position: relative; content: '';
  }
  .menu-toggle span::before { position: absolute; top: -6px; }
  .menu-toggle span::after { position: absolute; top: 6px; }
  .site-nav {
    display: none;
    position: absolute;
    inset-inline: var(--gutter);
    top: calc(var(--header-h) - 4px);
    flex-direction: column;
    gap: var(--space-1);
    padding: var(--space-3);
    background: var(--white);
    border: var(--border);
    border-radius: var(--radius-m);
    box-shadow: var(--shadow-hard);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: var(--space-3) var(--space-4); }
}

/* ---------- Mobile action bar ---------- */
.action-bar { display: none; }
@media (max-width: 960px) {
  .action-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2);
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: var(--z-action-bar);
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: var(--white);
    border-top: var(--border);
  }
  .action-bar a {
    display: grid;
    place-items: center;
    min-height: 50px;
    border: var(--border);
    border-radius: var(--radius-s);
    color: var(--teal);
    font-size: 1.06rem;
    font-weight: var(--weight-black);
    text-decoration: none;
  }
  .action-bar a:first-child { background: var(--orange); color: var(--white); }
}

/* ---------- Footer ---------- */
.pattern-band {
  height: 84px;
  background: var(--white) url('/assets/img/brand/logo-480.png') repeat-x center / auto 64px;
  border-block: var(--border);
}
.site-footer { background: var(--teal); color: var(--white); padding-block: var(--space-7) var(--space-8); }
.site-footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-6); }
.site-footer h2 { font-size: var(--text-l); margin-bottom: var(--space-3); }
.site-footer a { color: var(--white); font-weight: var(--weight-medium); }
.site-footer a:hover { color: var(--aqua); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; }
.site-footer ul a, .section-head a, .map-card__bar a { display: inline-flex; align-items: center; min-height: 44px; }   /* 44 px tap targets */
.site-footer__legal { margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid rgba(255, 255, 255, .25); font-size: var(--text-s); color: var(--teal-100); }
@media (max-width: 760px) {
  .pattern-band { height: 64px; background-size: auto 48px; }
  .site-footer__inner { grid-template-columns: 1fr; }
}

/* ---------- Section head ---------- */
.section-head { display: flex; align-items: end; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-6); }
.section-head h2 { margin: 0; }
.section-head p { margin: var(--space-1) 0 0; color: var(--color-text-muted); }
@media (max-width: 760px) { .section-head { flex-direction: column; align-items: start; } }

/* ---------- Status pill & badges ---------- */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 2px var(--space-4);
  border: var(--border);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--teal);
  font-weight: var(--weight-black);
}
.status-pill::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); }
.status-pill--closed::before { background: var(--teal-300); }

.badge {
  display: inline-block;
  padding: 0 var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--teal);
  color: var(--white);
  font-size: var(--text-xs);
  font-weight: var(--weight-black);
  line-height: 1.9;
  vertical-align: middle;
}
.badge--soft { background: var(--aqua); color: var(--teal-900); }
.badge--muted { background: var(--teal-100); color: var(--teal-600); }

.price-chip {
  display: inline-block;
  padding: 0 var(--space-3);
  border-radius: var(--radius-s);
  background: var(--rust);
  color: var(--white);
  font-weight: var(--weight-black);
  white-space: nowrap;
}

/* ---------- Stickers ---------- */
.sticker {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border: var(--border);
  border-radius: 50%;
  box-shadow: var(--shadow-hard);
  background: var(--white);
  color: var(--teal);
  text-align: center;
  font-weight: var(--weight-black);
  font-size: var(--text-s);
  line-height: 1.1;
  rotate: -8deg;
}
.sticker b { display: block; font-size: 1.75rem; }
.sticker--accent { background: var(--rust); color: var(--white); rotate: 9deg; }
.sticker--soft { background: var(--aqua); color: var(--teal-900); rotate: 6deg; }

/* ---------- Panels ---------- */
.panel {
  background: var(--color-surface);
  border: var(--border);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-hard);
  padding: var(--space-5);
}
.panel--soft { background: var(--aqua); }
.panel--big { border-radius: var(--radius-xl); box-shadow: var(--shadow-hard-l); padding: var(--space-7); }
@media (max-width: 760px) { .panel--big { border-radius: var(--radius-l); padding: var(--space-5); } }

/* ---------- Hero block ---------- */
.hero-block {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  min-height: 540px;
  background: var(--turquoise);
  color: var(--color-text-on-turquoise);
  border: var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-hard-l);
  overflow: hidden;
}
.hero-block__copy { display: flex; flex-direction: column; justify-content: center; align-items: start; gap: var(--space-4); padding: var(--space-8) var(--space-7); }
.hero-block__title {
  margin: 0;
  font-size: var(--text-display);
  line-height: var(--leading-tight);
  color: var(--white);
  -webkit-text-stroke: 0.06em var(--teal);
  paint-order: stroke fill;
  text-shadow: var(--shadow-x) 4px 0 var(--teal);
}
.hero-block__lede { font-size: var(--text-l); max-width: 34ch; margin: 0; color: var(--teal-900); }
.hero-block__media { position: relative; min-height: 320px; }
.hero-block__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero-block__media .sticker { position: absolute; }
@media (max-width: 960px) {
  .hero-block { grid-template-columns: 1fr; min-height: 0; border-radius: var(--radius-l); }
  .hero-block__media { order: -1; aspect-ratio: 1; }
  .hero-block__copy { padding: var(--space-5) var(--space-5) var(--space-6); }
}

/* ---------- Menu tiles ---------- */
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--space-5); }
.menu-tile {
  display: flex;
  flex-direction: column;
  background: var(--tile-bg, var(--aqua));
  border: var(--border);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-hard);
  overflow: hidden;
}
.menu-tile__media { position: relative; }
.menu-tile__media img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.menu-tile__media .badge { position: absolute; inset-block-start: var(--space-3); inset-inline-start: var(--space-3); }
.menu-tile__body { display: flex; flex-direction: column; gap: var(--space-1); flex: 1; padding: var(--space-3) var(--space-4) var(--space-4); background: var(--white); border-top: var(--border); }
.menu-tile__top { display: flex; justify-content: space-between; align-items: start; gap: var(--space-2); }
.menu-tile__name { margin: 0; font-size: var(--text-m); line-height: 1.3; }
.menu-tile__desc { margin: 0; font-size: var(--text-s); line-height: 1.5; color: var(--color-text-muted); }
.menu-tile__placeholder {
  aspect-ratio: 1;
  background: var(--aqua) url('/assets/img/brand/logo-480.png') no-repeat center / 46%;
}
.menu-tile--wide { grid-column: span 2; }
.menu-tile--wide .menu-tile__media img { aspect-ratio: 2 / 1; }
.menu-tile--unavailable { filter: grayscale(.85); opacity: .7; }
@media (max-width: 560px) {
  .menu-grid { grid-template-columns: 1fr 1fr; gap: var(--space-3); }
  .menu-tile { border-radius: var(--radius-m); }
  .menu-tile__top { flex-direction: column; }
  .menu-tile__desc { display: none; }
}

/* ---------- Tabs ---------- */
.tabs {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  padding: var(--space-2) 2px var(--space-3);
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs--sticky { position: sticky; top: var(--header-h); z-index: calc(var(--z-header) - 1); background: var(--white); }
.tab {
  flex: none;
  min-height: 44px;
  padding: 0 var(--space-4);
  border: var(--border);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--teal);
  font-weight: var(--weight-black);
}
.tab:hover { background: var(--teal-50); }
.tab[aria-selected="true"], .tab[aria-current="true"] { background: var(--teal); color: var(--white); }
a.tab { display: inline-flex; align-items: center; text-decoration: none; }

/* ---------- Hours & map ---------- */
.hours-grid { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: var(--space-5); }
.hour-card { border: var(--border); border-radius: var(--radius-l); box-shadow: var(--shadow-hard); padding: var(--space-5); background: var(--aqua); color: var(--teal-900); }
.hour-card--kebab { background: var(--turquoise); }
.hour-card h3 { margin: 0; font-size: var(--text-xl); }
.hour-card__time { font-size: var(--text-2xl); font-weight: var(--weight-black); line-height: 1.2; margin: var(--space-2) 0; }
.hour-card[aria-current="true"] { outline: 4px dashed var(--teal); outline-offset: 6px; }
.map-card { display: grid; grid-template-rows: 1fr auto; min-height: 260px; border: var(--border); border-radius: var(--radius-l); box-shadow: var(--shadow-hard); overflow: hidden; }
.map-card iframe { width: 100%; height: 100%; min-height: 200px; border: 0; }
.map-card__bar { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-top: var(--border); background: var(--white); font-weight: var(--weight-bold); }
@media (max-width: 960px) { .hours-grid { grid-template-columns: 1fr; } }

/* ---------- Client card (loyalty) ---------- */
.client-card {
  position: relative;
  max-width: 420px;
  padding: var(--space-5);
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-hard);
}
.client-card::before, .client-card::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 28px; height: 28px;
  border: var(--border);
  border-radius: 50%;
  background: var(--notch-bg, var(--aqua));
  transform: translateY(-50%);
}
.client-card::before { inset-inline-start: -17px; }
.client-card::after { inset-inline-end: -17px; }
.client-card__top { display: flex; justify-content: space-between; align-items: center; padding-bottom: var(--space-3); margin-bottom: var(--space-3); border-bottom: var(--border-w) dashed var(--teal); }
.client-card__top img { height: 54px; width: auto; }
.client-card__body { display: grid; grid-template-columns: 1fr auto; gap: var(--space-4); align-items: center; }
.client-card__name { font-size: var(--text-xl); font-weight: var(--weight-black); line-height: 1.2; }
.client-card__level { color: var(--rust); font-weight: var(--weight-black); }
.client-card__qr { width: 104px; height: 104px; padding: var(--space-2); border: var(--border); border-radius: var(--radius-s); background: var(--white); }
.client-card__qr img { width: 100%; height: 100%; image-rendering: pixelated; }
.client-card--honorary { background: var(--orange-50); border-color: var(--orange); box-shadow: var(--shadow-x) 4px 0 var(--orange); }
.client-card--honorary .client-card__level { color: var(--orange); }

/* Stamp card ("الوصفة"): one slot per stamp; the free starting stamps are orange, earned ones teal */
.stamp-card { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-2); margin: var(--space-3) 0; max-width: 360px; }
.stamp {
  display: grid; place-items: center;
  aspect-ratio: 1;
  border: var(--border-w) dashed var(--teal-300);
  border-radius: 50%;
  color: var(--teal-600);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  line-height: 1.1;
  text-align: center;
  background: var(--white);
}
.stamp--on { border-style: solid; border-color: var(--teal); background: var(--teal); color: var(--white); font-size: var(--text-l); }
.stamp--gift { border-style: solid; border-color: var(--orange); background: var(--orange); color: var(--white); }
.stamp:last-child:not(.stamp--on):not(.stamp--gift) { border-color: var(--orange); font-size: var(--text-l); }
@media (prefers-reduced-motion: no-preference) {
  .stamp--new { animation: stamp-in 420ms var(--ease) both; }
  @keyframes stamp-in { from { transform: scale(1.6) rotate(-12deg); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* Wallet: rewards waiting to be collected */
.wallet { display: grid; gap: var(--space-2); margin: var(--space-2) 0; padding: 0; list-style: none; }
.wallet__item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-3); padding: var(--space-3); border: var(--border); border-radius: var(--radius-m); background: var(--aqua); }
.wallet__item small { display: block; color: var(--teal-600); }
.wallet__item select { width: auto; min-width: 160px; }
.wallet__option { font-weight: var(--weight-bold); }
.activity { display: grid; gap: var(--space-1); margin: var(--space-2) 0; padding: 0; list-style: none; font-size: var(--text-s); }
.activity li { display: grid; grid-template-columns: 1fr auto auto; gap: var(--space-3); padding-bottom: var(--space-1); border-bottom: 1px solid var(--teal-100); }
.activity small { color: var(--teal-600); }

/* ---------- Review bubbles ---------- */
.bubbles { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); margin: 0; padding: 0; list-style: none; }
.bubble { position: relative; margin-bottom: var(--space-5); padding: var(--space-4) var(--space-5); background: var(--white); border: var(--border); border-radius: var(--radius-l); box-shadow: var(--shadow-hard); }
.bubble::after {
  content: '';
  position: absolute;
  bottom: -19px;
  inset-inline-start: 36px;
  width: 30px; height: 30px;
  background: var(--white);
  border-inline-end: var(--border);
  border-bottom: var(--border);
  transform: skewX(-25deg) rotate(45deg);
}
.bubble blockquote { margin: 0 0 var(--space-2); font-size: var(--text-l); font-weight: var(--weight-bold); line-height: 1.45; }
.bubble cite { font-style: normal; color: var(--rust); font-weight: var(--weight-black); }
@media (max-width: 960px) { .bubbles { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.field { display: grid; gap: var(--space-1); margin-bottom: var(--space-4); }
.field__label { font-weight: var(--weight-black); }
.field__hint { font-size: var(--text-s); color: var(--color-text-muted); }
.field__error { display: none; font-size: var(--text-s); font-weight: var(--weight-bold); color: var(--color-error); }
.input {
  width: 100%;
  min-height: 52px;
  padding: var(--space-2) var(--space-4);
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius-s);
  color: var(--teal-900);
}
textarea.input { min-height: 120px; resize: vertical; }
.input::placeholder { color: var(--teal-600); opacity: 1; }
.input:focus-visible { outline-offset: 1px; box-shadow: var(--shadow-hard); }
.input[aria-invalid="true"] { border-color: var(--rust); background: var(--orange-50); }
.field:has(.input[aria-invalid="true"]) .field__error { display: block; }
.input[type="tel"], .input[type="email"] { direction: ltr; text-align: start; }
[dir="rtl"] .input[type="tel"], [dir="rtl"] .input[type="email"] { text-align: right; }
.checkbox { display: flex; align-items: start; gap: var(--space-3); }
.checkbox input { width: 22px; height: 22px; margin-top: 4px; accent-color: var(--teal); flex: none; }

/* ---------- Alerts, toasts, modal ---------- */
.alert { display: flex; gap: var(--space-3); padding: var(--space-4); border: var(--border); border-radius: var(--radius-m); background: var(--teal-50); }
.alert--success { background: var(--aqua); }
.alert--error { background: var(--orange-50); border-color: var(--rust); color: var(--teal-900); }
.alert strong { display: block; }

.toast-region { position: fixed; inset-inline: 0; bottom: calc(var(--action-bar-h) + var(--space-4)); z-index: var(--z-toast); display: grid; justify-items: center; gap: var(--space-2); pointer-events: none; }
@media (min-width: 961px) { .toast-region { bottom: var(--space-6); } }
.toast {
  pointer-events: auto;
  max-width: min(480px, 100% - 32px);
  padding: var(--space-3) var(--space-5);
  background: var(--teal);
  color: var(--white);
  border: var(--border);
  border-color: var(--teal-900);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-hard);
  font-weight: var(--weight-bold);
  animation: toast-in var(--dur-med) var(--ease);
}
.toast--error { background: var(--rust); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }

.modal {
  width: min(520px, 100% - 32px);
  padding: var(--space-6);
  border: var(--border);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-hard-l);
  color: var(--teal);
}
.modal::backdrop { background: rgba(12, 58, 64, .55); }
.modal__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: end; margin-top: var(--space-5); }

/* ---------- Loading ---------- */
.skeleton {
  border-radius: var(--radius-s);
  background: linear-gradient(90deg, var(--teal-50) 25%, var(--teal-100) 50%, var(--teal-50) 75%) 0 0 / 200% 100%;
  animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Account pages ---------- */
.auth {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  gap: var(--space-7);
  align-items: center;
  padding-block: var(--space-7) var(--space-8);
}
.auth__form { width: 100%; max-width: 480px; justify-self: center; }
.auth__form h1 { font-size: var(--text-2xl); margin-bottom: var(--space-2); }
.auth__aside {
  position: relative;
  min-height: 460px;
  border: var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-hard-l);
  background: var(--turquoise) url('/assets/img/food/dr-chef-kebab-super.jpg') center 35% / cover no-repeat;
  overflow: hidden;
}
.auth__aside .client-card { position: absolute; inset-inline: var(--space-6); bottom: var(--space-6); --notch-bg: var(--turquoise); }
.auth__switch { margin-top: var(--space-5); text-align: center; }
@media (max-width: 960px) {
  .auth { grid-template-columns: 1fr; padding-block: var(--space-5) var(--space-7); }
  .auth__aside { display: none; }
}

/* Segmented control (e.g. email / mobile) */
.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: var(--border); border-radius: var(--radius-s); overflow: hidden; margin-bottom: var(--space-4); }
.segmented button { min-height: 44px; border: 0; background: var(--white); color: var(--teal); font-weight: var(--weight-black); }
.segmented button + button { border-inline-start: var(--border); }
.segmented button[aria-pressed="true"] { background: var(--teal); color: var(--white); }

/* Phone = country select + number; password = input + show/hide button */
.phone-field { display: grid; grid-template-columns: minmax(118px, auto) 1fr; gap: var(--space-2); direction: ltr; }
.password-field { position: relative; }
.password-field .input { padding-inline-end: 64px; }
.password-field__toggle {
  position: absolute;
  inset-block: 6px;
  inset-inline-end: 6px;
  min-width: 52px;
  border: 0;
  border-radius: var(--radius-s);
  background: var(--teal-50);
  color: var(--teal);
  font-size: var(--text-xs);
  font-weight: var(--weight-black);
}

/* Star rating built from radio buttons */
.stars-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; border: 0; padding: 0; margin: 0; }
[dir="rtl"] .stars-input { flex-direction: row-reverse; }
.stars-input input { position: absolute; opacity: 0; pointer-events: none; }
.stars-input label { font-size: 2rem; line-height: 1; color: var(--teal-100); cursor: pointer; padding: 2px; }
.stars-input input:checked ~ label,
.stars-input label:hover,
.stars-input label:hover ~ label { color: var(--orange); }
.stars-input input:focus-visible + label { outline: 3px solid var(--color-focus); border-radius: 6px; }

/* Progress bar */
.progress { height: 18px; border: var(--border); border-radius: var(--radius-pill); background: var(--white); overflow: hidden; }
.progress__bar { height: 100%; background: var(--orange); border-radius: var(--radius-pill); transition: width var(--dur-med) var(--ease); }

/* ---------- Hero slider (home): featured items, one at a time ---------- */
.hero-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transform: scale(1.08) rotate(-1.5deg); transition: opacity 700ms var(--ease), transform 900ms var(--ease); }
.hero-slide.is-active { opacity: 1; transform: none; }
.hero-slide.is-leaving { opacity: 0; transform: scale(.96) rotate(1deg); }
.hero-slider__bar {
  position: absolute;
  inset-inline: var(--space-4);
  inset-block-end: var(--space-4);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-1) var(--space-2) var(--space-1) var(--space-4);
  padding-inline: var(--space-4) var(--space-2);
  background: var(--white);
  color: var(--teal);
  border: var(--border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-hard);
}
.hero-slider__name { font-size: var(--text-s); font-weight: var(--weight-black); line-height: 1.2; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-slider__controls { display: flex; align-items: center; flex-shrink: 0; }
.hero-slider__dot, .hero-slider__pause {
  display: grid;
  place-items: center;
  width: 24px;
  height: 36px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--teal);
  cursor: pointer;
}
.hero-slider__dot::before { content: ''; width: 10px; height: 10px; border: 2px solid var(--teal); border-radius: 50%; transition: background var(--dur-med) var(--ease), width var(--dur-med) var(--ease); }
.hero-slider__dot[aria-current="true"]::before { width: 20px; border-radius: var(--radius-pill); background: var(--orange); border-color: var(--teal); }
.hero-slider__pause { width: 32px; font-weight: var(--weight-black); font-size: var(--text-s); }
.hero-slider__pause svg { width: 16px; height: 16px; fill: currentColor; }

/* ---------- Motion: the retro bits that make the pages feel alive. All of it switches off with prefers-reduced-motion (base.css) ---------- */
@keyframes sticker-slap { 0% { transform: scale(.4) rotate(-25deg); opacity: 0; } 70% { transform: scale(1.12) rotate(4deg); opacity: 1; } 100% { transform: none; } }
@keyframes sticker-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@keyframes pop-in { 0% { transform: translateY(18px) scale(.97); } 100% { transform: none; } }   /* position only: the hero text is never invisible */
@keyframes pulse-dot { 0% { box-shadow: 0 0 0 0 rgba(208, 93, 40, .55); } 80%, 100% { box-shadow: 0 0 0 9px rgba(208, 93, 40, 0); } }
@keyframes band-scroll { to { background-position-x: -680px; } }
@keyframes wiggle { 0%, 100% { rotate: 0deg; } 25% { rotate: -6deg; } 75% { rotate: 6deg; } }

.hero-block__media .sticker { animation: sticker-slap 520ms var(--ease) both, sticker-float 4s ease-in-out 600ms infinite; }
.hero-block__media .sticker + .sticker { animation-delay: 90ms, 1.4s; }
.hero-block__media .sticker + .sticker + .sticker { animation-delay: 180ms, 2.1s; }
.hero-block__copy > * { animation: pop-in 600ms var(--ease) both; }
.hero-block__copy > :nth-child(2) { animation-delay: 80ms; }
.hero-block__copy > :nth-child(3) { animation-delay: 160ms; }
.hero-block__copy > :nth-child(4) { animation-delay: 240ms; }
.status-pill:not(.status-pill--closed)::before { animation: pulse-dot 1.8s ease-out infinite; }
.pattern-band { background-size: 68px 64px; animation: band-scroll 40s linear infinite; }
[dir="rtl"] .pattern-band { animation-direction: reverse; }

.btn { transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); }
.btn:hover { transform: translate(calc(var(--shadow-x) * -.25), -1px); box-shadow: calc(var(--shadow-x) * 1.5) 6px 0 var(--teal); }
.btn:active { transform: translate(calc(var(--shadow-x) * .75), 3px); box-shadow: var(--shadow-pressed); }   /* after :hover so pressing wins */
.menu-tile { transition: transform var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease); }
.menu-tile:hover { transform: translateY(-4px) rotate(-.6deg); box-shadow: var(--shadow-hard-l); }
[dir="rtl"] .menu-tile:hover { transform: translateY(-4px) rotate(.6deg); }
.menu-tile__media img { transition: transform 600ms var(--ease); }
.menu-tile:hover .menu-tile__media img { transform: scale(1.06); }
.client-card { transition: transform 400ms var(--ease); }
.client-card:hover { transform: rotate(-1.5deg) translateY(-4px); }
.site-header__logo:hover img { animation: wiggle 500ms var(--ease); }

/* Scroll reveal: layout.js adds .reveal-ready to <html>, then .is-visible as each block scrolls into view.
   Without JavaScript nothing is hidden.
   Uses `translate` (not `transform`) so hover effects that use `transform` still work on revealed blocks. */
.reveal-ready [data-reveal] {
  opacity: 0;
  translate: 0 26px;
  transition: opacity 600ms var(--ease) var(--reveal-delay, 0ms), translate 700ms var(--ease) var(--reveal-delay, 0ms),
              transform var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease);
}
.reveal-ready [data-reveal].is-visible { opacity: 1; translate: 0 0; }
