/* Custom styles beyond Tailwind */
html { scroll-behavior: smooth; }
body { font-family: 'Inter', ui-sans-serif, system-ui, sans-serif; color: #111827; }

/* Arabic font — applied when lang=ar */
[lang="ar"] body,
[lang="ar"] input,
[lang="ar"] select,
[lang="ar"] textarea,
[lang="ar"] button {
  font-family: 'Cairo', 'Inter', ui-sans-serif, system-ui, sans-serif;
}
[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3, [lang="ar"] h4 {
  font-family: 'Cairo', ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
}

/* Animations */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { transform: translateX(20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes shimmer { 0% { background-position: -200px 0; } 100% { background-position: 200px 0; } }

.shimmer {
  background: linear-gradient(90deg, #f3f4f6 0%, #e5e7eb 50%, #f3f4f6 100%);
  background-size: 400px 100%;
  animation: shimmer 1.4s linear infinite;
}

/* Line clamp fallback */
.line-clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Hero gradient overlay */
.hero-gradient {
  background: linear-gradient(135deg, rgba(21,101,192,0.92) 0%, rgba(30,136,229,0.85) 50%, rgba(66,165,245,0.8) 100%);
}

/* OTP input */
.otp-input {
  width: 3rem; height: 3.5rem; text-align: center; font-size: 1.5rem; font-weight: 600;
  border: 2px solid #e5e7eb; border-radius: .75rem; outline: none; transition: all .15s;
}
.otp-input:focus { border-color: #1E88E5; box-shadow: 0 0 0 3px rgba(30,136,229,.15); }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Leaflet marker color override */
.leaflet-container { z-index: 1; }

/* Focus states */
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #1E88E5; outline-offset: 2px;
}

/* Nice form inputs */
.input-base {
  width: 100%; padding: 0.65rem 0.9rem; border: 1.5px solid #e5e7eb; border-radius: .65rem;
  font-size: .95rem; background: #fff; transition: border-color .15s, box-shadow .15s;
}
.input-base:focus { border-color: #1E88E5; outline: none; box-shadow: 0 0 0 3px rgba(30,136,229,.12); }

.btn { display:inline-flex; align-items:center; justify-content:center; gap:.5rem; padding:.65rem 1.25rem; border-radius:.65rem; font-weight:600; transition:all .15s; }
.btn-primary { background:#1E88E5; color:#fff; }
.btn-primary:hover { background:#1565C0; }
.btn-ghost { color:#374151; }
.btn-ghost:hover { background:#f3f4f6; }
.btn-outline { border:1.5px solid #e5e7eb; color:#374151; background:#fff; }
.btn-outline:hover { border-color:#1E88E5; color:#1E88E5; }

/* WhatsApp floating button pulse */
#wa-float {
  animation: wa-pulse 2s infinite;
}
#wa-float:hover {
  animation: none;
  transform: scale(1.1);
}
@keyframes wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); }
  70% { box-shadow: 0 0 0 15px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
