/* ==========================================================================
   G MARKETING GROUP — HOMEPAGE LUXURY STYLES (home.css)
   Clean White Luxury + Saudi Executive Authority Design System
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. MARQUEE SECTION (شريط المنظومة والشركاء المتحرك)
   -------------------------------------------------------------------------- */
.marquee-section {
  width: 100%;
  overflow: hidden;
  background: #F8FAFC;
  border-top: 1px solid #E2E8F0;
  border-bottom: 1px solid #E2E8F0;
  padding: 1.15rem 0;
  position: relative;
  direction: ltr; /* Force LTR for smooth linear infinite translation */
}

.marquee-section::before,
.marquee-section::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.marquee-section::before {
  left: 0;
  background: linear-gradient(to right, #F8FAFC 0%, transparent 100%);
}

.marquee-section::after {
  right: 0;
  background: linear-gradient(to left, #F8FAFC 0%, transparent 100%);
}

.marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 3rem;
  animation: marqueeRun 40s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marqueeRun {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  white-space: nowrap;
  font-family: var(--font-arabic);
  font-size: 0.95rem;
  font-weight: 700;
  color: #334155;
  transition: color 0.2s ease;
}

.marquee-item:hover {
  color: #0F172A;
}

.marquee-item svg,
.marquee-item i {
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   2. STATS & KPIS LUXURY SECTION (شبكة الإحصائيات والأرقام المعتمدة)
   -------------------------------------------------------------------------- */
.stats-luxury-section {
  padding: 4.5rem 0 3.5rem;
  background: #FFFFFF;
}

.stats-grid-luxury {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.stat-card-luxury {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 1.5rem;
  padding: 2.25rem 1.5rem;
  text-align: center;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.stat-card-luxury::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #6366F1, #0284C7);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-card-luxury:hover {
  transform: translateY(-5px);
  border-color: #C7D2FE;
  box-shadow: 0 16px 36px -4px rgba(99, 102, 241, 0.12);
}

.stat-card-luxury:hover::before {
  opacity: 1;
}

.stat-icon-glow {
  width: 58px;
  height: 58px;
  border-radius: 1.15rem;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.stat-card-luxury:hover .stat-icon-glow {
  transform: scale(1.08);
  background: #EEF2FF;
  border-color: #C7D2FE;
}

.stat-num-val {
  font-family: var(--font-arabic);
  font-size: 2.85rem;
  font-weight: 900;
  color: #0F172A;
  line-height: 1.1;
  margin-bottom: 0.65rem;
  letter-spacing: -0.02em;
}

.stat-lbl-text {
  font-family: var(--font-arabic);
  font-size: 0.95rem;
  font-weight: 600;
  color: #475569;
  line-height: 1.55;
  max-width: 240px;
}

/* --------------------------------------------------------------------------
   3. SERVICES PREVIEW (شبكة خدمات الوكالة المتوازنة 2+4)
   -------------------------------------------------------------------------- */
.services-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.bento-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 1.5rem;
  padding: 2.25rem 2rem;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

/* Row 1: The 2 Master Featured Cards take 50% each (span 6) */
.bento-card--featured,
.bento-card--featured-cyan {
  grid-column: span 6;
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFCFF 100%);
  border-color: #E2E8F0;
}

/* Row 2: The 4 Specialized Services take 25% each (span 3) */
.services-bento > .bento-card:not(.bento-card--featured):not(.bento-card--featured-cyan) {
  grid-column: span 3;
}

.bento-card:hover {
  transform: translateY(-5px);
  border-color: #818CF8;
  box-shadow: 0 20px 40px -4px rgba(99, 102, 241, 0.12);
}

.bento-icon-wrapper {
  width: 54px;
  height: 54px;
  border-radius: 1rem;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: transform 0.3s ease;
}

.bento-card:hover .bento-icon-wrapper {
  transform: scale(1.08);
}

.bento-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.775rem;
  font-weight: 700;
  background: #EEF2FF;
  color: #4F46E5;
}

.bento-title {
  font-family: var(--font-arabic);
  font-size: 1.3rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0.5rem 0 0.75rem;
  line-height: 1.45;
}

.services-bento > .bento-card:not(.bento-card--featured):not(.bento-card--featured-cyan) .bento-title {
  font-size: 1.15rem;
}

.bento-desc {
  font-family: var(--font-arabic);
  font-size: 0.925rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.bento-sub-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.bento-sub-chip {
  background: #F1F5F9;
  color: #334155;
  font-size: 0.775rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid #E2E8F0;
  transition: all 0.2s ease;
}

.bento-sub-chip:hover {
  background: #EEF2FF;
  color: #4F46E5;
  border-color: #C7D2FE;
}

.bento-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.bento-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #059669;
  font-weight: 600;
}

.bento-features li span {
  color: #334155;
}

.bento-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid #F1F5F9;
  color: #4F46E5;
  font-size: 0.9rem;
  font-weight: 700;
  margin-top: auto;
  transition: gap 0.2s ease;
}

.bento-card:hover .bento-footer {
  color: #3730A3;
}

/* --------------------------------------------------------------------------
   4. WHY US SECTION (الفارق التنافسي ومؤشرات التحول الرقمي)
   -------------------------------------------------------------------------- */
.why-us-section {
  background: #F8FAFC;
  border-top: 1px solid #E2E8F0;
  border-bottom: 1px solid #E2E8F0;
  padding: 5.5rem 0;
}

.why-us-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.why-pillars-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.why-pillar-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 1.25rem;
  padding: 1.35rem 1.5rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: all 0.25s ease;
}

.why-pillar-card:hover {
  transform: translateY(-2px);
  border-color: #C7D2FE;
  box-shadow: 0 8px 24px -2px rgba(99, 102, 241, 0.08);
}

.pillar-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 1rem;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pillar-title {
  font-family: var(--font-arabic);
  font-size: 1.125rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 0.35rem;
}

.pillar-desc {
  font-family: var(--font-arabic);
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.65;
  margin: 0;
}

/* Cockpit / Analytics Showcase Card - Luxury Light Aesthetic */
.why-cockpit-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 2rem;
  padding: 2.5rem;
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.07), 0 4px 12px rgba(15, 23, 42, 0.02);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.why-cockpit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #4F46E5 0%, #06B6D4 50%, #10B981 100%);
}

.cockpit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  border-bottom: 1px solid #F1F5F9;
  padding-bottom: 1.25rem;
}

.cockpit-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cockpit-title {
  font-family: var(--font-arabic);
  font-size: 1.2rem;
  font-weight: 800;
  color: #0F172A;
}

.cockpit-badge {
  font-size: 0.775rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: #ECFDF5;
  color: #059669;
  font-weight: 700;
  border: 1px solid #A7F3D0;
}

.cockpit-metrics-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin-bottom: 2rem;
}

.cockpit-metric-row {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 1.15rem;
  padding: 1.25rem 1.5rem;
  transition: all 0.25s ease;
}

.cockpit-metric-row:hover {
  background: #FFFFFF;
  border-color: #CBD5E1;
  box-shadow: 0 8px 20px -4px rgba(15, 23, 42, 0.05);
  transform: translateY(-2px);
}

.metric-top-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.metric-label {
  font-size: 0.9rem;
  color: #475569;
  font-weight: 700;
  font-family: var(--font-arabic);
}

.metric-value {
  font-size: 0.95rem;
  font-weight: 800;
  font-family: var(--font-arabic);
}

.metric-value--emerald {
  color: #059669;
}

.metric-value--cyan {
  color: #0284C7;
}

.metric-value--gold {
  color: #D97706;
}

.metric-progress-track {
  width: 100%;
  height: 8px;
  background: #E2E8F0;
  border-radius: 9999px;
  overflow: hidden;
}

.metric-progress-bar {
  height: 100%;
  border-radius: 9999px;
}

.metric-progress-bar--brand {
  background: linear-gradient(90deg, #4F46E5, #38BDF8);
}

.metric-progress-bar--emerald {
  background: linear-gradient(90deg, #10B981, #059669);
}

.metric-progress-bar--fire {
  background: linear-gradient(90deg, #F59E0B, #DC2626);
}

.btn-cockpit-action,
.btn-cockpit-vip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1.15rem 1.75rem;
  background: linear-gradient(135deg, #1E1B4B 0%, #312E81 50%, #4338CA 100%);
  color: #FFFFFF !important;
  font-family: var(--font-arabic);
  font-weight: 800;
  font-size: 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 25px -5px rgba(49, 46, 129, 0.35);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-cockpit-action:hover,
.btn-cockpit-vip:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -5px rgba(49, 46, 129, 0.45);
  background: linear-gradient(135deg, #312E81 0%, #3730A3 50%, #4F46E5 100%);
  color: #FFFFFF !important;
}

/* --------------------------------------------------------------------------
   5. TIMELINE / HOW WE WORK (منهجية العمل والنمو)
   -------------------------------------------------------------------------- */
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.timeline-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 1.5rem;
  padding: 2.25rem 1.75rem;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
}

.timeline-card:hover {
  transform: translateY(-5px);
  border-color: #818CF8;
  box-shadow: 0 16px 36px -4px rgba(99, 102, 241, 0.12);
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.step-num span {
  font-family: var(--font-arabic);
  font-size: 2.25rem;
  font-weight: 900;
  color: #CBD5E1;
  line-height: 1;
}

.step-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 1rem;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-title {
  font-family: var(--font-arabic);
  font-size: 1.2rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 0.75rem;
  line-height: 1.4;
}

.step-desc {
  font-family: var(--font-arabic);
  font-size: 0.925rem;
  color: #475569;
  line-height: 1.7;
  margin: 0;
}

/* --------------------------------------------------------------------------
   6. PORTFOLIO PREVIEW (سوابق الأعمال وقصص النجاح)
   -------------------------------------------------------------------------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.portfolio-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 1.5rem;
  padding: 2.25rem 2rem;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.portfolio-card:hover {
  transform: translateY(-5px);
  border-color: #38BDF8;
  box-shadow: 0 16px 36px -4px rgba(2, 132, 199, 0.12);
}

.portfolio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.portfolio-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.775rem;
  font-weight: 700;
  background: #E0F2FE;
  color: #0284C7;
}

.portfolio-title {
  font-family: var(--font-arabic);
  font-size: 1.25rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 0.75rem;
  line-height: 1.45;
}

.portfolio-desc {
  font-family: var(--font-arabic);
  font-size: 0.925rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.portfolio-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 1rem;
  padding: 1.25rem;
  text-align: center;
}

.res-item-val {
  font-family: var(--font-arabic);
  font-size: 1.5rem;
  font-weight: 900;
  color: #0F172A;
  line-height: 1.2;
}

.res-item-lbl {
  font-size: 0.8rem;
  color: #64748B;
  font-weight: 600;
  margin-top: 0.25rem;
}

/* --------------------------------------------------------------------------
   7. FAQ ACCORDION (الأسئلة الشائعة)
   -------------------------------------------------------------------------- */
.faq-wrap {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 1.25rem;
  overflow: hidden;
  transition: all 0.25s ease;
}

.faq-item:hover,
.faq-item.active {
  border-color: #C7D2FE;
  box-shadow: 0 4px 16px -2px rgba(99, 102, 241, 0.08);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.75rem;
  background: transparent;
  border: none;
  font-family: var(--font-arabic);
  font-size: 1.05rem;
  font-weight: 800;
  color: #0F172A;
  text-align: right;
  cursor: pointer;
  gap: 1rem;
}

.faq-icon-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon-arrow {
  transform: rotate(180deg);
  background: #EEF2FF;
  border-color: #C7D2FE;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.75rem;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 1.75rem 1.5rem;
}

.faq-answer p {
  font-family: var(--font-arabic);
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.8;
  margin: 0;
}

/* --------------------------------------------------------------------------
   8. RESPONSIVE BREAKPOINTS (التوافق مع الشاشات والأجهزة)
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .services-bento > .bento-card:not(.bento-card--featured):not(.bento-card--featured-cyan) {
    grid-column: span 6;
  }
}

@media (max-width: 1024px) {
  .stats-grid-luxury {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-card--featured,
  .bento-card--featured-cyan {
    grid-column: span 12;
  }
  .services-bento > .bento-card:not(.bento-card--featured):not(.bento-card--featured-cyan) {
    grid-column: span 6;
  }
  .why-us-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .timeline-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .marquee-section {
    padding: 0.85rem 0;
  }
  .marquee-item {
    font-size: 0.85rem;
    gap: 0.5rem;
  }

  .stats-luxury-section {
    padding: 2.75rem 0 2rem;
  }
  .stats-grid-luxury {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .stat-card-luxury {
    padding: 1.5rem 1.25rem;
    border-radius: 1.25rem;
  }
  .stat-icon-glow {
    width: 48px;
    height: 48px;
    margin-bottom: 0.85rem;
    border-radius: 0.85rem;
  }
  .stat-num-val {
    font-size: 2.15rem;
    margin-bottom: 0.4rem;
  }
  .stat-lbl-text {
    font-size: 0.875rem;
    max-width: 100%;
  }

  .services-bento {
    gap: 1rem;
    margin-bottom: 2rem;
  }
  .services-bento > .bento-card:not(.bento-card--featured):not(.bento-card--featured-cyan) {
    grid-column: span 12;
  }
  .bento-card {
    padding: 1.6rem 1.35rem;
    border-radius: 1.25rem;
  }
  .bento-title {
    font-size: 1.15rem;
    margin: 0.35rem 0 0.5rem;
  }
  .bento-desc {
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1.15rem;
  }
  .bento-sub-chips {
    gap: 0.35rem;
    margin-bottom: 1.15rem;
  }
  .bento-sub-chip {
    font-size: 0.725rem;
    padding: 0.25rem 0.6rem;
  }

  .why-us-section {
    padding: 3.5rem 0;
  }
  .why-us-grid {
    gap: 2rem;
  }
  .why-pillar-card {
    padding: 1rem 1.15rem;
    gap: 0.85rem;
    border-radius: 1rem;
  }
  .pillar-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 0.75rem;
  }
  .pillar-title {
    font-size: 1rem;
  }
  .pillar-desc {
    font-size: 0.825rem;
    line-height: 1.55;
  }
  .why-cockpit-card {
    padding: 1.5rem 1.25rem;
    border-radius: 1.35rem;
  }
  .cockpit-title {
    font-size: 1.05rem;
  }
  .cockpit-metric-row {
    padding: 1rem 1.15rem;
    border-radius: 0.85rem;
  }
  .metric-label {
    font-size: 0.8rem;
  }
  .metric-value {
    font-size: 0.875rem;
  }
  .btn-cockpit-action,
  .btn-cockpit-vip {
    padding: 0.85rem 1.25rem;
    font-size: 0.925rem;
    border-radius: 0.85rem;
  }

  .timeline-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .timeline-card {
    padding: 1.5rem 1.25rem;
    border-radius: 1.25rem;
  }

  .portfolio-card {
    padding: 1.5rem 1.25rem;
    border-radius: 1.25rem;
  }

  .faq-question {
    padding: 1.15rem 1.25rem;
    font-size: 0.95rem;
  }
  .faq-answer {
    padding: 0 1.25rem;
  }
  .faq-item.active .faq-answer {
    padding: 0 1.25rem 1.25rem;
  }

  .services-preview-cta-wrap {
    margin-top: 2rem !important;
    padding: 0 1rem;
  }

  .services-all-btn {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0.85rem 1.25rem !important;
    font-size: 0.9375rem !important;
    white-space: normal !important;
    text-align: center !important;
    justify-content: center !important;
  }
}

.services-all-btn {
  padding: 0.95rem 2.25rem;
  font-size: 1.05rem;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25);
}

