:root{
  --bg:#071525;
  --bg2:#0b1f33;

  --card:rgba(255,255,255,.045);
  --line:rgba(255,255,255,.11);

  --text:#eaf2ff;
  --muted:rgba(234,242,255,.72);

  /* Brand (Profile Navy + Cyan) */
  --brand:#243F6B;        /* Navy */
  --brand-dark:#1B3155;
  --brand-light:#2F5F9E;
  --accent:#3DA6D8;       /* Cyan */
  --whatsapp:#25D366;

  --shadow:0 20px 60px rgba(0,0,0,.35);
  --radius:18px;
  --max:1180px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(1200px 500px at 20% -10%, rgba(61,166,216,.18), transparent 60%),
    radial-gradient(900px 450px at 90% 10%, rgba(36,63,107,.22), transparent 60%),
    linear-gradient(180deg, var(--bg), #06101b 55%, #050b12);
  color:var(--text);
  line-height:1.65;
}

a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}

.container{max-width:var(--max); margin:0 auto; padding:0 20px}
section{padding:56px 0}

.pill{
  display:inline-flex;align-items:center;gap:8px;
  padding:7px 12px;border-radius:999px;
  background:rgba(61,166,216,.10);
  border:1px solid rgba(61,166,216,.20);
  color:rgba(234,242,255,.92);
  font-weight:800;
  font-size:13px;
}
.dot{width:8px;height:8px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 6px rgba(61,166,216,.12)}

/* ===================== HEADER ===================== */
.header{
  position:sticky; top:0; z-index:500;
  background:rgba(15,31,56,.88);
  backdrop-filter: blur(12px);
  border-bottom:1px solid rgba(255,255,255,.06);
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:12px 0;
  position:relative;
}

.brand{
  display:flex;align-items:center;gap:12px;
  min-width:240px;
}
.brand-logo{
  height:40px; width:auto;
  filter: drop-shadow(0 10px 22px rgba(61,166,216,.16));
}
.brand-title{
  display:flex;flex-direction:column;line-height:1.1;
}
.brand-title strong{
  font-family: Montserrat, Inter, sans-serif;
  letter-spacing:.4px;
}
.brand-title span{font-size:12px;color:var(--muted);margin-top:3px}

/* Desktop menu */
.menu{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:nowrap;      /* مهم: يمنع النزول لسطر ثاني */
  justify-content:center;
  white-space:nowrap;
}
.menu a{
  font-weight:800;
  color:rgba(234,242,255,.88);
  font-size:14px;
  padding:10px 12px;
  border-radius:12px;
}
.menu a:hover{background:rgba(255,255,255,.06)}
.menu a.active{background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.10)}

.cta{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:nowrap;
  justify-content:flex-end;
  white-space:nowrap;
}

.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  padding:12px 16px;border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  color:rgba(234,242,255,.95);
  font-weight:900;
  font-size:14px;
  transition:.2s ease;
  white-space:nowrap;
}
.btn:hover{transform:translateY(-1px);background:rgba(255,255,255,.08)}
.btn.primary{
  border:none;
  background:linear-gradient(135deg, var(--brand), var(--brand-light));
  color:#f6fbff;
  box-shadow:0 18px 45px rgba(36,63,107,.25);
}
.btn.primary:hover{transform:translateY(-2px);filter:brightness(1.06)}
.btn.whatsapp{
  border:none !important;
  background:var(--whatsapp) !important;
  color:#fff !important;
  box-shadow:0 18px 45px rgba(37,211,102,.22);
}
.btn.whatsapp:hover{background:#1ebe5d !important}
.btn.lang{font-weight:1000;border:1px solid rgba(255,255,255,.14)}

/* Hamburger (mobile only) */
.nav-toggle{
  display:none;
  width:44px;height:44px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.06);
  color:inherit;
  font-size:20px;
  font-weight:1000;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}

/* ===================== HERO / CONTENT ===================== */
.hero{padding:58px 0 22px}
.hero-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:22px;
  align-items:stretch;
}
.hero h1{
  font-family: Montserrat, Inter, sans-serif;
  font-size:44px;
  line-height:1.12;
  margin:14px 0 12px;
  letter-spacing:-.6px;
}
.hero p{
  color:var(--muted);
  font-size:16px;
  margin:0 0 18px;
  max-width:60ch;
}

.hero-card{
  border:1px solid rgba(255,255,255,.10);
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
}
.hero-card .photo{
  height:190px;
  background:
    linear-gradient(180deg, rgba(6,18,30,.10), rgba(6,18,30,.92)),
    url('https://images.unsplash.com/photo-1581090700227-1e37b190418e?auto=format&fit=crop&w=1800&q=70');
  background-size:cover;
  background-position:center;
}
.hero-card .content{padding:16px 16px 18px}
.hero-card h3{font-family: Montserrat, Inter, sans-serif;margin:0 0 6px;font-size:16px}
.hero-card p{margin:0;color:var(--muted);font-size:13px}

.stats{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
  margin-top:18px;
}
.stat{
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.04);
  border-radius:16px;
  padding:14px;
}
.stat strong{
  display:block;
  font-family:Montserrat, Inter, sans-serif;
  font-size:18px;
  letter-spacing:-.3px;
}
.stat span{display:block;color:var(--muted);font-size:12px;margin-top:4px}

.section-title{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap:16px; margin-bottom:16px; flex-wrap:wrap;
}
.section-title h2{
  font-family: Montserrat, Inter, sans-serif;
  margin:0;
  font-size:26px;
  letter-spacing:-.4px;
}
.section-title p{margin:0;color:var(--muted);max-width:78ch}

.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
  margin-top:16px;
}
.card{
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  border-radius:var(--radius);
  padding:18px;
  transition:.2s ease;
}
.card:hover{transform:translateY(-2px);background:rgba(255,255,255,.05)}
.card h3{font-family:Montserrat, Inter, sans-serif;margin:0 0 8px;font-size:16px}
.card p{margin:0;color:var(--muted);font-size:13.5px}

.icon{
  width:42px;height:42px;border-radius:14px;
  background:rgba(61,166,216,.12);
  border:1px solid rgba(61,166,216,.22);
  display:flex;align-items:center;justify-content:center;
  margin-bottom:12px;
  font-weight:1000;color:rgba(234,242,255,.95);
  font-family:Montserrat, Inter, sans-serif;
}

/* ====== Auto Images (Services / Projects) ======
   فقط ضع class على body:
   services.html => <body class="page-services">
   projects.html => <body class="page-projects">
*/
.page-services .grid .card,
.page-projects .grid .card{
  overflow:hidden;
}
.page-services .grid .card::before,
.page-projects .grid .card::before{
  content:"";
  display:block;
  height:180px;
  border-radius:14px;
  margin:-4px 0 14px;
  background-size:cover;
  background-position:center;
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 18px 55px rgba(0,0,0,.22);
}

/* SERVICES (6 cards) */
.page-services .grid .card:nth-child(1)::before{
  background-image:
    linear-gradient(180deg, rgba(6,18,30,.10), rgba(6,18,30,.78)),
    url('https://images.unsplash.com/photo-1581091215367-59ab6c1c7c20?auto=format&fit=crop&w=1800&q=70'); /* engineering drawings */
}
.page-services .grid .card:nth-child(2)::before{
  background-image:
    linear-gradient(180deg, rgba(6,18,30,.10), rgba(6,18,30,.78)),
    url('https://images.unsplash.com/photo-1521737604893-d14cc237f11d?auto=format&fit=crop&w=1800&q=70'); /* meeting / PM */
}
.page-services .grid .card:nth-child(3)::before{
  background-image:
    linear-gradient(180deg, rgba(6,18,30,.10), rgba(6,18,30,.78)),
    url('https://images.unsplash.com/photo-1600267165499-1a9d7c7c7d0d?auto=format&fit=crop&w=1800&q=70'); /* procurement / warehouse */
}
.page-services .grid .card:nth-child(4)::before{
  background-image:
    linear-gradient(180deg, rgba(6,18,30,.10), rgba(6,18,30,.78)),
    url('https://images.unsplash.com/photo-1581091870622-3a9b58f4c6b9?auto=format&fit=crop&w=1800&q=70'); /* construction site */
}
.page-services .grid .card:nth-child(5)::before{
  background-image:
    linear-gradient(180deg, rgba(6,18,30,.10), rgba(6,18,30,.78)),
    url('https://images.unsplash.com/photo-1552083974-186346191183?auto=format&fit=crop&w=1800&q=70'); /* GIS / maps */
}
.page-services .grid .card:nth-child(6)::before{
  background-image:
    linear-gradient(180deg, rgba(6,18,30,.10), rgba(6,18,30,.78)),
    url('https://images.unsplash.com/photo-1581092580497-e0d23cbdf1dc?auto=format&fit=crop&w=1800&q=70'); /* EPC / industrial */
}

/* PROJECTS (6 cards) */
.page-projects .grid .card:nth-child(1)::before{
  background-image:
    linear-gradient(180deg, rgba(6,18,30,.10), rgba(6,18,30,.78)),
    url('https://images.unsplash.com/photo-1509391366360-2e959784a276?auto=format&fit=crop&w=1800&q=70'); /* infrastructure / solar */
}
.page-projects .grid .card:nth-child(2)::before{
  background-image:
    linear-gradient(180deg, rgba(6,18,30,.10), rgba(6,18,30,.78)),
    url('https://images.unsplash.com/photo-1581092919535-7146d0bba45d?auto=format&fit=crop&w=1800&q=70'); /* industrial */
}
.page-projects .grid .card:nth-child(3)::before{
  background-image:
    linear-gradient(180deg, rgba(6,18,30,.10), rgba(6,18,30,.78)),
    url('https://images.unsplash.com/photo-1569163139599-0f4517e36f51?auto=format&fit=crop&w=1800&q=70'); /* environmental */
}
.page-projects .grid .card:nth-child(4)::before{
  background-image:
    linear-gradient(180deg, rgba(6,18,30,.10), rgba(6,18,30,.78)),
    url('https://images.unsplash.com/photo-1581092334494-1fb7c0b41b99?auto=format&fit=crop&w=1800&q=70'); /* buildings / MEP */
}
.page-projects .grid .card:nth-child(5)::before{
  background-image:
    linear-gradient(180deg, rgba(6,18,30,.10), rgba(6,18,30,.78)),
    url('https://images.unsplash.com/photo-1526498460520-4c246339dccb?auto=format&fit=crop&w=1800&q=70'); /* GIS mapping */
}
.page-projects .grid .card:nth-child(6)::before{
  background-image:
    linear-gradient(180deg, rgba(6,18,30,.10), rgba(6,18,30,.78)),
    url('https://images.unsplash.com/photo-1553877522-43269d4ea984?auto=format&fit=crop&w=1800&q=70'); /* management reporting */
}

/* ===================== Contact ===================== */
.contact{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
  margin-top:16px;
}
form{display:grid;gap:10px;margin-top:6px}
.row{display:grid;grid-template-columns: 1fr 1fr;gap:10px}

input, textarea{
  width:100%;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.12);
  border-radius:14px;
  padding:12px 12px;
  color:var(--text);
  outline:none;
  font-family:inherit;
  font-size:14px;
}
input::placeholder, textarea::placeholder{color:rgba(234,242,255,.55)}
textarea{min-height:120px;resize:vertical}

.form-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:6px}
.item{
  padding:12px 14px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.03);
  border-radius:16px;
}
.item strong{display:block;font-family:Montserrat, Inter, sans-serif}
.item span{display:block;color:var(--muted);font-size:13px;margin-top:3px}

/* ===================== Footer ===================== */
footer{
  border-top:1px solid rgba(255,255,255,.08);
  padding:26px 0;
  color:rgba(234,242,255,.70);
  font-size:13px;
}
.footer-grid{
  display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap
}

/* Floating WhatsApp */
.wa-float{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:99999; /* مهم */
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:56px;height:56px;
  border-radius:18px;
  background:var(--whatsapp);
  box-shadow:0 24px 70px rgba(37,211,102,.30);
  border:none;
  color:#fff !important;
  font-weight:1000;
  font-size:18px;
  transition:.2s ease;
}
.wa-float:hover{transform:translateY(-2px);background:#1ebe5d}

/* Hide WA when mobile menu open */
html.nav-open .wa-float{display:none}

/* RTL support */
html[dir="rtl"] body{font-family: "Inter", system-ui, Arial, sans-serif}
html[dir="rtl"] .menu{justify-content:flex-start}
html[dir="rtl"] .cta{justify-content:flex-start}

/* ===================== Responsive ===================== */
@media (max-width: 1200px){
  /* يقلل فرص نزول "Clients / Contact" لسطر ثاني */
  .menu a{padding:10px 10px; font-size:13.5px}
  .btn{padding:11px 14px}
}

@media (max-width: 980px){
  .hero-grid{grid-template-columns:1fr}
  .grid{grid-template-columns:1fr 1fr}
  .contact{grid-template-columns:1fr}
  .hero h1{font-size:36px}
}

@media (max-width: 620px){
  .stats{grid-template-columns:1fr}
  .grid{grid-template-columns:1fr}
  .row{grid-template-columns:1fr}
  .hero h1{font-size:34px}
}

/* ===================== Mobile Drawer Menu (Professional) ===================== */
@media (max-width: 992px){
  /* Show hamburger */
  .nav-toggle{display:flex}

  /* hide desktop menu by default */
  .menu{display:none}

  /* keep header tidy: hide extra CTA buttons on mobile (leave EN/AR + primary) */
  .cta .btn:not(.primary):not(.lang){display:none}

  /* drawer */
  .menu.is-open{
    display:flex;
    flex-direction:column;
    position:absolute;
    left:16px; right:16px;
    top:72px;
    padding:12px;
    gap:8px;
    border-radius:18px;
    border:1px solid rgba(255,255,255,.12);
    background:rgba(10,18,38,.92);
    backdrop-filter: blur(12px);
    box-shadow:0 30px 90px rgba(0,0,0,.35);
    animation:drop .18s ease-out;
    z-index:9999;
  }
  .menu.is-open a{
    padding:14px 14px;
    border-radius:14px;
    background:rgba(255,255,255,.04);
    border:1px solid rgba(255,255,255,.08);
  }
  .menu.is-open a:hover{
    background:rgba(255,255,255,.08);
    border-color:rgba(255,255,255,.14);
  }

  /* optional: hide subtitle for space */
  .brand-title span{display:none}

  @keyframes drop{
    from{opacity:0; transform:translateY(-10px)}
    to{opacity:1; transform:translateY(0)}
  }
}

@media (max-width: 520px){
  /* If needed: hide language buttons on very small phones */
  /* .cta .btn.lang{display:none} */
}