/* ============================================================
   Smart Gardens Group — بأسلوب ثيم Landscaping
   الألوان: أخضر ‎#59bd41‎ / بني داكن ‎#3c2b21‎ / رمادي فاتح ‎#f5f5f5‎
   ============================================================ */

:root {
  --green: #59bd41;
  --green-dark: #46a232;
  --green-light: #acde9f;
  --brown: #3c2b21;
  --brown-light: #7e6b5c;
  --gray-bg: #f5f5f5;
  --gray-bg2: #f7f7f7;
  --text: #555;
  --text-light: #8c8c8c;
  --white: #fff;
  --radius: 6px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
  color: var(--text);
  font-size: 16px;
  line-height: 1.9;
  background: var(--white);
  direction: rtl;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: color .3s; }
ul { list-style: none; }

h1, h2, h3, h4 { color: var(--brown); font-weight: 700; line-height: 1.5; }

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

/* ---------- الشريط الأخضر العلوي ---------- */
.top-strip { height: 5px; background: var(--green); }

/* ---------- شريط المعلومات ---------- */
.top-bar {
  background: var(--brown);
  color: #cbbfb7;
  font-size: 13px;
  padding: 8px 0;
}
.top-bar .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.top-bar a { color: #cbbfb7; }
.top-bar a:hover { color: var(--green-light); }
.top-bar .info { display: flex; gap: 22px; flex-wrap: wrap; }
.top-bar .info span { display: inline-flex; align-items: center; gap: 6px; }
.top-bar svg { width: 14px; height: 14px; fill: var(--green); }

/* ---------- الهيدر ---------- */
header.site-header {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo .logo-icon {
  width: 52px; height: 52px;
  background: radial-gradient(circle at 30% 30%, #6ecf55, var(--green-dark));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo .logo-icon svg { width: 30px; height: 30px; fill: #fff; }
.logo .logo-text b {
  display: block;
  color: var(--green);
  font-size: 20px;
  letter-spacing: 1px;
  line-height: 1.3;
}
.logo .logo-text span {
  display: block;
  color: var(--brown-light);
  font-size: 11px;
  letter-spacing: 4px;
}

/* قائمة مرقّمة بأسلوب الثيم */
nav.main-nav ul { display: flex; gap: 34px; }
nav.main-nav li a { display: block; text-align: center; }
nav.main-nav .num { color: var(--green); font-size: 14px; font-weight: 600; }
nav.main-nav .title { color: var(--brown); font-size: 15px; font-weight: 700; display: block; line-height: 1.4; }
nav.main-nav .sub { color: var(--text-light); font-size: 11.5px; display: block; }
nav.main-nav li a:hover .title,
nav.main-nav li.active .title { color: var(--green); }
nav.main-nav li.active .title { border-bottom: 2px solid var(--green); }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 42px; height: 42px;
}
.nav-toggle span {
  display: block; height: 3px; background: var(--brown);
  margin: 7px 8px; border-radius: 2px; transition: .3s;
}

/* ---------- الأزرار ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 30px;
  border-radius: 40px;
  font-size: 15px; font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .3s;
}
.btn-green { background: var(--green); color: #fff; border-color: var(--green); }
.btn-green:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-outline-light:hover { background: rgba(255,255,255,.15); }
.btn-outline { background: transparent; color: var(--green); border-color: var(--green); }
.btn-outline:hover { background: var(--green); color: #fff; }
.btn .arrow {
  width: 26px; height: 26px;
  background: rgba(255,255,255,.25);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px;
}

/* ---------- الهيرو ---------- */
.hero {
  position: relative;
  min-height: 560px;
  display: flex; align-items: center;
  background-color: #2c4a22;
  background-size: cover;
  background-position: center;
  text-align: center;
  color: #fff;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(30,40,20,.45), rgba(30,40,20,.6));
}
.hero .container { position: relative; z-index: 2; }
.hero h1 {
  color: #fff;
  font-size: 52px;
  font-weight: 800;
  margin-bottom: 12px;
  text-shadow: 0 2px 14px rgba(0,0,0,.35);
}
.hero p.lead {
  font-size: 21px;
  color: #f0f0f0;
  margin-bottom: 32px;
  text-shadow: 0 1px 8px rgba(0,0,0,.4);
}
.hero .btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* هيرو داخلي للصفحات الفرعية */
.page-hero { min-height: 300px; }
.page-hero h1 { font-size: 42px; }
.breadcrumb { color: #d8e8d2; font-size: 15px; }
.breadcrumb a { color: var(--green-light); }
.breadcrumb a:hover { color: #fff; }

/* ---------- الأقسام ---------- */
section { padding: 80px 0; }
section.gray { background: var(--gray-bg); }
section.brown { background: var(--brown); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 55px; }
.section-head h2 {
  font-size: 34px;
  display: inline-block;
  padding-bottom: 14px;
  position: relative;
  margin-bottom: 14px;
}
.section-head h2::after {
  content: "";
  position: absolute;
  right: 50%; transform: translateX(50%);
  bottom: 0;
  width: 70px; height: 3px;
  background: var(--green);
  border-radius: 2px;
}
.section-head p { color: var(--text-light); font-size: 17px; }
section.brown .section-head h2 { color: #fff; }
section.brown .section-head p { color: #cbbfb7; }

/* ---------- نبذة (صفحة رئيسية) ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 55px;
  align-items: center;
}
.about-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(60,43,33,.18);
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #6ecf55, #2c4a22);
  background-size: cover;
  background-position: center;
}
.about-text h2 { font-size: 30px; margin-bottom: 8px; }
.about-text .green-line { width: 60px; height: 3px; background: var(--green); border-radius: 2px; margin-bottom: 22px; }
.about-text p { margin-bottom: 16px; }
.about-text .highlight {
  font-style: italic;
  font-weight: 600;
  color: var(--brown);
  border-right: 4px solid var(--green);
  padding-right: 16px;
  margin-bottom: 20px;
}

/* ---------- بطاقات الخدمات ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 38px 28px;
  text-align: center;
  border: 1px solid #eee;
  transition: all .35s;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(60,43,33,.13);
  border-color: transparent;
}
.card .icon {
  width: 78px; height: 78px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #eef8ea;
  display: flex; align-items: center; justify-content: center;
  transition: background .35s;
}
.card .icon svg { width: 38px; height: 38px; fill: var(--green); transition: fill .35s; }
.card:hover .icon { background: var(--green); }
.card:hover .icon svg { fill: #fff; }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { font-size: 14.5px; color: var(--text-light); }

/* ---------- لماذا نحن ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.feature {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 30px 22px;
  text-align: center;
  transition: all .3s;
}
.feature:hover { background: rgba(89,189,65,.15); border-color: var(--green); }
.feature .fi {
  width: 58px; height: 58px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--green);
  display: flex; align-items: center; justify-content: center;
}
.feature .fi svg { width: 28px; height: 28px; fill: #fff; }
.feature h3 { color: #fff; font-size: 16.5px; font-weight: 700; }

/* ---------- الأرقام ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  text-align: center;
}
.stat .num { font-size: 46px; font-weight: 800; color: var(--green); line-height: 1.2; }
.stat .label { color: var(--brown); font-weight: 700; font-size: 16px; }

/* ---------- المشاريع ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.project {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background-color: #40542f;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  transition: transform .35s, box-shadow .35s;
}
.project:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(60,43,33,.25); }
.project::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(30,25,15,.85));
  transition: background .35s;
}
.project:hover::before { background: linear-gradient(180deg, rgba(89,189,65,.15) 0%, rgba(30,25,15,.9)); }
.project .p-info { position: relative; z-index: 2; padding: 22px; color: #fff; }
.project .p-info h3 { color: #fff; font-size: 18px; margin-bottom: 4px; }
.project .p-info span {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--green-light);
}
.project .p-info svg { width: 13px; height: 13px; fill: var(--green-light); }

/* ---------- العملاء ---------- */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.client {
  background: var(--white);
  border: 1px solid #eee;
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  font-weight: 700;
  color: var(--brown);
  font-size: 16.5px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  transition: all .3s;
}
.client:hover { border-color: var(--green); box-shadow: 0 12px 30px rgba(60,43,33,.1); }
.client svg { width: 34px; height: 34px; fill: var(--green); }

/* ---------- شريط CTA ---------- */
.cta {
  background: linear-gradient(120deg, var(--green-dark), var(--green));
  padding: 55px 0;
}
.cta .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.cta h2 { color: #fff; font-size: 28px; }
.cta p { color: #eafbe4; }
.cta .btn { background: #fff; color: var(--green-dark); border-color: #fff; }
.cta .btn:hover { background: var(--brown); color: #fff; border-color: var(--brown); }

/* ---------- الرؤية والرسالة ---------- */
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.vm-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 42px 34px;
  border-top: 4px solid var(--green);
  box-shadow: 0 10px 30px rgba(60,43,33,.08);
}
.vm-box .vm-num {
  font-size: 44px; font-weight: 800;
  color: var(--green-light);
  line-height: 1;
  margin-bottom: 10px;
}
.vm-box h3 { font-size: 23px; margin-bottom: 14px; }

/* ---------- قائمة الأهداف ---------- */
.goals-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.goal {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--white);
  border: 1px solid #eee;
  border-radius: var(--radius);
  padding: 20px 22px;
  transition: all .3s;
}
.goal:hover { border-color: var(--green); }
.goal .check {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--green);
  display: flex; align-items: center; justify-content: center;
  margin-top: 4px;
}
.goal .check svg { width: 15px; height: 15px; fill: #fff; }
.goal p { color: var(--brown); font-weight: 600; font-size: 15.5px; }

/* ---------- الفريق ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.member {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid #eee;
  padding: 34px 20px;
  text-align: center;
  transition: all .3s;
}
.member:hover { box-shadow: 0 16px 36px rgba(60,43,33,.12); }
.member .avatar {
  width: 84px; height: 84px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-light), var(--green));
  display: flex; align-items: center; justify-content: center;
}
.member .avatar svg { width: 40px; height: 40px; fill: #fff; }
.member h3 { font-size: 17px; }
.member span { font-size: 13.5px; color: var(--text-light); }

/* ---------- صفحة الخدمات: بطاقة موسّعة ---------- */
.service-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  background: var(--white);
  border: 1px solid #eee;
  border-radius: var(--radius);
  padding: 30px;
  margin-bottom: 22px;
  transition: all .3s;
}
.service-row:hover { border-color: var(--green); box-shadow: 0 14px 34px rgba(60,43,33,.1); }
.service-row .icon {
  width: 78px; height: 78px;
  border-radius: 50%;
  background: #eef8ea;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.service-row .icon svg { width: 38px; height: 38px; fill: var(--green); }
.service-row h3 { font-size: 20px; margin-bottom: 8px; }

/* ---------- صفحة التواصل ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: start; }
.contact-info-box {
  background: var(--brown);
  color: #cbbfb7;
  border-radius: var(--radius);
  padding: 40px 34px;
}
.contact-info-box h3 { color: #fff; font-size: 22px; margin-bottom: 24px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 26px; }
.contact-item .ci {
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: 50%; background: var(--green);
  display: flex; align-items: center; justify-content: center;
}
.contact-item .ci svg { width: 22px; height: 22px; fill: #fff; }
.contact-item b { color: #fff; display: block; font-size: 15.5px; }
.contact-item a, .contact-item span { color: #cbbfb7; font-size: 15px; direction: ltr; display: inline-block; }
.contact-item a:hover { color: var(--green-light); }

.contact-form {
  background: var(--white);
  border: 1px solid #eee;
  border-radius: var(--radius);
  padding: 40px 34px;
}
.contact-form h3 { font-size: 22px; margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: block; font-weight: 700; color: var(--brown); font-size: 14.5px; margin-bottom: 6px; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  margin-bottom: 18px;
  background: var(--gray-bg2);
  color: var(--brown);
  transition: border-color .3s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { outline: none; border-color: var(--green); background: #fff; }
.contact-form textarea { min-height: 130px; resize: vertical; }

/* ---------- الفوتر ---------- */
footer.site-footer {
  background: var(--brown);
  color: #cbbfb7;
  padding: 65px 0 0;
  font-size: 14.5px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 45px;
}
footer h4 {
  color: #fff; font-size: 18px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  position: relative;
}
footer h4::after {
  content: "";
  position: absolute; right: 0; bottom: 0;
  width: 42px; height: 3px;
  background: var(--green); border-radius: 2px;
}
footer .f-about p { margin-bottom: 16px; }
footer ul li { margin-bottom: 10px; }
footer ul li a { color: #cbbfb7; display: inline-flex; align-items: center; gap: 8px; }
footer ul li a:hover { color: var(--green-light); }
footer ul li a::before { content: "‹"; color: var(--green); font-weight: 800; }
footer .f-contact li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; }
footer .f-contact svg { width: 17px; height: 17px; fill: var(--green); flex-shrink: 0; margin-top: 5px; }
footer .f-contact a { color: #cbbfb7; direction: ltr; display: inline-block; }
footer .f-contact a:hover { color: var(--green-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
  text-align: center;
  font-size: 13.5px;
}
.footer-bottom b { color: var(--green-light); }

/* ---------- استجابة الشاشات ---------- */
@media (max-width: 992px) {
  .hero h1 { font-size: 38px; }
  .cards-grid, .projects-grid, .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid, .team-grid, .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .vm-grid, .goals-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  nav.main-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: 290px;
    background: var(--white);
    box-shadow: -8px 0 30px rgba(0,0,0,.15);
    transform: translateX(110%);
    transition: transform .35s;
    padding: 90px 30px 30px;
    z-index: 99;
    overflow-y: auto;
  }
  nav.main-nav.open { transform: translateX(0); }
  nav.main-nav ul { flex-direction: column; gap: 22px; }
  nav.main-nav li a { text-align: right; }
  .nav-toggle { display: block; position: relative; z-index: 101; }
}

@media (max-width: 600px) {
  section { padding: 55px 0; }
  .hero { min-height: 460px; }
  .hero h1 { font-size: 30px; }
  .hero p.lead { font-size: 17px; }
  .section-head h2 { font-size: 26px; }
  .cards-grid, .projects-grid, .clients-grid,
  .features-grid, .team-grid, .stats-grid,
  .footer-grid, .form-row { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; }
  .top-bar .container { justify-content: center; }
}
