 * {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    border: 0px;
    margin: 0px;
    padding: 0px;
}
:root {
    --main-borderSize : 1px;
    --main-paddingSize : 15px;
    --main-marginSize : 15px;
}
/* :root {
  --header-bg: #0f172a;
  --header-text: #ffffff;
  --cta-primary: #22c55e; 
  --cta-secondary: #f59e0b; 
} */
:root{
  --brand-1:#0f172a;       /* الأساسي الداكن */
  --brand-2:#2f9487;       /* لون التمييز */
  --header-bg:var(--brand-1);
  --header-text:#ffffff;

  --cta-primary:#22c55e;
  --cta-secondary:#f59e0b;

  --about-accent:var(--brand-2);
  --hero-text:#ffffff;
  --hero-overlay: rgba(15,23,42,.55);
  --hero-overlay-2: rgba(15,23,42,.30);
}

/* أزرار الهيدر (نفس اللونين) */
.btn-whatsapp,.btn-call{ background:var(--brand-2); color:var(--brand-1); }
@media (min-width : 768px) {
    .container {
        width : 750px;
    }
}
@media (min-width: 992px) {
    .container {
        width: 970px;
    }
} 

/* large screen  */

@media (min-width: 1200px) {
    .container {
        width: 1170px;
    }
}

body {
    font-family: 'Cairo', sans-serif;
    /* background: var(--brand-1); */
    /* color:#fff; */
}

.container {
    width: 100%;
    max-width: 1170px; /* عدّلها حسب مقاساتك */
    margin-left: auto;
    margin-right: auto;
    padding-left: 10px;
    padding-right: 10px;
}
/* section {
    margin-top: 200px;
    margin-bottom: 150px;
}
.services h2 {
    text-align: center;
   font-size: 3rem;
   text-shadow: 1px 3px 4px var(--main-bkgColor);
}
ul {
    list-style: none;
    margin: 0px;
    padding: 0px;
}
a {
    text-decoration: none;
}  */

/* ========== Header ========== */

html { scroll-behavior: smooth; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--header-bg);
  color: var(--header-text);
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transition: box-shadow .25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 16px rgba(0,0,0,.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--header-text);
}

.brand-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.brand-name {
  font-weight: 700;
  font-size: 18px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  color: var(--header-text);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
  transition: background .2s ease, opacity .2s ease;
}

.nav-list a:hover { background: rgba(255,255,255,.08); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.btn-whatsapp { background: var(--cta-primary); color: #0b2f18; }
.btn-call     { background: var(--cta-secondary); color: #1e1b04; }

/* علشان الزر يكون على أقصى اليسار */
.nav-toggle {
  /* موجودة عندك مسبقًا */
  display: none;
  background: transparent;
  border: 0;
  color: var(--header-text);
  font-size: 22px;
  padding: 6px 10px;
  border-radius: 8px;
}

/* مهم: خلي الناف نفسها هي اللي تصير منسدلة، مش العناصر بداخلها */
.nav { 
  position: relative;          /* مرجع للتموضع */
  z-index: 1200;
}

@media (max-width: 992px) {
  /* زر المنيو يظهر بالموبايل ويكون يسار */
  .nav-toggle {
    display: inline-flex;
    margin-left: 15px;         /* زي ما طلبت */
    margin-right: auto;        /* تدفعه لليسار */
  }

  /* نخفي عناصر الناف في الوضع الطبيعي بالموبايل */
  .nav-list, .nav-cta { display: none; }

  /* لما تتفتح، نخلي "الناف" نفسها المنسدلة */
  .nav.open {
    display: flex;
    flex-direction: column;
    gap: 12px;

    position: absolute;
    top: 100%;
    left: 0;
    right: 0;

    background: var(--header-bg);
    border-bottom: 1px solid rgba(255,255,255,.08);
    padding: 12px;

    /* تظهر كاملة + سكرول لو طويلة */
    max-height: calc(100vh - var(--header-h, 64px));
    overflow-y: auto;
  }

  /* إظهار العناصر داخل القائمة بعد الفتح */
  .nav.open .nav-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .nav.open .nav-cta {
    display: flex;
    gap: 10px;
  }

  /* لمس منطقة الروابط يكون أكبر */
  .nav-list a { padding: 12px 10px; }
}

/* حاوية عامة (تأكد إنها مرنة) */
.container {
  width: 100%;
  max-width: 1170px;  /* بدّلها لو عندك قياس آخر */
  margin-inline: auto;
  padding-inline: 10px;
}

/* #################################################################################################################################
#################################################################################################################################
#################################################################################################################################
################################################################################################################################# */

/* ========== Hero ========== */
:root{
  --hero-min-h: 68vh;               /* ارتفاع مبدئي */
  --hero-text: #ffffff;
  --hero-overlay: rgba(9, 13, 23, .80);   /* طبقة تغميق */
  --hero-overlay-2: rgba(9, 13, 23, .50); /* تدرّج إضافي */
}

.hero{
  position: relative;
  min-height: calc(100vh - var(--header-h, 64px));
  display: grid;
  place-items: center;
  color: var(--hero-text);
  overflow: hidden;
  isolation: isolate;
}

.hero__bg{
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero__bg-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero__bg::after{
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, var(--hero-overlay) 0%, transparent 80%),
    linear-gradient(90deg, var(--hero-overlay-2) 0%, transparent 80%);
}

.hero__inner{
  width: 100%;
  /* padding علشان مايلتصق بالحواف على الشاشات الصغيرة */
  padding-block: clamp(32px, 8vw, 96px);
}


.hero__content{
  max-width: 760px;
  margin-inline: auto;     /* يوسّط الحاوية */
  text-align: center;      /* يوسّط النص */
}

.hero__title{
  font-weight: 800;
  line-height: 1.35;
  font-size: clamp(26px, 5vw, 42px);
  margin: 0 0 10px 0;
}

.hero__subtitle{
  font-size: clamp(14px, 2.7vw, 18px);
  opacity: .95;
  margin: 0 0 18px 0;
}

.hero__badges{
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0 0 18px 0;
  list-style: none;
}
.hero__badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  backdrop-filter: saturate(160%) blur(2px);
  font-weight: 700;
  font-size: 14px;
}

.hero__actions{
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* زر آوتلاين إضافي */
.btn.btn-outline{
  background: transparent;
  border: 2px solid rgba(255,255,255,.65);
  color: #fff;
}
.btn.btn-outline:hover{
  border-color: #fff;
}

/* تحسينات شاشة صغيرة */
@media (max-width: 576px){
  .hero__badge{ font-size: 13px; }
}

/* #################################################################################################################################
#################################################################################################################################
#################################################################################################################################
################################################################################################################################# */

/* ====== About ====== */
:root{
  --about-accent: #22c55e;     /* لون الأيقونات/التمييز */
  --card-bg: rgba(255,255,255,.06);
  --card-brd: rgba(255,255,255,.12);
}

.about{
  padding-block: clamp(40px, 8vw, 100px);
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.02) 100%);
}

.about__inner{
  display: grid;
  grid-template-columns: 1fr 1fr;    /* عمودين متساويين */
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
}

/* النص */
.section-title{
  font-weight: 800;
  font-size: clamp(40px, 4.2vw, 45px);
  margin: 0 0 10px 0;
  color: var(--brand-2);
}
.about__lead{
  margin: 0 0 16px 0;
  opacity: .95;
  line-height: 1.9;
  font-size: 16px;
}

/* نقاط المزايا */
.about__list{
  list-style: none;
  padding: 0;
  margin: 0 0 18px 0;
  display: grid;
  gap: 10px;
}
.about__list li{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--card-brd);
  background: var(--card-bg);
  border-radius: 12px;
  font-weight: 700;
  width: fit-content;
}
.about__list i{
  color: var(--about-accent);
  font-size: 18px;
}

/* الأرقام */
.about__stats{
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 8px;
}
.stat{
  border: 1px solid var(--card-brd);
  background: var(--card-bg);
  border-radius: 14px;
  padding: 14px 12px;
  text-align: center;
}
.stat__num{
  display: block;
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 800;
  line-height: 1.1;
}
.stat__plus{
  font-weight: 800;
  color: var(--about-accent);
}
.stat__label{
  display: block;
  opacity: .85;
  margin-top: 4px;
  font-size: 13px;
}

/* الصورة */
.about__figure{
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #0b1222;
  box-shadow: 0 20px 40px rgba(0,0,0,.25);
}
.about__img{
  width: 100%;
  height: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}
.about__figure:hover .about__img{
  transform: scale(1.035);
}

/* استجابة الموبايل */
@media (max-width: 992px){
  .about__inner{
    grid-template-columns: 1fr;      /* عمود واحد */
  }
  /* نحافظ على ترتيب: النص أولاً ثم الصورة لسهولة القراءة */
  .about__content{ order: 1; }
  .about__media{ order: 2; }

  .about__stats{
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 576px){
  .about__stats{
    grid-template-columns: repeat(2, 1fr);
  }
}

/* #################################################################################################################################
#################################################################################################################################
#################################################################################################################################
################################################################################################################################# */


/* ====== Services (يلتزم فقط بلونينك) ====== */

/* خلفية خفيفة ولمسة تمييز باللون الثاني */
.services{
  padding-block: clamp(48px, 8vw, 110px);
  background:
    radial-gradient(1200px 600px at 50% -10%, color-mix(in oklab, var(--brand-2) 20%, transparent), transparent 60%);
}

.services__head{
  text-align: center;
  margin-bottom: clamp(18px, 4vw, 30px);
}
.services__subtitle{
  opacity:.9;
  font-size: 16px;
  margin-top: 6px;
}

/* شبكة الكروت */
.services__grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: clamp(12px, 2.2vw, 20px);
}

/* الكارت العام */
.service{
  position: relative;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  border-radius: 16px;
  overflow: hidden;                 /* لاقتصاص الصورة داخل الحواف */
  padding: 0;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.service:hover{
  transform: translateY(-4px);
  border-color: var(--brand-2);
  box-shadow: 0 16px 40px rgba(0,0,0,.25);
}

/* “كفر” الصورة أعلى الكارت */
.service__media{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;            /* ارتفاع مناسب على الديسكتوب */
  overflow: hidden;
  background: var(--brand-1);       /* لون احتياطي */
  isolation: isolate;
}
.service__cover{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}

/* طبقات تأثير خفيفة */
.service__media::after{
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 45%, rgba(15,23,42,.35)),
    linear-gradient(90deg, color-mix(in oklab, var(--brand-2) 20%, transparent), transparent 60%);
  pointer-events: none;
}
.service__media::before{
  content: "";
  position: absolute;
  inset: -20%;
  background: linear-gradient(120deg, transparent 35%, rgba(255,255,255,.12) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform .6s ease;
  pointer-events: none;
}
.service:hover .service__media::before{ transform: translateX(120%); }
.service:hover .service__cover{ transform: scale(1.06); }

/* محتوى النص */
.service__body{ padding: 16px; }
.service__title{
  margin: 0 0 6px 0;
  font-weight: 800;
  font-size: 18px;
}
.service__desc{
  margin: 0;
  opacity: .9;
  line-height: 1.8;
  font-size: 14.5px;
}

/* استجابة */
@media (max-width: 992px){
  .services__grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 576px){
  .services__grid{ grid-template-columns: 1fr; }
  .service__media{ aspect-ratio: 4 / 3; }  /* ارتفاع أكبر على الموبايل */
}

/* #################################################################################################################################
#################################################################################################################################
#################################################################################################################################
################################################################################################################################# */

/* ====== Works / Slider ====== */
:root{
  --brand-1:#0f172a;
  --brand-2:#2f9487;
}

.works{
  padding-block: clamp(48px, 8vw, 110px);
  background:
    radial-gradient(1200px 600px at 50% -10%, color-mix(in oklab, var(--brand-2) 18%, transparent), transparent 60%);
}
.works__head{ text-align:center; margin-bottom: clamp(18px, 4vw, 30px); }
.works__subtitle{ opacity:.9; font-size:16px; margin-top:6px; }

/* بطاقة المشروع */
.work{
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  border-radius:16px;
  overflow:hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.work:hover{
  transform: translateY(-4px);
  border-color: var(--brand-2);
  box-shadow: 0 16px 40px rgba(0,0,0,.25);
}

.work__media{
  position: relative;
  width:100%;
  aspect-ratio: 16/9;
  overflow:hidden;
  background: var(--brand-1);
  isolation: isolate;
}
.work__cover{
  width:100%; height:100%;
  object-fit:cover; display:block;
  transition: transform .6s ease;
}
.work:hover .work__cover{ transform: scale(1.06); }

/* طبقة وتأثير لمعان */
.work__media::after{
  content:""; position:absolute; inset:0;
  background:
    linear-gradient(180deg, transparent 45%, rgba(15,23,42,.35)),
    linear-gradient(90deg, color-mix(in oklab, var(--brand-2) 18%, transparent), transparent 60%);
  pointer-events:none;
}
.work__media::before{
  content:""; position:absolute; inset:-20%;
  background: linear-gradient(120deg, transparent 35%, rgba(255,255,255,.12) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform .6s ease; pointer-events:none;
}
.work:hover .work__media::before{ transform: translateX(120%); }

/* شريط المعلومات */
.work__meta{
  position:absolute; inset:auto 10px 10px 10px;
  display:flex; justify-content:space-between; gap:8px;
  padding:8px 10px; border-radius:12px;
  background: rgba(0,0,0,.35); backdrop-filter:saturate(150%) blur(2px);
  font-weight:700; font-size:13px;
}
.work__tag{
  color: #fff;
  background: var(--brand-2);
  padding:4px 8px; border-radius:8px;
}
.work__loc{ opacity:.95;  color: #fff;}

/* زر يغطي الصورة لفتح المعرض */
.work__link{ position:absolute; inset:0; }
.d-none{ display:none !important; }

/* Swiper controls */
.works__slider{ position:relative; }
.works__nav{
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
  z-index: 5;
}
.works__prev, .works__next{
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-2); color: var(--brand-1); cursor: pointer;
  box-shadow: 0 4px 16px rgba(47,148,135,.35);
  transition: transform .2s ease, filter .2s ease;
}
.works__prev:hover, .works__next:hover{ transform: translateY(-2px); filter: brightness(1.05); }

.works__pagination{ margin-top: 14px; text-align: center; }
.works__pagination .swiper-pagination-bullet{ background: rgba(255,255,255,.45); opacity:1; width:8px; height:8px; }
.works__pagination .swiper-pagination-bullet-active{ background: var(--brand-2); }

/* Responsive */
@media (max-width: 576px){
  .work__media{ aspect-ratio: 4/3; }
  .works__nav{ inset:auto 0 calc(100% + 6px) 0; }
}


/* #################################################################################################################################
#################################################################################################################################
#################################################################################################################################
################################################################################################################################# */

/* ====== Footer ====== */
:root{
  --brand-1:#0f172a;
  --brand-2:#2f9487;
  --foot-brd: rgba(255,255,255,.12);
  --foot-fg: #ffffff;
  --foot-dim: rgba(255,255,255,.8);
}

.footer{
  background: var(--brand-1);
  color: var(--foot-fg);
  border-top: 1px solid var(--foot-brd);
  margin-top: clamp(24px, 6vw, 48px);
  position: relative;
  isolation: isolate;
}
.footer::before{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(900px 400px at 50% -10%, color-mix(in oklab, var(--brand-2) 12%, transparent), transparent 60%);
  pointer-events:none;
}

.footer__top{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: clamp(16px, 3vw, 28px);
  padding-block: clamp(28px, 6vw, 48px);
}

.footer__title{
  font-weight: 800;
  font-size: clamp(18px, 3.6vw, 22px);
  margin: 0 0 6px 0;
}
.footer__subtitle{
  font-weight: 800;
  font-size: 16px;
  margin: 0 0 8px 0;
}
.footer__text{ margin: 0 0 12px 0; opacity:.95; }

.footer__contact,
.footer__list,
.footer__hours{
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 8px;
}
.footer__link{
  color: var(--foot-fg); text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 0;
  opacity: .95;
  transition: opacity .2s ease, transform .2s ease;
}
.footer__link:hover{ opacity: 1; transform: translateX(-2px); }

.footer__list a{
  color: var(--foot-fg); text-decoration: none; opacity:.9;
  padding: 4px 0; display: inline-block;
}
.footer__list a:hover{ color: var(--brand-2); opacity: 1; }

.footer__hours span{ color: var(--foot-dim); margin-left: 6px; font-weight: 700; }
.footer__note{ margin-top: 10px; opacity:.9; }

.footer__cta{ margin-top: 12px; }

.footer__bottom{
  border-top: 1px solid var(--foot-brd);
  background: rgba(0,0,0,.08);
}
.footer__bottom-inner{
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding-block: 12px;
}
.footer__copy{ margin: 0; opacity:.95; }

.footer__mini{
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 8px;
}
.to-top{
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items:center; justify-content:center;
  background: var(--brand-2); color: var(--brand-1); text-decoration: none;
  box-shadow: 0 6px 18px rgba(47,148,135,.35);
  transition: transform .2s ease, filter .2s ease;
}
.to-top:hover{ transform: translateY(-2px); filter: brightness(1.05); }

@media (max-width: 992px){
  .footer__top{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 576px){
  .footer__top{ grid-template-columns: 1fr; }
  .footer__bottom-inner{ flex-direction: row; justify-content: space-between; }
}

/* #################################################################################################################################
#################################################################################################################################
#################################################################################################################################
################################################################################################################################# */

/* ====== Preloader ====== */
:root{
  --brand-1:#0f172a;
  --brand-2:#2f9487;
}

.preloader{
  position: fixed; inset: 0;
  background: var(--brand-1);
  display: grid; place-items: center;
  z-index: 3000;
  transition: opacity .35s ease, visibility .35s ease;
}
.preloader.is-hidden{ opacity: 0; visibility: hidden; }

.preloader__box{ display: grid; place-items: center; gap: 10px; }
.preloader__ring{
  width: 56px; height: 56px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.18);
  border-top-color: var(--brand-2);
  animation: preloader-spin 1s linear infinite;
}
.preloader__label{ color:#fff; opacity:.9; font-weight:700; font-size:14px; letter-spacing:.3px; }

@keyframes preloader-spin{ to { transform: rotate(360deg); } }

/* احترام تفضيل تقليل الحركة */
@media (prefers-reduced-motion: reduce){
  .preloader__ring{ animation: none; }
}

/* ====== WhatsApp Floating Button ====== */
.wa-float{
  position: fixed;
  /* أسفل يسار مع مراعاة الحواف الآمنة على الجوال */
  bottom: calc(16px + env(safe-area-inset-bottom));
  right: 16px;
  z-index: 2200;

  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;

  background: var(--cta-primary);
  color: var(--brand-1);
  font-weight: 800;

  box-shadow: 0 8px 24px rgba(47,148,135,.35);
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}
.wa-float i{ font-size: 20px; line-height: 1; }
.wa-float:hover{
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 12px 28px rgba(47,148,135,.45);
}

/* نبضة خفيفة ملفتة على الديسكتوب */
@keyframes wa-pulse{
  0%{ box-shadow: 0 0 0 0 rgba(47,148,135,.45); }
  70%{ box-shadow: 0 0 0 18px rgba(47,148,135,0); }
  100%{ box-shadow: 0 0 0 0 rgba(47,148,135,0); }
}
@media (min-width: 768px){
  .wa-float{ animation: wa-pulse 2.6s infinite; }
}
@media (prefers-reduced-motion: reduce){
  .wa-float{ animation: none; }
}








