/* Page Services V5 — mise en scène animée */
.services-v5 {
  background: #eef3f1;
}

.services-v5 .services-hero-v5 {
  isolation: isolate;
  align-items: center;
  min-height: 720px;
  background: #03182a;
}
.services-v5 .services-hero-v5::before {
  content: "";
  display: block;
  position: absolute;
  z-index: -2;
  inset: -5%;
  background: url("residential-cleaning-team.webp") 52% center / cover no-repeat;
  animation: servicesHeroZoom 18s ease-in-out infinite alternate;
}
.services-v5 .services-hero-v5::after {
  content: "";
  display: block;
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 82% 30%, rgba(119, 197, 91, .22), transparent 24rem),
    linear-gradient(90deg, rgba(2, 17, 30, .96) 0%, rgba(4, 35, 57, .82) 45%, rgba(4, 35, 57, .30) 100%),
    linear-gradient(0deg, rgba(2, 18, 31, .78), transparent 55%);
}
.services-v5 .services-hero-v5 .page-hero-copy {
  width: min(720px, 62%);
  max-width: 720px;
  background: rgba(3, 27, 46, .52);
  box-shadow: 0 30px 70px rgba(0, 16, 28, .24);
}
.services-v5 .services-hero-v5 h1 { font-size: clamp(56px, 6.4vw, 92px); }
.services-v5 .services-hero-v5 h1 em {
  background: linear-gradient(90deg, #b8e89f, #74c7d3, #b8e89f);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: servicesTextFlow 5s linear infinite;
}
.services-v5 .services-hero-v5 .button {
  position: relative;
  overflow: hidden;
}
.services-v5 .services-hero-v5 .button::after {
  content: "";
  position: absolute;
  inset: -30% auto -30% -40%;
  width: 28%;
  background: rgba(255, 255, 255, .55);
  transform: skewX(-18deg);
  animation: servicesButtonSheen 4s ease-in-out infinite;
}

.services-hero-visual {
  position: relative;
  z-index: 2;
  width: 390px;
  height: 420px;
  margin-left: auto;
}
.services-orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
}
.orbit-a {
  inset: 38px 0 0 8px;
  width: 350px;
  height: 350px;
  animation: servicesOrbit 22s linear infinite;
}
.orbit-b {
  inset: 102px 0 0 72px;
  width: 220px;
  height: 220px;
  border-color: rgba(185, 233, 160, .37);
  animation: servicesOrbit 15s linear infinite reverse;
}
.services-orbit::before,
.services-orbit::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  background: #b8e89f;
  border-radius: 50%;
  box-shadow: 0 0 0 7px rgba(184, 232, 159, .12), 0 0 24px rgba(184, 232, 159, .55);
}
.services-orbit::before { top: 18%; left: 4%; }
.services-orbit::after { right: 7%; bottom: 20%; }
.service-float {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 7px;
  min-width: 170px;
  padding: 19px 21px;
  color: #0b3150;
  background: rgba(255, 255, 255, .90);
  border-radius: 17px;
  box-shadow: 0 22px 50px rgba(0, 17, 30, .24);
  backdrop-filter: blur(15px);
}
.service-float span {
  color: #589c45;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.5px;
}
.service-float strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.16;
}
.service-float-one { top: 25px; right: 5px; animation: servicesFloat 5.8s ease-in-out infinite; }
.service-float-two { top: 180px; left: 0; animation: servicesFloat 6.4s ease-in-out .8s infinite; }
.service-float-three { right: 16px; bottom: 2px; animation: servicesFloat 5.4s ease-in-out 1.4s infinite; }

.services-ticker {
  width: min(1240px, calc(100% - 46px));
  margin: -28px auto 30px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(90deg, #4d913d, #0b6277);
  border-radius: 999px;
  box-shadow: 0 18px 38px rgba(7, 57, 71, .18);
}
.services-ticker > div {
  display: flex;
  align-items: center;
  gap: 25px;
  width: max-content;
  padding: 17px 0;
  animation: servicesTicker 24s linear infinite;
}
.services-ticker span {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  white-space: nowrap;
}
.services-ticker i { color: #d6f2c8; font-style: normal; }

.services-v5 .services-showcase-v5 {
  width: min(1400px, calc(100% - 32px));
  padding: clamp(82px, 8vw, 118px);
  background:
    radial-gradient(circle at 15% 10%, rgba(114, 184, 91, .18), transparent 24rem),
    linear-gradient(145deg, #f8fbf9, #eaf2f2);
}
.services-v5 .services-showcase-v5 .section-heading h2 { color: #082b4c; }
.services-v5 .services-showcase-v5 .section-heading h2 em { color: #589d46; }
.services-v5 .services-showcase-v5 .section-heading > p { color: #5d7487; }
.services-v5 .services-showcase-v5 .eyebrow { color: #589d46; }
.services-v5 .services-showcase-v5 .service-grid {
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}
.services-v5 .services-showcase-v5 .service-card,
.services-v5 .services-showcase-v5 .service-card:nth-child(n) {
  position: relative;
  grid-column: span 6;
  justify-content: flex-end;
  min-height: 440px;
  padding: 34px;
  overflow: hidden;
  color: #fff;
  background: #092a44;
  border: 0 !important;
  border-radius: 24px;
  box-shadow: 0 24px 58px rgba(4, 34, 55, .14);
}
.services-v5 .services-showcase-v5 .service-card:nth-child(3) { grid-column: span 7; }
.services-v5 .services-showcase-v5 .service-card:nth-child(4) { grid-column: span 5; }
.services-v5 .services-showcase-v5 .service-card::before {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  border-radius: inherit;
  -webkit-mask-image: none;
  mask-image: none;
  transform: scale(1.02);
  transition: transform .8s cubic-bezier(.2,.8,.2,1), filter .8s;
}
.services-v5 .services-showcase-v5 .service-card:nth-child(1)::before { background-image: url("residential-cleaning-living-room.webp"); }
.services-v5 .services-showcase-v5 .service-card:nth-child(2)::before { background-image: url("cleaning-after-move.webp"); }
.services-v5 .services-showcase-v5 .service-card:nth-child(3)::before { background-image: url("commercial-cleaning-office.webp"); }
.services-v5 .services-showcase-v5 .service-card:nth-child(4)::before { background-image: url("residential-cleaning-team.webp"); }
.services-v5 .services-showcase-v5 .service-card:nth-child(5)::before { background-image: url("commercial-cleaning-desk.webp"); }
.services-v5 .services-showcase-v5 .service-card:nth-child(6)::before { background-image: url("smarty-clean-services-banner.webp"); }
.services-v5 .services-showcase-v5 .service-card::after {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 16, 29, .94) 0%, rgba(3, 24, 42, .54) 43%, rgba(3, 24, 42, .06) 78%);
  transition: background .5s;
}
.services-v5 .services-showcase-v5 .service-card > * { position: relative; z-index: 2; }
.services-v5 .services-showcase-v5 .service-number {
  position: absolute;
  top: 25px;
  left: 25px;
  margin: 0;
  color: #fff;
  background: rgba(5, 36, 57, .64);
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: none;
  backdrop-filter: blur(12px);
}
.services-v5 .services-showcase-v5 .service-card h3 {
  max-width: 460px;
  margin: auto 0 12px;
  color: #fff;
  font-size: clamp(28px, 3vw, 42px);
}
.services-v5 .services-showcase-v5 .service-card p { max-width: 540px; color: rgba(241, 248, 251, .77); }
.services-v5 .services-showcase-v5 .service-more { color: #cef0bf; }
.services-v5 .services-showcase-v5 .service-card:hover::before { transform: scale(1.10); filter: saturate(1.08); }
.services-v5 .services-showcase-v5 .service-card:hover::after {
  background: linear-gradient(0deg, rgba(2, 16, 29, .96) 0%, rgba(3, 24, 42, .60) 49%, rgba(3, 24, 42, .12) 82%);
}

.services-v5 .services-showcase-v5 .service-card[data-reveal] {
  opacity: 0;
  transform: translateY(44px) scale(.97);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1), box-shadow .3s;
}
.services-v5 .services-showcase-v5 .service-card[data-reveal].is-visible { opacity: 1; transform: none; }
.services-v5 .services-showcase-v5 .service-card:nth-child(2) { transition-delay: .08s; }
.services-v5 .services-showcase-v5 .service-card:nth-child(4) { transition-delay: .08s; }
.services-v5 .services-showcase-v5 .service-card:nth-child(6) { transition-delay: .08s; }

.services-v5 .services-process-v5 {
  position: relative;
  isolation: isolate;
  min-height: 650px;
  background:
    linear-gradient(105deg, rgba(3, 25, 42, .94), rgba(5, 48, 70, .48)),
    url("commercial-cleaning-desk.webp") center / cover no-repeat;
}
.services-v5 .services-process-v5::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 7%;
  right: 5%;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  box-shadow: 0 0 0 55px rgba(255, 255, 255, .025), 0 0 0 110px rgba(255, 255, 255, .018);
  animation: servicesPulse 6s ease-in-out infinite;
}
.services-v5 .services-process-v5 .benefit-list article {
  transition: transform .25s, background .25s;
}
.services-v5 .services-process-v5 .benefit-list article:hover {
  background: rgba(218, 241, 208, .45);
  transform: translateX(7px);
}

.services-v5 .services-cta-v5 {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(0deg, rgba(2, 18, 31, .85), rgba(4, 39, 60, .42)),
    url("commercial-cleaning-office.webp") center / cover no-repeat;
}
.services-v5 .services-cta-v5::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 180deg, transparent, rgba(175, 225, 150, .14), transparent 30%);
  animation: servicesGlowSpin 14s linear infinite;
}
.services-v5 .services-cta-v5 > * { position: relative; z-index: 1; }
.services-v5 .services-cta-v5 .button { animation: servicesCtaPulse 2.8s ease-in-out infinite; }

@keyframes servicesHeroZoom {
  from { transform: scale(1.02) translate3d(0,0,0); }
  to { transform: scale(1.10) translate3d(-1.5%,1%,0); }
}
@keyframes servicesTextFlow { to { background-position: -220% 0; } }
@keyframes servicesButtonSheen {
  0%, 58% { left: -45%; opacity: 0; }
  67% { opacity: .75; }
  84%, 100% { left: 125%; opacity: 0; }
}
@keyframes servicesOrbit { to { transform: rotate(360deg); } }
@keyframes servicesFloat {
  0%, 100% { transform: translateY(0) rotate(-.4deg); }
  50% { transform: translateY(-14px) rotate(.6deg); }
}
@keyframes servicesTicker { to { transform: translateX(-50%); } }
@keyframes servicesPulse {
  0%, 100% { transform: scale(.96); opacity: .65; }
  50% { transform: scale(1.05); opacity: 1; }
}
@keyframes servicesGlowSpin { to { transform: rotate(360deg); } }
@keyframes servicesCtaPulse {
  0%, 100% { box-shadow: 0 12px 30px rgba(3, 18, 30, .20); }
  50% { box-shadow: 0 16px 44px rgba(184, 232, 159, .32); }
}

@media (max-width: 980px) {
  .services-v5 .services-hero-v5 .page-hero-copy { width: min(720px, 100%); }
  .services-hero-visual { display: none; }
  .services-v5 .services-showcase-v5 .service-card:nth-child(n) { grid-column: span 6; }
}

@media (max-width: 700px) {
  .services-v5 .services-hero-v5 { min-height: 680px; }
  .services-ticker { width: calc(100% - 28px); border-radius: 14px; }
  .services-v5 .services-showcase-v5 { width: calc(100% - 20px); padding: 68px 18px; }
  .services-v5 .services-showcase-v5 .service-grid { grid-template-columns: 1fr; }
  .services-v5 .services-showcase-v5 .service-card:nth-child(n) {
    grid-column: auto;
    min-height: 410px;
    padding: 28px;
  }
  .services-v5 .services-showcase-v5 .service-card h3 { font-size: 31px; }
  .services-v5 .services-process-v5::after { width: 170px; height: 170px; }
}

@media (prefers-reduced-motion: reduce) {
  .services-v5 *,
  .services-v5 *::before,
  .services-v5 *::after {
    animation: none !important;
    transition-duration: .01ms !important;
  }
  .services-v5 .services-showcase-v5 .service-card[data-reveal] { opacity: 1; transform: none; }
}
