@import url("https://fonts.googleapis.com/css2?family=Noto+Kufi+Arabic:wght@300;400;600;700;800&display=swap");

:root{
  --brand:#0f7a3d;
  --brand-2:#0b5d2f;
  --brand-soft:#e9f7ef;
  --ink:#0f172a;
  --muted:#64748b;
  --bg:#f6faf7;
  --card:#ffffff;
  --border:#e5e7eb;
  --radius:18px;
  --shadow:0 18px 40px rgba(2, 6, 23, .10);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:"Noto Kufi Arabic", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  background:var(--bg);
  color:var(--ink);
  line-height:1.9;
}
a{color:inherit; text-decoration:none}
img{max-width:100%; display:block}
.container{width:min(1150px, 92%); margin-inline:auto}

.topbar{
  background:linear-gradient(90deg, var(--brand), var(--brand-2));
  color:#fff;
  font-size:.95rem;
}
.topbar .inner{
  display:flex; gap:12px; align-items:center; justify-content:space-between;
  padding:10px 0;
}
.badge{
  background:rgba(255,255,255,.16);
  border:1px solid rgba(255,255,255,.25);
  padding:6px 10px; border-radius:999px;
}
.header{
  position:sticky; top:0; z-index:50;
  background:rgba(246,250,247,.86);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--border);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
}
.brand{
  display:flex; gap:10px; align-items:center;
  font-weight:800;
}
.logo{
  width:42px; height:42px; border-radius:14px;
  background:var(--brand-soft);
  border:1px solid var(--border);
  display:grid; place-items:center;
  color:var(--brand);
  font-weight:900;
}
.navlinks{display:flex; gap:14px; align-items:center; flex-wrap:wrap}
.navlinks a{
  padding:10px 12px; border-radius:12px;
  color:var(--ink);
}
.navlinks a:hover{background:#fff; box-shadow:0 6px 20px rgba(2,6,23,.06)}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:8px;
  border-radius:14px;
  padding:12px 16px;
  border:1px solid var(--border);
  background:#fff;
  cursor:pointer;
}
.btn-primary{
  background:linear-gradient(135deg, var(--brand), var(--brand-2));
  color:#fff;
  border:0;
  box-shadow:0 14px 28px rgba(15,122,61,.20);
}
.btn-primary:hover{filter:brightness(1.02)}
.btn-ghost:hover{background:var(--brand-soft); border-color:#cfead9}

.hero{
  padding:38px 0 18px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:22px;
  align-items:stretch;
}
.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.hero-card{padding:22px}
.h1{font-size:2rem; line-height:1.4; margin:0 0 10px}
.lead{color:var(--muted); margin:0 0 14px}
.kpis{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:10px;
  margin-top:14px;
}
.kpi{
  background:var(--brand-soft);
  border:1px solid #cfead9;
  padding:12px; border-radius:16px;
}
.kpi b{display:block; font-size:1.05rem}
.kpi span{color:var(--muted); font-size:.92rem}

.hero-side{padding:18px}
.notice{
  background:#fff;
  border:1px dashed #cfead9;
  border-radius:16px;
  padding:12px;
  color:var(--muted);
  font-size:.95rem;
}

.section{padding:18px 0}
.section h2{margin:0 0 10px; font-size:1.4rem}
.grid-4{display:grid; grid-template-columns:repeat(4, 1fr); gap:14px}
.grid-3{display:grid; grid-template-columns:repeat(3, 1fr); gap:14px}
.grid-2{display:grid; grid-template-columns:repeat(2, 1fr); gap:14px}

.service{
  padding:16px;
  transition:.18s transform ease, .18s box-shadow ease;
}
.service:hover{transform:translateY(-2px)}
.icon{
  width:46px; height:46px;
  border-radius:16px;
  background:var(--brand-soft);
  border:1px solid #cfead9;
  display:grid; place-items:center;
  color:var(--brand);
  font-weight:900;
}
.service h3{margin:10px 0 6px; font-size:1.05rem}
.muted{color:var(--muted)}
.pills{display:flex; gap:8px; flex-wrap:wrap; margin-top:10px}
.pill{
  font-size:.9rem;
  background:#fff;
  border:1px solid var(--border);
  padding:6px 10px;
  border-radius:999px;
  color:var(--muted);
}

.cta{
  padding:18px;
  background:linear-gradient(135deg, rgba(15,122,61,.10), rgba(11,93,47,.12));
  border:1px solid #cfead9;
  border-radius:var(--radius);
  display:flex; align-items:center; justify-content:space-between; gap:12px;
}
.cta h3{margin:0}
.footer{
  margin-top:24px;
  border-top:1px solid var(--border);
  padding:18px 0 34px;
  color:var(--muted);
}
.footer a{color:var(--muted); text-decoration:underline}
.small{font-size:.95rem}
.hr{height:1px; background:var(--border); margin:12px 0}

.form{
  display:grid; gap:10px;
}
.input{
  width:100%;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--border);
  background:#fff;
  outline:none;
}
textarea.input{min-height:120px; resize:vertical}
.label{font-size:.95rem; color:var(--muted)}
/* fixed action buttons */
.fab{
  position:fixed; left:14px; bottom:14px; z-index:60;
  display:flex; flex-direction:column; gap:10px;
}
.fab a{
  width:56px; height:56px;
  border-radius:18px;
  display:grid; place-items:center;
  box-shadow:0 20px 40px rgba(2,6,23,.18);
}
.fab .call{background:linear-gradient(135deg, var(--brand), var(--brand-2)); color:#fff}
.fab .wa{background:#25D366; color:#fff}

@media (max-width: 980px){
  .hero-grid{grid-template-columns:1fr}
  .grid-4{grid-template-columns:repeat(2, 1fr)}
  .grid-3{grid-template-columns:1fr}
  .kpis{grid-template-columns:1fr}
}
/* ===== Mobile upgrades ===== */
@media (max-width: 980px){
  body{ line-height: 1.85; }
  .container{ width: min(680px, 92%); }

  /* Hero */
  .hero{ padding: 18px 0 10px; }
  .hero-card{ padding: 16px !important; }
  .hero-side{ padding: 16px !important; }
  .h1{ font-size: 1.45rem; }
  .lead{ font-size: 1rem; }

  /* Better grids */
  .grid-4{ grid-template-columns: 1fr; }
  .grid-3{ grid-template-columns: 1fr; }
  .grid-2{ grid-template-columns: 1fr; }

  /* Cards */
  .service{ padding: 14px; }
  .icon{ width: 44px; height: 44px; border-radius: 14px; }

  /* Buttons: full width on mobile */
  .btn{
    width: 100%;
    justify-content: center;
    padding: 13px 16px;
  }

  /* Pills wrap nicely */
  .pills{ gap: 6px; }
  .pill{ font-size: .88rem; }

  /* CTA stack */
  .cta{
    flex-direction: column;
    align-items: stretch;
  }

  /* Fixed buttons smaller */
  .fab{ left: 12px; bottom: 12px; }
  .fab a{ width: 52px; height: 52px; border-radius: 16px; }
}

/* ===== Mobile navbar + drawer ===== */
.mobile-toggle{
  display:none;
  width:44px; height:44px;
  border-radius:14px;
  border:1px solid var(--border);
  background:#fff;
  cursor:pointer;
  align-items:center;
  justify-content:center;
  gap:4px;
}
.mobile-toggle span{
  display:block;
  width:18px; height:2px;
  background: var(--ink);
  border-radius:999px;
}

.mobile-drawer-backdrop{
  position:fixed; inset:0;
  background: rgba(2,6,23,.35);
  display:none;
  z-index: 80;
}
.mobile-drawer{
  position:fixed;
  top:0; right:0;
  width:min(360px, 86vw);
  height:100%;
  background:#fff;
  border-left:1px solid var(--border);
  box-shadow: -20px 0 50px rgba(2,6,23,.18);
  transform: translateX(110%);
  transition: .18s transform ease;
  z-index: 90;
  padding: 14px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.mobile-drawer .drawer-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.mobile-drawer .drawer-close{
  width:44px; height:44px;
  border-radius:14px;
  border:1px solid var(--border);
  background:#fff;
  cursor:pointer;
}
.mobile-drawer a{
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
}
.mobile-drawer a.btn-primary{
  border:0;
}
.mobile-drawer .muted-note{
  color: var(--muted);
  font-size: .95rem;
  margin-top:auto;
  padding-top:10px;
  border-top:1px solid var(--border);
}

@media (max-width: 980px){
  .navlinks{ display:none !important; }
  .mobile-toggle{ display:flex; }
}