/* FM Digital Solutions: Services hub. Depends on tokens.css, global.css */
.sv-hero { position: relative; min-height: 680px; display: flex; align-items: center; padding-top: calc(var(--nav-h) + 3rem); padding-bottom: 4rem; border-bottom: 1px solid var(--border); background: linear-gradient(90deg, #08080f 0%, rgba(8,8,15,.55) 25%, rgba(8,8,15,.15) 48%, transparent 65%), #08080f url('https://fmdigitalsolutions.co.za/wp-content/uploads/2026/10/services-hero-v6.webp') right center / cover no-repeat; }
.sv-hero .wrap { position: relative; z-index: 1; width: 100%; }
@media (max-width: 800px) { .sv-hero { min-height: 560px; background: linear-gradient(180deg, rgba(8,8,15,.55), rgba(8,8,15,.92)), #08080f url('https://fmdigitalsolutions.co.za/wp-content/uploads/2026/10/services-hero-v6.webp') 70% center / cover no-repeat; } }
.sv-eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-subtle); margin-bottom: 1rem; }
.sv-h1 { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.75rem); line-height: 1.05; letter-spacing: -.035em; color: #fff; margin-bottom: 1.25rem; max-width: 20ch; text-wrap: balance; }
.sv-h2 { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.25rem); line-height: 1.1; letter-spacing: -.03em; color: #fff; margin-bottom: 1.5rem; max-width: 24ch; text-wrap: balance; }
.sv-sub { color: var(--fg-muted); line-height: 1.7; max-width: 58ch; }
.sv-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 2rem; }
.sv-ghost { display: inline-flex; align-items: center; color: var(--fg); text-decoration: none; font-weight: 600; border: 1px solid var(--border); border-radius: 6px; padding: 10px 18px; transition: border-color .15s; }
.sv-ghost:hover { border-color: var(--purple-light); }
.sv-section { padding-block: 4.5rem; border-bottom: 1px solid var(--border); }
.sv-areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.sv-area { --ac: var(--purple-light); display: flex; flex-direction: column; min-width: 0; padding: 1.75rem; background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--ac); border-radius: 12px; text-decoration: none; color: inherit; transition: transform .2s, border-color .2s; }
.sv-area:hover { transform: translateY(-4px); border-color: var(--ac); }
.sv-a2 { --ac: #2e9e3a; }
.sv-a3 { --ac: #6366f1; }
.sv-num { font-family: var(--font-mono); font-size: 11px; color: var(--ac); margin-bottom: .75rem; }
.sv-label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ac); margin-bottom: .6rem; }
.sv-area h3 { font-family: var(--font-head); font-size: 1.3rem; line-height: 1.2; color: #fff; margin-bottom: .75rem; }
.sv-text { color: var(--fg-muted); font-size: .92rem; line-height: 1.6; margin-bottom: 1.1rem; }
.sv-area ul { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .5rem; color: var(--fg); font-size: .88rem; }
.sv-area li { position: relative; padding-left: 1.2rem; }
.sv-area li:before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--ac); }
.sv-more { margin-top: auto; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ac); }
.sv-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.sv-step { padding: 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.sv-step-n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(124,58,237,.2); color: var(--purple-light); font-weight: 700; margin-bottom: .75rem; }
.sv-step h3 { font-family: var(--font-head); color: var(--fg); margin-bottom: .5rem; }
.sv-step p { color: var(--fg-muted); font-size: .9rem; line-height: 1.6; }
.sv-work { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.sv-w { --ac: #2e9e3a; display: block; padding: 1.75rem; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; text-decoration: none; color: inherit; transition: border-color .2s; }
.sv-fmc { --ac: #F97316; }
.sv-w:hover { border-color: var(--ac); }
.sv-w h3 { font-family: var(--font-head); color: #fff; margin-bottom: .5rem; }
.sv-w p { color: var(--fg-muted); font-size: .92rem; line-height: 1.6; margin-bottom: 1rem; }
.sv-w .sv-more { display: inline-block; }
.sv-cta { padding-block: 4.5rem; }
.sv-cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.sv-cta .sv-h2 { margin-bottom: 0; }
@media (max-width: 1023px) { .sv-areas { grid-template-columns: 1fr; } .sv-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .sv-steps, .sv-work { grid-template-columns: 1fr; } }

/* ── Services deck (stacked cards, open on hover delay, focus or tap) ── */
.sd-deck { display: flex; flex-direction: column; gap: 10px; }
.sd-card { --ac: var(--purple-light); position: relative; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); overflow: hidden; transition: border-color .3s, box-shadow .3s; }
.sd-card.sv-a2 { --ac: #2e9e3a; }
.sd-card.sv-a3 { --ac: #6366f1; }
.sd-card.is-active { border-color: var(--ac); box-shadow: 0 0 40px color-mix(in srgb, var(--ac) 18%, transparent); }
.sd-rail { position: relative; display: flex; align-items: center; gap: 16px; width: 100%; padding: 20px 24px; background: transparent; border: 0; color: var(--fg); cursor: pointer; text-align: left; font: inherit; }
.sd-n { font: 600 12px ui-monospace, Menlo, monospace; color: var(--ac); letter-spacing: .08em; }
.sd-t { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--fg-muted); }
.sd-card.is-active .sd-t { color: #fff; }
.sd-rail::after { content: "+"; margin-left: auto; font-size: 1.5rem; line-height: 1; color: var(--ac); transition: transform .35s; }
.sd-card.is-active .sd-rail::after { transform: rotate(45deg); }
.sd-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s cubic-bezier(.2,.8,.2,1); }
.sd-card.is-active .sd-body { grid-template-rows: 1fr; }
.sd-inner { min-height: 0; overflow: hidden; display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; padding: 0 24px; align-items: center; }
.sd-card.is-active .sd-inner { padding: 4px 24px 28px; }
.sd-h { font-family: var(--font-head); font-size: 1.5rem; line-height: 1.2; color: #fff; margin: 0 0 .75rem; }
.sd-lead { color: var(--fg-muted); line-height: 1.65; margin: 0 0 1rem; }
.sd-list { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .5rem; font-size: .92rem; color: var(--fg); }
.sd-list li { position: relative; padding-left: 1.2rem; }
.sd-list li:before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--ac); }
.sd-more { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ac); text-decoration: none; }
.sd-more:hover { text-decoration: underline; }
.sd-rail::before { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--ac); box-shadow: 0 0 10px var(--ac); border-radius: 2px; opacity: 0; }
.sd-card.is-arming:not(.is-active) .sd-rail::before { opacity: 1; animation: sd-load .9s linear forwards; }
.sd-card.is-arming:not(.is-active) { border-color: var(--ac); }
@keyframes sd-load { from { width: 0; } to { width: 100%; } }
/* Mockups */
.sd-media { border-radius: 12px; background: #0d0f14; border: 1px solid var(--border); padding: 14px; }
.mk { display: grid; gap: 10px; }
.mk-bar { display: flex; align-items: center; gap: 5px; background: #161922; border-radius: 6px; padding: 6px 8px; }
.mk-bar i { width: 7px; height: 7px; border-radius: 50%; background: #334155; }
.mk-bar span { margin-left: 8px; font: 10px ui-monospace, Menlo, monospace; color: #64748b; }
.mk-hero { height: 90px; border-radius: 8px; background: linear-gradient(135deg, color-mix(in srgb, var(--ac) 55%, #0d0f14), #161922); }
.mk-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mk-row span { height: 44px; border-radius: 8px; background: #161922; }
.mk-btn { justify-self: start; background: var(--ac); color: #fff; font-size: .72rem; font-weight: 700; padding: .45rem .9rem; border-radius: 6px; }
.mk-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mk-chips em { font-style: normal; font-size: .66rem; font-weight: 600; color: var(--ac); background: color-mix(in srgb, var(--ac) 14%, transparent); padding: .25rem .6rem; border-radius: 999px; }
.mk-dash { grid-template-columns: 56px 1fr; }
.mk-side { display: grid; gap: 8px; align-content: start; }
.mk-side span { height: 26px; border-radius: 6px; background: #161922; }
.mk-main { display: grid; gap: 10px; }
.mk-bars { display: flex; align-items: flex-end; gap: 8px; height: 90px; padding: 8px; background: #161922; border-radius: 8px; }
.mk-bars i { flex: 1; height: var(--h); border-radius: 4px 4px 0 0; background: var(--ac); opacity: .8; }
@media (max-width: 1023px) {
  .sd-deck { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding: 4px 2px 14px; scrollbar-width: none; }
  .sd-deck::-webkit-scrollbar { display: none; }
  .sd-card { flex: 0 0 88%; scroll-snap-align: start; }
  .sd-rail { cursor: default; pointer-events: none; padding-bottom: 8px; }
  .sd-rail::after { display: none; }
  .sd-body { grid-template-rows: 1fr; }
  .sd-inner { grid-template-columns: 1fr; gap: 16px; padding: 4px 20px 22px; }
}
@media (prefers-reduced-motion: reduce) { .sd-card, .sd-body { transition: none !important; } .sd-card.is-arming .sd-rail::before { animation-duration: .01s; } }

.sv-note { margin-top: 1.5rem; color: var(--fg-muted); }
.sv-note a { color: var(--purple-light); }

.sv-tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.75rem; }
.sv-tool { padding: 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.sv-tool h3 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--purple-light); margin-bottom: 1rem; }
.sv-tool ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.sv-tool li { font-size: .85rem; color: var(--fg); background: rgba(255,255,255,.05); border: 1px solid var(--border); border-radius: 999px; padding: .35rem .8rem; }
@media (max-width: 800px) { .sv-tools { grid-template-columns: 1fr; } }

.sv-why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.75rem; }
.sv-why-c { padding: 1.5rem; background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--purple-light); border-radius: 10px; }
.sv-why-c h3 { font-family: var(--font-head); color: #fff; margin-bottom: .5rem; }
.sv-why-c p { color: var(--fg-muted); font-size: .9rem; line-height: 1.6; }
@media (max-width: 800px) { .sv-why { grid-template-columns: 1fr; } }

/* Tools marquee */
.tl-wrap { display: flex; flex-direction: column; gap: 14px; margin-top: 2rem; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.tl-row { display: flex; }
.tl-inner { display: flex; gap: 14px; width: max-content; animation: tl-l 38s linear infinite; }
.tl-row.rev .tl-inner { animation: tl-r 44s linear infinite; }
.tl-wrap:hover .tl-inner { animation-play-state: paused; }
@keyframes tl-l { to { transform: translateX(-50%); } }
@keyframes tl-r { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.tl-tile { display: flex; align-items: center; gap: 12px; white-space: nowrap; padding: 14px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; color: var(--fg); font-weight: 600; transition: border-color .2s; }
.tl-tile:hover { border-color: var(--purple-light); }
.tl-ico { display: grid; place-items: center; width: 26px; height: 26px; color: #e5e7eb; flex: none; }
.tl-ico svg, .tl-ico img { width: 100%; height: 100%; fill: currentColor; object-fit: contain; }
.tl-mono { border-radius: 7px; background: rgba(124,58,237,.2); color: var(--purple-light); font-weight: 800; font-size: .85rem; }
@media (prefers-reduced-motion: reduce) { .tl-inner { animation: none; flex-wrap: wrap; width: auto; } .tl-wrap { -webkit-mask-image: none; mask-image: none; } }

/* Service card screens (real-content mockups) */
.sd-media { padding: 0; background: none; border: 0; }
.sc { background: #0d0f14; border: 1px solid var(--border); border-radius: 12px; padding: 12px; display: grid; gap: 10px; font-family: var(--font-body, system-ui, sans-serif); color: #e5e7eb; }
.sc-bar { display: flex; align-items: center; gap: 5px; background: #161922; border-radius: 6px; padding: 6px 8px; }
.sc-bar i { width: 7px; height: 7px; border-radius: 50%; background: #334155; }
.sc-bar span { margin-left: 8px; font: 10px ui-monospace, Menlo, monospace; color: #64748b; }
.sc-nav { display: flex; align-items: center; gap: 12px; font-size: .62rem; color: #94a3b8; padding: 0 4px; }
.sc-nav b { color: #fff; font-size: .72rem; margin-right: auto; }
.sc-nav u { text-decoration: none; background: var(--ac); color: #fff; font-weight: 700; padding: .25rem .6rem; border-radius: 5px; }
.sc-hero { border-radius: 8px; padding: 16px; background: linear-gradient(135deg, color-mix(in srgb, var(--ac) 50%, #0d0f14), #161922); }
.sc-hero small { font-size: .58rem; letter-spacing: .08em; text-transform: uppercase; color: #cbd5e1; }
.sc-hero h4 { font-family: var(--font-head); font-size: 1.05rem; line-height: 1.2; color: #fff; margin: .3rem 0 .35rem; }
.sc-hero p { font-size: .66rem; color: #cbd5e1; margin: 0 0 .65rem; }
.sc-hero-g { background: linear-gradient(135deg, color-mix(in srgb, var(--ac) 55%, #0d0f14), #14201a); }
.sc-btns { display: flex; gap: 6px; }
.sc-btns a { font-size: .62rem; font-weight: 700; background: #fff; color: #0d0f14; padding: .3rem .7rem; border-radius: 5px; }
.sc-btns a.g { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); }
.sc-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sc-grid3 > div { background: #161922; border-radius: 8px; padding: 8px; display: grid; gap: 2px; align-content: start; }
.sc-grid3 i { height: 46px; border-radius: 6px; margin-bottom: 4px; }
.sc-grid3 .p1 { background: linear-gradient(135deg, #b08968, #6b4f3a); }
.sc-grid3 .p2 { background: linear-gradient(135deg, #d6ccc2, #8d7f72); }
.sc-grid3 .p3 { background: linear-gradient(135deg, #7a9e7e, #3f5e45); }
.sc-grid3 b { font-size: .64rem; color: #fff; }
.sc-grid3 span { font-size: .62rem; color: var(--ac); font-weight: 600; }
.sc-appbody { display: grid; grid-template-columns: 84px 1fr; gap: 10px; }
.sc-side { display: grid; gap: 4px; align-content: start; font-size: .6rem; color: #94a3b8; }
.sc-side b { color: #fff; font-size: .72rem; margin-bottom: 6px; }
.sc-side span { padding: .3rem .45rem; border-radius: 5px; }
.sc-side span.on { background: color-mix(in srgb, var(--ac) 22%, transparent); color: #fff; }
.sc-main { display: grid; gap: 8px; min-width: 0; }
.sc-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.sc-kpis > div { background: #161922; border-radius: 8px; padding: 7px; display: grid; }
.sc-kpis small, .sc-chart small { font-size: .54rem; color: #94a3b8; }
.sc-kpis b { font-family: var(--font-head); font-size: 1.05rem; color: #fff; }
.sc-chart { background: #161922; border-radius: 8px; padding: 8px; display: grid; gap: 6px; }
.sc-bars { display: flex; align-items: flex-end; gap: 7px; height: 56px; }
.sc-bars i { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: var(--ac); opacity: .85; }
.sc-rows { display: grid; gap: 5px; }
.sc-rows > div { display: flex; justify-content: space-between; align-items: center; background: #161922; border-radius: 6px; padding: 6px 8px; font-size: .62rem; }
.sc-rows em { font-style: normal; font-size: .54rem; font-weight: 700; color: #4ade80; background: rgba(74,222,128,.12); padding: .12rem .45rem; border-radius: 999px; }
.sc-rows em.w { color: #fbbf24; background: rgba(251,191,36,.12); }

.sc-grid3 i.pi { height: 64px; display: flex; align-items: center; justify-content: center; background: #1d212c; }
.sc-grid3 i.pi svg { height: 100%; width: auto; }

/* Our approach: copy left, cards stacked on the right */
.sv-split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
.sv-split .sv-why { grid-template-columns: 1fr; margin-top: 0; }
@media (min-width: 981px) { .sv-split-l { position: sticky; top: calc(var(--nav-h) + 2rem); } }
@media (max-width: 980px) { .sv-split { grid-template-columns: 1fr; gap: 1.5rem; } .sv-split .sv-why { margin-top: .5rem; } }

/* Hero legibility: dark glow behind the copy and soft text shadow */
.sv-hero .wrap { isolation: isolate; }
.sv-hero .wrap::before { content: ""; position: absolute; z-index: -1; left: -6%; top: -8%; width: 78%; height: 120%; background: radial-gradient(ellipse at 35% 50%, rgba(8,8,15,.9) 0%, rgba(8,8,15,.72) 40%, rgba(8,8,15,0) 72%); pointer-events: none; }
.sv-h1 { text-shadow: 0 2px 24px rgba(8,8,15,.9), 0 0 4px rgba(8,8,15,.6); }
.sv-hero .sv-sub { text-shadow: 0 1px 14px rgba(8,8,15,.95); color: #cbd0dc; }
.sv-hero .sv-ghost { background: rgba(8,8,15,.55); backdrop-filter: blur(6px); }

.sv-why-c { position: relative; padding-right: 4.5rem; }
.sv-why-n { position: absolute; top: 1.2rem; right: 1.4rem; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; color: var(--purple-light); opacity: .8; }
.sv-split .sv-why { gap: .85rem; }

/* Our approach: two columns of cards scrolling upwards */
.sv-vm { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; height: 560px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%); }
.sv-vcol { overflow: hidden; }
.sv-vtrack { display: grid; gap: .85rem; animation: sv-up 38s linear infinite; }
.sv-vcol-1 .sv-vtrack { animation-duration: 48s; animation-delay: -14s; }
.sv-vm:hover .sv-vtrack { animation-play-state: paused; }
@keyframes sv-up { from { transform: translateY(0); } to { transform: translateY(calc(-50% - .425rem)); } }
.sv-vm .sv-why-c { padding-right: 3.2rem; }
.sv-vm .sv-why-c h3 { font-size: 1rem; }
@media (max-width: 640px) { .sv-vm { grid-template-columns: 1fr; height: 460px; } .sv-vcol-1 { display: none; } }
@media (prefers-reduced-motion: reduce) { .sv-vtrack { animation: none; } .sv-vm { height: auto; -webkit-mask-image: none; mask-image: none; } .sv-vcol .sv-why-c[aria-hidden] { display: none; } }

.sv-split-l .sv-sub + .sv-sub { margin-top: 1rem; }

/* Our approach: centre the copy against the card window so the gaps top and bottom are even */
.sv-split { align-items: center; }
@media (min-width: 981px) { .sv-split-l { position: static; } }

/* Service card CTAs as solid square buttons */
.sd-more { display: inline-flex; align-items: center; gap: .5rem; background: var(--ac); color: #fff; padding: .85rem 1.25rem; border-radius: 4px; font-weight: 700; text-decoration: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--ac) 28%, transparent), 0 6px 22px color-mix(in srgb, var(--ac) 40%, transparent); transition: filter .2s, transform .2s; }
.sd-more:hover { text-decoration: none; filter: brightness(1.12); transform: translateY(-1px); }

/* Pulsing CTA ring */
.sd-more { animation: sd-pulse 2s ease-in-out infinite; }
.sd-more:hover { animation-play-state: paused; }
@keyframes sd-pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ac) 55%, transparent), 0 6px 22px color-mix(in srgb, var(--ac) 35%, transparent); }
  50%      { box-shadow: 0 0 0 9px color-mix(in srgb, var(--ac) 0%, transparent), 0 6px 28px color-mix(in srgb, var(--ac) 55%, transparent); }
}
@media (prefers-reduced-motion: reduce) { .sd-more { animation: none; } }

/* a11y contrast */
.sd-card .sd-n{color:color-mix(in srgb,var(--ac) 40%,#fff)}
.sd-card .sd-more{background:color-mix(in srgb,var(--ac) 78%,#000);color:#fff}
.sv-why-n{color:#C9A3EA;opacity:1}
.sv-note a{color:#C9A3EA}
.sc-hero .sc-h { font-family: var(--font-head); font-size: 1.05rem; line-height: 1.2; color: #fff; margin: .3rem 0 .35rem; font-weight: 700; }
