/* === Services / Business Setup page === */

/* ============ Two-column Hero with 3D visual ============ */
.svc-hero {
  position: relative;
  padding: 140px 0 90px;
  background: var(--page-mesh);
  overflow: hidden;
}
.svc-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 80%);
  pointer-events: none;
}
.svc-hero .container { position: relative; z-index: 2; }

.svc-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
}
@media (max-width: 980px) {
  .svc-hero-grid { grid-template-columns: 1fr; }
  .svc-hero-visual { order: -1; max-width: 480px; margin: 0 auto; }
}

.svc-hero-text .crumbs {
  display: flex; gap: 8px; color: var(--text-3);
  font-size: .9rem; margin-bottom: 18px;
}
.svc-hero-text h1 {
  margin: 18px 0;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.15;
}
.svc-hero-text .lead {
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  color: var(--text-3);
  line-height: 1.85;
  max-width: 560px;
  margin-bottom: 28px;
}
.svc-hero-text .actions {
  display: flex; gap: 12px; flex-wrap: wrap;
}

/* === 3D Business Visual (cleanly composed) === */
.svc-hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 540px;
  margin-inline-start: auto;
  perspective: 1400px;
}

/* Subtle floor grid sits at the back */
.svc-hero-visual .floor {
  position: absolute;
  bottom: 4%; left: 50%;
  width: 86%; height: 50%;
  transform: translateX(-50%) rotateX(72deg);
  background:
    linear-gradient(rgba(26,168,189,.18) 1px, transparent 1px) 0 0/44px 44px,
    linear-gradient(90deg, rgba(26,168,189,.18) 1px, transparent 1px) 0 0/44px 44px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 30%, transparent 75%);
  opacity: .8;
  animation: floorPulse 6s ease-in-out infinite;
  z-index: 0;
}
@keyframes floorPulse { 0%,100% { opacity:.55; } 50% { opacity:1; } }

/* Soft glow halo behind the central crest */
.svc-hero-visual::after {
  content: ""; position: absolute;
  top: 50%; left: 50%;
  width: 60%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(26,168,189,.30) 0%, transparent 65%);
  filter: blur(30px);
  z-index: 0;
  pointer-events: none;
}

/* Central license certificate (the FOCUS — sits in the middle) */
.svc-hero-visual .crest {
  position: absolute;
  top: 50%; left: 50%;
  width: 44%; aspect-ratio: 5 / 6;
  transform: translate(-50%, -50%);
  background: linear-gradient(160deg, #ffffff, #f5f7fb);
  border-radius: 16px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 16px 12px;
  box-shadow:
    0 60px 100px -30px rgba(26,168,189,.6),
    0 0 0 1px rgba(26,168,189,.30),
    inset 0 0 0 5px rgba(200,161,74,.20);
  z-index: 3;
  animation: certFloat 6s ease-in-out infinite;
}
@keyframes certFloat {
  0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
  50%      { transform: translate(-50%, -54%) rotate(0.5deg); }
}
.svc-hero-visual .crest::before {
  content: ""; position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 40%; height: 4px; border-radius: 2px; background: var(--grad);
}
.svc-hero-visual .crest::after {
  content: ""; position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  width: 60%; height: 2px; border-radius: 1px;
  background: rgba(15,20,25,.10);
  box-shadow: 0 7px 0 rgba(15,20,25,.06), 0 14px 0 rgba(15,20,25,.04);
}
.svc-hero-visual .crest .seal {
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--grad);
  display: grid; place-items: center;
  color: #fff;
  box-shadow: 0 10px 30px -8px rgba(26,168,189,.6);
  margin: 4px 0 10px;
  animation: sealRotate 18s linear infinite;
}
.svc-hero-visual .crest .seal svg { width: 28px; height: 28px; }
@keyframes sealRotate { to { transform: rotate(360deg); } }
.svc-hero-visual .crest .title {
  font-family: var(--ff-display);
  font-weight: 800; font-size: .82rem;
  color: #0a0d14; text-align: center;
  letter-spacing: .04em; text-transform: uppercase;
  line-height: 1.3;
}
.svc-hero-visual .crest .subtitle {
  font-family: var(--ff-display);
  font-size: .68rem;
  color: rgba(15,20,25,.55);
  margin-top: 4px; text-align: center;
}

/* Country tags — top-left and bottom-right corners (away from cards) */
.svc-hero-visual .flag-tag {
  position: absolute;
  display: flex; align-items: center; gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-elev) 88%, transparent);
  border: 1px solid var(--border-2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-family: var(--ff-display);
  font-size: .78rem; font-weight: 600;
  color: var(--text);
  z-index: 4;
  box-shadow: 0 14px 30px -10px rgba(0,0,0,.45);
  white-space: nowrap;
}
.svc-hero-visual .flag-tag .dot {
  width: 8px; height: 8px; border-radius: 50%;
  box-shadow: 0 0 12px currentColor;
}
.svc-hero-visual .flag-eg { top: 4%; left: 4%; color: #e55b5f; }
.svc-hero-visual .flag-eg .dot { background: #e55b5f; }
.svc-hero-visual .flag-sa { bottom: 4%; right: 4%; color: #3db39c; }
.svc-hero-visual .flag-sa .dot { background: #3db39c; }
.svc-hero-visual .arrow-line { display: none; }

/* Service cards — positioned in four corners with safe distance from crest */
.svc-hero-visual .stack {
  position: absolute; inset: 0; z-index: 2;
}
.svc-hero-visual .card-3d {
  position: absolute;
  border-radius: 14px;
  padding: 10px 12px;
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--bg-elev), var(--bg-alt));
  border: 1px solid var(--border-2);
  box-shadow:
    0 20px 40px -14px rgba(0,0,0,.5),
    0 0 0 1px color-mix(in srgb, var(--accent, var(--c-teal)) 25%, transparent),
    inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  font-family: var(--ff-display);
  white-space: nowrap;
  max-width: 44%;
}
[data-theme="light"] .svc-hero-visual .card-3d {
  background: linear-gradient(135deg, #ffffff, #f5f7fb);
  border-color: rgba(15,20,25,.10);
  box-shadow:
    0 20px 40px -14px rgba(15,20,25,.18),
    0 0 0 1px color-mix(in srgb, var(--accent, var(--c-teal)) 25%, transparent);
}
.svc-hero-visual .card-3d .ic {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent, var(--c-teal)) 15%, transparent);
  color: var(--accent, var(--c-teal));
  border: 1px solid color-mix(in srgb, var(--accent, var(--c-teal)) 28%, transparent);
  flex-shrink: 0;
}
.svc-hero-visual .card-3d .ic svg { width: 18px; height: 18px; }
.svc-hero-visual .card-3d .lbl {
  display: flex; flex-direction: column; line-height: 1.25;
  overflow: hidden;
}
.svc-hero-visual .card-3d .lbl b {
  color: var(--text); font-size: .78rem; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.svc-hero-visual .card-3d .lbl span {
  color: var(--text-3); font-size: .65rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Four corners, each well clear of the centre and country tags */
.svc-hero-visual .c-1 {
  --accent: var(--c-teal);
  top: 8%; right: 4%;
  transform: rotate3d(0, 1, 0, 10deg);
  animation: floatA 6s ease-in-out infinite;
}
.svc-hero-visual .c-2 {
  --accent: var(--c-gold);
  top: 42%; right: -2%;
  transform: rotate3d(0, 1, 0, 14deg);
  animation: floatB 7s ease-in-out infinite .5s;
}
.svc-hero-visual .c-3 {
  --accent: var(--c-coral);
  top: 42%; left: -2%;
  transform: rotate3d(0, 1, 0, -14deg);
  animation: floatA 7.5s ease-in-out infinite 1s;
}
.svc-hero-visual .c-4 {
  --accent: var(--c-sea);
  bottom: 8%; left: 4%;
  transform: rotate3d(0, 1, 0, -10deg);
  animation: floatB 6.5s ease-in-out infinite 1.5s;
}
@keyframes floatA {
  0%, 100% { transform: rotate3d(0,1,0,12deg)  translateY(0); }
  50%      { transform: rotate3d(0,1,0,8deg)   translateY(-8px); }
}
@keyframes floatB {
  0%, 100% { transform: rotate3d(0,1,0,-12deg) translateY(0); }
  50%      { transform: rotate3d(0,1,0,-8deg)  translateY(-8px); }
}

/* Smaller cards on smaller screens to keep layout tidy */
@media (max-width: 700px) {
  .svc-hero-visual { max-width: 420px; }
  .svc-hero-visual .card-3d { padding: 8px 10px; max-width: 48%; }
  .svc-hero-visual .card-3d .ic { width: 30px; height: 30px; }
  .svc-hero-visual .card-3d .lbl b { font-size: .7rem; }
  .svc-hero-visual .card-3d .lbl span { font-size: .58rem; }
  .svc-hero-visual .crest { width: 50%; }
}



/* Scope of work — grid */
.scope-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.scope-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px 24px;
  position: relative;
  transition: all .35s var(--ease);
  overflow: hidden;
}
.scope-item:hover {
  background: var(--surface-2);
  border-color: var(--border-2);
  transform: translateY(-3px);
}
.scope-item .num {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--grad);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--ff-display);
  font-weight: 700; font-size: 1.25rem;
  margin-bottom: 14px;
  box-shadow: var(--glow-teal);
}
.scope-item h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--text);
  line-height: 1.4;
}
.scope-item p {
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--text-3);
}

/* Platforms */
.platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.platform-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 30px 26px 26px;
  text-align: center;
  transition: all .35s var(--ease);
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.platform-card::before {
  content: ""; position: absolute; top: 0; right: 0; left: 0; height: 3px;
  background: var(--accent, var(--c-teal));
}
.platform-card:hover {
  transform: translateY(-4px);
  background: var(--surface-2);
  border-color: var(--border-2);
  box-shadow: var(--shadow-card);
}
.platform-card .ico {
  width: 64px; height: 64px;
  border-radius: 18px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent, var(--c-teal)) 12%, transparent);
  color: var(--accent, var(--c-teal));
  border: 1px solid color-mix(in srgb, var(--accent, var(--c-teal)) 22%, transparent);
  margin: 0 auto 18px;
  transition: transform .35s var(--ease-spring);
}
.platform-card:hover .ico { transform: scale(1.08) rotate(-4deg); }
.platform-card .ico svg { width: 30px; height: 30px; }
.platform-card .plat-name {
  font-family: var(--ff-display);
  font-size: 1.35rem; font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.25;
}
.platform-card .plat-latin {
  font-size: 0.85rem; font-weight: 600;
  color: var(--accent, var(--c-teal));
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  display: block;
  text-transform: uppercase;
}
html[lang="ar"] .platform-card .plat-latin { letter-spacing: 0.02em; }
.platform-card p {
  font-size: 0.92rem; color: var(--text-3); line-height: 1.75;
  margin-bottom: 20px;
  flex-grow: 1;
}
.platform-card .plat-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent, var(--c-teal)) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent, var(--c-teal)) 28%, transparent);
  color: var(--accent, var(--c-teal));
  font-weight: 600; font-size: 0.88rem;
  transition: all .25s var(--ease);
  margin: 0 auto;
  text-decoration: none;
}
.platform-card .plat-cta:hover {
  background: var(--accent, var(--c-teal));
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px color-mix(in srgb, var(--accent, var(--c-teal)) 50%, transparent);
}
.platform-card .plat-cta svg {
  width: 14px; height: 14px;
  transition: transform .25s var(--ease);
}
.platform-card .plat-cta:hover svg { transform: translateX(-3px); }
[dir="ltr"] .platform-card .plat-cta:hover svg { transform: translateX(3px); }
.pc-teal  { --accent: var(--c-teal); }
.pc-coral { --accent: var(--c-coral); }
.pc-gold  { --accent: var(--c-gold); }
.pc-sea   { --accent: var(--c-sea); }
.pc-blue  { --accent: #3a96d4; }

/* Tabs */
.tabs-bar {
  display: flex; gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px;
  margin: 0 auto 40px;
  width: fit-content;
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: center;
}
.tab-btn {
  padding: 12px 24px;
  border-radius: 999px;
  background: transparent;
  color: var(--text-3);
  font-family: var(--ff);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all .25s var(--ease);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.tab-btn:hover { color: var(--text); background: var(--surface-2); }
.tab-btn.active {
  background: var(--grad);
  color: var(--on-grad);
  font-weight: 600;
  box-shadow: var(--glow-teal);
}
.tab-panel { display: none; animation: fadeIn .4s var(--ease); }
.tab-panel.active { display: block; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Period pill on price cards */
.price-card .period-pill {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--text-3);
  margin: 12px 0 6px;
  text-align: center;
}
.price-card .period-pill b { color: var(--c-gold); }
.price-card .price-badge.gold {
  background: linear-gradient(135deg, var(--c-gold), var(--c-coral));
}

/* Payment options */
.payment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 800px) { .payment-grid { grid-template-columns: 1fr; } }
.payment-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 36px 32px;
  position: relative;
  text-align: center;
  transition: all .35s var(--ease);
}
.payment-card.featured {
  background: var(--price-featured-bg);
  border-color: var(--c-teal);
  box-shadow: var(--glow-teal);
}
.payment-card .opt-num {
  display: inline-block;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--c-teal);
  font-weight: 600;
  margin-bottom: 18px;
}
.payment-card h3 { font-size: 1.35rem; margin-bottom: 16px; color: var(--text); }
.payment-card .pct {
  font-family: var(--ff-display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  line-height: 1;
  margin: 16px 0 20px;
}
.payment-card p { color: var(--text-3); line-height: 1.8; margin-bottom: 20px; }
.payment-card .badge-tag {
  display: inline-block;
  background: rgba(26,168,189,.12);
  border: 1px solid rgba(26,168,189,.25);
  color: var(--c-teal);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Notes box */
.notes-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-inline-start: 4px solid var(--c-gold);
  border-radius: var(--r-lg);
  padding: 32px;
  max-width: 920px;
  margin: 0 auto;
}
.notes-box h3 {
  font-size: 1.3rem;
  margin-bottom: 18px;
  color: var(--text);
}
.notes-box ol {
  list-style: decimal;
  padding-inline-start: 24px;
  color: var(--text-2);
}
.notes-box ol li {
  margin: 14px 0;
  line-height: 1.85;
  font-size: 1rem;
}
.notes-box ol li::marker { color: var(--c-gold); font-weight: 700; }

/* Company info grid */
.company-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.company-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: all .35s var(--ease);
}
.company-box:hover {
  background: var(--surface-2);
  border-color: var(--border-2);
}
.company-box .cb-ico {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(26,168,189,.12);
  color: var(--c-teal);
  margin-bottom: 16px;
  border: 1px solid rgba(26,168,189,.22);
}
.company-box .cb-ico svg { width: 24px; height: 24px; }
.company-box h4 {
  font-size: 1.1rem;
  margin-bottom: 14px;
  color: var(--text);
}
.company-box .dl {
  list-style: none; padding: 0; margin: 0;
}
.company-box .dl li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.92rem;
  flex-wrap: wrap;
}
.company-box .dl li:last-child { border-bottom: none; }
.company-box .dl li span { color: var(--text-3); white-space: nowrap; }
.company-box .dl li b { color: var(--text); font-weight: 600; text-align: end; word-break: break-all; }

/* Reference box (under company-grid) */
.reference-box {
  background: var(--cta-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px 28px;
  text-align: center;
}

/* === Footer utilities (theme/lang) === */
.footer-utils {
  display: flex; align-items: center; gap: 8px;
  margin-inline-end: auto;
}
@media (max-width: 720px) { .footer-utils { margin-inline-end: 0; } }
