/**
 * Services hub — modern layout, generous spacing, rich motion.
 */

.it-services-reno {
  --navy: #061340;
  --blue: #0b70e1;
  --cyan: #5ad0ff;
  --text: #152033;
  --muted: #516074;
  --line: rgba(11, 112, 225, 0.12);
  --section-y: clamp(44px, 5.4vw, 66px);
  --section-gap: clamp(26px, 3.2vw, 40px);
  position: relative;
  color: var(--text);
  background: #fff;
  overflow: clip;
}

.it-services-reno .container {
  max-width: 1240px;
  padding-left: clamp(20px, 4vw, 32px);
  padding-right: clamp(20px, 4vw, 32px);
}

/* Ambient background */
.it-svc-ambient {
  position: absolute;
  inset: 0 0 auto;
  height: 120vh;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.it-svc-ambient__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  animation: it-svc-blob-drift 18s ease-in-out infinite;
}

.it-svc-ambient__blob--1 {
  top: -8%;
  right: -6%;
  width: min(520px, 55vw);
  height: min(520px, 55vw);
  background: rgba(90, 208, 255, 0.35);
}

.it-svc-ambient__blob--2 {
  top: 28%;
  left: -10%;
  width: min(420px, 48vw);
  height: min(420px, 48vw);
  background: rgba(11, 112, 225, 0.18);
  animation-delay: -6s;
}

.it-svc-ambient__blob--3 {
  top: 52%;
  right: 12%;
  width: min(360px, 40vw);
  height: min(360px, 40vw);
  background: rgba(3, 34, 143, 0.12);
  animation-delay: -12s;
}

@keyframes it-svc-blob-drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33% { transform: translate3d(24px, -18px, 0) scale(1.06); }
  66% { transform: translate3d(-16px, 14px, 0) scale(0.96); }
}

/* Hero */
.it-svc-hero {
  position: relative;
  z-index: 1;
  padding: clamp(26px, 4.2vw, 54px) 0 clamp(30px, 4vw, 48px);
}

.it-svc-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(28px, 4.2vw, 54px);
  align-items: center;
}

.it-svc-hero__copy {
  display: grid;
  gap: clamp(14px, 2.2vw, 22px);
}

.it-svc-hero__copy h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(32px, 4.6vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.it-svc-kicker {
  position: relative;
  overflow: hidden;
}

.it-svc-kicker::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -120%;
  width: 60%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  animation: it-svc-kicker-shine 4s ease-in-out infinite;
}

@keyframes it-svc-kicker-shine {
  0%, 100% { transform: translateX(0); opacity: 0; }
  45% { opacity: 1; }
  100% { transform: translateX(280%); }
}

.it-svc-hero__lead {
  margin: 0 !important;
  color: var(--blue) !important;
  font-size: clamp(17px, 2vw, 19px);
  font-weight: 600;
  line-height: 1.65;
}

.it-svc-hero__body p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.68;
  max-width: 54ch;
}

.it-svc-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.it-svc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 28px;
  border-radius: 14px;
  color: #fff !important;
  background: linear-gradient(135deg, #03228f, #0b70e1);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 14px 32px rgba(11, 112, 225, 0.24);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
}

.it-svc-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(11, 112, 225, 0.32);
}

.it-svc-btn--ghost {
  color: var(--navy) !important;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(11, 112, 225, 0.2);
  box-shadow: 0 8px 24px rgba(6, 19, 64, 0.06);
  backdrop-filter: blur(8px);
}

.it-svc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.it-svc-chips li {
  padding: 8px 14px;
  border: 1px solid rgba(11, 112, 225, 0.14);
  border-radius: 999px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(6px);
  animation: it-svc-chip-pop 0.6s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.it-svc-chips li:nth-child(2) { animation-delay: 0.08s; }
.it-svc-chips li:nth-child(3) { animation-delay: 0.16s; }
.it-svc-chips li:nth-child(4) { animation-delay: 0.24s; }

@keyframes it-svc-chip-pop {
  from { opacity: 0; transform: translateY(12px) scale(0.92); }
  to { opacity: 1; transform: none; }
}

/* Hero orbit */
.it-svc-hero__visual {
  position: relative;
  min-height: clamp(280px, 34vw, 390px);
}

.it-svc-orbit {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
}

.it-svc-orbit__glow {
  position: absolute;
  inset: 10% 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(90, 208, 255, 0.28), transparent 68%);
  animation: it-svc-glow-pulse 5s ease-in-out infinite;
}

@keyframes it-svc-glow-pulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

.it-svc-orbit__ring {
  position: absolute;
  inset: 6% 4%;
  border: 1px solid rgba(11, 112, 225, 0.16);
  border-radius: 50%;
  will-change: transform;
}

.it-svc-orbit__ring--2 {
  inset: 16% 14%;
  border-style: dashed;
  border-color: rgba(11, 112, 225, 0.22);
}

.it-svc-orbit__main {
  position: absolute;
  top: 9%;
  left: 14%;
  width: 70%;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 28px;
  background: var(--navy);
  box-shadow: 0 32px 72px rgba(6, 19, 64, 0.2);
  will-change: transform;
}

.it-svc-orbit__main img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.it-svc-orbit__card {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.65);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 22px 48px rgba(6, 19, 64, 0.18);
  will-change: transform;
}

.it-svc-orbit__card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.it-svc-orbit__card--a {
  top: 2%;
  right: -2%;
  width: 44%;
  aspect-ratio: 16 / 10;
}

.it-svc-orbit__card--b {
  right: 0;
  bottom: 8%;
  width: 38%;
  aspect-ratio: 16 / 10;
}

.it-svc-orbit__card--c {
  left: -2%;
  bottom: 2%;
  width: 36%;
  aspect-ratio: 16 / 10;
}

/* Marquee — seamless infinite loop */
.it-svc-marquee {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
  padding: 10px 0;
  border-block: 1px solid rgba(11, 112, 225, 0.1);
  background: rgba(247, 250, 255, 0.85);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.it-svc-marquee__track {
  display: flex;
  width: max-content;
  animation: it-svc-marquee 40s linear infinite;
  will-change: transform;
}

.it-svc-marquee__group {
  display: flex;
  flex-shrink: 0;
  gap: 30px;
  padding-right: 30px;
}

.it-svc-marquee__group > span {
  flex-shrink: 0;
  color: rgba(6, 19, 64, 0.55);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.it-svc-marquee__group > span::before {
  content: "◆";
  margin-right: 14px;
  color: var(--blue);
  font-size: 10px;
  vertical-align: middle;
}

@keyframes it-svc-marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-25%, 0, 0); }
}

/* Section heads */
.it-svc-section-head {
  max-width: 780px;
  margin: 0 auto var(--section-gap);
  text-align: center;
}

.it-svc-section-head h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.it-svc-section-head p {
  margin: 18px auto 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

/* Services grid — clean equal image cards */
.it-svc-grid-wrap {
  position: relative;
  z-index: 1;
  padding: clamp(42px, 5vw, 62px) 0 var(--section-y);
}

.it-svc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 22px);
}

.it-svc-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e4ecf7;
  border-radius: 20px;
  color: inherit;
  background: #fff;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(6, 19, 64, 0.05);
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.it-svc-card:hover {
  transform: translateY(-6px);
  border-color: rgba(11, 112, 225, 0.28);
  box-shadow: 0 20px 44px rgba(6, 19, 64, 0.12);
}

.it-svc-card__thumb {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #061340, #0b70e1);
}

.it-svc-card__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.it-svc-card:hover .it-svc-card__thumb img {
  transform: scale(1.06);
}

.it-svc-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px 22px 22px;
}

.it-svc-card h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 20px;
  line-height: 1.3;
  transition: color 0.2s ease;
}

.it-svc-card:hover h3 {
  color: var(--blue);
}

.it-svc-card p {
  flex: 1;
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 15px;
}

.it-svc-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  color: var(--blue);
  font-weight: 700;
  font-size: 14px;
  transition: gap 0.2s ease;
}

.it-svc-card:hover .it-svc-card__link {
  gap: 10px;
}

/* Stats */
.it-svc-stats {
  position: relative;
  z-index: 1;
  padding: clamp(38px, 4.6vw, 54px) 0;
  color: #fff;
  background:
    radial-gradient(circle at 80% 20%, rgba(90, 208, 255, 0.22), transparent 32%),
    linear-gradient(120deg, #061340 0%, #03228f 55%, #0b70e1 100%);
  overflow: hidden;
}

.it-svc-stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.6;
  pointer-events: none;
}

.it-svc-stats__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 24px);
}

.it-svc-stat {
  padding: clamp(18px, 2.4vw, 24px) clamp(14px, 1.8vw, 18px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  text-align: center;
  backdrop-filter: blur(8px);
  transition: transform 0.35s ease, background 0.35s ease;
}

.it-svc-stat:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.12);
}

.it-svc-stat strong {
  display: block;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.it-svc-stat span {
  display: block;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.5;
}

/* Process */
.it-svc-process {
  position: relative;
  z-index: 1;
  padding: clamp(46px, 5.6vw, 68px) 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(90, 208, 255, 0.12), transparent 28%),
    linear-gradient(180deg, #f7faff 0%, #fff 100%);
}

.it-svc-process__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 22px);
}

.it-svc-process__grid::before {
  content: "";
  position: absolute;
  top: 38px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(11, 112, 225, 0.35), transparent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.it-svc-process__grid.is-line-visible::before {
  transform: scaleX(1);
}

.it-svc-step {
  position: relative;
  z-index: 1;
  padding: clamp(18px, 2.4vw, 24px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 44px rgba(6, 19, 64, 0.06);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}

.it-svc-step:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 56px rgba(6, 19, 64, 0.12);
}

.it-svc-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(11, 112, 225, 0.14), rgba(90, 208, 255, 0.2));
  color: var(--blue);
  font-weight: 800;
  font-size: 15px;
}

.it-svc-step h3 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 21px;
}

.it-svc-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
  font-size: 15px;
}

/* CTA */
.it-svc-cta {
  position: relative;
  z-index: 1;
  padding: clamp(34px, 4.2vw, 52px) 0 clamp(52px, 6.5vw, 76px);
}

.it-svc-cta__box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(28px, 4vw, 48px);
  padding: clamp(26px, 3.6vw, 38px);
  border-radius: 32px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 20%, rgba(90, 208, 255, 0.24), transparent 32%),
    linear-gradient(135deg, #061340, #0b70e1);
  box-shadow: 0 28px 64px rgba(6, 19, 64, 0.2);
  overflow: hidden;
}

.it-svc-cta__glow {
  position: absolute;
  top: -40%;
  right: -10%;
  width: 50%;
  height: 140%;
  background: radial-gradient(circle, rgba(90, 208, 255, 0.35), transparent 65%);
  animation: it-svc-cta-glow 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes it-svc-cta-glow {
  0%, 100% { opacity: 0.5; transform: translate(0, 0); }
  50% { opacity: 1; transform: translate(-20px, 10px); }
}

.it-svc-cta__box .it-reno-kicker {
  color: #9fd4ff;
}

.it-svc-cta__box h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.it-svc-cta__box p {
  max-width: 56ch;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.58;
  font-size: 16px;
}

.it-svc-btn--cta {
  flex-shrink: 0;
  background: #fff;
  color: var(--navy) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

/* Scroll reveals */
.it-services-reno [data-it-reveal],
.it-services-reno [data-it-reveal-item] {
  opacity: 0;
  transform: translate3d(0, 36px, 0) scale(0.98);
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.it-services-reno [data-it-reveal].is-visible,
.it-services-reno [data-it-reveal-item].is-visible {
  opacity: 1;
  transform: none;
}

.it-svc-hero__intro { transition-delay: 0s; }
.it-svc-hero__body { transition-delay: 0.1s; }
.it-svc-hero__actions { transition-delay: 0.18s; }
.it-svc-chips { transition-delay: 0.26s; }

.it-svc-grid [data-it-reveal-item]:nth-child(1) { transition-delay: 0.04s; }
.it-svc-grid [data-it-reveal-item]:nth-child(2) { transition-delay: 0.1s; }
.it-svc-grid [data-it-reveal-item]:nth-child(3) { transition-delay: 0.16s; }
.it-svc-grid [data-it-reveal-item]:nth-child(4) { transition-delay: 0.22s; }
.it-svc-grid [data-it-reveal-item]:nth-child(5) { transition-delay: 0.28s; }
.it-svc-grid [data-it-reveal-item]:nth-child(6) { transition-delay: 0.34s; }
.it-svc-grid [data-it-reveal-item]:nth-child(7) { transition-delay: 0.4s; }

.it-svc-stats__grid [data-it-reveal-item]:nth-child(2) { transition-delay: 0.1s; }
.it-svc-stats__grid [data-it-reveal-item]:nth-child(3) { transition-delay: 0.18s; }
.it-svc-stats__grid [data-it-reveal-item]:nth-child(4) { transition-delay: 0.26s; }

.it-svc-process__grid [data-it-reveal-item]:nth-child(2) { transition-delay: 0.12s; }
.it-svc-process__grid [data-it-reveal-item]:nth-child(3) { transition-delay: 0.22s; }
.it-svc-process__grid [data-it-reveal-item]:nth-child(4) { transition-delay: 0.32s; }

/* Hide theme banner */
body.page-template-page-services-renovate .rs-breadcrumbs,
body.page-template-page-services-renovate-php .rs-breadcrumbs,
body.page-template-page-services-renovate #braintech-load,
body.page-template-page-services-renovate-php #braintech-load,
body.page-template-page-services-renovate .loader-braintech,
body.page-template-page-services-renovate-php .loader-braintech {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  overflow: hidden !important;
}

body.page-template-page-services-renovate .header-inner,
body.page-template-page-services-renovate-php .header-inner {
  background-color: #fff !important;
  background-image: none !important;
}

body.page-template-page-services-renovate .main-contain.offcontents,
body.page-template-page-services-renovate-php .main-contain.offcontents {
  padding-top: 0;
  margin-top: 0;
}

@media (max-width: 1100px) {
  .it-svc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .it-svc-hero__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .it-svc-hero__visual {
    order: -1;
    max-width: 520px;
    margin: 0 auto;
  }

  .it-svc-process__grid,
  .it-svc-stats__grid,
  .it-svc-cta__box {
    grid-template-columns: 1fr;
    display: grid;
  }

  .it-svc-process__grid::before {
    display: none;
  }

  .it-svc-cta__box {
    text-align: center;
    justify-items: center;
  }
}

@media (max-width: 640px) {
  .it-svc-grid,
  .it-svc-stats__grid {
    grid-template-columns: 1fr;
  }

  .it-svc-orbit__card--a,
  .it-svc-orbit__card--c {
    display: none;
  }

  .it-svc-hero__visual {
    min-height: 260px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .it-svc-ambient__blob,
  .it-svc-marquee__track,
  .it-svc-orbit__glow,
  .it-svc-cta__glow,
  .it-svc-kicker::after,
  .it-svc-chips li {
    animation: none !important;
  }

  .it-services-reno [data-it-reveal],
  .it-services-reno [data-it-reveal-item] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
