/* Smooth cross-fade between page navigations (Chromium browsers; no-op elsewhere) */
@view-transition{
  navigation:auto;
}

/* ---------- Design tokens ---------- */
:root{
  --purple:#522D81;
  --purple-dark:#3B1F60;
  --purple-light:#EFE9F7;
  --orange:#FB7402;
  --orange-dark:#DD6300;
  --navy:#0A2240;
  --cream:#CFC393;
  --cream-light:#F8F5EC;
  --brown:#623C21;
  --gray:#7B868C;
  --gray-light:#E7E9EA;
  --white:#FFFFFF;
  --off-white:#FAF9FC;
  --radius-sm:8px;
  --radius-md:16px;
  --radius-lg:28px;
  --shadow:0 12px 30px rgba(10,34,64,.10);
  --shadow-lg:0 20px 50px rgba(82,45,129,.18);
  --container:1200px;
}

*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family:'Cairo',sans-serif;
  color:var(--navy);
  background:var(--off-white);
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
  animation:page-fade-in .35s ease;
}
@keyframes page-fade-in{
  from{opacity:0;}
  to{opacity:1;}
}

/* ---------- Scroll-reveal & motion ---------- */
.reveal{
  opacity:0;
  transform:translateY(30px);
  transition:opacity .7s cubic-bezier(.22,.61,.36,1),transform .7s cubic-bezier(.22,.61,.36,1);
  transition-delay:var(--reveal-delay,0s);
  will-change:opacity,transform;
}
.reveal.in-view{opacity:1;transform:translateY(0);}

@media (prefers-reduced-motion:reduce){
  .reveal{opacity:1;transform:none;transition:none;}
  body{animation:none;}
  .hero-ring{animation:none;}
}
h1,h2,h3,h4{margin:0 0 .5em;font-weight:800;line-height:1.3;}
p{margin:0 0 1em;color:var(--gray);}
a{color:inherit;text-decoration:none;}
ul{margin:0;padding:0;list-style:none;}
img{max-width:100%;display:block;}
button{font-family:inherit;cursor:pointer;}

/* ---------- Bilingual toggle ---------- */
html[dir="ltr"] body{font-family:'Cairo','Segoe UI',sans-serif;}
.lang-en{display:none;}
html[lang="en"] .lang-ar{display:none;}
html[lang="en"] .lang-en{display:block;}
html[lang="en"] span.lang-en,
html[lang="en"] a.lang-en,
html[lang="en"] strong.lang-en{display:inline;}
html[lang="ar"] span.lang-en,
html[lang="ar"] a.lang-en,
html[lang="ar"] strong.lang-en,
html[lang="ar"] .lang-en{display:none;}
html[lang="ar"] .lang-ar{display:block;}
html[lang="ar"] span.lang-ar,
html[lang="ar"] a.lang-ar,
html[lang="ar"] strong.lang-ar{display:inline;}

/* ---------- Layout helpers ---------- */
.container{max-width:var(--container);margin-inline:auto;padding-inline:24px;}
.section{padding:88px 0;}
.section-sm{padding:56px 0;}
.section-alt{background:var(--cream-light);}
.section-dark{background:var(--navy);color:var(--white);}
.section-dark p{color:#B9C3CE;}
.eyebrow{
  display:inline-flex;align-items:center;gap:8px;
  color:var(--orange);font-weight:700;letter-spacing:.03em;
  font-size:.9rem;margin-bottom:14px;
}
.eyebrow::before{content:"";width:22px;height:3px;background:var(--orange);border-radius:2px;}
h2.section-title{font-size:clamp(1.8rem,3vw,2.6rem);color:var(--purple);}
.section-dark h2.section-title{color:var(--white);}
.section-lead{max-width:700px;color:var(--gray);font-size:1.05rem;}
.center{text-align:center;margin-inline:auto;}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;align-items:center;gap:10px;
  padding:14px 30px;border-radius:999px;font-weight:700;
  border:2px solid transparent;transition:.3s cubic-bezier(.22,.61,.36,1);white-space:nowrap;
}
.btn:active{transform:scale(.95);}
.btn-primary{background:var(--orange);color:var(--white);}
.btn-primary:hover{background:var(--orange-dark);transform:translateY(-3px);box-shadow:0 14px 28px rgba(251,116,2,.32);}
.btn-outline{border-color:var(--white);color:var(--white);}
.btn-outline:hover{background:var(--white);color:var(--purple);transform:translateY(-3px);}
.btn-outline-dark{border-color:var(--purple);color:var(--purple);}
.btn-outline-dark:hover{background:var(--purple);color:var(--white);transform:translateY(-3px);}
.btn-block{width:100%;justify-content:center;}
.btn-sm{padding:10px 20px;font-size:.9rem;}

/* ---------- Header ---------- */
.site-header{
  position:sticky;top:0;z-index:100;
  background:rgba(255,255,255,.92);backdrop-filter:blur(10px);
  border-bottom:1px solid var(--gray-light);
}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-block:12px;}
.brand{display:flex;align-items:center;gap:10px;}
.brand img{height:44px;width:auto;}
.main-nav{display:flex;align-items:center;gap:30px;}
.main-nav a{font-weight:700;color:var(--navy);position:relative;padding-block:6px;}
.main-nav a::after{
  content:"";position:absolute;inset-inline-start:0;bottom:0;height:2px;width:0;
  background:var(--orange);transition:.3s cubic-bezier(.22,.61,.36,1);
}
.main-nav a:hover::after,.main-nav a.active::after{width:100%;}
.main-nav a.active{color:var(--orange);}
.header-actions{display:flex;align-items:center;gap:12px;}
.lang-toggle{
  border:2px solid var(--purple);color:var(--purple);background:transparent;
  border-radius:999px;padding:8px 18px;font-weight:800;font-size:.85rem;letter-spacing:.03em;
  transition:.3s cubic-bezier(.22,.61,.36,1);
}
.lang-toggle:hover{background:var(--purple);color:var(--white);transform:translateY(-2px);}
.lang-toggle:active{transform:scale(.93);}
.header-phone{display:flex;align-items:center;gap:8px;font-weight:700;color:var(--purple);}
.header-phone svg{width:18px;height:18px;fill:none;stroke:var(--orange);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
.nav-toggle{
  display:none;background:none;border:none;width:38px;height:38px;
  position:relative;
}
.nav-toggle span,.nav-toggle span::before,.nav-toggle span::after{
  content:"";position:absolute;inset-inline-start:8px;width:22px;height:2px;background:var(--purple);transition:.25s;
}
.nav-toggle span{top:18px;}
.nav-toggle span::before{top:-7px;}
.nav-toggle span::after{top:7px;}

/* ---------- Hero ---------- */
.hero{
  position:relative;color:var(--white);overflow:hidden;
  background:linear-gradient(120deg,var(--purple) 0%,var(--purple-dark) 100%);
}
.hero-inner{
  position:relative;z-index:2;display:grid;grid-template-columns:1.1fr .9fr;gap:40px;
  align-items:center;padding-block:90px;
}
.hero-copy .eyebrow{color:var(--cream);}
.hero-copy .eyebrow::before{background:var(--orange);}
.hero h1{font-size:clamp(2.3rem,4.5vw,3.6rem);color:var(--white);}
.hero h1 em{font-style:normal;color:var(--orange);}
.hero p{color:#E4DCF2;font-size:1.1rem;max-width:520px;}
.hero-actions{display:flex;gap:16px;margin-top:30px;flex-wrap:wrap;}
.hero-media{position:relative;}
.hero-media img{border-radius:var(--radius-lg);box-shadow:var(--shadow-lg);}
.hero-ring{
  position:absolute;inset-inline-start:-10%;top:-15%;width:60%;aspect-ratio:1;
  border:2px solid rgba(251,116,2,.35);border-radius:50%;z-index:1;
  animation:ring-float 7s ease-in-out infinite;
}
@keyframes ring-float{
  0%,100%{transform:translateY(0) scale(1);}
  50%{transform:translateY(-16px) scale(1.04);}
}
.hero-stats{display:flex;gap:28px;margin-top:36px;flex-wrap:wrap;}
.hero-stat b{display:block;font-size:1.8rem;color:var(--orange);}
.hero-stat span{font-size:.85rem;color:#D8CFEA;}

.page-hero{
  background:linear-gradient(120deg,var(--purple) 0%,var(--purple-dark) 100%);
  color:var(--white);padding:70px 0 90px;text-align:center;position:relative;overflow:hidden;
}
.page-hero h1{color:var(--white);font-size:clamp(2rem,4vw,3rem);}
.page-hero p{color:#E4DCF2;max-width:640px;margin-inline:auto;}
.breadcrumb{color:var(--cream);font-weight:700;font-size:.9rem;margin-bottom:14px;}

/* ---------- Cards & grids ---------- */
.grid{display:grid;gap:28px;}
.grid-2{grid-template-columns:repeat(2,1fr);}
.grid-3{grid-template-columns:repeat(3,1fr);}
.grid-4{grid-template-columns:repeat(4,1fr);}

.feature-card{
  background:var(--white);border-radius:var(--radius-md);padding:32px 26px;
  box-shadow:var(--shadow);border:1px solid var(--gray-light);transition:.35s cubic-bezier(.22,.61,.36,1);
}
.feature-card:hover{transform:translateY(-8px);box-shadow:var(--shadow-lg);}
.feature-icon{
  width:58px;height:58px;border-radius:16px;background:var(--purple-light);
  display:flex;align-items:center;justify-content:center;margin-bottom:18px;
}
.feature-icon svg{width:28px;height:28px;fill:none;stroke:var(--purple);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
.feature-card h3{font-size:1.15rem;color:var(--navy);}
.feature-card p{margin:0;font-size:.95rem;}

.product-card{
  background:var(--white);border-radius:var(--radius-md);overflow:hidden;
  box-shadow:var(--shadow);border:1px solid var(--gray-light);transition:.35s cubic-bezier(.22,.61,.36,1);
}
.product-card:hover{transform:translateY(-8px);box-shadow:var(--shadow-lg);}
.product-card .media{aspect-ratio:4/3;overflow:hidden;}
.product-card .media img{width:100%;height:100%;object-fit:cover;transition:.4s;}
.product-card:hover .media img{transform:scale(1.06);}
.product-card .body{padding:24px;}
.product-card h3{color:var(--purple);font-size:1.2rem;}
.tag-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px;}
.tag{
  font-size:.75rem;font-weight:700;color:var(--purple);background:var(--purple-light);
  padding:5px 12px;border-radius:999px;
}

.pillar-card{
  background:var(--white);border-radius:var(--radius-md);padding:30px;
  border-top:4px solid var(--orange);box-shadow:var(--shadow);height:100%;
}
.pillar-card .num{font-size:2.2rem;font-weight:900;color:var(--cream);}
.pillar-card h3{color:var(--purple);font-size:1.1rem;}

.blog-card{background:var(--white);border-radius:var(--radius-md);overflow:hidden;box-shadow:var(--shadow);border:1px solid var(--gray-light);transition:.35s cubic-bezier(.22,.61,.36,1);display:flex;flex-direction:column;}
.blog-card:hover{transform:translateY(-8px);box-shadow:var(--shadow-lg);}
.blog-card .media{aspect-ratio:16/10;overflow:hidden;}
.blog-card .media img{width:100%;height:100%;object-fit:cover;}
.blog-card .body{padding:22px;display:flex;flex-direction:column;gap:10px;flex:1;}
.blog-date{color:var(--orange);font-weight:700;font-size:.8rem;}
.blog-card h3{font-size:1.05rem;color:var(--navy);}
.blog-card .body p{flex:1;font-size:.92rem;}
.read-more{color:var(--purple);font-weight:800;font-size:.9rem;display:inline-flex;align-items:center;gap:6px;}
.read-more svg{width:14px;height:14px;fill:none;stroke:var(--purple);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:.2s;}
.read-more:hover svg{transform:translateX(4px);}
html[dir="rtl"] .read-more:hover svg{transform:translateX(-4px) scaleX(-1);}
html[dir="ltr"] .read-more svg{transform:scaleX(1);}

/* ---------- Stats strip ---------- */
.stats-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;text-align:center;}
.stat b{display:block;font-size:2.4rem;color:var(--orange);font-weight:900;}
.stat span{color:var(--gray);font-weight:600;font-size:.9rem;}
.section-dark .stat span{color:#B9C3CE;}

/* ---------- Timeline ---------- */
.timeline{position:relative;padding-inline-start:30px;border-inline-start:3px solid var(--gray-light);display:flex;flex-direction:column;gap:36px;}
.timeline-item{position:relative;}
.timeline-item::before{
  content:"";position:absolute;inset-inline-start:-39px;top:2px;width:14px;height:14px;
  border-radius:50%;background:var(--orange);border:3px solid var(--white);box-shadow:0 0 0 2px var(--orange);
}
.timeline-item b{color:var(--purple);display:block;font-size:1.1rem;}

/* ---------- Process steps ---------- */
.process{display:grid;grid-template-columns:repeat(5,1fr);gap:18px;position:relative;}
.process-step{background:var(--white);border-radius:var(--radius-md);padding:26px 18px;text-align:center;box-shadow:var(--shadow);}
.process-step .icon-circle{
  width:56px;height:56px;border-radius:50%;background:var(--orange);color:var(--white);
  display:flex;align-items:center;justify-content:center;font-weight:900;font-size:1.2rem;
  margin-inline:auto;margin-bottom:14px;
}
.process-step h4{font-size:.95rem;color:var(--navy);margin-bottom:6px;}
.process-step p{font-size:.82rem;margin:0;}

/* ---------- Certification badges ---------- */
.cert-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:22px;}
.cert-badge{
  background:var(--white);border:1px solid var(--gray-light);border-radius:var(--radius-md);
  padding:26px 16px;text-align:center;box-shadow:var(--shadow);
}
.cert-badge .badge-circle{
  width:64px;height:64px;border-radius:50%;border:3px solid var(--cream);
  display:flex;align-items:center;justify-content:center;margin-inline:auto;margin-bottom:14px;
  color:var(--purple);font-weight:900;
}
.cert-badge .badge-circle svg{width:28px;height:28px;fill:none;stroke:var(--purple);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
.cert-badge h4{font-size:.95rem;color:var(--purple);margin-bottom:4px;}
.cert-badge p{font-size:.78rem;margin:0;}
.cert-note{
  background:var(--cream-light);border:1px dashed var(--cream);border-radius:var(--radius-sm);
  padding:16px 20px;font-size:.9rem;color:var(--brown);margin-top:26px;
}

/* ---------- CTA banner ---------- */
.cta-banner{
  background:linear-gradient(120deg,var(--orange) 0%,var(--orange-dark) 100%);
  color:var(--white);border-radius:var(--radius-lg);padding:56px 48px;
  display:flex;align-items:center;justify-content:space-between;gap:30px;flex-wrap:wrap;
}
.cta-banner h2{color:var(--white);margin-bottom:6px;font-size:1.7rem;}
.cta-banner p{color:#FFE6D0;margin:0;}
.cta-banner .btn-primary{background:var(--white);color:var(--orange-dark);}
.cta-banner .btn-primary:hover{background:var(--navy);color:var(--white);}

/* ---------- Distributors ---------- */
.city-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;}
.city-chip{
  background:var(--white);border:1px solid var(--gray-light);border-radius:var(--radius-sm);
  padding:16px;text-align:center;font-weight:700;color:var(--purple);box-shadow:var(--shadow);
}
.city-chip span{display:block;font-size:.78rem;color:var(--gray);font-weight:600;margin-top:4px;}
.partner-row{display:flex;flex-wrap:wrap;gap:18px;align-items:center;justify-content:center;}
.partner-chip{
  background:var(--white);border:1px solid var(--gray-light);border-radius:999px;
  padding:12px 26px;font-weight:800;color:var(--gray);box-shadow:var(--shadow);
}

/* ---------- Forms ---------- */
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;}
.form-field{display:flex;flex-direction:column;gap:8px;margin-bottom:18px;}
.form-field label{font-weight:700;font-size:.9rem;color:var(--navy);}
.form-field input,.form-field select,.form-field textarea{
  border:1.5px solid var(--gray-light);border-radius:var(--radius-sm);
  padding:13px 16px;font-family:inherit;font-size:.95rem;background:var(--white);color:var(--navy);
  transition:.2s;
}
.form-field input:focus,.form-field select:focus,.form-field textarea:focus{
  outline:none;border-color:var(--orange);box-shadow:0 0 0 3px rgba(251,116,2,.15);
}
.form-note{font-size:.82rem;color:var(--gray);margin-top:10px;}
.contact-card{
  background:var(--white);border-radius:var(--radius-md);padding:26px;
  box-shadow:var(--shadow);border:1px solid var(--gray-light);display:flex;gap:16px;align-items:flex-start;
}
.contact-card .feature-icon{flex-shrink:0;margin-bottom:0;}
.map-placeholder{
  border-radius:var(--radius-md);overflow:hidden;height:320px;
  background:
    linear-gradient(rgba(10,34,64,.55),rgba(82,45,129,.55)),
    repeating-linear-gradient(45deg,var(--gray-light) 0 2px,transparent 2px 14px);
  display:flex;align-items:center;justify-content:center;color:var(--white);
  font-weight:800;text-align:center;padding:20px;
}

/* ---------- Footer ---------- */
.site-footer{background:var(--navy);color:#C7CEDA;padding-top:70px;}
.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1.2fr;gap:40px;padding-bottom:50px;}
.footer-brand img{height:42px;margin-bottom:16px;}
.footer-brand p{color:#94A1B3;font-size:.92rem;}
.footer-col h4{color:var(--white);font-size:1rem;margin-bottom:18px;}
.footer-col ul{display:flex;flex-direction:column;gap:12px;}
.footer-col a{color:#B9C3CE;font-size:.92rem;transition:.2s;}
.footer-col a:hover{color:var(--orange);}
.footer-contact li{display:flex;gap:10px;align-items:flex-start;color:#B9C3CE;font-size:.92rem;}
.footer-contact svg{width:16px;height:16px;fill:none;stroke:var(--orange);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0;margin-top:3px;}
.social-row{display:flex;gap:10px;margin-top:18px;}
.social-row a{
  width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.08);
  display:flex;align-items:center;justify-content:center;
}
.social-row svg{width:16px;height:16px;fill:none;stroke:var(--white);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
.social-row a:hover{background:var(--orange);}
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.1);padding:22px 0;
  display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;
  font-size:.85rem;color:#8894A3;
}
.footer-bottom a{color:#8894A3;}
.footer-bottom a:hover{color:var(--orange);}

/* ---------- Misc ---------- */
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:56px;align-items:center;}
.two-col img{border-radius:var(--radius-lg);box-shadow:var(--shadow);}
.list-check{display:flex;flex-direction:column;gap:14px;margin-top:20px;}
.list-check li{display:flex;gap:12px;align-items:flex-start;color:var(--navy);font-weight:600;}
.list-check svg{width:20px;height:20px;fill:none;stroke:var(--orange);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0;margin-top:2px;}
.quote-block{
  background:var(--purple-light);border-inline-start:4px solid var(--purple);
  border-radius:var(--radius-sm);padding:24px 28px;font-weight:700;color:var(--purple);font-size:1.1rem;
}

/* ---------- Responsive ---------- */
@media (max-width:1024px){
  .hero-inner{grid-template-columns:1fr;padding-block:60px;}
  .hero-media{order:-1;}
  .grid-4{grid-template-columns:repeat(2,1fr);}
  .grid-3{grid-template-columns:repeat(2,1fr);}
  .stats-strip{grid-template-columns:repeat(2,1fr);gap:32px;}
  .process{grid-template-columns:repeat(3,1fr);}
  .cert-grid{grid-template-columns:repeat(2,1fr);}
  .city-grid{grid-template-columns:repeat(3,1fr);}
  .footer-grid{grid-template-columns:1fr 1fr;}
  .two-col{grid-template-columns:1fr;gap:30px;}
}
@media (max-width:760px){
  .main-nav{
    position:fixed;inset-inline:0;top:73px;background:var(--white);
    flex-direction:column;align-items:stretch;gap:0;padding:10px 24px 20px;
    box-shadow:0 20px 30px rgba(0,0,0,.08);
    transform:translateY(-130%);opacity:0;transition:.3s;
  }
  .main-nav.open{transform:translateY(0);opacity:1;}
  .main-nav a{padding:14px 0;border-bottom:1px solid var(--gray-light);}
  .nav-toggle{display:block;}
  .header-phone span{display:none;}
  .grid-4,.grid-3,.grid-2{grid-template-columns:1fr;}
  .process{grid-template-columns:repeat(2,1fr);}
  .cert-grid{grid-template-columns:1fr 1fr;}
  .city-grid{grid-template-columns:repeat(2,1fr);}
  .form-grid{grid-template-columns:1fr;}
  .footer-grid{grid-template-columns:1fr;gap:34px;}
  .footer-bottom{flex-direction:column;text-align:center;}
  .section{padding:60px 0;}
  .cta-banner{padding:36px 26px;text-align:center;justify-content:center;}
  .stats-strip{grid-template-columns:1fr 1fr;}
}
