/* =====================================================================
   Codeator — /services/ (Arabic + English share this file).
   Everything is prefixed .srv- and uses logical properties, so the same
   rules serve RTL and LTR.
   ===================================================================== */

/* ---------- hero art: a ziggurat of cubes, laid block by block ---------- */
.srv-zig { max-width: 520px; }
.page-hero-art .srv-zig { max-width: 520px; }
.srv-zig-ground { fill: rgba(9,18,58,.5); }
.srv-zb polygon { stroke: rgba(14,27,82,.22); stroke-width: .8; stroke-linejoin: round; }
.srv-zb .f-top { fill: #fbfcff; }
.srv-zb .f-left { fill: #d3dbf0; }
.srv-zb .f-right { fill: #a9b7df; }
.srv-zb.l1 .f-top { fill: #f4f6fd; }
.srv-zb.gold .f-top { fill: var(--gold-soft); }
.srv-zb.gold .f-left { fill: var(--gold); }
.srv-zb.gold .f-right { fill: var(--gold-deep); }
.srv-zb-drop { animation: srv-drop .9s cubic-bezier(.25,.9,.3,1.1) both; animation-delay: var(--d, 0ms); }
.srv-zb-lift { transition: transform .45s var(--ease); }
.srv-zb:hover .srv-zb-lift { transform: translateY(-9px); }
.srv-zb:hover .f-top { fill: #fff; }
.srv-zb.gold:hover .f-top { fill: #fdf0cd; }
/* the capstone keeps being lifted and set: support is the tier that never finishes */
.srv-cap-lay { animation: srv-lay 7s var(--ease) 3.2s infinite both; }
.srv-cap-guide { stroke: rgba(247,226,173,.6); stroke-width: 1.2; stroke-dasharray: 3 5; fill: none; }
.srv-cap-seat { fill: rgba(227,168,43,.35); }
.srv-loose { animation: bob-s var(--bt, 5s) ease-in-out infinite alternate; }
.srv-loose polygon { stroke: rgba(201,211,242,.55); stroke-width: 1.1; stroke-linejoin: round; }
.srv-loose .f-top { fill: rgba(251,252,255,.2); }
.srv-loose .f-left { fill: rgba(211,219,240,.12); }
.srv-loose .f-right { fill: rgba(169,183,223,.08); }
.srv-zig-tags path { stroke: rgba(247,226,173,.6); stroke-width: 1.2; stroke-dasharray: 3 4; fill: none; }
.srv-zig-tags circle { fill: var(--gold); }
.srv-zig-tags text { font-family: var(--f-ui); font-size: 17px; font-weight: 500; fill: #eef1fb; text-anchor: middle; }
.srv-zig-tags > g { animation: fade-in .7s ease 2.6s both; }
.srv-zig-tags > g.srv-cap-tag { animation: fade-in .7s ease 2.6s both, srv-lay 7s var(--ease) 3.2s infinite both; }

@keyframes srv-drop { 0% { transform: translateY(-230px); opacity: 0; } 35% { opacity: 1; } 100% { transform: none; opacity: 1; } }
@keyframes srv-lay {
  0%, 10% { transform: translateY(0); }
  30%, 62% { transform: translateY(-58px); }
  84%, 100% { transform: translateY(0); }
}

/* ---------- services: seven cards in a tight grid ---------- */
.srv-cards { gap: 12px; }
.srv-cards .tile { gap: 9px; scroll-margin-top: 96px; }
.srv-cards .tile > p { font-size: 16.5px; line-height: 1.8; }
.srv-cards li:last-child { grid-column: 1 / -1; }
.srv-get {
  margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line);
  color: var(--ink);
}
.srv-get b { font-family: var(--f-ui); font-weight: 500; color: var(--gold-deep); }
.srv-more {
  display: inline-flex; gap: .5em; align-items: center;
  font-family: var(--f-ui); font-weight: 500; font-size: 15px; color: var(--lapis-500); text-decoration: none;
}
.srv-cards .srv-more { padding-top: 10px; }
.srv-more span { transition: transform .3s var(--ease); }
.srv-more:hover { text-decoration: underline; }
[dir="rtl"] .srv-more:hover span { transform: translateX(-4px); }
[dir="ltr"] .srv-more:hover span { transform: translateX(4px); }

/* ---------- explainer: data migration ---------- */
.srv-mig-scroll { overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: thin; }
.srv-mig { display: block; width: 100%; min-width: 760px; height: auto; overflow: visible; }
.srv-mig text { font-family: var(--f-ui); font-size: 17px; font-weight: 500; fill: var(--ink); text-anchor: middle; }

.srv-mig-bed path { fill: none; stroke: var(--lapis-100); stroke-width: 16; stroke-linecap: round; }
.srv-mig-bed .out { stroke: #cfd9f6; stroke-width: 18; }
.srv-mig-bed .rej { stroke: none; }

.srv-src .sheet { stroke-width: 1.5; }
.srv-src-xl .sheet { fill: #eef5f0; stroke: #8fb59c; }
.srv-src-xl .hd { fill: #c6dbcc; }
.srv-src-xl .grid { fill: none; stroke: #a7c6b1; stroke-width: 1; }
.srv-src-xl .cells { fill: none; stroke: #5f9472; stroke-width: 5; stroke-linecap: round; opacity: .7; }
.srv-src-pp .sheet { fill: #f8f1e3; stroke: #cbbb98; }
.srv-src-pp .sheet.back { fill: #efe5d0; }
.srv-src-pp .margin { stroke: #d99a8b; stroke-width: 1.2; }
.srv-src-pp .ink { fill: none; stroke: #4f5b86; stroke-width: 1.6; stroke-linecap: round; opacity: .75; }
.srv-src-os .sheet { fill: #e8e9ed; stroke: #9197a6; }
.srv-src-os .hd { fill: #9197a6; }
.srv-src-os .btns { stroke: #e8e9ed; stroke-width: 4; }
.srv-src-os .cells { fill: none; stroke: #6f7587; stroke-width: 5; stroke-dasharray: 9 4; opacity: .75; }
.srv-src-os .cursor { fill: #3c4569; animation: srv-blink 1.1s steps(1) infinite; }
.srv-src { transition: transform .4s var(--ease); transform-box: fill-box; }

.srv-gate .ttl, .srv-odoo .ttl { font-family: var(--f-display); font-weight: 700; font-size: 21px; fill: var(--lapis-900); }
.srv-gate .body { fill: var(--lapis-800); stroke: var(--lapis-950); stroke-width: 2; stroke-linejoin: round; }
.srv-gate .shine { stroke: rgba(255,255,255,.25); stroke-width: 2; }
.srv-gate .slot { fill: var(--lapis-950); }
.srv-gate .chk rect { fill: var(--gold); transform-box: fill-box; transform-origin: center; transform: rotate(45deg); }
.srv-gate .chk text { fill: #eef1fb; font-size: 15.5px; font-weight: 500; }
.srv-migration.in-view .srv-gate .chk rect { animation: srv-tick 3.6s var(--ease) infinite; }
.srv-migration.in-view .srv-gate .chk g:nth-of-type(2) rect { animation-delay: .5s; }
.srv-migration.in-view .srv-gate .chk g:nth-of-type(3) rect { animation-delay: 1s; }

.srv-tray path { fill: none; stroke: var(--clay-deep); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.srv-tray text { font-size: 15px; font-weight: 400; fill: var(--clay-deep); }
.srv-odoo text { font-size: 16px; font-weight: 400; fill: var(--ink-2); }
.srv-odoo .ttl { font-family: var(--f-ui); letter-spacing: .02em; }

.srv-r rect { stroke-width: 1; }
.srv-r.xl rect { fill: #9cc3aa; stroke: #5f9472; }
.srv-r.pp rect { fill: #e6d3ab; stroke: #b79f6c; }
.srv-r.os rect { fill: #c3c7d2; stroke: #8188a0; }
.srv-r.dup rect { fill: var(--clay-light); stroke: var(--clay-deep); }
.srv-r.rej rect { fill: var(--clay-light); stroke: var(--clay-deep); }
.srv-r.ok rect { fill: var(--lapis-500); stroke: var(--lapis-800); }

.srv-ob polygon { stroke: rgba(14,27,82,.16); stroke-width: 1; stroke-linejoin: round; }
.srv-ob .f-top { fill: #ffffff; }
.srv-ob .f-left { fill: #d3dbf0; }
.srv-ob .f-right { fill: #a9b7df; }
.srv-migration.in-view .srv-ob .f-right { animation: srv-take 4s ease-in-out infinite; animation-delay: calc(var(--k) * .5s); }
.srv-mig-cube .shadow { fill: rgba(14,27,82,.08); }

@keyframes srv-rise { from { transform: translateY(14px); } to { transform: translateY(0); } }
@keyframes srv-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes srv-tick { 0%, 60%, 100% { transform: rotate(45deg) scale(1); } 20% { transform: rotate(225deg) scale(1.35); } }
@keyframes srv-take { 0%, 70%, 100% { fill: #a9b7df; } 12% { fill: #7f97ee; } }

/* ---------- engagement: phases table ---------- */
.srv-phases { min-width: 720px; }
.srv-phases thead th:first-child { width: 24%; }
.srv-phases thead th:nth-child(2) { width: 42%; }
.srv-phases tbody th { white-space: normal; font-size: 19px; line-height: 1.5; }
.srv-phases tbody tr { transition: background-color .3s; }
.srv-phases tbody tr:hover { background: rgba(255,255,255,.6); }
.srv-ph-n {
  display: inline-grid; place-items: center; width: 34px; height: 34px; margin-inline-end: 12px; vertical-align: middle;
  font-family: var(--f-ui); font-weight: 500; font-size: 15px; line-height: 1; color: #fff;
  background: var(--lapis-700); border-radius: 2px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), inset 0 -3px 0 rgba(0,0,0,.25);
}
.srv-phases tbody tr:nth-child(1) .srv-ph-n { background: var(--lapis-950); }
.srv-phases tbody tr:nth-child(2) .srv-ph-n { background: var(--lapis-900); }
.srv-phases tbody tr:nth-child(3) .srv-ph-n { background: var(--lapis-800); }
.srv-phases tbody tr:nth-child(4) .srv-ph-n { background: var(--lapis-700); }
.srv-phases tbody tr:nth-child(5) .srv-ph-n { background: #2742b2; }
.srv-phases tbody tr:nth-child(6) .srv-ph-n { background: var(--lapis-500); }
.srv-phases tr.gold .srv-ph-n { background: linear-gradient(180deg, #efb944, #d2961f); color: var(--lapis-950); }
.srv-phases td:last-child { color: var(--ink); }
.srv-note {
  display: flex; align-items: flex-start; gap: 12px; margin-top: clamp(28px, 3vw, 40px);
  max-width: 48em; font-size: 17px; line-height: 1.85; color: var(--ink-2);
}
.srv-note .cubelet { margin-top: .5em; }

/* ---------- working with the group's team (dark band) ---------- */
.srv-team-top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; margin-bottom: clamp(40px, 5vw, 64px); }
.srv-team-top .head { margin-bottom: 0; }
.srv-team-svg { display: block; width: 100%; max-width: 480px; height: auto; margin-inline: auto; overflow: visible; }
.srv-team-svg text { font-family: var(--f-ui); font-size: 16px; font-weight: 500; fill: #eef1fb; text-anchor: middle; }
.srv-team-svg text.sub { font-size: 13.5px; font-weight: 300; fill: #aab6de; }
.srv-team-svg .ring { fill: none; stroke-width: 9; }
.srv-team-svg .ring.you { stroke: var(--gold); }
.srv-team-svg .ring.us { stroke: var(--lapis-300); }
.srv-team-svg .links path { fill: none; stroke: rgba(247,226,173,.75); stroke-width: 1.6; stroke-dasharray: 3 8; stroke-linejoin: round; animation: srv-link 2.4s linear infinite; }
.srv-team-svg .ku { fill: var(--gold); }
.srv-team.in-view .srv-team-svg .co { animation: srv-rise .8s var(--ease) both; }
.srv-team.in-view .srv-team-svg .cos > g:nth-child(2) .co { animation-delay: .12s; }
.srv-team.in-view .srv-team-svg .cos > g:nth-child(3) .co { animation-delay: .24s; }
.srv-team.in-view .srv-team-svg .cos > g:nth-child(4) .co { animation-delay: .36s; }
@keyframes srv-link { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -22; } }

.srv-roles { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 3.5vw, 56px); }
.srv-roles li { position: relative; padding-block: 26px 10px; border-top: 1px solid rgba(201,211,242,.3); }
.srv-roles li::before {
  content: ""; position: absolute; top: -6px; inset-inline-start: 0; width: 10px; height: 10px;
  background: var(--gold); transform: rotate(45deg); transition: transform .5s var(--ease);
}
.srv-roles li:hover::before { transform: rotate(225deg) scale(1.25); }
.srv-roles h3 { font-size: var(--t-lg); color: #fff; margin-bottom: 10px; }
.srv-roles p { font-size: 17px; line-height: 1.85; color: #c9d3f2; }
.srv-ours {
  margin-top: clamp(36px, 4.5vw, 56px); padding-block: 4px; padding-inline-start: 22px;
  border-inline-start: 3px solid var(--gold);
}
.srv-ours p { font-size: 17.5px; line-height: 1.9; color: #dfe5f8; max-width: 54em; }

/* ---------- engagement: closing note + the first consultation ---------- */
.srv-close {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(24px, 3.5vw, 56px); align-items: start; margin-top: clamp(28px, 3vw, 40px);
}
.srv-close .srv-note { margin-top: 0; }
.srv-first { padding-inline-start: 22px; border-inline-start: 3px solid var(--gold); }
.srv-first h3 { font-size: var(--t-lg); color: var(--lapis-900); margin-bottom: 8px; }
.srv-first p { font-size: 17px; line-height: 1.85; color: var(--ink-2); }
.srv-first .srv-more { margin-top: 12px; }

/* ---------- responsive ---------- */
/* the dark band closes flush, so sec-tight has to trim its foot too */
.srv-team.sec-tight { padding-bottom: clamp(56px, 6vw, 88px); }

@media (max-width: 920px) {
  .srv-close { grid-template-columns: minmax(0, 1fr); }
  .srv-roles { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .srv-team-top { grid-template-columns: minmax(0, 1fr); }
  .page-hero-art .srv-zig { max-width: 400px; }
  .srv-zig-tags text { font-size: 21px; }
  .srv-team-svg text { font-size: 18px; }
  .srv-team-svg text.sub { font-size: 15px; }
}
@media (max-width: 720px) {
  /* the phases table becomes stacked blocks; cell labels come from data-label */
  .srv-phases-scroll { overflow: visible; margin-inline: 0; padding-inline: 0; }
  .srv-phases { min-width: 0; display: block; }
  .srv-phases thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .srv-phases tbody, .srv-phases tr, .srv-phases th, .srv-phases td { display: block; }
  .srv-phases tbody tr { padding-block: 20px; border-bottom: 1px solid var(--line); }
  .srv-phases tbody tr:first-child { border-top: 2px solid var(--lapis-300); }
  .srv-phases tbody th, .srv-phases td { border: 0; padding: 0; }
  .srv-phases tbody th { margin-bottom: 12px; }
  .srv-phases td + td { margin-top: 12px; }
  .srv-phases td::before {
    content: attr(data-label); display: block; margin-bottom: 2px;
    font-family: var(--f-ui); font-weight: 500; font-size: var(--t-xs); color: var(--lapis-700);
  }
  .srv-phases td:last-child::before { color: var(--gold-deep); }
}
