/* =========================================================
   KIOSK TWINSS — Digital menu stylesheet
   Color system, typography and layout are driven by CSS
   custom properties so the palette can be tuned in one place.
   ========================================================= */

:root {
  --bg: #121212;
  --surface: #1c1c1c;
  --surface-raised: #232120;
  --primary: #e59a24;
  --primary-light: #f2b544;
  --text: #fff8e8;
  --muted: #cfcfcf;
  --accent-red: #c94c3c;
  --whatsapp: #25d366;

  --font-display: "Fraunces", serif;
  --font-body: "Manrope", sans-serif;

  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 8px;

  --header-h: 64px;
  --sticky-bar-h: 68px;

  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.35);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 76px);
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3 {
  font-family: var(--font-display);
  margin: 0;
  color: var(--text);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 3px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn .icon {
  width: 18px;
  height: 18px;
}

.btn--primary {
  background: var(--primary);
  color: #1a1108;
}
.btn--primary:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 248, 232, 0.25);
  color: var(--text);
}
.btn--ghost:hover {
  border-color: var(--primary-light);
  color: var(--primary-light);
}

.btn--ghost-light {
  background: transparent;
  border-color: rgba(255, 248, 232, 0.4);
  color: var(--text);
}
.btn--ghost-light:hover {
  border-color: var(--text);
}

.btn--whatsapp {
  background: var(--whatsapp);
  color: #06210f;
}
.btn--whatsapp:hover {
  background: #2fe07a;
  transform: translateY(-1px);
}

/* ---------- Header / sticky nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(18, 18, 18, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: #1a1108;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}
.brand-name em {
  font-style: italic;
  color: var(--primary-light);
}

/* Category nav: sticky under the header, always wraps to a new
   line instead of scrolling sideways — every category stays
   reachable with a tap, on any screen width. */
.cat-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 45;
  background: rgba(18, 18, 18, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.6rem 1.25rem;
}

.cat-nav ul {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
}

.cat-link {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.cat-link:hover {
  color: var(--text);
}
.cat-link.is-active {
  background: rgba(229, 154, 36, 0.16);
  color: var(--primary-light);
}

.header-actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}
.header-actions .btn {
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
}

@media (max-width: 780px) {
  .header-actions {
    display: none;
  }
  .cat-nav {
    padding: 0.5rem 0.75rem;
  }
  .cat-link {
    padding: 0.4rem 0.7rem;
    font-size: 0.8rem;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 4.5rem 1.25rem 4rem;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 55% at 50% 0%, rgba(229, 154, 36, 0.22), transparent 70%),
    radial-gradient(45% 40% at 85% 90%, rgba(201, 76, 60, 0.14), transparent 70%),
    var(--bg);
  z-index: -1;
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.hero-kicker {
  font-size: 0.95rem;
  color: var(--primary-light);
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.hero-title {
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 1rem;
}

.hero-tagline {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

.hero-phone {
  color: var(--muted);
  font-size: 0.95rem;
}
.hero-phone a {
  color: var(--primary-light);
  font-weight: 700;
}

/* ---------- Category sections ---------- */
.category {
  padding: 3.25rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.category-header {
  max-width: 1100px;
  margin: 0 auto 1.75rem;
  text-align: center;
}

.category-eyebrow {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--primary);
  font-size: 1rem;
  margin: 0 0 0.35rem;
}

.category-title {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
}

.pizza-legend {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- Item grid: photo directly above its own price,
   auto-fitting so it always reflows to fewer columns instead
   of ever needing horizontal scrolling. ---------- */
.item-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.1rem;
}

.item-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}
.item-card:hover {
  transform: translateY(-3px);
}

.item-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--surface-raised);
  display: block;
}

/* Media wrapper: shows the real photo once it's dropped into
   /images/. Until then (or if a file is missing), script.js
   marks it as a fallback and this warm icon tile takes over —
   the site never shows a broken-image icon. */
.item-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--surface-raised);
}
.item-card__media img {
  position: absolute;
  inset: 0;
}
.item-card__media.img-fallback img {
  display: none;
}
.item-card__media.img-fallback::before {
  content: attr(data-emoji);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  background: linear-gradient(155deg, rgba(229, 154, 36, 0.16), rgba(201, 76, 60, 0.12));
}

.item-card__body {
  padding: 0.85rem 0.95rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.item-card__name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  margin: 0;
  color: var(--text);
}
.item-card__name small {
  display: block;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.78rem;
  margin-top: 0.1rem;
}

.item-card__price {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary-light);
  font-size: 1.2rem;
}

.item-card--pizza .item-card__pizza-prices {
  display: flex;
  gap: 1rem;
}
.item-card--pizza .item-card__pizza-prices span {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary-light);
  font-size: 1rem;
}
.item-card--pizza .item-card__pizza-prices b {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--muted);
  font-size: 0.75rem;
  margin-right: 0.2rem;
}

@media (max-width: 480px) {
  .item-grid {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.8rem;
  }
  .item-card__body {
    padding: 0.7rem 0.75rem 0.85rem;
  }
}

/* ---------- Order CTA band ---------- */
.order-band {
background: #f49b34;
padding: 3.5rem 1.25rem;
  text-align: center;
}

.order-band__inner {
  max-width: 560px;
  margin: 0 auto;
}

.order-band h2 {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  margin-bottom: 0.6rem;
}

.order-band p {
  color: rgba(255, 248, 232, 0.85);
  margin-bottom: 1.75rem;
}

.order-band__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--surface);
  padding: 3rem 1.25rem 2.5rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.site-footer__line {
  margin: 0.2rem 0;
  color: var(--muted);
}
.site-footer__line a {
  color: var(--primary-light);
  font-weight: 700;
}

.site-footer__social {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin: 1.1rem 0 1.4rem;
  flex-wrap: wrap;
}
.site-footer__social a {
  color: var(--muted);
  font-size: 0.9rem;
  border-bottom: 1px solid transparent;
}
.site-footer__social a:hover {
  color: var(--primary-light);
  border-color: var(--primary-light);
}

.site-footer__copy {
  color: rgba(207, 207, 207, 0.6);
  font-size: 0.8rem;
}

/* ---------- Mobile sticky order bar ---------- */
.sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: none;
  height: var(--sticky-bar-h);
  background: rgba(18, 18, 18, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.6rem 0.9rem;
  gap: 0.7rem;
}

.sticky-bar__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
}
.sticky-bar__btn .icon {
  width: 18px;
  height: 18px;
}

.sticky-bar__btn--call {
  background: transparent;
  border: 1px solid rgba(255, 248, 232, 0.3);
  color: var(--text);
}

.sticky-bar__btn--whatsapp {
  background: var(--whatsapp);
  color: #06210f;
}

@media (max-width: 780px) {
  .sticky-bar {
    display: flex;
  }
  body {
    padding-bottom: var(--sticky-bar-h);
  }
}

/* ---------- Responsive: small phones ---------- */
@media (max-width: 480px) {
  .hero {
    padding: 3.5rem 1rem 3rem;
  }
  .category {
    padding: 2.5rem 1rem;
  }
}

/* ---------- Reveal-on-scroll (single orchestrated moment) ---------- */
.category-header,
.item-grid {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.category.is-visible .category-header,
.category.is-visible .item-grid {
  opacity: 1;
  transform: translateY(0);
}
.category.is-visible .item-grid {
  transition-delay: 0.08s;
}

.item-card__pizza-prices .dh {
  font-size: 0.65em;
  font-weight: 600;
  opacity: 0.85;
  margin-left: 2px;
}

.shop-location {
  margin-top: 20px;
  border-radius: 12px;
  overflow: hidden;
}

.shop-location iframe {
  display: block;
}

----------------------------------------

.hero {
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to bottom, rgba(0,0,0,0.55), rgba(0,0,0,0.75)),
    url("images/hero-bg.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

/* الموبايل: يبين الجانب الأيسر من الصورة */
@media (max-width: 768px) {
  .hero-bg {
    background-position: 20% center;
  }
}

------------------------------

.location-section {
  padding: 3.25rem 1.25rem;
  padding-top: 15rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.location-section__title {
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--primary);
  font-size: 1rem;
  letter-spacing: 0.03em;
  margin: 0 0 0.5rem;
}

.location-section__text {
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  line-height: 1.3;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.shop-location {
  border-radius: 12px;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}

.shop-location iframe {
  display: block;
  width: 100%;
}

.header-inner {
  height: 60px
  position: relative;   /* أضف هذا إن لم يكن موجودًا */
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.header-actions {
  margin-inline-start: auto;   /* يبقيها في أقصى اليمين (أو اليسار حسب RTL) */
}