/* =====================================================================
   /website-development-company-dubai (EN + AR) — page blocks on top of the
   service-page template (pages/service.css):
     .wd-cap      hero capsule line (the live "from USD 1,500 …" sentence)
     .wd-term     hero moment: a deploy log printing line by line (decorative)
     .wd-answer   extra facts row (6 chips)
     .wd-switch   "why businesses switch" cards on a faded code photo; the
                  medallion flips from the red flag to a check as it enters
     .wd-guide    the 5-check buyer's guide (H4s): giant numerals + a tick that draws
   Everything is complete without JS; from-states only touch decorative parts.
   ===================================================================== */

/* ---------- hero ---------- */
/* the H1 is five words with an 11-letter one: one step smaller than the template so lead + CTAs stay near the fold
   (the Arabic title keeps the template's :lang(ar) size, which wins on specificity) */
.wd-hero .sv-hero__title { font-size: clamp(42px, 8.2vw, 122px); }
.wd-cap { display: flex; gap: 12px; align-items: flex-start; max-width: 60ch; margin-block: 22px 0; padding: 14px 18px 14px 16px; border-radius: 18px; background: color-mix(in oklab, var(--ink) 16%, transparent); color: var(--ink); font-size: 15.5px; line-height: 1.55; box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--ink) 26%, transparent); }
.wd-cap i { flex: none; margin-top: 2px; font-size: 18px; }
.wd-cap .ltr { font-weight: 700; white-space: nowrap; }
:root:lang(ar) .wd-cap { font-size: 16px; line-height: 1.85; }
.wd-hero__side { position: relative; z-index: 3; display: grid; gap: 18px; max-width: 520px; }
.wd-term { --fg: #e9e4d8; position: relative; border-radius: 16px; background: var(--ink); color: var(--fg); font: 500 13px/1.6 var(--f-mono, ui-monospace, "Cascadia Mono", Consolas, monospace); box-shadow: 0 26px 44px -26px color-mix(in oklab, var(--ink) 80%, transparent), inset 0 0 0 1px color-mix(in oklab, var(--cream) 10%, transparent); overflow: clip; transform: rotate(calc(1.2deg * var(--dir))); }
.wd-term__bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: color-mix(in oklab, var(--cream) 6%, var(--ink)); border-bottom: 1px solid color-mix(in oklab, var(--cream) 10%, transparent); }
.wd-term__bar i { width: 10px; height: 10px; border-radius: 50%; background: color-mix(in oklab, var(--cream) 22%, transparent); }
.wd-term__bar i:first-child { background: var(--b2); } .wd-term__bar i:nth-child(2) { background: var(--b1-accent, var(--b1)); }
.wd-term__bar span { margin-inline-start: auto; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: color-mix(in oklab, var(--cream) 55%, transparent); }
.wd-term__log { list-style: none; margin: 0; padding: 12px 16px 14px; display: grid; gap: 4px; }
.wd-term__log li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wd-term__log b { color: var(--b2); font-weight: 700; margin-inline-end: 6px; }
.wd-term__log em { font-style: normal; color: color-mix(in oklab, var(--cream) 60%, transparent); }
.wd-term__ok { color: var(--b2-lite, var(--b2)); }
.wd-term__cursor { display: inline-block; width: .55em; height: 1.05em; margin-inline-start: 4px; vertical-align: -2px; background: var(--b2); }
@media (prefers-reduced-motion: no-preference) {
  html.js .wd-term__log li { animation: wdLine .5s calc(1.1s + var(--i, 0) * .42s) both; }   /* JS only: every line stays readable without JS */
  .wd-term__log li:nth-child(1) { --i: 0; } .wd-term__log li:nth-child(2) { --i: 1; } .wd-term__log li:nth-child(3) { --i: 2; } .wd-term__log li:nth-child(4) { --i: 3; } .wd-term__log li:nth-child(5) { --i: 4.4; }
  .wd-term__cursor { animation: wdBlink 1s steps(2, start) infinite; }
}
@keyframes wdLine { from { clip-path: inset(0 100% 0 0); opacity: 0; } to { clip-path: inset(0 0 0 0); opacity: 1; } }
@keyframes wdBlink { to { visibility: hidden; } }
@media (min-width: 1024px) {
  .wd-hero__side { justify-self: end; width: 100%; }
  .sv-hero__grid.sv-hero__grid { grid-template-columns: minmax(0, 1.3fr) minmax(340px, .7fr); }
}

/* ---------- answer: 6 facts ---------- */
.wd-answer__facts { grid-template-columns: 1fr 1fr; }
.wd-answer__facts .sv-fact--time { grid-column: auto; }
.sv-fact__v--text { font: 400 clamp(22px, 2vw, 30px)/1.1 var(--f-display); color: var(--ink); white-space: normal; }
.wd-answer__more { max-width: 66ch; }
@media (min-width: 560px) { .wd-answer__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .wd-answer__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- intro: the added link paragraph reads as a note ---------- */
.wd-intro__add { padding: 14px 18px; border-radius: 14px; background: color-mix(in oklab, var(--cream) 8%, transparent); box-shadow: inset 0 0 0 1px var(--rule); }
.sv-intro__cols a, .wd-intro__add a { color: var(--b2-on-deep); font-weight: 650; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.sv-inds .lede a { color: var(--b1-accent); font-weight: 650; }
@media (min-width: 900px) { .wd-intro__add { grid-column: 1 / -1; } }

/* ---------- switch: faded photo band + flip medallions ---------- */
.wd-switch { position: relative; overflow: clip; isolation: isolate; }
.wd-switch__photo { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; opacity: .14; mix-blend-mode: multiply; filter: saturate(.3); pointer-events: none; -webkit-mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent); mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent); }
.wd-switch__grid { display: grid; gap: 16px; }
.wd-switch__card { position: relative; display: grid; gap: 12px; align-content: start; padding: clamp(24px, 3vw, 40px); padding-inline-start: clamp(84px, 9vw, 120px); min-height: 220px; border-radius: var(--r-lg); background: var(--paper); box-shadow: 0 0 0 1px var(--line), 0 30px 50px -40px color-mix(in oklab, var(--ink) 60%, transparent); }
.wd-switch__idx { position: absolute; top: clamp(16px, 2vw, 24px); inset-inline-start: clamp(18px, 2.4vw, 30px); font: 400 clamp(40px, 4.4vw, 64px)/1 var(--f-num); color: transparent; -webkit-text-stroke: 1.5px color-mix(in oklab, var(--ink) 35%, transparent); }
.wd-switch__coin { position: absolute; top: clamp(76px, 7.6vw, 104px); inset-inline-start: clamp(22px, 2.6vw, 34px); width: 46px; height: 46px; perspective: 400px; }
.wd-switch__face { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; font-size: 20px; backface-visibility: hidden; transition: transform .9s var(--ease); }
.wd-switch__face--a { background: var(--ink); color: var(--b2); }
.wd-switch__face--b { background: var(--b2); color: var(--ink); transform: rotateY(180deg); }
.wd-switch__card.is-in .wd-switch__face--a { transform: rotateY(-180deg); }
.wd-switch__card.is-in .wd-switch__face--b { transform: rotateY(0); }
.wd-switch__card h3 { font: 400 clamp(25px, 2.4vw, 38px)/1.02 var(--f-display); text-transform: var(--display-case); letter-spacing: var(--display-track); color: var(--ink); }
:root:lang(ar) .wd-switch__card h3 { font-weight: 800; line-height: 1.45; font-size: clamp(21px, 2vw, 30px); }
.wd-switch__card p { color: var(--ink-2); font-size: 16px; line-height: 1.6; max-width: 58ch; }
.wd-switch__seal { justify-self: start; display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; padding: 6px 12px; border-radius: 999px; font: 700 12px/1 var(--f-body); letter-spacing: .07em; text-transform: uppercase; color: var(--deep); box-shadow: inset 0 0 0 1.5px var(--deep); opacity: 0; transform: translateY(6px); transition: opacity .5s .5s, transform .6s .5s var(--ease); }
.wd-switch__seal::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--b2); }
.wd-switch__card.is-in .wd-switch__seal { opacity: 1; transform: none; }
:root:lang(ar) .wd-switch__seal { letter-spacing: 0; font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .wd-switch__seal { opacity: 1; transform: none; transition: none; } .wd-switch__face--a { transform: rotateY(-180deg); } .wd-switch__face--b { transform: rotateY(0); } }
@media (min-width: 768px) { .wd-switch__grid { grid-template-columns: 1fr 1fr; } }

/* ---------- guide: sticky heading + 5 numbered checks ---------- */
.wd-guide__grid { display: grid; gap: clamp(26px, 3vw, 44px); }
.wd-guide__list { border-top: 2px solid var(--ink); }
.wd-guide__row { display: grid; grid-template-columns: auto auto minmax(0, 1fr); column-gap: clamp(14px, 2vw, 26px); align-items: start; padding-block: clamp(20px, 2.4vw, 32px); border-bottom: 1px solid color-mix(in oklab, var(--ink) 22%, transparent); }
.wd-guide__num { font: 400 clamp(56px, 7vw, 110px)/.82 var(--f-num); color: var(--ink); min-width: 1.1ch; text-align: center; }
.wd-guide__box { width: 40px; height: 40px; margin-top: clamp(8px, 1.2vw, 20px); border-radius: 10px; display: grid; place-items: center; background: var(--paper); color: var(--deep); box-shadow: inset 0 0 0 2px var(--ink); }
.wd-guide__box svg { width: 26px; height: 26px; }
.wd-guide__tick { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .7s .15s var(--ease); }
.wd-guide__row.is-in .wd-guide__tick { stroke-dashoffset: 0; }
.wd-guide__row.is-in .wd-guide__box { background: var(--deep); color: var(--cream); box-shadow: none; transition: background-color .4s .4s, color .4s .4s, box-shadow .4s .4s; }
.wd-guide__body { display: grid; gap: 8px; }
.wd-guide__body h4 { font: 400 clamp(24px, 2.4vw, 38px)/1.02 var(--f-display); text-transform: var(--display-case); letter-spacing: var(--display-track); color: var(--ink); }
:root:lang(ar) .wd-guide__body h4 { font-weight: 800; line-height: 1.45; font-size: clamp(21px, 2vw, 30px); }
.wd-guide__body p { color: color-mix(in oklab, var(--ink) 80%, var(--b2)); font-size: 16px; line-height: 1.62; max-width: 62ch; }
@media (prefers-reduced-motion: reduce) { .wd-guide__tick { stroke-dashoffset: 0; } .wd-guide__box { background: var(--deep); color: var(--cream); box-shadow: none; } }
@media (max-width: 479px) {
  .wd-guide__row { grid-template-columns: auto minmax(0, 1fr); }
  .wd-guide__box { grid-column: 1; grid-row: 2; margin-top: 6px; }
  .wd-guide__body { grid-column: 2; grid-row: 1 / span 2; }
}
@media (min-width: 1024px) {
  .wd-guide__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); column-gap: clamp(40px, 6vw, 96px); align-items: start; }
  .wd-guide__head { position: sticky; top: calc(var(--nav-h) + 40px); }
}

/* ---------- service cards + industry tiles link to their spoke pages ---------- */
.wd-check__a { color: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .16em; text-decoration-color: color-mix(in oklab, var(--ink) 30%, transparent); transition: text-decoration-color .2s; }
.wd-check__a:hover { text-decoration-color: currentColor; }
.sv-ind > .wd-ind__a { display: inline-flex; align-items: center; gap: inherit; min-height: 44px; color: inherit; text-decoration: none; border-radius: inherit; }
.sv-ind > .wd-ind__a:focus-visible { outline-offset: .2em; }

/* ---------- results: "platforms we built and operate" — our own case studies (replaces the illustrative cards) ---------- */
.wd-built .lede a { color: var(--b2-on-deep); font-weight: 650; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.wd-built__grid { display: grid; gap: clamp(18px, 2vw, 28px); }
.wd-built__card { display: grid; grid-template-rows: auto 1fr; border-radius: var(--r-lg); overflow: clip; background: color-mix(in oklab, var(--cream) 6%, var(--deep)); box-shadow: inset 0 0 0 1px var(--line-deep); }
.wd-built__shot { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--deep-2); }
.wd-built__shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .8s var(--ease); }
.wd-built__card:hover .wd-built__shot img { transform: scale(1.03); }
.wd-built__body { display: grid; gap: 12px; align-content: start; padding: clamp(20px, 2.2vw, 30px); }
.wd-built__meta { display: flex; flex-wrap: wrap; gap: 8px; font: 700 12px/1 var(--f-body); letter-spacing: .07em; text-transform: uppercase; }
.wd-built__own { padding: 6px 10px; border-radius: 999px; background: var(--b2); color: var(--ink); }
.wd-built__status { padding: 6px 10px; border-radius: 999px; color: var(--cream); box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--cream) 40%, transparent); }
.wd-built__t { font: 400 clamp(24px, 2.1vw, 33px)/1.04 var(--f-display); text-transform: var(--display-case); letter-spacing: var(--display-track); color: var(--cream); }
.wd-built__t a { color: inherit; text-decoration: none; }
.wd-built__t a:hover { color: var(--b2-on-deep); }
.wd-built__p { color: var(--on-deep-2); font-size: 15.5px; line-height: 1.6; }
.wd-built__r { padding-inline-start: 12px; border-inline-start: 2px solid var(--b2); color: var(--cream); font-size: 15px; line-height: 1.55; }
.wd-built__stack { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.wd-built__stack li { padding: 5px 10px; border-radius: 999px; font-size: 12.5px; line-height: 1.3; color: var(--cream); background: color-mix(in oklab, var(--cream) 10%, transparent); }
.wd-built__go { justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; color: var(--b2-on-deep); text-decoration: none; }
.wd-built__go:hover { text-decoration: underline; text-underline-offset: 3px; }
:root:lang(ar) .wd-built__meta { letter-spacing: 0; font-size: 13px; }
:root:lang(ar) .wd-built__t { font-weight: 800; line-height: 1.4; font-size: clamp(21px, 1.9vw, 28px); }
@media (min-width: 900px) { .wd-built__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- tech-spoke list: 10 rows read as two columns on wide screens ---------- */
@media (min-width: 1200px) {
  .wd-links .sv-links__list { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 4vw, 64px); }
  .wd-links .sv-link__t { font-size: clamp(26px, 2.6vw, 44px); }
}
