/* ===== Variables — بيتزارو ===== */
:root {
  --red: #8b1e1e;
  --red-dark: #6b1515;
  --green: #1b3d2f;
  --green-light: #2a5c47;
  --cream: #f9f3e8;
  --cream-dark: #ede4d4;
  --gold: #e5b82a;
  --gold-light: #f5d04a;
  --pepperoni: #c62828;

  --bg: #f9f3e8;
  --bg-alt: #f0e8d8;
  --bg-green-tint: #eef5f0;
  --surface: #ffffff;
  --surface-hover: #fffdf9;
  --text: #1b3d2f;
  --muted: #5a7268;
  --on-dark: #f9f3e8;
  --border: rgba(27, 61, 47, 0.12);
  --border-red: rgba(139, 30, 30, 0.2);
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 16px 40px rgba(27, 61, 47, 0.12);
  --shadow-red: 0 8px 28px rgba(139, 30, 30, 0.25);
  --font-ar: "Cairo", sans-serif;
  --font-display: "Playfair Display", serif;
  --header-h: 80px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 80px);
}

body {
  font-family: var(--font-ar);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 1rem;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1100px, 92vw);
  margin-inline: auto;
}

/* ===== Header ===== */
.header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--green);
  border-bottom: 3px solid var(--red);
  transition: box-shadow var(--transition);
}

.header.is-scrolled {
  box-shadow: var(--shadow);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo__img {
  height: 56px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
}

.nav {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  padding: 0.5rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(249, 243, 232, 0.88);
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}

.nav a:hover,
.nav a.is-active {
  color: var(--gold-light);
  background: rgba(255, 255, 255, 0.12);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--on-dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + 2rem) 1.5rem 4rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    url("./istockphoto-1442417585-612x612.jpg") center / cover no-repeat;
  transform: scale(1.05);
  animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1.05); }
  to { transform: scale(1.12); }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(27, 61, 47, 0.72) 0%, rgba(27, 61, 47, 0.88) 55%, var(--bg) 100%),
    radial-gradient(circle at 80% 20%, rgba(139, 30, 30, 0.25) 0%, transparent 45%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__tag {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--gold-light);
  margin-bottom: 1rem;
  padding: 0.35rem 1rem;
  border: 1px solid rgba(229, 184, 42, 0.45);
  border-radius: 100px;
  background: rgba(27, 61, 47, 0.4);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--on-dark);
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-light);
}

.hero__lead {
  max-width: 36ch;
  margin: 0 auto 2rem;
  color: rgba(249, 243, 232, 0.9);
  font-size: 1.05rem;
  font-weight: 400;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn--primary {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--on-dark);
  box-shadow: var(--shadow-red);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(139, 30, 30, 0.4);
}

.btn--whatsapp {
  background: linear-gradient(135deg, var(--green-light), var(--green));
  color: var(--on-dark);
  box-shadow: 0 8px 24px rgba(27, 61, 47, 0.3);
  margin-top: 0.75rem;
}

.btn--whatsapp:hover {
  transform: translateY(-2px);
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green);
  z-index: 1;
  animation: bounce 2s ease-in-out infinite;
}

.hero__scroll svg {
  color: var(--green);
  opacity: 0.85;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ===== Section tabs ===== */
.section-tabs {
  display: flex;
  gap: 0.5rem;
  padding: 1.5rem 0;
  margin-bottom: 1rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  position: sticky;
  top: var(--header-h);
  z-index: 50;
  background: linear-gradient(180deg, var(--bg) 70%, transparent);
}

.section-tabs::-webkit-scrollbar {
  display: none;
}

.section-tabs__item {
  flex-shrink: 0;
  padding: 0.6rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: var(--transition);
  white-space: nowrap;
}

.section-tabs__item:hover,
.section-tabs__item.is-active {
  color: var(--on-dark);
  background: var(--red);
  border-color: var(--red);
}

/* ===== Menu sections ===== */
.menu-section {
  padding: 4rem 0;
}

.menu-section--alt {
  background: var(--bg-green-tint);
  border-block: 1px solid var(--border);
}

.section-head {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.section-head__num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 600;
  line-height: 1;
  color: var(--red);
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--green);
}

.section-head p {
  color: #2a4a3c;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.65;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.menu-grid--drinks {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  max-width: 100%;
}

.menu-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  animation: fadeUp 0.6s ease backwards;
}

.menu-card__img {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.menu-card__img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(27, 61, 47, 0.35) 100%);
  pointer-events: none;
}

.menu-card__img img,
.menu-card__thumb {
  cursor: zoom-in;
}

.menu-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.menu-card:hover .menu-card__img img {
  transform: scale(1.08);
}

.menu-card__body {
  padding: 1.25rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.menu-card:nth-child(1) { animation-delay: 0.05s; }
.menu-card:nth-child(2) { animation-delay: 0.1s; }
.menu-card:nth-child(3) { animation-delay: 0.15s; }
.menu-card:nth-child(4) { animation-delay: 0.2s; }

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.menu-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-red);
  box-shadow: var(--shadow);
}

.menu-card--featured {
  border-color: var(--red);
  border-width: 2px;
}

.menu-card--featured .menu-card__body {
  background: linear-gradient(180deg, var(--surface) 0%, rgba(229, 184, 42, 0.08) 100%);
}

.menu-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.menu-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--green);
}

.menu-card__body > p {
  font-size: 0.92rem;
  color: #2a4a3c;
  margin-bottom: 0.75rem;
  font-weight: 500;
  line-height: 1.6;
  flex: 1;
}

.price {
  font-weight: 700;
  color: var(--red);
  white-space: nowrap;
  font-size: 1.05rem;
}

.price small {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--muted);
}

.price-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: flex-end;
  flex-shrink: 0;
}

.price-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.price-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg-alt);
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
}

.price-item .price {
  font-size: 0.95rem;
}

.menu-card--row {
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem 0.75rem 0.75rem;
  border-radius: var(--radius);
}

.menu-card__thumb {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.menu-card--row h3 {
  flex: 1;
  font-size: 1rem;
  font-weight: 500;
  min-width: 0;
}

.menu-card--row .price {
  flex-shrink: 0;
}

.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  background: rgba(27, 61, 47, 0.1);
  color: var(--green);
}

.badge--hot {
  background: rgba(139, 30, 30, 0.12);
  color: var(--red);
}

.badge--chef {
  background: rgba(229, 184, 42, 0.25);
  color: #8a6d10;
}

/* ===== Footer ===== */
.footer {
  padding: 3rem 0 2rem;
  border-top: 3px solid var(--red);
  background: var(--green);
  color: var(--on-dark);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer__logo {
  height: 72px;
  width: auto;
  margin-bottom: 0.75rem;
}

.footer__brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}

.footer__note {
  font-size: 0.85rem;
  color: rgba(249, 243, 232, 0.75);
}

.footer__contact-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--on-dark);
  margin-bottom: 1rem;
}

.footer__phone-link {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(249, 243, 232, 0.2);
  border-radius: 14px;
  color: var(--on-dark);
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
}

.footer__phone-link:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--gold);
  color: var(--on-dark);
}

.footer__phone-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--red);
  color: var(--on-dark);
  flex-shrink: 0;
}

.footer__phone-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  line-height: 1.2;
}

.footer__phone-text small {
  font-size: 0.75rem;
  color: rgba(249, 243, 232, 0.7);
  font-weight: 400;
}

.footer__phone-text strong {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.footer__social {
  margin-top: 1.5rem;
}

.footer__social-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--on-dark);
  margin-bottom: 0.75rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.social-link {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(249, 243, 232, 0.2);
  color: var(--on-dark);
  transition: transform var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.social-link:hover {
  transform: translateY(-3px);
  color: #fff;
}

.social-link--instagram:hover {
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(221, 42, 123, 0.45);
}

.social-link--tiktok:hover {
  background: #010101;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(37, 244, 238, 0.35);
}

.social-link--facebook:hover {
  background: #1877f2;
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(24, 119, 242, 0.45);
}

.footer__copy {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(249, 243, 232, 0.6);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(249, 243, 232, 0.15);
}

/* ===== معرض تكبير الصور ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 20, 18, 0.92);
  cursor: zoom-out;
}

.lightbox__inner {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: min(960px, 96vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  transform: scale(0.92);
  transition: transform 0.3s ease;
}

.lightbox.is-open .lightbox__inner {
  transform: scale(1);
}

.lightbox__img {
  max-width: 100%;
  max-height: calc(90vh - 3rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  border: 3px solid rgba(229, 184, 42, 0.35);
}

.lightbox__caption {
  color: var(--on-dark);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  padding: 0 1rem;
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  inset-inline-end: 1rem;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--gold);
  color: var(--green);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform var(--transition), background var(--transition);
}

.lightbox__close:hover {
  transform: scale(1.08);
  background: var(--gold-light);
}

body.lightbox-open {
  overflow: hidden;
}

/* ===== زر واتساب العائم ===== */
.wa-fab {
  position: fixed;
  z-index: 200;
  bottom: 1.5rem;
  inset-inline-end: 1.5rem;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #1b3d2f;
  color: #fff;
  border: 2px solid #1b3d2f;
  box-shadow: 0 4px 14px rgba(27, 61, 47, 0.35);
  transition: transform var(--transition), box-shadow var(--transition);
  animation: waFabPulse 2.5s ease-in-out infinite;
}

.wa-fab::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: #d4aa2a;
  z-index: -1;
}

.wa-fab__icon {
  display: block;
}

.wa-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 22px rgba(27, 61, 47, 0.45);
  color: #fff;
  animation: none;
}

.wa-fab:focus-visible {
  outline: 3px solid #d4aa2a;
  outline-offset: 3px;
}

@keyframes waFabPulse {
  0%, 100% {
    box-shadow: 0 4px 14px rgba(27, 61, 47, 0.35);
  }
  50% {
    box-shadow:
      0 4px 14px rgba(27, 61, 47, 0.35),
      0 0 0 6px rgba(212, 170, 42, 0.35);
  }
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    inset-inline: 0;
    top: var(--header-h);
    background: var(--green);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    padding: 0.85rem 1rem;
    font-size: 1rem;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .section-head {
    flex-direction: column;
    gap: 0.5rem;
  }

  .section-head__num {
    font-size: 2rem;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .menu-card,
  .hero__scroll { animation: none; }
  .hero__bg { animation: none; }
  .wa-fab { animation: none; }
  .menu-card:hover .menu-card__img img { transform: none; }
}
