/* Jatakai - Arabic RTL Design System */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&family=Cairo:wght@300;400;600;700;900&display=swap');

:root {
  --primary: #1B4B82;
  --primary-light: #2E6DB4;
  --primary-dark: #0F2D4F;
  --accent: #C8A951;
  --accent-warm: #D4B86A;
  --accent-dark: #A08030;
  --charcoal: #1A1A2E;
  --surface: #F7F7F4;
  --surface-alt: #EEECEA;
  --white: #FFFFFF;
  --text-primary: #1A1A2E;
  --text-secondary: #5A5A72;
  --text-muted: #888899;
  --success: #2ECC71;
  --success-bg: #E8F9F0;
  --border: #E0DDD8;
  --shadow-sm: 0 2px 8px rgba(27,75,130,0.08);
  --shadow-md: 0 4px 20px rgba(27,75,130,0.12);
  --shadow-lg: 0 8px 40px rgba(27,75,130,0.16);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
}

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

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

body {
  font-family: 'Tajawal', 'Cairo', sans-serif;
  background: var(--white);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
  text-align: right;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cairo', 'Tajawal', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.3rem; }

p { margin-bottom: 1rem; }

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--primary-light); }

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--charcoal);
}
.btn-primary:hover {
  background: var(--accent-warm);
  color: var(--charcoal);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}

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

.btn-lg {
  padding: 18px 36px;
  font-size: 1.1rem;
}

.btn-whatsapp {
  background: #25D366;
  color: white;
}
.btn-whatsapp:hover {
  background: #1ebe5d;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(37,211,102,0.3);
}

/* Section headers */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-tag {
  display: inline-block;
  background: rgba(200,169,81,0.12);
  color: var(--accent-dark);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}
.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Award badge colors */
.sector-health { background: #E8F4FD; color: #1565C0; }
.sector-infrastructure { background: #FFF3E0; color: #E65100; }
.sector-military { background: #F3E5F5; color: #6A1B9A; }
.sector-IT { background: #E8F5E9; color: #2E7D32; }
.sector-other { background: #ECEFF1; color: #546E7A; }
.sector-commercial { background: #FFF8E1; color: #F57F17; }

/* CTA Section */
.cta-section {
  background: var(--primary);
  color: white;
  padding: 80px 0;
  text-align: center;
}
.cta-section h2 { color: white; }
.cta-section p { color: rgba(255,255,255,0.85); font-size: 1.1rem; }

/* Number formatting */
.sar-value {
  font-weight: 800;
  color: var(--accent-dark);
  font-size: 1.1em;
}

/* Dividers */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.data-table th {
  background: var(--primary);
  color: white;
  padding: 12px 16px;
  text-align: right;
  font-weight: 600;
}
.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.data-table tr:hover td { background: var(--surface); }

/* Badge */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
}

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }

/* Blog */
.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.blog-card-content { padding: 24px; }
.blog-tag {
  display: inline-block;
  background: rgba(27,75,130,0.1);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .btn-lg { padding: 14px 24px; font-size: 1rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .data-table { font-size: 0.85rem; }
  .data-table th, .data-table td { padding: 8px 10px; }
}

/* Prose (for blog articles) */
.prose {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
}
.prose h2 { margin: 2.5rem 0 1rem; }
.prose h3 { margin: 2rem 0 0.75rem; }
.prose ul, .prose ol { padding-right: 1.5rem; margin-bottom: 1.5rem; }
.prose li { margin-bottom: 0.5rem; }
.prose table { width: 100%; margin: 2rem 0; border-collapse: collapse; }
.prose table th { background: var(--primary); color: white; padding: 10px 14px; text-align: right; }
.prose table td { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.prose blockquote {
  border-right: 4px solid var(--accent);
  padding: 16px 20px;
  background: rgba(200,169,81,0.08);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 2rem 0;
  font-style: normal;
}

/* Highlight box */
.highlight-box {
  background: linear-gradient(135deg, rgba(27,75,130,0.06), rgba(200,169,81,0.08));
  border: 1px solid rgba(200,169,81,0.3);
  border-radius: var(--radius);
  padding: 24px;
  margin: 2rem 0;
}

/* Live indicator */
.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  margin-left: 6px;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Nav */
nav.main-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.nav-logo {
  font-family: 'Cairo', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary);
  text-decoration: none;
}
.nav-logo span { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary); }

/* Footer */
footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 30px;
}
.footer-logo {
  font-family: 'Cairo', sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  color: white;
  margin-bottom: 12px;
}
.footer-logo span { color: var(--accent); }
.footer-tagline { color: rgba(255,255,255,0.5); font-size: 0.9rem; }
.footer-links h4 { color: white; margin-bottom: 16px; font-size: 1rem; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 40px;
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

/* Stats bar */
.stats-bar {
  background: var(--primary-dark);
  padding: 12px 0;
  text-align: center;
}
.stats-bar-inner {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.stat-item {
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
}
.stat-item strong { color: var(--accent); font-size: 1.1rem; }
