/*
Theme Name: Multiipixels Agency
Theme URI: https://multiipixels.com/
Author: Multiipixels
Author URI: https://multiipixels.com/
Description: قالب ووردبريس مخصص لوكالة مالتي بيكسيلز للتسويق الرقمي - تصميم عربي RTL بالكامل، متجاوب، مع أنيميشن وعدادات وأكورديون تفاعلي.
Version: 1.0
License: Private
Text Domain: multiipixels
*/

/* =========================================================
   AGENCY WEBSITE BASE STYLESHEET
   استبدل قيم المتغيرات في :root بألوان/خطوط العميل، والباقي يشتغل تلقائيًا.
   RTL-first (مبني للعربي) — لو الموقع إنجليزي، غيّر dir="rtl" لـ "ltr" في <html>
   واستخدم خط لاتيني في --font-body/--font-heading.
   ========================================================= */

:root {
  /* --- ألوان: غيّرها حسب هوية العميل --- */
  --color-primary: #14142b;       /* كحلي بنفسجي غامق — هوية مالتي بيكسيلز */
  --color-primary-light: #23234a;
  --color-accent: #7c5cff;        /* بنفسجي حيوي — تسويق/إبداع */
  --color-accent-2: #ff7a59;      /* كورال دافئ — تمييز إضافي */
  --color-bg: #ffffff;
  --color-bg-alt: #f6f8fc;
  --color-text: #161f36;
  --color-text-muted: #5b6478;
  --color-border: #e6e9f2;

  /* --- خطوط: عربي افتراضي Cairo، بدّله لو محتاج خط تاني --- */
  --font-heading: "Cairo", "Tajawal", system-ui, sans-serif;
  --font-body: "Cairo", "Tajawal", system-ui, sans-serif;

  /* --- مقاييس --- */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(11,27,59,0.06);
  --shadow-md: 0 8px 24px rgba(11,27,59,0.10);
  --shadow-lg: 0 20px 50px rgba(11,27,59,0.16);
  --container-w: 1180px;
  --section-pad: clamp(56px, 8vw, 110px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 800; line-height: 1.3; margin: 0 0 .5em; }
p { margin: 0 0 1em; color: var(--color-text-muted); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { padding: 0; margin: 0; list-style: none; }

.container { max-width: var(--container-w); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: var(--section-pad); }
.section-alt { background: var(--color-bg-alt); }
.eyebrow {
  display: inline-block; font-size: 14px; font-weight: 700; color: var(--color-accent);
  background: color-mix(in srgb, var(--color-accent) 12%, transparent);
  padding: 6px 16px; border-radius: 999px; margin-bottom: 14px;
}
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
h2.section-title { font-size: clamp(28px, 3.5vw, 42px); }

/* --- أزرار --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 14px 28px; border-radius: var(--radius-sm); font-weight: 700; font-size: 15px;
  border: 2px solid transparent; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary { background: var(--color-accent); color: #06251b; box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { border-color: var(--color-border); color: var(--color-text); background: transparent; }
.btn-outline:hover { border-color: var(--color-primary); }
.btn-light { background: #fff; color: var(--color-primary); }

/* --- هيدر --- */
.topbar {
  background: var(--color-primary); color: #cdd6f4; font-size: 13px;
  padding-block: 8px; transition: max-height .3s ease, opacity .3s ease, padding .3s ease;
  overflow: hidden;
}
.topbar.hidden { max-height: 0; padding-block: 0; opacity: 0; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar a { opacity: .9; }
.topbar a:hover { opacity: 1; }

header.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--color-border);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding-block: 14px; }
.logo { font-weight: 800; font-size: 22px; color: var(--color-primary); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { font-weight: 600; font-size: 15px; color: var(--color-text); }
.nav-links a:hover { color: var(--color-accent); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.hamburger { display: none; width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--color-border); background: none; cursor: pointer; }

@media (max-width: 900px) {
  .nav-links { position: fixed; inset: 0 0 0 auto; width: 82%; max-width: 340px; height: 100vh;
    background: #fff; flex-direction: column; align-items: flex-start; padding: 90px 28px; gap: 22px;
    transform: translateX(100%); transition: transform .35s ease; box-shadow: var(--shadow-lg); }
  html[dir="ltr"] .nav-links { inset: 0 auto 0 0; transform: translateX(-100%); }
  .nav-links.open { transform: translateX(0); }
  .hamburger { display: block; }
}

/* --- الهيرو --- */
.hero { position: relative; overflow: hidden; padding-block: clamp(70px, 10vw, 130px); }
.hero-blob {
  position: absolute; width: 600px; height: 600px; border-radius: 50%; filter: blur(90px); opacity: .25; z-index: 0;
  background: radial-gradient(circle, var(--color-accent), transparent 70%);
  animation: float 12s ease-in-out infinite;
}
.hero-blob.b2 { background: radial-gradient(circle, var(--color-accent-2), transparent 70%); animation-delay: -6s; }
@keyframes float { 0%,100% { transform: translate(0,0); } 50% { transform: translate(40px,-30px); } }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(34px, 5vw, 58px); }
.hero-sub { font-size: 18px; color: var(--color-text-muted); margin-bottom: 28px; }
.hero-mini-services { display: flex; gap: 14px; flex-wrap: wrap; margin-block: 28px; }
.hero-mini-services .item {
  display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--color-border);
  padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; box-shadow: var(--shadow-sm);
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-block: 20px; }
.hero-stats { display: flex; gap: 36px; margin-top: 36px; flex-wrap: wrap; }
.stat .num { font-size: 32px; font-weight: 800; color: var(--color-primary); }
.stat[data-count] .num::after { content: attr(data-suffix); }
.stat .label { font-size: 14px; color: var(--color-text-muted); }

/* --- مارکي الشعارات --- */
.marquee { overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: scrollX 28s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img { height: 34px; object-fit: contain; filter: grayscale(1) opacity(.65); transition: filter .2s ease; }
.marquee-track img:hover { filter: none; }
@keyframes scrollX { from { transform: translateX(0); } to { transform: translateX(-50%); } }
html[dir="rtl"] .marquee-track { animation-name: scrollXRtl; }
@keyframes scrollXRtl { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* --- بطاقات عامة --- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md);
  padding: 28px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--color-accent); }
.card .icon { width: 48px; height: 48px; border-radius: 12px; background: color-mix(in srgb, var(--color-accent) 15%, transparent);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px; color: var(--color-accent); }
.card a.more { font-weight: 700; color: var(--color-primary); display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; }
.card a.more:hover { color: var(--color-accent); }

/* --- طريقة العمل / تايم لاين --- */
.timeline { position: relative; display: flex; flex-direction: column; gap: 36px; }
.timeline::before { content: ""; position: absolute; inset-inline-start: 27px; top: 0; bottom: 0; width: 2px; background: var(--color-border); }
.timeline-item { display: flex; gap: 20px; position: relative; }
.timeline-num {
  flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--color-primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; z-index: 1;
}

/* --- أكورديون الأسئلة --- */
.accordion-item { border-bottom: 1px solid var(--color-border); }
.accordion-q {
  width: 100%; text-align: inherit; background: none; border: none; cursor: pointer;
  padding: 20px 0; display: flex; justify-content: space-between; align-items: center;
  font-weight: 700; font-size: 16px; color: var(--color-text);
}
.accordion-q .plus { transition: transform .3s ease; font-size: 22px; color: var(--color-accent); }
.accordion-item.open .plus { transform: rotate(45deg); }
.accordion-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.accordion-item.open .accordion-a { max-height: 400px; }
.accordion-a p { padding-bottom: 20px; }

/* --- آراء العملاء --- */
.quote-card { position: relative; }
.quote-card .mark { font-size: 48px; color: var(--color-accent); font-family: Georgia, serif; line-height: 1; margin-bottom: 8px; }
.quote-card p.quote-text { color: var(--color-text); font-size: 16px; }
.quote-card .who { font-weight: 700; color: var(--color-primary); font-size: 14px; margin-top: 12px; }

/* --- بورتفوليو --- */
.portfolio-card img { border-radius: var(--radius-md); margin-bottom: 16px; width: 100%; }

/* --- الفريق --- */
.team-card { text-align: center; }
.team-card img { border-radius: var(--radius-md); aspect-ratio: 1/1; object-fit: cover; margin-bottom: 14px; }
.team-card .role { color: var(--color-accent); font-size: 13px; font-weight: 700; }

/* --- شريط ضمان/CTA ختامي --- */
.banner-dark {
  background: var(--color-primary); color: #fff; border-radius: var(--radius-lg);
  padding: clamp(36px, 6vw, 64px); margin-inline: 20px;
}
.banner-dark p, .banner-dark li { color: #c9d2ec; }
.banner-dark .btn-primary { background: var(--color-accent); }

/* --- فوتر --- */
footer.site-footer { background: var(--color-primary); color: #c9d2ec; padding-block: 60px 24px; }
footer.site-footer h4 { color: #fff; font-size: 16px; }
footer.site-footer a:hover { color: var(--color-accent); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr 1fr; gap: 36px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; text-align: center; font-size: 13px; }

/* --- محتوى صفحات/مقالات ووردبريس --- */
.page-content { line-height: 1.9; }
.page-content h2 { font-size: 26px; margin-top: 1.4em; }
.page-content h3 { font-size: 20px; margin-top: 1.2em; }
.page-content p { color: var(--color-text); }
.page-content img { border-radius: var(--radius-md); margin-block: 20px; }
.page-content ul, .page-content ol { padding-inline-start: 22px; margin-bottom: 1.2em; }
.page-content li { margin-bottom: 8px; color: var(--color-text); }
.page-content a { color: var(--color-accent); text-decoration: underline; }
.page-content blockquote { border-inline-start: 4px solid var(--color-accent); padding-inline-start: 18px; color: var(--color-text-muted); margin: 24px 0; font-style: italic; }

/* --- عناصر مساعدة --- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
/* تحريك تدريجي متتابع للبطاقات جوه نفس الصف */
.grid .reveal:nth-child(1) { transition-delay: 0s; }
.grid .reveal:nth-child(2) { transition-delay: .08s; }
.grid .reveal:nth-child(3) { transition-delay: .16s; }
.grid .reveal:nth-child(4) { transition-delay: .24s; }
.grid .reveal:nth-child(5) { transition-delay: .32s; }
.grid .reveal:nth-child(6) { transition-delay: .4s; }

/* --- شريط تقدم القراءة أعلى الصفحة --- */
.scroll-progress {
  position: fixed; top: 0; inset-inline-start: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-2));
  z-index: 100; transition: width .1s linear;
}

/* --- عنوان بتدرج متحرك --- */
.gradient-text {
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-2), var(--color-accent));
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradientShift 5s ease-in-out infinite;
}
@keyframes gradientShift { 0% { background-position: 0% center; } 50% { background-position: 100% center; } 100% { background-position: 0% center; } }

/* --- بطاقات بميلان خفيف 3D عند الهوفر --- */
.card.tilt { transform-style: preserve-3d; will-change: transform; }
.card.tilt:hover { transform: translateY(-8px) rotateX(2deg) rotateY(-2deg); }

/* --- رسمة الهيرو التوضيحية (SVG) --- */
.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; animation: heroFloat 6s ease-in-out infinite; }
@keyframes heroFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.hero-art .dot { animation: dotPulse 2.6s ease-in-out infinite; transform-origin: center; }
@keyframes dotPulse { 0%,100% { opacity: .5; transform: scale(1); } 50% { opacity: 1; transform: scale(1.25); } }

/* --- خط توصيل متحرك في التايم لاين عند الظهور --- */
.timeline-item .timeline-num { transition: transform .4s cubic-bezier(.34,1.56,.64,1), background .3s ease; }
.timeline-item.visible .timeline-num { transform: scale(1); background: var(--color-accent); }
.timeline-item .timeline-num { transform: scale(.6); }

/* --- تأثير shimmer خفيف على الأزرار الأساسية --- */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ""; position: absolute; top: 0; inset-inline-start: -60%; width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-20deg);
}
.btn-primary:hover::after { animation: shimmer 1s ease; }
@keyframes shimmer { from { inset-inline-start: -60%; } to { inset-inline-start: 130%; } }

/* --- صور البورتفوليو: تكبير خفيف عند الهوفر --- */
.portfolio-card { overflow: hidden; }
.portfolio-card img { transition: transform .5s ease; }
.portfolio-card:hover img { transform: scale(1.06) rotate(-1deg); }

.whatsapp-float {
  position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 50% { box-shadow: 0 0 0 14px rgba(37,211,102,0); } }

.back-to-top {
  position: fixed; bottom: 24px; inset-inline-start: 24px; z-index: 60; width: 46px; height: 46px; border-radius: 50%;
  background: var(--color-primary); color: #fff; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .3s ease; border: none; cursor: pointer;
}
.back-to-top.show { opacity: 1; pointer-events: auto; }
