/* services: the index (services-5 hero, capability map, process, CTA) and the nine service pages (services-details-2
   hero, overview, modules, stack + deliverables, CTA + next), each in the home's rounded panels. One file for both
   directions: logical properties where a side matters; main.css (RTL flipped for Arabic) styles the theme classes. */

.shf-page-services .sd2-page, .shf-page-services .sd2-page.container-2200 { background: transparent; }
.shf-svc-panel { padding: 100px 0; }
.shf-page-services main section[id] { scroll-margin-top: 110px; }

/* type: the theme's tight Latin headings, set for Thmanyah in Arabic */
.shf-page-services .svc5-hero__title, .shf-page-services .svc5-map__title, .shf-page-services .svc5-process__title,
.shf-page-services .sd2-overview__title, .shf-page-services .sd2-modules__title, .shf-page-services .sd2-stack__title {
  font-size: clamp(30px, 3.6vw, 56px); font-weight: 600; line-height: 1.15; color: var(--at-neutral-900); max-width: 22ch;
}
.shf-page-services .svc5-hero__title { font-size: clamp(38px, 5.4vw, 84px); line-height: 1.06; max-width: 15ch; }
html[dir="rtl"] .shf-page-services h1, html[dir="rtl"] .shf-page-services h2, html[dir="rtl"] .shf-page-services h3 { letter-spacing: 0 !important; }
html[dir="rtl"] .shf-page-services .svc5-hero__title, html[dir="rtl"] .shf-page-services .svc5-map__title,
html[dir="rtl"] .shf-page-services .svc5-process__title, html[dir="rtl"] .shf-page-services .sd2-overview__title,
html[dir="rtl"] .shf-page-services .sd2-modules__title, html[dir="rtl"] .shf-page-services .sd2-stack__title { line-height: 1.35; }
html[dir="rtl"] .shf-page-services .svc5-kicker, html[dir="rtl"] .shf-svc-kicker,
html[dir="rtl"] .shf-page-services .svc5-meta__label, html[dir="rtl"] .shf-page-services .sd2-next__label,
html[dir="rtl"] .shf-page-services .sd2-hero__meta dt, html[dir="rtl"] .shf-page-services .svc5-hero__media-tag {
  letter-spacing: 0; text-transform: none; font-size: 15px;
}
.shf-svc-kicker .sd2-kicker__num, .shf-page-services .svc5-kicker__num { font-weight: 700; }

/* numbers and small labels: no coloured text (the owner's rule), the page's neutral greys; the theme's own accent
   (kicker numbers, deliverable names and links on hover) takes the colour of the text around it */
.shf-page-services { --shf-svc-accent: var(--at-neutral-500); }
.shf-page-services, .shf-page-services .sd2-page { --sd2-accent: currentColor; }   /* the theme sets it on .sd2-page */
.shf-page-services .svc5-kicker__num { color: var(--at-neutral-900); }
.shf-page-services .svc5-step__num { color: var(--at-neutral-500); }
.shf-page-services .svc5-cap__link:hover, .shf-page-services .svc5-meta__value:hover { color: var(--at-neutral-900); }
.shf-page-services .svc5-cap.is-inview { border-color: var(--at-neutral-100); }
.shf-page-services .svc5-cap.is-inview:hover { border-color: var(--at-neutral-200); }

/* ================================================================ index */
.shf-svc-hero { padding: 80px 0 40px; }
.shf-svc-hero .svc5-hero__lead { font-size: 18px; line-height: 1.7; max-width: 42ch; color: var(--at-neutral-700, #404040); }
html[dir="rtl"] .shf-svc-hero .svc5-hero__lead { font-size: 19px; }
.shf-svc-hero .svc5-meta__value { font-size: 15px; line-height: 1.5; }
.shf-svc-hero .svc5-meta { min-width: 0; max-width: 220px; }
.shf-svc-hero .svc5-hero__media { aspect-ratio: 16 / 5.2; border-radius: 24px; }
.shf-svc-hero .svc5-hero__media img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; }
.shf-svc-hero .svc5-hero__media-tag { inset-inline-end: 20px; right: auto; left: auto; }
html[dir="ltr"] .shf-svc-hero .svc5-hero__media-tag { right: 20px; }
html[dir="rtl"] .shf-svc-hero .svc5-hero__media-tag { left: 20px; }
/* the tag's pill is always dark (rgba(10, 10, 10, .72) over the picture): its text stays white in dark mode too (the
   theme's var(--at-neutral-0) turns #0C0C0C there, black on black) */
.shf-svc-hero .svc5-hero__media-tag { color: #FEFEFE; }

/* dark mode: the theme's neutral-700 is #535353 there (2.5:1 on the #0C0C0C page): the lead takes neutral-500 (#B3B3B3,
   9:1), as the page's other paragraphs; light mode keeps its #303030 */
[data-bs-theme=dark] .shf-svc-hero .svc5-hero__lead { color: var(--at-neutral-500); }
/* the small labels and numbers (team / rhythm / contact, the cards' 01-09 and «methodology»): the theme's neutral-300
   read 2:1 in light (#B7B7B7) and 1.9:1 in dark (#404040); neutral-500 is 7:1 and 9:1 */
.shf-page-services .svc5-meta__label, .shf-page-services .svc5-cap__index, .shf-page-services .svc5-cap__meta span { color: var(--at-neutral-500); }

.shf-svc-map { padding-bottom: 60px; }
.shf-svc-map .svc5-map__head { margin-bottom: 40px; }
.shf-svc-map .svc5-map__hint { font-size: 17px; line-height: 1.6; color: var(--at-neutral-500); }
.shf-svc-map .svc5-cap { border-radius: 24px; }
.shf-svc-map .svc5-cap__media { border-radius: 16px; }
.shf-svc-map .svc5-cap__name a { color: inherit; text-decoration: none; }
.shf-svc-map .svc5-cap__name a:hover { text-decoration: underline; text-underline-offset: 5px; }
.shf-svc-map .svc5-cap__name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.shf-svc-map .svc5-cap { position: relative; }
.shf-svc-map .svc5-cap__desc { font-size: 17px; line-height: 1.6; }
.shf-svc-map .svc5-cap__tags li { border-radius: 100px; }
html[dir="rtl"] .shf-svc-map .svc5-cap__tags li { text-transform: none; letter-spacing: 0; font-size: 13px; }
.shf-svc-map .svc5-cap__meta strong { font-size: 17px; line-height: 1.45; font-weight: 600; }
html[dir="rtl"] .shf-svc-map .svc5-cap__meta span { letter-spacing: 0; text-transform: none; font-size: 14px; }

/* the stack: pinned on desktop (html.shf-svc-stack, js/services.js); a plain list everywhere else */
.svc5-item { background: color-mix(in srgb, var(--at-neutral-0) 70%, transparent); }
html:not(.shf-svc-stack) .shf-svc-map .svc5-map__stack .item,
html:not(.shf-svc-stack) .shf-svc-modules .sd2-modules__stack .item {
  position: relative; min-height: 0; height: auto; padding: 0 0 20px; background: none;
  -webkit-backdrop-filter: none; backdrop-filter: none; transform: none !important;
}

.shf-svc-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px 32px; }
.shf-svc-steps .svc5-step { padding-top: 22px; border-top: 1px solid var(--at-neutral-100); }
.shf-svc-steps .svc5-step__title { font-size: 24px; font-weight: 600; }
.shf-svc-steps .svc5-step__text { font-size: 16px; line-height: 1.6; }
/* the theme holds the head to half the container (max-width: 50%): «How we work — short and clear.» broke into four
   short lines on a phone with the right half empty. The head takes the row; the title the 22ch of the page's others */
.shf-page-services .svc5-process__head { margin-bottom: 48px; max-width: none; }
.shf-page-services .svc5-process__title { max-width: 22ch; text-wrap: balance; }   /* no word alone on its last line (Arabic too) */

.shf-svc-engage { padding: 24px 0; }
.shf-svc-engage .container { max-width: none; padding-inline: 24px; }
.shf-svc-engage .svc5-cta { border-radius: 24px; background: #0c0d10; }   /* the service pages' ink panel, not the theme's orange */
.shf-svc-engage .svc5-cta__title { font-size: clamp(30px, 3.4vw, 48px); max-width: none; }
.shf-svc-engage .svc5-cta__text { font-size: 18px; }
.shf-svc-engage .svc5-cta__mail { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

/* ================================================================ service page */
/* 1. hero (ink panel) */
.shf-svc-hero2 { padding: 56px 0 48px; }
.shf-svc-hero2 .sd2-hero__top { margin-bottom: 44px; }
.shf-svc-hero2 .sd2-hero__glow { background: radial-gradient(circle, rgba(244, 245, 247, .08) 0%, transparent 68%); }   /* neutral, not the theme's orange */
.shf-svc-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: rgba(244, 245, 247, .7); }
.shf-svc-crumb a { color: #f4f5f7; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .3); }
.shf-svc-crumb a:hover { border-color: #f4f5f7; }
.shf-svc-status { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border: 1px solid var(--sd2-line); border-radius: 100px; font-size: 13px; font-weight: 600; color: #f4f5f7; }
.shf-svc-status .sd2-status__dot { width: 8px; height: 8px; border-radius: 50%; background: #F4F5F7; box-shadow: 0 0 10px rgba(244, 245, 247, .6); animation: shfSvcPulse 2s ease-in-out infinite; }   /* neutral, not green */
@keyframes shfSvcPulse { 50% { opacity: .35; } }
.shf-svc-hero2 .sd2-hero__main { grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 40px 64px; margin-bottom: 40px; }
.shf-svc-hero2 .sd2-kicker { color: rgba(244, 245, 247, .72); margin-bottom: 22px; }
.shf-svc-hero2 .sd2-kicker__num { color: #f4f5f7; }
.shf-svc-title { font-size: clamp(38px, 5vw, 80px) !important; line-height: 1.04 !important; letter-spacing: -0.04em; color: #f4f5f7; text-wrap: balance; }
html[dir="rtl"] .shf-svc-title { line-height: 1.3 !important; font-weight: 600; }
.shf-svc-lead { max-width: 50ch; font-size: 18px; line-height: 1.7; }
html[dir="rtl"] .shf-svc-lead { font-size: 19px; }
.shf-svc-start { padding: 16px 26px; font-size: 16px; background: #fefefe; color: #1d1d1d; }
.shf-svc-start:hover, .shf-svc-start:focus { background: #fefefe; color: #1d1d1d; }
.shf-svc-hero2 .sd2-hero__ghost { font-size: 16px; }
.shf-svc-visual { aspect-ratio: 5 / 4; border-radius: 20px; }
.shf-svc-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; }
.shf-svc-meta div { padding-top: 12px; border-top: 1px solid var(--sd2-line); }
.shf-svc-meta dt { margin-bottom: 6px; font-size: 12px; color: rgba(244, 245, 247, .55); }
.shf-svc-meta dd { margin: 0; font-size: 14px; line-height: 1.5; color: #f4f5f7; }
.shf-svc-chips { margin-top: 8px !important; }
.shf-svc-chips li { border-radius: 100px; }
html[dir="rtl"] .shf-svc-chips:not([dir="ltr"]) li { text-transform: none !important; letter-spacing: 0 !important; font-size: 14px !important; }

/* 2. overview */
.shf-svc-overview .sd2-overview__text { font-size: 19px; line-height: 1.65; max-width: 42ch; color: var(--at-neutral-700, #404040); }
[data-bs-theme=dark] .shf-svc-overview .sd2-overview__text { color: var(--at-neutral-500); }   /* neutral-700 is #535353 in dark: 2.5:1 */
.shf-svc-brief { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; }
.shf-svc-brief .sd2-brief__key { font-size: 14px; font-weight: 700; color: var(--shf-svc-accent); }
.shf-svc-brief__t { margin: 0 0 8px; font-size: clamp(21px, 1.7vw, 27px); font-weight: 600; line-height: 1.3; color: var(--at-neutral-900); }
.shf-svc-brief .sd2-brief__val { margin: 0; font-size: 17px; line-height: 1.65; color: var(--at-neutral-500); }
.shf-svc-ov-media { border-radius: 20px; aspect-ratio: 4 / 3; }

/* 3. modules (stack on desktop) */
.shf-svc-modules { padding-bottom: 60px; }
.shf-svc-modules .sd2-modules__head { margin-bottom: 40px; }
.shf-svc-modules .sd2-mod { border-radius: 24px; }
.shf-svc-modules .sd2-mod__media { border-radius: 16px; }
.shf-svc-modules .sd2-mod__index { color: var(--shf-svc-accent); font-size: 15px; }
.shf-svc-modules .sd2-mod__desc { font-size: 17px; line-height: 1.65; }
html.shf-svc-stack .shf-svc-modules .sd2-modules__stack .item { background: color-mix(in srgb, var(--at-neutral-0) 70%, transparent); }

/* 4. stack + deliverables */
.shf-svc-deliv.has-marquee { padding-top: 0; }
.shf-svc-marquee { margin-bottom: 80px; background: transparent; border-top: 0; overflow: hidden; }
.shf-svc-marquee__track { animation: shfSvcMarquee 40s linear infinite; gap: 56px; padding-inline-end: 56px; width: max-content; }
.shf-svc-marquee__track span { font-size: 15px; color: var(--at-neutral-500); }
@keyframes shfSvcMarquee { to { transform: translateX(-50%); } }
.shf-svc-marquee:hover .shf-svc-marquee__track { animation-play-state: paused; }
.shf-svc-deliv .sd2-stack__lead { font-size: 18px; line-height: 1.65; color: var(--at-neutral-500); }
.shf-svc-deliv__media { border-radius: 20px; margin-top: 28px; }
.shf-svc-deliver .sd2-deliver__item { cursor: default; padding: 24px 0; align-items: baseline; }
.shf-svc-deliver .sd2-deliver__name { font-size: clamp(19px, 1.5vw, 23px); line-height: 1.4; }
.shf-svc-deliver .sd2-deliver__num { color: var(--shf-svc-accent); }

/* 5. CTA (ink panel) + Hawih + related */
.shf-svc-cta { padding: 24px 0 60px; }
.shf-svc-cta > .container { max-width: none; padding-inline: 24px; }
.shf-svc-cta__panel { border-radius: 24px; }
.shf-svc-cta__panel.has-hawih { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 40px 64px; align-items: center; }
.shf-svc-cta__panel .sd2-cta__inner { max-width: 720px; }
.shf-svc-cta .sd2-kicker { color: rgba(244, 245, 247, .72); }
.shf-svc-cta .sd2-kicker__num { color: #f4f5f7; }
.shf-svc-cta__title { font-size: clamp(30px, 3.6vw, 54px) !important; line-height: 1.15 !important; font-weight: 600 !important; }
html[dir="rtl"] .shf-svc-cta__title { line-height: 1.35 !important; }
.shf-svc-cta .sd2-cta__text { font-size: 17px; }
.shf-svc-hawih { position: relative; z-index: 1; padding: 32px; border: 1px solid var(--sd2-line); border-radius: 20px; background: rgba(255, 255, 255, .04); }
.shf-svc-hawih__logo { display: inline-block; margin-bottom: 18px; }
.shf-svc-hawih__logo img { height: 44px; width: auto; }
.shf-svc-hawih__t { margin: 0 0 10px; font-size: 24px; font-weight: 600; line-height: 1.35; color: #f4f5f7; }
.shf-svc-hawih__d { margin: 0 0 20px; font-size: 16px; line-height: 1.65; color: rgba(244, 245, 247, .7); }
/* white with a dark label on the ink panel, the colours of «ابدأ مشروعًا» there, not orange: the site's palette is
   neutral, and the same Hawih link on /about/ is neutral too */
.shf-svc-hawih__btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 100px; background: #FEFEFE; color: #1D1D1D; font-size: 15px; font-weight: 600; text-decoration: none; transition: opacity .25s ease; }
.shf-svc-hawih__btn:hover, .shf-svc-hawih__btn:focus { background: #FEFEFE; color: #1D1D1D; opacity: .85; }
.shf-svc-cta__panel .shf-svc-hawih__btn:focus-visible { border-radius: 100px; }   /* the panel's focus ring rule squares links */
.shf-svc-hawih__btn svg { width: 12px; height: 12px; }
html[dir="rtl"] .shf-svc-hawih__btn svg { transform: scaleX(-1); }

.shf-svc-next { margin-top: 36px; padding-top: 24px; }
.shf-svc-next .sd2-next__label { color: var(--at-neutral-500); }
.shf-svc-next .sd2-next__links { gap: 10px; }
.shf-svc-next .sd2-next__links a { padding: 9px 16px; border: 1px solid var(--at-neutral-100); border-radius: 100px; font-size: 15px; line-height: 1.4; }
.shf-svc-next .sd2-next__links a:hover { border-color: var(--at-neutral-900); }
.shf-svc-next .sd2-next__links .shf-svc-next__all { background: var(--at-neutral-900); border-color: var(--at-neutral-900); color: var(--at-neutral-0); }
.shf-svc-next .sd2-next__links .shf-svc-next__all:hover { color: var(--at-neutral-0); opacity: .85; }
.shf-svc-next--sys { display: block; }
.shf-svc-next--sys .sd2-next__label { margin-bottom: 16px; }
.shf-svc-sys-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.shf-svc-sys { display: flex; flex-direction: column; gap: 14px; padding: 14px 14px 18px; border: 1px solid var(--at-neutral-100); border-radius: 20px; color: var(--at-neutral-900); text-decoration: none; transition: border-color .25s ease; }
/* the system cards stay in the site's neutral palette (a system's colour is only inside its product screens) */
.shf-svc-sys:hover { border-color: var(--at-neutral-900); color: var(--at-neutral-900); }
.shf-svc-sys__img { display: block; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: var(--at-neutral-50); }
.shf-svc-sys__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.shf-svc-sys:hover .shf-svc-sys__img img { transform: scale(1.04); }
.shf-svc-sys__copy { display: flex; flex-direction: column; gap: 4px; padding-inline: 4px; }
.shf-svc-sys__sector { font-size: 13px; font-weight: 600; color: var(--at-neutral-500); }
.shf-svc-sys__name { font-size: 22px; font-weight: 600; line-height: 1.3; }
.shf-svc-sys__line { font-size: 15px; line-height: 1.6; color: var(--at-neutral-500); }
.shf-svc-sys__go { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-inline: 4px; font-size: 14px; font-weight: 600; color: var(--at-neutral-900); }
.shf-svc-sys:hover .shf-svc-sys__go { text-decoration: underline; text-underline-offset: 4px; }
.shf-svc-sys__go svg { width: 11px; height: 11px; }
html[dir="rtl"] .shf-svc-sys__go svg { transform: scaleX(-1); }

/* focus rings on the dark panels */
.shf-svc-hero2 a:focus-visible, .shf-svc-cta__panel a:focus-visible { outline: 2px solid #fefefe; outline-offset: 4px; border-radius: 4px; }
.shf-svc-sys:focus-visible, .shf-svc-next a:focus-visible, .shf-svc-map .svc5-cap__name a:focus-visible { outline: 2px solid var(--at-neutral-900); outline-offset: 3px; }

/* ================================================================ responsive */
@media (max-width: 1399.98px) {
  .shf-svc-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1199.98px) {
  .shf-svc-hero2 .sd2-hero__main { grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); gap: 40px; }
  .shf-svc-cta__panel.has-hawih { grid-template-columns: 1fr; }
}
@media (max-width: 991.98px) {
  .shf-svc-panel { padding: 72px 0; }
  .shf-svc-hero { padding: 56px 0 32px; }
  .shf-svc-hero2 .sd2-hero__main { grid-template-columns: 1fr; gap: 36px; }
  .shf-svc-hero2 .sd2-hero__rail { max-width: 640px; }
  .shf-svc-sys-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shf-svc-deliv__media { display: none; }
}
@media (max-width: 767.98px) {
  .shf-svc-panel { padding: 56px 0; }
  .shf-svc-hero { padding: 44px 0 24px; }
  .shf-svc-hero .svc5-hero__media { aspect-ratio: 4 / 3; border-radius: 18px; }
  .shf-svc-steps { grid-template-columns: 1fr; gap: 0; }
  .shf-svc-steps .svc5-step { padding: 20px 0; }
  .shf-svc-steps .svc5-step__num { margin-bottom: 8px; }
  .shf-svc-map, .shf-svc-modules { padding-bottom: 36px; }
  .shf-svc-map .svc5-cap, .shf-svc-modules .sd2-mod { border-radius: 20px; }
  .shf-svc-modules .sd2-mod__media { aspect-ratio: 16 / 7; }
  .shf-svc-map .svc5-cap__media { aspect-ratio: 16 / 9; }
  .shf-svc-hero2 { padding: 36px 0 32px; }
  .shf-svc-hero2 .sd2-hero__top { margin-bottom: 28px; padding-bottom: 16px; }
  .shf-svc-meta { grid-template-columns: 1fr 1fr; }
  .shf-svc-meta div:last-child { grid-column: 1 / -1; }
  .shf-svc-brief { grid-template-columns: 40px minmax(0, 1fr); }
  .shf-svc-marquee { margin-bottom: 48px; }
  .shf-svc-cta, .shf-svc-engage { padding: 12px 0 36px; }
  .shf-svc-engage { padding-bottom: 12px; }
  .shf-svc-cta > .container, .shf-svc-engage .container { padding-inline: 12px; }
  .shf-svc-hawih { padding: 24px; }
  .shf-svc-sys-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .shf-svc-marquee__track, .shf-svc-status .sd2-status__dot { animation: none; }
}

/* dark mode: the theme's white CTA button keeps dark text; the card tags take a mid grey that reads on both panels */
.shf-svc-engage .svc5-cta__btn, .shf-svc-engage .svc5-cta__btn:hover, .shf-svc-engage .svc5-cta__btn:focus { color: #1d1d1d; background: #fefefe; }
.shf-svc-map .svc5-cap__tags li { color: var(--at-neutral-500); }
[data-bs-theme=dark] .shf-svc-map .svc5-cap__tags li { color: #b5b5b5; border-color: rgba(255, 255, 255, .14); }
