/**
 * سايتوتك الإمارات - ملف CSS الرئيسي
 * تصميم متجاوب وحديث
 * تاريخ الإنشاء: 2024
 */

/* ============================================
   متغيرات CSS (CSS Variables)
   ============================================ */
:root {
  --primary-color: #10b981;
  --secondary-color: #059669;
  --text-color: #1f2937;
  --text-light: #6b7280;
  --bg-light: #f9fafb;
  --bg-white: #ffffff;
  --border-color: #e5e7eb;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* ============================================
   إعادة تعيين عام (Reset)
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--bg-white);
  direction: rtl;
  text-align: right;
}

/* ============================================
   عناصر عامة
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 15px;
}

h1 {
  font-size: 2.5rem;
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  text-align: center;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 15px;
  color: var(--text-light);
}

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

a:hover {
  color: var(--secondary-color);
}

/* ============================================
   قسم محتوى SEO
   ============================================ */
.seo-content {
  padding: 60px 20px;
  background-color: var(--bg-light);
}

.seo-content h2 {
  color: var(--primary-color);
  margin-bottom: 30px;
}

.seo-content h3 {
  color: var(--secondary-color);
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.seo-content p {
  margin-bottom: 20px;
  line-height: 1.8;
}

/* ============================================
   الرأس (الرأس)
   ============================================ */
header {
  background-color: var(--bg-white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text-color);
}

.logo img {
  height: 50px;
  width: auto;
}

.logo-text {
  color: var(--primary-color);
  font-weight: 700;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
  flex-wrap: wrap;
}

nav a {
  color: var(--text-color);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}

nav a:hover,
nav a.active {
  color: var(--primary-color);
}

.whatsapp-btn-header {
  background-color: var(--primary-color) !important;
  color: white !important;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 600;
}

.whatsapp-btn-header:hover {
  background-color: var(--secondary-color) !important;
}

/* ============================================
   قسم البطل (Hero Section)
   ============================================ */
.hero {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 80px 20px;
  text-align: center;
}

.hero-content h1 {
  color: white;
  margin-bottom: 20px;
  font-size: 2.5rem;
}

.hero-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   الأزرار (Buttons)
   ============================================ */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  text-align: center;
  gap: 8px;
  display: inline-flex;
  align-items: center;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-whatsapp {
  background-color: #25d366;
  color: white;
}

.btn-whatsapp:hover {
  background-color: #20ba5a;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ============================================
   الشبكات (Grid)
   ============================================ */
.grid {
  display: grid;
  gap: 30px;
  margin-top: 40px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ============================================
   البطاقات (Cards)
   ============================================ */
.card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.card h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

/* ============================================
   قسم المميزات (Features)
   ============================================ */
.features {
  padding: 60px 20px;
  background-color: var(--bg-light);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

/* ============================================
   قسم المنتجات (Products)
   ============================================ */
.products-section {
  padding: 60px 20px;
}

.product-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.product-image-home {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.product-content {
  padding: 20px;
}

.product-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 10px;
}

.product-description {
  color: var(--text-light);
  margin-bottom: 15px;
  line-height: 1.5;
}

/* ============================================
   قسم الشهادات (Testimonials)
   ============================================ */
.testimonials-section {
  padding: 60px 20px;
  background-color: var(--bg-light);
}

.testimonial-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
}

.testimonial-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

/* ============================================
   نموذج الاتصال (Contact Form)
   ============================================ */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-color);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.required {
  color: #ef4444;
}

/* ============================================
   الأسئلة الشائعة (FAQ)
   ============================================ */
.faq-item {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: var(--bg-light);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  color: var(--text-color);
}

.faq-question:hover {
  background-color: #f3f4f6;
}

.faq-icon {
  transition: var(--transition);
}

.faq-item.active .faq-icon {
  transform: rotate(-180deg);
}

.faq-answer {
  padding: 20px;
  background-color: var(--bg-white);
  display: none;
  border-top: 1px solid var(--border-color);
}

.faq-answer p {
  margin-bottom: 0;
}

/* ============================================
   قسم المدونة (Blog)
   ============================================ */
.blog-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
}

.blog-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.blog-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.blog-card:hover .blog-image img {
  transform: scale(1.05);
}

.blog-content {
  padding: 20px;
}

.blog-category {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.blog-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 10px;
}

.blog-excerpt {
  color: var(--text-light);
  margin-bottom: 15px;
  line-height: 1.6;
}

.blog-meta {
  display: flex;
  gap: 15px;
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ============================================
   التذييل (Footer)
   ============================================ */
footer {
  background-color: var(--text-color);
  color: white;
  padding: 50px 20px 20px;
  margin-top: 60px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 30px;
}

.footer-section h4 {
  color: white;
  margin-bottom: 15px;
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

.footer-section a:hover {
  color: var(--primary-color);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-bottom p {
  margin-bottom: 10px;
}

/* ============================================
   زر الواتساب العائم (Floating WhatsApp Button)
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  z-index: 999;
  font-size: 1.8rem;
  color: white;
}

.whatsapp-float:hover {
  background-color: #20ba5a;
  transform: scale(1.1);
}

/* ============================================
   تأثيرات الظهور (Animations)
   ============================================ */
.fade-in-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
}

.fade-in-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   نصوص عامة
   ============================================ */
.text-center {
  text-align: center;
}

/* ============================================
   المسافات
   ============================================ */
section {
  padding: 60px 20px;
}

section:nth-child(even) {
  background-color: var(--bg-light);
}

/* ============================================
   التصميم المتجاوب (Responsive Design)
   ============================================ */
@media (max-width: 768px) {
  .seo-content {
    padding: 40px 20px;
  }

  .seo-content h3 {
    font-size: 1.2rem;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .header-content {
    flex-direction: column;
    gap: 15px;
  }

  nav ul {
    gap: 15px;
    justify-content: center;
  }

  nav ul li {
    font-size: 0.9rem;
  }

  .hero {
    padding: 50px 20px;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .product-image-home {
    height: 200px;
  }

  .testimonial-card img {
    height: 250px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .whatsapp-float {
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  section {
    padding: 40px 20px;
  }
}

@media (max-width: 480px) {
  .seo-content {
    padding: 30px 15px;
  }

  .seo-content h3 {
    font-size: 1.1rem;
  }

  .container {
    padding: 0 15px;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  .logo {
    flex-direction: column;
    gap: 5px;
  }

  .logo img {
    height: 40px;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .card,
  .product-card,
  .blog-card {
    padding: 15px;
  }

  .product-image-home {
    height: 150px;
  }

  .blog-meta {
    flex-direction: column;
    gap: 5px;
  }

  .footer-content {
    gap: 20px;
  }

  .whatsapp-float {
    bottom: 15px;
    left: 15px;
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }

  section {
    padding: 30px 15px;
  }
}

