/* Campaign layout, tuned for both reading directions. */
:root {
  --home-gutter: clamp(14px, 4vw, 44px);
  --home-ink: #170e2e;
  --home-muted: #625964;
  --home-rose: #990053;
  --home-border: #e6ded4;
  --home-paper: #fffdf8;
}

#home.hero, .home-quick, .home-shopping, .home-services, #featured {
  width: calc(100% - var(--home-gutter) * 2);
  max-width: 1240px;
  margin-inline: auto;
}

#home.hero {
  --hero-ink: var(--menu-frame-ink, #fff);
  --hero-frame: clamp(6px, .85vw, 12px);
  --hero-photo-pink: #f959a5;
  display: grid;
  grid-template: "details photo" auto / minmax(0, 1fr) minmax(0, 1.85fr);
  position: relative;
  min-height: 0;
  margin-block: clamp(12px, 2vw, 26px) 0;
  padding: var(--hero-frame);
  isolation: isolate;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--hero-ink) 12%, transparent);
  border-radius: clamp(22px, 2.5vw, 36px);
  background: var(--menu-frame-bg, #0d002c);
  color: var(--hero-ink);
}
#home.hero::before, #home.hero::after,
#home .hero-visual::before, #home .hero-visual::after { display: none; }

#home .hero-content {
  grid-area: details;
  display: grid;
  align-content: center;
  grid-template-areas: "copy" "actions";
  gap: clamp(20px, 2.6vw, 38px);
  min-width: 0;
  box-sizing: border-box;
  padding: clamp(18px, 2.55vw, 37px);
}
#home .hero-copy {
  grid-area: copy;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  color: inherit;
}
#home .hero-copy h1 {
  margin: 0;
  color: inherit;
  font: 800 clamp(2.2rem, 4.35vw, 4.3rem)/1.13 var(--home-display);
  letter-spacing: -.04em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
html:lang(ar) #home .hero-copy h1 {
  line-height: 1.25;
  letter-spacing: 0;
}
#home .hero-copy .hero-description {
  margin: .7em 0 0;
  max-width: 32ch;
  color: inherit;
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  line-height: 1.65;
}
#home .hero-visual {
  grid-area: photo;
  display: grid;
  align-self: center;
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: auto;
  aspect-ratio: 3 / 2;
  margin: 0;
  padding: 0;
  border-radius: clamp(15px, 1.8vw, 24px);
  overflow: hidden;
  background: var(--hero-photo-pink);
}
#home .hero-art, #home .hero-art .hero-burger {
  display: block;
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  max-width: none;
  margin: 0;
  object-fit: contain;
  transform: none;
  filter: none;
  animation: none;
}
#home .hero-art .hero-burger[hidden] { display: none; }
#home .hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url('/assets/food-hq/juicy-smash-stacked-pink.webp') center / 100% 100% no-repeat;
  clip-path: inset(32% 4% 33% 53%);
  filter: url(#hero-campaign-lettering);
  pointer-events: none;
}
.hero-art-filter { position: absolute; pointer-events: none; }
.hero-lettering-color { flood-color: var(--menu-frame-bg, #0d002c); }
#home .hero-halal-mark {
  position: absolute;
  right: clamp(8px, 2.75%, 22px);
  bottom: clamp(8px, 3%, 18px);
  width: clamp(82px, 22%, 128px);
  height: auto;
  filter: url(#hero-halal-transparency);
}

#home .hero-actions, .home-meal-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

#home .hero-actions { grid-area: actions; align-self: start; gap: 9px; }

#home .home-order, #home .home-menu-link, .home-meal-action, .home-meal-actions .home-section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  box-sizing: border-box;
  padding: 9px clamp(13px, 2vw, 22px);
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--home-ink);
  color: #fff;
  font: 750 .94rem/1.4 var(--type-text);
  text-align: center;
  text-decoration: none;
  box-shadow: none;
}

#home .home-order[hidden], .home-meal-action[hidden] { display: none; }
#home .hero-actions > :is(.home-order, .home-menu-link) { padding-inline: 16px; }
#home .home-menu-link {
  background: transparent;
  color: var(--hero-ink);
  border-color: color-mix(in srgb, var(--hero-ink) 60%, transparent);
}
#home .home-menu-link:hover { background: color-mix(in srgb, var(--hero-ink) 9%, transparent); }
#home .home-order {
  background: var(--hero-photo-pink);
  color: #0d002c;
}
#home .home-order:hover { background: #f04a9a; }
.home-meal-action:hover { background: #75003e; }
.home-meal-actions .home-section-link {
  background: #ffffff85;
  color: var(--home-ink);
  border-color: #d8c4d1;
}
.home-meal-actions .home-section-link:hover { background: #faeaf2; }

#home .hero-offer-alert {
  min-height: 46px;
  margin: 0;
  padding: 5px 10px;
  border: 1px solid #edc9dc;
  border-radius: 12px;
  background: #ffedf6;
  color: #790044;
  box-shadow: none;
  animation: none;
}
#home .hero-offer-alert > span:nth-child(2) { font-size: .82rem; }
#home .hero-offer-alert small, #home .hero-offer-alert > span:last-child { display: none; }

.home-quick, #featured, .home-shopping, .home-services {
  margin-block: clamp(20px, 3.5vw, 47px) 0;
}

.home-section-heading, #featured .spotlight-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px 14px;
  margin: 0 0 14px;
}

.home-section-heading h2, #home-meal-title {
  margin: 0;
  color: var(--home-ink);
  font-family: var(--home-display);
  font-size: clamp(1.35rem, 2.9vw, 2.48rem);
  font-weight: 850;
  line-height: 1.3;
}
.home-section-heading h2 { color: var(--menu-frame-ink, #fff); }

.home-search, .home-section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--menu-frame-accent, #ff78b7);
  font: 750 .88rem/1.35 var(--type-text);
  text-underline-offset: 4px;
}

.home-search svg {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}

#featured { padding: 0; background: transparent; }
#featured[hidden] { display: none; }

#featured .spotlight-track {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: clamp(8px, 1.55vw, 20px);
  padding: 0;
  overflow: visible;
}

#featured .spotlight-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--home-border);
  border-radius: clamp(15px, 1.6vw, 22px);
  background: var(--home-paper);
  color: var(--home-ink);
  box-shadow: none;
}

#featured .spotlight-card:hover { border-color: #ac5a82; transform: none; }

#featured .spotlight-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  background: #f8f0e6;
  border-radius: 0;
}

#featured .spotlight-card img:is([src*="/media/menu/"], [src*="menu-studio/"]) {
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent),
              linear-gradient(to bottom, transparent, black 7%, black 93%, transparent);
  mask-composite: intersect;
}

#featured .spotlight-bottom {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  padding: 11px clamp(10px, 1.35vw, 17px);
}

#featured .spotlight-bottom > span { flex: none; min-width: 0; }
#featured .spotlight-name strong {
  display: block;
  min-width: 0;
  font-family: var(--home-display);
  font-weight: 800;
  font-size: clamp(.89rem, 1.55vw, 1.14rem);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

#featured .spotlight-action-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
  padding-block-start: 7px;
  border-block-start: 1px solid #efe3e8;
}
#featured :is(.spotlight-price, .offer-new-price) {
  color: var(--home-rose);
  font-size: clamp(1rem, 1.65vw, 1.23rem);
}

.spotlight-open-icon {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  height: 30px;
  border-radius: 50%;
  background: #f7e8ef;
  color: var(--home-rose);
}
.spotlight-open-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
}

.home-meal-banner {
  display: grid;
  grid-template: "photo copy" / minmax(0, 1.3fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(10px, 3.5vw, 46px);
  padding: clamp(15px, 3.25vw, 38px);
  border: 1px solid var(--home-border);
  border-radius: clamp(20px, 2.8vw, 36px);
  background: #f6efe5;
  color: var(--home-ink);
}

.home-meal-copy { grid-area: copy; min-width: 0; }
.home-meal-copy p {
  max-width: 32ch;
  margin: 8px 0 15px;
  color: var(--home-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.home-meal-photo {
  grid-area: photo;
  background: transparent;
}

.home-meal-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.home-services {
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
  align-items: start;
  gap: 12px;
  padding: clamp(11px, 1.8vw, 20px);
  border: 1px solid var(--home-border);
  border-radius: 17px;
  background: var(--home-paper);
  color: var(--home-ink);
}

.home-service-main {
  display: flex;
  align-items: center;
  min-height: 44px;
  justify-content: space-between;
  gap: 8px;
}
.home-service-main a { min-width: 0; color: inherit; text-decoration: none; }
.home-service-main small {
  display: block;
  margin-top: 3px;
  color: var(--home-muted);
  font-size: .84rem;
  line-height: 1.4;
}

.home-alerts {
  justify-self: end;
  width: min(100%, 355px);
  min-width: 0;
}

.home-alerts > summary {
  min-height: 44px;
  box-sizing: border-box;
  padding: 10px 11px;
  border: 1px solid var(--home-border);
  border-radius: 10px;
  background: #fbf7f1;
  color: var(--home-ink);
  font-weight: 750;
  cursor: pointer;
}
.home-alert-controls { display: grid; gap: 8px; margin-top: 8px; }

.home-alerts :is([data-sound-controls], [data-push-controls]) {
  display: block;
  width: 100%;
  position: static;
  z-index: auto;
}

.home-alerts .sound-settings > summary {
  width: 100%;
  max-width: none;
  box-shadow: none;
  white-space: normal;
  text-align: start;
}

.home-alerts .sound-panel {
  position: static;
  width: 100%;
  max-width: none;
  margin-top: 4px;
  box-shadow: none;
  padding: 12px;
}

#home :is(a, button):focus-visible, .home-quick :is(a, button):focus-visible,
#featured :is(a, button):focus-visible, .home-shopping :is(a, button):focus-visible,
.home-services :is(a, button, summary):focus-visible {
  outline: 2px solid var(--home-rose);
  outline-offset: 3px;
}
#home :is(a, button):focus-visible { outline-color: var(--hero-ink); }

@media (max-width: 760px) {
  #home.hero { grid-template: "photo" auto "details" auto / minmax(0,1fr); }
  #home .hero-content { padding: 17px clamp(12px, 3.6vw, 26px) 16px; gap: 16px; }
  #home .hero-copy h1 { font-size: clamp(2.05rem, 7.2vw, 3.1rem); }
  #home .hero-copy .hero-description { max-width: none; margin-top: 5px; }
  #home .hero-actions > :is(.home-menu-link, .home-order) { flex: 1 1 auto; min-height: 46px; }
  #featured .spotlight-track { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .home-meal-banner { grid-template: "photo" auto "copy" auto / minmax(0,1fr); }
  .home-meal-photo img { width: min(100%, 560px); margin-inline: auto; }
  .home-services { grid-template-columns: minmax(0,1fr); }
  .home-alerts { width: 100%; }
}

#customer-offers {
  width: calc(100% - var(--home-gutter) * 2);
  max-width: 1240px;
  margin: clamp(20px, 3.5vw, 47px) auto 0;
  background: transparent;
}
.home-offers-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr));
  gap: clamp(10px, 1.55vw, 20px);
}
.home-offers-list .offer-card { max-width: none; }
.home-deal-card {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 42%) 1fr;
  align-items: center;
  border: 1px solid var(--home-border);
  border-radius: 16px;
  background: var(--home-paper);
  color: var(--home-ink);
  text-align: start;
  font: inherit;
  cursor: pointer;
}
.home-deal-card img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; }
.home-deal-info { display: grid; gap: 6px; padding: 12px; line-height: 1.45; }
.home-deal-info:only-child { grid-column: 1 / -1; }
.home-deal-info b { color: var(--home-rose); }
.home-deal-card:focus-visible { outline: 3px solid var(--home-rose); outline-offset: 2px; }

#customer-offers .offer-card {
  align-self: start;
  gap: 4px;
  padding: 12px 16px;
  background: var(--home-paper);
  color: var(--home-ink);
  border: 1px solid var(--home-border);
  border-inline-start: 3px solid var(--home-rose);
  border-radius: 14px;
}
#customer-offers .offer-card h3 { font-size: 17px; gap: 6px; }
#customer-offers .offer-amount { font-size: 22px; color: var(--home-rose); }
#customer-offers .offer-card p { margin: 0; line-height: 1.5; }
#customer-offers .offer-example-price { font-size: 18px; }
#customer-offers .offer-example-price:empty { display: none; }
#customer-offers .offer-card a { display: inline-flex; align-items: center; min-height: 44px; }


/* Shared visual rhythm from featured dishes through the full menu. */
.home-section-heading h2, #featured .spotlight-heading h2 {
  display: inline-flex;
  align-items: center;
  gap: .48em;
}
.home-section-heading h2::before {
  content: "";
  width: .27em;
  height: .9em;
  flex: none;
  border-radius: 1em;
  background: #c43876;
}
.home-offers-list .home-deal-card {
  border-radius: 18px;
  background: var(--home-paper);
}
#home-meals { margin-block-end: clamp(28px, 5vw, 76px); }
.home-meal-banner { padding: 0; gap: 0; overflow: hidden; }
.home-meal-copy { padding: clamp(20px, 4vw, 52px); }
.home-meal-photo { align-self: stretch; display: grid; place-items: center; }
.home-meal-photo img { object-fit: contain; }
@media (min-width: 761px) {
  .home-meal-photo { border-inline-end: 1px solid var(--home-border); }
}
@media (max-width: 760px) {
  .home-meal-copy { padding-block-start: 14px; }
}
