/* =====================================================================
   ECOMMERCE WEBSITE DEVELOPMENT DUBAI (EN + AR) — page additions on top of
   pages/service.css (the shared service-page template, loaded first):

   .ec-hero     the poster + .ec-tape (checkout tape: payment methods)   orange
   .ec-answer   4 fact chips (2 prices + timeline + AR/RTL) + USD refs   cream
   .ec-intro    live intro without an H2 + a phone-checkout photo card   deep
   .ec-uae      payments / delivery / Arabic posters on a faded photo    ink
   .ec-steps    the template timeline re-tuned for a cream band          cream
   .ec-plat     6 platforms as big-type rows + the chooser table (.cmp)  orange
   .ec-inds     kit .ind big-type list with a cursor-follow cover        cream
   .ec-built    our own builds (case studies), two cards                 deep
   ===================================================================== */

/* ---------- hero: room for the checkout tape above the answer-card overlap ---------- */
.ec-hero { position: relative; overflow: clip; }
.ec-hero .ph__in { padding-block-end: clamp(150px, 16vw, 228px); }
.ec-tape { position: absolute; left: 0; right: 0; bottom: clamp(98px, 10vw, 140px); z-index: 2; margin: 0; pointer-events: none; }
.ec-tape .tape { position: relative; left: -4%; width: 108%; top: 0; padding: 10px 0; background: var(--ink); color: var(--cream); transform: rotate(calc(-1.6deg * var(--dir))); box-shadow: 0 18px 30px -20px color-mix(in oklab, var(--ink) 80%, transparent); }
.ec-tape .tape__item { font-size: clamp(15px, 1.5vw, 23px); letter-spacing: .04em; }
.ec-tape .tape__item i { background: var(--b2); }
:root:lang(ar) .ec-tape .tape__item { letter-spacing: 0; font-weight: 700; }

/* ---------- answer card: four facts, USD reference lines, inline USD refs ---------- */
.ec-facts { grid-template-columns: 1fr 1fr; }
.sv-fact__sub { margin: 0; font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--ink-2); }
.sv-fact__sub [data-price-sub] { font-size: 13px; }
/* USD list-price reference beside an inline price (text synced by the page JS; the paragraph height is pinned to its
   tallest currency variant there, reference text included, so no reserved width is needed) */
.ec-ref { white-space: nowrap; unicode-bidi: plaintext; font-weight: 600; color: var(--ink-2); }
@media (min-width: 560px) { .ec-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } .ec-facts .sv-fact--time { grid-column: auto; } }
@media (min-width: 1024px) { .ec-facts { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1280px) { .ec-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- intro: statement + photo card, then the live columns ---------- */
.ec-intro__fig { position: relative; margin: 0; width: 100%; max-width: 440px; aspect-ratio: 3 / 2; border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 34px 60px -30px color-mix(in oklab, var(--ink) 80%, transparent); transform: rotate(calc(2deg * var(--dir))); }
.ec-intro__fig img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(.92); }
.ec-intro__fig figcaption { position: absolute; inset-inline-start: 14px; bottom: 14px; padding: 9px 14px; border-radius: 999px; background: var(--b2); color: var(--ink); font: 700 12.5px/1 var(--f-body); letter-spacing: .05em; text-transform: uppercase; }
:root:lang(ar) .ec-intro__fig figcaption { letter-spacing: 0; font-size: 13px; text-transform: none; }
@media (min-width: 1024px) {
  .ec-intro .sv-intro__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
  .ec-intro__fig { align-self: center; justify-self: end; }
}

/* ---------- pack: a link inside one checklist item ---------- */
.ec-check__link { display: inline; justify-self: start; margin-top: 2px; font-size: 14px; font-weight: 650; line-height: 1.5; color: var(--b1-ink); text-decoration-thickness: 1.5px; overflow-wrap: anywhere; }
.ec-check__link i { display: inline-block; margin-inline-start: 4px; vertical-align: -.05em; }
/* Arabic page: the link sits in its own line with the "English" badge beside it */
.ec-check__more { margin: 2px 0 0; line-height: 1.7; }
:root:lang(ar) .ec-check__link { font-size: 15px; }

/* ---------- answer card (Arabic page): the timeline/platform sentences as a quieter second paragraph ---------- */
.ec-answer__more { font-size: clamp(15.5px, 1.1vw, 17px); color: var(--ink-2); }

/* ---------- trust: the live H4s styled like the template's H3s ---------- */
.sv-trust__card h4 { font: 400 clamp(28px, 3vw, 48px)/.98 var(--f-display); text-transform: var(--display-case); letter-spacing: var(--display-track); max-width: 16ch; }
:root:lang(ar) .sv-trust__card h4 { font-weight: 800; line-height: 1.35; font-size: clamp(24px, 2.4vw, 38px); }

/* ---------- UAE commerce: posters on an ink band with a faded street photo ---------- */
.ec-uae { position: relative; overflow: clip; }
.ec-uae__photo { position: absolute; inset: -8% 0; z-index: 0; pointer-events: none; }
.ec-uae__photo img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: .16; filter: grayscale(1) contrast(1.15); mix-blend-mode: screen; }
.ec-uae .wrap, .ec-uae .sv-tab { position: relative; z-index: 1; }
.ec-uae__grid { display: grid; gap: 16px; }
.ec-uae__card { --c-bg: var(--paper); --c-fg: var(--ink); --c-fg2: var(--ink-2); --c-dot: var(--b2); display: grid; gap: 12px; align-content: start; padding: clamp(22px, 2.8vw, 36px); border-radius: var(--r-lg); background: var(--c-bg); color: var(--c-fg); rotate: calc(var(--r, 0) * 1deg * var(--dir)); box-shadow: 0 34px 60px -36px color-mix(in oklab, var(--ink) 90%, transparent); }
.ec-uae__card:nth-child(1) { --r: -1.2; }
.ec-uae__card:nth-child(2) { --c-bg: var(--b2); --c-dot: var(--deep); --r: 1; }
.ec-uae__card:nth-child(3) { --c-bg: var(--deep); --c-fg: var(--cream); --c-fg2: var(--on-deep-2); --c-dot: var(--b2); --r: -.8; }
.ec-uae__ico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--c-fg); color: var(--c-bg); font-size: 22px; }
.ec-uae__t { font: 400 clamp(26px, 2.4vw, 38px)/1 var(--f-display); text-transform: var(--display-case); letter-spacing: var(--display-track); }
:root:lang(ar) .ec-uae__t { font-weight: 800; line-height: 1.4; font-size: clamp(22px, 2vw, 30px); }
.ec-uae__list { display: grid; gap: 8px; padding-top: 8px; border-top: 1.5px solid color-mix(in oklab, var(--c-fg) 18%, transparent); }
.ec-uae__list li { position: relative; padding-inline-start: 22px; font-size: 15px; line-height: 1.55; color: var(--c-fg2); }
.ec-uae__list li::before { content: ""; position: absolute; inset-inline-start: 0; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: var(--c-dot); }
@media (min-width: 900px) {
  .ec-uae__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
  .ec-uae__card:nth-child(2) { margin-top: 28px; }
}

/* ---------- steps on cream (the template tunes the timeline for ink) ---------- */
.ec-steps .sv-step__num { -webkit-text-stroke: 1.5px color-mix(in oklab, var(--ink) 38%, transparent); }
.ec-steps .sv-step__num::after { color: var(--b1-solid); }
.ec-steps .sv-step::before { box-shadow: 0 0 0 5px var(--cream); }
.ec-steps .sv-step__ico { background: color-mix(in oklab, var(--ink) 8%, transparent); color: var(--b1-accent); }
.ec-steps.is-armed .sv-step:not(.is-lit)::before { background: var(--line); }

/* ---------- platforms: big-type rows + the chooser table (orange band) ---------- */
.ec-plat__rows { display: grid; margin-bottom: clamp(30px, 4vw, 56px); border-top: 2px solid var(--ink); }
.ec-plat__row { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "ico name" "ico desc"; column-gap: 16px; row-gap: 2px; align-items: center; padding: 14px 0; border-bottom: 1px solid color-mix(in oklab, var(--ink) 25%, transparent); clip-path: inset(0 0 0 0); }
.ec-plat__ico { grid-area: ico; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--b2); font-size: 22px; }
.ec-plat__name { grid-area: name; font: 400 clamp(30px, 5.2vw, 84px)/.98 var(--f-display); text-transform: var(--display-case); letter-spacing: .005em; color: var(--ink); overflow-wrap: anywhere; }
.ec-plat__row:nth-child(even) .ec-plat__name { color: transparent; -webkit-text-stroke: 2px var(--ink); }
.ec-plat__desc { grid-area: desc; font-size: 14.5px; font-weight: 600; line-height: 1.4; color: var(--b2-ink); }
:root:lang(ar) .ec-plat__name { font-weight: 800; line-height: 1.3; font-size: clamp(26px, 4.2vw, 64px); }
:root:lang(ar) .ec-plat__row:nth-child(even) .ec-plat__name { color: var(--ink); -webkit-text-stroke: 0; opacity: .75; }
@media (min-width: 900px) {
  .ec-plat__row { grid-template-columns: auto minmax(0, 1.05fr) minmax(0, .95fr); grid-template-areas: "ico name desc"; column-gap: 28px; }
  .ec-plat__desc { font-size: 16px; }
}
.ec-plat__sub { margin-bottom: 18px; color: var(--ink); }
.ec-cmp { --cmp-cols: 4; }
.ec-cmp .cmp td [data-price] { white-space: nowrap; }
/* phones: the kit folds each row into a card of --cmp-cols cells; four cells are too narrow under 480 px, so 2 × 2 */
@media (max-width: 479px) { .ec-cmp .cmp tr { --cmp-cols: 2; } }

/* ---------- sectors: the kit big-type list, an icon inside each name ---------- */
.ec-inds__list .ind__name i { font-size: .48em; margin-inline-end: .3em; vertical-align: .14em; color: var(--b1-accent); }
.ec-inds__list .ind__row:nth-child(even) .ind__name i { color: var(--b2-ink); }
/* below 1024 px the kit puts the description beside the name, which squeezes long names ("WHOLESALE") and splits Arabic
   words (letter joining breaks): keep the stacked name/description layout, wrap by word only */
.ec-inds__list .ind__name { overflow-wrap: break-word; }
:root:lang(ar) .ec-inds__list .ind__name { overflow-wrap: normal; word-break: keep-all; }
@media (max-width: 1023px) {
  .ec-inds__list .ind__row { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "th name" "th desc"; }
  .ec-inds__list .ind__name { font-size: clamp(26px, 5.6vw, 64px); }
  :root:lang(ar) .ec-inds__list .ind__name { font-size: clamp(24px, 4.8vw, 54px); }
}

/* ---------- results: "stores and platforms we built and run" — our own case studies (replaces the illustrative cards;
   same card as website-development-company-dubai's .wd-built, two across) ---------- */
.ec-built .lede a { color: var(--b2-on-deep); font-weight: 650; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.ec-built__grid { display: grid; gap: clamp(18px, 2vw, 28px); }
.ec-built__card { display: grid; grid-template-rows: auto 1fr; min-width: 0; 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); }
.ec-built__shot { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--deep-2); }
.ec-built__shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .8s var(--ease); }
.ec-built__card:hover .ec-built__shot img { transform: scale(1.03); }
.ec-built__body { display: grid; gap: 12px; align-content: start; padding: clamp(20px, 2.2vw, 30px); }
.ec-built__meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; font: 700 12px/1 var(--f-body); letter-spacing: .07em; text-transform: uppercase; }
.ec-built__own { padding: 6px 10px; border-radius: 999px; background: var(--b2); color: var(--ink); }
.ec-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); }
.ec-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); overflow-wrap: break-word; }
.ec-built__t a { color: inherit; text-decoration: none; }
.ec-built__t a:hover { color: var(--b2-on-deep); }
.ec-built__p { margin: 0; color: var(--on-deep-2); font-size: 15.5px; line-height: 1.6; }
.ec-built__r { margin: 0; padding-inline-start: 12px; border-inline-start: 2px solid var(--b2); color: var(--cream); font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.ec-built__stack { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ec-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); }
.ec-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; }
.ec-built__go:hover { text-decoration: underline; text-underline-offset: 3px; }
.ec-built__go .badge-lang { margin-inline-start: 2px; }
:root:lang(ar) .ec-built__meta { letter-spacing: 0; font-size: 13px; text-transform: none; }
:root:lang(ar) .ec-built__t { font-weight: 800; line-height: 1.4; font-size: clamp(21px, 1.9vw, 28px); }
:root:lang(ar) .ec-built__p, :root:lang(ar) .ec-built__r { line-height: 1.85; }
@media (min-width: 900px) { .ec-built__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- sectors: rows that link to an industry page keep the list's colours ---------- */
.ec-inds__list a.ind__row { color: inherit; }
.ec-inds__list a.ind__row:focus-visible { outline-offset: 4px; }
/* 640–1023 px: the kit makes .ind__go a grid item (area "go") but this page keeps the stacked name/description layout
   there — give linked rows a 44 px "go" column so the arrow has its own cell */
@media (min-width: 640px) and (max-width: 1023px) {
  .ec-inds__list .ind__row.is-link { grid-template-columns: auto minmax(0, 1fr) 44px; grid-template-areas: "th name go" "th desc go"; }
}

/* ---------- Arabic page: the live "complementary services" cards after the final poster (icon cards, H4s) ---------- */
.ec-comp.sec--tight { padding-block: clamp(40px, 5vw, 72px); }
.ec-comp .sv-more__cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.ec-comp__card .sc__a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: clamp(18px, 2.2vw, 26px); }
.ec-comp__ico { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--b2); color: var(--ink); font-size: 21px; }
.ec-comp__card .sc__body h4 { font: 400 clamp(22px, 1.9vw, 28px)/1.05 var(--f-display); text-transform: var(--display-case); letter-spacing: var(--display-track); }
:root:lang(ar) .ec-comp__card .sc__body h4 { font-weight: 800; line-height: 1.4; font-size: clamp(19px, 1.6vw, 24px); }
.ec-comp__card .sc__body p { font-size: 14.5px; line-height: 1.55; }

/* ---------- Arabic: a Latin run that ends in Arabic punctuation keeps the mark on the reading side ---------- */
:root:lang(ar) span.ar-run { unicode-bidi: isolate; direction: rtl; }

/* ---------- link list: guide rows carry a small label ---------- */
.sv-link--guide .sv-link__t { font-size: clamp(22px, 3vw, 46px); }
.sv-link__t small { display: block; font: 700 11.5px/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--b2-on-deep); margin-bottom: 6px; }
:root:lang(ar) .sv-link__t small { letter-spacing: 0; font-size: 12.5px; text-transform: none; }
:root:lang(ar) .sv-link--guide .sv-link__t { font-size: clamp(20px, 2.4vw, 36px); }

/* ---------- hero: the H1 is five words with a 9- and an 11-letter one — one step smaller than the template so the lead and CTAs
   stay above the fold at 1440×900 (the Arabic title keeps the template's :lang(ar) size, which wins on specificity) ---------- */
.ec-hero .sv-hero__title { font-size: clamp(42px, 8.2vw, 116px); }
