/* =========================================================
   Gastrio — Arabic RTL Tech Website
   ========================================================= */

/* CSS Variables */
:root {
  --primary: #0f172a;        /* Deep navy */
  --primary-dark: #0b0f1a;
  --accent: #06b6d4;         /* Cyan tech */
  --accent-glow: rgba(6, 182, 212, 0.15);
  --text: #0f172a;
  --text-muted: #64748b;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --card: #ffffff;
  --border: #e2e8f0;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius: 16px;
  --shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px -15px rgba(15, 23, 42, 0.12);
  --font: 'Tajawal', sans-serif;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  direction: rtl;
  lang: ar;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  direction: rtl;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
}

.btn-primary:hover {
  background: #1e293b;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

.btn-lg {
  padding: 18px 32px;
  font-size: 17px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  min-width: 140px;
}

.logo-mark {
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
}

.logo-text {
  font-size: 22px;
}

.nav-list {
  display: flex;
  gap: 30px;
}

.nav-list a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav-list a:hover {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  gap: 12px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  margin: 5px 0;
  border-radius: 2px;
}

/* Identity Banner */
.identity-banner {
  background: var(--primary);
  color: #fff;
  padding: 10px 0;
}

.identity-banner .container {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0.95;
}

.identity-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.badge-icon {
  width: 16px;
  height: 16px;
}

/* Hero */
.hero {
  padding: 100px 0 120px;
  background: var(--bg-alt);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.hero-kicker {
  display: inline-block;
  background: var(--accent-glow);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 24px;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.highlight {
  color: var(--accent);
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-trust {
  display: flex;
  gap: 24px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.trust-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.trust-number {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
}

.trust-label {
  font-size: 14px;
  color: var(--text-muted);
}

/* Hero Visual / Mockup */
.hero-visual {
  position: relative;
}

.dashboard-mockup {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.mockup-circle {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
}

.mockup-circle.sm {
  width: 8px;
  height: 8px;
  background: #94a3b8;
}

.mockup-header .mockup-circle:nth-child(1) { background: #ef4444; }
.mockup-header .mockup-circle:nth-child(2) { background: #f59e0b; }
.mockup-header .mockup-circle:nth-child(3) { background: #10b981; }

.mockup-title {
  margin-left: auto;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

.mockup-body {
  display: flex;
  padding: 20px;
  gap: 16px;
}

.mockup-sidebar {
  width: 70px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mockup-item {
  height: 32px;
  border-radius: 6px;
  background: #e2e8f0;
}

.mockup-item.active {
  background: var(--accent);
}

.mockup-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mockup-row {
  display: flex;
  gap: 12px;
}

.mockup-card.stat-card {
  flex: 1;
  padding: 16px;
  border-radius: 12px;
  background: #f1f5f9;
}

.mockup-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.mockup-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
}

.mockup-chart {
  display: flex;
  gap: 6px;
  align-items: flex-end;
  height: 120px;
  padding: 12px;
  border-radius: 12px;
  background: #f8fafc;
}

.mockup-chart-bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: var(--accent);
  opacity: 0.6;
}

.mockup-chart-bar.taller { height: 60%; }
.mockup-chart-bar.tallest { height: 85%; }

.mockup-orders {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mockup-order {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--border);
  font-size: 13px;
}

.mockup-order-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #cbd5e1;
}

.mockup-order-info .mockup-order-name {
  font-weight: 700;
  color: var(--primary);
}

.mockup-order-info .mockup-order-time {
  font-size: 11px;
  color: var(--text-muted);
}

.mockup-order-badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  background: #eff6ff;
  color: #1d4ed8;
}

.mockup-order-badge.ready {
  background: #f0fdf4;
  color: #166534;
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-kicker {
  display: inline-block;
  background: var(--accent-glow);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
}

.section-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
  line-height: 1.3;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-muted);
}

/* Solutions Grid */
.solutions {
  padding: 100px 0;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.solution-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.solution-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.solution-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-glow);
  color: var(--accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.solution-icon svg {
  width: 24px;
  height: 24px;
}

.solution-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.solution-card p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.solution-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.solution-features li {
  font-size: 14px;
  color: var(--text-muted);
  padding-right: 24px;
  position: relative;
}

.solution-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}

.solution-btn {
  width: 100%;
  padding: 12px;
  font-size: 14px;
}

/* About Section */
.about {
  padding: 100px 0;
  background: var(--bg-alt);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-content h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 30px;
}

.about-points {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.point {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.point-number {
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}

.point strong {
  display: block;
  font-size: 16px;
  color: var(--primary);
  margin-bottom: 6px;
  font-weight: 700;
}

.point p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Device Mockup */
.device-mockup {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  background: #0f172a;
  border-radius: 30px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.06);
}

.device-screen {
  background: #f8fafc;
  border-radius: 20px;
  padding: 20px;
}

.screen-header {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  text-align: center;
}

.table-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.table {
  aspect-ratio: 1;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}

.table.free { background: #10b981; }
.table.occupied { background: #ef4444; }
.table.reserved { background: #f59e0b; }

.screen-footer {
  margin-top: 16px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
}

/* CTA Section */
.cta {
  padding: 100px 0;
  text-align: center;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
}

.cta-content p {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Footer */
.footer {
  background: var(--primary);
  color: #fff;
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand .logo {
  color: #fff;
  margin-bottom: 16px;
}

.footer-desc {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.7;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: #94a3b8;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: var(--accent);
}

.footer-contact h4 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
}

.contact-list li {
  margin-bottom: 12px;
  font-size: 14px;
  color: #94a3b8;
}

.socials {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.socials a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background 0.2s;
}

.socials a svg {
  width: 18px;
  height: 18px;
}

.socials a:hover {
  background: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-bottom p {
  font-size: 13px;
  color: #94a3b8;
  text-align: center;
}

.footer-disclaimer {
  font-size: 12px;
  color: #64748b;
  margin-top: 6px;
}

/* Mobile Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-visual {
    order: -1;
  }

  .hero-title {
    font-size: 34px;
  }

  .nav {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-col:nth-child(3) {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-col:nth-child(3) {
    grid-column: span 1;
  }

  .hero-cta {
    flex-direction: column;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-buttons .btn {
    width: 100%;
  }
}