/* الأنماط الرئيسية لموقع RIFA GROUP */

/* إعادة ضبط عامة */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Cairo', 'Tajawal', sans-serif;
}

:root {
  --primary-color: #0056b3;
  --secondary-color: #003366;
  --accent-color: #ff6600;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --gray-color: #6c757d;
  --border-color: #dee2e6;
}

html {
  direction: rtl;
  scroll-behavior: smooth;
}

body {
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

/* الهيدر والتنقل */
header {
  background-color: var(--primary-color);
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 50px;
  margin-left: 10px;
}

.logo h1 {
  font-size: 1.5rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-right: 20px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--accent-color);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* القسم الرئيسي */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/1000013682.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 100px 0;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 30px;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--accent-color);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #e55c00;
}

/* أقسام المنتجات */
.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2rem;
  color: var(--secondary-color);
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 50%;
  transform: translateX(50%);
  width: 80px;
  height: 3px;
  background-color: var(--accent-color);
}

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

.product-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.product-img {
  height: 250px;
  overflow: hidden;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

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

.product-info {
  padding: 20px;
}

.product-info h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.product-info p {
  color: var(--gray-color);
  margin-bottom: 15px;
}

/* جداول المواصفات */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.specs-table th, .specs-table td {
  padding: 12px 15px;
  text-align: right;
  border-bottom: 1px solid var(--border-color);
}

.specs-table th {
  background-color: var(--primary-color);
  color: white;
  font-weight: 600;
}

.specs-table tr:nth-child(even) {
  background-color: #f2f2f2;
}

.specs-table tr:hover {
  background-color: #e9ecef;
}

/* قسم المزايا */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.feature-card {
  background-color: white;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 15px;
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.feature-card p {
  color: var(--gray-color);
}

/* قسم التطبيقات */
.applications {
  background-color: var(--light-color);
}

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

.app-item {
  background-color: white;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.app-item h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--secondary-color);
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 10px;
}

.app-item ul {
  list-style-position: inside;
  color: var(--dark-color);
}

.app-item li {
  margin-bottom: 8px;
}

/* قسم الاتصال */
.contact {
  background-color: var(--secondary-color);
  color: white;
  text-align: center;
  padding: 60px 0;
}

.contact h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.contact p {
  max-width: 700px;
  margin: 0 auto 30px;
  font-size: 1.1rem;
}

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

.contact-btn:hover {
  background-color: #f0f0f0;
}

/* الفوتر */
footer {
  background-color: var(--dark-color);
  color: white;
  padding: 40px 0;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-logo {
  margin-bottom: 20px;
}

.footer-logo img {
  height: 60px;
}

.footer-links {
  display: flex;
  list-style: none;
  margin-bottom: 20px;
}

.footer-links li {
  margin: 0 15px;
}

.footer-links a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--accent-color);
}

.copyright {
  font-size: 0.9rem;
  color: #adb5bd;
}

/* التصميم المتجاوب */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: var(--primary-color);
    flex-direction: column;
    padding: 20px;
    transition: right 0.3s;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    margin: 15px 0;
  }

  .hero h2 {
    font-size: 2rem;
  }

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

  .section {
    padding: 60px 0;
  }

  .section-title h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 576px) {
  .hero h2 {
    font-size: 1.8rem;
  }

  .btn {
    padding: 10px 20px;
  }

  .product-img {
    height: 200px;
  }

  .product-info h3 {
    font-size: 1.3rem;
  }

  .specs-table th, .specs-table td {
    padding: 8px 10px;
    font-size: 0.9rem;
  }
}
