/* ═══════════════════════════════════════════
   SANAD Ultra-Modern & Luxurious 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;900&display=swap');

:root {
  /* Green Palette - Royal Emerald */
  --green-950: #061c0b;
  --green-900: #0b3313;
  --green-800: #144f22;
  --green-700: #1d6930;
  --green-600: #26853f;
  --green-500: #36a453;
  --green-400: #55be72;
  --green-300: #81d598;
  --green-200: #b5e8c4;
  --green-100: #dcf5e5;
  --green-50: #f0faf4;

  /* Gold Palette - Royal Metallic Champagne */
  --gold-800: #8c6d07;
  --gold-700: #ad8609;
  --gold-600: #cfa20e;
  --gold-500: #e5b619;
  --gold-400: #f0ca43;
  --gold-300: #f6dc75;
  --gold-200: #faeca9;
  --gold-100: #fdf7d9;
  --gold-50: #fefbf0;

  /* Neutrals */
  --neutral-950: #0a0e14;
  --neutral-900: #121824;
  --neutral-800: #1e2738;
  --neutral-700: #313e54;
  --neutral-600: #495a75;
  --neutral-500: #677b9b;
  --neutral-400: #8ea1bf;
  --neutral-300: #bcc8dc;
  --neutral-200: #e0e7f1;
  --neutral-100: #f0f4f9;
  --neutral-50: #f8fafc;
  --white: #ffffff;

  /* Ambient Multi-Layered Shadows */
  --shadow-xs: 0 1px 3px rgba(11, 51, 19, 0.05);
  --shadow-sm: 0 3px 10px rgba(11, 51, 19, 0.06);
  --shadow-md: 0 10px 30px -5px rgba(11, 51, 19, 0.08), 0 4px 10px -2px rgba(0,0,0,0.04);
  --shadow-lg: 0 20px 45px -8px rgba(11, 51, 19, 0.12), 0 8px 20px -4px rgba(0,0,0,0.06);
  --shadow-xl: 0 30px 70px -15px rgba(11, 51, 19, 0.2), 0 12px 28px -6px rgba(0,0,0,0.08);
  --shadow-glow-gold: 0 0 35px rgba(229, 182, 25, 0.4);
  --shadow-glow-green: 0 0 35px rgba(38, 133, 63, 0.35);

  /* Radius */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.25, 1, 0.5, 1);
  --transition: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Fonts */
  --font-ar: 'Cairo', 'Tajawal', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-en: 'Cairo', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-ar);
  background: var(--neutral-50);
  color: var(--neutral-800);
  line-height: 1.85;
  overflow-x: hidden;
  direction: rtl;
  max-width: 100vw;
  position: relative;
}

body.en {
  direction: ltr;
  font-family: var(--font-en);
}

::selection {
  background: var(--green-700);
  color: var(--white);
}

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: 1340px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ═════════ Buttons ═════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 34px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.2px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(rgba(255,255,255,0.18), rgba(255,255,255,0));
  opacity: 0;
  transition: var(--transition-fast);
  z-index: -1;
}
.btn:hover::before { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--green-700) 0%, var(--green-600) 100%);
  color: var(--white);
  box-shadow: 0 10px 24px -4px rgba(29, 105, 48, 0.45), inset 0 1px 1px rgba(255,255,255,0.3);
  border: 1px solid rgba(255,255,255,0.12);
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 32px -4px rgba(29, 105, 48, 0.55), inset 0 1px 1px rgba(255,255,255,0.35);
  color: var(--white);
}
.btn-primary:active { transform: translateY(-1px) scale(0.99); }

.btn-secondary {
  background: linear-gradient(135deg, var(--gold-400) 0%, var(--gold-500) 100%);
  color: var(--neutral-950);
  box-shadow: 0 10px 24px -4px rgba(229, 182, 25, 0.45), inset 0 1px 1px rgba(255,255,255,0.45);
  font-weight: 900;
  border: 1px solid rgba(255,255,255,0.25);
}
.btn-secondary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 32px -4px rgba(229, 182, 25, 0.6);
  color: var(--neutral-950);
}
.btn-secondary:active { transform: translateY(-1px) scale(0.99); }

.btn-outline {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border: 2px solid var(--green-600);
  color: var(--green-800);
  font-weight: 800;
}
.btn-outline:hover {
  background: var(--green-700);
  border-color: var(--green-700);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px -4px rgba(29, 105, 48, 0.35);
}

/* ═════════ Prominent & Luxurious Navbar ═════════ */
.navbar {
  position: fixed;
  top: 0; right: 0; left: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border-bottom: 1px solid rgba(23, 31, 44, 0.07);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-md);
  border-bottom-color: rgba(23, 31, 44, 0.1);
}
.navbar.scrolled .container { height: 80px; }
.navbar.scrolled .navbar-logo img { height: 56px; }

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 96px;
  transition: height 0.4s ease;
  gap: 16px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  transition: var(--transition);
  flex-shrink: 0;
  white-space: nowrap;
}
.navbar-logo img {
  height: 64px;
  width: auto;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.08));
  transition: all 0.4s ease;
}
.navbar-logo span {
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--green-900);
  letter-spacing: -0.4px;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-700) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.navbar-logo:hover img { transform: scale(1.06); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 1;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--neutral-700);
  transition: var(--transition);
  position: relative;
  white-space: nowrap;
}
.nav-links a:hover {
  color: var(--green-800);
  background: var(--green-50);
}
.nav-links a.active {
  color: var(--green-900);
  background: var(--green-100);
  font-weight: 800;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  white-space: nowrap;
}

.mobile-menu-ctas {
  display: none !important;
}

.cart-icon-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green-50);
  color: var(--green-800);
  font-size: 1.25rem;
  transition: var(--transition);
  border: 1.5px solid var(--green-200);
}
.cart-icon-link:hover {
  background: var(--green-700);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(29, 105, 48, 0.25);
}
.cart-badge {
  position: absolute;
  top: -3px;
  left: -3px;
  background: #e53935;
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 900;
  min-width: 22px;
  height: 22px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  box-shadow: 0 3px 8px rgba(229, 57, 53, 0.5);
  border: 2px solid var(--white);
}

.lang-switch {
  padding: 9px 18px;
  border-radius: var(--radius-full);
  background: var(--white);
  color: var(--green-800);
  font-weight: 900;
  font-size: 0.9rem;
  border: 1.5px solid var(--green-200);
  transition: var(--transition);
}
.lang-switch:hover {
  background: var(--green-700);
  border-color: var(--green-700);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(29, 105, 48, 0.2);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: var(--green-50);
  width: 48px;
  height: 48px;
  border-radius: 14px;
  padding: 12px;
  transition: var(--transition);
}
.mobile-toggle span {
  width: 100%;
  height: 2.5px;
  background: var(--green-800);
  border-radius: 4px;
  transition: var(--transition);
}
.mobile-toggle.active span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* ═════════ Sections & Headers ═════════ */
.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
  position: relative;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 22px;
  background: linear-gradient(135deg, var(--green-50), var(--green-100));
  color: var(--green-800);
  border: 1.5px solid var(--green-200);
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 800;
  margin-bottom: 18px;
  box-shadow: var(--shadow-xs);
}
.section-badge i { color: var(--gold-600); font-size: 1rem; }

.section-title {
  font-size: 2.75rem;
  font-weight: 900;
  color: var(--neutral-900);
  letter-spacing: -0.6px;
  line-height: 1.35;
  margin-bottom: 16px;
}
.section-title span {
  color: var(--green-700);
  position: relative;
  display: inline-block;
}
.section-title span::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 0;
  right: 0;
  height: 10px;
  background: rgba(229, 182, 25, 0.28);
  border-radius: 6px;
  z-index: -1;
}

.section-desc {
  font-size: 1.18rem;
  color: var(--neutral-600);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.85;
}

/* ═════════ Universal Cards ═════════ */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(23, 31, 44, 0.08);
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(29, 105, 48, 0.25);
}

.card-icon {
  width: 76px;
  height: 76px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--green-100), var(--green-50));
  color: var(--green-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 24px;
  transition: var(--spring);
  border: 1.5px solid var(--green-200);
}
.card:hover .card-icon {
  background: linear-gradient(135deg, var(--green-700), var(--green-600));
  color: var(--white);
  transform: scale(1.12) rotate(6deg);
  box-shadow: var(--shadow-glow-green);
}

/* ═════════ Grand Footer ═════════ */
.footer {
  background: linear-gradient(160deg, #07120a 0%, #0d2813 50%, #07190c 100%);
  color: rgba(255,255,255,0.85);
  padding: 90px 0 35px;
  position: relative;
  overflow: hidden;
  border-top: 5px solid var(--gold-500);
}

.footer::before {
  content: '';
  position: absolute;
  top: -100px; right: 15%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(29,105,48,0.2), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 54px;
  margin-bottom: 70px;
}

.footer-brand .navbar-logo img {
  height: 72px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}
.footer-brand .navbar-logo span {
  font-size: 1.35rem;
  color: var(--white);
  background: none;
  -webkit-text-fill-color: initial;
}

.footer-brand p {
  color: rgba(255,255,255,0.72);
  font-size: 1rem;
  line-height: 1.9;
  margin-top: 18px;
  margin-bottom: 28px;
  max-width: 400px;
}

.footer-social {
  display: flex;
  gap: 14px;
}
.footer-social a {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  transition: var(--transition);
}
.footer-social a:hover {
  background: var(--gold-400);
  color: var(--neutral-950);
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow-gold);
}

.footer-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 26px;
  position: relative;
  padding-bottom: 12px;
}
.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 3px;
  background: var(--gold-400);
  border-radius: 2px;
}
body.en .footer-title::after { right: auto; left: 0; }

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-links a {
  color: rgba(255,255,255,0.72);
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
}
.footer-links a:hover {
  color: var(--gold-300);
  transform: translateX(-8px);
}
body.en .footer-links a:hover { transform: translateX(8px); }

.footer-bottom {
  text-align: center;
  padding-top: 35px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.55);
  font-size: 0.92rem;
}

/* ═════════ Floating WhatsApp Widget ═════════ */
.whatsapp-float {
  position: fixed;
  bottom: 34px;
  left: 34px;
  z-index: 999;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45);
  transition: var(--spring);
}
.whatsapp-float svg {
  width: 36px;
  height: 36px;
  fill: #ffffff;
  transition: transform 0.3s ease;
}
.whatsapp-float:hover {
  transform: scale(1.15) rotate(12deg);
  box-shadow: 0 15px 35px rgba(37, 211, 102, 0.65);
  color: var(--white);
}
.whatsapp-float:hover svg {
  transform: scale(1.08);
}
.whatsapp-float::before,
.whatsapp-float::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.4);
  z-index: -1;
  animation: radarRipple 2.5s infinite cubic-bezier(0.25, 1, 0.5, 1);
}
.whatsapp-float::after { animation-delay: 1.25s; }

@keyframes radarRipple {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.95); opacity: 0; }
}

/* ═════════ Scroll Reveals ═════════ */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-right {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-left {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-up.visible,
.fade-right.visible,
.fade-left.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* Responsive */
@media (max-width: 1220px) {
  .nav-cta .btn-outline {
    display: none !important;
  }
  .nav-cta .btn-primary {
    display: inline-flex !important;
    padding: 8px 16px !important;
    font-size: 0.85rem !important;
    border-radius: var(--radius-full) !important;
    white-space: nowrap !important;
  }
  .nav-links {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    padding: 24px 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-bottom: 2px solid var(--green-200);
    flex-direction: column;
    gap: 8px;
    z-index: 999;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    animation: menuSlideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .nav-links.open {
    display: flex !important;
  }
  .nav-links a {
    width: 100%;
    padding: 12px 18px;
    font-size: 1.05rem;
    font-weight: 800;
    border-radius: 12px;
    display: flex;
    align-items: center;
  }
  .nav-links a:hover,
  .nav-links a.active {
    background: var(--green-50);
    color: var(--green-800);
  }
  .mobile-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1002;
    background: var(--green-50);
    border: 1.5px solid var(--green-200);
    flex-shrink: 0;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@keyframes menuSlideDown {
  from { opacity: 0; transform: translateY(-15px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .section-title { font-size: 1.9rem; }
  .navbar .container {
    height: 72px;
    padding: 0 10px;
    gap: 6px;
  }
  .navbar-logo {
    gap: 6px;
  }
  .navbar-logo img {
    height: 42px;
  }
  .navbar-logo span {
    font-size: 0.95rem;
  }
  .nav-cta {
    gap: 6px;
  }
  .nav-cta .btn-primary {
    padding: 6px 12px !important;
    font-size: 0.78rem !important;
    font-weight: 800 !important;
  }
  .cart-icon-link {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
  .lang-switch {
    padding: 5px 9px;
    font-size: 0.75rem;
  }
  .mobile-toggle {
    width: 38px;
    height: 38px;
    padding: 8px;
    border-radius: 10px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .whatsapp-float {
    bottom: 20px;
    left: 20px;
    width: 54px;
    height: 54px;
    font-size: 1.7rem;
  }
}

@media (max-width: 380px) {
  .navbar-logo span {
    display: none;
  }
  .navbar-logo img {
    height: 40px;
  }
  .nav-cta .btn-primary {
    padding: 5px 10px !important;
    font-size: 0.75rem !important;
  }
}




.footer-brand .footer-logo-box {
  background: #ffffff !important;
  padding: 10px 18px !important;
  border-radius: 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}
.footer-brand a:hover .footer-logo-box {
  transform: scale(1.04) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4) !important;
}
.footer-brand .footer-logo-box img {
  height: 75px !important;
  width: auto !important;
  max-width: 220px !important;
  display: block !important;
  object-fit: contain !important;
}
.footer-brand-title {
  color: #ffffff !important;
  font-weight: 900 !important;
  font-size: 1.25rem !important;
  line-height: 1.45 !important;
  letter-spacing: -0.3px !important;
  display: block !important;
  margin-top: 6px !important;
}

.footer-social {
  display: flex !important;
  gap: 14px !important;
  margin-top: 20px !important;
}
.footer-social a {
  width: 48px !important;
  height: 48px !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #ffffff !important;
  transition: all 0.35s ease !important;
}
.footer-social a svg {
  width: 22px !important;
  height: 22px !important;
  fill: #ffffff !important;
  display: block !important;
  transition: transform 0.3s ease, fill 0.3s ease !important;
}
.footer-social a:hover {
  background: var(--gold-400) !important;
  border-color: var(--gold-300) !important;
  transform: translateY(-4px) !important;
  box-shadow: 0 8px 25px rgba(229, 182, 25, 0.4) !important;
}
.footer-social a:hover svg {
  fill: #09260e !important;
  transform: scale(1.15) !important;
}
