/* =========================================================
   Taste of Dubai — modern food-landing layout
   ZentrixOps brand system (tokens in theme.css)
   ========================================================= */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}
img { display: block; max-width: 100%; }

.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 2.5rem); }

/* Signature move — one italic-orange phrase per headline */
.accent-em { font-family: var(--font-display); font-style: italic; color: var(--accent-fg); font-weight: 600; }

/* Mono label */
.label {
  font-family: var(--font-mono);
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent-fg);
}

.mark { font-family: var(--font-mono); font-style: normal; margin-left: 0.4em; font-size: 0.62em; vertical-align: 0.18em; }
.mark--sig { color: var(--accent-fg); }
.mark--veg { color: var(--grey-400); }

/* ---------------- Buttons (always pills) ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-weight: 600; font-size: 0.92rem;
  border-radius: var(--radius-pill); text-decoration: none;
  padding: 0.7rem 1.4rem; border: 1.5px solid transparent; cursor: pointer;
  transition: transform 0.16s var(--ease-out), background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn--solid { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(194, 67, 39, 0.28); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--lg { padding: 0.85rem 1.7rem; font-size: 1rem; }
.btn--sm { padding: 0.5rem 1rem; font-size: 0.82rem; }
@media (hover: hover) and (pointer: fine) {
  .btn--solid:hover { background: var(--accent-hover); transform: translateY(-2px); }
  .btn--ghost:hover { border-color: var(--accent-fg); color: var(--accent-fg); transform: translateY(-2px); }
}

/* ---------------- Nav ---------------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px) saturate(1.1);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  max-width: var(--max-width); margin: 0 auto;
  padding: 0.85rem clamp(1.1rem, 4vw, 2.5rem);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand {
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 600;
  color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem;
}
.brand em { font-style: italic; color: var(--accent-fg); }
.brand__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.nav__links { display: flex; gap: 0.4rem; }
.nav__links a {
  font-size: 0.9rem; font-weight: 500; color: var(--text-muted);
  text-decoration: none; padding: 0.4rem 0.75rem; border-radius: var(--radius-pill);
  transition: color 0.2s ease, background-color 0.2s ease;
}
.nav__links a:hover, .nav__links a.is-active { color: var(--accent-fg); }
.nav__actions { display: flex; align-items: center; gap: 0.7rem; }
.theme-toggle {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text); background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-pill); padding: 0.5rem 0.85rem; cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.16s var(--ease-out);
}
.theme-toggle:hover { color: var(--accent-fg); border-color: var(--accent-fg); transform: translateY(-1px); }

/* ---------------- Hero ---------------- */
.hero { position: relative; overflow: hidden; }
.hero__grid {
  max-width: var(--max-width); margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 5rem) clamp(1.1rem, 4vw, 2.5rem) clamp(3rem, 6vw, 6rem);
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.hero__kicker { margin-bottom: 1rem; }
.hero__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.6rem, 1.3rem + 5vw, 4.8rem); line-height: 1.02; letter-spacing: -0.015em;
  color: var(--text);
}
.hero__lead { margin-top: 1.3rem; max-width: 44ch; color: var(--text-muted); font-size: 1.08rem; }
.hero__cta { margin-top: 2rem; display: flex; gap: 0.8rem; flex-wrap: wrap; }
.hero__stats { margin-top: 2.6rem; display: flex; gap: 2.2rem; }
.stat__num {
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: 2rem; color: var(--text); line-height: 1;
}
.stat__lbl {
  font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text-faint); margin-top: 0.45rem; display: block;
}

.hero__art { position: relative; }
.hero__blob {
  position: absolute; top: -5%; right: -5%; width: 78%; height: 82%;
  background: var(--accent); border-radius: var(--radius-xl);
  transform: rotate(5deg); z-index: 0;
}
:root[data-theme="dark"] .hero__blob { background: var(--accent-dark); }
.hero__photo {
  position: relative; z-index: 1;
  border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: 0 26px 55px rgba(28, 26, 22, 0.26);
  aspect-ratio: 4 / 3.4;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }

.floatcard {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 0.7rem;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0.7rem 1rem; box-shadow: var(--shadow-lift);
}
.floatcard strong { display: block; font-size: 0.92rem; font-weight: 600; }
.floatcard small { display: block; font-size: 0.72rem; color: var(--text-faint); }
.floatcard__icon { font-size: 1.4rem; }
.floatcard__stars { color: var(--accent-fg); font-size: 0.85rem; letter-spacing: 0.05em; }
.floatcard--top { top: 8%; left: -6%; }
.floatcard--bottom { bottom: 9%; right: -5%; }

/* ---------------- Section heading ---------------- */
.sec-head { margin-bottom: 2.4rem; }
.sec-head--center { text-align: center; }
.sec-head__kicker { margin-bottom: 0.6rem; }
.sec-head__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.8rem, 1.1rem + 2.6vw, 2.9rem); letter-spacing: -0.01em; color: var(--text);
}

/* ---------------- Features ---------------- */
.features { padding: clamp(2rem, 4vw, 3.5rem) 0; }
.features__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.6rem 1.4rem; box-shadow: var(--shadow-card);
  transition: transform 0.2s var(--ease-out), box-shadow 0.25s ease;
}
@media (hover: hover) { .feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); } }
.feature__icon {
  display: inline-grid; place-items: center; width: 46px; height: 46px;
  border-radius: 50%; font-size: 1.3rem; margin-bottom: 1rem;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}
.feature__title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--text); margin-bottom: 0.5rem; }
.feature__text { font-size: 0.9rem; color: var(--text-muted); }

/* ---------------- Explore categories ---------------- */
.explore { padding: clamp(3rem, 6vw, 5rem) 0; }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.cat {
  display: block; text-decoration: none; text-align: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.2rem 1rem 1.4rem; transition: transform 0.2s var(--ease-out), box-shadow 0.25s ease, border-color 0.25s ease;
}
@media (hover: hover) { .cat:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); } }
.cat__img { display: block; width: 96px; height: 96px; margin: 0 auto 1rem; border-radius: 50%; overflow: hidden; box-shadow: var(--shadow-card); }
.cat__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease-out); }
@media (hover: hover) { .cat:hover .cat__img img { transform: scale(1.08); } }
.cat__name { display: block; font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--text); }
.cat__count { display: block; font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); margin-top: 0.35rem; }

/* ---------------- Best sellers ---------------- */
.best { padding: clamp(2rem, 4vw, 3rem) 0 clamp(3rem, 6vw, 5rem); }
.dish-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.dishcard {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-card);
  transition: transform 0.22s var(--ease-out), box-shadow 0.25s ease;
}
@media (hover: hover) { .dishcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); } }
.dishcard__img { position: relative; aspect-ratio: 16 / 11; overflow: hidden; }
.dishcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s var(--ease-out); }
@media (hover: hover) { .dishcard:hover .dishcard__img img { transform: scale(1.06); } }
.dishcard__badge {
  position: absolute; top: 0.8rem; right: 0.8rem;
  background: var(--surface); color: var(--accent-fg);
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600;
  padding: 0.3rem 0.6rem; border-radius: var(--radius-pill); box-shadow: var(--shadow-card);
}
.dishcard__body { padding: 1.2rem 1.3rem 1.4rem; }
.dishcard__name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--text); }
.dishcard__desc { font-size: 0.88rem; color: var(--text-muted); margin: 0.5rem 0 1.1rem; min-height: 2.5em; }
.dishcard__foot { display: flex; align-items: center; justify-content: space-between; }
.dishcard__price { font-family: var(--font-mono); font-size: 1.15rem; font-weight: 600; color: var(--accent-fg); }
.dishcard__price small { font-size: 0.7rem; }

/* ---------------- Full menu ---------------- */
.menu { padding: clamp(2.5rem, 5vw, 4.5rem) 0 2rem; background: var(--tint); }
.course { padding: 2.8rem 0 1rem; scroll-margin-top: 76px; }
.course__head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.2rem; margin-bottom: 2rem; }
.course__img { width: 60px; height: 60px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); }
.course__img img { width: 100%; height: 100%; object-fit: cover; }
.course__kicker { font-family: var(--font-mono); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-fg); margin-bottom: 0.3rem; }
.course__title { font-family: var(--font-display); font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem); font-weight: 600; color: var(--text); line-height: 1.1; }
.course__rule { height: 1px; background: var(--border); }

.dishes { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 3.4rem; row-gap: 1.7rem; }
.dish__head { display: flex; align-items: baseline; gap: 0.5rem; }
.dish__name { font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; color: var(--text); flex: 0 1 auto; }
.dish--sig .dish__name { color: var(--accent-fg); }
.dish__leader { flex: 1 1 auto; border-bottom: 1px dotted var(--border); transform: translateY(-0.28em); min-width: 1.5rem; }
.dish__price { flex: 0 0 auto; font-family: var(--font-mono); font-size: 0.98rem; font-weight: 600; color: var(--accent-fg); font-variant-numeric: tabular-nums; }
.dish__desc { font-size: 0.88rem; line-height: 1.5; color: var(--text-muted); margin-top: 0.35rem; max-width: 48ch; }

/* ---------------- Footer ---------------- */
.footer { background: var(--ink); color: var(--paper); padding: 3.2rem 0 3.6rem; text-align: center; }
.legend { display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(250, 248, 243, 0.72); margin-bottom: 2.2rem; }
.footer .mark--sig { color: var(--accent-dark); }
.footer .mark--veg { color: rgba(250, 248, 243, 0.6); }
.footer__brand { margin-bottom: 1.2rem; }
.footer__name { display: block; font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; }
.footer__name em { font-style: italic; color: var(--accent-dark); }
.footer__meta { display: block; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(238, 140, 104, 0.9); margin-top: 0.7rem; }
.footer__fine { max-width: 520px; margin: 0 auto 1.6rem; font-size: 0.78rem; line-height: 1.7; color: rgba(250, 248, 243, 0.5); }
.footer__credit { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(250, 248, 243, 0.4); }
.footer__credit a { color: var(--accent-dark); text-decoration: none; }
.footer__credit a:hover { color: var(--paper); }

/* =========================================================
   MOTION — orchestrated hero + scroll reveal
   curves & durations from the animate skill
   ========================================================= */
@keyframes heroRise  { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes heroPhoto { from { opacity: 0; transform: translateY(22px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes popIn     { from { opacity: 0; transform: translateY(10px) scale(0.9); } to { opacity: 1; transform: none; } }
@keyframes navDrop   { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }

/* Hero plays on load, in sequence: nav → kicker → title → lead → cta → stats,
   with the photo arriving alongside the title and the badges popping last. */
.nav[data-hero]      { animation: navDrop 0.6s var(--ease-out) both; }
.hero__kicker        { animation: heroRise 0.7s var(--ease-out) 0.15s both; }
.hero__title         { animation: heroRise 0.75s var(--ease-out) 0.28s both; }
.hero__lead          { animation: heroRise 0.7s var(--ease-out) 0.44s both; }
.hero__cta           { animation: heroRise 0.7s var(--ease-out) 0.58s both; }
.hero__stats         { animation: heroRise 0.7s var(--ease-out) 0.7s both; }
.hero__photo         { animation: heroPhoto 0.85s var(--ease-out) 0.32s both; }
.floatcard--top      { animation: popIn 0.55s var(--ease-out) 0.85s both; }
.floatcard--bottom   { animation: popIn 0.55s var(--ease-out) 1s both; }

/* Below-the-fold: reveal on scroll, staggered by --i within each group */
[data-reveal] {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 65ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1000px) {
  .features__grid, .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .dish-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .nav__links { display: none; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { max-width: 460px; margin: 0 auto; width: 100%; }
  .floatcard--top { left: 0; }
  .floatcard--bottom { right: 0; }
}
@media (max-width: 620px) {
  .features__grid, .cat-grid, .dish-grid { grid-template-columns: 1fr; }
  .dishes { grid-template-columns: 1fr; column-gap: 0; row-gap: 1.5rem; }
  .hero__stats { gap: 1.4rem; }
  .course__head { grid-template-columns: auto 1fr; }
  .course__rule { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav[data-hero], .hero__kicker, .hero__title, .hero__lead, .hero__cta,
  .hero__stats, .hero__photo, .floatcard--top, .floatcard--bottom { animation: none; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  body, .btn, .theme-toggle, .feature, .cat, .dishcard { transition: none; }
}
