/* ==========================================================================
   مطعم بيت جدي — التصميم التراثي الموصلي الدافئ (Warm Heritage UI)
   ========================================================================== */

:root {
  --color-primary: #78350f;
  --color-primary-hover: #92400e;
  --color-accent: #d97706;
  --color-bg: #141210;
  --color-bg-surface: #1f1b18;
  --color-card-bg: rgba(31, 27, 24, 0.8);
  --color-card-border: rgba(217, 119, 6, 0.22);
  
  --color-text: #f5f5f4;
  --color-text-muted: #a8a29e;
  
  --font-arabic: 'Tajawal', sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  
  --shadow-warm: 0 10px 30px rgba(120, 53, 15, 0.25);
  --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-arabic);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  overflow-x: hidden;
  direction: rtl;
  text-align: right;
}

/* Phone Number Isolation Rule (Mandatory) */
bdi, [dir="ltr"] {
  direction: ltr !important;
  unicode-bidi: isolate !important;
  display: inline-block;
  font-family: monospace, sans-serif;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

h1, h2, h3, h4 {
  font-family: var(--font-arabic);
  color: #fff;
  font-weight: 800;
  line-height: 1.3;
}

.gradient-text {
  background: linear-gradient(135deg, #fff 30%, var(--color-accent) 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section {
  position: relative;
  z-index: 10;
  background-color: var(--color-bg);
  padding: clamp(4rem, 7vw, 6.5rem) 0;
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 0.6rem;
  padding: 0.2rem 0.85rem;
  background: rgba(217, 119, 6, 0.1);
  border: 1px solid rgba(217, 119, 6, 0.25);
  border-radius: var(--radius-full);
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  color: var(--color-text-muted);
  max-width: 640px;
  line-height: 1.7;
}

.section-header-center {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header-center .section-subtitle {
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-arabic);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.btn:hover {
  transform: translateY(-3px);
}

.btn-warm {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-primary) 100%);
  color: #fff;
  box-shadow: var(--shadow-warm);
}
.btn-warm:hover {
  background: linear-gradient(135deg, #f59e0b 0%, var(--color-accent) 100%);
  box-shadow: 0 12px 25px rgba(217, 119, 6, 0.35);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn-sm {
  padding: 0.5rem 1.2rem;
  font-size: 0.88rem;
}
.btn-lg {
  padding: 1rem 2.2rem;
  font-size: 1.05rem;
}
.btn-block {
  width: 100%;
}

/* Banner */
.demo-top-banner {
  background: #1f1b18;
  color: #d6d3d1;
  font-size: 0.82rem;
  padding: 0.35rem 0;
  position: relative;
  z-index: 1001;
  border-bottom: 1px solid rgba(217, 119, 6, 0.2);
}
.banner-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.close-banner-btn {
  background: none;
  border: none;
  color: #a8a29e;
  font-size: 1.2rem;
  cursor: pointer;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(20, 18, 16, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(217, 119, 6, 0.15);
  transition: var(--transition);
}
.site-header.scrolled {
  background: rgba(20, 18, 16, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 75px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #fff;
}
.brand-icon {
  font-size: 1.6rem;
}
.brand-title {
  font-size: 1.2rem;
  font-weight: 800;
  display: block;
}
.brand-sub {
  font-size: 0.7rem;
  color: var(--color-accent);
  display: block;
}

.desktop-nav {
  display: flex;
  gap: 1.8rem;
}
.nav-link {
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  transition: color 0.2s;
}
.nav-link:hover, .nav-link.active {
  color: #fff;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width 0.3s;
}
.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  width: 30px;
  height: 22px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}
.mobile-toggle span {
  width: 100%;
  height: 2px;
  background: #fff;
}

/* Hero */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-bg);
}
.hero-bg {
  position: absolute;
  inset: -10% 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 18, 16, 0.45) 0%,
    rgba(20, 18, 16, 0.75) 50%,
    rgba(20, 18, 16, 0.98) 100%
  );
  z-index: 2;
}
.hero-container {
  position: relative;
  z-index: 3;
  padding: 3rem 0;
}
.hero-content {
  max-width: 780px;
}

.hero-badge {
  display: inline-block;
  background: rgba(217, 119, 6, 0.15);
  border: 1px solid rgba(217, 119, 6, 0.3);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  color: var(--color-accent);
  font-size: 0.88rem;
  margin-bottom: 1.2rem;
}
.hero-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1.3rem;
}
.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.hero-features-bar {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.8rem;
}
.f-bar-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #e7e5e4;
  font-size: 0.92rem;
}

/* About */
.about-section {
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-surface) 100%);
}
.about-box {
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  padding: clamp(2.5rem, 5vw, 4rem);
  border-radius: var(--radius-lg);
  max-width: 900px;
  margin: 0 auto;
}
.lead-text {
  font-size: 1.15rem;
  color: #fafaf9;
  line-height: 1.8;
  margin-bottom: 1rem;
}
.body-text {
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* Breakfast */
.bf-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.bf-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.8rem;
  text-align: center;
  transition: var(--transition);
}
.bf-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-accent);
}
.bf-ico {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}
.bf-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}
.bf-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Menu */
.menu-display-box {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  align-items: center;
  padding: 2rem;
}
.menu-img-col {
  height: 350px;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.menu-img-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.menu-text-col h3 {
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
}
.menu-text-col .desc {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}
.features-list {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.features-list span {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

/* Late Night */
.late-banner {
  background: linear-gradient(135deg, #1f1b18 0%, #2e2620 100%);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}
.moon-icon {
  font-size: 2.8rem;
  display: block;
  margin-bottom: 0.5rem;
}
.late-title {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  margin-bottom: 1rem;
}
.late-sub {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}
.late-cta-row {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

/* Contact */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}
.c-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}
.c-item {
  display: flex;
  gap: 1.2rem;
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  padding: 1.2rem 1.5rem;
  border-radius: var(--radius-md);
}
.phone-link {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.phone-link:hover {
  color: var(--color-accent);
}

.order-box {
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
}
.order-box h3 {
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}
.order-box p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}
.form-group {
  margin-bottom: 1.2rem;
}
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #e7e5e4;
}
.form-group input,
.form-group select {
  width: 100%;
  background: rgba(20, 18, 16, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-family: var(--font-arabic);
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  outline: none;
}
.form-group input:focus,
.form-group select:focus {
  border-color: var(--color-accent);
}

/* Footer */
.site-footer {
  background: #0d0b0a;
  border-top: 1px solid rgba(217, 119, 6, 0.15);
  padding: 4rem 0 2rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
}
.footer-desc {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-top: 0.8rem;
  line-height: 1.7;
}
.footer-h {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1.8rem;
  text-align: center;
}
.footer-disclaimer {
  font-size: 0.85rem;
  color: #d6d3d1;
  margin-bottom: 0.5rem;
}
.footer-copy {
  font-size: 0.8rem;
  color: #78716c;
}

/* Mobile Drawer */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.mobile-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  right: -320px;
  width: 290px;
  background: #1f1b18;
  border-left: 1px solid rgba(217, 119, 6, 0.3);
  z-index: 2000;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
}
.mobile-drawer.open {
  right: 0;
}
.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}
.drawer-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
}
.drawer-body {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.drawer-link {
  color: #fafaf9;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 600;
}
.drawer-contact-info {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.88rem;
  color: var(--color-text-muted);
}
.drawer-phone {
  margin-top: 0.4rem;
  font-weight: 700;
  color: #fff;
}

/* Scroll-reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal-stagger].revealed > *:nth-child(1) { transition-delay: 0.05s; }
[data-reveal-stagger].revealed > *:nth-child(2) { transition-delay: 0.12s; }
[data-reveal-stagger].revealed > *:nth-child(3) { transition-delay: 0.19s; }
[data-reveal-stagger].revealed > * {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .desktop-nav { display: none; }
  .mobile-toggle { display: flex; }
  .bf-cards-grid { grid-template-columns: 1fr; }
  .menu-display-box { grid-template-columns: 1fr; }
  .contact-split { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
}
