/* ================== site.css (clean, ready to paste) ================== */
/* =============== Base =============== */
:root{
  --brand:#0ea5e9;
  --accent:#00C2A8;
  --ink:#0f1b24;
  --muted:#5a7080;
  --soft:#e9eef2;
  --container:1200px;
  --radius:16px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; font-family:Inter,system-ui,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--ink); background:#fff;
}

a{color:var(--brand); text-decoration:none}
a:hover{opacity:.9}

.container{max-width:var(--container); margin-inline:auto; padding-inline:16px}
.section{padding:72px 0}
.lead{max-width:70ch; color:#3b5566}
.muted{color:var(--muted)}
.small{font-size:.92rem}

/* =============== Buttons =============== */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:12px 18px; border:1px solid rgba(0,0,0,.1); border-radius:12px;
  text-decoration:none; color:#0f1b24; background:#fff; transition:transform .12s ease, box-shadow .12s ease;
}
.btn:hover{transform:translateY(-1px); box-shadow:0 8px 20px rgba(0,0,0,.08)}
.btn.primary{background:var(--brand); color:#fff; border-color:transparent}
.btn.primary:hover{box-shadow:0 12px 28px rgba(14,165,233,.35)}

/* =============== Hero =============== */
.hero{position:relative; min-height:clamp(520px,82vh,880px); display:grid; place-items:center; overflow:hidden}
.hero video{position:absolute; inset:0; width:100%; height:100%; object-fit:cover}
.hero .overlay{position:absolute; inset:0; background:
  linear-gradient(to bottom, rgba(0,0,0,.45), rgba(0,0,0,.25) 30%, rgba(255,255,255,0) 70%)}
.hero-inner{position:relative; z-index:2; text-align:center; color:#fff}
.hero-inner h1{font-size:clamp(32px,5vw,56px); line-height:1.1; margin:14px 0}
.hero-inner p{max-width:75ch; margin:0 auto 18px; color:#e9edf1}
.hero-actions{display:flex; gap:12px; justify-content:center}
.badge{display:inline-block; background:rgba(255,255,255,.18); border:1px solid rgba(255,255,255,.35);
  padding:8px 12px; border-radius:999px; font-weight:600; letter-spacing:.2px}

/* mouse cue */
.scroll-cue{position:absolute; bottom:18px; left:50%; transform:translateX(-50%);
  width:26px; height:44px; border:2px solid rgba(255,255,255,.7); border-radius:16px}
.scroll-cue::after{content:""; position:absolute; left:50%; top:8px; transform:translateX(-50%);
  width:6px; height:6px; border-radius:50%; background:#fff; animation:cue 1.6s infinite}
@keyframes cue{0%{opacity:1; transform:translate(-50%,0)} 100%{opacity:0; transform:translate(-50%,14px)}}

/* =============== Split / Cards =============== */
.split{display:grid; grid-template-columns:1.1fr .9fr; gap:24px; align-items:center}
.card{background:#fff; border:1px solid rgba(0,0,0,.08); border-radius:var(--radius); padding:10px}
.card img{width:100%; display:block; border-radius:12px}
.card .muted{margin:12px 6px 0}

.about-keys{display:flex; gap:8px; flex-wrap:wrap; margin-top:14px}
.about-keys .key{background:#f5f9fb; border:1px solid #e6edf3; color:#345; padding:8px 10px; border-radius:12px}

/* =============== Tabs =============== */
.tabs{display:flex; gap:10px; border-bottom:1px solid #e7eef4; margin:22px 0 16px}
.tab{background:#f8fbfd; border:1px solid #e8eef3; border-bottom:none; border-radius:12px 12px 0 0;
  padding:10px 14px; cursor:pointer; color:#334}
.tab.active{background:#fff; color:#0b1d29}

/* grid for features (اختياري) */
.grid-3{display:grid; grid-template-columns:repeat(3,1fr); gap:18px}

/* =============== WEFE Hub =============== */
.hub .hub-top{display:grid; grid-template-columns:1.1fr .9fr; gap:18px; align-items:center}
.hub .hub-top img{width:100%; border-radius:var(--radius)}
.hub-logos{display:flex; flex-wrap:wrap; gap:8px; margin-top:8px}
.logo-pill{background:#eef7fa; border:1px solid #e0edf2; padding:8px 12px; border-radius:999px; color:#244}
.hub-bottom{display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-top:16px}
.hub-box{background:#fff; border:1px solid #e6edf2; border-radius:14px; padding:14px}

/* =============== Map =============== */
.map-wrap{background:#f8fbfd; border:1px solid #e6edf2; border-radius:18px; padding:18px}
.map-hero{display:grid; grid-template-columns:360px 1fr; gap:18px}
.map-side h3{margin:0 0 6px}
.map-pills{display:flex; flex-wrap:wrap; gap:8px; margin-top:8px}
.pill{padding:8px 12px; background:#fff; border:1px solid #e2ecf2; border-radius:999px; cursor:pointer}
.pill.active{outline:2px solid rgba(0,194,168,.6)}

.map-canvas{
  position:relative; min-height:460px; border-radius:22px;
  background-image:url('../map-bg.jpg'); background-size:cover; background-position:center;
  overflow:hidden;
}
.pin{ position:absolute; width:14px; height:14px; border-radius:50%;
  transform:translate(-50%,-50%); background:var(--accent);
  box-shadow:0 0 0 8px rgba(0,194,168,.18), 0 6px 16px rgba(0,0,0,.25);
  cursor:pointer; transition:transform .25s ease, box-shadow .25s ease; }
.pin:hover{ transform:translate(-50%,-50%) scale(1.1) }
.pin.active{ box-shadow:0 0 0 12px rgba(0,194,168,.24), 0 10px 26px rgba(0,0,0,.35);
  transform:translate(-50%,-50%) scale(1.18); }
.tooltip{
  position:absolute; transform:translate(-50%,-118%); display:none; z-index:2;
  background:#fff; color:#0f1b24; border:1px solid rgba(0,0,0,.06); border-radius:14px;
  padding:10px 12px; min-width:220px; box-shadow:0 12px 28px rgba(0,0,0,.14);
}
.tooltip h5{margin:0 0 6px;font-size:15px}
.tooltip p{margin:0;font-size:14px;color:#5a7080}
.pin.show + .tooltip{display:block}

/* =============== Slider =============== */
.slider{position:relative}
.track{display:grid; grid-auto-flow:column; grid-auto-columns:minmax(280px,1fr); gap:14px; overflow:auto; scroll-snap-type:x mandatory; padding:6px 2px}
.slide{background:#fff; border:1px solid #e6edf2; border-radius:14px; overflow:hidden; scroll-snap-align:start}
.slide img{width:100%; height:180px; object-fit:cover; display:block}
.slide .info{padding:12px}
.nav-btn{position:absolute; top:50%; transform:translateY(-50%); width:38px; height:38px; border:1px solid #e6edf2; background:#fff; border-radius:10px; cursor:pointer}
.nav-btn.prev{left:-6px}
.nav-btn.next{right:-6px}

/* =============== Stats =============== */
.stats{display:grid; grid-template-columns:repeat(4,1fr); gap:12px}
.stat{background:#fff; border:1px solid #e6edf2; border-radius:14px; padding:14px; text-align:center}
.stat .num{font-weight:800; font-size:clamp(26px,4vw,42px); color:#0b1b24}

/* =============== Footer =============== */
.footer{background:#08131a; color:#dbe6ee; padding:40px 0 22px; margin-top:32px}
.footer .grid{display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:18px}
.footer a{color:#e2f0f9}
.footer .brand{display:flex; align-items:center; gap:10px; color:#fff; text-decoration:none}
.footer .brand img{width:42px; height:auto; display:block}
.footer h4{margin:0 0 10px}
.footer ul{list-style:none; margin:0; padding:0; display:grid; gap:8px}
.copy{margin-top:16px; text-align:center; color:#9db2c2}

/* =============== Responsive =============== */
@media (max-width:1200px){
  .split{grid-template-columns:1fr}
  .hub .hub-top{grid-template-columns:1fr}
  .hub-bottom{grid-template-columns:repeat(2,1fr)}
  .map-hero{grid-template-columns:1fr}
  .grid-3{grid-template-columns:repeat(2,1fr)}
  .stats{grid-template-columns:repeat(2,1fr)}
  .footer .grid{grid-template-columns:1fr 1fr}
}
@media (max-width:700px){
  .grid-3{grid-template-columns:1fr}
  .hub-bottom{grid-template-columns:1fr}
  .stats{grid-template-columns:1fr}
  .hero-inner h1{font-size:clamp(28px,8vw,42px)}
  .hero-actions{flex-direction:column}
}

/* ========= Full-bleed sections (no side gutters) ========= */
body{overflow-x:hidden;}
.home-section,
.home-hero,.home-avm,.home-focus,.home-map,.home-news,
.section,.page-hero,.site-footer,.footer,footer{
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);
  width:100vw;
  padding-left:0; padding-right:0;
}
.home-section > .container,
.section > .container,
.site-footer > .container,
.footer > .container,
footer > .container{
  max-width:none;
  padding-inline:12px;
}

/* ========= Header mega menus (single, clean version) ========= */
#inw-header .inwhd-bar-wrap{position:relative;}
#inw-header .inwhd-has{position:static;} /* position relative to bar */

#inw-header .inwhd-mega{
  position:absolute;
  left:50%; top:calc(100% + 12px); transform:translateX(-50%);
  width:min(1200px,96vw);
  max-height:420px;                /* rectangle feel */
  padding:16px 18px;
  display:grid; gap:16px;
  grid-template-columns:420px minmax(420px,1fr) 360px; /* left / flexible middle / right */
  align-items:start; align-content:start;
  box-sizing:border-box;
  border-radius:16px;
  overflow-y:auto; overflow-x:hidden; overscroll-behavior:contain;
}
#inw-header .inwhd-mega > *{min-width:0;} /* prevent column overflow */

/* Left column media l */
#inw-header .inwhd-media img{height:188px;}

/* Middle tiles (What we do) */
#inw-header .inwhd-tiles{
  display:grid;
  grid-template-columns:repeat(3,minmax(200px,1fr));
  gap:10px; min-width:0;
}
#inw-header .inwhd-tile{min-width:0;}
#inw-header .inwhd-tile img{height:160px;}

/* Right column text gets natural height; container scrolls if needed */
#inw-header .inwhd-links{padding-right:6px;}

/* Keep last dropdown centered as well */
#inw-header .inwhd-top > li:last-child .inwhd-mega{
  left:50% !important; right:auto !important; transform:translateX(-50%) !important;
}

/* Special layout for the first (Who we are) */
#inw-header .inwhd-top > li:first-child .inwhd-mega{
  grid-template-columns:520px 1fr 360px;
}
#inw-header .inwhd-top > li:first-child .inwhd-media img{height:210px;}

/* Special for second (What we do) */
#inw-header .inwhd-top > li:nth-child(2) .inwhd-mega{
  grid-template-columns:420px 1fr 360px;
}
#inw-header .inwhd-top > li:nth-child(2) .inwhd-tiles{
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
}
#inw-header .inwhd-top > li:nth-child(2) .inwhd-tile img{height:168px;}

/* Medium breakpoint: 2 columns, right column drops below */
@media (max-width:1150px){
  #inw-header .inwhd-mega{
    grid-template-columns:380px 1fr;
    max-height:520px;
  }
  #inw-header .inwhd-links{grid-column:1 / -1;}
}

/* Mobile: stacked, full width, no fixed height */
@media (max-width:1200px){
  #inw-header .inwhd-mega{
    position:static; transform:none; width:100%;
    max-height:none; grid-template-columns:1fr; gap:10px;
    overflow:visible;
  }
  #inw-header .inwhd-tiles{grid-template-columns:1fr;}
}

/* === Compact mega menu (no inner scroll) === */
#inw-header .inwhd-mega{
  /* اضبط ارتفاع البانيل من هنا */
  --megaH: 500px;

  width:min(1140px, 96vw);
  max-height:var(--megaH);
  padding:12px 14px;
  gap:12px;
  border-radius:14px;

  /* قلّل عرض الأعمدة ليتناسب كل المحتوى */
  grid-template-columns: 340px minmax(360px,1fr) 300px;

  /* نلغي أي Scroll داخلي ونضمن عدم القص */
  overflow: hidden;
  transform:translateX(-50%) !important; /* تثبيت التمركز */
}

/* خط أصغر وكثافة أعلى داخل البانيل */
#inw-header .inwhd-mega, 
#inw-header .inwhd-mega *{ line-height:1.35; }
#inw-header .inwhd-toplink{ font-size:15px; }

/* العمود الأيسر (صورة + بليرب) */
#inw-header .inwhd-media img{ height:150px; border-radius:10px; }
#inw-header .inwhd-blurb h4{ font-size:18px; margin:6px 0 4px; }
#inw-header .inwhd-blurb p{ 
  font-size:13px; margin:0 0 6px;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
#inw-header .inwhd-overview{ font-size:13px; }

/* العمود الأوسط (تايلات) */
#inw-header .inwhd-tiles{ 
  display:grid; 
  grid-template-columns:repeat(3, minmax(180px,1fr)); 
  gap:8px; 
}
#inw-header .inwhd-tile{ border-radius:10px; }
#inw-header .inwhd-tile img{ height:132px; }
#inw-header .inwhd-tile .cap{ padding:8px 10px; }
#inw-header .inwhd-tile h6{ font-size:14px; }
#inw-header .inwhd-tile p{ 
  font-size:12px; 
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; 
}

/* العمود الأيمن (ملاحظات وروابط) */
#inw-header .inwhd-links h5{ font-size:13px; margin:0 0 6px; }
#inw-header .inwhd-links a{ font-size:13px; }
#inw-header .inwhd-note{ margin:6px 0 8px; }
#inw-header .inwhd-note strong{ font-size:14px; }
#inw-header .inwhd-note p{ 
  font-size:12.5px; margin:2px 0 4px;
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;
}

/* مستندات مصغّرة */
#inw-header .inwhd-doc img{ width:52px; height:52px; }

/* تخصيص السبولِت للوحة "Who we are" */
#inw-header .inwhd-top > li:first-child .inwhd-mega{
  grid-template-columns: 420px 1fr 300px;
}
#inw-header .inwhd-top > li:first-child .inwhd-media img{ height:150px; }

/* اللوحة تظل متمركزة حتى لو كانت آخر عنصر */
#inw-header .inwhd-top > li:last-child .inwhd-mega{
  left:50% !important; right:auto !important; transform:translateX(-50%) !important;
}

/* نقطة تحوّل متوسطة: قلّل الأعمدة شوي مع الحفاظ s على عدم وجود Scroll */
@media (max-width:1150px){
  #inw-header .inwhd-mega{
    grid-template-columns: 300px 1fr 280px;
    --megaH: 500px;
  }
}

/* موبايل: ترتيب مكدّس طبيعي (قواعدك الحالية للموبايل تظل شغالة) */
@media (max-width:1200px){
  #inw-header .inwhd-mega{
    position:static; transform:none !important; width:100%;
    max-height:none; grid-template-columns:1fr; gap:10px; overflow:visible;
  }
  #inw-header .inwhd-tiles{ grid-template-columns:1fr; }
}

