/* ================= OUR SERVICES ================= */
.svc, .svc * { box-sizing: border-box; }

.svc {
  --red: #e3141b;
  --blue: #3d8bff;
  --navy: #0a1b55;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: calc(100vw * 793 / 1983);   /* wallpaper shape; grows taller if the text needs more room */
  display: flex;
  align-items: center;
  color: #fff;
  font-family: "Inter", Arial, sans-serif;
  background: #04225c;
}

/* ---------- full wallpaper ---------- */
.svc__photo {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.svc__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right bottom;
  display: block;
  transform: scale(1.08);
  transform-origin: 75% 50%;
  transition: transform 2.2s cubic-bezier(.2,.8,.2,1);
}
.svc.is-in .svc__photo img { transform: scale(1); }
.svc:hover .svc__photo img { transform: scale(1.03); }

/* light sweep across the tools */
.svc__photo::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: 40%;
  width: 22%;
  z-index: 2;
  opacity: 0;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: skewX(-24deg);
  animation: svcPhotoSweep 7s ease-in-out 2.5s infinite;
}

/* ---------- text ---------- */
.svc__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: clamp(24px, 2.4vw, 60px) max(16px, 4%, calc((100% - 1800px) / 2));
}
.svc__content > * { max-width: 43vw; }   /* text runs right up to the wallpaper photo */

.svc__title {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(40px, 4vw, 76px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
  overflow: hidden;
}
.svc__title > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform .9s cubic-bezier(.2,.8,.2,1);
}
.svc__accent { color: var(--blue); transition-delay: .12s !important; }
.svc.is-in .svc__title > span { transform: none; }

.svc__bar {
  display: block;
  width: 0;
  height: 5px;
  margin: 8px 0 16px;
  border-radius: 4px;
  background: var(--red);
  transition: width .8s ease .5s;
}
.svc.is-in .svc__bar { width: 80px; }

.svc__sub {
  margin: 0 0 10px;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(18px, 1.6vw, 28px);
  font-weight: 700;
}
.svc__text {
  margin: 0 0 clamp(18px, 1.5vw, 28px);
  font-size: clamp(14px, 0.98vw, 17px);
  line-height: 1.65;
  color: rgba(255,255,255,0.86);
}

/* fade-up for sub, text, buttons, icons */
.svc__sub, .svc__text, .svc__buttons {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s ease, transform .8s ease;
}
.svc.is-in .svc__sub     { opacity: 1; transform: none; transition-delay: .55s; }
.svc.is-in .svc__text    { opacity: 1; transform: none; transition-delay: .7s; }
.svc.is-in .svc__buttons { opacity: 1; transform: none; transition-delay: .85s; }

/* ---------- buttons ---------- */
.svc__buttons { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: clamp(20px, 1.8vw, 34px); }
.svc__btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: transform .25s, background .25s, box-shadow .25s, color .25s;
}
.svc__btn svg {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 2.4;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform .25s;
}
.svc__btn:hover { transform: translateY(-3px); }
.svc__btn:hover svg { transform: translateX(5px); }

.svc__btn--red { background: var(--red); box-shadow: 0 10px 24px rgba(227,20,27,0.4); }
.svc__btn--red:hover { background: #c40f15; }
.svc__btn--red::before {
  content: "";
  position: absolute; top: 0; bottom: 0; left: -60%;
  width: 40%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  animation: svcSweep 3.5s ease-in-out 2s infinite;
}
.svc__btn--ghost { border: 1.5px solid rgba(255,255,255,0.85); }
.svc__btn--ghost:hover { background: #fff; color: var(--navy); }

/* ---------- category icons ---------- */
.svc__cats {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 43vw !important;
}
.svc__cats li {
  flex: 1 1 0;
  min-width: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.25;
  border-left: 1px solid rgba(255,255,255,0.22);
  cursor: default;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.svc__cats li:first-child { border-left: none; padding-left: 0; }
.svc.is-in .svc__cats li { opacity: 1; transform: none; }
.svc.is-in .svc__cats li:nth-child(1) { transition-delay: 1.0s; }
.svc.is-in .svc__cats li:nth-child(2) { transition-delay: 1.1s; }
.svc.is-in .svc__cats li:nth-child(3) { transition-delay: 1.2s; }
.svc.is-in .svc__cats li:nth-child(4) { transition-delay: 1.3s; }
.svc.is-in .svc__cats li:nth-child(5) { transition-delay: 1.4s; }
.svc.is-in .svc__cats li:nth-child(6) { transition-delay: 1.5s; }

.svc__cats svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .35s ease, filter .35s ease;
}
.svc__cats .svc__red { stroke: var(--red); fill: none; }
.svc__cats li:hover svg {
  transform: translateY(-5px) scale(1.12);
  filter: drop-shadow(0 6px 10px rgba(61,139,255,0.6));
}

/* ---------- keyframes ---------- */
@keyframes svcSweep { 0% { left: -60%; } 40%, 100% { left: 140%; } }
@keyframes svcPhotoSweep { 0% { left: 40%; opacity: 0; } 8% { opacity: 1; } 45% { left: 110%; opacity: 1; } 46%, 100% { left: 110%; opacity: 0; } }

/* ---------- responsive ---------- */
@media (max-width: 1023px) {
  .svc { flex-direction: column; align-items: stretch; }
  .svc { min-height: 0; }
  .svc__photo {
    position: relative;
    inset: auto;
    width: 100%;
    height: clamp(280px, 48vw, 460px);
    order: 2;
  }
  .svc__photo img { position: static; width: 100%; height: 100%; object-fit: cover; object-position: 85% center; }
  .svc__photo::before {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg, #04225c 0%, rgba(4,34,92,0) 30%);
  }
  .svc__content > *, .svc__cats { max-width: 900px !important; }
  .svc__content { padding: 50px max(20px, 4%) 30px; }
}
@media (max-width: 640px) {
  .svc__cats li { flex: 1 1 30%; border-left: none; padding: 10px 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .svc *, .svc *::before, .svc *::after { animation: none !important; transition: none !important; }
  .svc__title > span, .svc__sub, .svc__text, .svc__buttons, .svc__cats li { opacity: 1; transform: none; }
  .svc__bar { width: 80px; }
}
/* ================= END OUR SERVICES ================= */
