:root {
  --ink: #12161d;
  --espresso: #241812;
  --cocoa: #643429;
  --clay: #a77863;
  --gold: #dda94d;
  --gold-light: #f2c879;
  --cream: #f4eee5;
  --white: #fffdfa;
  --sage: #536557;
  --muted: #746b65;
  --line: #d7cec3;
}

@theme inline {
  --color-background: var(--white);
  --color-foreground: var(--ink);
  --font-sans: var(--font-madl);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--white);
  color: var(--ink);
  font-family: Tajawal, "DIN Next LT Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
  margin: 0;
}
button, input, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.42; }
.site-shell { min-height: 100vh; overflow-x: hidden; }

.hero-section {
  background: var(--espresso) url("assets/madl-brand.png") 31% 46% / cover no-repeat;
  color: var(--white);
  display: flex;
  height: 88svh;
  max-height: 820px;
  min-height: 650px;
  padding: 92px max(20px, calc((100vw - 1240px) / 2)) 96px;
  position: relative;
}

.topbar {
  align-items: center;
  background: var(--ink);
  display: grid;
  gap: 36px;
  grid-template-columns: 1fr auto 1fr;
  height: 92px;
  inset: 0 0 auto;
  padding: 0 max(20px, calc((100vw - 1240px) / 2));
  position: absolute;
  z-index: 5;
}

.nav-group { align-items: center; display: flex; gap: 34px; }
.nav-secondary { justify-content: flex-end; }
.nav-group > a {
  color: rgba(255, 253, 250, 0.82);
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}
.nav-group > a:hover { color: var(--gold-light); }

.brand-mark { align-items: center; display: inline-flex; gap: 10px; justify-self: center; }
.brand-icon {
  align-items: center;
  border: 2px solid var(--gold);
  color: var(--gold);
  display: inline-flex;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  height: 52px;
  justify-content: center;
  width: 52px;
}
.brand-name strong, .brand-name small { display: block; letter-spacing: 0; line-height: 1; }
.brand-name strong { font-size: 21px; }
.brand-name small { color: var(--gold); font-size: 10px; margin-top: 6px; }

.nav-order {
  align-items: center;
  border: 1px solid rgba(255, 253, 250, 0.4);
  display: inline-flex;
  gap: 10px;
  min-height: 42px;
  padding: 7px 14px;
}
.nav-order span {
  align-items: center;
  background: var(--gold);
  color: var(--ink);
  display: inline-flex;
  font-size: 12px;
  height: 22px;
  justify-content: center;
  min-width: 22px;
  padding-inline: 5px;
}

.hero-shape {
  background: var(--gold);
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 9% 94%, 0 57%, 11% 18%);
  inset: 92px 0 0 auto;
  position: absolute;
  width: 49%;
  z-index: 1;
}

.hero-content {
  align-self: center;
  color: var(--ink);
  max-width: 540px;
  position: relative;
  width: 45%;
  z-index: 2;
}
.hero-kicker { font-size: 14px; font-weight: 900; margin: 0 0 16px; }
.hero-content h1 {
  font-size: 92px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.9;
  margin: 0;
}
.hero-tagline {
  font-size: 44px;
  font-weight: 900;
  line-height: 1.13;
  margin: 20px 0 28px;
}
.hero-cta {
  align-items: center;
  background: var(--ink);
  color: var(--white);
  display: inline-flex;
  font-weight: 900;
  gap: 36px;
  min-height: 54px;
  padding: 13px 22px;
  transition: transform 160ms ease;
}
.hero-cta:hover { transform: translateY(-3px); }
.hero-note {
  bottom: 122px;
  color: rgba(255, 253, 250, 0.86);
  font-size: 18px;
  font-weight: 800;
  left: max(24px, calc((100vw - 1240px) / 2));
  margin: 0;
  position: absolute;
  z-index: 2;
}
.hero-wave {
  background: var(--cocoa);
  bottom: -1px;
  clip-path: polygon(0 37%, 14% 51%, 34% 42%, 52% 64%, 72% 43%, 86% 57%, 100% 40%, 100% 100%, 0 100%);
  height: 105px;
  inset-inline: 0;
  position: absolute;
  z-index: 3;
}

.spotlight-section {
  background: var(--white);
  padding: 78px max(20px, calc((100vw - 1240px) / 2)) 104px;
}
.section-title > span {
  color: var(--cocoa);
  display: block;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 10px;
}
.section-title h2, .story-copy h2, .order-heading h2, .contact-section h2 {
  font-size: 50px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.12;
  margin: 0;
}
.centered-title { text-align: center; }
.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 46px;
}
.spotlight-product { min-width: 0; padding: 0 26px; }
.spotlight-product + .spotlight-product { border-right: 1px solid var(--line); }
.product-visual {
  aspect-ratio: 1.05;
  background-color: var(--cream);
  background-image: url("assets/madl-brand.png");
  background-repeat: no-repeat;
  width: 100%;
}
.product-visual.open-box { background-position: 53% 8%; background-size: 205%; }
.product-visual.gift-box { background-position: 50% 72%; background-size: 205%; }
.product-visual.brand-bag { background-position: 4% 29%; background-size: 195%; }
.spotlight-info {
  align-items: end;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding-top: 20px;
}
.spotlight-info span { color: var(--cocoa); display: block; font-size: 12px; font-weight: 900; }
.spotlight-info h3 { font-size: 20px; line-height: 1.35; margin: 7px 0 0; }
.spotlight-buy { align-items: center; display: flex; flex: 0 0 auto; gap: 12px; }
.spotlight-buy strong { font-size: 17px; white-space: nowrap; }
.spotlight-buy small { color: var(--muted); font-size: 10px; }
.spotlight-buy button {
  align-items: center;
  background: var(--gold);
  border: 0;
  color: var(--ink);
  display: inline-flex;
  font-size: 22px;
  height: 42px;
  justify-content: center;
  width: 42px;
}
.spotlight-buy button:hover { background: var(--ink); color: var(--white); }

.story-section {
  background: var(--ink);
  color: var(--white);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(380px, 0.85fr);
  min-height: 600px;
}
.story-image {
  background: var(--clay) url("assets/madl-brand.png") 39% 58% / cover no-repeat;
  min-height: 600px;
}
.story-copy {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 70px clamp(36px, 6vw, 90px);
}
.story-copy > span { color: var(--gold); font-size: 13px; font-weight: 900; margin-bottom: 14px; }
.story-copy p { color: rgba(255, 253, 250, 0.7); font-size: 17px; line-height: 1.9; margin: 24px 0 30px; max-width: 540px; }
.story-points { border-top: 1px solid rgba(255, 253, 250, 0.2); display: flex; flex-wrap: wrap; gap: 14px 26px; padding-top: 20px; width: 100%; }
.story-points b { font-size: 13px; }
.story-points b::before { color: var(--gold); content: "M"; font-family: Georgia, serif; margin-left: 8px; }

.menu-section {
  background: var(--cream);
  padding: 100px max(20px, calc((100vw - 1240px) / 2)) 112px;
}
.menu-header { align-items: end; display: flex; gap: 48px; justify-content: space-between; }
.menu-header > p { color: var(--muted); line-height: 1.9; margin: 0; max-width: 470px; }
.category-tabs {
  border-bottom: 3px solid var(--ink);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 52px;
}
.category-tabs button {
  align-items: flex-end;
  background: transparent;
  border: 0;
  color: var(--ink);
  display: flex;
  gap: 12px;
  justify-content: center;
  min-height: 70px;
  padding: 14px 12px;
}
.category-tabs button + button { border-right: 1px solid var(--line); }
.category-tabs button small { color: var(--cocoa); font-size: 11px; }
.category-tabs button span { font-size: 16px; font-weight: 900; }
.category-tabs button.active { background: var(--gold); }
.category-summary { align-items: center; display: flex; gap: 18px; justify-content: space-between; padding: 30px 0 12px; }
.category-summary strong { font-size: 24px; }
.category-summary span { color: var(--muted); font-size: 14px; }
.menu-list { border-top: 1px solid var(--line); }
.menu-item {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 22px;
  grid-template-columns: 100px minmax(0, 1fr) 100px 112px;
  min-height: 126px;
  padding: 22px 0;
}
.item-tag { color: var(--cocoa); font-size: 12px; font-weight: 900; }
.menu-copy h3 { font-size: 20px; margin: 0; }
.menu-copy p { color: var(--muted); font-size: 14px; line-height: 1.7; margin: 7px 0 0; }
.item-price { font-size: 19px; white-space: nowrap; }
.item-price small { color: var(--muted); font-size: 10px; }
.quantity-stepper {
  align-items: center;
  border: 1px solid var(--ink);
  display: grid;
  grid-template-columns: 36px 38px 36px;
  height: 38px;
}
.quantity-stepper button, .quantity-stepper output {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--ink);
  display: flex;
  height: 36px;
  justify-content: center;
}
.quantity-stepper output { border-inline: 1px solid var(--ink); font-size: 13px; font-weight: 900; }
.quantity-stepper button:hover { background: var(--ink); color: var(--white); }

.order-section {
  background: var(--cocoa);
  color: var(--white);
  display: grid;
  gap: 70px;
  grid-template-columns: minmax(260px, 0.65fr) minmax(0, 1.35fr);
  padding: 96px max(20px, calc((100vw - 1240px) / 2));
}
.order-heading > span { color: var(--gold-light); display: block; font-size: 13px; font-weight: 900; margin-bottom: 12px; }
.order-heading p { color: rgba(255, 253, 250, 0.66); font-size: 17px; }
.order-content { border-right: 1px solid rgba(255, 253, 250, 0.24); padding-right: 70px; }
.cart-summary { min-height: 170px; }
.empty-cart { color: rgba(255, 253, 250, 0.58); }
.cart-line, .total-row { align-items: center; display: flex; gap: 18px; justify-content: space-between; }
.cart-line { border-bottom: 1px solid rgba(255, 253, 250, 0.14); padding: 14px 0; }
.cart-line span { font-weight: 800; }
.cart-line small { color: rgba(255, 253, 250, 0.55); display: block; font-size: 11px; font-weight: 400; margin-top: 5px; }
.cart-line strong, .total-row strong { color: var(--gold-light); white-space: nowrap; }
.total-row { border-top: 2px solid var(--gold); font-size: 18px; margin-top: 20px; padding-top: 18px; }
.checkout-form { margin-top: 46px; }
.checkout-step { align-items: center; display: flex; gap: 16px; margin-bottom: 26px; }
.checkout-step > span {
  align-items: center;
  border: 1px solid var(--gold-light);
  color: var(--gold-light);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 900;
  height: 38px;
  justify-content: center;
  width: 38px;
}
.checkout-step h3 { font-size: 21px; margin: 0; }
.checkout-step p { color: rgba(255, 253, 250, 0.58); font-size: 13px; margin: 5px 0 0; }
.form-row { display: grid; gap: 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.checkout-form label { color: rgba(255, 253, 250, 0.7); display: block; font-size: 13px; margin-bottom: 24px; }
.checkout-form input:not([type="checkbox"]):not([type="radio"]), .checkout-form textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 253, 250, 0.42);
  border-radius: 0;
  color: var(--white);
  display: block;
  margin-top: 8px;
  outline: 0;
  padding: 10px 0 12px;
  resize: vertical;
  width: 100%;
}
.checkout-form input:not([type="checkbox"]):not([type="radio"])::placeholder, .checkout-form textarea::placeholder { color: rgba(255, 253, 250, 0.38); }
.checkout-form input:not([type="checkbox"]):not([type="radio"]):focus, .checkout-form textarea:focus { border-bottom-color: var(--gold-light); }
.checkout-form .terms-check, .checkout-form .payment-option {
  align-items: flex-start;
  display: flex;
  gap: 11px;
}
.terms-check input, .payment-option input { accent-color: var(--gold); flex: 0 0 auto; height: 18px; margin: 1px 0 0; width: 18px; }
.terms-check span { line-height: 1.6; }
.payment-gate {
  border-top: 1px solid rgba(255, 253, 250, 0.24);
  margin-top: 34px;
  opacity: 0.52;
  padding-top: 38px;
  transition: opacity 160ms ease;
}
.payment-gate.ready { opacity: 1; }
.checkout-form .payment-option {
  border: 1px solid rgba(255, 253, 250, 0.28);
  margin-bottom: 22px;
  padding: 16px;
}
.payment-option b, .payment-option small { display: block; }
.payment-option b { color: var(--white); font-size: 15px; }
.payment-option small { color: rgba(255, 253, 250, 0.55); margin-top: 5px; }
.checkout-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 16px; }
.whatsapp-action {
  align-items: center;
  background: var(--sage);
  border: 0;
  color: var(--white);
  display: inline-flex;
  font-weight: 900;
  gap: 32px;
  min-height: 52px;
  padding: 13px 22px;
}
.copy-action { background: transparent; border: 0; color: var(--white); padding: 12px 5px; text-decoration: underline; text-underline-offset: 5px; }

.contact-section {
  align-items: center;
  background: var(--gold);
  color: var(--ink);
  display: grid;
  gap: 48px;
  grid-template-columns: 180px minmax(0, 1fr) auto;
  padding: 74px max(20px, calc((100vw - 1240px) / 2));
}
.contact-logo {
  align-items: center;
  border: 3px solid var(--ink);
  display: flex;
  font-family: Georgia, serif;
  font-size: 80px;
  height: 150px;
  justify-content: center;
  width: 150px;
}
.contact-section > div > span { display: block; font-size: 13px; font-weight: 900; margin-bottom: 8px; }
.contact-actions { align-items: stretch; display: flex; flex-direction: column; gap: 10px; }
.contact-actions a { direction: ltr; font-size: 20px; font-weight: 900; }
.contact-actions a:last-child { align-items: center; background: var(--ink); color: var(--white); direction: rtl; display: flex; gap: 28px; justify-content: space-between; min-height: 50px; padding: 12px 18px; }
.site-footer { align-items: center; background: var(--ink); color: rgba(255, 253, 250, 0.62); display: flex; font-size: 13px; justify-content: space-between; padding: 24px max(20px, calc((100vw - 1240px) / 2)); }
.site-footer p { margin: 0; }

@media (max-width: 980px) {
  .nav-group { gap: 18px; }
  .hero-shape { width: 58%; }
  .hero-content { width: 54%; }
  .hero-content h1 { font-size: 78px; }
  .hero-tagline { font-size: 37px; }
  .spotlight-product { padding-inline: 16px; }
  .spotlight-info { align-items: start; flex-direction: column; }
  .story-section { grid-template-columns: 1fr; }
  .story-image { min-height: 520px; }
  .story-copy { min-height: 500px; }
  .menu-item { grid-template-columns: 80px minmax(0, 1fr) 90px 112px; }
  .order-section { gap: 48px; grid-template-columns: 1fr; }
  .order-content { border-right: 0; border-top: 1px solid rgba(255, 253, 250, 0.24); padding-right: 0; padding-top: 42px; }
  .contact-section { grid-template-columns: 150px 1fr; }
  .contact-actions { grid-column: 2; }
}

@media (max-width: 680px) {
  .hero-section {
    background-position: 42% 14%;
    height: 89svh;
    max-height: 760px;
    min-height: 650px;
    padding: 78px 16px 74px;
  }
  .topbar { gap: 14px; grid-template-columns: 1fr auto; height: 78px; padding-inline: 16px; }
  .nav-primary, .nav-secondary > a:first-child { display: none; }
  .brand-mark { justify-self: start; }
  .nav-secondary { justify-self: end; }
  .brand-icon { font-size: 21px; height: 42px; width: 42px; }
  .brand-name strong { font-size: 18px; }
  .hero-shape {
    clip-path: polygon(0 13%, 100% 0, 100% 100%, 0 100%);
    height: 56%;
    inset: auto 0 0;
    width: 100%;
  }
  .hero-content { align-self: flex-end; max-width: none; padding-bottom: 28px; width: 100%; }
  .hero-kicker { font-size: 12px; }
  .hero-content h1 { font-size: 58px; }
  .hero-tagline { font-size: 30px; margin-block: 14px 20px; }
  .hero-cta { justify-content: space-between; width: 100%; }
  .hero-note { display: none; }
  .hero-wave { height: 60px; }

  .spotlight-section { padding: 60px 16px 76px; }
  .section-title h2, .story-copy h2, .order-heading h2, .contact-section h2 { font-size: 36px; }
  .spotlight-grid { gap: 46px; grid-template-columns: 1fr; margin-top: 36px; }
  .spotlight-product { padding: 0; }
  .spotlight-product + .spotlight-product { border-right: 0; border-top: 1px solid var(--line); padding-top: 46px; }
  .product-visual { aspect-ratio: 1.15; }
  .spotlight-info { align-items: end; flex-direction: row; }

  .story-image { min-height: 360px; }
  .story-copy { min-height: 460px; padding: 58px 20px; }
  .story-copy p { font-size: 15px; }
  .story-points { gap: 12px 18px; }

  .menu-section { padding: 72px 16px 84px; }
  .menu-header { align-items: start; flex-direction: column; gap: 18px; }
  .category-tabs { display: flex; margin-top: 36px; overflow-x: auto; }
  .category-tabs button { flex: 0 0 160px; justify-content: flex-start; }
  .category-tabs button + button { border-right: 1px solid var(--line); }
  .category-summary { align-items: flex-start; flex-direction: column; gap: 7px; padding-top: 24px; }
  .menu-item {
    align-items: start;
    gap: 9px 16px;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 150px;
    padding: 22px 0;
  }
  .item-tag { grid-column: 1; }
  .menu-copy { grid-column: 1; }
  .menu-copy h3 { font-size: 18px; }
  .menu-copy p { font-size: 13px; }
  .item-price { grid-column: 2; grid-row: 1; }
  .quantity-stepper { grid-column: 2; grid-row: 2; }

  .order-section { padding: 72px 16px; }
  .form-row { grid-template-columns: 1fr; }
  .checkout-actions { align-items: stretch; flex-direction: column; }
  .whatsapp-action { justify-content: space-between; width: 100%; }

  .contact-section { gap: 28px; grid-template-columns: 100px minmax(0, 1fr); padding: 58px 16px; }
  .contact-logo { font-size: 54px; height: 96px; width: 96px; }
  .contact-actions { grid-column: 1 / -1; }
  .contact-actions a:last-child { width: 100%; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 10px; padding-inline: 16px; }
}

