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

:root {
  --green-900: #1b5e20;
  --green-800: #2e7d32;
  --green-700: #388e3c;
  --green-600: #43a047;
  --green-500: #4caf50;
  --green-400: #66bb6a;
  --green-300: #81c784;
  --green-200: #a5d6a7;
  --green-100: #c8e6c9;
  --green-50: #e8f5e9;
  --gold-700: #b8960c;
  --gold-600: #c9a811;
  --gold-500: #d4af37;
  --gold-400: #dcc157;
  --gold-300: #e5d382;
  --gold-200: #efe5ad;
  --gold-100: #f7f0d4;
  --gold-50: #fcf8eb;
  --neutral-900: #1a1a2e;
  --neutral-800: #2d2d44;
  --neutral-700: #404060;
  --neutral-600: #5a5a7a;
  --neutral-500: #7a7a9a;
  --neutral-400: #9e9eb8;
  --neutral-300: #c2c2d6;
  --neutral-200: #e0e0ea;
  --neutral-100: #f0f0f5;
  --neutral-50: #f8f8fc;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-ar: 'Cairo', 'Tajawal', sans-serif;
  --font-en: 'Cairo', sans-serif;
}

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

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

body {
  font-family: var(--font-ar);
  background: var(--white);
  color: var(--neutral-800);
  line-height: 1.7;
  overflow-x: hidden;
  direction: rtl;
  max-width: 100vw;
}

body.en { direction: ltr; font-family: var(--font-en); }

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; outline: none; font-family: inherit; }
input, textarea, select { font-family: inherit; outline: none; }

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

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 1rem;
  transition: var(--transition); position: relative; overflow: hidden;
}
.btn::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 0; height: 0; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transition: width 0.6s, height 0.6s, top 0.6s, left 0.6s;
  transform: translate(-50%, -50%);
}
.btn:hover::after { width: 300px; height: 300px; }

.btn-primary {
  background: linear-gradient(135deg, var(--green-800), var(--green-600));
  color: var(--white); box-shadow: 0 4px 15px rgba(46,125,50,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(46,125,50,0.4); }

.btn-secondary {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--white); box-shadow: 0 4px 15px rgba(212,175,55,0.3);
}
.btn-secondary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(212,175,55,0.4); }

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

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; right: 0; left: 0; z-index: 1000;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.navbar .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 80px;
}
.navbar-logo { display: flex; align-items: center; gap: 12px; }
.navbar-logo img { height: 50px; width: auto; }
.navbar-logo span { font-weight: 800; font-size: 1.1rem; color: var(--green-800); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 16px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.9rem; color: var(--neutral-700);
  transition: var(--transition); position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--green-800); background: var(--green-50); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: 0; right: 16px; left: 16px;
  height: 3px; background: var(--gold-500); border-radius: 3px;
}

.nav-cta .btn { padding: 10px 24px; font-size: 0.9rem; }

.lang-switch {
  padding: 6px 14px; border-radius: var(--radius-sm);
  background: var(--green-50); color: var(--green-800);
  font-weight: 700; font-size: 0.85rem; border: 1px solid var(--green-200);
  transition: var(--transition);
}
.lang-switch:hover { background: var(--green-800); color: var(--white); }

.mobile-toggle { display: none; flex-direction: column; gap: 5px; background: none; padding: 5px; }
.mobile-toggle span { width: 25px; height: 3px; background: var(--green-800); border-radius: 3px; transition: var(--transition); }

/* ===== SECTION BASE ===== */
.section { padding: 100px 0; position: relative; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px 6px 12px; border-radius: 6px;
  background: transparent; color: var(--green-700);
  font-weight: 700; font-size: 0.8rem; margin-bottom: 16px;
  border: none; letter-spacing: 0.5px; text-transform: uppercase;
  position: relative;
}
.section-badge::before {
  content: ''; width: 3px; height: 16px;
  background: linear-gradient(180deg, var(--green-500), var(--gold-500));
  border-radius: 3px; flex-shrink: 0;
}
.section-badge i { display: none; }
.section-title {
  font-size: 2.5rem; font-weight: 900; color: var(--neutral-900);
  margin-bottom: 16px; line-height: 1.3;
}
.section-title span { color: var(--green-800); }
.section-desc {
  font-size: 1.1rem; color: var(--neutral-600);
  max-width: 650px; margin: 0 auto; line-height: 1.8;
}

/* ===== CARDS ===== */
.card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 36px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--neutral-200);
  transition: var(--transition); position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--green-300); }
.card-icon {
  width: 64px; height: 64px; border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--green-50), var(--green-100));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 20px; color: var(--green-800);
}
.card-title { font-size: 1.3rem; font-weight: 800; margin-bottom: 12px; color: var(--neutral-900); }
.card-text { color: var(--neutral-600); line-height: 1.8; font-size: 0.95rem; }

/* ===== FOOTER ===== */
.footer {
  background: var(--neutral-900); color: var(--neutral-300);
  padding: 80px 0 30px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 50px;
}
.footer-brand p { margin-top: 16px; line-height: 1.8; font-size: 0.9rem; }
.footer-title { color: var(--white); font-weight: 700; font-size: 1.1rem; margin-bottom: 20px; }
.footer-links a {
  display: block; padding: 6px 0; color: var(--neutral-400);
  font-size: 0.9rem; transition: var(--transition);
}
.footer-links a:hover { color: var(--gold-400); padding-right: 8px; }
body.en .footer-links a:hover { padding-right: 0; padding-left: 8px; }
.footer-bottom {
  border-top: 1px solid var(--neutral-700);
  padding-top: 30px; text-align: center;
  font-size: 0.85rem; color: var(--neutral-500);
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed; bottom: 30px; left: 30px; z-index: 999;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; box-shadow: 0 4px 15px rgba(37,211,102,0.4);
  transition: var(--transition); animation: pulse-wa 2s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); }
@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0.4); }
  50% { box-shadow: 0 0 0 15px rgba(37,211,102,0); }
}

/* ===== ANIMATIONS ===== */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.6s, transform 0.6s; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-right { opacity: 0; transform: translateX(-30px); transition: opacity 0.6s, transform 0.6s; }
.fade-right.visible { opacity: 1; transform: translateX(0); }
.fade-left { opacity: 0; transform: translateX(30px); transition: opacity 0.6s, transform 0.6s; }
.fade-left.visible { opacity: 1; transform: translateX(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .nav-links, .nav-cta { display: none; }
  .mobile-toggle { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 80px; right: 0; left: 0;
    background: var(--white); padding: 20px;
    box-shadow: var(--shadow-lg); gap: 4px; z-index: 999;
  }
  .nav-cta.open {
    display: flex; flex-direction: column; gap: 8px;
    position: absolute; top: auto; right: 0; left: 0;
    background: var(--white); padding: 10px 20px 20px;
    box-shadow: var(--shadow-lg);
  }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .section-title { font-size: 2rem; }
  .section-header { margin-bottom: 40px; }
  .card { padding: 24px; }
}
@media (max-width: 768px) {
  .section { padding: 50px 0; }
  .section-title { font-size: 1.5rem; }
  .section-desc { font-size: 0.95rem; }
  .footer { padding: 50px 0 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid > div { text-align: center; }
  .footer-links a { padding: 4px 0; }
  .container { padding: 0 16px; }
  .navbar .container { height: 70px; }
  .navbar-logo img { height: 40px; }
  .navbar-logo span { font-size: 0.95rem; }
  .card { padding: 20px; border-radius: 14px; }
  .card-icon { width: 50px; height: 50px; font-size: 1.4rem; margin-bottom: 14px; }
  .card-title { font-size: 1.1rem; }
  .card-text { font-size: 0.9rem; }
  .btn { padding: 12px 24px; font-size: 0.9rem; }
  .whatsapp-float { width: 50px; height: 50px; font-size: 1.4rem; bottom: 20px; left: 20px; }
}

/* ===== CARD HOVER EFFECTS ===== */
.blog-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}
.partner-logo {
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
.partner-logo:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
  border-color: var(--green-500);
}
