@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Noto+Naskh+Arabic:wght@400;600;700&display=swap');

:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --navy: #0f172a;
  --text: #1e293b;
  --muted: #475569;
  --primary: #0b67b2;
  --primary-dark: #084d87;
  --primary-soft: #e0f2fe;
  --border: #e2e8f0;
  --accent: #0369a1;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 15px;
}

body[dir="rtl"] {
  font-family: 'ALKATIP Tor Tom', 'Alkatip Tor Tom', 'ALKATIPTorTom', 'ALKATIP Tor', 'ALKATIP', 'Alkatip', 'UKIJ Tuz Tom', 'Noto Naskh Arabic', 'Inter', 'Segoe UI', Tahoma, sans-serif;
  line-height: 1.85;
  font-size: 16px;
}

body[dir="rtl"] .brand-title {
  font-size: 1.15rem;
}

body[dir="rtl"] .hero h1 {
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  line-height: 1.4;
}

body[dir="rtl"] .section-title {
  font-size: 1.5rem;
  line-height: 1.45;
}

body[dir="rtl"] .card h3 {
  font-size: 1.1rem;
}

body[dir="rtl"] .card p,
body[dir="rtl"] .card li {
  font-size: 0.96rem;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Top Language Switcher Bar — Always Visible */
.lang-bar {
  background: var(--navy);
  color: #ffffff;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lang-label {
  font-size: 0.85rem;
  color: #cbd5e1;
  font-weight: 500;
}

.lang-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background 0.15s ease, transform 0.15s ease;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  text-decoration: none;
}

.lang-btn.active {
  background: #38bdf8;
  color: var(--navy);
  border-color: #38bdf8;
}

/* Main Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
}

.brand {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
}

.brand-sub {
  font-size: 0.8rem;
  color: var(--muted);
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.main-nav a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.94rem;
}

.main-nav a:hover {
  color: var(--primary);
  text-decoration: none;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #0b4f8a 0%, #0f172a 100%);
  color: #ffffff;
  padding: 64px 0 56px;
}

.hero-badge {
  display: inline-block;
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #bae6fd;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(1.85rem, 3.6vw, 2.7rem);
  line-height: 1.25;
  margin-bottom: 16px;
  font-weight: 700;
}

.hero p {
  font-size: 1.08rem;
  color: #e2e8f0;
  max-width: 760px;
  margin-bottom: 26px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.15s ease;
}

.btn-primary {
  background: #38bdf8;
  color: var(--navy);
}

.btn-primary:hover {
  background: #7dd3fc;
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
}

/* Sections & Cards */
.section {
  padding: 54px 0;
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-size: 1.6rem;
  color: var(--navy);
  margin-bottom: 10px;
  font-weight: 700;
}

.section-lead {
  color: var(--muted);
  max-width: 780px;
  margin-bottom: 28px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

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

.section-alt .card {
  background: var(--bg);
}

.card h3 {
  font-size: 1.12rem;
  color: var(--navy);
  margin-bottom: 10px;
}

.card p, .card li {
  color: var(--muted);
  font-size: 0.96rem;
}

.card ul {
  padding-inline-start: 20px;
  display: grid;
  gap: 8px;
}

.highlight-box {
  background: var(--primary-soft);
  border-inline-start: 4px solid var(--primary);
  padding: 18px 22px;
  border-radius: 8px;
  margin-top: 22px;
  color: var(--navy);
}

.note-muted {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 12px;
}

.contact-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
}

.contact-list li {
  color: var(--text);
}

.fb-logo-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1877f2;
  color: #ffffff !important;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(24, 119, 242, 0.25);
  transition: background 0.15s ease, transform 0.15s ease;
}

.fb-logo-btn:hover {
  background: #1464cf;
  transform: translateY(-1px);
}

.fb-logo-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: #cbd5e1;
  padding: 36px 0;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.site-footer h4 {
  color: #ffffff;
  margin-bottom: 10px;
  font-size: 1rem;
}

.site-footer a {
  color: #7dd3fc;
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 6px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 16px;
  font-size: 0.84rem;
  color: #94a3b8;
}

@media (max-width: 640px) {
  .hero {
    padding: 44px 0 40px;
  }
  .lang-bar-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
