/* ==========================================================================
   شركة البركة للبذور والتقاوي الزراعية - Al-Baraka Agricultural Seeds
   Main Stylesheet - RTL Native & Fully Responsive
   ========================================================================== */

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

:root {
  --primary: #15803d;
  --primary-dark: #14532d;
  --primary-light: #22c55e;
  --primary-soft: #f0fdf4;
  --accent-gold: #d97706;
  --accent-gold-light: #fbbf24;
  --accent-earth: #854d0e;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --bg-light: #f8fafc;
  --card-bg: #ffffff;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-glow: 0 0 25px rgba(34, 197, 94, 0.25);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  direction: rtl;
  text-align: right;
  background-color: #fbfdfa;
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Alexandria', 'Cairo', sans-serif;
  color: var(--primary-dark);
  line-height: 1.35;
  font-weight: 800;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #16a34a;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #15803d;
}

/* Top Notification / Info Bar */
.top-bar {
  background: linear-gradient(90deg, #14532d 0%, #166534 100%);
  color: #f0fdf4;
  font-size: 0.875rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.top-bar a {
  color: #fbbf24;
}
.top-bar a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Main Navigation */
.navbar-sticky {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e2e8f0;
  transition: var(--transition);
}
.navbar-sticky.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.98);
}

/* Badges */
.badge-eco {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: #dcfce7;
  color: #15803d;
  font-weight: 700;
  font-size: 0.8rem;
}
.badge-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: #fef3c7;
  color: #b45309;
  font-weight: 700;
  font-size: 0.8rem;
}

/* Hero Section */
.hero-gradient {
  background: radial-gradient(circle at top right, rgba(34, 197, 94, 0.15), transparent 50%),
              radial-gradient(circle at bottom left, rgba(245, 158, 11, 0.12), transparent 50%),
              #ffffff;
}

/* Floating WhatsApp Button & Widget */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 9999;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.floating-whatsapp-btn:hover {
  transform: scale(1.1) rotate(8deg);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
  color: white;
}
.floating-whatsapp-btn::before {
  content: '';
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border-radius: 50%;
  border: 2px solid #25D366;
  opacity: 0.7;
  animation: pulse-ring 2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 0.3; }
  100% { transform: scale(1.35); opacity: 0; }
}

.whatsapp-popup-card {
  position: fixed;
  bottom: 100px;
  right: 25px;
  z-index: 9998;
  width: 320px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  border: 1px solid #e2e8f0;
  display: none;
  overflow: hidden;
  animation: slideUp 0.3s ease-out;
}
.whatsapp-popup-card.active {
  display: block;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Seed Cards */
.seed-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.seed-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: #86efac;
}

.seed-card .img-wrapper {
  position: relative;
  height: 230px;
  overflow: hidden;
  background: #f1f5f9;
}
.seed-card .img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.seed-card:hover .img-wrapper img {
  transform: scale(1.08);
}

/* Feature Icon Box */
.feature-box {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid #e2e8f0;
  padding: 1.75rem;
  transition: var(--transition);
}
.feature-box:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: #ffffff;
  font-weight: 700;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(22, 163, 74, 0.3);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #15803d 0%, #14532d 100%);
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.45);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  font-weight: 700;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(217, 119, 6, 0.3);
}
.btn-gold:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.45);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: #25D366;
  color: #ffffff;
  font-weight: 700;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
}
.btn-whatsapp:hover {
  background: #1ea952;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  font-weight: 700;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}
.btn-outline:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Specs Table */
.specs-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid #e2e8f0;
}
.specs-table th {
  background-color: #f8fafc;
  color: var(--primary-dark);
  padding: 1rem 1.25rem;
  font-weight: 700;
  border-bottom: 2px solid #e2e8f0;
  text-align: right;
}
.specs-table td {
  padding: 0.95rem 1.25rem;
  border-bottom: 1px solid #f1f5f9;
  background: #ffffff;
}
.specs-table tr:last-child td {
  border-bottom: none;
}
.specs-table tr:hover td {
  background-color: #f0fdf4;
}

/* Banners Section */
.banner-preview-box {
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: auto;
  margin-bottom: 1.5rem;
}

/* Footer */
footer {
  background: linear-gradient(180deg, #0f391b 0%, #071c0c 100%);
  color: #cbd5e1;
  padding-top: 4.5rem;
  padding-bottom: 2rem;
  position: relative;
}
footer a:hover {
  color: #4ade80;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .floating-whatsapp-btn {
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
    font-size: 28px;
  }
  .whatsapp-popup-card {
    right: 15px;
    bottom: 85px;
    width: calc(100vw - 30px);
  }
}

/* Print styling */
@media print {
  .top-bar, .navbar-sticky, .floating-whatsapp-btn, .whatsapp-popup-card, footer {
    display: none !important;
  }
}
