:root {
  --burgundy: #6E1A26;
  --burgundy-deep: #4E111A;
  --ivory: #FAF5EA;
  --ivory-2: #F2EAD8;
  --gold: #C9A24B;
  --gold-deep: #9C7A2E;
  --navy: #1E2A44;
  --ink: #2A1A1C;
  --muted: #6B5A55;
  --line: #E3D6BC;
  --bad: #A3231B;
  --wa: #1F8F4E;
  --radius: 14px;
  --font: "Cairo", system-ui, sans-serif;
  --display: "Reem Kufi", "Cairo", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.7;
  padding-bottom: 72px;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); line-height: 1.3; margin: 0; }
a { color: var(--burgundy); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* شريط زخرفي هادي مستوحى من الأرابيسك */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: var(--burgundy);
  color: var(--ivory);
  border-bottom: 3px solid var(--gold);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ivory); text-decoration: none; }
.brand__logo {
  height: 54px; width: auto; padding: 3px 6px;
  background: #FEFDF7; border: 2px solid var(--gold); border-radius: 12px;
}
.brand__name { font-family: var(--display); font-size: 1.4rem; letter-spacing: .5px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 700 1.05rem var(--font);
  border: 0; border-radius: 999px; padding: 12px 26px;
  text-decoration: none; cursor: pointer; transition: transform .1s, filter .15s;
  min-height: 48px;
}
.btn:active { transform: scale(.98); }
.btn:hover { filter: brightness(1.06); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 2px;
}
.btn--primary { background: var(--burgundy); color: var(--ivory); }
.btn--gold { background: var(--gold); color: var(--burgundy-deep); }
.btn--whatsapp { background: var(--wa); color: #fff; }
.btn--sm { padding: 6px 16px; min-height: 38px; font-size: .95rem; }
.btn--block { width: 100%; }

/* Hero */
.hero {
  position: relative;
  background:
    radial-gradient(circle at 100% 0, rgba(201,162,75,.18), transparent 50%),
    var(--ivory);
  padding: 32px 0 40px;
  border-bottom: 1px solid var(--line);
}
.cover { background: var(--ivory-2); border-bottom: 3px solid var(--gold); }
.cover img { width: 100%; height: auto; max-height: 460px; object-fit: cover; margin: 0 auto; }
.hero__grid { position: relative; display: grid; gap: 28px; align-items: center; }
.eyebrow {
  display: inline-block; margin: 0 0 8px; padding: 2px 14px;
  border: 1px solid var(--gold); border-radius: 999px;
  color: var(--gold-deep); font-weight: 700; font-size: .9rem;
}
.hero h1 { font-size: clamp(1.9rem, 6vw, 3rem); color: var(--burgundy); }
.hero h1 span { color: var(--navy); font-size: .78em; }
.lead { font-size: 1.15rem; color: var(--muted); margin: 12px 0 18px; }

.price-tags { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; }
.price-tags .price-tag { margin-bottom: 6px; }
.price-tags .price-tag--alt { background: var(--navy); box-shadow: 0 6px 0 #121a2c; }
.price-tag__unit b { color: var(--gold); }
.price-tags .price-tag--offer {
  background: var(--gold); color: var(--burgundy-deep); border-color: var(--burgundy);
  box-shadow: 0 6px 0 var(--gold-deep); text-decoration: none;
}
.price-tag--offer .price-tag__num { color: var(--burgundy); }
.price-tag--offer .price-tag__unit b { color: var(--burgundy); }
.price-tag--offer s { opacity: .75; }
.prod__offer { margin: -4px 0 8px; font-size: .9rem; font-weight: 700; color: var(--gold-deep); }
.summary__save dd { color: #1F7A45; }
.price-note { margin: 0 0 18px; color: var(--muted); font-size: .95rem; font-weight: 600; }
.price-tag {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--burgundy); color: var(--ivory);
  border: 2px solid var(--gold); border-radius: var(--radius);
  padding: 8px 20px; margin-bottom: 20px;
  box-shadow: 0 6px 0 var(--burgundy-deep);
}
.price-tag__num { font: 800 2.6rem/1 var(--font); color: var(--gold); }
.price-tag__unit { font-size: .95rem; line-height: 1.35; }

.hero__media { margin: 0; }
.hero__media figcaption, .dish figcaption { font-size: .9rem; color: var(--muted); margin-top: 8px; text-align: center; }

.media-slot {
  aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  background: var(--ivory-2); border: 2px solid var(--gold);
}
.media-slot img { width: 100%; height: 100%; object-fit: cover; }
.media-slot--empty {
  display: flex; align-items: center; justify-content: center; text-align: center;
  border-style: dashed; color: var(--muted); font-weight: 600; padding: 16px;
  background-image: repeating-linear-gradient(45deg, transparent 0 12px, rgba(201,162,75,.08) 12px 24px);
}

/* Sections */
.section { padding: 44px 0; }
.section--tint { background: var(--ivory-2); }
.section__title { font-size: 1.6rem; color: var(--burgundy); margin-bottom: 20px; }
.section__title::after {
  content: ""; display: block; width: 56px; height: 4px; margin-top: 6px;
  background: linear-gradient(90deg, var(--gold), var(--burgundy));
  border-radius: 2px;
}

.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.facts li {
  background: #fff; border: 1px solid var(--line); border-inline-start: 4px solid var(--gold);
  border-radius: 10px; padding: 12px 16px; display: flex; flex-direction: column;
}
.facts strong { color: var(--navy); font-size: 1.08rem; }
.facts span { color: var(--muted); }
.dish { margin: 24px 0 0; max-width: 520px; }

.about {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 22px 20px; max-width: 720px;
  box-shadow: 0 2px 10px rgba(110, 26, 38, .06);
}
.about p { margin: 0 0 14px; line-height: 1.9; }
.about strong { color: var(--burgundy); }
.about .btn { margin-top: 4px; }

.values { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.value {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 18px 12px; text-align: center;
  box-shadow: 0 2px 10px rgba(110, 26, 38, .06);
}
.value__icon { display: block; font-size: 2.1rem; line-height: 1; margin-bottom: 10px; }
.value h3 { font-family: var(--font); font-weight: 800; font-size: 1.08rem; color: var(--burgundy); margin-bottom: 4px; }
.value p { margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.6; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.steps li span {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy); color: var(--gold); font-weight: 800;
}

/* Order */
.order { display: grid; gap: 20px; align-items: start; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; margin-bottom: 4px; color: var(--navy); }
.field small { color: var(--muted); font-weight: 400; }
input, select, textarea {
  width: 100%; font: 1rem var(--font); color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px;
  background: var(--ivory); min-height: 48px;
}
input[dir="ltr"] { text-align: right; }
textarea { resize: vertical; }
[aria-invalid="true"] { border-color: var(--bad); }
.err { color: var(--bad); font-size: .9rem; margin: 4px 0 0; min-height: 0; }
.err:empty { display: none; }

fieldset.cuts { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.cuts legend { font-weight: 700; color: var(--navy); margin-bottom: 4px; padding: 0; }
.cuts legend small { color: var(--muted); font-weight: 400; }
.prod { border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px 2px; margin-bottom: 10px; background: var(--ivory); }
.prod__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.prod__head strong { color: var(--navy); }
.prod__head span { font-weight: 800; color: var(--burgundy); }
.cut-row { display: grid; grid-template-columns: 72px 1fr; align-items: center; gap: 10px; margin-bottom: 8px; }
.cut-row label { font-weight: 700; color: var(--burgundy); }
.stepper { display: flex; gap: 8px; }
.stepper input { text-align: center; font-weight: 800; font-size: 1.2rem; }
.stepper__btn {
  flex: none; width: 52px; border-radius: 10px; border: 0;
  background: var(--navy); color: var(--gold); font: 800 1.5rem var(--font); cursor: pointer;
}
fieldset.pay { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.pay legend { font-weight: 700; color: var(--navy); margin-bottom: 4px; padding: 0; }
.pay__rows { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pay__opt {
  display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 12px;
  border: 1.5px solid var(--line); border-radius: 10px; background: var(--ivory);
  font-weight: 700; cursor: pointer;
}
.pay__opt input { width: auto; min-height: 0; accent-color: var(--burgundy); }
.pay__opt:has(input:checked) { border-color: var(--burgundy); background: #fff; }
.pay__note { text-align: start; margin-top: 6px; }
.summary__policy { list-style: none; padding: 10px 0 0; margin: 8px 0 0; border-top: 1px dashed var(--line); font-weight: 600; color: var(--navy); }
.summary__policy li { padding: 2px 0; }
.hint { font-size: .9rem; color: var(--muted); text-align: center; margin: 10px 0 0; }

.summary { border: 2px solid var(--gold); background: var(--ivory); }
.summary h3 { color: var(--burgundy); margin-bottom: 10px; }
.summary dl { margin: 0; }
.summary dl > div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 700; }
.summary dd.bad { color: var(--bad); }
.summary__total { border-bottom: 0 !important; font-size: 1.3rem; }
.summary__total dd { color: var(--burgundy); font-weight: 800; }
.summary__note { font-size: .85rem; color: var(--muted); margin: 8px 0 0; }

.preview { margin-top: 20px; border: 2px dashed var(--navy); }
.preview__flag {
  margin: 0 0 12px; padding: 8px 12px; border-radius: 8px;
  background: var(--navy); color: var(--ivory); font-weight: 700; text-align: center;
}
.preview__ok {
  margin: 0 0 12px; padding: 10px 12px; border-radius: 8px;
  background: #E3F4E9; color: #14532D; border: 1.5px solid #1F7A45; font-weight: 800; text-align: center;
}
.form-err { margin: 0 0 10px; padding: 8px 12px; border-radius: 8px; background: #FBE9E7; color: var(--bad); font-weight: 700; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn[disabled] { opacity: .7; cursor: default; }
.preview__msg {
  white-space: pre-wrap; font: 1rem/1.8 var(--font);
  background: var(--ivory); border-radius: 10px; padding: 12px; margin: 0 0 12px;
}

/* FAQ */
details { background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; }
summary { cursor: pointer; padding: 12px 16px; font-weight: 700; color: var(--navy); }
details > p, details > div { margin: 0; padding: 0 16px 14px; color: var(--muted); }
details > div p { margin: 0 0 6px; }

.footer { background: var(--navy); color: var(--ivory-2); padding: 28px 0; text-align: center; border-top: 3px solid var(--gold); }
.footer p { margin: 4px 0; }
.footer__brand { font-family: var(--display); font-size: 1.4rem; color: var(--gold); }
.footer a { color: var(--gold); }

.sticky-total {
  position: fixed; inset: auto 0 0 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--burgundy); color: var(--ivory); border-top: 2px solid var(--gold);
  transition: transform .2s;
}
.sticky-total small { display: block; font-size: .8rem; opacity: .85; }
.sticky-total strong { font-size: 1.2rem; color: var(--gold); }
.sticky-total.is-hidden { transform: translateY(110%); }

@media (min-width: 820px) {
  body { padding-bottom: 0; }
  .hero { padding: 56px 0 64px; }
  .hero__grid { grid-template-columns: 1.05fr 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: repeat(4, 1fr); }
  .order { grid-template-columns: 1.4fr 1fr; }
  .summary { position: sticky; top: 80px; }
  .sticky-total { display: none; }
}
