/* SaudiJabo — Main CSS */
:root {
  --primary: #1B4332;
  --accent:  #D4AF37;
}

* { box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; }

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* Fade-in animation */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp 0.5s ease forwards; }

/* Card hover */
.card-hover {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Hero gradient */
.hero-overlay {
  background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(27,67,50,0.8) 100%);
}

/* Badge */
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
}

/* Loading spinner */
.spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--primary);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Price tag */
.price-tag {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

/* Section heading */
.section-heading {
  font-family: 'Amiri', serif;
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
}

/* Trust bar */
.trust-bar {
  background: linear-gradient(135deg, var(--primary), #2d6a4f);
}

/* Category pill */
.pill {
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}
.pill.active {
  background: var(--primary);
  color: white;
}
.pill:not(.active) {
  background: #f3f4f6;
  color: #4b5563;
}
.pill:not(.active):hover {
  background: rgba(27,67,50,0.1);
  color: var(--primary);
}

/* Prose content */
.prose h1, .prose h2, .prose h3 { color: #1a1a1a; margin-top: 1.5em; margin-bottom: 0.5em; }
.prose p { color: #4b5563; line-height: 1.8; margin-bottom: 1em; }
.prose img { border-radius: 0.75rem; max-width: 100%; }
.prose ul { list-style: disc; padding-left: 1.5em; margin-bottom: 1em; }
.prose li { color: #4b5563; margin-bottom: 0.25em; }

/* Form */
.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  transition: border-color 0.2s;
  outline: none;
  background: white;
}
.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27,67,50,0.1);
}

.btn-primary {
  background: var(--primary);
  color: white;
  padding: 10px 24px;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-primary:hover { background: #2d6a4f; }

.btn-accent {
  background: var(--accent);
  color: white;
  padding: 10px 24px;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn-accent:hover { opacity: 0.9; }
