/* =========================================================
   Waffle Cart — وافل كارت
   Palette pulled from the logo paper, logo ink, the cone
   sleeve, the neon sign, and the waffles themselves.
   ========================================================= */
:root {
  --oat: #F1EDE4;        /* logo paper */
  --paper: #FFFDF8;      /* cone paper */
  --delft: #3E5C86;      /* logo ink */
  --sleeve: #2E3383;     /* cone sleeve indigo */
  --sleeve-deep: #1F2366;
  --neon: #CFE3FF;       /* sign glow */
  --caramel: #E2A45A;    /* waffle */
  --pistachio: #A9CB78;
  --ink: #232653;

  --font-ar-display: "Lalezar", "Baloo Bhaijaan 2", system-ui, sans-serif;
  --font-body: "Baloo Bhaijaan 2", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;

  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --max: 1240px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--oat);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

:focus-visible { outline: 3px solid var(--sleeve); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; inset-inline-start: 1rem; top: -4rem;
  background: var(--sleeve); color: #fff; padding: .5rem 1rem; border-radius: 8px; z-index: 100;
}
.skip:focus { top: 1rem; }

/* Display type: Lalezar in Arabic, rounded heavy Baloo in English (echoes the logo lettering) */
.display {
  font-family: var(--font-ar-display);
  font-weight: 400;
  line-height: 1.15;
  color: var(--sleeve);
}
html[lang="en"] .display {
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.02;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 700 1.05rem/1 var(--font-body);
  text-decoration: none;
  padding: .95rem 1.5rem .85rem;
  border-radius: 999px;
  border: 3px solid var(--sleeve);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn-book {
  background: var(--sleeve); color: #fff;
  box-shadow: 0 5px 0 var(--sleeve-deep);
}
.btn-book:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--sleeve-deep); }
.btn-book:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--sleeve-deep); }
.btn-ghost { background: transparent; color: var(--sleeve); }
.btn-ghost:hover { background: #fff; }

/* ---------------- Header ---------------- */
.top {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 1.5rem;
  padding: .7rem var(--pad);
  background: color-mix(in srgb, var(--oat) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid color-mix(in srgb, var(--delft) 18%, transparent);
}
.brand img { width: 62px; height: auto; }
.nav { display: flex; gap: 1.6rem; margin-inline-start: .5rem; }
.nav a {
  text-decoration: none; font-weight: 600; color: var(--delft);
  padding-block: .3rem; background: linear-gradient(var(--caramel), var(--caramel)) no-repeat 0 100% / 0 3px;
  transition: background-size .2s ease;
}
.nav a:hover { background-size: 100% 3px; }
.top-actions { margin-inline-start: auto; display: flex; align-items: center; gap: .55rem; }
.top .btn { padding: .7rem 1.15rem .6rem; font-size: .98rem; }

.soc {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 12px;
  border: 2px solid var(--delft);
  color: var(--delft);
  background:
    linear-gradient(var(--oat), var(--oat)) padding-box,
    repeating-linear-gradient(45deg, var(--delft) 0 2px, transparent 2px 6px) border-box;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.soc svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.soc svg .dot { fill: currentColor; stroke: none; }
.soc:hover { transform: rotate(-8deg); background: var(--delft); color: #fff; }

.lang {
  min-width: 52px; height: 42px; padding: 0 .8rem;
  border-radius: 12px; border: 2px solid var(--delft);
  background: #fff; color: var(--delft);
  font: 700 1rem/1 var(--font-body); cursor: pointer;
}
.lang:hover { background: var(--neon); }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  max-width: var(--max); margin: 0 auto;
  min-height: calc(100svh - 70px);
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 2rem;
  padding: clamp(2rem, 5vw, 4rem) var(--pad) 3rem;
}
.lattice-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(45deg, transparent 47%, color-mix(in srgb, var(--delft) 9%, transparent) 47% 53%, transparent 53%),
    linear-gradient(-45deg, transparent 47%, color-mix(in srgb, var(--delft) 9%, transparent) 47% 53%, transparent 53%);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 60% 70% at 70% 45%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 70% 45%, #000 20%, transparent 75%);
}
html[dir="rtl"] .lattice-bg {
  mask-image: radial-gradient(ellipse 60% 70% at 30% 45%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 30% 45%, #000 20%, transparent 75%);
}

.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.8rem); }
.lede { margin-top: 1.1rem; max-width: 34ch; font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--delft); }

.dip { margin-top: 2rem; }
.dip-label { font-weight: 700; color: var(--sleeve); margin-bottom: .6rem; font-size: 1.15rem; }
.dip-options { display: flex; flex-wrap: wrap; gap: .55rem; }
.chip {
  display: inline-flex; align-items: center; gap: .55rem;
  font: 600 1rem/1 var(--font-body); color: var(--sleeve);
  padding: .6rem 1rem .55rem .6rem;
  border: 2px solid var(--sleeve); border-radius: 999px; background: var(--paper);
  cursor: pointer; transition: background .15s ease, color .15s ease, transform .15s ease;
}
html[dir="rtl"] .chip { padding: .6rem .6rem .55rem 1rem; }
.chip i {
  width: 22px; height: 22px; border-radius: 50%; background: var(--c);
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.15); border: 2px solid var(--sleeve);
}
.chip:hover { transform: translateY(-2px); }
.chip[aria-pressed="true"] { background: var(--sleeve); color: #fff; }
.chip[aria-pressed="true"] i { border-color: #fff; }
.dip-status { min-height: 1.6em; margin-top: .5rem; font-size: .98rem; color: var(--delft); }

.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }

.stage { position: relative; justify-self: center; width: min(100%, 470px); }
.cone { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 22px 24px rgba(35, 38, 83, .18)); animation: sway 6s ease-in-out infinite; transform-origin: 50% 95%; }
@keyframes sway { 0%, 100% { transform: rotate(-2.5deg); } 50% { transform: rotate(2.5deg); } }

.coat { transition: transform .75s cubic-bezier(.2, .9, .25, 1.15); }
.coat.is-off { transform: translateX(-270px); }
#coatPath { transition: fill .3s ease; }
.top-item { transform-box: fill-box; transform-origin: center; animation: drop .5s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes drop { from { transform: translateY(-40px) scale(.2); opacity: 0; } to { transform: none; opacity: 1; } }
.drizzle { stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: draw 1s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero-mascot {
  position: absolute; width: 38%; bottom: 4%; inset-inline-start: -14%;
}
html[dir="ltr"] .hero-mascot { inset-inline-start: auto; inset-inline-end: -12%; }
.hero-mascot.cheer { animation: cheer .6s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes cheer { 40% { transform: translateY(-26%) rotate(-8deg); } }

.crumbs { position: absolute; inset: 0; pointer-events: none; }
.crumbs span {
  position: absolute; width: 8px; height: 8px; border-radius: 2px;
  animation: crumb 1s ease-out forwards;
}
@keyframes crumb { to { transform: translate(var(--dx), var(--dy)) rotate(260deg); opacity: 0; } }

/* ---------------- Mascot ---------------- */
.mascot { width: 100%; height: auto; overflow: visible; --m-line: var(--sleeve); --m-fill: #EAF3FF; --m-grid: #9FB8DD; }
.mascot .rim, .mascot .melt { fill: var(--m-fill); stroke: var(--m-line); stroke-width: 5; stroke-linejoin: round; }
.mascot .melt { stroke-width: 4; }
.mascot .mgrid path { stroke: var(--m-grid); stroke-width: 3; fill: none; }
.mascot .limb-o { stroke: var(--m-line); stroke-width: 15; stroke-linecap: round; fill: none; }
.mascot .limb-i { stroke: var(--m-fill); stroke-width: 6; stroke-linecap: round; fill: none; }
.mascot .shoe, .mascot .hand { fill: var(--m-fill); stroke: var(--m-line); stroke-width: 4.5; }
.mascot .fist { stroke: var(--m-line); stroke-width: 2.5; stroke-linecap: round; }
.mascot .eye { fill: #fff; stroke: var(--m-line); stroke-width: 4; }
.mascot .pupil { fill: var(--m-line); }
.mascot .mouth { fill: var(--m-line); stroke: var(--m-line); stroke-width: 3; stroke-linejoin: round; }
.mascot .teeth { stroke: var(--m-fill); stroke-width: 2.5; stroke-linecap: round; }

.mascot .leg-a { transform-origin: 96px 164px; animation: legA .44s ease-in-out infinite alternate; }
.mascot .leg-b { transform-origin: 124px 162px; animation: legB .44s ease-in-out infinite alternate; }
.mascot .arm-a { transform-origin: 50px 100px; animation: armA .44s ease-in-out infinite alternate; }
.mascot .arm-b { transform-origin: 170px 112px; animation: armB .44s ease-in-out infinite alternate; }
.mascot .bob { animation: bob .22s ease-in-out infinite alternate; }
.mascot .pupils { animation: look 4s steps(1) infinite; }
@keyframes legA { from { transform: rotate(-22deg); } to { transform: rotate(26deg); } }
@keyframes legB { from { transform: rotate(24deg); } to { transform: rotate(-24deg); } }
@keyframes armA { from { transform: rotate(-12deg); } to { transform: rotate(14deg); } }
@keyframes armB { from { transform: rotate(20deg); } to { transform: rotate(-26deg); } }
@keyframes bob { from { transform: translateY(0); } to { transform: translateY(-6px); } }
@keyframes look { 0%, 70% { transform: none; } 71%, 85% { transform: translate(-7px, 3px); } 86% { transform: none; } }

/* Running direction follows reading direction */
html[dir="rtl"] .hero-mascot .mascot,
html[dir="rtl"] .neon-mascot .mascot { transform: scaleX(-1); }

/* ---------------- Menu ---------------- */
.menu, .events, .visit { max-width: var(--max); margin: 0 auto; padding: clamp(4rem, 9vw, 7rem) var(--pad); }
.section-title { font-size: clamp(2.4rem, 5vw, 4rem); }
.section-lede { margin-top: .6rem; max-width: 48ch; color: var(--delft); }

.cones {
  margin-top: 3rem;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem);
}
.cone-card:nth-child(2) { transform: translateY(2.5rem); }
.cone-card h3 { margin-top: 1.1rem; font-size: 1.45rem; font-weight: 800; color: var(--sleeve); line-height: 1.3; }
.cone-card p { margin-top: .25rem; color: var(--delft); max-width: 32ch; }

/* The photo sits inside the brand's own paper cone: pale paper up top, indigo lattice pocket below */
.cone-frame {
  position: relative; aspect-ratio: 4 / 5;
  clip-path: polygon(0% 11%, 12% 6%, 30% 2%, 50% 0%, 70% 2%, 88% 6%, 100% 11%, 55% 97%, 50% 100%, 45% 97%);
  background: var(--paper);
}
.cone-frame img {
  width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, center);
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.cone-frame::after {
  content: ""; position: absolute; inset: 0;
  clip-path: polygon(0% 66%, 25% 70%, 50% 72%, 75% 70%, 100% 66%, 55% 97%, 50% 100%, 45% 97%);
  background:
    linear-gradient(45deg, transparent 44%, var(--sleeve-deep) 44% 56%, transparent 56%),
    linear-gradient(-45deg, transparent 44%, var(--sleeve-deep) 44% 56%, transparent 56%),
    var(--sleeve);
  background-size: 26px 26px, 26px 26px, auto;
  transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}
.cone-card:hover .cone-frame::after { transform: translateY(12%); }
.cone-card:hover .cone-frame img { transform: translateY(-4%) scale(1.04); }

.also {
  margin-top: 5rem; padding: 1.8rem 2rem;
  border: 3px dashed color-mix(in srgb, var(--delft) 45%, transparent); border-radius: 28px;
  display: grid; grid-template-columns: auto 1fr; gap: .4rem 2.5rem; align-items: start;
}
.also-title { font-weight: 800; color: var(--sleeve); font-size: 1.3rem; }
.also ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.also li { display: flex; flex-wrap: wrap; gap: .2rem 1rem; align-items: baseline; }
.also strong { color: var(--sleeve); font-size: 1.2rem; }
.also span { color: var(--delft); }
.also .note { grid-column: 1 / -1; margin-top: .6rem; font-size: .95rem; color: var(--delft); opacity: .8; }

.review { margin: 4.5rem auto 0; text-align: center; max-width: 40rem; }
.review .stars { color: var(--caramel); font-size: 1.4rem; letter-spacing: .2em; }
.review blockquote { margin: .2rem 0 0; font-family: var(--font-ar-display); font-size: clamp(2rem, 4.4vw, 3.2rem); color: var(--sleeve); line-height: 1.25; }
html[lang="en"] .review blockquote { font-family: var(--font-body); font-weight: 800; }
.review figcaption { color: var(--delft); margin-top: .3rem; }

/* ---------------- Night / neon ---------------- */
.night {
  background:
    radial-gradient(circle at 20% 10%, rgba(120, 140, 255, .18), transparent 45%),
    var(--sleeve-deep);
  color: #fff; overflow: hidden;
}
.night-inner {
  max-width: var(--max); margin: 0 auto; padding: clamp(4rem, 9vw, 7rem) var(--pad);
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center;
}
.neon {
  direction: ltr; text-align: start;
  font: 800 clamp(2.2rem, 5.6vw, 5.2rem)/1 var(--font-body);
  white-space: nowrap;
  letter-spacing: .02em;
  color: #2a3070;
  -webkit-text-stroke: 2px #4a5198;
  transition: color .1s;
}
html[dir="rtl"] .neon { text-align: right; }
.night.on .neon { animation: flicker 1.4s linear forwards; }
@keyframes flicker {
  0%, 8%, 14%, 30% { color: #2a3070; text-shadow: none; -webkit-text-stroke-color: #4a5198; }
  6%, 12%, 22%, 36%, 100% {
    color: #fff; -webkit-text-stroke-color: var(--neon);
    text-shadow: 0 0 6px #fff, 0 0 18px var(--neon), 0 0 42px #7FA8FF, 0 0 80px #4E73FF;
  }
}
.neon-track { position: relative; height: clamp(90px, 12vw, 130px); margin-block: .8rem 1.2rem; }
.neon-mascot {
  position: absolute; top: 0; height: 100%; aspect-ratio: 220 / 250;
  inset-inline-start: 0;
  transform: translateX(var(--run, 0px));
}
.neon-mascot .mascot {
  --m-line: #BFD8FF; --m-fill: #1F2366; --m-grid: #5d79c9;
  filter: drop-shadow(0 0 6px #9CC0FF) drop-shadow(0 0 16px #5E86FF);
}
.neon-mascot .eye { fill: #1F2366; }
.night-title { color: #fff; font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
.night-hours { margin-top: .5rem; font-size: 1.3rem; color: var(--neon); }
.night-photo { margin: 0; border-radius: 30px; overflow: hidden; border: 4px solid var(--neon); box-shadow: 0 0 40px rgba(127, 168, 255, .35); transform: rotate(2deg); }
html[dir="ltr"] .night-photo { transform: rotate(-2deg); }
.night-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 35% 50%; }

/* ---------------- Events ---------------- */
.events { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.events-photo { margin: 0; position: relative; }
.events-photo img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; border-radius: 999px 999px 28px 28px; border: 4px solid var(--sleeve); }
.events-copy p { margin-block: 1rem 1.6rem; max-width: 42ch; color: var(--delft); font-size: 1.2rem; }

/* ---------------- Visit ---------------- */
.visit { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: stretch; }
.facts { margin: 2rem 0 0; display: grid; gap: 1.1rem; }
.facts div { border-inline-start: 5px solid var(--caramel); padding-inline-start: 1rem; }
.facts dt { font-weight: 700; color: var(--delft); font-size: .95rem; }
.facts dd { margin: 0; font-size: 1.3rem; font-weight: 600; color: var(--sleeve); }
.facts a { text-decoration: none; }
.visit-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.map {
  min-height: 380px; border-radius: 30px; overflow: hidden; padding: 10px;
  background:
    linear-gradient(45deg, transparent 44%, var(--sleeve-deep) 44% 56%, transparent 56%),
    linear-gradient(-45deg, transparent 44%, var(--sleeve-deep) 44% 56%, transparent 56%),
    var(--sleeve);
  background-size: 22px 22px, 22px 22px, auto;
}
.map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; border-radius: 22px; display: block; filter: saturate(.85); }

/* ---------------- Footer ---------------- */
.foot {
  position: relative; margin-top: 6rem;
  background: var(--sleeve); color: #fff; text-align: center;
  padding: 4.5rem var(--pad) 2rem;
}
.foot-mascot {
  position: absolute; width: 130px; left: 50%; top: 0;
  transform: translate(-50%, 10%); z-index: -1;
  transition: transform .6s cubic-bezier(.3, 1.6, .5, 1);
}
.foot.seen .foot-mascot { transform: translate(-50%, -62%); }
.foot-mascot .leg, .foot-mascot .bob, .foot-mascot .arm-b { animation: none; }
.foot-mascot .arm-a { animation: wave .5s ease-in-out infinite alternate; }
@keyframes wave { from { transform: rotate(-20deg); } to { transform: rotate(18deg); } }
.foot-logo { width: 120px; height: auto; margin: 0 auto; }
.foot-line { margin-top: 1rem; color: var(--neon); }
.foot-soc { display: flex; justify-content: center; gap: .7rem; margin-top: 1.3rem; }
.soc-light { color: #fff; border-color: #fff; background: transparent; }
.soc-light:hover { background: #fff; color: var(--sleeve); }
.copy { margin-top: 1.6rem; font-size: .9rem; opacity: .7; }

/* ---------------- Responsive ---------------- */
@media (max-width: 960px) {
  .nav { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; text-align: start; }
  .stage { order: -1; width: min(78%, 360px); }
  .hero-mascot, html[dir="ltr"] .hero-mascot { width: 34%; inset-inline-start: auto; inset-inline-end: -8%; }
  html[dir="rtl"] .hero-mascot { inset-inline-end: auto; inset-inline-start: -8%; }
  .cones { grid-template-columns: 1fr 1fr; }
  .cone-card:nth-child(2) { transform: none; }
  .night-inner, .events, .visit { grid-template-columns: 1fr; }
  .also { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 1.05rem; }
  .top { gap: .6rem; }
  .brand img { width: 50px; }
  .top .soc { display: none; }
  .top .btn { padding: .6rem .9rem .5rem; font-size: .9rem; }
  .cones { grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; }
  .hero-cta .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .night .neon { color: #fff; text-shadow: 0 0 18px var(--neon); }
}
