/* =========================================================
   MikroTik Yemen — Design Tokens
   Palette: Signal Navy #142A52, Link Blue #1E5FA8, Relay Cyan #2F8FD1,
            Carrier Red #D81F2A, Ink #0B1220, Mist #F3F5F8, Steel #8B97A8
   Type: Display (AR) Cairo / (EN) Space Grotesk — Body (AR) Tajawal / (EN) Inter
   Signature: animated network-mesh (nodes + links) standing for the ISP/network domain
   ========================================================= */

:root{
  --navy:#142A52;
  --blue:#1E5FA8;
  --cyan:#2F8FD1;
  --red:#D81F2A;
  --ink:#0B1220;
  --mist:#F3F5F8;
  --white:#FFFFFF;
  --steel:#8B97A8;
  --line:#E2E6ED;
  --radius:14px;
  --shadow:0 18px 40px -18px rgba(20,42,82,.35);
  --maxw:1180px;
  --ease:cubic-bezier(.22,.8,.32,1);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:var(--mist);
  color:var(--ink);
  font-family:'Tajawal','Inter',sans-serif;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
html[lang="en"] body{font-family:'Inter','Tajawal',sans-serif;}

h1,h2,h3,h4{
  font-family:'Cairo','Space Grotesk',sans-serif;
  margin:0;
  font-weight:800;
  letter-spacing:-.01em;
}
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3, html[lang="en"] h4{
  font-family:'Space Grotesk','Cairo',sans-serif;
}
p{line-height:1.85; color:#4A5568; margin:0}
a{color:inherit; text-decoration:none}
img{max-width:100%; display:block}
ul{margin:0; padding:0; list-style:none}
button{font-family:inherit; cursor:pointer}

.wrap{max-width:var(--maxw); margin:0 auto; padding:0 24px}
.section{padding:88px 0}
.section--tight{padding:56px 0}
.section--alt{background:var(--white)}
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-size:13px; font-weight:700; letter-spacing:.08em;
  color:var(--red); text-transform:uppercase;
  margin-bottom:14px;
}
html[lang="ar"] .eyebrow{letter-spacing:0}
.eyebrow::before{content:""; width:18px; height:2px; background:var(--red); display:inline-block}

.btn{
  display:inline-flex; align-items:center; gap:10px;
  padding:14px 28px; border-radius:999px; font-weight:700; font-size:15px;
  border:1.5px solid transparent; transition:all .25s var(--ease);
}
.btn--primary{background:var(--navy); color:#fff;}
.btn--primary:hover{background:var(--blue); transform:translateY(-2px); box-shadow:var(--shadow)}
.btn--ghost{border-color:var(--line); color:var(--navy); background:#fff}
.btn--ghost:hover{border-color:var(--navy); transform:translateY(-2px)}
.btn--red{background:var(--red); color:#fff}
.btn--red:hover{background:#b81822; transform:translateY(-2px); box-shadow:0 18px 40px -18px rgba(216,31,42,.5)}

/* ---------- Header ---------- */
header.site{
  position:sticky; top:0; z-index:100;
  background:rgba(255,255,255,.85);
  backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line);
}
.nav{display:flex; align-items:center; justify-content:space-between; padding:14px 0}
.brand{display:flex; align-items:center; gap:12px}
.brand img{height:46px; width:auto}
.brand-text{display:flex; flex-direction:column; line-height:1.15}
.brand-text strong{font-family:'Cairo','Space Grotesk',sans-serif; font-size:16px; color:var(--navy); font-weight:800}
.brand-text span{font-size:11.5px; color:var(--steel); letter-spacing:.04em}
.navlinks{display:flex; align-items:center; gap:30px}
.navlinks a{font-size:14.5px; font-weight:600; color:#445; position:relative; padding:6px 0}
.navlinks a.active, .navlinks a:hover{color:var(--navy)}
.navlinks a.active::after{content:""; position:absolute; bottom:0; inset-inline:0; height:2px; background:var(--red); border-radius:2px}
.nav-actions{display:flex; align-items:center; gap:14px}
.lang-toggle{
  display:flex; border:1.5px solid var(--line); border-radius:999px; overflow:hidden; font-size:13px; font-weight:700;
}
.lang-toggle button{padding:7px 14px; background:#fff; color:var(--steel); border:none}
.lang-toggle button.active{background:var(--navy); color:#fff}
.burger{display:none; flex-direction:column; gap:5px; background:none; border:none; padding:6px}
.burger span{width:24px; height:2px; background:var(--navy); border-radius:2px}

/* ---------- Hero / Mesh signature ---------- */
.hero{position:relative; overflow:hidden; background:linear-gradient(180deg,#0F2348 0%, #142A52 55%, #1B3868 100%); color:#fff}
.hero .wrap{position:relative; z-index:2; padding-top:96px; padding-bottom:120px}
.hero-grid{display:grid; grid-template-columns:1.1fr .9fr; gap:50px; align-items:center}
.hero h1{font-size:48px; line-height:1.18; color:#fff; max-width:620px}
.hero h1 em{font-style:normal; color:#7CC4FF}
.hero p.lead{color:#C7D3E8; font-size:17.5px; max-width:520px; margin-top:18px}
.hero-cta{display:flex; gap:14px; margin-top:34px; flex-wrap:wrap}
.hero-stats{display:flex; gap:34px; margin-top:54px; flex-wrap:wrap}
.hero-stats div strong{display:block; font-family:'Cairo','Space Grotesk',sans-serif; font-size:28px; color:#fff}
.hero-stats div span{font-size:12.5px; color:#9FB1CE}

.mesh-wrap{position:relative; min-height:380px}
#mesh-svg{width:100%; height:100%; position:absolute; inset:0}
.mesh-node-pulse{animation:meshPulse 2.6s ease-in-out infinite}
@keyframes meshPulse{0%,100%{opacity:.55} 50%{opacity:1}}
.mesh-line{stroke-dasharray:6 6; animation:meshFlow 18s linear infinite}
@keyframes meshFlow{to{stroke-dashoffset:-600}}
@media (prefers-reduced-motion: reduce){
  .mesh-node-pulse, .mesh-line{animation:none !important}
}

/* faint background lines across whole site sections */
.section-mesh-bg{position:absolute; inset:0; opacity:.05; pointer-events:none; z-index:0}

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

.card{
  background:#fff; border:1px solid var(--line); border-radius:var(--radius);
  padding:30px; transition:transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card:hover{transform:translateY(-6px); box-shadow:var(--shadow); border-color:transparent}
.card .icon{
  width:52px; height:52px; border-radius:12px; background:linear-gradient(135deg,var(--navy),var(--blue));
  display:flex; align-items:center; justify-content:center; margin-bottom:18px;
}
.card .icon svg{width:26px; height:26px; stroke:#fff}
.card h3{font-size:18px; color:var(--navy); margin-bottom:10px}
.card p{font-size:14.5px}

.section-head{max-width:640px; margin-bottom:48px}
.section-head h2{font-size:32px; color:var(--navy); line-height:1.3}
.section-head p{margin-top:14px; font-size:16px}

/* ---------- Product cards ---------- */
.product-card{
  background:#fff; border:1px solid var(--line); border-radius:var(--radius); overflow:hidden;
  display:flex; flex-direction:column; transition:transform .3s var(--ease), box-shadow .3s var(--ease);
}
.product-card:hover{transform:translateY(-6px); box-shadow:var(--shadow)}
.product-thumb{
  aspect-ratio:4/3; background:linear-gradient(140deg,#10213f,#1E5FA8 130%);
  display:flex; align-items:center; justify-content:center; position:relative;
}
.product-thumb svg{width:56px; height:56px; stroke:#fff; opacity:.92}
.product-badge{
  position:absolute; top:12px; inset-inline-start:12px; background:var(--red); color:#fff;
  font-size:11px; font-weight:700; padding:4px 10px; border-radius:999px;
}
.product-body{padding:20px 22px 24px; display:flex; flex-direction:column; gap:8px; flex:1}
.product-body h3{font-size:16.5px; color:var(--navy)}
.product-body p{font-size:13.5px; flex:1}
.product-foot{display:flex; align-items:center; justify-content:space-between; margin-top:10px}
.price{font-family:'Cairo','Space Grotesk',sans-serif; font-weight:800; color:var(--navy); font-size:15.5px}
.price--ask{color:var(--steel); font-size:13px; font-weight:700}
.tag-row{display:flex; gap:8px; margin-bottom:6px; flex-wrap:wrap}
.tag{font-size:11.5px; font-weight:700; color:var(--blue); background:#EAF2FB; padding:3px 10px; border-radius:999px}

.filter-row{display:flex; gap:10px; flex-wrap:wrap; margin-bottom:38px}
.filter-btn{
  padding:9px 18px; border-radius:999px; border:1.5px solid var(--line); background:#fff;
  font-size:13.5px; font-weight:700; color:#445;
}
.filter-btn.active{background:var(--navy); border-color:var(--navy); color:#fff}

/* ---------- Agencies ---------- */
.agency-strip{display:flex; gap:18px; flex-wrap:wrap; justify-content:center}
.agency-chip{
  display:flex; align-items:center; gap:10px; background:#fff; border:1px solid var(--line);
  padding:16px 22px; border-radius:12px; min-width:170px;
}
.agency-chip .dot{width:10px; height:10px; border-radius:50%; background:var(--red)}
.agency-chip strong{font-family:'Cairo','Space Grotesk',sans-serif; color:var(--navy); font-size:15px}
.agency-chip span{font-size:11.5px; color:var(--steel); display:block}
.note-box{
  margin-top:30px; border:1.5px dashed var(--cyan); background:#EFF7FF; color:var(--navy);
  border-radius:12px; padding:16px 20px; font-size:13.5px;
}

/* ---------- Timeline / about ---------- */
.about-grid{display:grid; grid-template-columns:.95fr 1.05fr; gap:60px; align-items:start}
.value-list li{display:flex; gap:14px; padding:16px 0; border-bottom:1px solid var(--line)}
.value-list li:last-child{border-bottom:none}
.value-list .num{font-family:'Cairo','Space Grotesk',sans-serif; font-weight:800; color:var(--cyan); font-size:14px; min-width:28px}
.value-list h4{color:var(--navy); font-size:15.5px; margin-bottom:4px}
.value-list p{font-size:14px}

/* ---------- CTA band ---------- */
.cta-band{
  background:linear-gradient(120deg,var(--navy),var(--blue) 120%);
  color:#fff; border-radius:24px; padding:54px; display:flex; align-items:center; justify-content:space-between; gap:30px; flex-wrap:wrap;
  position:relative; overflow:hidden;
}
.cta-band h3{font-size:26px; color:#fff; max-width:480px}
.cta-band p{color:#C7D3E8; margin-top:8px}

/* ---------- Contact ---------- */
.contact-grid{display:grid; grid-template-columns:.85fr 1.15fr; gap:46px}
.contact-card{background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:14px 0}
.contact-row{display:flex; gap:16px; padding:18px 26px; border-bottom:1px solid var(--line)}
.contact-row:last-child{border-bottom:none}
.contact-row .ic{
  width:42px; height:42px; border-radius:10px; background:#EAF2FB; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
}
.contact-row .ic svg{width:20px; height:20px; stroke:var(--blue)}
.contact-row strong{display:block; color:var(--navy); font-size:14.5px; margin-bottom:2px}
.contact-row span, .contact-row a{font-size:13.5px; color:#5A6678}
.contact-row a:hover{color:var(--red)}

form.inquiry{background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:36px}
.form-row{display:grid; grid-template-columns:1fr 1fr; gap:18px; margin-bottom:18px}
.field{display:flex; flex-direction:column; gap:7px}
.field label{font-size:13px; font-weight:700; color:var(--navy)}
.field input, .field select, .field textarea{
  border:1.5px solid var(--line); border-radius:10px; padding:12px 14px; font-size:14px; font-family:inherit; background:var(--mist);
}
.field input:focus, .field select:focus, .field textarea:focus{outline:2px solid var(--cyan); background:#fff}
.map-frame{border-radius:var(--radius); overflow:hidden; border:1px solid var(--line); margin-top:24px; height:260px}
.map-frame iframe{width:100%; height:100%; border:0}

/* ---------- Footer ---------- */
footer.site{background:var(--ink); color:#AEB9CC; margin-top:60px}
.footer-grid{display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:40px; padding:64px 0 40px}
.footer-brand img{height:42px; margin-bottom:14px}
.footer-brand p{color:#8895AA; font-size:13.5px; max-width:280px}
.footer-col h4{color:#fff; font-size:14px; margin-bottom:18px}
.footer-col ul li{margin-bottom:11px}
.footer-col a{font-size:13.5px; color:#9AA6BA}
.footer-col a:hover{color:#fff}
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.08); padding:22px 0; display:flex; justify-content:space-between;
  font-size:12.5px; color:#73809A; flex-wrap:wrap; gap:10px;
}
.social-row{display:flex; gap:10px}
.social-row a{
  width:36px; height:36px; border-radius:50%; background:rgba(255,255,255,.06); display:flex; align-items:center; justify-content:center;
}
.social-row a:hover{background:var(--red)}
.social-row svg{width:16px; height:16px; stroke:#fff}

/* ---------- Reveal animation ---------- */
.reveal{opacity:0; transform:translateY(18px); transition:opacity .7s var(--ease), transform .7s var(--ease)}
.reveal.in{opacity:1; transform:none}

/* ---------- i18n visibility ---------- */
[data-i18n]{display:none}
html[lang="ar"] [data-i18n="ar"]{display:revert}
html[lang="en"] [data-i18n="en"]{display:revert}
span[data-i18n], strong[data-i18n], em[data-i18n]{display:none}
html[lang="ar"] span[data-i18n="ar"], html[lang="ar"] strong[data-i18n="ar"], html[lang="ar"] em[data-i18n="ar"]{display:inline}
html[lang="en"] span[data-i18n="en"], html[lang="en"] strong[data-i18n="en"], html[lang="en"] em[data-i18n="en"]{display:inline}

/* ---------- Responsive ---------- */
@media (max-width:980px){
  .grid--4{grid-template-columns:repeat(2,1fr)}
  .grid--3{grid-template-columns:repeat(2,1fr)}
  .hero-grid{grid-template-columns:1fr}
  .about-grid, .contact-grid{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr 1fr}
  .navlinks{position:fixed; inset-inline-start:0; top:75px; width:100%; background:#fff; flex-direction:column; padding:20px 24px; gap:4px; border-bottom:1px solid var(--line); display:none}
  .navlinks.open{display:flex}
  .navlinks a{padding:12px 0; width:100%; border-bottom:1px solid var(--line)}
  .burger{display:flex}
}
@media (max-width:640px){
  .grid--4, .grid--3, .grid--2{grid-template-columns:1fr}
  .hero h1{font-size:34px}
  .section{padding:60px 0}
  .form-row{grid-template-columns:1fr}
  .cta-band{padding:34px; flex-direction:column; align-items:flex-start}
  .footer-grid{grid-template-columns:1fr; padding:48px 0 30px}
  .footer-bottom{flex-direction:column; align-items:flex-start}
}
