/* Styles for index.html */

/*from stylecss*/
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;

  background-image: url("/images/background.webp");
  background-size: cover;
  background-position: center;
}

/* overlay خفيف فقط للوضوح */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
}

/* المحتوى */
.hero-content {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 1200px;
  text-align: center;
  color: #fff;
}
#hero-content::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 81, 50, 0.88) 0%,
    rgba(20, 108, 67, 0.75) 50%,
    rgba(0, 0, 0, 0.5) 100%
  );
  background: url("/images/hero-background.webp") center/cover no-repeat;

  z-index: 1;
}


/* العنوان */
.hero-content h1 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 900;
  margin-bottom: 12px;
  line-height: 1.3;
  text-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
  color: #e6a800;
}

/* الوصف */
.hero-sub {
  font-size: 18px;
  margin-bottom: 35px;
  opacity: 0.95;
}

/* الكروت */
.hero-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* الكرت */
.hero-card {
  background: #fff;
  border-radius: 20px;
  padding: 22px;
  min-height: 200px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-decoration: none;
  color: var(--primary);

  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  transition: all 0.35s ease;

  position: relative;
  overflow: hidden;

  will-change: transform;

  /* animation */
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  animation: cardFadeUp 0.8s ease forwards;
}
.hero-cta {
  margin-top: 20px;
}
.hero-cta {
  margin-top: 20px;
}

/* الصورة */
.hero-card img {
  width: 65px;
  height: 65px;
  object-fit: contain;
  margin-bottom: 12px;
  transition: transform 0.3s ease;
}

/* حركة الصورة (احترافية بدون لف) */
.hero-card:hover img {
  transform: scale(1.08);
}

/* العنوان */
.hero-card h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

/* النص */
.hero-card p {
  font-size: 13px;
  line-height: 1.5;
  flex-grow: 1;
}

/* hover احترافي */
.hero-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.25);
  background: var(--accent);
  color: #fff;
}

.hero-card:hover p {
  color: #f1f1f1;
}

/* خط ذهبي */
.hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0%;
  height: 3px;
  background: var(--accent);
  transition: 0.4s;
}

.hero-card:hover::before {
  width: 100%;
}

/* animation */
.hero-card:nth-child(1) {
  animation-delay: 0.1s;
}
.hero-card:nth-child(2) {
  animation-delay: 0.25s;
}
.hero-card:nth-child(3) {
  animation-delay: 0.4s;
}
.hero-card:nth-child(4) {
  animation-delay: 0.55s;
}

@keyframes cardFadeUp {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@media (max-width: 1024px) {
  .hero-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

@media (max-width: 600px) {
  .hero {
    height: auto;
    padding: 90px 15px 60px;
  }

  .hero-content h1 {
    font-size: 22px;
    line-height: 1.4;
  }

  .hero-sub {
    font-size: 15px;
    margin-bottom: 25px;
  }

  .hero-cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero-card {
    min-height: 150px;
    padding: 16px;
  }
}

/* about section fromstylecss*/
/* ===== ABOUT SECTION ===== */
.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-image {
  flex: 1;
  min-width: 300px;
}

.about-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/*why us section from stylecss*/
.container-why {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

.grid-why {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.card-why {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 12px;
  border-right: 4px solid var(--primary);
  font-weight: 600;
  transition: 0.3s;
}

.card-why:hover {
  background: var(--light-green);
}

/* ===== SERVICES SECTION TITLE ===== */
.services-header {
  text-align: center;
  margin-bottom: 50px;
}

.services-header h2 {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
  padding-bottom: 16px;
}

.services-header h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}

.services-header p {
  color: #666;
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}
/*service section from i=stylecss*/
.services {
  padding: 80px 0;
}

.services .cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 30px;
}

.service-btn {
  width: 100%;
}
/* الكرت */
.card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;

  display: flex;
  flex-direction: column;

  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.35s ease;

  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.04);

  height: 100%; /* مهم لتوحيد الطول */
}

/* خط علوي */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0%;
  height: 3px;
  background: var(--accent);
  transition: 0.4s;
}

.card:hover::before {
  width: 100%;
}

/* Hover احترافي */
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* الصورة */
.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover img {
  transform: scale(1.04);
}

/* المحتوى */
.card-content {
  padding: 20px;
  flex-grow: 1;

  display: flex;
  flex-direction: column;
}

/* العنوان */
.card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--primary);
}

/* النص */
.card p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 12px;
}

/* النجوم */
.stars {
  color: var(--accent);
  margin-bottom: 10px;
}

/* الزر */
.card .btn-accent {
  margin-top: auto;
  width: 100%;
  padding: 12px;
  font-size: 14px;
  font-weight: 700;

  border-radius: 10px;

  background: linear-gradient(135deg, var(--primary-green), #0a3c23);
  color: #fff;

  box-shadow: 0 6px 18px rgba(15, 81, 50, 0.25);

  transition: all 0.3s ease;
}

.card .btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(15, 81, 50, 0.35);
  background: linear-gradient(135deg, var(--accent), #e6a800);
}
.card .btn-accent:active {
  transform: scale(0.97);
}

/* Desktop */
.services .cards {
  grid-template-columns: repeat(4, 1fr);
}

/* Tablet & Mobile (أكبر من 480) */
@media (max-width: 900px) {
  .services .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile صغير */
@media (max-width: 480px) {
  .services .cards {
    grid-template-columns: 1fr;
  }
}
/* ===== ABOUT SECTION ENHANCED ===== */
#about {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8fffe 0%, #e8f5ee 100%);
}

#about .about-text h2 {
  font-size: 2rem;
  text-align: right;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 14px;
}

#about .about-text h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  border-radius: 2px;
}

#about .about-text p {
  font-size: 1rem;
  line-height: 1.9;
  color: #555;
  margin-bottom: 16px;
}

#about .about-image img {
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(15, 81, 50, 0.15);
}

/* ===== WHY US ENHANCED ===== */
#why-us {
  padding: 80px 0;
  background: #fff;
}

#why-us h2 {
  font-size: 2rem;
  color: var(--primary);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 16px;
}

#why-us h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}

/* ===== CONTACTS SECTION ===== */
#contacts {
  padding: 80px 0;
  background: linear-gradient(135deg, #0a3c23 0%, var(--primary) 100%);
}

#contacts h2 {
  color: #fff;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 40px;
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.contact-widget {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 30px 24px;
  text-align: center;
  color: #fff;
  backdrop-filter: blur(10px);
  transition: all 0.35s ease;
}

.contact-widget:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-6px);
}

.contact-widget .widget-icon {
  font-size: 2.5rem;
  margin-bottom: 14px;
  display: block;
}

.contact-widget h3 {
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.contact-widget p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.contact-widget a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.contact-widget a:hover {
  color: var(--accent);
}

.contact-widget .btn-widget {
  display: inline-block;
  background: var(--accent);
  color: #1a1a1a;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-widget .btn-widget:hover {
  background: #e6a800;
  transform: translateY(-2px);
}


/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .contacts-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== LATEST ARTICLES SECTION ===== */
.latest-articles {
  padding: 80px 0;
  background: #fff;
}

.latest-articles .section-header {
  text-align: center;
  margin-bottom: 50px;
}

.latest-articles .section-header h2 {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
  padding-bottom: 16px;
}

.latest-articles .section-header h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}

.latest-articles .section-header p {
  color: #666;
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.article-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(15, 81, 50, 0.08);
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(15, 81, 50, 0.15);
}

.article-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.article-image img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.article-card:hover .article-image img {
  transform: scale(1.08);
}

.article-category {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent);
  color: #1a1a1a;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
}

.article-content {
  padding: 14px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-content h3 {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 12px;
  line-height: 1.4;
}

.article-content h3 a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s;
}

.article-content h3 a:hover {
  color: var(--accent);
}

.article-content p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.read-more {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.3s;
  display: inline-block;
}

.read-more:hover {
  color: var(--accent);
}

.articles-footer {
  text-align: center;
}

.btn-view-all {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), #0a3c23);
  color: #fff;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.btn-view-all:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(15, 81, 50, 0.3);
  background: linear-gradient(135deg, #0a3c23, #071f12);
}

/* ===== RESPONSIVE FOR ARTICLES ===== */
@media (max-width: 768px) {
  .articles-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .latest-articles {
    padding: 60px 0;
  }
  .latest-articles .section-header h2 {
    font-size: 1.8rem;
  }
  .article-image {
    height: 180px;
  }
}

@media (max-width: 576px) {
  .articles-grid {
    gap: 20px;
  }
  .article-content {
    padding: 20px;
  }
  .article-image {
    height: 160px;
  }
  .latest-articles .section-header h2 {
    font-size: 1.5rem;
  }
}

/* ===== ARTICLE CTA BUTTONS ===== */
.article-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.article-btn {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-article-wa,
.btn-article-consult {
  flex: 1;
  min-width: 100px;
  padding: 10px 14px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-article-wa {
  background: #25d366;
  color: #fff;
}

.btn-article-wa:hover {
  background: #1fa857;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-article-consult {
  background: var(--primary);
  color: #fff;
}

.btn-article-consult:hover {
  background: #0a3c23;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 81, 50, 0.3);
}

/* ===== TOUCH EFFECTS FOR ARTICLE BUTTONS ===== */
@media (hover: none) and (pointer: coarse) {
  .btn-article-wa:active {
    background: #1fa857;
    transform: scale(0.98);
  }

  .btn-article-consult:active {
    background: #0a3c23;
    transform: scale(0.98);
  }
}

/* ===== RESPONSIVE FOR ARTICLE BUTTONS ===== */
@media (max-width: 768px) {
  .article-btn-primary {
    gap: 8px;
  }

  .btn-article-wa,
  .btn-article-consult {
    padding: 9px 12px;
    font-size: 0.85rem;
  }
}

@media (max-width: 576px) {
  .article-btn .btn-primary {
    flex-direction: column;
    gap: 10px;
  }

  .btn-article-wa,
  .btn-article-consult {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.9rem;
  }
}
