/*
 * Nasser4DMS — الأبيض المجسّم / Pearl
 * Presentation layer only. The original theme owns content, navigation and forms.
 * 8px rhythm; white ceramic, editorial space, navy type and turquoise detail.
 */
body.n4d-3d {
  --n4d-navy: #184878;
  --n4d-ink: #10304f;
  --n4d-teal: #338ab0;
  --n4d-cyan: #3dc6dc;
  --n4d-gold: #338ab0;
  --n4d-electric: #3dc6dc;
  --n4d-electric-soft: #338ab0;
  --n4d-night: #10304f;
  --n4d-night-2: #184878;
  --n4d-glow: rgba(61, 198, 220, .12);
  --n4d-muted: #557089;
  --n4d-bg: #f5f9fc;
  --n4d-ice: #eaf6fb;
  --n4d-surface: #fff;
  --n4d-line: #dce8f1;
  --n4d-ok: #184878;
  --n4d-danger: #184878;
  --n4d-radius-xl: 8px;
  --n4d-radius-lg: 8px;
  --n4d-radius-md: 4px;
  --n4d-radius-sm: 4px;
  --n4d-wrap: 1200px;
  --pearl-raised: 0 2px 3px rgba(16, 48, 79, .035), 0 24px 40px -30px rgba(16, 48, 79, .25), inset 0 1px 0 #fff;
  --pearl-inset: inset 0 2px 5px rgba(16, 48, 79, .045), inset 0 -1px 0 #fff;
  --n4d-shadow: var(--pearl-raised);
  --n4d-shadow-soft: 0 16px 32px -24px rgba(16, 48, 79, .2);
  --pearl-ease: cubic-bezier(.2, .65, .3, 1);
  margin: 0;
  background: #fff;
  color: var(--n4d-ink);
  font-family: 'Al-Mohanad', 'Segoe UI', Tahoma, sans-serif;
  font-size: 20px;
  line-height: 1.9;
  direction: rtl;
}
body.n4d-3d .wrap { width: min(var(--n4d-wrap), calc(100% - 64px)); }
body.n4d-3d :is(main, .wrap, .hero-copy, .hero-art, .form-card, .contact-panel, .post-card, .footer-col, .footer-brand-col) { min-width: 0; }
body.n4d-3d :is(h1, h2, h3, h4, p, li, a, summary) { overflow-wrap: break-word; text-wrap: pretty; }
body.n4d-3d :is(h1, .section-title, .cta-band h2) { text-align: center; text-wrap: balance; }
body.n4d-3d :is(article, .prose, .form-card, .contact-panel, .footer-main) { text-align: right; }
body.n4d-3d a { color: var(--n4d-navy); text-decoration-color: rgba(51, 138, 176, .5); text-underline-offset: 5px; }
body.n4d-3d a:hover { color: var(--n4d-teal); }
body.n4d-3d :focus-visible { outline: 3px solid var(--n4d-teal); outline-offset: 4px; }
body.n4d-3d .skip-link { border-radius: 4px; color: #fff; }
body.n4d-3d .skip-link:focus { transform: none; }
body.n4d-3d .reveal { opacity: 1; }
body.n4d-3d .reveal:not(.n4d-tilt) { transform: none; }

/* Quiet masthead: the original brand image is untouched. */
body.n4d-3d .site-header,
body.n4d-3d .site-header.is-scrolled {
  background: #fff;
  border-bottom: 1px solid var(--n4d-line);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.n4d-3d .site-header.is-scrolled { box-shadow: 0 8px 24px -20px rgba(16, 48, 79, .25); }
@supports ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
  body.n4d-3d .site-header { background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
  body.n4d-3d .site-header.is-scrolled { background: rgba(255, 255, 255, .97); }
}
body.n4d-3d .header-inner { min-height: 88px; gap: 24px; }
body.n4d-3d .brand { max-width: 176px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
body.n4d-3d .brand img,
body.n4d-3d .brand .custom-logo { width: 144px; max-width: 100%; max-height: 72px; object-fit: contain; filter: none; opacity: 1; }
body.n4d-3d .main-nav .menu { gap: 8px; }
body.n4d-3d .main-nav .menu a { min-height: 44px; padding: 12px; border-radius: 2px; color: var(--n4d-ink); font-size: 17px; font-weight: 700; }
body.n4d-3d .main-nav .menu a:hover,
body.n4d-3d .main-nav .menu a:focus-visible,
body.n4d-3d .main-nav .current-menu-item > a,
body.n4d-3d .main-nav .current_page_item > a { background: var(--n4d-bg); color: var(--n4d-navy); }
body.n4d-3d .main-nav .sub-menu { background: #fff; border-color: var(--n4d-line); border-radius: 4px; box-shadow: var(--pearl-raised); }
body.n4d-3d .nav-toggle { width: 48px; height: 48px; border-radius: 4px; border-color: var(--n4d-line); background: #fff; color: var(--n4d-navy); box-shadow: var(--pearl-raised); }
body.n4d-3d .nav-toggle:hover { background: var(--n4d-bg); }
body.n4d-3d .nav-toggle:active { box-shadow: var(--pearl-inset); }

/* Ceramic controls: raised at rest, slightly pressed during activation. */
body.n4d-3d .btn {
  min-height: 56px;
  padding: 16px 24px;
  gap: 12px;
  border-radius: 4px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.45;
  white-space: normal;
  transition: color .2s, background .2s, border-color .2s, box-shadow .2s, transform .25s var(--pearl-ease);
}
body.n4d-3d .btn-primary,
body.n4d-3d .btn-gold,
body.n4d-3d .cta-band .btn:not(.btn-secondary) {
  border: 1px solid var(--n4d-navy);
  background: linear-gradient(180deg, #184878, #10304f);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .17), 0 14px 20px -16px rgba(16, 48, 79, .65);
}
body.n4d-3d .btn-primary:hover,
body.n4d-3d .btn-primary:focus,
body.n4d-3d .btn-gold:hover,
body.n4d-3d .cta-band .btn:not(.btn-secondary):hover { background: #184878; color: #fff; border-color: #184878; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 18px 24px -17px rgba(16, 48, 79, .55); }
body.n4d-3d .btn-secondary,
body.n4d-3d .hero .btn-secondary,
body.n4d-3d .page-hero .btn-secondary,
body.n4d-3d .cta-band .btn-secondary { background: #fff; color: var(--n4d-navy); border: 1px solid var(--n4d-line); box-shadow: var(--pearl-raised); }
body.n4d-3d .btn-secondary:hover,
body.n4d-3d .hero .btn-secondary:hover,
body.n4d-3d .page-hero .btn-secondary:hover,
body.n4d-3d .cta-band .btn-secondary:hover { background: var(--n4d-bg); color: var(--n4d-navy); border-color: var(--n4d-teal); }
body.n4d-3d .btn:hover { transform: translateY(-2px); }
body.n4d-3d .btn:active { transform: translateY(1px); box-shadow: inset 0 2px 4px rgba(16, 48, 79, .15); }
body.n4d-3d :is(button, input[type=submit]):disabled { opacity: .6; cursor: wait; transform: none; box-shadow: none; }
body.n4d-3d .header-cta { min-height: 48px; padding: 12px 16px; font-size: 16px; white-space: nowrap; }
body.n4d-3d .text-link { min-height: 44px; margin-top: 8px; color: var(--n4d-navy); border-bottom: 1px solid var(--n4d-teal); border-radius: 0; }
body.n4d-3d .text-link:hover { color: var(--n4d-teal); border-color: var(--n4d-cyan); }
body.n4d-3d .text-link:active { color: var(--n4d-ink); }

/* Full-width centered statement; asymmetric copy and artwork beneath it. */
body.n4d-3d .hero,
body.n4d-3d.home .hero { padding: 56px 0 0; overflow: visible; isolation: isolate; background: #fff; color: var(--n4d-ink); }
body.n4d-3d .hero::before,
body.n4d-3d.home .hero::before,
body.n4d-3d .hero::after { content: none; }
body.n4d-3d .hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; min-height: 0; }
body.n4d-3d .pearl-hero-heading { max-width: 1080px; width: 100%; margin-inline: auto; text-align: center; }
body.n4d-3d .hero .eyebrow { padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--n4d-teal); font-size: 17px; font-weight: 700; line-height: 1.7; box-shadow: none; }
body.n4d-3d .hero .eyebrow-dot { width: 6px; height: 6px; border-radius: 1px; background: var(--n4d-teal); box-shadow: none; }
body.n4d-3d .hero h1,
body.n4d-3d.home .hero h1 {
  max-width: 1040px;
  margin: 24px auto 0;
  color: var(--n4d-navy);
  font-size: clamp(42px, 5.1vw, 74px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.025em;
  text-shadow: none;
  text-align: center;
}
body.n4d-3d .hero-accent { display: block; color: var(--n4d-teal); text-shadow: none; }
body.n4d-3d .pearl-hero-body { display: grid; grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr); align-items: center; gap: clamp(32px, 5vw, 72px); perspective: 1600px; }
body.n4d-3d .hero-copy { padding: 24px 0 24px 8px; text-align: right; }
body.n4d-3d .hero-lead { max-width: 464px; margin: 0 0 24px; color: var(--n4d-muted); font-size: clamp(20px, 1.7vw, 23px); line-height: 1.95; }
body.n4d-3d .hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
body.n4d-3d .hero-note { max-width: 432px; margin: 16px 0 0; color: var(--n4d-muted); font-size: 16px; line-height: 1.9; }
body.n4d-3d .hero-art,
body.n4d-3d.home .hero-art { display: block; position: relative; width: 100%; max-width: none; margin: 0; isolation: isolate; perspective: 1400px; transform-style: preserve-3d; }
body.n4d-3d .hero-art::before { content: none; }
body.n4d-3d .hero-art::after { content: ''; position: absolute; z-index: -1; inset: auto 9% -8px; height: 32px; background: rgba(16, 48, 79, .1); filter: blur(16px); border-radius: 50%; pointer-events: none; }
body.n4d-3d .hero-art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--n4d-line);
  border-radius: 8px;
  filter: none;
  box-shadow: 0 1px 3px rgba(16, 48, 79, .04), 0 24px 40px -32px rgba(16, 48, 79, .25);
  animation: none;
}
body.n4d-3d .n4d-tilt {
  --lift: 0px;
  transform: perspective(1400px) rotateX(calc(var(--tilt-x, 0deg) * .6)) rotateY(calc(var(--tilt-y, 0deg) * .6)) translateY(var(--lift));
  transform-style: preserve-3d;
  transition: transform .35s var(--pearl-ease), box-shadow .3s, border-color .3s;
}
body.n4d-3d .hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 8px;
  padding: 24px 0;
  border-block: 1px solid var(--n4d-line);
  background: #fff;
}
body.n4d-3d .proof-card { padding: 8px 32px; border: 0; border-inline-end: 1px solid var(--n4d-line); border-radius: 0; background: transparent; box-shadow: none; color: var(--n4d-muted); font-size: 17px; text-align: right; line-height: 1.8; }
body.n4d-3d .proof-card:first-child { padding-inline-start: 0; }
body.n4d-3d .proof-card:last-child { border-inline-end: 0; }
body.n4d-3d .proof-card strong { margin: 0 0 4px; color: var(--n4d-navy); font-size: 25px; line-height: 1.6; }

/* Each section has a distinct material and information rhythm. */
body.n4d-3d .section { padding: clamp(64px, 7.5vw, 104px) 0; }
body.n4d-3d .section-soft { background: var(--n4d-bg); }
body.n4d-3d .section-dark { background: #184878; color: #fff; }
body.n4d-3d .section-head { display: block; margin-bottom: 48px; text-align: center; }
body.n4d-3d .section-title { max-width: 880px; margin-inline: auto; color: var(--n4d-navy); font-size: clamp(32px, 3.25vw, 46px); font-weight: 800; line-height: 1.45; letter-spacing: -.02em; text-align: center; }
body.n4d-3d .section-lead { max-width: 680px; margin: 16px auto 0; color: var(--n4d-muted); font-size: 20px; line-height: 1.9; text-align: center; }
body.n4d-3d .section-dark .section-title { color: #fff; }
body.n4d-3d .section-dark .section-lead,
body.n4d-3d .section-dark a { color: #fff; }
body.n4d-3d .gold-rule { width: 40px; height: 2px; margin: 0 auto 24px; border-radius: 0; background: var(--n4d-teal); }
body.n4d-3d :is(.n4d-grid-4, .n4d-grid-3, .n4d-grid-2, .service-grid, .service-list, .service-benefit-grid, .services-feature-grid) { gap: 24px; }
body.n4d-3d .step-card { position: relative; padding: 32px; border: 1px solid var(--n4d-line); border-radius: 4px; background: #fff; box-shadow: var(--pearl-raised); }
body.n4d-3d .step-card h3 { margin: 0 0 12px; color: var(--n4d-navy); font-size: 24px; font-weight: 800; line-height: 1.55; }
body.n4d-3d .step-card p { margin: 0; color: var(--n4d-muted); font-size: 19px; line-height: 1.95; }
body.n4d-3d .pearl-problem-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
body.n4d-3d .pearl-problem-grid .step-card { padding: 32px 0; border: 0; border-top: 1px solid var(--n4d-line); border-radius: 0; background: transparent; box-shadow: none; }
body.n4d-3d .pearl-problem-grid .step-card p { max-width: 464px; }
body.n4d-3d .pearl-services { background: linear-gradient(180deg, #f5f9fc, #fff); border-block: 1px solid var(--n4d-line); }
body.n4d-3d .pearl-service-grid { grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); gap: 24px; perspective: 1600px; }
body.n4d-3d .pearl-service-card { padding: 40px; border-color: rgba(24, 72, 120, .12); background: linear-gradient(145deg, #fff 70%, #f5f9fc); box-shadow: var(--pearl-raised); }
body.n4d-3d .pearl-service-card h3 { font-size: 29px; }
body.n4d-3d .pearl-service-card p { max-width: 456px; }
body.n4d-3d .pearl-card-detail { display: block; width: 40px; height: 8px; margin-bottom: 32px; border: 1px solid rgba(51, 138, 176, .25); border-radius: 2px; background: #eaf6fb; box-shadow: inset 0 2px 3px rgba(24, 72, 120, .08), 0 1px 0 #fff; }
body.n4d-3d .n4d-section-link { margin: 32px 0 0; text-align: center; }
body.n4d-3d .about-steps { gap: 24px; }
body.n4d-3d .step-number { width: 48px; height: 48px; margin-bottom: 24px; border: 1px solid var(--n4d-line); border-radius: 4px; background: #fff; box-shadow: var(--pearl-raised); color: var(--n4d-teal); font-size: 24px; line-height: 1; }
body.n4d-3d .pearl-process-line { gap: 0; }
body.n4d-3d .pearl-process-line .step-card { padding: 0 24px 0 32px; border: 0; border-top: 1px solid var(--n4d-line); border-radius: 0; background: transparent; box-shadow: none; }
body.n4d-3d .pearl-process-line .step-card:first-child { padding-inline-start: 0; }
body.n4d-3d .pearl-process-line .step-number { position: relative; margin-top: -24px; margin-bottom: 32px; }
body.n4d-3d .pearl-why { background: #f5f9fc; box-shadow: inset 0 1px 0 var(--n4d-line), inset 0 -1px 0 var(--n4d-line); }
body.n4d-3d .pearl-reason-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 40px; }
body.n4d-3d .pearl-reason-grid .step-card { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px; align-items: start; padding: 32px; background: #f5f9fc; box-shadow: var(--pearl-inset); }
body.n4d-3d .pearl-reason-grid .step-card h3 { margin: 0; font-size: 23px; }
body.n4d-3d .pearl-reason-grid .step-card p { font-size: 18px; }

/* Native details remain fully usable without JavaScript. */
body.n4d-3d .n4d-faq-wrap { max-width: 896px; }
body.n4d-3d .n4d-faq { gap: 0; border-top: 1px solid var(--n4d-line); }
body.n4d-3d .n4d-faq-item { border: 0; border-bottom: 1px solid var(--n4d-line); border-radius: 0; background: #fff; transition: background .2s; }
body.n4d-3d .n4d-faq-item summary { min-height: 80px; padding: 24px 16px; font-size: 22px; font-weight: 700; line-height: 1.65; border-radius: 0; }
body.n4d-3d .n4d-faq-item summary::after { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--n4d-line); border-radius: 2px; background: #fff; color: var(--n4d-teal); font-size: 24px; }
body.n4d-3d .n4d-faq-item summary:hover { color: var(--n4d-teal); background: var(--n4d-bg); }
body.n4d-3d .n4d-faq-item summary:focus-visible { border-radius: 0; outline: 3px solid var(--n4d-teal); outline-offset: 3px; }
body.n4d-3d .n4d-faq-item summary:active::after { box-shadow: var(--pearl-inset); }
body.n4d-3d .n4d-faq-item[open] { background: var(--n4d-bg); }
body.n4d-3d .n4d-faq-item p { padding: 0 16px 24px 64px; color: var(--n4d-muted); font-size: 19px; }

/* A luminous closing surface rather than a dark banner. */
body.n4d-3d .pearl-closing { padding-top: 40px; background: #fff; }
body.n4d-3d .cta-band { display: flex; flex-direction: column; gap: 24px; overflow: visible; padding: clamp(32px, 5vw, 64px); border: 1px solid var(--n4d-line); border-radius: 8px; background: linear-gradient(160deg, #fff 40%, #eaf6fb); box-shadow: var(--pearl-raised); color: var(--n4d-ink); text-align: center; }
body.n4d-3d .cta-band::after { content: none; }
body.n4d-3d .cta-band h2 { max-width: 760px; margin: 0 auto 16px; color: var(--n4d-navy); font-size: clamp(30px, 3.2vw, 46px); line-height: 1.5; text-align: center; }
body.n4d-3d .cta-band p { margin: 0; color: var(--n4d-muted); font-size: 20px; }
body.n4d-3d .cta-band .hero-actions { justify-content: center; }
body.n4d-3d .cta-band .btn { margin-top: 0; }

/* Inner-page editorial system. */
body.n4d-3d .breadcrumbs { padding-top: 24px; gap: 12px; color: var(--n4d-muted); font-size: 16px; }
body.n4d-3d .breadcrumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--n4d-navy); }
body.n4d-3d .page-hero { overflow: visible; padding: clamp(48px, 6vw, 80px) 0; border-bottom: 1px solid var(--n4d-line); background: #fff; color: var(--n4d-ink); }
body.n4d-3d .page-hero::after { content: none; }
body.n4d-3d .page-hero h1 { max-width: 960px; margin: 0 auto 24px; color: var(--n4d-navy); font-size: clamp(38px, 4.7vw, 66px); font-weight: 800; line-height: 1.35; letter-spacing: -.025em; text-align: center; }
body.n4d-3d .page-hero p { max-width: 760px; margin-inline: auto; color: var(--n4d-muted); font-size: 22px; line-height: 1.95; text-align: right; }
body.n4d-3d .page-hero .breadcrumbs { color: var(--n4d-muted); }
body.n4d-3d .page-hero .breadcrumbs a { color: var(--n4d-navy); }
body.n4d-3d .page-hero .hero-actions { justify-content: center; margin-top: 32px; }
body.n4d-3d .page-content { padding: 64px 0 96px; }
body.n4d-3d .prose { max-width: 864px; color: var(--n4d-ink); font-size: 21px; line-height: 2; }
body.n4d-3d .prose :is(h2, h3, h4) { margin: 48px 0 16px; color: var(--n4d-navy); line-height: 1.5; }
body.n4d-3d .prose h2 { font-size: clamp(30px, 2.7vw, 38px); }
body.n4d-3d .prose h3 { font-size: 27px; }
body.n4d-3d .prose p { margin: 0 0 24px; }
body.n4d-3d .prose :is(ul, ol) { padding-inline-start: 24px; }
body.n4d-3d .prose li { margin-bottom: 8px; }
body.n4d-3d .prose li::marker { color: var(--n4d-teal); }
body.n4d-3d .prose blockquote { margin: 32px 0; padding: 24px 32px; border: 0; border-block: 1px solid var(--n4d-line); background: var(--n4d-bg); color: var(--n4d-navy); box-shadow: var(--pearl-inset); }
body.n4d-3d .prose blockquote p:last-child { margin-bottom: 0; }
body.n4d-3d .prose :is(img, figure) { max-width: 100%; height: auto; border-radius: 4px; }
body.n4d-3d .prose :is(pre, .wp-block-table) { max-width: 100%; overflow-x: auto; }
body.n4d-3d .prose pre { padding: 24px; border: 1px solid var(--n4d-line); border-radius: 4px; background: var(--n4d-bg); }
body.n4d-3d .prose table { display: block; width: 100%; max-width: 100%; overflow-x: auto; }
body.n4d-3d .prose th { background: var(--n4d-bg); color: var(--n4d-navy); }
body.n4d-3d .prose :is(th, td) { padding: 16px; border-color: var(--n4d-line); }
body.n4d-3d .prose .wp-block-button__link { min-height: 48px; padding: 16px 24px; border-radius: 4px; background: var(--n4d-navy); color: #fff; }
body.n4d-3d .prose .about-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 40px 0; }
body.n4d-3d .prose .step-card h3 { margin: 0 0 12px; }
body.n4d-3d .prose .step-card p { font-size: 19px; }
body.n4d-3d .prose .cta-band { margin-top: 48px; }
body.n4d-3d .prose .cta-band h2 { margin-top: 0; }
body.n4d-3d .n4d-checklist { gap: 16px; }
body.n4d-3d .n4d-checklist li { padding: 24px 56px 24px 24px; border-radius: 4px; background: #fff; box-shadow: var(--pearl-raised); }
body.n4d-3d .n4d-checklist li::before { inset-inline-start: 24px; inset-block-start: 26px; border-radius: 2px; background: var(--n4d-bg); color: var(--n4d-teal); }
body.n4d-3d .benefit-panel { padding: 32px; border-radius: 4px; background: var(--n4d-bg); box-shadow: var(--pearl-inset); }
body.n4d-3d .service-detail-hero { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 48px; padding: 64px 0; }
body.n4d-3d .service-detail-hero h1 { color: var(--n4d-navy); font-size: clamp(38px, 4.5vw, 62px); line-height: 1.4; text-align: center; }
body.n4d-3d .service-detail-art img { border: 1px solid var(--n4d-line); border-radius: 8px; box-shadow: var(--pearl-raised); }

/* Forms are unchanged; inset fields sit inside a raised sheet. */
body.n4d-3d .form-layout { grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: 40px; padding: 64px 0 96px; }
body.n4d-3d .contact-panel { padding: 32px; border-radius: 4px; background: var(--n4d-bg); box-shadow: var(--pearl-inset); }
body.n4d-3d .contact-panel h2 { margin: 0 0 24px; color: var(--n4d-navy); font-size: 28px; line-height: 1.6; }
body.n4d-3d .contact-item { padding: 16px 0; gap: 16px; }
body.n4d-3d .contact-item-icon { width: 40px; height: 40px; flex-basis: 40px; border: 1px solid var(--n4d-line); border-radius: 4px; background: #fff; color: var(--n4d-teal); box-shadow: var(--pearl-raised); }
body.n4d-3d .contact-item :is(a, span) { color: var(--n4d-muted); font-size: 18px; }
body.n4d-3d .contact-item a { display: inline-flex; align-items: center; min-height: 44px; }
body.n4d-3d .contact-item a:hover { color: var(--n4d-navy); }
body.n4d-3d .form-card { padding: 40px; border-radius: 8px; background: #fff; box-shadow: var(--pearl-raised); }
body.n4d-3d .form-card h2 { margin: 0 0 8px; font-size: 32px; line-height: 1.6; }
body.n4d-3d .form-intro { margin-bottom: 24px; font-size: 18px; }
body.n4d-3d .form-grid { gap: 24px 16px; }
body.n4d-3d .form-field { gap: 8px; }
body.n4d-3d .form-field :is(label, .field-label) { font-size: 18px; }
body.n4d-3d .form-field :is(input, select, textarea) { min-width: 0; min-height: 56px; padding: 14px 16px; border: 1px solid var(--n4d-line); border-radius: 4px; background: var(--n4d-bg); box-shadow: var(--pearl-inset); color: var(--n4d-ink); }
body.n4d-3d .form-field textarea { min-height: 160px; }
body.n4d-3d .form-field :is(input, select, textarea):hover { border-color: rgba(51, 138, 176, .5); }
body.n4d-3d .form-field :is(input, select, textarea):focus { outline: 2px solid var(--n4d-teal); outline-offset: 2px; border-color: var(--n4d-teal); background: #fff; box-shadow: var(--pearl-inset); }
body.n4d-3d .form-field :is(input, textarea)::placeholder { color: var(--n4d-muted); opacity: .8; }
body.n4d-3d .form-field :is(input, select, textarea)[aria-invalid=true] { outline: 2px solid var(--n4d-navy); border-style: dashed; }
body.n4d-3d .required-mark { color: var(--n4d-navy); }
body.n4d-3d .form-actions { margin-top: 32px; gap: 16px; }
body.n4d-3d .form-help { margin: 16px 0 0; font-size: 16px; }
body.n4d-3d .form-status { padding: 16px; border: 1px solid var(--n4d-teal); border-radius: 4px; background: var(--n4d-ice); color: var(--n4d-navy); }
body.n4d-3d .quote-benefits { gap: 20px; margin-top: 24px; }
body.n4d-3d .quote-benefit { gap: 12px; font-size: 18px; }
body.n4d-3d .quote-benefit::before { border: 1px solid var(--n4d-line); border-radius: 2px; background: #fff; color: var(--n4d-teal); }
body.n4d-3d .check-option { min-height: 48px; padding: 12px; border-radius: 4px; }
body.n4d-3d .check-option input { accent-color: var(--n4d-teal); }

/* Blog: airy editorial covers, not a uniform dashboard. */
body.n4d-3d .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
body.n4d-3d .post-card { border: 0; border-radius: 0; background: transparent; box-shadow: none; transition: transform .25s var(--pearl-ease); }
body.n4d-3d .post-card-media { border: 1px solid var(--n4d-line); border-radius: 4px; background: var(--n4d-bg); box-shadow: var(--pearl-raised); }
body.n4d-3d .post-card-media img { transform: none; }
body.n4d-3d .post-card:hover { transform: translateY(-3px); box-shadow: none; }
body.n4d-3d .post-card:hover .post-card-media img { transform: none; }
body.n4d-3d .post-placeholder { background: linear-gradient(145deg, #fff, #eaf6fb); }
body.n4d-3d .post-card-body { padding: 24px 0 16px; border-bottom: 1px solid var(--n4d-line); }
body.n4d-3d .post-meta { color: var(--n4d-muted); font-size: 16px; gap: 8px; }
body.n4d-3d .post-meta a { color: var(--n4d-navy); }
body.n4d-3d .post-card h2 { margin: 16px 0 12px; font-size: 27px; line-height: 1.55; }
body.n4d-3d .post-card p { font-size: 19px; line-height: 1.9; }
body.n4d-3d .post-card .text-link { margin-top: 16px; font-size: 17px; }
body.n4d-3d .blog-categories { gap: 12px; margin-bottom: 40px; }
body.n4d-3d :is(.blog-categories a, .filter-button, .post-tags a) { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1px solid var(--n4d-line); border-radius: 4px; background: #fff; color: var(--n4d-navy); }
body.n4d-3d :is(.blog-categories a:hover, .blog-categories a.is-active, .filter-button:hover, .filter-button.is-active) { border-color: var(--n4d-navy); background: var(--n4d-navy); color: #fff; }
body.n4d-3d .page-numbers { min-width: 48px; min-height: 48px; padding: 8px 16px; border-radius: 4px; color: var(--n4d-navy); }
body.n4d-3d :is(.page-numbers.current, .page-numbers:hover) { background: var(--n4d-navy); border-color: var(--n4d-navy); color: #fff; }
body.n4d-3d .single-post-header { max-width: 960px; padding: 64px 0 40px; }
body.n4d-3d .single-post-header h1 { margin: 24px auto; color: var(--n4d-navy); font-size: clamp(38px, 4.6vw, 64px); line-height: 1.4; text-align: center; }
body.n4d-3d .single-post-header .post-meta { justify-content: center; }
body.n4d-3d .single-post-image { margin-bottom: 48px; border-radius: 4px; box-shadow: var(--pearl-raised); }
body.n4d-3d .post-content { padding-bottom: 96px; }
body.n4d-3d .post-content .prose { font-size: 21px; line-height: 2; }

/* Retained legacy surfaces remain coherent if existing content reaches them. */
body.n4d-3d :is(.service-card, .service-list .service-card, .service-feature, .work-card) { border-color: var(--n4d-line); border-radius: 4px; background: #fff; box-shadow: var(--pearl-raised); }
body.n4d-3d .service-card { padding: 24px; }
body.n4d-3d :is(.service-card:hover, .service-list .service-card:hover, .service-feature:hover) { transform: translateY(-3px); border-color: var(--n4d-teal); box-shadow: var(--pearl-raised); }
body.n4d-3d :is(.service-icon, .service-list .service-icon) { border: 1px solid var(--n4d-line); border-radius: 4px; background: var(--n4d-bg); color: var(--n4d-navy); box-shadow: var(--pearl-inset); }
body.n4d-3d .service-list .service-card:focus-visible { border-color: var(--n4d-teal); box-shadow: var(--pearl-raised); }
body.n4d-3d :is(.work-category, .post-category) { color: var(--n4d-teal); }
body.n4d-3d .work-thumb { background: var(--n4d-bg); }
body.n4d-3d .work-open:hover .work-thumb img { transform: none; }
body.n4d-3d .work-dialog { border-radius: 8px; box-shadow: var(--pearl-raised); }
body.n4d-3d .dialog-close { min-width: 48px; min-height: 48px; border-radius: 4px; }
body.n4d-3d .empty-state { padding: 40px; border-radius: 4px; border-color: var(--n4d-line); background: var(--n4d-bg); }
body.n4d-3d .error-404 { padding: 80px 0; }
body.n4d-3d .error-404 .error-code { color: var(--n4d-teal); }
body.n4d-3d .search-form { gap: 16px; }
body.n4d-3d .search-form label { min-width: 0; }
body.n4d-3d .search-form input[type=search] { min-height: 56px; border-radius: 4px; background: var(--n4d-bg); box-shadow: var(--pearl-inset); }
body.n4d-3d .search-form input[type=submit] { min-height: 56px; border-radius: 4px; background: var(--n4d-navy); }

/* White footer closes the page like the colophon of an editorial piece. */
body.n4d-3d .site-footer { border-top: 1px solid var(--n4d-line); background: #fff; color: var(--n4d-ink); }
body.n4d-3d .footer-main { grid-template-columns: minmax(0, 1.5fr) minmax(0, .65fr) minmax(0, 1fr); gap: 64px; padding: 64px 0 48px; }
body.n4d-3d .footer-brand { margin-bottom: 24px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
body.n4d-3d .footer-brand img { width: 168px; height: auto; filter: none; opacity: 1; }
body.n4d-3d .footer-brand-col p { max-width: 400px; margin-bottom: 24px; color: var(--n4d-muted); font-size: 19px; line-height: 1.9; }
body.n4d-3d .footer-col h2 { margin: 8px 0 24px; color: var(--n4d-navy); font-size: 23px; }
body.n4d-3d .footer-col li { margin: 0; }
body.n4d-3d .footer-col a { display: inline-flex; align-items: center; min-height: 44px; color: var(--n4d-ink); font-size: 18px; overflow-wrap: anywhere; }
body.n4d-3d .footer-col a:hover { color: var(--n4d-teal); }
body.n4d-3d .footer-contact p { margin-bottom: 8px; color: var(--n4d-muted); font-size: 18px; }
body.n4d-3d .footer-whatsapp { min-height: 48px; margin-top: 16px; padding: 12px 16px; border: 1px solid var(--n4d-line); border-radius: 4px; background: var(--n4d-bg); }
body.n4d-3d .footer-whatsapp:hover { border-color: var(--n4d-teal); color: var(--n4d-navy); }
body.n4d-3d .social-links { gap: 8px; }
body.n4d-3d .social-links a,
body.n4d-3d .contact-panel .social-links a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 12px; border: 1px solid var(--n4d-line); border-radius: 2px; background: #fff; color: var(--n4d-navy); font-size: 16px; }
body.n4d-3d .social-links a:hover,
body.n4d-3d .contact-panel .social-links a:hover { border-color: var(--n4d-teal); background: var(--n4d-bg); color: var(--n4d-teal); }
body.n4d-3d .social-links a:active { box-shadow: var(--pearl-inset); }
body.n4d-3d .footer-bottom { border-top: 1px solid var(--n4d-line); background: var(--n4d-bg); }
body.n4d-3d .footer-bottom .wrap { padding: 24px 0; color: var(--n4d-muted); font-size: 16px; }
body.n4d-3d .footer-bottom a { color: var(--n4d-navy); }

@media (hover: hover) and (pointer: fine) {
  body.n4d-3d .pearl-service-card:hover { --lift: -3px; border-color: rgba(51, 138, 176, .45); box-shadow: 0 3px 4px rgba(16, 48, 79, .03), 0 28px 40px -30px rgba(16, 48, 79, .3), inset 0 1px 0 #fff; }
}
@media (max-width: 1100px) {
  body.n4d-3d .header-inner { gap: 16px; }
  body.n4d-3d .main-nav .menu { gap: 0; }
  body.n4d-3d .main-nav .menu a { padding-inline: 8px; font-size: 16px; }
  body.n4d-3d .pearl-hero-body { gap: 32px; }
  body.n4d-3d .pearl-reason-grid .step-card { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  body.n4d-3d .n4d-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.n4d-3d .pearl-service-grid { grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); }
  body.n4d-3d .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.n4d-3d .footer-main { gap: 32px; }
}
@media (max-width: 820px) {
  body.n4d-3d .wrap { width: min(var(--n4d-wrap), calc(100% - 48px)); }
  body.n4d-3d .header-inner { min-height: 74px; }
  body.n4d-3d .brand img { width: 126px; max-height: 64px; }
  body.n4d-3d .main-nav { inset-block-start: 74px; padding: 24px 24px 40px; border-top-color: var(--n4d-line); background: #fff; }
  body.n4d-3d .main-nav .menu li { border-bottom-color: var(--n4d-line); }
  body.n4d-3d .main-nav .menu a { padding: 16px; font-size: 20px; }
  body.n4d-3d .main-nav .sub-menu { background: transparent; box-shadow: none; }
  body.n4d-3d .main-nav .sub-menu a { color: var(--n4d-ink); }
  body.n4d-3d .hero,
  body.n4d-3d.home .hero { padding-top: 40px; }
  body.n4d-3d .hero-grid { gap: 32px; }
  body.n4d-3d .pearl-hero-body { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  body.n4d-3d .hero-copy { padding: 0; }
  body.n4d-3d .hero-lead { max-width: 680px; margin-inline: auto; font-size: 22px; }
  body.n4d-3d .hero .hero-actions { justify-content: center; }
  body.n4d-3d .hero-note { max-width: none; text-align: center; }
  body.n4d-3d .hero-art,
  body.n4d-3d.home .hero-art { max-width: 640px; margin-inline: auto; }
  body.n4d-3d .proof-card { padding-inline: 20px; }
  body.n4d-3d .proof-card strong { font-size: 23px; }
  body.n4d-3d .pearl-service-card { padding: 32px; }
  body.n4d-3d .pearl-service-card h3 { font-size: 26px; }
  body.n4d-3d .about-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.n4d-3d .pearl-process-line { gap: 48px 0; }
  body.n4d-3d .pearl-process-line .step-card:nth-child(odd) { padding-inline-start: 0; }
  body.n4d-3d .form-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  body.n4d-3d .form-card { order: 0; }
  body.n4d-3d .contact-panel { order: 1; }
  body.n4d-3d .service-detail-hero { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  body.n4d-3d .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 48px; }
  body.n4d-3d .footer-brand-col { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  body.n4d-3d { font-size: 19px; }
  body.n4d-3d .wrap { width: min(var(--n4d-wrap), calc(100% - 32px)); }
  body.n4d-3d .hero,
  body.n4d-3d.home .hero { padding-top: 32px; }
  body.n4d-3d .hero .eyebrow { font-size: 15px; gap: 8px; }
  body.n4d-3d .hero h1,
  body.n4d-3d.home .hero h1 { margin-top: 24px; font-size: clamp(36px, 8.6vw, 50px); line-height: 1.35; letter-spacing: -.025em; }
  body.n4d-3d .hero-lead { font-size: 20px; line-height: 1.9; }
  body.n4d-3d .hero-note { font-size: 16px; }
  body.n4d-3d .hero-actions { gap: 12px; width: 100%; }
  body.n4d-3d .hero-actions .btn { width: 100%; margin: 0; }
  body.n4d-3d .hero-art img { border-radius: 4px; }
  body.n4d-3d .hero-proof { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 0; padding: 8px 0; }
  body.n4d-3d .proof-card { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; gap: 16px; padding: 16px 0; border: 0; border-bottom: 1px solid var(--n4d-line); font-size: 16px; }
  body.n4d-3d .proof-card:last-child { border-bottom: 0; }
  body.n4d-3d .proof-card strong { margin: 0; font-size: 21px; }
  body.n4d-3d .section { padding: 64px 0; }
  body.n4d-3d .section-head { margin-bottom: 32px; }
  body.n4d-3d .section-title { font-size: 32px; line-height: 1.5; }
  body.n4d-3d .section-lead { font-size: 19px; }
  body.n4d-3d .gold-rule { margin-bottom: 16px; }
  body.n4d-3d :is(.n4d-grid-4, .n4d-grid-3, .n4d-grid-2, .pearl-problem-grid, .pearl-service-grid, .pearl-reason-grid, .service-grid, .service-list, .services-feature-grid, .service-benefit-grid, .work-grid, .post-grid) { grid-template-columns: minmax(0, 1fr); }
  body.n4d-3d .pearl-service-grid { grid-template-columns: minmax(0, 1fr); }
  body.n4d-3d .step-card { padding: 24px; }
  body.n4d-3d .step-card p { font-size: 18px; }
  body.n4d-3d .pearl-problem-grid .step-card { padding: 24px 0; }
  body.n4d-3d .pearl-problem-grid { gap: 0; }
  body.n4d-3d .pearl-service-card { padding: 32px 24px; }
  body.n4d-3d .pearl-card-detail { margin-bottom: 24px; }
  body.n4d-3d .pearl-service-card h3 { font-size: 27px; }
  body.n4d-3d .pearl-reason-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  body.n4d-3d .pearl-reason-grid .step-card { padding: 24px; }
  body.n4d-3d .about-steps,
  body.n4d-3d .prose .about-steps { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  body.n4d-3d .pearl-process-line { gap: 32px; }
  body.n4d-3d .pearl-process-line .step-card { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 8px 24px; padding: 24px 0 0; }
  body.n4d-3d .pearl-process-line .step-number { grid-row: 1 / 3; margin: 0; }
  body.n4d-3d .pearl-process-line .step-card h3 { margin: 0; }
  body.n4d-3d .pearl-process-line .step-card p { grid-column: 2; }
  body.n4d-3d .n4d-faq-item summary { min-height: 72px; padding: 20px 8px; font-size: 20px; }
  body.n4d-3d .n4d-faq-item p { padding: 0 8px 24px 48px; font-size: 18px; }
  body.n4d-3d .pearl-closing { padding-top: 16px; }
  body.n4d-3d .cta-band { padding: 32px 24px; border-radius: 4px; gap: 24px; }
  body.n4d-3d .cta-band h2 { font-size: 32px; }
  body.n4d-3d .cta-band p { font-size: 19px; }
  body.n4d-3d .page-hero { padding: 40px 0; }
  body.n4d-3d .page-hero h1 { font-size: clamp(36px, 8.5vw, 46px); }
  body.n4d-3d .page-hero p { font-size: 20px; }
  body.n4d-3d .form-layout { padding: 32px 0 64px; }
  body.n4d-3d :is(.form-card, .contact-panel, .benefit-panel) { padding: 24px; }
  body.n4d-3d .form-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  body.n4d-3d .form-field.full { grid-column: auto; }
  body.n4d-3d .form-checks { grid-template-columns: minmax(0, 1fr); }
  body.n4d-3d .form-actions .btn { width: 100%; }
  body.n4d-3d .prose,
  body.n4d-3d .post-content .prose { font-size: 20px; }
  body.n4d-3d .prose blockquote { padding: 24px; }
  body.n4d-3d .post-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  body.n4d-3d .single-post-header { padding: 40px 0 24px; }
  body.n4d-3d .single-post-header h1 { font-size: 38px; }
  body.n4d-3d .single-post-image { margin-bottom: 32px; }
  body.n4d-3d .footer-main { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 48px 0 32px; }
  body.n4d-3d .footer-brand-col { grid-column: auto; }
  body.n4d-3d .footer-brand img { width: 152px; }
  body.n4d-3d .footer-col h2 { margin-bottom: 16px; }
  body.n4d-3d .footer-bottom .wrap { padding: 24px 0; line-height: 1.9; }
}

/* Shared Customizer settings are authoritative. No content is clipped or hidden. */
body.n4d-3d.n4d-depth-off { --pearl-raised: none; --pearl-inset: none; --n4d-shadow: none; --n4d-shadow-soft: none; }
body.n4d-3d.n4d-depth-off :is(.n4d-tilt, .hero-art, .pearl-hero-body, .pearl-service-grid) { transform: none !important; transform-style: flat !important; perspective: none !important; }
body.n4d-3d.n4d-depth-off :is(.hero-art img, .pearl-service-card, .btn, .step-number, .pearl-card-detail, .post-card-media, .service-card, .service-feature, .work-card, .cta-band, .form-card, .contact-panel, .form-field input, .form-field select, .form-field textarea) { box-shadow: none !important; }
body.n4d-3d.n4d-depth-off .hero-art::after { content: none; }
body.n4d-3d.n4d-motion-off *,
body.n4d-3d.n4d-motion-off *::before,
body.n4d-3d.n4d-motion-off *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
body.n4d-3d.n4d-motion-off :is(.n4d-tilt, .reveal, .btn:hover, .btn:active, .post-card:hover, .service-card:hover, .service-feature:hover, .service-list .service-card:hover) { transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  body.n4d-3d *, body.n4d-3d *::before, body.n4d-3d *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  body.n4d-3d :is(.n4d-tilt, .reveal, .btn:hover, .btn:active, .post-card:hover, .service-card:hover, .service-feature:hover, .service-list .service-card:hover) { transform: none !important; }
}

/* The scrolling element is html; keep the shared motion switch effective there. */
html:has(body.n4d-3d.n4d-motion-off) { scroll-behavior: auto; }
body.n4d-3d.n4d-depth-off *,
body.n4d-3d.n4d-depth-off *::before,
body.n4d-3d.n4d-depth-off *::after { box-shadow: none !important; }

/* 2.2.0: خيارات أهداف الموقع في نموذج طلب التحليل */
body.n4d-3d fieldset.n4d-checks { border: 0; padding: 0; margin: 0; min-width: 0; }
body.n4d-3d fieldset.n4d-checks legend { padding: 0; margin: 0 0 10px; font-weight: 700; color: var(--n4d-navy, #184878); }
body.n4d-3d .n4d-legend-hint { display: block; font-weight: 400; font-size: 15px; color: var(--n4d-muted, #5b6778); margin-top: 2px; }
body.n4d-3d .n4d-check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
body.n4d-3d .n4d-check { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 14px; border: 1px solid rgba(24, 72, 120, .22); border-radius: 12px; background: #fff; cursor: pointer; line-height: 1.6; font-weight: 500; }
body.n4d-3d .n4d-check input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--n4d-navy, #184878); }
body.n4d-3d .n4d-check:has(input:checked) { border-color: var(--n4d-navy, #184878); background: rgba(19, 200, 238, .08); }
body.n4d-3d .n4d-check:focus-within { outline: 2px solid var(--n4d-electric, #13C8EE); outline-offset: 2px; }
@media (max-width: 640px) { body.n4d-3d .n4d-check-grid { grid-template-columns: 1fr; } }

/* 2.2.0: توسيط كل العناوين الرئيسية والفرعية */
body.n4d-3d :is(main, .site-footer) :is(h1, h2, h3, h4, legend) { text-align: center; }
body.n4d-3d :is(.section-head, .page-hero .wrap) { text-align: center; justify-content: center; }
body.n4d-3d .section-head > div { margin-inline: auto; }
body.n4d-3d :is(.gold-rule, .crumbs) { margin-inline: auto; justify-content: center; }

/* 2.3.0: مسار الإقناع في الرئيسية */
body.n4d-3d .n4d-selftest { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: rgba(19, 200, 238, .08); color: var(--n4d-navy, #184878); font-size: 17px; line-height: 1.8; }
body.n4d-3d .section-lead { max-width: 680px; margin: 10px auto 0; color: var(--n4d-muted, #5b6778); font-size: 20px; line-height: 1.9; }
body.n4d-3d .n4d-sample-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px; align-items: center; }
body.n4d-3d .n4d-sample-shot { display: block; border-radius: 16px; overflow: hidden; border: 1px solid rgba(24, 72, 120, .16); box-shadow: 0 18px 40px rgba(6, 23, 47, .12); background: #fff; }
body.n4d-3d .n4d-sample-shot img { display: block; width: 100%; height: auto; }
body.n4d-3d .n4d-sample-copy .n4d-checklist { margin: 0 0 14px; }
body.n4d-3d .n4d-sample-note { color: var(--n4d-muted, #5b6778); font-size: 16px; margin: 0 0 18px; }
body.n4d-3d .n4d-about-card { max-width: 820px; margin: 0 auto; padding: 28px 30px; border-radius: 18px; background: #fff; border: 1px solid rgba(24, 72, 120, .14); }
body.n4d-3d .n4d-about-lead { font-size: 21px; line-height: 1.95; margin: 0 0 16px; color: var(--n4d-ink, #1a2433); }
@media (max-width: 900px) { body.n4d-3d .n4d-sample-grid { grid-template-columns: 1fr; gap: 24px; } body.n4d-3d .n4d-sample-shot { max-width: 420px; margin: 0 auto; } }
@media (max-width: 640px) { body.n4d-3d .n4d-about-card { padding: 20px 18px; } body.n4d-3d .n4d-about-lead { font-size: 19px; } }

/* 2.3.0: صورة ناصر في قسم «من يحلل موقعك؟» */
body.n4d-3d .n4d-about-photo { display: block; width: 140px; height: 140px; margin: 0 auto 18px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: 0 10px 26px rgba(6, 23, 47, .16); }
body.n4d-3d .n4d-about-lead { text-align: center; }

/* 2.4.0: homepage hero with a full-width background visual. Text stays HTML. */
body.n4d-3d.home .hero.n4d-hero-bg { position: relative; overflow: hidden; isolation: isolate; padding: 0; background: #000d23; color: #fff; }
body.n4d-3d .n4d-hero-media { position: absolute; bottom: 0; left: 0; width: min(76%, 1320px); z-index: -2; -webkit-mask-image: linear-gradient(to right, #000 70%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 14%); -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, #000 70%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 14%); mask-composite: intersect; }
body.n4d-3d .n4d-hero-media img { display: block; width: 100%; height: auto; }
body.n4d-3d .n4d-hero-bg::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(270deg, rgba(0, 13, 35, .6) 0%, rgba(0, 13, 35, 0) 40%); }
body.n4d-3d .n4d-hero-bg .hero-grid { display: flex; justify-content: flex-start; align-items: center; min-height: min(43vw, 760px); padding-block: clamp(48px, 5vw, 80px); }
body.n4d-3d .n4d-hero-panel { width: min(100%, 520px); text-align: center; }
body.n4d-3d .n4d-hero-bg .eyebrow { justify-content: center; color: #6fd8f2; }
body.n4d-3d .n4d-hero-bg .eyebrow-dot { background: #6fd8f2; }
body.n4d-3d.home .n4d-hero-bg h1 { max-width: none; margin: 18px 0 0; color: #fff; font-size: clamp(34px, 3.2vw, 50px); line-height: 1.4; text-align: center; text-shadow: 0 2px 24px rgba(0, 0, 0, .45); }
body.n4d-3d .n4d-hero-bg .hero-accent { color: #6fd8f2; }
body.n4d-3d .n4d-hero-bg .hero-lead { max-width: none; margin: 20px 0 26px; color: #d3e2ee; font-size: clamp(19px, 1.35vw, 21px); }
body.n4d-3d .n4d-hero-bg .hero-actions { justify-content: center; }
body.n4d-3d .n4d-hero-bg .btn-secondary { border-color: rgba(190, 225, 245, .4); background: rgba(255, 255, 255, .08); color: #fff; }
body.n4d-3d .n4d-hero-bg .btn-secondary:hover { border-color: #6fd8f2; background: rgba(111, 216, 242, .14); color: #fff; }
body.n4d-3d .n4d-hero-bg .hero-note { max-width: none; color: #c3d5e3; text-align: center; }
body.n4d-3d .n4d-hero-bg .hero-proof { margin-top: 32px; padding: 20px 0 0; border-block: 0; border-top: 1px solid rgba(190, 225, 245, .2); background: transparent; }
body.n4d-3d .n4d-hero-bg .proof-card,
body.n4d-3d .n4d-hero-bg .proof-card:first-child { padding: 4px 10px; color: #c3d5e3; border-color: rgba(190, 225, 245, .2); font-size: 16px; text-align: center; }
body.n4d-3d .n4d-hero-bg .proof-card strong { display: block; color: #fff; font-size: 20px; }
@media (max-width: 1100px) {
  body.n4d-3d .n4d-hero-media { width: 70%; }
  body.n4d-3d .n4d-hero-panel { width: min(100%, 460px); }
}
@media (max-width: 820px) {
  body.n4d-3d .n4d-hero-media { inset: auto 0 0; width: 100%; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%); -webkit-mask-composite: source-over; mask-image: linear-gradient(to bottom, transparent 0, #000 22%); mask-composite: add; }
  body.n4d-3d .n4d-hero-media img { aspect-ratio: 900 / 721; }
  body.n4d-3d .n4d-hero-bg::after { content: none; }
  body.n4d-3d .n4d-hero-bg .hero-grid { display: block; min-height: 0; padding-block: 40px 0; }
  body.n4d-3d .n4d-hero-panel { width: 100%; margin-inline: auto; }
  body.n4d-3d .n4d-hero-bg .hero-proof { margin-top: 28px; }
  body.n4d-3d .n4d-hero-bg .hero-grid::after { content: ''; display: block; aspect-ratio: 900 / 740; }
}
@media (max-width: 600px) {
  body.n4d-3d.home .n4d-hero-bg h1 { font-size: clamp(30px, 7.8vw, 40px); }
  body.n4d-3d .n4d-hero-bg .hero-proof { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 16px 0 0; }
  body.n4d-3d .n4d-hero-bg .proof-card,
  body.n4d-3d .n4d-hero-bg .proof-card:first-child { display: block; padding: 0; border: 0; font-size: 17px; text-align: center; }
  body.n4d-3d .n4d-hero-bg .proof-card strong { display: inline; margin: 0; margin-inline-end: 6px; font-size: 18px; }
}

/* 2.5.0: founder profile on the about page. */
body.n4d-3d .n4d-bio-card { display: flex; align-items: center; gap: 32px; max-width: 880px; margin: 0 auto 40px; padding: 32px; border-radius: 8px; background: #fff; box-shadow: var(--pearl-raised); }
body.n4d-3d .n4d-bio-photo { flex: 0 0 auto; width: 168px; height: 168px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: 0 0 0 2px var(--n4d-teal), 0 18px 32px -18px rgba(16, 48, 79, .45); }
body.n4d-3d .n4d-bio-intro { text-align: center; }
body.n4d-3d .n4d-bio-intro p { margin: 0; color: var(--n4d-muted); font-size: 19px; line-height: 1.95; }
body.n4d-3d main .n4d-bio-name { margin: 0 0 4px; color: var(--n4d-navy); font-size: 30px; text-align: center; }
body.n4d-3d .n4d-bio-intro .n4d-bio-role { margin-bottom: 14px; color: var(--n4d-teal); font-weight: 700; font-size: 18px; }
body.n4d-3d .n4d-bio-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 1080px; margin: 0 auto 40px; }
body.n4d-3d .n4d-bio-block, body.n4d-3d .n4d-bio-cert { padding: 28px; border-radius: 8px; background: #fff; box-shadow: var(--pearl-raised); }
body.n4d-3d .n4d-bio-block h3, body.n4d-3d .n4d-bio-certs h3 { margin: 0 0 18px; color: var(--n4d-navy); font-size: 24px; }
body.n4d-3d .n4d-bio-list, body.n4d-3d .n4d-bio-cert ul { margin: 0; padding: 0; list-style: none; }
body.n4d-3d .n4d-bio-list li, body.n4d-3d .n4d-bio-cert li { position: relative; padding: 7px 22px 7px 0; color: var(--n4d-ink); font-size: 18px; line-height: 1.8; }
body.n4d-3d .n4d-bio-list li::before, body.n4d-3d .n4d-bio-cert li::before { content: ''; position: absolute; inset-inline-start: 0; top: 18px; width: 8px; height: 8px; border-radius: 2px; background: var(--n4d-teal); }
body.n4d-3d .n4d-bio-timeline { margin: 0; padding: 0; list-style: none; }
body.n4d-3d .n4d-bio-timeline li { position: relative; padding: 0 22px 20px 0; border-inline-start: 2px solid var(--n4d-line); margin-inline-start: 4px; }
body.n4d-3d .n4d-bio-timeline li::before { content: ''; position: absolute; inset-inline-start: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--n4d-teal); }
body.n4d-3d .n4d-bio-timeline li:last-child { padding-bottom: 0; }
body.n4d-3d .n4d-bio-timeline strong { display: block; color: var(--n4d-navy); font-size: 19px; }
body.n4d-3d .n4d-bio-timeline span { display: block; color: var(--n4d-teal); font-size: 16px; font-weight: 700; }
body.n4d-3d .n4d-bio-timeline p { margin: 6px 0 0; color: var(--n4d-muted); font-size: 17px; line-height: 1.85; }
body.n4d-3d .n4d-bio-certs { max-width: 1080px; margin: 0 auto; }
body.n4d-3d .n4d-bio-certs-lead { margin: -6px auto 24px; color: var(--n4d-muted); font-size: 19px; text-align: center; }
body.n4d-3d .n4d-bio-cert-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
body.n4d-3d main .n4d-bio-cert h4 { margin: 0 0 10px; color: var(--n4d-navy); font-size: 20px; }
body.n4d-3d .n4d-bio-cert > p { margin: 0 0 6px; color: var(--n4d-muted); font-size: 17px; }
body.n4d-3d .n4d-bio-cert a { color: var(--n4d-navy); text-decoration: underline; text-decoration-color: rgba(0, 0, 0, .25); text-underline-offset: 3px; }
body.n4d-3d .n4d-bio-cert li:has(a) { direction: ltr; text-align: left; padding: 7px 0 7px 22px; }
body.n4d-3d .n4d-bio-cert li:has(a)::before { inset-inline-start: auto; left: 0; }
body.n4d-3d .n4d-about-more { margin: 24px 0 0; text-align: center; }
@media (max-width: 820px) {
  body.n4d-3d .n4d-bio-card { flex-direction: column; text-align: center; padding: 24px; }
  body.n4d-3d .n4d-bio-intro, body.n4d-3d main .n4d-bio-name { text-align: center; }
  body.n4d-3d .n4d-bio-grid, body.n4d-3d .n4d-bio-cert-grid { grid-template-columns: minmax(0, 1fr); }
  body.n4d-3d .n4d-bio-block, body.n4d-3d .n4d-bio-cert { padding: 22px; }
}

/* 2.6.0: Al-Mohanad font, heading colours, and centred text across the theme.
   Main headings (h1, h2): dark navy. Sub headings (h3, h4, legend): dark gold.
   On dark panels (home hero, CTA band, footer) headings stay light so they remain readable. */
body.n4d-3d { --n4d-heading-main: #184878; --n4d-heading-sub: #8a6a1f; }
body.n4d-3d :is(input, select, textarea, button) { font-family: inherit; }
body.n4d-3d main :is(h1, h2, .section-title) { color: var(--n4d-heading-main) !important; }
body.n4d-3d main :is(h3, h4, h5, legend) { color: var(--n4d-heading-sub) !important; }
body.n4d-3d main .n4d-bio-name { color: var(--n4d-heading-main) !important; }
body.n4d-3d main .n4d-hero-bg h1 { color: #fff !important; }
body.n4d-3d .site-footer :is(h2, h3, h4) { color: var(--n4d-heading-sub); }

body.n4d-3d :is(main, .site-footer),
body.n4d-3d :is(main, .site-footer) :is(article, .prose, .form-card, .contact-panel, .footer-main, .footer-col, .footer-brand-col, p, li, label, legend, h1, h2, h3, h4, h5, summary, figcaption, blockquote, dd, dt, td, th) { text-align: center; }
body.n4d-3d main :is(ul, ol) { list-style-position: inside; padding-inline-start: 0; }
body.n4d-3d :is(.cta-band) { flex-direction: column; text-align: center; }
body.n4d-3d :is(.hero-actions, .form-actions, .section-head, .footer-brand-col, .social-links) { justify-content: center; }
body.n4d-3d .section-head { text-align: center; }
body.n4d-3d .footer-brand-col img, body.n4d-3d .footer-brand-col .custom-logo-link { margin-inline: auto; }
body.n4d-3d .site-footer .menu, body.n4d-3d .footer-col ul { padding: 0; list-style: none; }
body.n4d-3d .form-field > label { display: block; }
body.n4d-3d .n4d-checks { justify-items: stretch; }
body.n4d-3d .n4d-checks label { justify-content: center; text-align: center; }
body.n4d-3d .prose blockquote { border-inline-start: 0; border-block: 2px solid var(--n4d-teal); padding: 12px 18px; }

/* Custom markers move inline so they sit next to centred text. */
body.n4d-3d main :is(.n4d-checklist, .n4d-bio-list, .n4d-bio-cert ul, .quote-benefits) li,
body.n4d-3d main .n4d-bio-cert li:has(a) { padding-inline: 18px; direction: rtl; text-align: center; }
body.n4d-3d main .n4d-bio-cert li:has(a) a { direction: ltr; unicode-bidi: isolate; }
body.n4d-3d main :is(.n4d-checklist, .n4d-bio-list, .n4d-bio-cert ul) li::before,
body.n4d-3d main .n4d-bio-cert li:has(a)::before { position: static; display: inline-flex; vertical-align: middle; margin-inline-end: 10px; inset: auto; }
body.n4d-3d main .quote-benefit { justify-content: center; align-items: center; text-align: center; }
body.n4d-3d main .quote-benefit::before { position: static; display: inline-flex; vertical-align: middle; margin-inline-end: 10px; }
body.n4d-3d .n4d-bio-timeline li { border-inline-start: 0; margin-inline-start: 0; padding: 0 0 20px; }
body.n4d-3d .n4d-bio-timeline li::before { position: static; display: block; margin: 0 auto 8px; }
body.n4d-3d main details summary { justify-content: center; gap: 14px; text-align: center; }
/* FAQ: right aligned, open/close sign on the left (2.6.0). */
body.n4d-3d main .n4d-faq .n4d-faq-item summary { justify-content: space-between; gap: 16px; text-align: right; }
body.n4d-3d main .n4d-faq .n4d-faq-item p { text-align: right; padding-inline: 16px 64px; }
body.n4d-3d main :is(.step-number, .process-step-number) { margin-inline: auto; align-self: center; justify-self: center; }
body.n4d-3d main .pearl-process-line .step-card { padding-inline: 16px; text-align: center; }
@media (max-width: 600px) {
  body.n4d-3d main .pearl-process-line .step-card { display: block; }
  body.n4d-3d main .pearl-process-line .step-number { margin: 0 auto 12px; }
}
body.n4d-3d .n4d-check { justify-content: center; text-align: center; }
@media (max-width: 600px) { body.n4d-3d main .n4d-faq .n4d-faq-item p { padding-inline: 8px 48px; } }

/* 2.7.0: English (LTR) version and the language switch. */
body.n4d-3d.n4d-en { direction: ltr; }
body.n4d-3d .lang-switch { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--n4d-line); border-radius: 2px; color: var(--n4d-navy); font-size: 16px; font-weight: 700; text-decoration: none; white-space: nowrap; }
body.n4d-3d .lang-switch:hover { border-color: var(--n4d-teal); color: var(--n4d-teal); }
body.n4d-3d .lang-switch:focus-visible { outline: 3px solid var(--n4d-teal); outline-offset: 2px; }
body.n4d-3d.n4d-en .n4d-hero-bg .hero-grid { justify-content: flex-end; }
body.n4d-3d.n4d-en main .n4d-faq .n4d-faq-item summary,
body.n4d-3d.n4d-en main .n4d-faq .n4d-faq-item p { text-align: left; }
body.n4d-3d.n4d-en main .n4d-bio-cert li:has(a),
body.n4d-3d.n4d-en main :is(.n4d-checklist, .n4d-bio-list, .n4d-bio-cert ul, .quote-benefits) li { direction: ltr; }
body.n4d-3d.n4d-en .n4d-hero-bg h1 { font-size: clamp(32px, 3vw, 46px); line-height: 1.3; }
@media (max-width: 820px) {
  body.n4d-3d .nav-toggle { order: 3; margin-inline-start: 0; }
  body.n4d-3d .lang-switch { order: 2; margin-inline-start: auto; min-height: 40px; padding: 0 10px; font-size: 15px; }
  body.n4d-3d .brand { order: 1; }
}
