:root{
    --navy:#1B2559;      /* أزرق الكتالوج الداكن */
    --navy-2:#24306E;
    --crimson:#A63D4A;   /* أحمر Trading */
    --steel:#8193C4;     /* الأزرق الفاتح للمثلثات */
    --mist:#EEF0F4;      /* خلفية الكتالوج الرمادية */
    --ink:#22252B;
    --muted:#5D6375;
    --white:#fff;
  }
  *{box-sizing:border-box;margin:0;padding:0}
  html{scroll-behavior:smooth}
  body{font-family:"Alexandria",system-ui,sans-serif;background:var(--mist);color:var(--ink);line-height:1.8;font-size:17px}
  img{max-width:100%;display:block}
  a{color:inherit}
  :focus-visible{outline:3px solid var(--crimson);outline-offset:3px}
  .wrap{width:min(1140px,100% - 32px);margin-inline:auto}

  /* الهيدر */
  header{position:sticky;top:0;z-index:10;background:rgba(238,240,244,.92);backdrop-filter:blur(8px);border-bottom:1px solid #d9dce6}
  header .wrap{display:flex;align-items:center;justify-content:space-between;height:68px}
  .brand{display:flex;flex-direction:column;line-height:1;text-decoration:none}
  .brand b{font-weight:800;font-size:28px;letter-spacing:-.5px;direction:ltr;color:var(--ink)}
  .brand span{font-family:Georgia,serif;color:var(--crimson);font-size:13px;direction:ltr;align-self:flex-end}
  nav ul{display:flex;gap:28px;list-style:none}
  nav a{text-decoration:none;font-size:15px;color:var(--muted)}
  nav a:hover{color:var(--navy)}
  .nav-cta{background:var(--navy);color:#fff!important;padding:8px 18px}
  @media (max-width:760px){nav li:not(:last-child){display:none}}

  /* الواجهة: ألواح مائلة على شكل الكتالوج */
  .hero{position:relative;overflow:hidden;background:var(--mist);min-height:640px}
  .hero .panel{position:absolute;overflow:hidden}
  .hero .panel img{width:100%;height:100%;object-fit:cover}
  .p1{inset:0 0 auto auto;width:38%;height:40%;clip-path:polygon(0 0,100% 0,100% 100%)}
  .p2{inset:0 auto auto 0;width:50%;height:100%;clip-path:polygon(0 0,100% 0,40% 100%,0 100%)}
  .tri-navy{position:absolute;inset:auto 0 0 auto;width:42%;height:45%;background:var(--navy);clip-path:polygon(100% 0,100% 100%,0 100%)}
  .tri-red{position:absolute;inset:auto auto 0 0;width:30%;height:14%;background:var(--crimson);clip-path:polygon(0 0,100% 100%,0 100%)}
  .hero-text{position:relative;z-index:2;padding:240px 0 120px;max-width:560px}
  .hero h1{font-size:clamp(34px,5vw,58px);line-height:1.25;font-weight:800;color:var(--navy)}
  .hero p{margin:20px 0 32px;color:var(--muted);max-width:46ch}
  .btn{display:inline-block;padding:14px 30px;text-decoration:none;font-weight:600;font-size:16px;border:0;cursor:pointer;font-family:inherit}
  .btn-red{background:var(--crimson);color:#fff}
  .btn-red:hover{background:#8e3440}
  .btn-line{border:2px solid var(--navy);color:var(--navy);margin-inline-start:10px}
  @media (max-width:760px){
    .hero{min-height:auto}
    .p1{width:60%;height:160px}.p2{width:75%;height:300px;clip-path:polygon(0 0,100% 0,0 100%)}
    .hero-text{padding:320px 0 110px}
    .tri-navy{width:70%;height:90px}
  }

  section{padding:96px 0}
  h2{font-size:clamp(28px,3.4vw,40px);font-weight:800;color:var(--navy);line-height:1.3;margin-bottom:18px}
  .lead{color:var(--muted);max-width:60ch}

  /* من نحن */
  .about{background:#fff}
  .about .grid{display:grid;grid-template-columns:1.1fr .9fr;gap:64px;align-items:center}
  .about-img{position:relative}
  .about-img img{clip-path:polygon(0 0,100% 0,100% 82%,82% 100%,0 100%)}
  .about-img::after{content:"";position:absolute;inset:auto -16px -16px auto;width:120px;height:120px;background:var(--crimson);clip-path:polygon(100% 0,100% 100%,0 100%);z-index:-1}
  .facts{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:36px}
  .facts div{border-inline-start:3px solid var(--crimson);padding-inline-start:14px}
  .facts strong{display:block;color:var(--navy);font-size:17px}
  .facts span{font-size:15px;color:var(--muted)}
  @media (max-width:860px){.about .grid{grid-template-columns:1fr}.facts{grid-template-columns:1fr}}

  /* المنتجات */
  .products-head{display:flex;justify-content:space-between;align-items:end;gap:24px;flex-wrap:wrap;margin-bottom:48px}
  .lineup{background:#fff;position:relative}
  .lineup img{width:100%;max-height:420px;object-fit:cover;object-position:top}
  .cats{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:2px;background:#d9dce6;margin-top:2px}
  .cat{background:#fff;padding:28px}
  .cat h3{font-size:19px;color:var(--navy);margin-bottom:6px}
  .cat p{font-size:15px;color:var(--muted)}
  @media (max-width:760px){.cats{grid-template-columns:1fr}}

  /* منتج مميز */
  .feature{background:var(--navy);color:#e6e9f4;position:relative;overflow:hidden}
  .feature::before{content:"";position:absolute;inset:0 auto auto 0;width:220px;height:220px;background:var(--crimson);clip-path:polygon(0 0,100% 0,0 100%);opacity:.9}
  .feature .grid{display:grid;grid-template-columns:auto 1fr 1fr;gap:48px;align-items:center;position:relative}
  .feature h2{color:#fff}
  .feature .pole{background:#fff;padding:16px;width:200px}
  .feature .night{clip-path:polygon(12% 0,100% 0,100% 100%,0 100%)}
  .specs{margin-top:24px;border-top:1px solid rgba(255,255,255,.2)}
  .specs div{display:flex;justify-content:space-between;gap:16px;padding:10px 0;border-bottom:1px solid rgba(255,255,255,.2);font-size:15px}
  .specs dt{color:var(--steel)}
  .specs dd{direction:ltr;text-align:left}
  @media (max-width:900px){.feature .grid{grid-template-columns:1fr}.feature .pole{margin-inline:auto}}

  /* لماذا نحن */
  .why .list{display:grid;grid-template-columns:repeat(2,1fr);gap:40px 64px;margin-top:40px}
  .why h3{font-size:19px;color:var(--navy);margin-bottom:6px;display:flex;align-items:center;gap:12px}
  .why h3::before{content:"";width:14px;height:14px;background:var(--crimson);transform:rotate(45deg);flex:none}
  .why p{color:var(--muted);font-size:15px;padding-inline-start:26px}
  @media (max-width:760px){.why .list{grid-template-columns:1fr}}

  /* تواصل معنا */
  .contact{background:#fff}
  .contact .grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:64px}
  .info{list-style:none;margin-top:28px;display:grid;gap:18px}
  .info li{display:flex;gap:14px;align-items:center}
  .info svg{width:40px;height:40px;flex:none;background:var(--navy);color:#fff;border-radius:50%;padding:10px}
  .info a{text-decoration:none}
  .ltr{direction:ltr;unicode-bidi:isolate}
  form{display:grid;gap:16px;background:var(--mist);padding:32px}
  .row{display:grid;grid-template-columns:1fr 1fr;gap:16px}
  label{display:grid;gap:6px;font-size:14px;color:var(--muted)}
  input,select,textarea{font:inherit;font-size:16px;padding:12px 14px;border:1px solid #cfd3df;background:#fff;color:var(--ink);width:100%}
  input:focus,select:focus,textarea:focus{outline:2px solid var(--navy);border-color:var(--navy)}
  .note{font-size:14px;color:var(--crimson);min-height:1.5em}
  @media (max-width:860px){.contact .grid{grid-template-columns:1fr}.row{grid-template-columns:1fr}}

  footer{background:var(--navy);color:#c8cde2;padding:28px 0;font-size:14px}
  footer .wrap{display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px}

  .wa{position:fixed;bottom:20px;left:20px;width:56px;height:56px;border-radius:50%;background:#25D366;display:grid;place-items:center;z-index:20;box-shadow:0 6px 18px rgba(0,0,0,.2)}
  .wa svg{width:30px;height:30px;fill:#fff}

  /* حركة دخول واحدة للواجهة فقط */
  @media (prefers-reduced-motion:no-preference){
    .p1,.p2,.tri-navy,.tri-red{animation:slide .9s cubic-bezier(.2,.7,.2,1) both}
    .p2{animation-delay:.12s}.tri-navy{animation-delay:.25s}.tri-red{animation-delay:.35s}
    @keyframes slide{from{opacity:0;transform:translateY(24px)}}
  }

/* عناصر يتحكم فيها الأدمن */
.brand img{height:44px;width:auto}
.cat img{width:100%;aspect-ratio:4/3;object-fit:cover;margin-bottom:16px;background:var(--mist)}
.catalogs{background:var(--navy);color:#e6e9f4}
.catalogs h2{color:#fff}
.catalog-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:24px;margin-top:36px}
.catalog{display:block;background:#fff;color:var(--ink);text-decoration:none}
.catalog img{width:100%;aspect-ratio:3/4;object-fit:cover}
.catalog .cover-blank{aspect-ratio:3/4;background:var(--mist);display:grid;place-items:center;color:var(--navy);font-weight:800;font-size:28px}
.catalog span{display:block;padding:14px 16px;font-weight:600;border-top:3px solid var(--crimson)}
.catalog:hover span{color:var(--crimson)}
.map{margin-top:28px;border:0;width:100%;height:260px;filter:saturate(.8)}
.social{display:flex;gap:10px;margin-top:20px;flex-wrap:wrap}
.social a{border:1px solid #cfd3df;padding:6px 14px;font-size:14px;text-decoration:none}
.social a:hover{border-color:var(--navy);color:var(--navy)}
footer .credit{text-decoration:none;color:#fff}
footer .credit:hover{text-decoration:underline}

/* سهم العودة للأعلى: يظهر بعد النزول في الصفحة، وفوق زر الواتساب لو موجود */
.to-top{position:fixed;bottom:20px;left:20px;width:48px;height:48px;display:grid;place-items:center;background:var(--navy);color:#fff;z-index:20;opacity:0;visibility:hidden;transform:translateY(12px);transition:opacity .25s,transform .25s,visibility .25s}
.to-top svg{width:22px;height:22px}
.to-top:hover{background:var(--crimson)}
.to-top.show{opacity:1;visibility:visible;transform:none}
.wa ~ .to-top{bottom:88px;left:24px}
@media (prefers-reduced-motion:reduce){.to-top{transition:none}}
