/* style.css */
:root{
  --red:#E53935;
  --red-2:#FF4D3D;
  --blue:#0E3A66;
  --blue-2:#0A2B4C;
  --ink:#0B1220;
  --muted:#5E6B7A;
  --bg:#0B1220;
  --card:rgba(255,255,255,.06);
  --stroke:rgba(255,255,255,.14);
  --soft:rgba(255,255,255,.08);
  --white:#fff;
  --shadow: 0 18px 55px rgba(0,0,0,.35);
  --radius: 18px;
  --radius2: 26px;
  --container: 1120px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:"Cairo", system-ui, -apple-system, Segoe UI, Tahoma, Arial, sans-serif;
  color:var(--white);
  background:
    radial-gradient(1200px 800px at 15% 15%, rgba(229,57,53,.25), transparent 55%),
    radial-gradient(1100px 700px at 85% 35%, rgba(14,58,102,.35), transparent 55%),
    linear-gradient(180deg, #061023, #070C18);
  overflow-x:hidden;
}

/* مساعد */
.container{width:min(var(--container), calc(100% - 40px)); margin-inline:auto}
a{color:inherit; text-decoration:none}
img{max-width:100%; display:block}
.sr-only{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0
}

/* زخرفة خلفية */
.bg-grid{
  position:fixed; inset:0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity:.08;
  pointer-events:none;
  z-index:-3;
}
.bg-orbs{position:fixed; inset:0; pointer-events:none; z-index:-2}
.orb{
  position:absolute; width:520px; height:520px; border-radius:999px;
  filter: blur(40px);
  opacity:.35;
  transform: translate3d(0,0,0);
  animation: floaty 9s ease-in-out infinite;
}
.o1{top:-120px; right:-140px; background: radial-gradient(circle, rgba(229,57,53,.75), transparent 65%); animation-duration:11s}
.o2{bottom:-180px; left:-180px; background: radial-gradient(circle, rgba(14,58,102,.85), transparent 65%); animation-duration:13s}
.o3{top:35%; left:55%; width:420px; height:420px; background: radial-gradient(circle, rgba(255,255,255,.18), transparent 60%); opacity:.18; animation-duration:15s}
@keyframes floaty{
  0%,100%{transform: translateY(0) translateX(0) scale(1)}
  50%{transform: translateY(-22px) translateX(12px) scale(1.02)}
}

/* Topbar */
.topbar{
  background: linear-gradient(90deg, rgba(229,57,53,.18), rgba(14,58,102,.18));
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.topbar__inner{display:flex; gap:18px; justify-content:space-between; align-items:center; padding:10px 0; flex-wrap:wrap}
.topbar__item{display:flex; align-items:center; gap:10px; font-size:14px; color:rgba(255,255,255,.92)}
.dot{
  width:10px; height:10px; border-radius:999px;
  background: radial-gradient(circle, var(--red), rgba(229,57,53,.15));
  box-shadow: 0 0 0 5px rgba(229,57,53,.10);
}

/* Header */
.header{
  position:sticky; top:0; z-index:1000;
  backdrop-filter: blur(14px);
  background: rgba(6,10,22,.55);
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.header__inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
  gap:16px;
}
.brand{display:flex; align-items:center; gap:5px}
.brand__logo{
  width: 50px;height:50px; border-radius:14px;
  background: #fff;                 /* ✅ خلفية بيضاء */
  border:1px solid rgba(255,255,255,.25);
  padding:3px;
  box-shadow: 0 10px 24px rgba(0,0,0,.25);  /* يبرز الشعار */
}

.brand__name{font-weight:800; letter-spacing:.2px}
.brand__tag{font-size:12px; color:rgba(255,255,255,.75); margin-top:2px}

/* Nav */
.nav{display:flex; align-items:center; gap:12px}
.nav__menu{
  display:flex; align-items:center; gap:8px;
  list-style:none; margin:0; padding:0;
}
.nav__link{
  display:inline-flex; align-items:center;
  padding:10px 12px;
  font-size:14px;
  border-radius:12px;
  color:rgba(255,255,255,.88);
  border:1px solid transparent;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.nav__link:hover{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.10);
  transform: translateY(-1px);
}
.nav__toggle{
  display:none;
  width:44px; height:44px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  cursor:pointer;
  align-items:center; justify-content:center;
  gap:5px; flex-direction:column;
}
.nav__toggle span{display:block; width:18px; height:2px; background: rgba(255,255,255,.9); border-radius:2px}
.header__cta{display:flex; align-items:center; gap:10px}

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:11px 16px;
  border-radius:14px;
  font-weight:700;
  font-size:14px;
  border:1px solid rgba(255,255,255,.12);
  transition: transform .2s ease, filter .2s ease, background .2s ease, border-color .2s ease;
  user-select:none;
}
.btn:hover{transform: translateY(-1px); filter: brightness(1.02)}
.btn--primary{
  background: linear-gradient(135deg, var(--red), var(--red-2));
  border-color: rgba(255,255,255,.10);
  box-shadow: 0 12px 35px rgba(229,57,53,.22);
}
.btn--ghost{
  background: rgba(255,255,255,.06);
}
.btn--soft{
  background: linear-gradient(135deg, rgba(14,58,102,.55), rgba(229,57,53,.18));
}

/* Hero */
.hero{position:relative; padding:72px 0 70px; overflow:hidden}
.hero__media{
  position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(7,12,24,.62), rgba(7,12,24,.88)),
    url("1.jpg");
  background-size:cover;
  background-position:center;
  opacity:.95;
  transform: scale(1.02);
}
.hero__inner{
  position:relative;
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:28px;
  align-items:center;
}
.hero__content{padding-inline:4px}
.kicker{
  display:inline-flex;
  padding:6px 12px;
  border-radius:999px;
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.14);
  margin-bottom:10px;
}
.hero__title{
  margin:0 0 12px;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height:1.15;
  letter-spacing:.2px;
}
.hero__subtitle{
  margin:0 0 16px;
  color:rgba(255,255,255,.85);
  font-size:16px;
  line-height:1.9;
  max-width: 52ch;
}
.hero__bullets{
  list-style:none; margin:0; padding:0;
  display:grid; gap:10px;
  margin-bottom:18px;
}
.hero__bullets li{
  display:flex; gap:10px; align-items:flex-start;
  padding:10px 12px;
  border-radius:16px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
}
.icon{
  width:34px; height:34px; flex:0 0 auto;
  border-radius:12px;
  background: linear-gradient(135deg, rgba(14,58,102,.55), rgba(229,57,53,.25));
  border:1px solid rgba(255,255,255,.12);
  display:grid; place-items:center;
}
.icon svg{width:18px; height:18px; fill:rgba(255,255,255,.92)}
.hero__actions{display:flex; flex-wrap:wrap; gap:10px; margin-top:8px}
.hero__badge{
  margin-top:18px;
  display:inline-flex; gap:10px; align-items:center;
  padding:10px 12px;
  border-radius:16px;
  background: rgba(14,58,102,.25);
  border:1px solid rgba(255,255,255,.12);
}
.badge-dot{
  width:10px; height:10px; border-radius:999px;
  background: radial-gradient(circle, rgba(255,255,255,.95), rgba(255,255,255,.18));
}

/* Hero side card */
.hero-card{
  border-radius: var(--radius2);
  background: linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.04));
  border:1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow);
  overflow:hidden;
  position:relative;
}
.hero-card::before{
  content:"";
  position:absolute; inset:-2px;
  background: radial-gradient(600px 240px at 30% 15%, rgba(229,57,53,.35), transparent 60%),
              radial-gradient(520px 260px at 80% 40%, rgba(14,58,102,.35), transparent 60%);
  pointer-events:none;
}
.hero-card > *{position:relative}
.hero-card__top{
  display:flex; gap:12px; align-items:center;
  padding:18px 18px 12px;
}
.hero-card__stamp{
  width:46px; height:46px; border-radius:16px;
  display:grid; place-items:center;
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
}
.hero-card__stamp svg{width:22px; height:22px; fill:rgba(255,255,255,.92)}
.hero-card__title{font-weight:800}
.hero-card__desc{font-size:13px; color:rgba(255,255,255,.75); margin-top:2px}
.hero-card__grid{
  display:grid; grid-template-columns: 1fr 1fr;
  gap:10px;
  padding:12px 18px 16px;
}
.mini{
  background: rgba(0,0,0,.22);
  border:1px solid rgba(255,255,255,.10);
  border-radius:16px;
  padding:12px;
}
.mini__k{font-size:12px; color:rgba(255,255,255,.70)}
.mini__v{font-weight:800; margin-top:4px}
.hero-card__note{
  padding:14px 18px 18px;
  border-top: 1px solid rgba(255,255,255,.10);
  color:rgba(255,255,255,.86);
  line-height:1.8;
  font-size:14px;
}

/* Hero bottom wave */
.hero__bottom-wave{
  position:absolute; left:0; right:0; bottom:-1px; height:70px;
  background: linear-gradient(180deg, transparent, rgba(7,12,24,.98));
  clip-path: polygon(0 35%, 15% 45%, 32% 30%, 52% 55%, 70% 35%, 86% 55%, 100% 40%, 100% 100%, 0 100%);
  opacity:.9;
}

/* Sections (alternating design) */
.section{padding:78px 0}
.section__head{margin-bottom:22px}
.section__title{
  margin:0 0 8px;
  font-size: 20px;
  color: rgba(255,255,255,.92);
  letter-spacing:.2px;
}
.section__lead{
  margin:0;
  font-size: 16px;
  color: rgba(255,255,255,.78);
}

/* About: تصميم مختلف */
.section--about{
  background:
    radial-gradient(1000px 600px at 20% 30%, rgba(14,58,102,.25), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.00));
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.about-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:24px;
  align-items:start;
}
.h3{margin:0 0 10px; font-size:18px}
.h4{margin:18px 0 8px; font-size:15px; color:rgba(255,255,255,.92)}
.about-text p{margin:0; color:rgba(255,255,255,.82); line-height:2}
.split{
  margin-top:16px;
  display:grid; grid-template-columns: 1fr 1fr; gap:12px;
}
.panel{
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  padding:14px 14px 16px;
}
.panel p{margin:0; color:rgba(255,255,255,.80); line-height:1.95}
.checklist{
  list-style:none; padding:0; margin:10px 0 0;
  display:grid; gap:10px;
}
.checklist li{
  position:relative;
  padding:10px 12px 10px 44px;
  border-radius:16px;
  background: rgba(0,0,0,.20);
  border:1px solid rgba(255,255,255,.10);
  color:rgba(255,255,255,.86);
}
.checklist li::before{
  content:"✓";
  position:absolute; left:14px; top:50%; transform:translateY(-50%);
  width:22px; height:22px; border-radius:999px;
  display:grid; place-items:center;
  background: linear-gradient(135deg, rgba(229,57,53,.9), rgba(14,58,102,.5));
  box-shadow: 0 10px 25px rgba(229,57,53,.18);
}

/* About media stack */
.about-media{position:relative}
.img-stack{position:relative; height:360px}
.img{
  position:absolute; inset:auto;
  border-radius: 24px;
  border:1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow);
  background-size:cover;
  background-position:center;
  overflow:hidden;
}
.img::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.45));
}
.img--1{
  width:78%; height:64%;
  right:0; top:0;
  background-image: url("4.jpeg");
}
.img--2{
  width:68%; height:56%;
  left:0; top:18%;
  background-image: url("3.jpeg");
  transform: rotate(-2deg);
}
.img--3{
  width:58%; height:48%;
  right:6%; bottom:0;
  background-image: url("2.jpg");
  transform: rotate(2deg);
}
.about-badges{
  margin-top:16px;
  display:flex; flex-wrap:wrap; gap:10px;
}
.pill{
  display:inline-flex; align-items:center; gap:10px;
  padding:10px 12px;
  border-radius:999px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
}
.pill__dot{
  width:10px; height:10px; border-radius:999px;
  background: var(--red);
  box-shadow: 0 0 0 5px rgba(229,57,53,.12);
}
.pill--alt{background: rgba(14,58,102,.25)}

/* Services: تصميم آخر */
.section--services{
  background:
    radial-gradient(900px 520px at 80% 20%, rgba(229,57,53,.18), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.01), rgba(255,255,255,.00));
}
.cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
.card{
  border-radius: 22px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  padding:18px 16px 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.22);
  transition: transform .22s ease, background .22s ease, border-color .22s ease;
  position:relative;
  overflow:hidden;
}
.card::before{
  content:"";
  position:absolute; inset:-2px;
  background: radial-gradient(420px 220px at 20% 0%, rgba(14,58,102,.28), transparent 60%),
              radial-gradient(420px 220px at 85% 30%, rgba(229,57,53,.20), transparent 60%);
  opacity:.9;
  pointer-events:none;
}
.card > *{position:relative}
.card:hover{
  transform: translateY(-4px);
  background: rgba(255,255,255,.075);
  border-color: rgba(255,255,255,.18);
}
.card__icon{
  width:46px; height:46px; border-radius:18px;
  display:grid; place-items:center;
  background: linear-gradient(135deg, rgba(229,57,53,.22), rgba(14,58,102,.35));
  border:1px solid rgba(255,255,255,.12);
  margin-bottom:12px;
}
.card__icon svg{width:22px; height:22px; fill:rgba(255,255,255,.92)}
.card__title{margin:0 0 6px; font-size:15px}
.card__text{margin:0; color:rgba(255,255,255,.78); line-height:1.9}

/* Brands: تصميم مختلف */
.section--brands{
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
  background:
    linear-gradient(135deg, rgba(14,58,102,.18), rgba(229,57,53,.10)),
    radial-gradient(1000px 600px at 55% 30%, rgba(255,255,255,.06), transparent 60%);
}
.brands-grid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:18px;
  align-items:center;
}
.brands-text p{color:rgba(255,255,255,.82); line-height:2; margin:0}
.brand-list{
  list-style:none; padding:0; margin:10px 0 0;
  display:grid; gap:10px;
}
.brand-list li{
  display:flex; align-items:center; gap:10px;
  padding:10px 12px;
  border-radius:16px;
  background: rgba(0,0,0,.18);
  border:1px solid rgba(255,255,255,.10);
}
.mark{
  width:10px; height:10px; border-radius:999px;
  background: var(--red);
  box-shadow: 0 0 0 5px rgba(229,57,53,.12);
}
.note{
  margin-top:16px !important;
  padding:14px 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  line-height:2;
}
.brands-logos{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:12px;
}
.logo-chip{
  border-radius: 20px;
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  padding:18px 14px;
  text-align:center;
  font-weight:800;
  letter-spacing:.6px;
  position:relative;
  overflow:hidden;
}
.logo-chip::after{
  content:"";
  position:absolute; inset:0;
  background: radial-gradient(260px 120px at 20% 20%, rgba(229,57,53,.20), transparent 60%),
              radial-gradient(260px 120px at 85% 40%, rgba(14,58,102,.25), transparent 60%);
  opacity:.9;
  pointer-events:none;
}
.logo-chip--em{
  background: linear-gradient(135deg, rgba(229,57,53,.22), rgba(14,58,102,.25));
}

/* Gallery: تصميم مختلف */
.section--gallery{
  background:
    radial-gradient(1000px 560px at 25% 10%, rgba(229,57,53,.16), transparent 60%),
    radial-gradient(1000px 560px at 85% 70%, rgba(14,58,102,.22), transparent 60%);
}
.gallery{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
.gitem{
  margin:0;
  border-radius: 22px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  box-shadow: 0 14px 34px rgba(0,0,0,.25);
  transition: transform .22s ease;
}
.gitem:hover{transform: translateY(-4px)}
.gitem img{width:100%; height:220px; object-fit:cover}
.gitem figcaption{
  padding:12px 12px 14px;
  font-size:13px;
  color:rgba(255,255,255,.86);
  line-height:1.8;
}

/* Contact: تصميم مختلف */
.section--contact{
  border-top: 1px solid rgba(255,255,255,.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,.01), rgba(255,255,255,.00));
}
.contact-grid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:16px;
  align-items:stretch;
}
.contact-card{
  border-radius: 26px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  padding:18px 16px 16px;
  box-shadow: var(--shadow);
}
.contact-card p{margin:0 0 12px; color:rgba(255,255,255,.82); line-height:2}
.contact-lines{display:grid; gap:12px}
.line{
  display:flex; gap:12px; align-items:flex-start;
  padding:12px;
  border-radius: 18px;
  background: rgba(0,0,0,.20);
  border:1px solid rgba(255,255,255,.10);
}
.line__ico{
  width:44px; height:44px; flex:0 0 auto;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(14,58,102,.35), rgba(229,57,53,.18));
  border:1px solid rgba(255,255,255,.12);
  display:grid; place-items:center;
}
.line__ico svg{width:20px; height:20px; fill:rgba(255,255,255,.92)}
.line__k{font-size:12px; color:rgba(255,255,255,.72)}
.line__v{font-weight:800; margin-top:4px; line-height:1.9}
.contact-actions{display:flex; gap:10px; flex-wrap:wrap; margin-top:14px}

/* Contact visual */
.contact-aside{position:relative}
.contact-visual{
  height:100%;
  min-height: 420px;
  border-radius: 26px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow);
  background:
    linear-gradient(180deg, rgba(0,0,0,.30), rgba(0,0,0,.75)),
    url("https://img.pikbest.com/photo/20260102/businessman-using-smartphone-in-office_14173177.jpg!f305cw");
  background-size:cover;
  background-position:center;
  position:relative;
}
.contact-visual__overlay{
  position:absolute; inset:0;
  background: radial-gradient(520px 240px at 30% 20%, rgba(229,57,53,.25), transparent 65%),
              radial-gradient(520px 260px at 80% 70%, rgba(14,58,102,.35), transparent 65%);
  pointer-events:none;
}
.contact-visual__content{
  position:absolute; inset:auto 16px 16px 16px;
  display:flex; flex-wrap:wrap; gap:10px;
}
.chip{
  padding:10px 12px;
  border-radius:999px;
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.14);
  font-weight:800;
}
.chip--alt{background: rgba(14,58,102,.25)}

/* Legal: تصميم مختلف */
.section--legal{
  background:
    radial-gradient(900px 520px at 50% 15%, rgba(255,255,255,.06), transparent 60%),
    linear-gradient(180deg, rgba(14,58,102,.12), rgba(229,57,53,.06));
}
.legal-card{
  border-radius: 26px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  padding:18px 16px 16px;
  box-shadow: var(--shadow);
}
.legal-list{
  list-style:none; padding:0; margin:10px 0 0;
  display:grid; gap:10px;
}
.legal-list li{
  padding:12px;
  border-radius: 18px;
  background: rgba(0,0,0,.20);
  border:1px solid rgba(255,255,255,.10);
  line-height:1.9;
}
.footerline{
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid rgba(255,255,255,.10);
  color:rgba(255,255,255,.82);
}
/* Brand image replacement */
.brand-image{
  margin:0;
  border-radius: 26px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  box-shadow: var(--shadow);
  position:relative;
  min-height: 260px;
}


.brand-image::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.62));
  pointer-events:none;
}

.brand-image figcaption{
  position:absolute;
  right:16px;
  bottom:14px;
  padding:10px 12px;
  border-radius: 999px;
  background: rgba(6,10,22,.70);
  border:1px solid rgba(255,255,255,.14);
  font-weight:800;
  color: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
}

.brand-image:hover img{
  transform: scale(1.06);
}

/* Footer */
.footer{
  border-top:1px solid rgba(255,255,255,.10);
  background: rgba(6,10,22,.65);
  padding:18px 0;
}
.footer__inner{
  display:flex; align-items:center; justify-content:space-between;
  gap:14px; flex-wrap:wrap;
}
.footer__brand{display:flex; align-items:center; gap:10px}
.footer__logo{
  width:42px; height:42px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  padding:6px;
}
.footer__name{font-weight:900}
.footer__meta{font-size:12px; color:rgba(255,255,255,.72); margin-top:2px}
.footer__mini{color:rgba(255,255,255,.78); font-size:13px; line-height:1.9}

/* Back to top */
.to-top{
  position:fixed;
  left:16px;
  bottom:16px;
  width:48px; height:48px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--blue), rgba(229,57,53,.55));
  border:1px solid rgba(255,255,255,.14);
  box-shadow: 0 14px 34px rgba(0,0,0,.35);
  display:grid; place-items:center;
  opacity:0; visibility:hidden;
  transform: translateY(12px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
  z-index:1200;
}
.to-top.show{
  opacity:1; visibility:visible;
  transform: translateY(0);
}
.to-top__arrow{font-size:20px; font-weight:900; line-height:1}

/* Reveal animations */
.reveal{
  opacity:0;
  transform: translateY(14px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in{
  opacity:1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 980px){
  .hero__inner{grid-template-columns: 1fr; gap:18px}
  .about-grid{grid-template-columns: 1fr}
  .brands-grid{grid-template-columns: 1fr}
  .contact-grid{grid-template-columns: 1fr}
  .cards{grid-template-columns: repeat(2, 1fr)}
  .gallery{grid-template-columns: repeat(2, 1fr)}
  .img-stack{height:320px}
}

@media (max-width: 720px){
  .nav__toggle{display:flex}
  .nav__menu{
    position:fixed;
    top:76px;
    right:16px;
    left:16px;
    display:grid;
    gap:6px;
    padding:12px;
    border-radius: 22px;
    background: rgba(6,10,22,.92);
    border:1px solid rgba(255,255,255,.12);
    box-shadow: var(--shadow);
    transform: translateY(-10px);
    opacity:0;
    visibility:hidden;
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
  }
  .nav__menu.is-open{
    opacity:1;
    visibility:visible;
    transform: translateY(0);
  }
  .header__cta{display:none}
  .cards{grid-template-columns: 1fr}
  .gallery{grid-template-columns: 1fr}
  .split{grid-template-columns: 1fr}
  .hero{padding:56px 0 62px}
  .hero__subtitle{font-size:15px}
  .topbar__inner{justify-content:flex-start}
}

@media (prefers-reduced-motion: reduce){
  *{animation:none !important; transition:none !important; scroll-behavior:auto !important}
}
/* Brands image should fill the column space */
.section--brands .brands-logos{
  display:flex;
  align-items:stretch;
}

.brand-image.brand-image--fill{
  margin:0;
  width:100%;
  height:100%;
  min-height: 460px;             /* زودنا الارتفاع عشان تعبي */
  border-radius: 26px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  box-shadow: var(--shadow);
  position:relative;
  display:flex;                   /* مهم عشان img ياخذ المساحة */
}

.brand-image.brand-image--fill img{
  width:100%;
  height:100%;
  object-fit: cover;              /* تعبي بدون تمدد */
  display:block;
  transform: scale(1.02);
  transition: transform .35s ease, filter .35s ease;
  filter: contrast(1.05) saturate(1.05);
}

.brand-image.brand-image--fill::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.62));
  pointer-events:none;
}

.brand-image.brand-image--fill figcaption{
  position:absolute;
  right:16px;
  bottom:14px;
  padding:10px 12px;
  border-radius: 999px;
  background: rgba(6,10,22,.70);
  border:1px solid rgba(255,255,255,.14);
  font-weight:800;
  color: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
}

.brand-image.brand-image--fill:hover img{
  transform: scale(1.06);
}

/* على الموبايل نخليها أقصر شوية */
@media (max-width: 980px){
  .brand-image.brand-image--fill{ min-height: 320px; }
}
.section--brands .brands-grid{
  align-items: stretch;
}
