/* ============================================
   4jawaly Homepage Styles
   Full-width design with RTL/LTR support
   ============================================ */

/* ===== ELEMENTOR/OXYGEN WRAPPER OVERRIDES ===== */
.elementor-widget-html:has(.fj-home),
.elementor-widget-html:has(.fj-home) > .elementor-widget-container,
.e-con:has(.fj-home),
.e-con-inner:has(.fj-home),
.elementor:has(.fj-home),
.ct-section-inner-wrap:has(.fj-home),
#inner_content-3-306:has(.fj-home),
section:has(.fj-home) > .ct-section-inner-wrap { width: 100% !important; max-width: 100% !important; padding: 0 !important; margin: 0 !important; }

.elementor-145:has(.fj-home) { --container-max-width: 100% !important; width: 100% !important; max-width: 100% !important; padding: 0 !important; }
.elementor-element:has(.fj-home) { --content-width: 100% !important; max-width: 100% !important; width: 100% !important; padding: 0 !important; }

/* ===== RESET & BASE ===== */
.fj-home { font-family: 'Cairo', system-ui, -apple-system, sans-serif; direction: rtl; color: #0F172A; line-height: 1.7; width: 100vw; max-width: 100vw; margin-left: calc(-50vw + 50%); margin-right: calc(-50vw + 50%); position: relative; }
.fj-home[dir="ltr"] { direction: ltr; }
.fj-home *, .fj-home *::before, .fj-home *::after { box-sizing: border-box; }
.fj-home img { max-width: 100%; height: auto; display: block; }
.fj-home a { color: inherit; text-decoration: none; }
.fj-home .fj-container { max-width: 1400px; margin: 0 auto; padding: 0 40px; }
.fj-home ul, .fj-home ol { list-style: none; padding: 0; margin: 0; }
.fj-home p { text-align: start; }

/* ===== HERO ===== */
.fj-home .fj-hero { position: relative; background: linear-gradient(170deg, #F8FAFC 0%, #FFFFFF 60%); padding: 90px 0 100px; overflow: hidden; width: 100%; }
.fj-home .fj-hero::before { content: ''; position: absolute; top: -40%; right: -10%; width: 700px; height: 700px; background: radial-gradient(circle, rgba(107,123,216,.06), transparent 70%); pointer-events: none; }
.fj-home .fj-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.fj-home .fj-hero-badge { display: inline-flex; align-items: center; gap: 8px; background: #F0F4FF; border: 1px solid #DDE3F7; color: #5163C9; padding: 8px 18px; border-radius: 100px; font-weight: 700; font-size: 14px; margin-bottom: 24px; }
.fj-home .fj-hero-badge .dot { width: 8px; height: 8px; background: #4ADE80; border-radius: 50%; box-shadow: 0 0 0 4px rgba(74,222,128,.3); animation: fjPulseHome 2s infinite; }
@keyframes fjPulseHome { 0%,100% { box-shadow: 0 0 0 4px rgba(74,222,128,.3); } 50% { box-shadow: 0 0 0 8px rgba(74,222,128,.1); } }
.fj-home .fj-hero h1 { font-size: 46px; font-weight: 800; color: #0F172A; margin: 0 0 20px; line-height: 1.25; text-align: start; }
.fj-home .fj-hero h1 .accent { color: #6B7BD8; }
.fj-home .fj-hero h1 .accent2 { color: #FF6900; }
.fj-home .fj-hero .lead { color: #475569; font-size: 17px; margin-bottom: 30px; line-height: 1.8; text-align: start; }
.fj-home .fj-cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }
.fj-home .fj-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; border-radius: 12px; font-weight: 700; font-size: 16px; transition: all .25s; cursor: pointer; border: 2px solid transparent; font-family: inherit; }
.fj-home .fj-btn-primary { background: #FF6900; color: #fff !important; box-shadow: 0 8px 24px rgba(255,105,0,.35); }
.fj-home .fj-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(255,105,0,.45); background: #FF7A1A; }
.fj-home .fj-btn-outline { background: transparent; color: #5163C9 !important; border-color: #DDE3F7; }
.fj-home .fj-btn-outline:hover { background: #F0F4FF; border-color: #6B7BD8; }
.fj-home .fj-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 36px; padding-top: 36px; border-top: 1px solid #EEF0F7; }
.fj-home .fj-stat { text-align: center; }
.fj-home .fj-stat .num { font-size: 30px; font-weight: 800; color: #6B7BD8; line-height: 1; }
.fj-home .fj-stat .lbl { font-size: 14px; color: #64748B; margin-top: 6px; font-weight: 600; }
.fj-home .fj-hero-img { position: relative; text-align: center; display: flex; align-items: center; justify-content: center; }
.fj-home .fj-hero-img img { max-width: 520px; width: 100%; height: auto; margin: 0 auto; }

/* ===== TRUST BAR ===== */
.fj-home .fj-trust { background: #F8FAFC; padding: 50px 0; border-top: 1px solid #EEF0F7; border-bottom: 1px solid #EEF0F7; width: 100%; }
.fj-home .fj-trust-row { margin-bottom: 36px; }
.fj-home .fj-trust-row:last-child { margin-bottom: 0; }
.fj-home .fj-trust-label { text-align: center; color: #94A3B8; font-size: 14px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; margin: 0 0 22px; }
.fj-home .fj-trust-logos { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.fj-home .fj-badge { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; background: #fff; border-radius: 14px; border: 1px solid #E2E8F0; font-weight: 700; font-size: 15px; transition: all .2s; min-height: 56px; }
.fj-home .fj-badge:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15,23,42,.08); border-color: #CBD5E1; }
.fj-home .fj-badge .ico { width: 28px; height: 28px; flex-shrink: 0; }
.fj-home .fj-badge .ico svg { width: 100%; height: 100%; }
.fj-home .fj-badge.citc { color: #0000FF; background: #F0F4FF; border-color: #DDE3F7; }
.fj-home .fj-badge.meta { color: #1877F2; }
.fj-home .fj-badge.iso { color: #16A34A; }

/* ===== SECTION BASE ===== */
.fj-home .fj-section { padding: 90px 0; background: #fff; width: 100%; }
.fj-home .fj-section.alt { background: #F8FAFC; }
.fj-home .fj-section-head { text-align: center; max-width: 900px; margin: 0 auto 60px; }
.fj-home .fj-section-head .fj-eyebrow { text-align: center; }
.fj-home .fj-section-head h2 { text-align: center; }
.fj-home .fj-section-head .subtitle { text-align: center; }
.fj-home .fj-eyebrow { display: inline-block; color: #6B7BD8; font-weight: 700; font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 14px; padding: 6px 14px; background: #F0F4FF; border-radius: 100px; }
.fj-home .fj-section h2 { font-size: 38px; font-weight: 800; margin: 0 0 16px; line-height: 1.3; color: #0F172A; }
.fj-home .fj-section h2 .accent { color: #6B7BD8; }
.fj-home .fj-section .subtitle { font-size: 17px; color: #64748B; line-height: 1.8; margin: 0; }

/* ===== SERVICE CARDS ===== */
.fj-home .fj-services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.fj-home .fj-svc-card { background: #fff; border-radius: 20px; padding: 36px 28px; border: 1px solid #EEF0F7; transition: all .3s; text-align: start; }
.fj-home .fj-svc-card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(107,123,216,.12); border-color: #DDE3F7; }
.fj-home .fj-svc-card .icon { width: 60px; height: 60px; border-radius: 16px; background: #F0F4FF; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; color: #6B7BD8; }
.fj-home .fj-svc-card .icon svg { width: 32px; height: 32px; fill: currentColor; }
.fj-home .fj-svc-card h3 { font-size: 22px; font-weight: 700; margin: 0 0 12px; color: #0F172A; text-align: start; }
.fj-home .fj-svc-card p { color: #64748B; font-size: 15px; margin: 0 0 16px; line-height: 1.7; text-align: start; }
.fj-home .fj-svc-card .svc-link { color: #6B7BD8; font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; transition: gap .2s; }
.fj-home .fj-svc-card:hover .svc-link { gap: 10px; }

/* icon variants */
.fj-home .fj-svc-card .icon.sms { background: #F0F4FF; color: #6B7BD8; }
.fj-home .fj-svc-card .icon.whatsapp { background: #E8F5E9; color: #25D366; }
.fj-home .fj-svc-card .icon.otp { background: #FFF3E0; color: #FF6900; }
.fj-home .fj-svc-card .icon.api { background: #EDE7F6; color: #7C3AED; }
.fj-home .fj-svc-card .icon.marketing { background: #FCE4EC; color: #E91E63; }
.fj-home .fj-svc-card .icon.hosting { background: #E3F2FD; color: #1565C0; }
.fj-home .fj-svc-card .icon.email { background: #E0F2F1; color: #00897B; }
.fj-home .fj-svc-card .icon.social { background: #F3E5F5; color: #8E24AA; }
.fj-home .fj-svc-card .icon.dev { background: #ECEFF1; color: #37474F; }

/* ===== SPLIT (two-column content + image) ===== */
.fj-home .fj-split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.fj-home .fj-split.reverse { direction: ltr; }
.fj-home .fj-split.reverse > * { direction: rtl; }
.fj-home[dir="ltr"] .fj-split.reverse { direction: rtl; }
.fj-home[dir="ltr"] .fj-split.reverse > * { direction: ltr; }
.fj-home .fj-split h3 { font-size: 30px; font-weight: 800; margin: 0 0 16px; color: #0F172A; line-height: 1.3; text-align: start; }
.fj-home .fj-split h3 .accent { color: #6B7BD8; }
.fj-home .fj-split p { color: #475569; font-size: 16px; margin: 0 0 16px; text-align: start; }
.fj-home .fj-split-img img { border-radius: 20px; }

/* feature list with checkmark */
.fj-home .fj-feat-list li { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; color: #334155; font-size: 15px; text-align: start; }
.fj-home .fj-feat-list li::before { content: ''; flex: 0 0 22px; height: 22px; background: #6B7BD8; -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M9 16.17L4.83 12l-1.41 1.41L9 19 21 7l-1.41-1.41z'/></svg>") center/14px no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M9 16.17L4.83 12l-1.41 1.41L9 19 21 7l-1.41-1.41z'/></svg>") center/14px no-repeat; border-radius: 6px; }

/* ===== WHY US ===== */
.fj-home .fj-why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.fj-home .fj-why-card { background: #fff; border-radius: 20px; padding: 36px 28px; border: 1px solid #EEF0F7; transition: all .3s; text-align: center; }
.fj-home .fj-why-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(107,123,216,.1); border-color: #DDE3F7; }
.fj-home .fj-why-card .why-icon { width: 72px; height: 72px; border-radius: 20px; background: #F0F4FF; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.fj-home .fj-why-card .why-icon svg { width: 36px; height: 36px; flex-shrink: 0; }
.fj-home .fj-why-card h4 { font-size: 18px; font-weight: 700; margin: 0 0 10px; color: #0F172A; }
.fj-home .fj-why-card p { color: #64748B; font-size: 14px; margin: 0; line-height: 1.7; text-align: center; }

/* ===== NETWORK LOGOS ===== */
.fj-home .fj-network-row { display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; }
.fj-home .fj-net-logo { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; background: #fff; border-radius: 14px; border: 1px solid #E2E8F0; font-weight: 800; font-size: 18px; transition: all .2s; min-height: 60px; }
.fj-home .fj-net-logo:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15,23,42,.08); border-color: #CBD5E1; }
.fj-home .fj-net-logo .ico { width: 28px; height: 28px; flex-shrink: 0; }
.fj-home .fj-net-logo .ico svg { width: 100%; height: 100%; }
.fj-home .fj-net-logo.stc { color: #4F008C; }
.fj-home .fj-net-logo.mobily { color: #00A8E1; }
.fj-home .fj-net-logo.zain { color: #6E2D91; }
.fj-home .fj-net-logo.lebara { color: #EE7203; }
.fj-home .fj-net-logo.virgin { color: #E10A0A; }
.fj-home .fj-net-logo.du { color: #5F259F; }

/* ===== CLIENT LOGOS ===== */
.fj-home .fj-clients-row { display: flex; align-items: center; justify-content: center; gap: 30px; flex-wrap: wrap; }
.fj-home .fj-client-logo { height: 60px; width: auto; opacity: .7; transition: all .3s; filter: grayscale(80%); object-fit: contain; }
.fj-home .fj-client-logo:hover { opacity: 1; filter: grayscale(0); }

/* ===== CODE BLOCK ===== */
.fj-home .fj-code-card { background: #0F172A !important; border-radius: 20px; padding: 24px; box-shadow: 0 20px 60px rgba(15,23,42,.25); direction: ltr !important; text-align: left !important; overflow: auto; unicode-bidi: isolate; }
.fj-home .fj-code-card::before { content: '\25CF \25CF \25CF'; color: #475569; font-size: 12px; letter-spacing: 4px; display: block; margin-bottom: 16px; text-align: left; }
.fj-home .fj-code-card pre { margin: 0 !important; background: transparent !important; color: #E2E8F0 !important; font-family: 'JetBrains Mono', 'SF Mono', 'Consolas', 'Menlo', monospace !important; font-size: 14px !important; line-height: 1.75 !important; white-space: pre !important; direction: ltr !important; text-align: left !important; unicode-bidi: bidi-override; font-weight: 500; padding: 0 !important; border: 0 !important; }
.fj-home .fj-code-card pre * { direction: ltr; unicode-bidi: bidi-override; }
.fj-home .fj-code-card .k { color: #FF6B6B; font-weight: 700; }
.fj-home .fj-code-card .s { color: #4AEADC; }
.fj-home .fj-code-card .p { color: #82AAFF; font-weight: 600; }
.fj-home .fj-code-card .c { color: #64748B; font-style: italic; }

/* code tabs */
.fj-home .fj-code-tabs { display: flex; gap: 0; margin-bottom: 0; direction: ltr !important; }
.fj-home .fj-code-tab { padding: 10px 20px; background: #1E293B; color: #94A3B8; font-weight: 600; font-size: 14px; cursor: pointer; border: none; font-family: 'JetBrains Mono', 'SF Mono', monospace; transition: all .2s; border-radius: 12px 12px 0 0; direction: ltr; }
.fj-home .fj-code-tab.active { background: #0F172A; color: #E2E8F0; }
.fj-home .fj-code-panel { display: none; }
.fj-home .fj-code-panel.active { display: block; }
.fj-home .fj-code-card { border-radius: 0 0 20px 20px; }

/* ===== PRICING ===== */
.fj-home .fj-pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.fj-home .fj-price { background: #fff; border-radius: 20px; padding: 32px 24px; border: 2px solid #EEF0F7; transition: all .3s; position: relative; text-align: start; }
.fj-home .fj-price.featured { border-color: #6B7BD8; transform: scale(1.05); box-shadow: 0 24px 60px rgba(107,123,216,.18); }
.fj-home .fj-price.featured::before { content: attr(data-label); position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: #FF6900; color: #fff; padding: 6px 16px; border-radius: 100px; font-size: 14px; font-weight: 700; box-shadow: 0 4px 12px rgba(255,105,0,.3); white-space: nowrap; }
.fj-home .fj-price:hover:not(.featured) { transform: translateY(-4px); border-color: #6B7BD8; }
.fj-home .fj-price h4 { font-size: 18px; font-weight: 700; margin: 0 0 8px; color: #6B7BD8; text-align: start; }
.fj-home .fj-price .qty { font-size: 14px; color: #64748B; margin-bottom: 16px; }
.fj-home .fj-price .amt { font-size: 32px; font-weight: 900; color: #0F172A; line-height: 1; display: flex; align-items: baseline; gap: 6px; flex-wrap: nowrap; white-space: nowrap; }
.fj-home .fj-price .amt small { font-size: 14px; font-weight: 600; color: #64748B; white-space: nowrap; }
.fj-home .fj-price .feats { list-style: none; padding: 20px 0 0; margin: 20px 0 0; border-top: 1px solid #EEF0F7; font-size: 14px; color: #475569; }
.fj-home .fj-price .feats li { padding: 6px 0; text-align: start; }
.fj-home .fj-price .feats li::before { content: '\2713 '; color: #4ADE80; font-weight: 800; }

/* ===== FAQ ===== */
.fj-home .fj-faq { max-width: 820px; margin: 0 auto; }
.fj-home .fj-faq details { background: #fff; border: 1px solid #EEF0F7; border-radius: 16px; padding: 22px 26px; margin-bottom: 14px; transition: all .25s; }
.fj-home .fj-faq details[open] { border-color: #6B7BD8; box-shadow: 0 12px 36px rgba(107,123,216,.12); }
.fj-home .fj-faq summary { cursor: pointer; font-weight: 700; font-size: 17px; color: #0F172A; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; text-align: start; }
.fj-home .fj-faq summary::-webkit-details-marker { display: none; }
.fj-home .fj-faq summary::after { content: '+'; font-size: 26px; color: #6B7BD8; font-weight: 400; transition: transform .25s; line-height: 1; }
.fj-home .fj-faq details[open] summary::after { content: '\2212'; transform: rotate(180deg); }
.fj-home .fj-faq details p { margin: 14px 0 0; color: #475569; font-size: 15px; line-height: 1.8; text-align: start; }

/* ===== FINAL CTA ===== */
.fj-home .fj-final { background: linear-gradient(135deg, #6B7BD8 0%, #5163C9 100%); padding: 100px 0; text-align: center; position: relative; overflow: hidden; width: 100%; }
.fj-home .fj-final::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 50%, rgba(255,255,255,.1), transparent 50%); }
.fj-home .fj-final-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; padding: 0 20px; }
.fj-home .fj-final h2 { font-size: 42px; color: #fff; margin: 0 0 16px; font-weight: 800; text-align: center; }
.fj-home .fj-final p { color: rgba(255,255,255,.95); font-size: 19px; margin: 0 0 32px; text-align: center; }
.fj-home .fj-btn-white { background: #fff; color: #5163C9 !important; box-shadow: 0 8px 24px rgba(0,0,0,.15); }
.fj-home .fj-btn-white:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,.2); }
.fj-home .fj-btn-ghost { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.4); }
.fj-home .fj-btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }

/* ===== COUNTERS ===== */
.fj-home .fj-counters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.fj-home .fj-counter { background: #fff; border-radius: 20px; padding: 32px 20px; text-align: center; border: 1px solid #EEF0F7; transition: all .3s; }
.fj-home .fj-counter:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(107,123,216,.12); border-color: #DDE3F7; }
.fj-home .fj-counter .num { font-size: 42px; font-weight: 900; color: #6B7BD8; line-height: 1; }
.fj-home .fj-counter .lbl { color: #64748B; font-size: 14px; margin-top: 10px; font-weight: 600; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .fj-home .fj-container { padding: 0 24px; }
}

@media (max-width: 980px) {
  .fj-home .fj-hero-grid,
  .fj-home .fj-split { grid-template-columns: 1fr; }
  .fj-home .fj-services-grid,
  .fj-home .fj-why-grid,
  .fj-home .fj-pricing { grid-template-columns: 1fr 1fr; }
  .fj-home .fj-counters { grid-template-columns: 1fr 1fr; }
  .fj-home .fj-stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .fj-home .fj-hero h1 { font-size: 34px; }
  .fj-home .fj-section h2, .fj-home .fj-final h2 { font-size: 28px; }
  .fj-home .fj-section { padding: 60px 0; }
  .fj-home .fj-hero { padding: 60px 0; }
  .fj-home .fj-price.featured { transform: none; }
  .fj-home .fj-split h3 { font-size: 24px; }
  .fj-home .fj-hero-img img { max-width: 400px; }
}

@media (max-width: 580px) {
  .fj-home .fj-services-grid,
  .fj-home .fj-why-grid,
  .fj-home .fj-pricing { grid-template-columns: 1fr; }
  .fj-home .fj-counters { grid-template-columns: 1fr 1fr; }
  .fj-home .fj-hero h1 { font-size: 28px; }
  .fj-home .fj-network-row { gap: 10px; }
  .fj-home .fj-net-logo { padding: 10px 16px; font-size: 15px; min-height: 48px; }
  .fj-home .fj-clients-row { gap: 16px; }
  .fj-home .fj-client-logo { height: 36px; }
  .fj-home .fj-container { padding: 0 16px; }
  .fj-home .fj-hero-img img { max-width: 300px; }
}

/* ===== OVERFLOW GUARD ===== */
html, body { overflow-x: clip; max-width: 100vw; }
