/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Cairo", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  direction: rtl;
  text-align: right;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Header */
.header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.nav {
  padding: 1rem 0;
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c5530;
  margin: 0;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
}

.nav-menu a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 0.5rem 0;
}

.nav-menu a:hover,
.nav-menu a:focus {
  color: #2c5530;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: #333;
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}
.whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 20px;
  background-color: #25D366;
  color: #fff;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.3s ease, background-color 0.3s ease;
  margin-top: 15px;  /* المسافة بينه وبين الزر اللي فوقه */
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

.hero-content {
  text-align: center;
  color: #fff;
  z-index: 1;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* Buttons */
.cta-button,
.submit-button {
  display: inline-block;
  background: linear-gradient(135deg, #2c5530, #4a7c59);
  color: #fff;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(44, 85, 48, 0.3);
}

.cta-button:hover,
.cta-button:focus,
.submit-button:hover,
.submit-button:focus {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(44, 85, 48, 0.4);
  background: linear-gradient(135deg, #4a7c59, #2c5530);
}

.phone-link {
  display: inline-block;
  background: #2c5530;
  color: #fff;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}
/* Contact Section */
.contact {
  padding: 60px 20px;
  background: #f9f9f9;
  text-align: center; /* يخلي النصوص في المنتصف */
}

.contact .section-title {
  font-size: 28px;
  margin-bottom: 30px;
  color: #333;
}
.contact-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.contact-info {
  flex: 1;
}

.contact-image {
  flex: 1;
  text-align: center;
}

.contact-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

/* Contact Section */
.contact {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9; /* خلفية فاتحة علشان تبان */
}

.contact-content {
    display: flex;
    flex-direction: column;  /* العناصر تحت بعض */
    justify-content: center; /* توسيط عمودي */
    align-items: center;     /* توسيط أفقي */
    gap: 25px; /* مسافة بين العناصر */
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.contact-item {
    text-align: center;
}

.contact-content {
  display: flex;
  justify-content: center; /* يخلي المحتوى في المنتصف */
}

.contact-info {
  display: flex;
  flex-direction: column; /* يخلي العناصر تحت بعض */
  gap: 20px; /* مسافة بين العناصر */
  align-items: center; /* يخليهم في المنتصف */
}

.contact-item h3 {
  margin-bottom: 10px;
  color: #444;
}

.phone-link,
.whatsapp-link {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.phone-link {
  background: #007BFF;
  color: #fff;
}

.phone-link:hover {
  background: #0056b3;
}

.whatsapp-link {
  background: #25D366;
  color: #fff;
}

.whatsapp-link:hover {
  background: #1ebe5d;
}

.whatsapp-link {
  display: inline-block;
  background: #25d366;
  color: #fff;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.phone-link:hover,
.whatsapp-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Sections */
.services,
.pricing,
.why-us,
.contact {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  color: #2c5530;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: #2c5530;
  margin: 1rem auto;
  border-radius: 2px;
}

/* Services */
.services {
  background: #f8f9fa;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background: #fff;
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  color: #2c5530;
  margin-bottom: 1rem;
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-top: 1rem;
}

/* Pricing */
.pricing-description {
  text-align: center;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  color: #666;
}

.pricing-cta {
  text-align: center;
}

/* Why Us */
.why-us {
  background: #f8f9fa;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature {
  background: #fff;
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

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

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #2c5530;
}

.feature h3 {
  color: #333;
  font-size: 1.1rem;
}

/* Contact */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  text-align: center;
  padding: 2rem;
  background: #f8f9fa;
  border-radius: 15px;
}

.contact-item h3 {
  margin-bottom: 1rem;
  color: #2c5530;
}

/* Form */
.contact-form {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 15px;
}

.contact-form h3 {
  text-align: center;
  margin-bottom: 2rem;
  color: #2c5530;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #333;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2c5530;
}

.form-group input.error,
.form-group textarea.error {
  border-color: #dc3545;
}

.error-message {
  display: block;
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  min-height: 1.2rem;
}

.success-message {
  background: #d4edda;
  color: #155724;
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
  display: none;
}

.success-message.show {
  display: block;
}

.submit-button {
  width: 100%;
  margin-top: 1rem;
}

/* Footer */
.footer {
  background: #2c5530;
  color: #fff;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.footer-brand h3 {
  margin-bottom: 0.5rem;
}

.footer-brand p {
  color: #ccc;
  margin: 0;
}

.footer-contact p {
  margin: 0;
  font-size: 1.1rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #4a7c59;
}

.footer-bottom p {
  margin: 0;
  color: #ccc;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 100%;
    right: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
.contact-item {
  background: none;   /* إزالة أي خلفية */
  padding: 0;         /* إزالة الحشوات */
  margin: 10px 0 0;   /* مسافة صغيرة فقط فوق الزر */
  border: none;       /* لو فيه إطار */
  display: inline-block; /* يخلي المحتوى في حجم الزر فقط */
}

.contact-item h3 {
  display: none; /* إخفاء العنوان لو مش محتاجه */
}

.whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 20px;
  background-color: #25D366; /* أخضر واتساب */
  color: #fff;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.whatsapp-link:hover {
  transform: scale(1.05);
  background-color: #1ebe5d;
}

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }

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

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

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .services,
  .pricing,
  .why-us,
  .contact {
    padding: 3rem 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .service-card,
  .feature,
  .contact-item,
  .contact-form {
    padding: 1.5rem;
  }
}

/* Performance Optimizations */
.hero-bg img,
.service-card img {
  will-change: transform;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 2px solid #2c5530;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .hero-bg::after {
    background: rgba(0, 0, 0, 0.8);
  }
}
