
/* === Core Reset & Vars === */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Tajawal", "Cairo", system-ui, -apple-system, "Segoe UI", Roboto, Arial; color: var(--ink); background: #fff; }
a { text-decoration: none; color: inherit; }
:root{
  --primary:#F06428;
  --primary-dark:#D24F1F;
  --accent:#1D9A4B; /* green badge */
  --ink:#16202E;
  --muted:#6B7280;
  --bg-soft:#FBF2EC; /* peach hero */
  --card:#fff;
  --ring:rgba(0,0,0,.06);
}

/* === Top green badge === */
.top-badge{background:#DCF3E5;border-bottom:2px solid #1D9A4B1A;color:#106B38;text-align:center;font-weight:800;padding:10px 12px}

/* === Header === */
.header{position: sticky; top:0; z-index:50; background:#fff; border-bottom:1px solid #F2F2F2}
.header .wrap{width:min(1280px,94%); margin:0 auto; display:flex; align-items:center; gap:18px; justify-content:space-between; padding:16px 0}
.brand{display:flex; align-items:center; gap:12px; white-space:nowrap}
.brand .logo{ width:58px; height:58px; border-radius:16px; background:var(--primary); display:grid; place-items:center; color:#fff; font-weight:900; }
.brand .names{ line-height:1.05; text-align:center }
.brand .ar{ font-size:20px; font-weight:900; color:#F06428 }
.brand .en{ font-size:12px; font-weight:700; color:#7C8796 }

.nav{display:flex; gap:26px; align-items:center; font-weight:800; color:#354153}
.nav a{opacity:.95}
.nav a:hover{color:#000}

.header-ctas{display:flex; gap:16px; align-items:center}
.btn{display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:12px 18px; border-radius:16px; font-weight:900; border:0; cursor:pointer; box-shadow:0 10px 20px var(--ring)}
.btn-green{background:#1D9A4B; color:#fff}
.btn-orange{background:#F06428; color:#fff}
.btn-lg{padding:18px 26px; border-radius:18px; font-size:18px}
.btn:hover{filter:brightness(.98)}

/* === Hero === */
.hero{background:var(--bg-soft); border-bottom:1px solid #F2E6DE}
.hero .wrap{width:min(1100px,92%); margin:0 auto; padding:54px 0 64px; text-align:center}
.badge{display:inline-block; background:#fff; border:1px solid #E6E6E6; padding:10px 14px; border-radius:999px; font-weight:900; color:#2F3C4A; box-shadow:0 10px 24px rgba(0,0,0,.04)}
.h1{font-size: clamp(28px, 6.5vw, 58px); line-height:1.25; font-weight:900; color:#1A2433; margin:18px auto 10px; max-width:16ch}
.sub{color:#6E7B8D; font-weight:800; margin:10px 0 28px}
.hero-ctas{display:flex; gap:18px; align-items:center; justify-content:center}

/* === Sections base (re-using from v1) === */
.container { width: min(1200px, 92%); margin: 0 auto; }
.section { padding: 32px 0; background: #fff; }
.section.alt { background: #f7f7f7; }
.section h2 { font-size: 24px; margin: 0 0 16px; border-inline-start: 6px solid var(--primary); padding-inline-start: 10px; }

.scroller { position: relative; }
.track { display: grid; grid-auto-flow: column; grid-auto-columns: 260px; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.card { scroll-snap-align: start; background: #fff; border-radius: 16px; border: 1px solid #eee; overflow: hidden; box-shadow: 0 6px 16px rgba(0,0,0,.05); }
.card img { width: 100%; height: 160px; object-fit: cover; display:block; }
.card .meta { padding: 10px 12px; }
.card .meta h3 { font-size: 16px; margin: 0 0 6px; color: var(--ink); }

.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; }
.person { text-align: center; }
.person .avatar { width: 110px; height: 110px; border-radius: 999px; border: 6px solid #fff; box-shadow: 0 4px 20px rgba(0,0,0,.08); object-fit: cover; margin: 0 auto 8px; background: #fafafa; }
.person .name { font-weight: 700; }
.person .role { font-size: 13px; opacity: .8; }

.partners { display: grid; grid-auto-flow: column; grid-auto-columns: 180px; gap: 18px; overflow-x: auto; padding: 10px 0; }
.partner-card { background: #fff; border: 1px solid #eee; border-radius: 14px; padding: 12px; display:flex; flex-direction:column; align-items:center; justify-content:center; }
.partner-card img { width: 100%; height: 80px; object-fit: contain; }

.contact { display: grid; gap: 8px; font-size: 15px; }
.map { border-radius: 16px; overflow: hidden; border: 1px solid #eee; height: 320px; }

/* Footer & floating WA */
footer { text-align: center; padding: 18px 10px; color: #fff; background: var(--primary-dark); }
.floating-whatsapp { position: fixed; bottom: 18px; inset-inline-end: 18px; background: #25D366; color:#fff; display:flex; align-items:center; gap:8px; padding: 12px 14px; border-radius: 999px; box-shadow: 0 8px 30px rgba(0,0,0,.2); font-weight:800; z-index: 2000; }
.floating-whatsapp svg { width: 22px; height: 22px; }

/* small screens */
@media (max-width: 960px){
  .nav{display:none}
  .header-ctas{display:none}
  .brand .ar{font-size:18px}
}

/* v3 overrides */

.header .wrap{display:flex; align-items:center; gap:18px; justify-content:space-between}
.brand{order:3}
.nav{order:2}
.header-ctas{order:1}

/* v5 typography refresh for better readability */
body { font-size: 18px; line-height: 1.75; }
.nav { font-size: 18px; }
.section p { font-size: 17px; line-height: 1.9; }
.section h2 { font-size: 30px; }
.contact { font-size: 18px; }
.contact a { font-weight: 800; }
.site-title-ar { font-size: clamp(22px, 3.3vw, 36px); }
.site-title-en { font-size: clamp(14px, 2.4vw, 18px); }
.btn { font-size: 16px; }
.btn-lg { font-size: 20px; padding: 20px 30px; }
.card .meta h3 { font-size: 18px; }
.card .meta p { font-size: 15px; line-height: 1.7; }
.person .name { font-size: 16px; }
.person .role { font-size: 14px; }
.partner-card { font-size: 15px; }
.badge { font-size: 16px; }
.h1 { font-size: clamp(30px, 6.8vw, 62px); }
.top-badge { font-size: 16px; }


/* v6: Centered, larger subtexts & comfortable reading width */
.section p { 
  text-align: center; 
  max-width: 70ch; 
  margin: 0 auto 14px; 
  font-size: 19px; 
  line-height: 2.0; 
}
/* Also center any small descriptive text inside cards if present */
.card .meta p { 
  text-align: center; 
  font-size: 16px; 
  line-height: 1.8; 
}
/* Contact block: slightly larger & centered */
.contact { font-size: 19px; text-align: center; }
.contact a { font-weight: 900; }
/* Reduce hero vertical space a bit */
.hero .wrap { padding: 36px 0 42px; }
.h1 { margin: 12px auto 8px; }
.badge { margin-top: 4px; }
.sub { margin: 8px 0 22px; }
/* Keep brand names centered under logo */
.brand .names { text-align: center; }


/* v7: About section grid + image styling */
.about-grid{ display:grid; grid-template-columns: 1.1fr 1.3fr; gap:22px; align-items:center; }
.about-media img{ width:100%; height:auto; display:block; border-radius:16px; box-shadow:0 10px 30px rgba(0,0,0,.06); }
.about-text p{ margin:0; }

@media (max-width: 960px){
  .about-grid{ grid-template-columns: 1fr; }
}

/* Increase subtext size a bit more */
.section p{ font-size: 20px; line-height: 2.05; }

/* Move contact back to right alignment (RTL start) */
.contact{ text-align: start; }
