/* ==========================================================================
SERVICES PAGE STYLES - شركة الشمس للتصدير الزراعي
   ========================================================================== */

/* Page Header Styles
   ========================================================================== */
.page-header {
  background: none; /* إزالة الخلفية المتدرجة */
  color: var(--white);
  padding: 6rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* إضافة container للصورة الخلفية */
.page-header-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -2;
}

.page-header-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* تحديث الـ overlay ليطابق الصفحة الرئيسية */
.page-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* background: linear-gradient(135deg, rgba(46, 125, 50, 0.8), rgba(76, 175, 80, 0.6)); */
  z-index: -1;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: var(--font-size-sm);
  position: relative;
  z-index: 1;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
  font-size: 25px;
  font-weight: bold;
}

.breadcrumb a:hover {
  color: var(--white);
}

.breadcrumb .separator {
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumb .current {
  color: var(--white);
  font-weight: var(--font-weight-semibold);
}

.page-title {
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.page-subtitle {
  font-size: var(--font-size-xl);
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
  line-height: var(--line-height-relaxed);
  position: relative;
  z-index: 1;
  color: #ffffff;
}

/* Services Hero Section
   ========================================================================== */
/* Services Hero Section - Updated Layout */
.services-hero {
  padding: 6rem 0;
  background: var(--bg-light);
  position: relative;
}

.services-hero-content {
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

/* Hero Text في المنتصف */
.hero-text {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-text h2 {
  font-size: var(--font-size-4xl);
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-weight: var(--font-weight-bold);
}

.hero-text .lead {
  font-size: var(--font-size-lg);
  color: var(--text-light);
  margin-bottom: 0;
  line-height: var(--line-height-relaxed);
}

/* Container للصورة والإحصائيات */
.hero-bottom-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

/* Hero Stats */
.hero-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.stat-number {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--primary-color);
  display: block;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-dark);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-base);
}

/* Hero Image */
.hero-image {
  position: relative;
}

.hero-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

/* Responsive Design */
@media (max-width: 768px) {
  .services-hero-content {
    gap: 3rem;
  }

  .hero-bottom-section {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-stats {
    order: 2;
  }

  .hero-image {
    order: 1;
  }

  .hero-text h2 {
    font-size: var(--font-size-3xl);
  }
}

@media (max-width: 480px) {
  .services-hero {
    padding: 4rem 0;
  }

  .services-hero-content {
    gap: 2rem;
  }

  .hero-bottom-section {
    gap: 2rem;
  }
}

/* تحديث CSS للتوافق مع HTML الحالي */

/* تعديل services-stats لتطابق hero-stats */
.services-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

/* تحديث تصميم stat-item للتوافق مع الأيقونات */
.stat-item {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

/* تصميم الأيقونات */
.stat-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.stat-icon i {
  font-size: 1.5rem;
  color: var(--white);
}

/* محتوى الإحصائيات */
.stat-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.stat-number {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--primary-color);
  line-height: 1;
}

.stat-label {
  color: var(--text-dark);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
  line-height: 1.2;
}

/* Responsive للإحصائيات */
@media (max-width: 768px) {
  .services-stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .stat-item {
    padding: 1.5rem;
  }

  .stat-icon {
    width: 50px;
    height: 50px;
  }

  .stat-icon i {
    font-size: 1.25rem;
  }
}

/* Main Services Grid
   ========================================================================== */
.main-services {
  padding: 6rem 0;
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transform: scaleX(0);
  transition: var(--transition);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: var(--border-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  color: var(--white);
  font-size: var(--font-size-3xl);
  transition: var(--transition);
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
  font-size: var(--font-size-2xl);
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-weight: var(--font-weight-bold);
}

.service-card p {
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: var(--line-height-relaxed);
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: right;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
  font-size: var(--font-size-sm);
}

.service-features li:last-child {
  margin-bottom: 0;
}

.service-features li i {
  color: var(--success-color);
  font-size: var(--font-size-base);
  flex-shrink: 0;
}

/* Additional Services Section
   ========================================================================== */
.additional-services {
  padding: 6rem 0;
  background: var(--bg-light);
}

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

.additional-service {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border-left: 4px solid var(--primary-color);
}

.additional-service:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.additional-service h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-lg);
}

.additional-service p {
  color: var(--text-light);
  margin: 0;
  line-height: var(--line-height-relaxed);
  font-size: var(--font-size-sm);
}

/* How We Work Section
   ========================================================================== */

/* ===== HOW WE WORK SECTION - ENHANCED SIMPLE DESIGN ===== */

.our-story {
  padding: 6rem 0;
  background: var(--bg-light);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-header h2 {
  font-size: var(--font-size-4xl);
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-weight: var(--font-weight-bold);
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 2px;
}

.section-header p {
  font-size: var(--font-size-lg);
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
  line-height: var(--line-height-relaxed);
}

/* Timeline Container */
.story-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

/* الخط الرئيسي مع تدرج */
.story-timeline::before {
  content: "";
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: calc(100% - 60px);
  background: linear-gradient(
    180deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 2px;
  z-index: 1;
}

/* Timeline Items */
.timeline-item {
  display: flex;
  align-items: center;
  margin-bottom: 4rem;
  position: relative;
  z-index: 2;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-item:nth-child(even) .timeline-content {
  text-align: right;
  margin-right: 0;
  margin-left: 3rem;
}

.timeline-item:nth-child(odd) .timeline-content {
  text-align: left;
  margin-left: 0;
  margin-right: 3rem;
}

/* الأرقام المحسنة */
.timeline-year {
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  position: relative;
  z-index: 3;
  box-shadow:
    0 6px 20px rgba(46, 125, 50, 0.25),
    0 0 0 4px var(--white),
    0 0 0 6px rgba(76, 175, 80, 0.2);
  transition: var(--transition);
}

.timeline-year:hover {
  transform: scale(1.1);
  box-shadow:
    0 8px 25px rgba(46, 125, 50, 0.3),
    0 0 0 4px var(--white),
    0 0 0 8px rgba(76, 175, 80, 0.25);
}

/* البطاقات المحسنة */
.timeline-content {
  flex: 1;
  max-width: 380px;
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: 16px;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.08),
    0 4px 12px rgba(0, 0, 0, 0.04);
  position: relative;
  transition: all 0.3s ease;
  border: 1px solid rgba(76, 175, 80, 0.1);
}

/* الأسهم المحسنة */
.timeline-content::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  border: 15px solid transparent;
  z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-content::before {
  left: -30px;
  border-right: 15px solid var(--white);
  transform: translateY(-50%);
}

.timeline-item:nth-child(even) .timeline-content::before {
  right: -30px;
  border-left: 15px solid var(--white);
  transform: translateY(-50%);
}

.timeline-content:hover {
  transform: translateY(-8px);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.12),
    0 8px 16px rgba(0, 0, 0, 0.06);
  border-color: var(--primary-color);
}

/* العناوين مع خط تحتها */
.timeline-content h4 {
  color: var(--primary-color);
  margin-bottom: 1.25rem;
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-xl);
  line-height: 1.3;
  position: relative;
  padding-bottom: 0.5rem;
}

.timeline-content h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: var(--secondary-color);
  border-radius: 1px;
}

.timeline-item:nth-child(odd) .timeline-content h4::after {
  left: 0;
}

.timeline-item:nth-child(even) .timeline-content h4::after {
  right: 0;
}

/* النصوص */
.timeline-content p {
  color: var(--text-light);
  margin: 0;
  line-height: var(--line-height-relaxed);
  font-size: var(--font-size-base);
  font-weight: 400;
}

/* Responsive Design */
@media (max-width: 768px) {
  .our-story {
    padding: 5rem 0;
  }

  .section-header h2 {
    font-size: var(--font-size-3xl);
  }

  .story-timeline::before {
    left: 30px;
    transform: none;
    width: 3px;
  }

  .timeline-item {
    flex-direction: row !important;
    margin-bottom: 3rem;
    padding-left: 80px;
  }

  .timeline-item:nth-child(even) .timeline-content,
  .timeline-item:nth-child(odd) .timeline-content {
    text-align: left;
    margin: 0;
    max-width: none;
  }

  .timeline-item:nth-child(even) .timeline-content h4::after,
  .timeline-item:nth-child(odd) .timeline-content h4::after {
    left: 0;
    right: auto;
  }

  .timeline-year {
    position: absolute;
    left: 0;
    width: 50px;
    height: 50px;
    font-size: var(--font-size-base);
    box-shadow:
      0 4px 15px rgba(46, 125, 50, 0.2),
      0 0 0 3px var(--white);
  }

  .timeline-content::before {
    display: none;
  }

  .timeline-content {
    padding: 2rem 1.5rem;
    border-radius: 12px;
  }
}

@media (max-width: 480px) {
  .our-story {
    padding: 4rem 0;
  }

  .section-header h2 {
    font-size: var(--font-size-3xl);
  }

  .timeline-item {
    padding-left: 70px;
  }

  .timeline-year {
    width: 45px;
    height: 45px;
    font-size: var(--font-size-sm);
  }

  .timeline-content {
    padding: 1.75rem 1.25rem;
  }

  .timeline-content h4 {
    font-size: var(--font-size-lg);
  }
}
/* Testimonials Section
   ========================================================================== */
.testimonials {
  padding: 6rem 0;
  background: var(--bg-light);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.testimonial-card {
  background: var(--white);
  padding: 3rem 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  position: relative;
  transition: var(--transition);
}

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

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  right: 2rem;
  font-size: var(--font-size-6xl);
  color: var(--primary-color);
  font-family: serif;
  line-height: 1;
}

.testimonial-text {
  color: var(--text-dark);
  font-style: italic;
  margin-bottom: 2rem;
  line-height: var(--line-height-relaxed);
  font-size: var(--font-size-base);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: var(--border-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-lg);
}

.author-info h5 {
  color: var(--primary-color);
  margin-bottom: 0.25rem;
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-base);
}

.author-info p {
  color: var(--text-light);
  margin: 0;
  font-size: var(--font-size-sm);
}

/* CTA Section
   ========================================================================== */
.services-cta {
  padding: 6rem 0;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.services-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
  opacity: 0.3;
}

.services-cta .container {
  position: relative;
  z-index: 1;
}

.services-cta h2 {
  font-size: var(--font-size-4xl);
  margin-bottom: 1rem;
  font-weight: var(--font-weight-bold);
}

.services-cta p {
  font-size: var(--font-size-lg);
  margin-bottom: 3rem;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: var(--line-height-relaxed);
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-buttons .btn {
  padding: 1rem 2rem;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  min-width: 200px;
}

.btn-white {
  background: var(--white);
  color: var(--primary-color);
  border: 2px solid var(--white);
}

.btn-white:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

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

/* Responsive Design
   ========================================================================== */
@media (max-width: 1024px) {
  .services-hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

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

  .work-process::before {
    display: none;
  }
}

@media (max-width: 768px) {
  .page-header {
    padding: 4rem 0 3rem;
  }

  .page-title {
    font-size: var(--font-size-4xl);
  }

  .page-subtitle {
    font-size: var(--font-size-lg);
  }

  .services-hero {
    padding: 4rem 0;
  }

  .hero-text h2 {
    font-size: var(--font-size-3xl);
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

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

  .service-card {
    padding: 2rem 1.5rem;
  }

  .additional-services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .work-process {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

  .services-cta {
    padding: 4rem 0;
  }

  .services-cta h2 {
    font-size: var(--font-size-3xl);
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .page-header {
    padding: 3rem 0 2rem;
  }

  .page-title {
    font-size: var(--font-size-3xl);
  }

  .breadcrumb {
    flex-wrap: wrap;
    justify-content: center;
  }

  .services-hero {
    padding: 3rem 0;
  }

  .hero-text h2 {
    font-size: var(--font-size-2xl);
  }

  .service-card {
    padding: 1.5rem 1rem;
  }

  .service-icon {
    width: 60px;
    height: 60px;
    font-size: var(--font-size-2xl);
  }

  .additional-service {
    padding: 1.5rem;
  }

  .testimonial-card {
    padding: 2rem 1.5rem;
  }

  .services-cta {
    padding: 3rem 0;
  }

  .services-cta h2 {
    font-size: var(--font-size-2xl);
  }

  .services-cta p {
    font-size: var(--font-size-base);
  }
}

/* Animation Classes
   ========================================================================== */
.animate-fadeInUp {
  animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Print Styles
   ========================================================================== */
@media print {
  .services-hero,
  .services-cta {
    background: var(--white) !important;
    color: var(--text-dark) !important;
  }

  .service-card,
  .testimonial-card {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }

  .btn {
    display: none !important;
  }
}
