﻿/* ===== Sabeel Al-Hayat Brand UI (Green + Gold) ===== */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&display=swap');

:root{
  --bg: #f7faf8;                 /* خلفية فاتحة */
  --bg2:#eef6f1;                 /* خلفية ثانية */
  --card:#ffffff;
  --text:#0f1a14;                /* نص غامق طبيعي */
  --muted:#5f6b63;               /* نص ثانوي */
  --border: rgba(15, 26, 20, .10);

  /* ألوان اللوجو */
  --brand:#0f6a3a;               /* أخضر أساسي */
  --brand-2:#2f8f4f;             /* أخضر مساعد */
  --gold:#caa64a;                /* ذهبي/قمحي */
  --gold-2:#e3c46b;

  --shadow: 0 10px 30px rgba(15, 26, 20, .08);
  --shadow2: 0 18px 60px rgba(15, 26, 20, .10);
  --radius:18px;

  --max:1120px;
  --pad:22px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: "Cairo", system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
  background:
    radial-gradient(900px 500px at 12% 0%, rgba(47,143,79,.10), transparent 60%),
    radial-gradient(700px 420px at 90% 10%, rgba(202,166,74,.12), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  color:var(--text);
  line-height:1.8;
}

a{color:inherit;text-decoration:none}
.container{max-width:var(--max); margin:auto; padding:0 var(--pad);}

/* ===== Topbar / Nav ===== */
.topbar{
  position:sticky; top:0; z-index:50;
  background: rgba(247, 250, 248, .78);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--border);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0; gap:14px;
}

.brand{display:flex; align-items:center; gap:12px;}
.brand img{
  height: 64px;          /* كبّر اللوجو */
  width: auto;
  padding: 0;            /* بدون حشو */
  background: transparent;
  border: 0;
  border-radius: 12px;
  box-shadow: none;      /* بدون ظل على اللوجو نفسه */
  display:block;
}
.brand .name{font-weight:900; letter-spacing:.2px}
.brand .sub{font-size:12px;color:var(--muted);font-weight:700;margin-top:-2px}

.menu{
  display:flex; gap:8px; flex-wrap:wrap; align-items:center;
}
.menu a{
  padding:9px 12px;
  border-radius:999px;
  color:var(--muted);
  border:1px solid transparent;
  transition:.2s;
}
.menu a:hover{
  color:var(--brand);
  border-color:rgba(15,106,58,.18);
  background:rgba(15,106,58,.06);
}
.menu a.active{
  color:var(--brand);
  background:rgba(15,106,58,.10);
  border-color:rgba(15,106,58,.22);
  font-weight:800;
}

.cta{display:flex; gap:10px; align-items:center; flex-wrap:wrap;}

.btn{
  padding:10px 14px;
  border-radius:999px;
  border:1px solid rgba(15,106,58,.18);
  background: #fff;
  color: var(--brand);
  cursor:pointer;
  transition:.2s;
  display:inline-flex; align-items:center; gap:8px;
  box-shadow: 0 10px 25px rgba(15,26,20,.06);
  font-weight:800;
}
.btn:hover{transform:translateY(-1px); box-shadow: var(--shadow)}
.btn.primary{
  border:none;
  color:#fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}
.btn.gold{
  border:none;
  color:#3a2b06;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
}

/* ===== Hero ===== */
.hero{padding:46px 0 18px;}
.hero-grid{
  display:grid;
  grid-template-columns: 1.25fr .75fr;
  gap:18px;
  align-items:stretch;
}
.hero-card{
  background:
    radial-gradient(900px 420px at 10% 10%, rgba(15,106,58,.08), transparent 60%),
    radial-gradient(700px 360px at 90% 10%, rgba(202,166,74,.10), transparent 55%),
    #fff;
  border:1px solid var(--border);
  border-radius: 22px;
  padding:30px;
  box-shadow: var(--shadow2);
  position:relative;
  overflow:hidden;
}
.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:7px 12px;
  border-radius:999px;
  border:1px solid rgba(15,106,58,.18);
  background:rgba(15,106,58,.06);
  color:var(--brand);
  font-size:14px;
  font-weight:800;
}
h1{
  margin:14px 0 10px;
  font-size:36px;
  line-height:1.25;
  letter-spacing:.2px;
}
.lead{color:var(--muted); margin:0 0 18px; font-size:16px}

.hero-actions{display:flex; gap:10px; flex-wrap:wrap; margin-top:16px}

.stats{
  display:grid; gap:12px;
  grid-template-columns: 1fr 1fr;
  margin-top:18px;
}
.stat{
  padding:14px;
  border-radius:18px;
  border:1px solid rgba(15,106,58,.12);
  background: rgba(15,106,58,.04);
}
.stat strong{display:block; font-size:16px; color:var(--brand); font-weight:900}
.stat span{color:var(--muted); font-size:13px}

.side-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius: 22px;
  padding:18px;
  box-shadow: var(--shadow);
  display:flex;
  flex-direction:column;
  gap:12px;
}
.pill{
  padding:12px 12px;
  border-radius:18px;
  border:1px solid rgba(202,166,74,.18);
  background: rgba(202,166,74,.08);
  color:#5a4a1a;
}
.pill b{color:#3a2b06}
.divider{height:1px;background:var(--border); margin:10px 0}

/* ===== Sections ===== */
section{padding:28px 0}
.section-title{
  display:flex; align-items:end; justify-content:space-between;
  gap:14px; flex-wrap:wrap;
  margin-bottom:14px;
}
.section-title h2{
  margin:0; font-size:24px;
  color:var(--brand);
  letter-spacing:.2px;
}
.section-title p{margin:0; color:var(--muted)}

.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}

.card{
  border:1px solid var(--border);
  background:#fff;
  border-radius: 22px;
  padding:16px;
  box-shadow: 0 10px 25px rgba(15,26,20,.06);
  transition:.2s;
}
.card:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.card h3{margin:8px 0 6px; font-size:18px}
.card p{margin:0; color:var(--muted); font-size:14px}

.icon{
  width:46px;height:46px;border-radius:16px;
  background: rgba(15,106,58,.10);
  border:1px solid rgba(15,106,58,.20);
  display:grid; place-items:center;
  font-size:20px;
  color:var(--brand);
}

/* ===== Product Cards ===== */
.img-card{overflow:hidden; padding:0}
.img-card img{
  width:100%;
  height:220px;
  object-fit:cover;
  display:block;
  filter:saturate(1.05) contrast(1.02);
}
.img-card .body{padding:14px 16px}
.tags{display:flex; gap:8px; flex-wrap:wrap; margin-top:10px}
.tag{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(15,106,58,.18);
  color:var(--brand);
  background: rgba(15,106,58,.06);
  font-weight:800;
}

/* ===== Contact ===== */
.contact-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
}
form{display:grid; gap:10px;}
input, textarea, select{
  width:100%;
  padding:12px 12px;
  border-radius:16px;
  border:1px solid rgba(15,26,20,.14);
  background: #fff;
  color: var(--text);
  outline:none;
  box-shadow: 0 10px 25px rgba(15,26,20,.04);
}
textarea{min-height:120px; resize:vertical}
input::placeholder, textarea::placeholder{color:rgba(95,107,99,.85)}
.hint{color:var(--muted); font-size:13px; margin:0}

.map{
  width:100%;
  height:330px;
  border:1px solid var(--border);
  border-radius: 22px;
  overflow:hidden;
  box-shadow: 0 10px 25px rgba(15,26,20,.06);
}

/* ===== Footer ===== */
.footer{
  padding:22px 0 36px;
  border-top:1px solid var(--border);
  color:var(--muted);
  font-size:14px;
  background: rgba(255,255,255,.55);
}

/* ===== WhatsApp floating ===== */
.wa{
  position:fixed; left:16px; bottom:16px; z-index:60;
  border-radius:999px;
  padding:12px 14px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color:#062b1a;
  font-weight:900;
  box-shadow: 0 14px 30px rgba(0,0,0,.18);
  display:flex; align-items:center; gap:10px;
}
.wa small{font-weight:800; opacity:.85}
.wa:hover{filter:brightness(1.05)}

/* ===== Lightbox ===== */
.lightbox{
  position:fixed; inset:0; z-index:999;
  background: rgba(15, 26, 20, .70);
  display:none;
  align-items:center; justify-content:center;
  padding:20px;
}
.lightbox.open{display:flex}
.lightbox img{
  max-width:min(980px, 100%);
  max-height:85vh;
  border-radius:22px;
  border:1px solid rgba(255,255,255,.20);
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.lightbox .close{
  position:absolute;
  top:14px; right:14px;
  background:rgba(255,255,255,.85);
  border:1px solid rgba(15,26,20,.15);
  border-radius:16px;
  padding:10px 12px;
  font-weight:900;
}

/* Responsive */
@media (max-width: 920px){
  .hero-grid{grid-template-columns:1fr}
  .grid{grid-template-columns:1fr}
  .contact-grid{grid-template-columns:1fr}
  h1{font-size:30px}
}
/* =========================
   Mobile Responsive تحسينات
========================= */

@media (max-width: 992px){
  .nav{
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .brand{
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .menu{
    width: 100%;
    justify-content: center;
  }

  .cta{
    width: 100%;
    justify-content: center;
  }

  .hero-grid,
  .contact-grid,
  .grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px){
  body{
    font-size: 15px;
  }

  .container{
    padding: 0 16px;
  }

  .topbar{
    position: relative;
  }

  .nav{
    padding: 12px 0;
  }

  .brand{
    gap: 10px;
    flex-direction: column;
  }

  .brand img{
    height: 72px;   /* اللوجو أوضح على الموبايل */
    max-width: 90%;
  }

  .brand .name{
    font-size: 22px;
    line-height: 1.2;
  }

  .brand .sub{
    font-size: 13px;
  }

  .menu{
    gap: 8px;
  }

  .menu a{
    padding: 8px 12px;
    font-size: 14px;
  }

  .cta .btn,
  .btn{
    width: 100%;
    justify-content: center;
  }

  .hero{
    padding: 24px 0 12px;
  }

  .hero-card,
  .side-card,
  .card{
    border-radius: 18px;
  }

  .hero-card{
    padding: 20px;
  }

  h1{
    font-size: 28px;
    line-height: 1.35;
    text-align: center;
  }

  .lead{
    font-size: 15px;
    text-align: center;
  }

  .badge{
    font-size: 13px;
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .hero-actions{
    flex-direction: column;
  }

  .hero-actions .btn{
    width: 100%;
    justify-content: center;
  }

  .stats{
    grid-template-columns: 1fr;
  }

  .section-title{
    align-items: flex-start;
  }

  .section-title h2{
    font-size: 22px;
  }

  .img-card img{
    height: 220px;
  }

  .map{
    height: 260px;
  }

  input, textarea, select{
    font-size: 16px; /* يمنع الزوم التلقائي في الآيفون */
  }

  .footer .container{
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .wa{
    left: 12px;
    right: 12px;
    bottom: 12px;
    justify-content: center;
    width: auto;
  }
}

@media (max-width: 480px){
  .container{
    padding: 0 12px;
  }

  .brand img{
    height: 64px;
  }

  .brand .name{
    font-size: 20px;
  }

  .brand .sub{
    font-size: 12px;
  }

  h1{
    font-size: 24px;
  }

  .lead{
    font-size: 14px;
  }

  .menu{
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .menu a{
    text-align: center;
    width: 100%;
  }

  .img-card img{
    height: 200px;
  }

  .card,
  .hero-card,
  .side-card{
    padding: 14px;
  }

  .badge{
    font-size: 12px;
    padding: 8px 10px;
  }
}