:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --border: rgba(15, 23, 42, 0.08);
  --text: #0f172a;
  --muted: #64748b;
  --gold: #b48600;
  --accent: #d6b36a;
  --accent-dark: #9a7a3c;
  --sun: #f59e0b;
  --radius: 16px;
  --shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
  --font: "Cairo", "Segoe UI", Tahoma, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}

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

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

.container {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 14px 0;
}

.site-header .nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.nav-ico {
  margin-inline-end: 4px;
}

.contact-page {
  max-width: 560px;
  margin: 0 auto 48px;
  text-align: center;
}

.contact-lead {
  color: var(--muted);
  font-size: 17px;
  margin: -8px 0 28px;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 28px 24px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: 0.2s;
}

.contact-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.contact-icon {
  font-size: 32px;
}

.contact-label {
  font-weight: 800;
  font-size: 15px;
  color: var(--muted);
}

.contact-value {
  font-weight: 800;
  font-size: 18px;
  color: var(--text);
}

.demo-banner {
  margin: 0 0 24px;
  padding: 16px 20px;
  text-align: center;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: var(--radius);
  color: #92400e;
  font-weight: 800;
  font-size: 16px;
}

.soon-page {
  margin: 48px auto;
  max-width: 520px;
  padding: 48px 32px;
  text-align: center;
  background: var(--panel);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.soon-page h1 {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 12px;
}

.soon-page .soon-badge {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 32px;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--muted);
  font-weight: 900;
  font-size: 22px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--sun), var(--accent));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 20px;
}

.back-bar {
  padding: 12px 0 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 15px;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel);
  transition: 0.2s;
}

.back-link:hover {
  color: var(--text);
  border-color: var(--accent);
}

.consult-soon {
  margin: 48px 0;
  padding: 32px;
  text-align: center;
  background: var(--panel);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.consult-soon h2 {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 10px;
}

.consult-soon .soon-badge {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 24px;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--muted);
  font-weight: 800;
  font-size: 18px;
}

.nav a {
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  color: var(--muted);
  transition: 0.2s;
}

.nav a:hover,
.nav a.active {
  background: #0f172a;
  color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.site-header.is-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-header.is-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.site-header.is-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: none;
  font-family: inherit;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  transition: 0.2s;
}

.btn-primary {
  background: #0f172a;
  color: #fff;
}

.btn-primary:hover { background: var(--gold); }

.btn-secondary {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-accent {
  background: linear-gradient(135deg, var(--sun), var(--accent));
  color: #fff;
}

.hero {
  padding: 72px 0 48px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  margin-bottom: 16px;
}

.hero p {
  color: var(--muted);
  font-size: 18px;
  max-width: 720px;
  margin: 0 auto 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.card h3 { margin-bottom: 8px; font-size: 20px; }
.card p { color: var(--muted); font-size: 15px; }

.section {
  padding: 48px 0;
}

.section-title {
  text-align: center;
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 28px;
}

.site-footer {
  margin-top: 60px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.15);
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
}

.table-wrap {
  overflow-x: auto;
  background: var(--panel);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th, td {
  padding: 12px 14px;
  text-align: right;
  border-bottom: 1px solid var(--border);
}

th { background: #f1f5f9; font-weight: 800; }

.form-grid {
  display: grid;
  gap: 16px;
}

.form-grid label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 14px;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 15px;
}

@media (min-width: 993px) {
  .site-header .inner {
    flex-wrap: nowrap;
  }

  .site-header .nav {
    display: flex !important;
    flex-direction: row !important;
    grid-template-columns: unset !important;
  }

  .site-header .nav a:first-child {
    grid-column: auto !important;
  }

  .nav-toggle {
    display: none !important;
  }
}

/* موبايل + تابلت: شبكة أزرار واضحة (بدون قائمة مخفية) */
@media (max-width: 992px) {
  .site-header {
    overflow: visible;
  }

  .site-header .container.inner {
    position: relative;
    overflow: visible;
  }

  .site-header .inner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 0;
  }

  .nav-toggle {
    display: none !important;
  }

  .site-header .nav {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    flex: none;
    min-width: 0;
    overflow: visible;
    padding: 0;
    border-top: none;
    position: static;
    background: transparent;
    box-shadow: none;
    max-height: none;
  }

  .site-header .nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 10px 8px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    white-space: normal;
    background: #f8fafc;
    border: 1px solid var(--border);
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
  }

  .site-header .nav a:first-child {
    grid-column: 1 / -1;
    min-height: 48px;
    font-size: 14px;
    background: #fff;
  }

  .site-header .nav a:hover,
  .site-header .nav a.active {
    background: #0f172a;
    color: #fff;
    border-color: #0f172a;
  }

  .site-header.is-open .nav {
    position: static;
    flex-direction: unset;
  }
}

@media print {
  .site-header, .site-footer, .no-print { display: none !important; }
  body { background: #fff; }
}
