/* ══════════════════════════════════════════
   DARK MODE (default)
   ══════════════════════════════════════════ */
:root {
  --bg:          #0A0603;
  --bg-2:        #130C07;
  --bg-card:     #1A1008;
  --gold:        #C8954B;
  --gold-light:  #DFB47A;
  --gold-dim:    rgba(200,149,75,0.15);
  --cream:       #F0DEC8;
  --cream-dim:   rgba(240,222,200,0.65);
  --white:       #FFFFFF;
  --border:      rgba(200,149,75,0.18);
  --border-h:    rgba(200,149,75,0.5);
  --shadow:      0 8px 40px rgba(0,0,0,0.55);
  --text-muted:  rgba(240,222,200,0.45);
  --radius:      18px;
  --radius-sm:   12px;
  --header-bg:   rgba(10,6,3,0.88);
  --map-filter:  none;
}

/* ══════════════════════════════════════════
   LIGHT MODE
   ══════════════════════════════════════════ */
body.light {
  --bg:          #FAF4EC;
  --bg-2:        #F0E4D0;
  --bg-card:     #FFFFFF;
  --gold:        #A8742E;
  --gold-light:  #C8954B;
  --gold-dim:    rgba(168,116,46,0.1);
  --cream:       #2C1810;
  --cream-dim:   rgba(44,24,16,0.7);
  --white:       #1A0E08;
  --border:      rgba(168,116,46,0.2);
  --border-h:    rgba(168,116,46,0.5);
  --shadow:      0 8px 40px rgba(0,0,0,0.12);
  --text-muted:  rgba(44,24,16,0.45);
  --header-bg:   rgba(250,244,236,0.92);
  --map-filter:  none;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Kufi Arabic', sans-serif;
  direction: rtl;
  background: var(--bg);
  color: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}
img { display: block; max-width: 100%; }
a  { text-decoration: none; color: inherit; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 6px; }

/* ══════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════ */
header {
  position: fixed; top: 0; inset-inline: 0; z-index: 100;
  padding: 0 2rem;
  transition: background 0.4s, backdrop-filter 0.4s, border-bottom 0.4s;
}
header.scrolled {
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
nav {
  max-width: 1200px; margin: 0 auto;
  height: 72px; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
}

/* Logo — circle with white bg */
.logo { display: flex; align-items: center; gap: 10px; }
.logo img {
  width: 64px; height: 64px;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  padding: 4px;
  flex-shrink: 0;
}
.logo-text { font-size: 1.1rem; font-weight: 700; color: var(--gold); }

/* Nav links */
.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  font-size: 0.9rem; font-weight: 500; color: var(--cream-dim);
  transition: color 0.2s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; right: 0; width: 0; height: 2px;
  background: var(--gold); border-radius: 2px; transition: width 0.3s;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }

/* Header social icons */
.nav-socials {
  display: flex; align-items: center; gap: 10px;
}
.nav-socials a {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 8px;
  color: var(--cream-dim); border: 1px solid var(--border);
  transition: all 0.2s;
}
.nav-socials a svg { width: 16px; height: 16px; }
.nav-socials a:hover { color: var(--gold); border-color: var(--gold); background: var(--gold-dim); }

/* Theme toggle */
.theme-toggle {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 50px; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1rem; transition: all 0.2s; flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--gold); }

/* Mobile toggle */
.nav-toggle {
  display: none; background: none; border: 1px solid var(--border);
  border-radius: 8px; padding: 6px 10px; font-size: 1.1rem;
  cursor: pointer; color: var(--cream);
}

/* ══════════════════════════════════════════
   HERO
   ══════════════════════════════════════════ */
#hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: url('../images/menu/cafe.jpeg') center/cover no-repeat;
  transition: filter 0.3s;
}
body.light .hero-bg { filter: brightness(0.85); }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(5,2,1,0.5) 0%, rgba(5,2,1,0.4) 50%, rgba(5,2,1,0.85) 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 720px; padding: 0 1.5rem; }

/* Hero logo — circle wrapper + scaled img inside */
.hero-logo-ring {
  width: 190px; height: 190px; border-radius: 50%;
  overflow: hidden;
  background: rgba(255,255,255,0.95);
  margin: 0 auto 1.75rem;
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 12px rgba(200,149,75,0.12), 0 16px 48px rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center;
  animation: logoPop 0.9s cubic-bezier(0.22,1,0.36,1) both;
  flex-shrink: 0;
}
.hero-logo-ring img {
  width: 100%; height: 100%;
  object-fit: contain;
  transform: scale(1.55);
  transform-origin: center;
}
@keyframes logoPop {
  from { opacity: 0; transform: scale(0.7); }
  to   { opacity: 1; transform: scale(1); }
}
.hero-content h1 {
  font-size: clamp(2.8rem, 8vw, 5rem); font-weight: 900;
  color: #fff; line-height: 1.1; letter-spacing: -1px;
  text-shadow: 0 4px 24px rgba(0,0,0,0.5);
  animation: slideUp 0.9s 0.2s cubic-bezier(0.22,1,0.36,1) both;
}
.hero-content p {
  font-size: clamp(1rem, 2.5vw, 1.2rem); color: rgba(240,222,200,0.85);
  margin: 1.25rem auto 2rem; max-width: 480px;
  animation: slideUp 0.9s 0.35s cubic-bezier(0.22,1,0.36,1) both;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-badges {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  margin-bottom: 2rem;
  animation: slideUp 0.9s 0.45s cubic-bezier(0.22,1,0.36,1) both;
}
.hero-badge {
  display: flex; align-items: center; gap: 6px;
  background: rgba(200,149,75,0.15); border: 1px solid rgba(200,149,75,0.3);
  backdrop-filter: blur(8px); border-radius: 50px;
  padding: 0.45rem 1.1rem; font-size: 0.85rem; color: var(--gold-light);
}
.hero-cta {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  animation: slideUp 0.9s 0.55s cubic-bezier(0.22,1,0.36,1) both;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold); color: #0A0603; font-size: 1rem; font-weight: 700;
  padding: 0.9rem 2.2rem; border-radius: 50px;
  transition: all 0.3s; box-shadow: 0 8px 28px rgba(200,149,75,0.4);
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-3px); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: #fff; font-size: 1rem; font-weight: 600;
  padding: 0.9rem 2.2rem; border-radius: 50px; border: 1.5px solid rgba(255,255,255,0.35);
  transition: all 0.3s;
}
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-3px); }
.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: rgba(240,222,200,0.6); font-size: 0.78rem; letter-spacing: 1px;
  animation: bounce 2s 1.5s infinite;
}
.hero-scroll span { font-size: 1.3rem; }
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(8px)} }

/* ══════════════════════════════════════════
   SECTIONS
   ══════════════════════════════════════════ */
section { padding: 5.5rem 2rem; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-tag {
  display: inline-block; background: var(--gold-dim); border: 1px solid var(--border);
  border-radius: 50px; padding: 0.3rem 1rem; font-size: 0.8rem;
  color: var(--gold); letter-spacing: 1px; margin-bottom: 1rem;
}
.section-header h2 {
  font-size: clamp(2rem, 5vw, 3rem); font-weight: 800;
  color: var(--white); margin-bottom: 0.5rem;
}
.section-header p { font-size: 1rem; color: var(--cream-dim); }
.divider { width: 50px; height: 3px; background: var(--gold); border-radius: 3px; margin: 1rem auto 0; }

/* ══════════════════════════════════════════
   OFFERS
   ══════════════════════════════════════════ */
#offers { background: var(--bg-2); }

.offers-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.offer-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.offer-card:hover { border-color: var(--border-h); box-shadow: var(--shadow); }

.offer-card-img {
  height: 200px;
  background-size: cover; background-position: center; position: relative;
}
.offer-card-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(5,2,1,0.7) 0%, transparent 60%);
}

.offer-card-body { padding: 1.25rem 1.35rem; }

.offer-badge {
  display: inline-block;
  background: var(--gold); color: #0A0603;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.5px;
  padding: 3px 12px; border-radius: 50px;
  margin-bottom: 0.75rem;
}

.offer-card-body h3 {
  font-size: 1.05rem; font-weight: 800;
  color: var(--white); line-height: 1.5; margin-bottom: 0.4rem;
}
.offer-card-body p {
  font-size: 0.88rem; color: var(--cream-dim); line-height: 1.8;
}

@media (max-width: 600px) {
  .offers-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════
   MENU
   ══════════════════════════════════════════ */
#menu { background: var(--bg); }

.tabs-wrap { overflow-x: auto; scrollbar-width: none; margin-bottom: 2.5rem; }
.tabs-wrap::-webkit-scrollbar { display: none; }
.tabs { display: flex; gap: 0.6rem; justify-content: center; min-width: max-content; padding: 0 1rem; }
.tab-btn {
  background: var(--bg-card); border: 1.5px solid var(--border); border-radius: 50px;
  padding: 0.6rem 1.4rem; font-family: inherit; font-size: 0.88rem; font-weight: 600;
  color: var(--cream-dim); cursor: pointer; transition: all 0.25s;
  white-space: nowrap; display: flex; align-items: center; gap: 7px;
}
.tab-btn:hover { border-color: var(--gold); color: var(--gold-light); }
.tab-btn.active { background: var(--gold); border-color: var(--gold); color: #0A0603; box-shadow: 0 6px 20px rgba(200,149,75,0.35); }

/* Grid */
.menu-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

/* Card */
.menu-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: border-color 0.3s, box-shadow 0.3s, opacity 0.5s ease, transform 0.5s ease;
  opacity: 0; transform: translateY(20px);
}
.menu-card.visible { opacity: 1; transform: translateY(0); }
.menu-card:hover { border-color: var(--border-h); box-shadow: var(--shadow); }

.card-img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  height: auto;
  overflow: hidden;
  background: var(--bg-2);
}
.card-img-wrap img {
  width: 100%; height: 100%; object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.menu-card:hover .card-img-wrap img { transform: none; }
.card-game:hover .card-img-wrap img { transform: none; }

/* Gradient overlay */
.card-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(5,2,1,0.82) 0%, rgba(5,2,1,0.1) 55%, transparent 100%);
}

/* Price — inside card body next to calories */
.price-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--gold-dim); border: 1px solid var(--border);
  border-radius: 50px; padding: 4px 12px;
}
.price-num { font-size: 1rem; font-weight: 800; color: var(--gold-light); }
.sar-icon { width: 20px; height: 22px; fill: var(--gold-light); flex-shrink: 0; }

/* Card body */
.card-body { padding: 0.9rem 1.1rem; }
.name-ar { display: block; font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 2px; }
.name-en { display: block; font-size: 0.75rem; color: var(--gold); font-weight: 400; opacity: 0.75; margin-bottom: 6px; }
.card-price { margin: 0.25rem 0 0.35rem; }
.card-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.calories { font-size: 0.72rem; color: var(--text-muted); }

/* Games card — full image, no crop */
.card-game .card-img-wrap {
  height: auto;
  aspect-ratio: 1 / 1;
  background: var(--bg-2);
  padding: 1.25rem;           /* space on the CONTAINER, not the img */
}
.card-game .card-img-wrap img {
  object-fit: contain;        /* never clips, always shows full image */
  width: 100%;
  height: 100%;
}
.card-game .card-body {
  text-align: center;
  padding: 0.75rem 1rem 1rem;
}
.card-game .name-ar { font-size: 1rem; margin-bottom: 2px; }
.card-game .name-en { opacity: 0.55; }

/* ══════════════════════════════════════════
   ABOUT
   ══════════════════════════════════════════ */
#about { background: var(--bg-2); }
.about-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.about-img-wrap {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3;
  border: 1px solid var(--border);
}
.about-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.about-text p { color: var(--cream-dim); line-height: 2; font-size: 0.97rem; margin-bottom: 1rem; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 1.25rem; text-align: center;
  transition: border-color 0.3s;
}
.stat-card:hover { border-color: var(--border-h); }
.stat-num  { font-size: 2rem; font-weight: 800; color: var(--gold); display: block; }
.stat-label{ font-size: 0.82rem; color: var(--cream-dim); }

/* ══════════════════════════════════════════
   CONTACT
   ══════════════════════════════════════════ */
#contact { background: var(--bg); }
.contact-inner {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
}
.contact-block h3 {
  font-size: 1.05rem; font-weight: 700; color: var(--gold);
  margin-bottom: 1.5rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--border);
  display: inline-block;
}
.contact-item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.25rem; }
.c-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--gold-dim); border: 1px solid var(--border); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.c-info strong { display: block; font-size: 0.75rem; color: var(--gold); margin-bottom: 3px; }
.c-info span, .c-info a { font-size: 0.95rem; font-weight: 600; color: var(--cream); }
.c-info a:hover { color: var(--gold); }
.c-info a[href^="tel"] { direction: ltr; display: inline-block; }

/* Social links */
.social-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 0.5rem; }
.social-link {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  padding: 0.7rem 1rem; font-size: 0.88rem; font-weight: 600; color: var(--cream-dim);
  transition: all 0.25s;
}
.social-link svg { width: 20px; height: 20px; flex-shrink: 0; }
.social-link:hover { border-color: var(--border-h); color: var(--white); transform: translateY(-2px); }
.social-link.instagram:hover { background: linear-gradient(135deg,#833ab4,#fd1d1d,#fcb045); border-color: transparent; color: #fff; }
.social-link.tiktok:hover    { background: #010101; border-color: #69C9D0; color: #fff; }
.social-link.facebook:hover  { background: #1877F2; border-color: transparent; color: #fff; }
.social-link.twitter:hover   { background: #1DA1F2; border-color: transparent; color: #fff; }
.social-link.whatsapp:hover  { background: #25D366; border-color: transparent; color: #fff; }

/* Hours */
.hours-list { list-style: none; }
.hours-list li {
  display: flex; justify-content: space-between;
  padding: 0.6rem 0; border-bottom: 1px solid rgba(200,149,75,0.08);
  font-size: 0.9rem; color: var(--cream-dim);
}
.hours-list li span:last-child { font-weight: 600; color: var(--cream); }

/* Map */
.map-wrap {
  max-width: 1000px; margin: 3rem auto 0; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.map-wrap iframe { width: 100%; height: 320px; border: none; display: block; filter: var(--map-filter); }
body.light .map-wrap iframe { filter: none; }

/* Light mode: header is transparent over dark hero — keep nav readable */
body.light header:not(.scrolled) .nav-links a {
  color: rgba(240, 222, 200, 0.82);
}
body.light header:not(.scrolled) .nav-links a:hover {
  color: #DFB47A;
}
body.light header:not(.scrolled) .nav-socials a {
  color: rgba(240, 222, 200, 0.82);
  border-color: rgba(200, 149, 75, 0.35);
}
body.light header:not(.scrolled) .nav-socials a:hover {
  color: #DFB47A;
  border-color: rgba(200, 149, 75, 0.7);
}
body.light header:not(.scrolled) .nav-toggle {
  color: rgba(240, 222, 200, 0.9);
  border-color: rgba(200, 149, 75, 0.4);
}

/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */
footer {
  background: var(--bg-2); border-top: 1px solid var(--border);
  text-align: center; padding: 1.75rem 1rem;
}
footer p { font-size: 0.83rem; color: var(--cream-dim); }
footer span { color: var(--gold); }
footer .credit { margin-top: 6px; font-size: 0.78rem; color: var(--text-muted); }
footer .credit a { color: var(--gold); font-weight: 600; transition: opacity 0.2s; }
footer .credit a:hover { opacity: 0.8; }

/* ══════════════════════════════════════════
   REVEAL
   ══════════════════════════════════════════ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .nav-links { gap: 1.25rem; }
}
@media (max-width: 900px) {
  .about-inner { grid-template-columns: 1fr; gap: 2rem; }
  .about-img-wrap { aspect-ratio: 16/7; }
  .contact-inner { grid-template-columns: 1fr; gap: 2rem; }
  .nav-socials { display: none; }
}
@media (max-width: 768px) {
  .nav-links {
    position: fixed; top: 72px; inset-inline: 0;
    background: var(--header-bg); backdrop-filter: blur(16px);
    flex-direction: column; align-items: center; gap: 0;
    padding: 1rem 0; border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.85rem 2rem; width: 100%; text-align: center; }
  .nav-toggle { display: block; }
  section { padding: 4rem 1.25rem; }
  .menu-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
}
@media (max-width: 480px) {
  .menu-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .card-body { padding: 0.7rem 0.8rem; }
  .name-ar { font-size: 0.88rem; }
  .name-en { font-size: 0.7rem; }
  .price-num { font-size: 0.88rem; }
  .sar-icon { width: 16px; height: 18px; }
  .price-badge { padding: 3px 8px; gap: 4px; }
  .calories { font-size: 0.68rem; }
  .hero-cta { flex-direction: column; align-items: center; }
  .social-grid { grid-template-columns: 1fr; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; font-size: 0.95rem; padding: 0.85rem 1.5rem; }
}
@media (max-width: 360px) {
  .menu-grid { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .card-body { padding: 0.6rem 0.65rem; }
  .name-ar { font-size: 0.82rem; }
  section { padding: 3rem 1rem; }
}
