:root{
  --bg:#f6f7fb;
  --card:#ffffff;
  --muted:#5b6478;
  --text:#0f172a;
  --line:rgba(15,23,42,.12);
  --accent:#16a34a;
  --accent2:#2563eb;
  --warn:#f59e0b;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial; color:var(--text);
  background:linear-gradient(180deg,#f6f7fb 0%, #ffffff 55%, #f6f7fb 100%);}
a{color:inherit}
img{max-width:100%;display:block}
.wrap{max-width:1120px;margin:0 auto;padding:0 18px}
.topbar{position:sticky;top:0;z-index:10;background:rgba(246,247,251,.85);backdrop-filter: blur(10px);border-bottom:1px solid var(--line)}
.nav{display:flex;align-items:center;justify-content:space-between;padding:12px 0;gap:12px}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;min-width:260px}
.logo{width:56px;height:56px;border-radius:12px;background:
  radial-gradient(circle at 30% 30%, #fff 0 20%, transparent 21%),
  linear-gradient(135deg,var(--accent),var(--accent2)); box-shadow:0 10px 30px rgba(22,163,74,.20)}
.brand strong{font-size:20px;letter-spacing:.2px; display:block}
.small{font-size:13px;color:var(--muted)}
.menu{display:flex;gap:14px;flex-wrap:wrap;align-items:center;justify-content:flex-end}
.menu a{opacity:.88;text-decoration:none;font-size:14px}
.menu a:hover{opacity:1}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:10px 14px;border-radius:12px;border:1px solid var(--line);
  background:rgba(15,23,42,.05); text-decoration:none; font-weight:600; color:var(--text)}
.btn.primary{background:linear-gradient(135deg,var(--accent),var(--accent2)); border-color:transparent}
.btn.primary:hover{filter:brightness(1.06)}
.btn:hover{transform: translateY(-2px); transition: transform .15s ease;}
.btn:hover{background:rgba(37,99,235,.08)}
.hero{padding:18px 0 18px}
.grid{display:grid;gap:18px}
.card video { width: 100%; height: 520px; object-fit: cover; }
.heroGrid{grid-template-columns: 1.2fr .8fr; align-items:stretch}
@media (max-width:900px){.heroGrid{grid-template-columns:1fr}}
.card{background:var(--card);
  border:1px solid var(--line); border-radius:18px; padding:18px;
  box-shadow:0 14px 40px rgba(15,23,42,.08)}
h1{font-size:40px;line-height:1.08;margin:0 0 12px}
@media (max-width:520px){h1{font-size:32px}}
p{color:var(--muted);line-height:1.55;margin:0 0 14px}
.kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:10px}
@media (max-width:520px){.kpis{grid-template-columns:1fr}}
.kpi{padding:12px;border:1px solid var(--line);border-radius:16px;background:rgba(15,23,42,.03)}
.kpi b{display:block;font-size:16px}
.kpi span{font-size:12px;color:var(--muted)}
.tagrow{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.tag{font-size:12px;padding:6px 10px;border-radius:999px;border:1px solid var(--line);background:rgba(15,23,42,.03);color:var(--muted)}
.section{padding:28px 0}
.section h2{margin:0 0 8px;font-size:24px}
.cols3{grid-template-columns:repeat(3,1fr)}
.cols2{grid-template-columns:repeat(2,1fr)}
@media (max-width:900px){.cols3,.cols2{grid-template-columns:1fr}}
.item h3{margin:0 0 6px;font-size:16px}
.item p{margin:0}
.icon{width:36px;height:36px;border-radius:12px;background:rgba(37,99,235,.18);
  border:1px solid rgba(37,99,235,.35); display:flex;align-items:center;justify-content:center;font-weight:800}
.icon.green{background:rgba(22,163,74,.18); border-color:rgba(22,163,74,.35)}
.icon.warn{background:rgba(245,158,11,.15); border-color:rgba(245,158,11,.35)}
.row{display:flex;gap:12px}
.row .text{flex:1}
.notice{border-left:3px solid rgba(22,163,74,.8); padding:10px 12px; border-radius:14px; background:rgba(22,163,74,.08); border:1px solid rgba(22,163,74,.18)}
.heroMedia{
  border-radius:18px; overflow:hidden; border:1px solid var(--line);
  background:rgba(15,23,42,.03);
}
.heroMedia img{width:100%; height:auto}

/* About page founders: keep the three portrait images aligned */
#founders .heroMedia{height:390px}
#founders .heroMedia img{height:100%; object-fit:cover}
.badges{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
.pill{display:inline-flex;gap:10px;align-items:center;padding:10px 12px;border-radius:14px;border:1px solid var(--line);background:rgba(15,23,42,.03)}
.pill b{color:var(--text)}
ul{margin:0;padding-left:18px;color:var(--muted)}
li{margin:6px 0}	
.tableWrap{overflow:auto;border-radius:16px;border:1px solid var(--line);background:rgba(15,23,42,.03)}

/* Tables: keep them readable on mobile without forcing horizontal scroll */
table{width:100%;border-collapse:collapse;table-layout:auto}
th,td{padding:10px 12px;border-bottom:1px solid var(--line);text-align:left;word-break:break-word}
th{color:var(--text);font-size:13px;letter-spacing:.2px}
td{color:var(--muted);font-size:13px}

@media (max-width:520px){
  th,td{padding:8px 10px}
  th{font-size:12px}
  td{font-size:12px}
}
.gallery{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
@media (max-width:900px){.gallery{grid-template-columns:repeat(2,1fr)}}
figure{margin:0}
.thumb{
  aspect-ratio: 4/3;
  border-radius:16px;
  overflow:hidden;
  border:1px solid var(--line);
  background:rgba(15,23,42,.03);
  cursor:pointer;
}
.thumb img{width:100%;height:100%;object-fit:cover;transform:scale(1.02);transition:transform .25s ease, opacity .25s ease}
.thumb:hover img{transform:scale(1.06)}
.thumb img.fading{opacity:.25}
figcaption{margin-top:6px;font-size:12px;color:var(--muted)}
.footer{padding:26px 0 40px;border-top:1px solid var(--line);margin-top:18px}
.split{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;align-items:center}
/* lightbox */
#lightbox{
  position:fixed; inset:0; background:rgba(0,0,0,.75);
  display:none; align-items:center; justify-content:center; padding:18px; z-index:50;
}
#lightbox.open{display:flex}
#lightbox .inner{
  max-width:min(1100px, 96vw);
  max-height:90vh;
  border-radius:18px;
  border:1px solid rgba(15,23,42,.18);
  overflow:hidden;
  background:var(--card);
  box-shadow:0 20px 80px rgba(15,23,42,.22)
}

/* Image placeholders for pages where images will be added later */
.imagePlaceholder{
  margin-top:14px;
  min-height:190px;
  border-radius:16px;
  border:1px dashed rgba(15,23,42,.25);
  background:rgba(15,23,42,.02);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:14px;
  text-align:center;
  color:var(--muted);
  font-size:13px;
}

/* Facility cards: keep the image/placeholder aligned to the bottom for a consistent grid */
.facilityCard{display:flex;flex-direction:column;min-height:100%}
.facilityCard .imagePlaceholder{margin-top:auto; width:100%}

/* Facility page: placeholder images inside cards */
.facilityCard .facilityMedia{margin-top:auto; width:100%}
.facilityMedia img{width:100%; height:190px; object-fit:cover; display:block}
#lightbox .stage{position:relative;display:flex;align-items:center;justify-content:center}
#lightbox .stage img{max-width:100%;max-height:90vh;display:block}
#lightbox .nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:44px;
  height:44px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.18);
  background:rgba(15,23,42,.06);
  color:var(--text);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:24px;
  line-height:1;
  padding:0;
  box-shadow:0 12px 35px rgba(0,0,0,.35)
}
#lightbox .nav:hover{background:rgba(15,23,42,.10)}
#lightbox .nav.prev{left:12px}
#lightbox .nav.next{right:12px}
#lightbox .hide{display:none !important}
#lightbox .lb-left{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
#lightbox .lb-count{opacity:.9}
#lightbox .lb-actions{display:flex;gap:8px;align-items:center}
#lightbox .bar{
  display:flex;justify-content:space-between;align-items:center;
  padding:10px 12px;border-bottom:1px solid rgba(15,23,42,.12);color:var(--muted);font-size:13px
}
#lightbox button{
  border:1px solid rgba(15,23,42,.18); background:rgba(15,23,42,.06);
  color:var(--text); border-radius:12px; padding:8px 10px; cursor:pointer; font-weight:700
}
#lightbox button:hover{background:rgba(15,23,42,.10)}

.logo{
  background:none !important;
  object-fit:contain;
  padding:4px;
}


/* Multi-page enhancements */
.menu a.active{opacity:1; position:relative;}
.menu a{
  position:relative;
}

.menu a.active::after,
.menu a{
  position:relative;
}

/* Base underline (hidden) */
.menu a:not(.btn)::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-8px;
  height:2px;
  background:var(--accent2);
  border-radius:2px;
  opacity:0;
}

/* Show on hover */
.menu a:not(.btn):hover::after{
  opacity:1;
}

/* Show active ONLY when menu is not hovered */
.menu:not(:hover) a:not(.btn).active::after{
  opacity:1;
}
.cardlink{text-decoration:none; display:block;}
.cardlink:hover{transform: translateY(-2px); transition: transform .15s ease;}
.cardlink:hover{background:rgba(22,163,74,.08)}





/* Utility */
.muted{color:var(--muted)}

/* Missing grid helpers */
.grid-3{display:grid;gap:18px;grid-template-columns:repeat(3,1fr)}
.grid-4{display:grid;gap:18px;grid-template-columns:repeat(4,1fr)}
@media (max-width:900px){.grid-4{grid-template-columns:repeat(2,1fr)}}
@media (max-width:520px){.grid-4{grid-template-columns:1fr}}
@media (max-width:900px){.grid-3{grid-template-columns:repeat(2,1fr)}}
@media (max-width:520px){.grid-3{grid-template-columns:1fr}}

/* Mobile-friendly navigation */
.nav{position:relative}
.navToggle{
  display:none;
  align-items:center;
  justify-content:center;
  width:42px;height:42px;
  border-radius:12px;
  border:1px solid var(--line);
  background:rgba(15,23,42,.05);
  color:var(--text);
  cursor:pointer;
}
.navToggle:hover{background:rgba(15,23,42,.08)}
.navToggle svg{width:22px;height:22px}

@media (max-width:900px){
  .wrap{padding:0 14px}
  .brand{min-width:0}
  .brand strong{font-size:16px}
  .logo{width:44px;height:44px;border-radius:10px}
  .navToggle{display:inline-flex}
  .menu{
    display:none;
    position:absolute;
    left:0; right:0;
    top:100%;
    margin-top:10px;
    padding:12px;
    border-radius:16px;
    border:1px solid var(--line);
    background:rgba(246,247,251,.98);
    backdrop-filter: blur(10px);
    flex-direction:column;
    align-items:stretch;
    gap:10px;
  }
  .menu.open{display:flex}
  .menu a{font-size:15px;padding:8px 10px;border-radius:12px}
  .menu a.btn{justify-content:center}
}

/* Media sizing */
.card video{height:clamp(220px, 122vw, 500px)}

.logo-slider {
  padding: 20px 0;
}

.logo-slider__title {
  text-align: center;
  font-weight: 700;
  margin-bottom: 30px;
}

.logo-slider__track-wrap {
  overflow: hidden;
  position: relative;

  /* soft fade edges */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

.logo-slider__track {
  display: flex;
  align-items: center;
  gap: 60px;
  width: max-content;
  animation: logo-scroll 25s linear infinite;
}

.logo-slider__item {
  flex: 0 0 auto;
}

.logo-slider__item img {
  height: 60px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
}

@keyframes logo-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* pause on hover */
.logo-slider__track-wrap:hover .logo-slider__track {
  animation-play-state: paused;
}

/* Arabic (RTL) support */
html[dir="rtl"] body{direction:rtl}

/* Keep the client logo slider behavior identical in EN/AR */
html[dir="rtl"] .logo-slider__track-wrap,
html[dir="rtl"] .logo-slider__track{direction:ltr}



/* Solutions card image alignment */
.card.item{display:flex}
.card.item .row{flex:1}
.card.item .text{display:flex;flex-direction:column;min-height:100%}
.card.item .text p{margin:0 0 12px}

/* Contact page: keep details and map side-by-side INSIDE the same card */
.contactFlex{display:flex;gap:18px;align-items:stretch}
.contactLeft,.contactRight{flex:1;display:flex;flex-direction:column;min-width:0}
.contactFindUs{margin:0 0 10px;font-size:16px}
.contactMap{flex:1;overflow:hidden;border-radius:14px;border:1px solid var(--line);background:rgba(15,23,42,.03)}
.contactMap iframe{width:100%;height:100%;border:0;display:block}

/* On small screens, stack map under text */
@media (max-width:768px){
  .contactFlex{flex-direction:column}
  .contactMap{min-height:240px}
}
.sol-thumb-wrap{margin-top:auto;padding-top:14px}
.sol-thumb-wrap .thumb{width:100%}


/* --- Explore section: force 4 cards in one row on desktop --- */
#explore .grid-3{grid-template-columns:repeat(4,1fr)}
@media (max-width:900px){#explore .grid-3{grid-template-columns:repeat(2,1fr)}}
@media (max-width:520px){#explore .grid-3{grid-template-columns:1fr}}



