/* Bait Al Hail Café — demo template T-03 (RetainrWorks) */
:root {
  --paper: #f6efe3;
  --cream: #fcf9f3;
  --card: #fffdf8;
  --ink: #2b1a12;
  --ink-2: #5a4132;
  --muted: #6e5545;
  --terra: #9e3f1c;
  --terra-dark: #7f3015;
  --saffron: #d8962f;
  --saffron-soft: #f3dcae;
  --olive: #3f5a37;
  --espresso: #22140d;
  --line: #e4d6c2;
  --focus: #1d5c8f;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(43, 26, 18, .06), 0 10px 30px -12px rgba(43, 26, 18, .25);
  --display: "Fraunces", "El Messiri", Georgia, serif;
  --body: "Work Sans", "Noto Naskh Arabic", system-ui, sans-serif;
  --wrap: 1180px;
  color-scheme: light;
}
html[lang="ar"] {
  --display: "El Messiri", "Fraunces", serif;
  --body: "Noto Naskh Arabic", "Work Sans", system-ui, sans-serif;
}

/* language visibility (shared convention) */
html[lang="en"] [lang="ar"]:not(html):not([data-keep]):not([data-lang-toggle]),
html[lang="ar"] [lang="en"]:not(html):not([data-keep]):not([data-lang-toggle]) { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 1rem; line-height: 1.6;
  overflow-x: hidden;
}
html[lang="ar"] body { font-size: 1.04rem; line-height: 1.8; }
img, svg { max-width: 100%; display: block; }
a { color: var(--terra); text-underline-offset: 3px; }
a:hover { color: var(--terra-dark); }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.35; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; inset-inline-start: 12px; inset-block-start: -60px; z-index: 100; background: var(--espresso); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { inset-block-start: 12px; color: #fff; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: .65em 1.3em; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 .98rem/1.2 var(--body); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, transform .15s, border-color .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--terra); color: #fff; }
.btn-primary:hover { background: var(--terra-dark); color: #fff; }
.btn-dark { background: var(--espresso); color: var(--cream); }
.btn-dark:hover { background: #3a2318; color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-light { background: var(--cream); color: var(--espresso); }
.btn-light:hover { background: #fff; color: var(--espresso); }
.btn-wa { background: #1f7a4d; color: #fff; }
.btn-wa:hover { background: #17633e; color: #fff; }
.btn-sm { min-height: 38px; padding: .45em 1em; font-size: .9rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(246, 239, 227, .92); backdrop-filter: saturate(1.4) blur(10px); border-block-end: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 12px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-inline-end: auto; }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand-name { font-family: var(--display); font-size: 1.15rem; font-weight: 600; line-height: 1.05; }
.brand-name small { display: block; font-family: var(--body); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
html[lang="ar"] .brand-name small { letter-spacing: 0; font-size: .75rem; }
.nav { display: none; }
.nav a { color: var(--ink); text-decoration: none; padding: .5em .8em; border-radius: 999px; font-weight: 500; }
.nav a:hover { background: rgba(43, 26, 18, .07); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--espresso); color: var(--cream); }
.lang-toggle { min-height: 40px; padding: .35em .9em; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font: 600 .92rem/1 "Noto Naskh Arabic", "Work Sans", sans-serif; cursor: pointer; }
.lang-toggle[lang="en"] { font-family: "Work Sans", sans-serif; }
.lang-toggle:hover { background: var(--ink); color: var(--cream); }
.header-cta { display: none; }
.menu-btn { width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--cream); display: inline-grid; place-items: center; cursor: pointer; color: var(--ink); }
.menu-btn svg { width: 22px; height: 22px; }
.mobile-nav { display: none; border-block-start: 1px solid var(--line); padding: 10px 0 18px; }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: .8em .4em; font-size: 1.1rem; color: var(--ink); text-decoration: none; border-block-end: 1px dashed var(--line); font-family: var(--display); }
.mobile-nav a[aria-current="page"] { color: var(--terra); }
.mobile-nav .btn { margin-block-start: 14px; width: 100%; }
@media (min-width: 900px) {
  .nav { display: flex; gap: 2px; }
  .header-cta { display: inline-flex; }
  .menu-btn, .mobile-nav, .mobile-nav.open { display: none; }
  .header-row { gap: 18px; min-height: 76px; }
}

/* ---------- sadu band (Kuwaiti weaving motif) ---------- */
.sadu {
  height: 18px; background:
    linear-gradient(135deg, var(--terra) 25%, transparent 25%) 0 0 / 18px 18px,
    linear-gradient(225deg, var(--terra) 25%, transparent 25%) 0 0 / 18px 18px,
    linear-gradient(315deg, var(--espresso) 25%, transparent 25%) 0 0 / 18px 18px,
    linear-gradient(45deg, var(--espresso) 25%, transparent 25%) 0 0 / 18px 18px,
    var(--saffron);
}
.sadu.thin { height: 10px; background-size: 10px 10px; }

/* ---------- hero ---------- */
.hero { padding: 36px 0 48px; position: relative; overflow: hidden; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--terra); margin-block-end: 14px; }
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: .92rem; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.hero h1 { font-size: clamp(2.4rem, 8vw, 4.6rem); font-weight: 500; }
.hero h1 em { font-style: italic; color: var(--terra); font-weight: 400; }
html[lang="ar"] .hero h1 em { font-style: normal; }
.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block: 24px 28px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 0; list-style: none; color: var(--ink-2); font-size: .95rem; }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts svg { width: 18px; height: 18px; color: var(--terra); }
.hero-art { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; grid-template-rows: auto auto; gap: 14px; }
.arch { border-radius: 999px 999px var(--radius) var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--card); }
.arch svg { width: 100%; height: 100%; }
.hero-art .a1 { grid-row: span 2; aspect-ratio: 3 / 4.2; }
.hero-art .a2 { aspect-ratio: 1 / 1.05; border-radius: var(--radius); }
.hero-art .a3 { aspect-ratio: 1 / 1.05; border-radius: var(--radius) var(--radius) 999px 999px; }
.stamp { position: absolute; inset-inline-start: -6px; inset-block-end: 22px; width: 104px; height: 104px; border-radius: 50%; background: var(--espresso); color: var(--saffron-soft); display: grid; place-items: center; text-align: center; font-family: var(--display); font-size: .82rem; line-height: 1.15; padding: 12px; transform: rotate(-8deg); box-shadow: var(--shadow); border: 2px dashed rgba(243, 220, 174, .55); }
.stamp strong { display: block; font-size: 1.5rem; color: #fff; }
@media (min-width: 900px) {
  .hero { padding: 64px 0 80px; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 56px; }
  .stamp { inset-inline-start: -40px; width: 124px; height: 124px; }
}

/* ---------- sections ---------- */
.section { padding: 56px 0; }
.section-alt { background: var(--cream); border-block: 1px solid var(--line); }
.section-dark { background: var(--espresso); color: #f3e9da; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .lead, .section-dark p { color: #e5d6c2; }
.section-dark .eyebrow { color: var(--saffron); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-block-end: 28px; }
.section-head h2 { font-size: clamp(1.9rem, 5vw, 2.8rem); margin: 0; }
.section-head p { margin: .4em 0 0; color: var(--ink-2); max-width: 34em; }
@media (min-width: 900px) { .section { padding: 88px 0; } }

/* ---------- dish cards ---------- */
.card-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.dish { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 0 rgba(43, 26, 18, .04); transition: transform .2s, box-shadow .2s; }
.dish:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.dish-photo { aspect-ratio: 4 / 3; position: relative; background: var(--saffron-soft); }
.dish-photo svg { width: 100%; height: 100%; }
.dish-flag { position: absolute; inset-block-start: 10px; inset-inline-start: 10px; background: var(--espresso); color: var(--saffron-soft); font-size: .74rem; font-weight: 600; padding: .25em .7em; border-radius: 999px; letter-spacing: .04em; }
.dish-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.dish-names { display: flex; flex-direction: column; gap: 2px; }
.dish-name { font-family: var(--display); font-size: 1.22rem; font-weight: 600; line-height: 1.2; margin: 0; }
.dish-alt { font-size: .95rem; color: var(--muted); line-height: 1.3; }
.dish-alt[lang="ar"] { font-family: "Noto Naskh Arabic", serif; font-size: 1.02rem; }
.dish-alt[lang="en"] { font-family: "Fraunces", serif; font-style: italic; }
.dish-desc { font-size: .93rem; color: var(--ink-2); margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; list-style: none; }
.tag { font-size: .74rem; font-weight: 600; padding: .2em .65em; border-radius: 999px; background: #efe5d4; color: var(--ink-2); }
.tag.veg, .tag.gf { background: #e2ead9; color: #2f4a29; }
.tag.signature { background: #f6e0bd; color: #6d3b0c; }
.tag.new { background: #f5dcd2; color: #7f3015; }
.dish-foot { margin-block-start: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-block-start: 8px; }
.price { font-weight: 700; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--ink); border-radius: 999px; overflow: hidden; }
.stepper button { width: 38px; height: 38px; border: 0; background: transparent; font-size: 1.2rem; cursor: pointer; color: var(--ink); }
.stepper button:hover { background: rgba(43, 26, 18, .08); }
.stepper output { min-width: 26px; text-align: center; font-weight: 700; }

/* ---------- story / features ---------- */
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } }
.story-art { aspect-ratio: 5 / 4; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.story-art svg { width: 100%; height: 100%; }
.feature-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.feature-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.feature-list .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--saffron-soft); color: var(--terra-dark); display: grid; place-items: center; }
.feature-list .ic svg { width: 22px; height: 22px; }
.feature-list strong { display: block; font-family: var(--display); font-size: 1.08rem; }
.feature-list span.sub { color: var(--ink-2); font-size: .95rem; }
.quote { font-family: var(--display); font-size: clamp(1.4rem, 3.6vw, 2rem); line-height: 1.35; margin: 0 0 14px; font-weight: 400; font-style: italic; }
html[lang="ar"] .quote { font-style: normal; }
.quote-by { color: var(--saffron); font-weight: 600; }

/* ---------- branches ---------- */
.branch-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.branch { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.branch-map { aspect-ratio: 16 / 10; position: relative; background: #e9e1d2; }
.branch-map svg { width: 100%; height: 100%; }
.branch-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.branch-body h3 { font-size: 1.4rem; margin: 0; }
.branch-meta { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; color: var(--ink-2); font-size: .95rem; }
.branch-meta li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; }
.branch-meta svg { width: 18px; height: 18px; margin-block-start: 4px; color: var(--terra); }
.status { display: inline-flex; align-items: center; gap: 7px; font-size: .84rem; font-weight: 600; padding: .25em .75em; border-radius: 999px; width: fit-content; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status.open { background: #e0eedc; color: #245c2a; }
.status.closed { background: #f4e0d9; color: #8a2d13; }
.branch-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: auto; padding-block-start: 6px; }
.hours { width: 100%; border-collapse: collapse; font-size: .92rem; }
.hours th, .hours td { text-align: start; padding: 5px 0; border-block-end: 1px dashed var(--line); font-weight: 400; }
.hours td { text-align: end; font-variant-numeric: tabular-nums; }
.hours tr.today th, .hours tr.today td { font-weight: 700; color: var(--ink); }
.note { font-size: .88rem; color: var(--ink-2); background: #f3ead9; border-radius: 12px; padding: 10px 12px; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--terra); color: #fff; border-radius: 28px; padding: 36px 24px; display: grid; gap: 18px; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 5vw, 2.6rem); margin: 0; }
.cta-band p { color: #fbe9de; margin: 0; }
.cta-band::after { content: ""; position: absolute; inset-inline-end: -60px; inset-block-start: -60px; width: 220px; height: 220px; border-radius: 50%; border: 28px solid rgba(255, 255, 255, .1); }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1fr auto; align-items: center; padding: 48px 56px; } }

/* ---------- page head ---------- */
.page-head { padding: 40px 0 28px; }
.page-head h1 { font-size: clamp(2.2rem, 7vw, 3.8rem); font-weight: 500; margin-block-end: .25em; }
.page-head p { color: var(--ink-2); max-width: 40em; font-size: 1.06rem; margin: 0; }
.crumbs { font-size: .88rem; color: var(--muted); margin-block-end: 12px; }
.crumbs a { color: var(--muted); }

/* ---------- menu tools ---------- */
.menu-tools { position: sticky; top: 68px; z-index: 20; background: var(--paper); padding: 12px 0; border-block-end: 1px solid var(--line); }
@media (min-width: 900px) { .menu-tools { top: 76px; } }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-block-end: 4px; scrollbar-width: thin; margin-block-end: 10px; }
.chip { flex: none; min-height: 40px; padding: .4em 1em; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font: 500 .95rem/1 var(--body); cursor: pointer; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--espresso); border-color: var(--espresso); color: var(--cream); }
.tool-row { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.search { position: relative; flex: 1 1 220px; }
.search svg { position: absolute; inset-inline-start: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input, .search input[type="search"] { width: 100%; min-height: 44px; padding-inline: 42px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); font: inherit; color: var(--ink); }
.search input:focus-visible { border-color: var(--focus); }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: .94rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--terra); }
.menu-section { padding-block: 28px 8px; }
.menu-section h2 { font-size: 1.8rem; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.menu-section h2 .alt { font-size: 1.05rem; color: var(--muted); font-weight: 400; }
.empty { text-align: center; padding: 48px 16px; color: var(--ink-2); }
.result-count { font-size: .9rem; color: var(--muted); margin: 0; }

/* ---------- basket bar + dialogs ---------- */
.basket-bar { position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 45; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--espresso); color: var(--cream); display: none; box-shadow: 0 -8px 30px rgba(34, 20, 13, .25); }
.basket-bar.show { display: block; }
.basket-bar .wrap { display: flex; align-items: center; gap: 12px; justify-content: space-between; }
.basket-sum { display: flex; flex-direction: column; line-height: 1.25; }
.basket-sum strong { font-size: 1.05rem; }
.basket-sum span { font-size: .85rem; color: #d9c7b0; }
body.has-bar { padding-block-end: 80px; }
dialog { border: 0; padding: 0; border-radius: 22px; width: min(100% - 24px, 560px); max-height: calc(100dvh - 24px); background: var(--cream); color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
dialog::backdrop { background: rgba(34, 20, 13, .55); backdrop-filter: blur(2px); }
.dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-block-end: 1px solid var(--line); position: sticky; top: 0; background: var(--cream); z-index: 1; }
.dlg-head h2 { margin: 0; font-size: 1.4rem; }
.dlg-body { padding: 18px 20px 22px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--card); cursor: pointer; display: grid; place-items: center; color: var(--ink); flex: none; }
.icon-btn svg { width: 18px; height: 18px; }
.basket-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.basket-list li { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 8px; }
.basket-list .thumb { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; }
.basket-list .thumb svg { width: 100%; height: 100%; }
.basket-list .nm { font-weight: 600; line-height: 1.25; }
.basket-list .pr { font-size: .88rem; color: var(--muted); }
.totals { display: grid; gap: 4px; padding: 12px 0; border-block: 1px dashed var(--line); margin-block-end: 16px; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { font-weight: 700; font-size: 1.12rem; }

/* WhatsApp preview */
.wa-phone { background: #e9dfd2; border-radius: 18px; padding: 14px; background-image: radial-gradient(rgba(43, 26, 18, .06) 1px, transparent 1px); background-size: 14px 14px; }
.wa-top { display: flex; align-items: center; gap: 10px; background: #1f5f45; color: #fff; margin: -14px -14px 14px; padding: 10px 14px; border-radius: 18px 18px 0 0; }
.wa-top .av { width: 34px; height: 34px; border-radius: 50%; background: var(--saffron-soft); display: grid; place-items: center; }
.wa-top .av svg { width: 24px; height: 24px; }
.wa-top small { display: block; opacity: .85; font-size: .78rem; }
.wa-bubble { background: #dcf3d0; color: #142a1c; border-radius: 14px; border-start-end-radius: 4px; padding: 10px 12px; margin-inline-start: auto; max-width: 92%; white-space: pre-wrap; font-size: .92rem; line-height: 1.55; box-shadow: 0 1px 1px rgba(0, 0, 0, .12); }
.wa-bubble time { display: block; text-align: end; font-size: .72rem; color: #4d6656; margin-block-start: 4px; }
.demo-flag { display: flex; gap: 10px; align-items: flex-start; background: #fff3d6; border: 1px solid #ecd18e; color: #5b3d06; border-radius: 12px; padding: 10px 12px; font-size: .9rem; margin-block-end: 14px; }
.demo-flag svg { width: 20px; height: 20px; flex: none; margin-block-start: 2px; }

/* ---------- forms ---------- */
.form-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-grid.two { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field legend, .label { font-weight: 600; font-size: .95rem; }
.field .hint { font-size: .85rem; color: var(--muted); }
.req { color: var(--terra); }
input[type="text"], input[type="tel"], input[type="email"], input[type="date"], input[type="search"], select, textarea {
  width: 100%; min-height: 48px; padding: .6em .9em; border-radius: 12px; border: 1.5px solid #cdbca5; background: var(--card); color: var(--ink); font: inherit;
}
textarea { min-height: 96px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
[aria-invalid="true"] { border-color: #b3261e !important; background: #fff7f5; }
.error { color: #b3261e; font-size: .88rem; font-weight: 600; min-height: 0; margin: 0; }
.error:empty { display: none; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.phone-wrap { display: flex; direction: ltr; }
.phone-wrap .cc { display: inline-flex; align-items: center; padding-inline: 12px; border: 1.5px solid #cdbca5; border-inline-end: 0; border-radius: 12px 0 0 12px; background: #efe5d4; font-weight: 600; }
.phone-wrap input { border-radius: 0 12px 12px 0; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg span.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 64px; padding: .4em 1em; border-radius: 12px; border: 1.5px solid #cdbca5; background: var(--card); font-weight: 600; font-variant-numeric: tabular-nums; }
.seg input:checked + span.pill { background: var(--espresso); color: var(--cream); border-color: var(--espresso); }
.seg input:focus-visible + span.pill { outline: 3px solid var(--focus); outline-offset: 2px; }
.seg input:disabled + span.pill { opacity: .45; text-decoration: line-through; cursor: not-allowed; }
.seg input:disabled { cursor: not-allowed; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.slots span.pill { width: 100%; white-space: nowrap; padding-inline: .5em; }
.counter { display: inline-flex; align-items: center; gap: 0; border: 1.5px solid #cdbca5; border-radius: 12px; overflow: hidden; background: var(--card); width: fit-content; }
.counter button { width: 48px; height: 48px; border: 0; background: transparent; font-size: 1.4rem; cursor: pointer; color: var(--ink); }
.counter button:hover { background: #efe5d4; }
.counter output { min-width: 64px; text-align: center; font-weight: 700; font-size: 1.1rem; }
.reserve-layout { display: grid; gap: 24px; padding-block-end: 64px; }
@media (min-width: 960px) { .reserve-layout { grid-template-columns: 1.4fr .9fr; align-items: start; } }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 22px; box-shadow: 0 1px 0 rgba(43, 26, 18, .04); }
@media (min-width: 640px) { .panel { padding: 30px; } }
.panel h2 { font-size: 1.35rem; }
.step-title { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 1.2rem; margin: 8px 0 14px; }
.step-title b { width: 30px; height: 30px; border-radius: 50%; background: var(--saffron-soft); color: var(--terra-dark); display: grid; place-items: center; font-family: var(--body); font-size: .9rem; }
.divider { border: 0; border-block-start: 1px dashed var(--line); margin: 24px 0; }
.summary { position: sticky; top: 96px; display: grid; gap: 14px; }
.summary .art { aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; }
.summary dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: .95rem; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 600; text-align: end; }
.confirm { text-align: center; padding: 12px 0; }
.confirm .tick { width: 72px; height: 72px; border-radius: 50%; background: #e0eedc; color: #245c2a; display: grid; place-items: center; margin: 0 auto 16px; }
.confirm .tick svg { width: 36px; height: 36px; }
.ref { display: inline-block; font: 700 1.3rem/1 ui-monospace, Menlo, monospace; letter-spacing: .08em; background: var(--paper); border: 1.5px dashed var(--terra); color: var(--terra-dark); padding: 12px 18px; border-radius: 12px; margin: 8px 0 16px; direction: ltr; }
.confirm dl { text-align: start; max-width: 380px; margin: 0 auto 18px; }

/* ---------- footer ---------- */
.site-footer { background: var(--espresso); color: #e3d3bf; padding: 48px 0 110px; margin-block-start: 0; }
.site-footer a { color: #f3dcae; }
.site-footer a:hover { color: #fff; }
.foot-grid { display: grid; gap: 28px; }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h2 { font-size: 1rem; color: #fff; font-family: var(--body); letter-spacing: .08em; text-transform: uppercase; margin-block-end: 12px; }
html[lang="ar"] .site-footer h2 { letter-spacing: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: .95rem; }
.site-footer .brand { color: #fff; margin-block-end: 12px; }
.site-footer .brand-name small { color: #cdb89f; }
.foot-legal { border-block-start: 1px solid rgba(255, 255, 255, .12); margin-block-start: 32px; padding-block-start: 18px; font-size: .85rem; color: #c4ae94; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; }

/* ---------- RetainrWorks badge ---------- */
.rw-badge {
  position: fixed; z-index: 60; inset-block-end: 14px; inset-inline-start: 14px;
  max-width: calc(100% - 28px); display: inline-flex; align-items: center;
  padding: .45em .9em; border-radius: 999px; background: rgba(255, 253, 248, .94); color: var(--ink);
  border: 1px solid var(--line); box-shadow: 0 4px 16px rgba(43, 26, 18, .16);
  font: 500 .74rem/1.3 "Work Sans", "Noto Naskh Arabic", sans-serif; text-decoration: none;
  transition: bottom .2s;
}
.rw-badge:hover { color: var(--terra-dark); background: #fff; }
body.has-bar .rw-badge { inset-block-end: 82px; }

/* utilities */
.center { text-align: center; }
.mt-0 { margin-block-start: 0; }
.stack-sm > * + * { margin-block-start: 8px; }
.hide { display: none !important; }
