/* ===== HOMEPAGE SERVICES — gold circles (screens 768px and wider; narrower keeps the banners) ===== */
@media screen and (min-width: 768px) {
  html body .services-wrapp {
    display: flex !important; flex-wrap: wrap; justify-content: center;
    gap: 70px 56px !important; margin-top: 70px; padding-bottom: 30px;
  }
  html body .services-wrapp > .services-item { flex: 0 1 320px; width: auto !important; }

  html body .services-wrapp a.svc-banner {
    --c: 280px;
    position: relative; display: flex !important; flex-direction: column; align-items: center;
    width: 100%; aspect-ratio: auto; min-height: 0; padding: 22px 0 0 !important;
    text-align: center; border-radius: 0; overflow: visible; isolation: auto;
    background: none !important; box-shadow: none !important;
    transition: transform .5s cubic-bezier(.22,1,.36,1) !important;
  }
  html body .services-wrapp a.svc-banner:hover { transform: translateY(-8px); box-shadow: none !important; }
  html body .services-wrapp .svc-shade { display: none; }

  /* the photo as a circle */
  html body .services-wrapp .svc-media {
    position: relative !important; inset: auto; z-index: 1;
    width: var(--c) !important; height: var(--c); flex: none;
    border-radius: 50% !important; overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,.6), 0 0 0 6px #0b0b0d !important;
    clip-path: circle(50% at 50% 50%);
    transition: clip-path 1.2s cubic-bezier(.77,0,.18,1);
  }
  html body .services-wrapp .service-img {
    position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover;
    border-radius: 50% !important; filter: brightness(.88) saturate(.95); transform: scale(1);
    transition: transform .9s cubic-bezier(.22,1,.36,1), filter .6s ease;
  }
  html body .services-wrapp a.svc-banner:hover .service-img { transform: scale(1.06); filter: brightness(1) saturate(1.05); }

  /* spinning gold ring */
  html body .services-wrapp a.svc-banner::before {
    content: ""; position: absolute; z-index: 0; pointer-events: none;
    top: 8px; left: 50%; width: calc(var(--c) + 28px); height: calc(var(--c) + 28px); margin-left: calc((var(--c) + 28px) / -2);
    border-radius: 50%;
    background: conic-gradient(from 0deg, #d4af37, rgba(212,175,55,0) 28%, #f3dc8e 50%, rgba(212,175,55,0) 78%, #d4af37);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
            mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
    animation: homeRingSpin 14s linear infinite;
    transition: opacity .8s ease;
  }
  /* outer dashed orbit (replaces the banner's hover frame) */
  html body .services-wrapp a.svc-banner::after,
  html body .services-wrapp a.svc-banner:hover::after {
    content: ""; position: absolute; z-index: 0; pointer-events: none; inset: auto;
    top: -8px; left: 50%; width: calc(var(--c) + 60px); height: calc(var(--c) + 60px); margin-left: calc((var(--c) + 60px) / -2);
    border-radius: 50%; border: 1px dashed rgba(212,175,55,.28);
    animation: homeRingSpin 40s linear infinite reverse;
    transition: border-color .5s ease, opacity .8s ease;
  }
  html body .services-wrapp a.svc-banner:hover::before { animation-duration: 3.5s; }
  html body .services-wrapp a.svc-banner:hover::after { border-color: rgba(212,175,55,.6); }

  /* number badge */
  html body .services-wrapp .service-nunmber {
    position: absolute; z-index: 2; top: 30px; inset-inline-start: auto; left: calc(50% + 92px);
    width: 50px; height: 50px; border-radius: 50%; justify-content: center; gap: 0;
    background: linear-gradient(180deg, #f6dd8d, #d4af37 60%, #ad8222) !important;
    color: #111 !important; font-family: "Cairo", sans-serif; font-size: 15px; font-weight: 700; letter-spacing: .04em;
    box-shadow: 0 8px 22px rgba(0,0,0,.55), 0 0 0 4px #0b0b0d;
    transition: transform .6s cubic-bezier(.22,1,.36,1);
  }
  html body .services-wrapp .service-nunmber::after { display: none; }
  html[dir="rtl"] body .services-wrapp .service-nunmber { left: auto; right: calc(50% + 92px); }
  html body .services-wrapp a.svc-banner:hover .service-nunmber { transform: rotate(360deg) scale(1.08); }

  /* text */
  html body .services-wrapp .svc-text { align-items: center; max-width: 320px; gap: 8px; padding: 38px 6px 0; }
  html body .services-wrapp .service-text {
    font-family: 'Gilda Display', serif !important; font-weight: 400 !important; font-size: 30px !important;
    line-height: 1.15 !important; text-transform: none; letter-spacing: .01em; text-shadow: none;
    background: linear-gradient(180deg, #fff3c4 0%, #f1d27a 30%, #d4af37 55%, #b0852a 80%, #f3dc8e 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent !important;
  }
  html[dir="rtl"] body .services-wrapp .service-text { font-family: 'El Messiri', serif !important; font-weight: 700 !important; letter-spacing: 0; }
  html body .services-wrapp a.svc-banner:hover .service-text { color: transparent !important; }
  html body .services-wrapp .svc-sub { font-size: 14px; color: #e9dcbb; text-shadow: none; }
  html body .services-wrapp .svc-cta { margin: 10px auto 0; border-bottom: 0; position: relative; padding-bottom: 6px; }
  html body .services-wrapp .svc-cta::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    transform: scaleX(.35); transition: transform .5s ease;
  }
  html body .services-wrapp a.svc-banner:hover .svc-cta::after { transform: scaleX(1); }

  /* ---- entrance: iris opens, rings and badge arrive, text rises ---- */
  .hc-ready .svc-banner .svc-media { clip-path: circle(0% at 50% 50%); }
  .hc-ready .svc-banner .service-img { transform: scale(1.15); }
  .hc-ready a.svc-banner::before, .hc-ready a.svc-banner::after { opacity: 0; }
  .hc-ready .svc-banner .service-nunmber { transform: scale(0) rotate(-180deg); }
  .hc-ready .svc-banner .svc-text > * { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .8s cubic-bezier(.22,1,.36,1); }

  .hc-ready .hc-in .svc-media { clip-path: circle(50% at 50% 50%); transition-delay: var(--hc-delay, 0s); }
  .hc-ready .hc-in .service-img { transform: scale(1); transition-delay: var(--hc-delay, 0s), 0s; }
  .hc-ready .hc-in a.svc-banner::before, .hc-ready .hc-in a.svc-banner::after { opacity: 1; transition-delay: calc(var(--hc-delay, 0s) + .5s); }
  .hc-ready .hc-in .service-nunmber { transform: none; transition-delay: calc(var(--hc-delay, 0s) + .8s); }
  .hc-ready .hc-in .svc-text > * { opacity: 1; transform: none; }
  .hc-ready .hc-in .svc-text > :nth-child(1) { transition-delay: calc(var(--hc-delay, 0s) + .55s); }
  .hc-ready .hc-in .svc-text > :nth-child(2) { transition-delay: calc(var(--hc-delay, 0s) + .65s); }
  .hc-ready .hc-in .svc-text > :nth-child(3) { transition-delay: calc(var(--hc-delay, 0s) + .75s); }
  .hc-ready .hc-in a.svc-banner:hover .service-img { transform: scale(1.06); transition-delay: 0s; }
  .hc-ready .hc-in a.svc-banner:hover .service-nunmber { transform: rotate(360deg) scale(1.08); transition-delay: 0s; }
}
@keyframes homeRingSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  html body .services-wrapp a.svc-banner::before, html body .services-wrapp a.svc-banner::after { animation: none !important; }
}
