/* متغيرات الألوان */
:root {
  --primary-color: #8b5e3b; /* اللون الأساسي (بني خشبي) */
  --primary-light: #a77c5a;
  --primary-dark: #6d4c3d;
  --secondary-color: #f5efe0; /* لون الخلفية الفاتح */
  --text-dark: #4a2f20; /* لون النص الداكن */
  --text-light: #f8f8f8; /* لون النص الفاتح */
  --accent-color: #d4a373; /* لون مميز */
  --white: #ffffff;
  --black: #222222;
  --gray-light: #f0f0f0;
  --gray-medium: #cccccc;
  --gray-dark: #666666;
  --success-color: #4caf50;
  --error-color: #f44336;
}

/* إعادة تعيين وإعدادات عامة */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Tajawal', 'Arial', sans-serif;
  background-color: var(--secondary-color);
  color: var(--text-dark);
  line-height: 1.6;
  direction: rtl;
  overflow-x: hidden;
}

/* الطباعة */
@media print {
  body {
    background: none;
    color: var(--black);
    font-size: 12pt;
  }
  
  .header, .footer, .mobile-menu-toggle {
    display: none !important;
  }
}

/* الروابط */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* الأزرار */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--white);
  text-decoration: none;
}

.btn-light {
  background-color: var(--white);
  color: var(--primary-color);
}

.btn-light:hover {
  background-color: var(--gray-light);
  text-decoration: none;
}

/* التكرارات */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.section-padding {
  padding: 80px 0;
}

.bg-light {
  background-color: var(--secondary-color);
}

.bg-primary {
  background-color: var(--primary-color);
  color: var(--white);
}

.text-center {
  text-align: center;
}

/* الهيدر */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 15px 0;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 50px;
  width: auto;
}

/* القائمة الرئيسية */
.main-nav ul {
  display: flex;
  list-style: none;
}

.main-nav li {
  margin-left: 30px;
}

.main-nav a {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 16px;
  position: relative;
}

.main-nav a.active,
.main-nav a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

.main-nav a.active:after {
  content: '';
  position: absolute;
  bottom: -5px;
  right: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}

/* القائمة المتنقلة */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--primary-color);
  margin: 5px 0;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* القسم البطل */
.hero {
  height: 100vh;
  min-height: 600px;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/hero.jpg') no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  margin-top: 80px;
}

.hero-content {
  max-width: 800px;
  padding: 0 20px;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero .lead {
  font-size: 20px;
  margin-bottom: 30px;
}

/* أقسام الصفحة */
.section-header {
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 36px;
  color: var(--primary-dark);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-header h2:after {
  content: '';
  position: absolute;
  bottom: -10px;
  right: 0;
  width: 50px;
  height: 3px;
  background-color: var(--accent-color);
}

.section-header .section-description {
  font-size: 18px;
  color: var(--gray-dark);
}

/* بطاقات الخدمات */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-image {
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.1);
}

.service-content {
  padding: 20px;
}

.service-content h3 {
  color: var(--primary-dark);
  margin-bottom: 15px;
  font-size: 22px;
}

.service-features {
  list-style: none;
  margin: 20px 0;
}

.service-features li {
  padding: 8px 0;
  position: relative;
  padding-right: 20px;
}

.service-features li:before {
  content: '✓';
  position: absolute;
  right: 0;
  color: var(--accent-color);
  font-weight: bold;
}

/* صفحة الخدمات */
.services-page .service-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 40px;
}

.services-page .service-image {
  height: auto;
}

@media (max-width: 768px) {
  .services-page .service-card {
    grid-template-columns: 1fr;
  }
}

/* استشارة مجانية */
.consultation-cta {
  padding: 50px 0;
}

.consultation-cta .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.consultation-cta h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .consultation-cta .container {
    flex-direction: column;
    text-align: center;
  }
  
  .consultation-cta .cta-action {
    margin-top: 20px;
  }
}

/* صفحة اتصل بنا */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info h2,
.contact-form h2 {
  font-size: 28px;
  margin-bottom: 30px;
  color: var(--primary-dark);
}

.info-card {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
}

.info-icon {
  background-color: var(--primary-color);
  color: var(--white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 20px;
  flex-shrink: 0;
}

.info-icon i {
  font-size: 20px;
}

.info-content h3 {
  font-size: 20px;
  margin-bottom: 5px;
  color: var(--primary-dark);
}

.working-hours {
  background-color: var(--white);
  padding: 20px;
  border-radius: 8px;
  margin-top: 30px;
}

.working-hours h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: var(--primary-dark);
}

/* نموذج الاتصال */
.contact-form {
  background-color: var(--white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--primary-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--gray-medium);
  border-radius: 4px;
  font-family: inherit;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* خريطة الموقع */
.map-section {
  padding: 50px 0;
}

.map-container {
  height: 450px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* الفوتر */
.footer {
  background-color: var(--primary-dark);
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 18px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4:after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent-color);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: var(--gray-light);
  transition: all 0.3s ease;
}

.footer-col ul li a:hover {
  color: var(--white);
  text-decoration: none;
  padding-right: 5px;
}

.contact-info li {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.contact-info i {
  margin-left: 10px;
  color: var(--accent-color);
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
  text-decoration: none;
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* تأثيرات الحركة */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

/* الوسائط المتعددة */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 36px;
  }
  
  .hero .lead {
    font-size: 18px;
  }
  
  .section-header h2 {
    font-size: 30px;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
  
  .main-nav {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 80%;
    height: calc(100vh - 80px);
    background-color: var(--white);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow-y: auto;
  }
  
  .main-nav.active {
    right: 0;
  }
  
  .main-nav ul {
    flex-direction: column;
    padding: 20px;
  }
  
  .main-nav li {
    margin: 0 0 15px 0;
  }
  
  .main-nav a {
    display: block;
    padding: 10px;
  }
  
  .hero {
    height: 80vh;
    min-height: 500px;
    margin-top: 70px;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .services-page .service-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 28px;
  }
  
  .section-padding {
    padding: 50px 0;
  }
  
  .section-header h2 {
    font-size: 26px;
  }
  
  .btn {
    padding: 10px 20px;
  }
}
/* زر الواتساب */
.whatsapp-cta {
  margin-top: 30px;
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #25D366;
  color: white;
  padding: 12px 20px;
  border-radius: 4px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
}

.whatsapp-btn i {
  margin-left: 8px;
  font-size: 20px;
}

.whatsapp-btn:hover {
  background-color: #128C7E;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  color: white;
  text-decoration: none;
}

/* أيقونات وسائل التواصل في الفوتر */
.social-links a.whatsapp {
  background-color: #25D366;
}

.social-links a.whatsapp:hover {
  background-color: #128C7E;
}