@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&family=Tajawal:wght@400;500;700;800;900&display=swap');

:root {
  --color-primary-dark: #213701;
  --color-primary-accent: #5ADD03;
  --color-bg-cream: #F9FBF7;
  --color-bg-white: #FFFFFF;
}

/* Base resets & typography */
html {
  scroll-behavior: smooth;
  font-family: 'Tajawal', 'Segoe UI', Tahoma, Arial, sans-serif;
  direction: rtl;
  background-color: #F9FBF7;
  color: #213701;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Tajawal', 'Segoe UI', Tahoma, Arial, sans-serif;
  background-color: #F9FBF7;
  color: #213701;
  overflow-x: hidden;
}

/* Ensure links NEVER default to browser blue */
a {
  color: inherit;
  text-decoration: none;
}

/* SVG Safety: NEVER allow any SVG to expand out of control */
svg {
  display: inline-block;
  vertical-align: middle;
  max-width: 100%;
  max-height: 100%;
  flex-shrink: 0;
}

.w-3, .w-3\.5 { width: 14px !important; height: 14px !important; }
.w-4 { width: 16px !important; height: 16px !important; }
.w-5 { width: 20px !important; height: 20px !important; }
.w-6 { width: 24px !important; height: 24px !important; }
.w-7 { width: 28px !important; height: 28px !important; }
.w-8 { width: 32px !important; height: 32px !important; }
.w-9 { width: 36px !important; height: 36px !important; }
.w-10 { width: 40px !important; height: 40px !important; }
.w-11 { width: 44px !important; height: 44px !important; }
.w-12 { width: 48px !important; height: 48px !important; }

/* English and numerical typography */
.font-num, .en-text, .stat-number, .font-montserrat {
  font-family: 'Montserrat', 'Segoe UI', sans-serif;
  direction: ltr;
  display: inline-block;
}

/* Organic border radius and subtle shadows */
.shadow-organic-sm {
  box-shadow: 0 4px 20px -2px rgba(33, 55, 1, 0.06);
}

.shadow-organic-md {
  box-shadow: 0 10px 30px -4px rgba(33, 55, 1, 0.08), 0 4px 12px -2px rgba(33, 55, 1, 0.03);
}

.shadow-organic-lg {
  box-shadow: 0 20px 40px -6px rgba(33, 55, 1, 0.12), 0 8px 16px -3px rgba(33, 55, 1, 0.05);
}

.shadow-glow-accent {
  box-shadow: 0 0 25px rgba(90, 221, 3, 0.35);
}

.shadow-glow-accent-hover:hover {
  box-shadow: 0 8px 30px rgba(90, 221, 3, 0.45);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #F9FBF7;
}
::-webkit-scrollbar-thumb {
  background: #213701;
  border-radius: 9999px;
  border: 2px solid #F9FBF7;
}
::-webkit-scrollbar-thumb:hover {
  background: #2e4d02;
}

/* Glassmorphism on Dark */
.glass-dark {
  background: rgba(33, 55, 1, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Glassmorphism on Light */
.glass-light {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(33, 55, 1, 0.08);
}

/* Animation utilities */
@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(0.5deg);
  }
}

.animate-float-slow {
  animation: floatSlow 6s ease-in-out infinite;
}

@keyframes pulseSubtle {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.03);
  }
}

.animate-pulse-subtle {
  animation: pulseSubtle 3s ease-in-out infinite;
}

/* Custom Range Slider for Tree Investment Calculator */
.tree-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 12px;
  border-radius: 9999px;
  background: #E5ECD8;
  outline: none;
  transition: all 0.2s ease;
}

.tree-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #5ADD03;
  border: 4px solid #213701;
  box-shadow: 0 4px 14px rgba(33, 55, 1, 0.25), 0 0 12px rgba(90, 221, 3, 0.6);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tree-slider::-webkit-slider-thumb:hover {
  transform: scale(1.18);
  box-shadow: 0 6px 18px rgba(33, 55, 1, 0.35), 0 0 20px rgba(90, 221, 3, 0.8);
}

.tree-slider::-webkit-slider-thumb:active {
  transform: scale(1.08);
}

.tree-slider::-moz-range-thumb {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #5ADD03;
  border: 4px solid #213701;
  box-shadow: 0 4px 14px rgba(33, 55, 1, 0.25), 0 0 12px rgba(90, 221, 3, 0.6);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tree-slider::-moz-range-thumb:hover {
  transform: scale(1.18);
  box-shadow: 0 6px 18px rgba(33, 55, 1, 0.35), 0 0 20px rgba(90, 221, 3, 0.8);
}

/* Lush fallback backgrounds for offline / blocked images */
.bg-fallback-grove {
  background: linear-gradient(135deg, #1b2d01 0%, #213701 40%, #2f4e02 70%, #152401 100%);
}

.bg-fallback-card {
  background: linear-gradient(135deg, #284402 0%, #213701 100%);
}
