:root{
  --bg:#f6f7f9;
  --bg2:#f1f3f6;
  --card:#ffffff;
  --text:#101828;
  --muted:#5b667a;

  --accent:#2f6fa8;
  --accent2:#1e4f80;

  --border: rgba(16,24,40,.10);
  --shadow: 0 14px 40px rgba(16,24,40,.10);

  --radius: 18px;
  --radius2: 26px;

  --container: 1120px;
  --headerH: 78px;

  --font-ar: "Tajawal", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  --font-en: "Inter", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
}

/* Reset */
*{ box-sizing: border-box; }
html,body{ margin:0; padding:0; }
body{
  background: radial-gradient(1200px 600px at 20% 0%, #ffffff 0%, var(--bg) 55%, var(--bg2) 100%);
  color: var(--text);
  line-height: 1.7;
  font-family: var(--font-ar);
  overflow-x: hidden;
}
html[data-lang="en"] body{ font-family: var(--font-en); }

a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display:block; }

.container{
  width: min(var(--container), calc(100% - 34px));
  margin-inline: auto;
}

/* Language show/hide */
.lang.en{ display:none; }
html[data-lang="en"] .lang.en{ display:inline; }
html[data-lang="en"] .lang.ar{ display:none; }

/* Anchor for fixed header */
.anchor{ display:block; height:1px; scroll-margin-top: calc(var(--headerH) + 14px); }

/* Header */
.header{
  position: sticky;
  top:0;
  z-index: 60;
  backdrop-filter: blur(12px);
  background: rgba(246,247,249,.75);
  border-bottom: 1px solid var(--border);
}
.header__inner{
  height: var(--headerH);
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 18px;
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 220px;
}
.brand__logo{
  width: 55px;
  height: 55px;
  
}
.brand__name{
  font-weight: 800;
  letter-spacing: .2px;
  font-size: 16px;
  line-height: 1.1;
}
.brand__tag{
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  margin-top: 2px;
}

.nav{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(16,24,40,.08);
}
.nav__link{
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  color: #344054;
  transition: transform .22s ease, background .22s ease, color .22s ease;
}
.nav__link:hover{
  background: rgba(47,111,168,.10);
  color: var(--accent2);
  transform: translateY(-1px);
}
.nav__link--pill{
  background: rgba(47,111,168,.10);
  border: 1px solid rgba(47,111,168,.18);
}

.header__actions{
  display:flex;
  align-items:center;
  gap: 10px;
}
.langBtn{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(16,24,40,.10);
  background: rgba(255,255,255,.82);
  cursor: pointer;
  font-weight: 800;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
  box-shadow: 0 10px 18px rgba(16,24,40,.08);
}
.langBtn:hover{
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(16,24,40,.10);
  background: rgba(255,255,255,.92);
}
.langIcon{ opacity:.9; }

/* Section base */
.section{
  padding: 68px 0;
  position: relative;
}
.section--alt{
  background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.0));
}
.section__head{
  margin-bottom: 22px;
}
.section__title{
  font-size: clamp(24px, 3.2vw, 40px);
  margin: 0;
  letter-spacing: .2px;
  line-height: 1.2;
}
.section__lead{
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 600;
}

/* HERO */
.hero{
  padding-top: 44px;
  padding-bottom: 76px;
}
.hero__bg{
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(680px 360px at 18% 18%, rgba(47,111,168,.14), transparent 60%),
    radial-gradient(680px 360px at 88% 30%, rgba(47,111,168,.10), transparent 64%);
  opacity: .9;
}
.hero__grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 22px;
  align-items: center;
}
.hero__title{
  font-size: clamp(28px, 4.2vw, 54px);
  margin: 0 0 12px 0;
  letter-spacing: .2px;
}
.hero__subtitle{
  margin: 0 0 10px;
  color: #3b455a;
  font-weight: 700;
  max-width: 56ch;
}
.hero__hint{
  margin: 0 0 18px;
  color: var(--muted);
  font-weight: 600;
}
.hero__cta{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, color .22s ease;
}
.btn--primary{
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  color: #fff;
  box-shadow: 0 18px 40px rgba(47,111,168,.22);
}
.btn--primary:hover{ transform: translateY(-1px); box-shadow: 0 22px 52px rgba(47,111,168,.26); }
.btn--ghost{
  background: rgba(255,255,255,.80);
  border-color: rgba(16,24,40,.12);
  color: #1f2a3d;
}
.btn--ghost:hover{ transform: translateY(-1px); background: rgba(255,255,255,.92); }
.btn__icon{ opacity:.95; }

.hero__stats{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
  margin-top: 14px;
}
.stat{
  background: rgba(255,255,255,.76);
  border: 1px solid rgba(16,24,40,.10);
  border-radius: var(--radius);
  padding: 12px 12px;
  display:flex;
  gap: 10px;
  align-items:center;
  box-shadow: 0 14px 28px rgba(16,24,40,.08);
}
.stat__icon{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  background: rgba(47,111,168,.10);
  border: 1px solid rgba(47,111,168,.18);
  font-size: 18px;
}
.stat__title{ font-weight: 900; line-height: 1.2; }
.stat__desc{ color: var(--muted); font-weight: 700; font-size: 12px; margin-top: 2px; }

/* ✅ صورة الهيرو من 1.jpg */
.hero__media{ display:flex; align-items: stretch; justify-content: stretch; }
.heroMediaCard{
  width:100%;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(16,24,40,.10);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  overflow:hidden;
  position: relative;
}
.heroMediaCard__img{
  height: 360px;
  background:
    radial-gradient(180px 180px at 18% 20%, rgba(47,111,168,.22), transparent 100%),
    linear-gradient(180deg, rgba(255,255,255,.0), rgba(255,255,255,.32)),
    url("./1.jpg");
  background-size: cover;
  background-position: center;
}
.heroMediaCard__bar{
  height: 8px;
  background: linear-gradient(90deg, rgba(47,111,168,.10), rgba(47,111,168,.26), rgba(47,111,168,.10));
}
.heroMediaCard__chips{
  display:flex;
  gap: 8px;
  padding: 14px;
  flex-wrap: wrap;
}
.chip{
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 800;
  background: rgba(47,111,168,.10);
  border: 1px solid rgba(47,111,168,.16);
  color: #1f2a3d;
}

/* ABOUT */
.about__grid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 18px;
  align-items: stretch;
}
.panel{
  border-radius: var(--radius2);
  border: 1px solid rgba(16,24,40,.10);
  background: rgba(255,255,255,.72);
  box-shadow: var(--shadow);
  position: relative;
}
.panel--glass{ padding: 18px 18px; }
.panel__p{
  margin: 0;
  font-weight: 700;
  color: #3b455a;
}

.pill-list{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.pill{
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(16,24,40,.10);
  color: #273248;
  font-weight: 800;
}

/* ✅ صورة من نحن من 2.jpg */
.panel--image{ overflow:hidden; min-height: 320px; }
.aboutMedia{
  position:absolute;
  inset:0;
  background:
    radial-gradient(220px 220px at 70% 20%, rgba(47,111,168,.18), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.22)),
    url("./2.jpg");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.panel__badge{
  position:absolute;
  bottom: 16px;
  inset-inline: 16px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(47,111,168,.18);
  background: rgba(255,255,255,.78);
  font-weight: 900;
  text-align:center;
  color: #1f2a3d;
}

/* CARDS */
.cards{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px;
}
.card{
  padding: 16px;
  border-radius: var(--radius2);
  border: 1px solid rgba(16,24,40,.10);
  background: rgba(255,255,255,.78);
  box-shadow: 0 18px 34px rgba(16,24,40,.08);
  transition: transform .22s ease, box-shadow .22s ease;
}
.card:hover{
  transform: translateY(-3px);
  box-shadow: 0 26px 46px rgba(16,24,40,.10);
}
.card--accent{
  background: linear-gradient(180deg, rgba(47,111,168,.14), rgba(255,255,255,.78));
  border-color: rgba(47,111,168,.18);
}
.card__icon{
  width: 44px; height: 44px;
  border-radius: 16px;
  display:grid;
  place-items:center;
  background: rgba(47,111,168,.10);
  border: 1px solid rgba(47,111,168,.16);
  margin-bottom: 10px;
  font-size: 18px;
}
.card__title{
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 900;
}
.card__p{
  margin: 0;
  color: var(--muted);
  font-weight: 650;
}

/* IMPORT */
.import__grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
  align-items: center;
}
.list{
  margin: 0;
  padding: 0;
  list-style:none;
  display:grid;
  gap: 10px;
}
.list--check li{
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(16,24,40,.10);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 12px 22px rgba(16,24,40,.06);
  font-weight: 800;
  display:flex;
  gap: 10px;
  align-items:center;
}
.list--check li::before{
  content:"✓";
  width: 30px;
  height: 30px;
  border-radius: 12px;
  display:grid;
  place-items:center;
  background: rgba(47,111,168,.10);
  border: 1px solid rgba(47,111,168,.16);
  color: var(--accent2);
  font-weight: 900;
  flex: 0 0 auto;
}

/* ✅ شبكة صور ماذا نستورد: 3/4/5 */
.photoGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius2);
  border: 1px solid rgba(16,24,40,.10);
  background: rgba(255,255,255,.68);
  box-shadow: var(--shadow);
}
.photoGrid__item{
  border-radius: 22px;
  border: 1px solid rgba(47,111,168,.14);
  overflow:hidden;
  min-height: 160px;
  background-size: cover;
  background-position: center;
  filter: saturate(1.02) contrast(1.02);
}
.photoGrid__item--a{
  grid-column: 1/-1;
  min-height: 240px;
  background-image:
    radial-gradient(180px 180px at 20% 25%, rgba(47,111,168,.18), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,.0), rgba(255,255,255,.32)),
    url("./3.jpg");
}
.photoGrid__item--b{
  background-image:
    radial-gradient(160px 160px at 80% 20%, rgba(47,111,168,.16), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,.0), rgba(255,255,255,.30)),
    url("./4.jpeg");
}
.photoGrid__item--c{
  background-image:
    radial-gradient(160px 160px at 20% 20%, rgba(47,111,168,.16), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,.0), rgba(255,255,255,.30)),
    url("./5.jpg");
}

/* WHY */
.cards--why{ grid-template-columns: repeat(4, minmax(0,1fr)); }

/* Legal + Contact side by side */
.dual__grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}
/* Arabic: contact RIGHT, legal LEFT */
html[data-lang="ar"] .dual__grid{ grid-template-areas: "legal contact"; }
html[data-lang="ar"] .dual__legal{ grid-area: legal; }
html[data-lang="ar"] .dual__contact{ grid-area: contact; }
/* English: reverse */
html[data-lang="en"] .dual__grid{ grid-template-areas: "contact legal"; }
html[data-lang="en"] .dual__legal{ grid-area: legal; }
html[data-lang="en"] .dual__contact{ grid-area: contact; }

.panel__title{
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 900;
}
.infoList{ display:grid; gap: 10px; }
.infoRow{
  display:flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(16,24,40,.10);
  background: rgba(255,255,255,.74);
}
.infoRow__label{ color: var(--muted); font-weight: 900; }
.infoRow__value{ font-weight: 900; color: #1f2a3d; }

.contactList{ display:grid; gap: 12px; }
.contactRow{
  display:flex;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(16,24,40,.10);
  background: rgba(255,255,255,.74);
}
.contactRow__icon{
  width: 44px; height: 44px;
  border-radius: 16px;
  display:grid;
  place-items:center;
  background: rgba(47,111,168,.10);
  border: 1px solid rgba(47,111,168,.16);
  font-size: 18px;
  flex: 0 0 auto;
}
.contactRow__label{ color: var(--muted); font-weight: 900; font-size: 12px; }
.contactRow__value{ font-weight: 900; color:#1f2a3d; }
.contactRow__value:hover{ color: var(--accent2); }

.contactNote{ margin: 0; color: var(--muted); font-weight: 650; }
.contactActions{ display:flex; justify-content:flex-end; }

/* Footer */
.footer{
  padding: 28px 0;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,.55);
}
.footer__inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 16px;
}
.footer__name{ font-weight: 900; }
.footer__copy{ color: var(--muted); font-weight: 650; font-size: 13px; margin-top: 2px; }
.footer__link{
  font-weight: 900;
  color: var(--accent2);
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(47,111,168,.18);
  background: rgba(47,111,168,.08);
}

/* Scroll to top */
.toTop{
  position: fixed;
  bottom: 18px;
  inset-inline-end: 18px;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(47,111,168,.20);
  background: rgba(47,111,168,.12);
  color: var(--accent2);
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 18px 38px rgba(16,24,40,.14);
  transform: translateY(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease, background .22s ease;
}
.toTop:hover{ background: rgba(47,111,168,.16); }
.toTop--show{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Reveal animation */
.reveal{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-in{
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 980px){
  .hero__grid{ grid-template-columns: 1fr; }
  .heroMediaCard__img{ height: 300px; }
  .hero__stats{ grid-template-columns: 1fr; }
  .about__grid{ grid-template-columns: 1fr; }
  .import__grid{ grid-template-columns: 1fr; }

  .cards{ grid-template-columns: 1fr 1fr; }
  .cards--why{ grid-template-columns: 1fr 1fr; }

  .dual__grid{
    grid-template-columns: 1fr;
    grid-template-areas: "contact" "legal" !important;
  }

  .nav{ display:none; }
}

@media (max-width: 560px){
  .cards{ grid-template-columns: 1fr; }
  .cards--why{ grid-template-columns: 1fr; }
  .footer__inner{ flex-direction: column; align-items:flex-start; }
}
