/* ==========================================================
   Monkman Global — Services page
   (loaded after style.css)
   ========================================================== */

/* ---------- Image with overlaid cards ----------
   The source photos contain pre-drawn cards. Real HTML cards sit exactly on
   top of them (positions in % of the image), and text scales with the image
   width through container query units (cqw). */
.overlay-img { position: relative; container-type: inline-size; }
.overlay-img > img { width: 100%; height: auto; display: block; mix-blend-mode: multiply; }

.ov-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 3cqw;
  padding: 0 3cqw;
  background: #fff;
  border-radius: 2.4cqw;
  box-shadow: 0 1.5cqw 4cqw rgba(15, 58, 74, 0.10);
}
.ov-card strong { font-size: 2.7cqw; line-height: 1.3; color: var(--navy-dark); font-weight: 700; }
.ov-card__sub { display: block; font-size: 2.3cqw; line-height: 1.4; color: var(--muted); margin-top: 0.6cqw; }
.ov-card__icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 8.5cqw;
  height: 8.5cqw;
  border-radius: 50%;
  background: #fdebe2;
  color: var(--orange);
}
.ov-card__icon svg { width: 4.4cqw; height: 4.4cqw; }

/* services-hero.png card positions (image trimmed to 1450px wide) */
.ov-card--a { left: 3.2%;  top: 29.6%; width: 32.7%; height: 20.8%; }
.ov-card--b { left: 3.2%;  top: 51.3%; width: 32.7%; height: 20.6%; }
.ov-card--c {
  left: 49.7%; top: 64.2%; width: 45%; height: 28.6%;
  justify-content: space-between;
  padding: 0 4cqw;
}
.ov-card__big { display: block; font-size: 6.4cqw; font-weight: 700; color: var(--navy-dark); line-height: 1; letter-spacing: -0.02em; }
.ov-card--c .ov-card__sub { font-size: 2.2cqw; max-width: 22cqw; margin-top: 1.2cqw; }
.ov-card__bar { display: block; width: 14cqw; height: 0.7cqw; border-radius: 1cqw; background: #e4e9ec; margin-top: 2cqw; }
.ov-card__chart {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 1cqw;
  height: 14cqw;
  padding-left: 3cqw;
  border-left: 1px solid var(--line);
}
.ov-card__chart i { display: block; width: 2.6cqw; border-radius: 1.4cqw; background: var(--orange); }
.ov-card__chart i:nth-child(1) { background: #f9c7ae; }
.ov-card__chart i:nth-child(2) { background: #f39a6f; }
.ov-card__chart b {
  position: absolute;
  top: -1.5cqw;
  right: -2.4cqw;
  display: grid;
  place-items: center;
  width: 4.2cqw;
  height: 4.2cqw;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 2.4cqw;
  font-weight: 700;
}

/* services-intro.png card position */
.ov-card--d { left: 4.0%; top: 57.0%; width: 50.2%; height: 27.6%; padding: 0 3.5cqw; }
.ov-card--d strong { font-size: 3.4cqw; }
.ov-card--d .ov-card__sub { font-size: 2.5cqw; }
.ov-card--d .ov-card__icon { width: 9.5cqw; height: 9.5cqw; }
.ov-card--d .ov-card__icon svg { width: 5cqw; height: 5cqw; stroke-width: 2; }

/* ---------- Hero ---------- */
.svc-hero {
  overflow: hidden;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(240, 120, 74, 0.10), transparent 45%),
    linear-gradient(180deg, #fff 0%, var(--bg-warm) 100%);
}
.svc-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); /* wider text column so the long heading takes fewer lines */
  gap: 40px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 48px;
}
.svc-hero__title {
  font-size: clamp(38px, 5vw, 62px); /* same as home page h1 */
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 22px;
}
.svc-hero .hero__text { font-size: 16px; max-width: 620px; }
.svc-hero .hero__actions { margin: 30px 0 32px; }
.stars { color: var(--orange); letter-spacing: 3px; font-size: 14px; line-height: 1; margin-bottom: 4px; }

/* ---------- Technology strip ---------- */
.tech-strip { background: #fff; padding: 28px 0 34px; border-bottom: 1px solid var(--line); }
.tech-strip__title { text-align: center; font-size: 13.5px; color: var(--text); margin-bottom: 22px; }
.tech-strip__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.tech-strip__list li {
  text-align: center;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #59646c;
  padding: 6px 12px;
  border-left: 1px solid var(--line);
  filter: grayscale(1);
}
.tech-strip__list li:first-child { border-left: 0; }

/* ---------- Intro ---------- */
.svc-intro { background: var(--bg-warm); padding: 72px 0; }
.svc-intro__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.svc-intro__text { font-size: 16px; margin-bottom: 28px; }

/* ---------- Services list ---------- */
.svc-list-wrap { padding: 72px 0 80px; background: #fff; }
.svc-list { border-top: 1px solid var(--line); margin-top: 8px; }
.svc-row {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.1fr) minmax(0, 0.8fr) minmax(0, 0.85fr);
  gap: 32px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 90px;
}
.svc-row__head { display: flex; align-items: center; gap: 22px; }
.svc-row__head svg { width: 36px; height: 36px; }
.svc-row__head h3 { font-size: 19px; line-height: 1.3; }
.svc-row__text { font-size: 13.5px; color: var(--muted); }
.svc-row__thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s ease;
}
.svc-row:hover .svc-row__thumb { transform: scale(1.03); }

.tech-tile {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(94, 200, 235, 0.55), transparent 55%),
    linear-gradient(135deg, #0b3a52 0%, #0a2230 100%);
  overflow: hidden;
}
.tech-tile--alt {
  background:
    radial-gradient(circle at 60% 40%, rgba(94, 200, 235, 0.45), transparent 55%),
    radial-gradient(circle at 20% 90%, rgba(232, 98, 44, 0.35), transparent 45%),
    linear-gradient(135deg, #123f55 0%, #081c27 100%);
}
.tech-tile svg {
  width: 38%;
  height: auto;
  color: #bdefff;
  stroke-width: 1.2;
  filter: drop-shadow(0 0 6px rgba(120, 220, 255, 0.9)) drop-shadow(0 0 16px rgba(80, 190, 240, 0.6));
}

.svc-row__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.svc-row__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 12px;
  font-size: 12.5px;
  color: var(--text);
  background: #fbf8f6;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.svc-row__links a span {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.3px solid #f2b397;
  color: var(--orange);
  font-size: 10px;
}
.svc-row__links a:hover { background: #fdebe2; color: var(--orange); }

/* ---------- CTA ---------- */
.svc-cta {
  position: relative;
  overflow: hidden;
  padding: 72px 0;
  background:
    radial-gradient(circle at 85% 40%, rgba(240, 120, 74, 0.18), transparent 40%),
    radial-gradient(circle at 60% 110%, rgba(240, 120, 74, 0.14), transparent 40%),
    linear-gradient(180deg, #fcf1ea 0%, #fdf6f1 100%);
}
.svc-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(232, 98, 44, 0.22) 1.2px, transparent 1.3px);
  background-size: 14px 14px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 50%, #000 0%, transparent 60%);
  mask-image: radial-gradient(ellipse at 70% 50%, #000 0%, transparent 60%);
  pointer-events: none;
}
.svc-cta__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 60px;
  align-items: center;
}
.svc-cta__title { font-size: clamp(28px, 3.2vw, 40px); letter-spacing: -0.02em; margin-bottom: 14px; }
.svc-cta .muted { max-width: 460px; margin-bottom: 28px; }
.svc-cta__stats { padding: 14px 32px; justify-self: end; width: 100%; max-width: 360px; }
.svc-cta__stats li { gap: 20px; padding: 18px 0; }
.svc-cta__stats strong { font-size: 20px; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1100px) {
  .tech-strip__list { grid-template-columns: repeat(4, 1fr); row-gap: 16px; }
  .tech-strip__list li:nth-child(5) { border-left: 0; }
  .svc-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr); }
  .svc-row__links { grid-column: 2 / -1; grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 960px) {
  .svc-hero__inner,
  .svc-intro__inner,
  .svc-cta__inner { grid-template-columns: minmax(0, 1fr); }
  .svc-hero__visual { max-width: 620px; width: 100%; margin: 0 auto; }
  .svc-intro__visual { max-width: 620px; width: 100%; margin: 0 auto; }
  .svc-cta__stats { justify-self: start; max-width: none; }

  .svc-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 24px; }
  .svc-row__head { grid-column: 1 / -1; }
  .svc-row__links { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .tech-strip__list { grid-template-columns: repeat(2, 1fr); }
  .tech-strip__list li { border-left: 0; font-size: 17px; }
  .svc-row { grid-template-columns: minmax(0, 1fr); }
  .svc-row__links { grid-template-columns: minmax(0, 1fr); }
  .svc-hero .hero__actions { flex-direction: column; }
  .svc-hero .hero__actions .btn { width: 100%; }
  .svc-cta .cta__actions { flex-direction: column; }
}
