/* ===== أساسيات عامة ===== */
:root {
  --brand: #54b435;
  --text: #222;
  --muted: #777;
  --bg: #fff;
  --chip: #f3f7f4;
  --chip-b: #e6efe7;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  font-family: "Cairo", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  background: #fff;
  color: var(--text);
  direction: rtl;
}

body.lang-tr {
  direction: ltr;
}

body.lang-ar {
  direction: rtl;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (max-width: 1024px) {
  .container {
    max-width: none;
    padding-inline: clamp(16px, 5vw, 32px);
  }
}

/* ===== الهيدر ===== */
.header {
  background: #fff;
  height: 130px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 5;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.logo img {
  width: 120px;
  height: auto;
}
.nav-list {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
}
.nav-list a.is-active,
.nav-list a:hover {
  color: var(--brand);
}
.mobile-actions {
  display: none;
  margin-inline-start: auto;
  align-items: center;
  gap: 12px;
}
.nav-home {
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
}

/* زر الهامبرجر */
.menu-toggle {
  width: 36px;
  height: 32px;
  border: none;
  background: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  border-radius: 8px;
  box-shadow: 0 0 0 1px #eee inset;
}
.menu-toggle .bar {
  width: 20px;
  height: 2px;
  background: #222;
}
.menu-toggle .bar + .bar {
  margin-top: 4px;
}
.menu-toggle.active .bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active .bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* قائمة الموبايل */
.nav-mobile {
  display: none;
  position: absolute;
  top: 100%;
  inset-inline-start: 0;
  width: 100%;
  z-index: 6;
}
.navm-list {
  list-style: none;
  margin: 0;
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #fff;
  border-top: 1px solid #eee;
  box-shadow: var(--shadow);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: max-height 0.35s ease, opacity 0.3s ease, transform 0.35s ease;
}
.nav-mobile.open .navm-list {
  max-height: 60vh;
  opacity: 1;
  transform: translateY(0);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.navm-list a {
  display: block;
  padding: 14px 6px;
  text-decoration: none;
  color: var(--text);
}

body.lang-tr .navm-list a {
  text-align: left;
}

/* ===== الهيرو ===== */
.video-bg {
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.video-bg video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  min-width: 100%;
  min-height: 100%;
  height: calc(100vh + 130px);
  transform: translate(-50%, -50%);
  object-fit: cover;
  pointer-events: none;
}
.video-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}
.overlay-content {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: grid;
  place-content: center;
  text-align: center;
  color: #fff;
  padding: 20px;
  gap: 14px;
}
.overlay-content h1 {
  color: var(--brand);
  margin: 0;
}
.overlay-content p {
  margin: 0 auto;
  max-width: 680px;
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* زر CTA في الهيرو */
.hero-cta {
  margin-top: 12px;
  display: flex;
  justify-content: center;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  padding: 14px 18px;
  border-radius: 14px;
  font-weight: 900;
  box-shadow: 0 8px 22px rgba(84, 180, 53, 0.22);
  transition: transform 0.18s ease, filter 0.18s ease;
}
.cta-btn:hover {
  transform: translateY(-1px);
  filter: saturate(108%);
}

/* ===== الفاصل المتداخل ===== */
.section-overlap {
  position: relative;
  margin-top: -90px;
  border-top-left-radius: 80px;
  border-top-right-radius: 80px;
  background: #fff;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.08);
  padding-top: 140px;
  z-index: 2;
}

/* فواصل لينة بين الأقسام */
.section-break {
  position: relative;
  height: 70px;
  overflow: hidden;
}
.section-break--light {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #ffffff 75%);
}
.section-break--soft {
  background: linear-gradient(180deg, #ffffff 0%, #f7f7f7 85%);
}
.section-break::after,
.section-break::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(220px, 42vw, 420px);
  height: 120px;
  border-radius: 50%;
  opacity: 0;
}
.section-break--light::after {
  top: -90px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  opacity: 1;
}
.section-break--soft::before {
  bottom: -90px;
  background: #f7f7f7;
  box-shadow: 0 -16px 38px rgba(0, 0, 0, 0.07);
  opacity: 1;
}

/* ===== من نحن ===== */
.about-us {
  display: grid;
  grid-template-columns: 50% 50%;
  align-items: center;
  min-height: 100vh;
  position: relative;
}
.about-us .text {
  padding: 40px;
  text-align: right;
}
.about-us .text h2 {
  margin: 0 0 16px;
}
.about-us .text p {
  font-size: 18px;
  line-height: 1.7;
  color: #333;
}
.about-us .video-us {
  position: relative;
  overflow: hidden;
}
.about-us video {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  display: block;
}

/* ===== Contact v2 ===== */
.contact-v2 {
  background: #f7f7f7;
  padding: 68px 0 40px;
}
.contact-v2 .c-title {
  text-align: center;
  color: var(--brand);
  font-size: clamp(26px, 3vw, 32px);
  margin: 0 0 28px;
  font-weight: 900;
}
.c-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1100px) {
  .c-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 820px) {
  .c-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .c-grid {
    grid-template-columns: 1fr;
  }
}
.c-card {
  background: #fff;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.c-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
}
.c-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(140deg, #eaf8ed, #dff3e3);
  color: var(--brand);
  font-size: 18px;
  font-weight: 900;
}

/* زر العودة إلى الأعلى */
.scroll-top-fab {
  position: fixed;
  bottom: 18px;
  right: 18px;
  left: auto;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: #fff;
  color: var(--brand);
  border: 1px solid rgba(84, 180, 53, 0.35);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: opacity 0.25s ease, transform 0.25s ease,
    background-color 0.25s ease, color 0.25s ease;
  opacity: 0;
  pointer-events: none;
  z-index: 90;
}
.scroll-top-fab.show {
  opacity: 1;
  pointer-events: auto;
}
.scroll-top-fab:hover {
  background: var(--brand);
  color: #fff;
  transform: translateY(-2px);
}
.scroll-top-fab i {
  font-size: 18px;
}
.c-card h3 {
  margin: 6px 0 0;
  font-size: 18px;
}
.c-sub {
  margin: 0 0 6px;
  color: #666;
  font-size: 14px;
}
.c-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.c-btn {
  height: 40px;
  border-radius: 12px;
  padding: 0 14px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
  background: #fff;
  color: #222;
}
.c-btn.c-primary {
  background: #f5fff7;
  border-color: #e4f4e7;
  color: #206d2d;
}
.c-btn.c-light {
  background: #f7f7f7;
  border-color: #eee;
}
.c-btn.c-ghost {
  background: #fff;
  border-color: #eee;
}
.c-btn.c-wa {
  background: #25d366;
  color: #fff;
  border-color: #1bb454;
}
.c-btn:hover {
  filter: saturate(110%);
}

.c-toast {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%) translateY(24px);
  background: rgba(17, 17, 17, 0.9);
  color: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
  z-index: 1000;
}
.c-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== موبايل ===== */
@media (max-width: 992px) {
  .logo img {
    width: 100px;
  }
}
@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }
  .mobile-actions,
  .nav-mobile {
    display: flex;
  }
  .mobile-actions {
    gap: 8px;
  }
  .overlay-content p {
    max-width: 520px;
  }
  .about-us {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .about-us .video-us {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
  }
  .about-us .video-us::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
  }
  .about-us video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .about-us .text {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 30px 20px;
  }
  .about-us .text p {
    color: #fff;
  }
  .section-overlap {
    margin-top: -70px;
    padding-top: 100px;
    border-top-left-radius: 48px;
    border-top-right-radius: 48px;
  }
}

.ltr-text {
  direction: ltr;
  unicode-bidi: plaintext;
}
