/* Layout: the page is a stretch of Damascus wall. Sections are stone courses, ablaq bands
   (alternating basalt and limestone) sit between them, and one pointed gate opens in the hero. */
:root {
  --basalt: #2F2925;
  --basalt-soft: #5A5049;
  --limestone: #EFE3CC;
  --flour: #FBF7EF;
  --crust: #B0592A;
  --crust-deep: #8F4520;
  --wheat: #DDA94B;
  --joint: rgba(47, 41, 37, 0.14);
  --focus: var(--basalt);
  --display: "Aref Ruqaa", "Noto Naskh Arabic", "Geeza Pro", serif;
  --body: "Markazi Text", "Noto Naskh Arabic", "Traditional Arabic", "Geeza Pro", serif;
  --wrap: 74rem;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--flour);
  color: var(--basalt);
  font-family: var(--body);
  font-size: 1.3rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.3; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2.3rem, 4.4vw, 3.3rem); }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0;
}
.skip {
  position: absolute; inset-inline-start: 1rem; top: -4rem; z-index: 50;
  background: var(--basalt); color: var(--flour); padding: .4rem 1rem; text-decoration: none;
}
.skip:focus { top: 1rem; }

/* ablaq course: the signature band */
.ablaq {
  height: 16px;
  background: repeating-linear-gradient(90deg, var(--basalt) 0 58px, var(--limestone) 58px 82px);
}

/* header: dark like the logo, its lower edge crenellated like the top of a wall */
.site-header {
  --focus: var(--wheat);
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: var(--basalt);
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 21; background: var(--basalt);
}
.site-header::after {
  content: ""; position: absolute; inset-inline: 0; top: 100%; height: 8px; pointer-events: none;
  background: repeating-linear-gradient(90deg, var(--basalt) 0 40px, transparent 40px 56px);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .55rem; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--limestone); }
.brand img { width: 36px; height: auto; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.75rem; line-height: 1; padding-top: .15em; }
.site-nav { display: flex; align-items: center; gap: 1.7rem; }
.site-nav a { text-decoration: none; font-size: 1.25rem; font-weight: 600; color: var(--limestone); }
.site-nav a:not(.nav-order):hover {
  text-decoration: underline; text-decoration-color: var(--wheat);
  text-decoration-thickness: 3px; text-underline-offset: .4em;
}
.site-nav .nav-order {
  background: var(--crust); color: var(--flour);
  padding: .3rem 1.2rem .4rem; border-radius: 999px 999px 4px 4px;
}
.site-nav .nav-order:hover { background: var(--crust-deep); }
.nav-toggle {
  display: none; font: inherit; font-size: 1.15rem; font-weight: 600;
  color: var(--limestone); background: transparent; border: 2px solid var(--limestone);
  border-radius: 999px 999px 4px 4px; padding: .15rem 1rem .25rem; cursor: pointer;
}

/* hero ------------------------------------------------------------- */
.hero { padding-block: clamp(1.8rem, 5vw, 4.2rem) clamp(2.4rem, 6vw, 4.8rem); }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-text { min-width: 0; }
.hero-title { display: flex; flex-direction: column; align-items: flex-start; }
.t-small { font-size: clamp(1.8rem, 3.2vw, 2.5rem); color: var(--crust-deep); line-height: 1.2; }
.t-big { font-size: clamp(4rem, 10.5vw, 8.2rem); line-height: 1.12; color: var(--basalt); }
.t-tag {
  display: flex; align-items: center; gap: .55em;
  font-size: clamp(1.6rem, 2.7vw, 2.15rem); color: var(--crust-deep); line-height: 1.3;
}
.t-tag::after { content: ""; width: 4.5em; height: 3px; background: var(--wheat); transform: translateY(.1em); }
.lead { margin-top: 1.4rem; max-width: 31em; font-size: 1.45rem; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.8rem; margin-top: 2rem; }
.hero-note {
  margin-top: 1.2rem; font-size: 1.12rem; color: var(--basalt-soft);
  display: flex; align-items: center; gap: .55rem;
}
.hero-note::before { content: ""; width: .7rem; height: .7rem; background: var(--crust); flex: none; }
.hero-art { min-width: 0; }
.gate { width: 100%; max-width: 420px; height: auto; margin-inline: auto; }

/* the gate's steam: the page's one ambient motion */
@media (prefers-reduced-motion: no-preference) {
  .gate .steam { animation: steam 4.2s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
  .gate .steam-2 { animation-delay: -1.4s; }
  .gate .steam-3 { animation-delay: -2.8s; }
}
@keyframes steam {
  0%   { transform: translateY(5px) scaleY(.92); opacity: .45; }
  50%  { opacity: 1; }
  100% { transform: translateY(-9px) scaleY(1.06); opacity: .45; }
}

/* buttons: a doorway (round head, square foot) and a wheat-underlined link */
.btn-door {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--body); font-size: 1.3rem; font-weight: 700; line-height: 1.2;
  color: var(--flour); background: var(--crust);
  padding: .85rem 1.9rem .8rem; border: 0; border-radius: 999px 999px 6px 6px;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .2);
  text-decoration: none; cursor: pointer;
}
.btn-door:hover { background: var(--crust-deep); }
.btn-door[aria-disabled="true"] {
  background: #D9CBB2; color: var(--basalt-soft); box-shadow: none; cursor: not-allowed;
}
.link-wheat {
  font-weight: 700; color: var(--basalt); text-decoration: underline;
  text-decoration-color: var(--wheat); text-decoration-thickness: 3px; text-underline-offset: .45em;
}
.link-wheat:hover { color: var(--crust-deep); }

/* section heads ---------------------------------------------------- */
.section-head { display: grid; gap: .5rem; max-width: 42rem; margin-bottom: clamp(1.6rem, 3vw, 2.4rem); }
.section-lead { font-size: 1.35rem; color: var(--basalt-soft); }

/* supply: how ordering works and who it is for ---------------------- */
.supply { background: var(--limestone); padding-block: clamp(2.8rem, 7vw, 5rem); }
.supply-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.supply h2 { margin-bottom: 1.4rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.3rem; }
.steps li { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); gap: 1rem; align-items: start; }
.step-n {
  display: grid; place-items: center; width: 3.4rem; height: 3.4rem;
  font-family: var(--display); font-weight: 700; font-size: 2rem; line-height: 1;
  background: var(--basalt); color: var(--wheat); border-radius: 999px 999px 4px 4px; padding-top: .2rem;
}
.steps h3 { font-size: 1.6rem; }
.steps p { font-size: 1.22rem; color: var(--basalt-soft); max-width: 34em; }
.who { background: var(--flour); padding: clamp(1.2rem, 3vw, 1.8rem); border-top: 6px solid var(--basalt); }
.who h3 { font-size: 1.6rem; color: var(--crust-deep); margin-bottom: .5rem; }
.who-list { list-style: none; margin: 0; padding: 0; }
.who-list li { padding-block: .5rem; border-bottom: 1px solid var(--joint); font-size: 1.25rem; font-weight: 600; display: flex; align-items: center; gap: .6rem; }
.who-list li::before { content: ""; width: .55rem; height: .55rem; background: var(--crust); flex: none; }
.who-note { margin-top: .9rem; font-size: 1.1rem; color: var(--basalt-soft); }

/* products: three breads, each on a basalt ground like the logo -------- */
.menu { padding-block: clamp(2.8rem, 7vw, 5.2rem); }
.products { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 1.8rem); }
.product { background: var(--limestone); display: grid; grid-template-rows: auto 1fr; }
.product-art { background: var(--basalt); padding: 1.4rem 1.2rem 1.1rem; border-radius: 6px 6px 0 0; }
.product-art svg { width: 100%; max-width: 230px; height: auto; margin-inline: auto; }
.product-body { padding: 1.1rem clamp(1rem, 2.5vw, 1.5rem) 1.4rem; display: grid; gap: .45rem; align-content: start; }
.product-head { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.product h3 { font-size: 1.75rem; line-height: 1.35; }
.product .unit {
  font-size: 1rem; font-weight: 600; color: var(--basalt-soft); background: var(--flour);
  border-radius: 999px; padding: .05rem .8rem .15rem; white-space: nowrap;
}
.product p { font-size: 1.2rem; color: var(--basalt-soft); line-height: 1.55; }

/* story ------------------------------------------------------------ */
.story { --focus: var(--wheat); background: var(--basalt); color: var(--limestone); padding-block: clamp(2.8rem, 7vw, 5.2rem); }
.story h2 { color: var(--wheat); margin-bottom: 1rem; }
.story-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.story-text { display: grid; gap: 1rem; }
.story-text p { max-width: 32em; font-size: 1.35rem; }
.gates-figure { margin: 0; }
.gates { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.gates li {
  flex: 1 1 auto; text-align: center; font-family: var(--display); font-weight: 700;
  font-size: 1.45rem; line-height: 1.3; padding: .55rem 1.1rem .45rem;
  background: var(--limestone); color: var(--basalt);
}
.gates li:nth-child(even) { background: var(--crust); color: var(--flour); }
.gates-figure figcaption { margin-top: .9rem; font-size: 1.1rem; color: #CFC2AC; }

/* order ------------------------------------------------------------ */
.order { padding-block: clamp(2.8rem, 7vw, 5.2rem); }
.order-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(1.4rem, 4vw, 3rem); align-items: start; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.picker-legend { font-family: var(--display); font-weight: 700; font-size: 1.6rem; line-height: 1.3; padding: 0; margin-bottom: .9rem; color: var(--basalt); }
.pick-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: .55rem; border-bottom: 1px solid var(--joint);
}
.pick-name { font-size: 1.3rem; font-weight: 600; min-width: 0; }
.pick-unit { font-size: 1.02rem; font-weight: 400; color: var(--basalt-soft); margin-inline-start: .35rem; }
.stepper { display: flex; align-items: center; gap: .25rem; flex: none; }
.stepper button {
  width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 2px solid var(--basalt);
  background: var(--flour); color: var(--basalt); font: inherit; font-size: 1.45rem; font-weight: 700;
  line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0 0 .15rem;
}
.stepper button:hover { background: var(--basalt); color: var(--flour); }
.stepper input {
  width: 3.6rem; text-align: center; font: inherit; font-size: 1.35rem; font-weight: 700;
  border: 0; background: transparent; color: var(--basalt); -moz-appearance: textfield; appearance: textfield;
  font-variant-numeric: tabular-nums;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pick-row.has-qty .pick-name { color: var(--crust-deep); }

.details { background: var(--limestone); padding: clamp(1.2rem, 3vw, 1.8rem); display: grid; gap: 1.05rem; }
.mode { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }
.mode legend, .summary h3 { font-family: var(--display); font-weight: 700; font-size: 1.6rem; line-height: 1.3; padding: 0; margin-bottom: .3rem; }
.choice { display: inline-flex; align-items: center; gap: .45rem; font-size: 1.25rem; cursor: pointer; }
.choice input { accent-color: var(--crust); width: 1.15rem; height: 1.15rem; margin: 0; }
.field { display: grid; gap: .25rem; }
.field label { font-weight: 700; font-size: 1.18rem; }
.opt { font-weight: 400; color: var(--basalt-soft); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 1.2rem; line-height: 1.5; color: var(--basalt);
  background: var(--flour); border: 2px solid rgba(47, 41, 37, .3); border-radius: 4px; padding: .5rem .8rem;
  width: 100%; min-width: 0;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--basalt); }
.field textarea { resize: vertical; }
.summary { background: var(--flour); padding: .9rem 1.2rem 1rem; }
.summary ul { margin: 0; padding-inline-start: 1.2rem; }
.summary li { font-size: 1.2rem; }
#summary-empty { color: var(--basalt-soft); font-size: 1.15rem; }
.btn-wide { width: 100%; }
.hint { font-size: 1.08rem; color: var(--crust-deep); min-height: 1.5em; }

/* contact ---------------------------------------------------------- */
.visit { padding-block: clamp(2.8rem, 7vw, 5rem); }
.visit-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: clamp(1.6rem, 5vw, 4rem); align-items: start; }
.visit-grid > div:first-child { display: grid; gap: .8rem; justify-items: start; }
.facts { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.facts > div { border-top: 4px solid var(--basalt); padding-top: .8rem; min-width: 0; }
.facts dt { font-family: var(--display); font-weight: 700; font-size: 1.5rem; line-height: 1.3; color: var(--crust-deep); }
.facts dd { margin: .35rem 0 0; font-size: 1.25rem; overflow-wrap: anywhere; }
.facts dd a { font-weight: 700; text-decoration-color: var(--wheat); text-decoration-thickness: 2px; text-underline-offset: .35em; }
.facts .line { display: block; }
.pending { color: var(--basalt-soft); }

/* footer ----------------------------------------------------------- */
.site-footer { --focus: var(--wheat); background: var(--basalt); color: var(--limestone); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.4rem 2rem; padding-block: 2rem 2.4rem; }
.site-footer img { width: 150px; height: auto; }
.site-footer p { font-size: 1.1rem; color: #CFC2AC; }
.social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.social:empty { display: none; }
.social a { color: var(--limestone); font-weight: 700; text-decoration-color: var(--wheat); text-underline-offset: .35em; }

/* responsive ------------------------------------------------------- */
@media (min-width: 961px) {
  .details { position: sticky; top: 6.2rem; }
}
@media (max-width: 960px) {
  .order-grid, .story-grid, .visit-grid, .supply-grid { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
}
@media (max-width: 860px) {
  .products { grid-template-columns: minmax(0, 1fr); max-width: 30rem; }
}
@media (max-width: 760px) {
  body { font-size: 1.22rem; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; inset-inline: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--basalt); border-top: 1px solid rgba(239, 227, 204, .18);
    padding: .4rem max(20px, env(safe-area-inset-right, 0px)) 1rem max(20px, env(safe-area-inset-left, 0px));
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding-block: .6rem; border-bottom: 1px solid rgba(239, 227, 204, .14); }
  .site-nav .nav-order { margin-top: .7rem; text-align: center; border-bottom: 0; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
  .hero-art { order: -1; }
  .gate { max-width: 200px; }
  .lead { font-size: 1.3rem; margin-top: 1rem; }
  .hero-actions { margin-top: 1.4rem; }
  .hero-actions .btn-door { flex: 1 1 100%; }
}

/* floating WhatsApp button --------------------------------------------- */
.wa-float {
  position: fixed; z-index: 30;
  left: max(16px, env(safe-area-inset-left, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .55rem 1.1rem .55rem .9rem; border-radius: 999px;
  background: #15803D; color: #FFFFFF; text-decoration: none;
  font-family: var(--body); font-weight: 700; font-size: 1.15rem; line-height: 1;
  box-shadow: 0 6px 18px rgba(47, 41, 37, .28);
  transition: transform .2s ease, opacity .2s ease;
}
.wa-float svg { width: 1.6rem; height: 1.6rem; flex: none; }
.wa-float:hover { background: #166534; }
.wa-float:focus-visible { outline: 3px solid var(--basalt); outline-offset: 3px; }
.wa-float.is-tucked { opacity: 0; transform: translateY(150%); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .wa-float { transition: none; } }

/* order form additions: phone field, hidden anti-spam field, captcha box */
.field input[type="tel"] { text-align: right; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.turnstile { min-height: 65px; }
.hint a { color: var(--crust-deep); font-weight: 700; text-decoration-color: var(--wheat); text-underline-offset: .3em; }
