/* ================================
   Custom Properties
   ================================ */
:root {
  --bg:           #F7F4EF;
  --surface:      #FFFFFF;
  --surface-2:    #EDE9E2;
  --primary:      #C8963E;
  --primary-lt:   #A87530;
  --primary-dim:  rgba(200,150,62,0.12);
  --text:         #1C1813;
  --muted:        rgba(28,24,19,0.50);
  --border:       rgba(180,130,50,0.20);
  --wa:           #25D366;
  --ig:           #E1306C;
  --radius:       16px;
  --radius-sm:    10px;
  --pill:         100px;
  --container:    1240px;
  --hh:           70px;
  --shadow:       0 8px 32px rgba(0,0,0,0.10);
  --shadow-sm:    0 4px 16px rgba(0,0,0,0.08);
  --font-ar:      'Noto Kufi Arabic', sans-serif;
  --font-en:      'Inter', sans-serif;
}

/* ================================
   Reset
   ================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-ar);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  direction: rtl;
}
a  { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
ul { list-style: none; }

/* ================================
   Layout
   ================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ================================
   Buttons
   ================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--pill);
  font-family: var(--font-ar);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
  border: 1.5px solid transparent;
}
.btn-primary  { background: var(--primary); color: #0a0908; }
.btn-primary:hover  { background: var(--primary-lt); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(200,150,62,0.35); }
.btn-outline  { border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-wa       { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #1db954; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,211,102,0.3); }

/* ================================
   Header
   ================================ */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--hh);
  z-index: 1000;
  transition: background 0.35s, box-shadow 0.35s;
}
#header.scrolled {
  background: rgba(247,244,239,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border), 0 2px 12px rgba(0,0,0,0.06);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}
.header-logo {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}
.brand-text { font-size: 1.05rem; font-weight: 700; color: #fff; transition: color 0.35s; }
#header.scrolled .brand-text { color: var(--text); }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.80);
  transition: color 0.2s;
}
.nav-links a:hover { color: #fff; }
#header.scrolled .nav-links a { color: var(--muted); }
#header.scrolled .nav-links a:hover { color: var(--primary); }

.header-end {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  flex-shrink: 0;
}
.btn-phone {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.90);
  border: 1.5px solid rgba(255,255,255,0.35);
  padding: 0.4rem 1rem;
  border-radius: var(--pill);
  transition: background 0.2s, border-color 0.2s, color 0.35s;
  font-family: var(--font-en);
  direction: ltr;
}
.btn-phone:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.70); }
#header.scrolled .btn-phone { color: var(--primary); border-color: var(--border); }
#header.scrolled .btn-phone:hover { background: var(--primary-dim); border-color: var(--primary); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px 4px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: rgba(255,255,255,0.90);
  border-radius: 2px;
  transition: all 0.3s;
}
#header.scrolled .nav-toggle span { background: var(--text); }

/* ================================
   Mobile Drawer
   ================================ */
.drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.72);
  z-index: 1100;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.drawer-overlay.open { opacity: 1; pointer-events: all; }

.nav-drawer {
  position: fixed;
  top: 0; right: 0;
  width: 275px; height: 100%;
  background: var(--surface);
  z-index: 1200;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  transform: translateX(110%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}
.nav-drawer.open { transform: translateX(0); }
.drawer-close {
  font-size: 1.4rem;
  color: var(--muted);
  align-self: flex-start;
  margin-bottom: 0.25rem;
  transition: color 0.2s;
}
.drawer-close:hover { color: var(--text); }
.drawer-logo {
  width: 68px; height: 68px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  margin: 0 auto 0.5rem;
}
.nav-drawer a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.nav-drawer a:hover { color: var(--primary); }
.drawer-phone { color: var(--primary) !important; font-family: var(--font-en); direction: ltr; text-align: right; }
.drawer-wa    { color: var(--wa) !important; }

/* ================================
   Hero
   ================================ */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('https://rest.thrubits.com/uploads/restorants/39e45696-229d-449f-b0e1-f35471762809_cover.jpg');
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  transition: transform 7s ease;
}
#hero.loaded .hero-bg { transform: scale(1); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,9,8,0.50) 0%,
    rgba(10,9,8,0.72) 55%,
    var(--bg) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 5rem 1.5rem 4rem;
  margin-top: var(--hh);
}
.hero-logo-ring {
  width: 108px; height: 108px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.6rem;
  border: 3px solid var(--primary);
  box-shadow: 0 0 0 6px rgba(200,150,62,0.14), var(--shadow);
  display: flex; align-items: center; justify-content: center;
}
.hero-logo-ring img { width: 100%; height: 100%; object-fit: cover; }
.hero-content h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.6);
}
.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: #E8B558;
  font-weight: 500;
  margin-bottom: 0.75rem;
  letter-spacing: 0.06em;
}
.hero-location {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 2.5rem;
}
.hero-location i { color: var(--primary); }
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.60);
  font-size: 1.1rem;
  z-index: 1;
  animation: bounce 2.4s ease infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(9px); }
}

/* ================================
   Section Heading
   ================================ */
.section-head {
  text-align: center;
  margin-bottom: 2.75rem;
}
.section-head h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 0.45rem;
}
.section-head p { color: var(--muted); font-size: 0.98rem; }

/* ================================
   Menu Section
   ================================ */
#menu { padding: 5rem 0 4.5rem; }

.tabs-sticky {
  position: sticky;
  top: var(--hh);
  z-index: 90;
  background: rgba(247,244,239,0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin-bottom: 2.5rem;
}
.tabs {
  display: flex;
  gap: 0.5rem;
  padding: 0.85rem 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }

.tab-btn {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.1rem;
  min-width: 90px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(0,0,0,0.08);
  background: var(--surface);
  color: var(--text);
  transition: all 0.22s;
  font-family: var(--font-ar);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.tab-btn:hover {
  border-color: rgba(0,0,0,0.18);
  background: var(--surface-2);
}
.tab-btn.active {
  background: #1a1a1a;
  border-color: #1a1a1a;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.20);
}

.tab-icon {
  font-size: 1.6rem;
  line-height: 1;
}
.tab-label {
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  font-family: var(--font-en);
  letter-spacing: 0.02em;
}

/* ================================
   Menu Grid & Cards
   ================================ */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 1.2rem;
}
.card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.22s, border-color 0.22s, box-shadow 0.22s;
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(200,150,62,0.5);
  box-shadow: var(--shadow-sm);
}
.card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.6rem;
}
.card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.card:hover .card-img img { transform: scale(1.07); }
.card-body {
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}
.card-name {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.45;
  flex: 1;
}
.card-price {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  flex-shrink: 0;
  font-family: var(--font-en);
  direction: ltr;
  background: var(--primary-dim);
  padding: 0.22rem 0.65rem;
  border-radius: var(--pill);
}

/* ================================
   About Section
   ================================ */
#about {
  padding: 5.5rem 0;
  background: var(--surface);
}
.about-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-media {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--surface-2);
}
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem;
}
.section-tag {
  display: inline-block;
  padding: 0.28rem 1rem;
  border-radius: var(--pill);
  background: var(--primary-dim);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.about-body h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 1rem;
}
.about-body > p {
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 2rem;
}
.about-stats {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 2rem;
}
.about-stat { text-align: center; }
.stat-n {
  display: block;
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--primary);
  font-family: var(--font-en);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.stat-l { font-size: 0.78rem; color: var(--muted); font-weight: 500; }
.about-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ================================
   Contact Section
   ================================ */
#contact { padding: 5.5rem 0; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.25rem;
  text-align: center;
  display: block;
  transition: transform 0.22s, border-color 0.22s, box-shadow 0.22s;
}
.contact-card:not(.no-hover):hover {
  transform: translateY(-5px);
  border-color: rgba(200,150,62,0.5);
  box-shadow: var(--shadow-sm);
}
.contact-icon {
  width: 54px; height: 54px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem;
  margin: 0 auto 1rem;
}
.phone-ic { background: var(--primary-dim); color: var(--primary); }
.wa-ic    { background: rgba(37,211,102,0.1); color: var(--wa); }
.ig-ic    { background: rgba(225,48,108,0.1); color: var(--ig); }
.loc-ic   { background: rgba(200,150,62,0.1); color: var(--primary); }
.contact-card h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.4rem; }
.contact-card p, .contact-card a {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ================================
   Footer
   ================================ */
#footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.footer-brand img {
  width: 34px; height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--primary);
}
.footer-brand span { font-weight: 600; font-size: 0.9rem; }
.footer-copy { font-size: 0.78rem; color: var(--muted); }
.footer-powered { font-size: 0.72rem; color: var(--muted); }
.footer-powered a { color: var(--primary); font-weight: 600; text-decoration: none; }
.footer-powered a:hover { text-decoration: underline; }
.footer-social { display: flex; gap: 0.65rem; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s;
}
.footer-social a:hover { color: var(--primary); border-color: var(--primary); }

/* ================================
   Reveal / Scroll Animation
   ================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ================================
   Responsive — 1024px
   ================================ */
@media (max-width: 1024px) {
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ================================
   Responsive — 900px
   ================================ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .about-wrap { grid-template-columns: 1fr; gap: 2.25rem; }
  .about-wrap .about-media { order: -1; }
  .about-stats { gap: 1.5rem; }
}

/* ================================
   Responsive — 640px
   ================================ */
@media (max-width: 640px) {
  :root { --hh: 60px; }
  .btn-phone span { display: none; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 280px; justify-content: center; }
  .menu-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .card-body { padding: 0.7rem 0.8rem; }
  .card-name { font-size: 0.8rem; }
  .card-price { font-size: 0.75rem; padding: 0.18rem 0.5rem; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-brand { justify-content: center; }
  .footer-social { justify-content: center; }
}

/* ================================
   Responsive — 400px
   ================================ */
@media (max-width: 400px) {
  .menu-grid { grid-template-columns: 1fr; }
  .about-stats { gap: 1rem; }
  .stat-n { font-size: 1.7rem; }
}
