/* ==========================================================================
   Services page (services.html) — every selector is scoped under .svc-
   ========================================================================== */

@font-face {
  font-family: "Svc Poppins ExtraLight";
  src: url("../../fonts/poppins/Poppins-ExtraLight.woff2") format("woff2");
  font-weight: 200 300;
  font-display: swap;
}

/* ---------- Hero: animated dotted particle wave ---------- */
.svc-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 498px;
  padding: 80px 0;
  margin-bottom: 100px;
  overflow: hidden;
  background: #000 url("../../images/art/services-banner.webp") no-repeat center / cover;
  color: #fff;
}
.svc-hero.is-live { background-image: none; }
.svc-hero__wave {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}
.svc-hero__inner { position: relative; z-index: 1; }
/* The live theme asks for an undeclared "DM Sans", so the browser falls back to Arial here */
.svc-hero__eyebrow {
  margin: 0 0 1rem;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 21px;
  letter-spacing: 1.4px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
}
.svc-hero__title {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 48px;
  line-height: 55px;
  font-weight: 500;
  color: #fff;
}
.svc-hero__sub {
  margin: 1rem 0 0;
  font-size: 20px;
  line-height: 1.5;
  color: var(--muted);
}
.svc-hero__title { max-width: 900px; }
.svc-hero__sub { max-width: 820px; }
.svc-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2rem;
}

/* ---------- Service blocks ---------- */
.svc-block {
  padding: 48px 0 100px;
  background: #000;
  color: #fff;
  scroll-margin-top: var(--header-h);
  overflow-x: clip; /* the 600px glow behind the images must not widen the page */
}
.svc-block__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 48px;
  align-items: start;
}
.svc-block__row--center { align-items: center; }

.svc-block__title {
  margin: 0 0 1rem;
  font-family: "Svc Poppins ExtraLight", var(--font);
  font-size: 55.72px;
  line-height: 59.31px;
  font-weight: 275;
  color: #4573de;
}
.svc-block__lead {
  margin: 0 0 36px;
  font-size: 20px;
  line-height: 1.5;
  color: var(--muted);
}
.svc-block__list {
  margin: 0 0 86px;
  padding: 0;
  list-style: none;
}
.svc-block__list li {
  position: relative;
  margin-bottom: .5rem;
  padding-left: 28px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 20px;
  line-height: 24.91px;
  color: var(--muted);
}
.svc-block__list li:last-child { margin-bottom: 1rem; }
.svc-block__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  background: url("../../images/art/bullet-arrow.svg") no-repeat center / contain;
}

/* "Discuss this project" + "Explore … →" row under each block */
.svc-block__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}
.svc-block__more {
  color: #8fb0f0;
  font-size: 18px;
  text-decoration: underline;
  text-decoration-color: rgba(143, 176, 240, .4);
  text-underline-offset: 4px;
  transition: color .3s ease, text-decoration-color .3s ease;
}
.svc-block__more:hover,
.svc-block__more:focus-visible { color: #fff; text-decoration-color: currentColor; }
/* Extra anchor (#custom-software) on the renamed Personalised System block */
.svc-anchor { display: block; scroll-margin-top: var(--header-h); }

/* "Growth services" group heading */
.svc-group {
  padding-top: 40px;
  scroll-margin-top: var(--header-h);
}
.svc-group .svc-head__title { padding-bottom: 0; }

.svc-block__media { position: relative; }
.svc-block__media--offset { margin-top: 1rem; }
.svc-block__img {
  position: relative;
  z-index: 1;
  display: block;
  width: 550px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 0 40px rgba(38, 91, 216, .25);
}
.svc-block__glow,
.svc-block__glow--low {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  max-width: 100vw;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(43.01% 43.41% at 50% 50%, #265bd8 0%, rgba(66, 52, 219, 0) 100%);
  opacity: .6;
  filter: blur(100px);
  pointer-events: none;
}
.svc-block__glow--low { top: 76%; left: 58%; }

/* Pill button: cyan fill sweeps in, chevron swaps to an arrow */
.svc-btn { font-family: inherit; }
.svc-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  overflow: hidden;
  border: 1px solid #fff;
  border-radius: 50px;
  background: transparent;
  color: #fff;
  font-size: 18px;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .4s ease-in-out, color .4s ease-in-out;
}
.svc-btn::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--accent);
  transition: width .4s ease-in-out;
}
.svc-btn:hover,
.svc-btn:focus-visible { border-color: var(--accent); color: #fff; }
.svc-btn:hover::before,
.svc-btn:focus-visible::before { width: 100%; }
.svc-btn > span,
.svc-btn__icon { position: relative; z-index: 2; }
.svc-btn__icon {
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
}
.svc-btn__icon svg { grid-area: 1 / 1; transition: opacity .3s ease-in-out; }
.svc-btn__icon .svc-chev { width: 9px; height: 14px; }
.svc-btn__icon .svc-arrow { width: 15px; height: 14px; opacity: 0; }
.svc-btn:hover .svc-chev,
.svc-btn:focus-visible .svc-chev { opacity: 0; }
.svc-btn:hover .svc-arrow,
.svc-btn:focus-visible .svc-arrow { opacity: 1; }

/* ---------- Shared section heads (Cases / Stories) ---------- */
.svc-head__eyebrow {
  margin: 0 0 1rem;
  font-size: 16px;
  color: #5b87e3;
  text-transform: uppercase;
}
.svc-head__title {
  margin: 0 0 .5rem;
  padding-bottom: 30px;
  font-size: 45px;
  line-height: 1.2;
  font-weight: 500;
  color: #fff;
}
.svc-head__intro {
  max-width: 760px;
  margin: 0 0 2.5rem;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
}
.svc-head__intro a { color: #8fb0f0; text-underline-offset: 3px; }
.svc-head__intro a:hover { color: #fff; }
.svc-nav-end {
  display: flex;
  justify-content: flex-end;
}

/* ---------- Case studies ---------- */
.svc-cases {
  margin-top: 6rem;
  margin-bottom: 7rem;
  overflow: hidden;
}
.svc-cases__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 24px;
}
.svc-case {
  position: relative;
  display: block;
  height: 100%;
  padding: 16px;
  overflow: hidden;
  border-radius: 12px;
  background: #1d222b;
}
/* Animated gradient border on hover */
.svc-case::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 2px;
  border-radius: 12px;
  background: linear-gradient(90deg, #3567db, #ff4ecd, #3567db);
  background-size: 200% 100%;
  opacity: 0;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
          mask-composite: exclude;
  pointer-events: none;
  transition: opacity .3s ease;
}
.svc-case:hover::before {
  opacity: 1;
  animation: svc-border-move 2s linear infinite;
}
@keyframes svc-border-move {
  from { background-position: 0% 50%; }
  to { background-position: 200% 50%; }
}
.svc-case__image {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}
.svc-case__image img {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 16px;
}
/* Cursor-following "Case" label (positioned by services.js) */
.svc-case__label {
  position: absolute;
  top: 0;
  left: 0;
  padding: 5px 13px;
  border-radius: 12px;
  background: #fff;
  color: #556a9b;
  font-size: 14px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform .05s linear;
}
.svc-case:hover .svc-case__label { opacity: 1; }
.svc-case__body {
  display: flex;
  flex-direction: column;
  padding-top: 16px;
}
.svc-case__tags {
  margin-bottom: 18px;
  font-size: 13px;
  letter-spacing: .5px;
  color: var(--accent);
}
.svc-case__title {
  flex-grow: 1;
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 500;
  color: var(--text-2);
}
.svc-case__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.svc-case__more svg {
  width: 20px;
  height: 20px;
  transition: transform .5s;
}
.svc-case__more:hover svg { transform: translateX(4px); }
.svc-cases__more {
  margin-top: 3rem;
}

/* ---------- Articles ---------- */
.svc-articles {
  margin-bottom: 5rem;
  padding-top: 4rem;
  overflow: hidden;
}
.svc-articles__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 3rem;
}
.svc-article__img-link { display: block; }
.svc-article__img-link img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 16.406rem;
  object-fit: cover;
  border-radius: 18px;
}
.svc-article__date {
  margin: 1rem 0;
  color: #fff;
}
.svc-article__title {
  margin: 0 0 1rem;
  font-size: 28px;
  line-height: 33.35px;
  color: var(--text-2);
}
.svc-article__title a {
  color: var(--text-2);
  text-decoration: none;
  transition: color .3s var(--ease);
}
.svc-article__title a:hover { color: #fff; }
.svc-article__desc {
  margin: 0 0 1rem;
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
}
.svc-articles__more { margin-top: 2rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1400px) {
  .svc-articles { padding-top: 2rem; }
  .svc-articles__grid { grid-template-columns: 1fr 1fr; }
  .svc-article__img-link img { height: 22.406rem; }
}

@media (max-width: 991px) {
  .svc-hero { margin-bottom: 80px; }
  .svc-block { padding: 0 0 80px; }
  .svc-block__row { grid-template-columns: 1fr; row-gap: 0; }
  .svc-block__text { order: 1; }
  .svc-block__media { order: 2; margin-top: 0; }
  .svc-block__title { font-size: 45.72px; line-height: 50.31px; }
  .svc-block__lead { margin-bottom: 20px; }
  .svc-block__list { margin-bottom: 35px; }
  .svc-block__img { margin-top: 20px; }
  .svc-block__media--mb { margin-bottom: 3rem; }
  .svc-block__glow { top: 86%; left: 34%; width: 573px; height: 524px; }
  .svc-block__glow--low { top: 75%; left: 42%; width: 385px; height: 554px; }
}

@media (max-width: 899px) {
  .svc-cases__grid { grid-template-columns: 1fr; }
  .svc-articles__grid { grid-template-columns: 1fr; }
  .svc-article__img-link img { height: 20rem; }
  .svc-article__date { margin: .5rem 0; }
  .svc-article__title { font-size: 20px; line-height: 25.35px; }
  .svc-nav-end { justify-content: flex-start; }
  .svc-cases__more,
  .svc-articles__more { font-size: 16px; }
}

@media (max-width: 767px) {
  .svc-hero { min-height: 350px; padding: 56px 0; margin-bottom: 60px; }
  .svc-block__more { font-size: 16px; }
  .svc-group { padding-top: 20px; }
  .svc-hero__title { font-size: 34px; line-height: 42px; }
  .svc-hero__sub { font-size: 18px; }
  .svc-block { padding: 0 0 40px; overflow: hidden; }
  .svc-block__title { font-size: 40.72px; line-height: 45.31px; }
  .svc-block__lead { font-size: 18px; }
  .svc-block__list li { font-size: 18px; line-height: 22.91px; }
  .svc-block__img { width: 100%; }
  .svc-block__glow { width: 100%; height: 524px; }
  .svc-block__glow--low { width: 100%; height: 554px; }
  .svc-head__title { font-size: 32px; line-height: 40px; }
}
@media (max-width: 374px) {
  .svc-hero__title { font-size: 28px; line-height: 36px; }
  .svc-block__title { font-size: 34px; line-height: 40px; }
}
/* Phones in landscape: the banner shrinks to its copy. */
@media (max-height: 500px) and (orientation: landscape) {
  .svc-hero { min-height: 0; padding: 56px 0; margin-bottom: 48px; }
}

/* ===== LIGHT THEME (.theme-light) ===== */
/* Hero is a light band too: soft white surface under the blue dot wave. */
.theme-light .svc-hero {
  background: radial-gradient(ellipse at 50% 30%, #ffffff 0%, #f5f7fb 55%, #eef2fa 100%);
  color: var(--text);
}
.theme-light .svc-hero__eyebrow { color: var(--accent); }
.theme-light .svc-hero__title { color: #0e1525; }
.theme-light .svc-hero__sub { color: #5b6577; }
.theme-light .svc-block { background: #fff; color: var(--text); }
.theme-light .svc-block:nth-of-type(odd) { background: var(--bg); }
.theme-light .svc-block__title { color: #2f5fd6; }
.theme-light .svc-block__lead,
.theme-light .svc-block__list li { color: var(--muted); }
.theme-light .svc-block__img { box-shadow: 0 18px 40px -14px rgba(38, 91, 216, .35), 0 0 0 1px rgba(14, 21, 37, .04); }
.theme-light .svc-block__glow,
.theme-light .svc-block__glow--low { opacity: .22; }

.theme-light .svc-btn { border-color: rgba(14, 21, 37, .3); color: var(--text); }
.theme-light .svc-btn:hover,
.theme-light .svc-btn:focus-visible { border-color: var(--accent); color: #fff; }

.theme-light .svc-head__intro a,
.theme-light .svc-block__more { color: #2f5fd6; }
.theme-light .svc-block__more:hover,
.theme-light .svc-block__more:focus-visible { color: var(--accent); }
.theme-light .svc-head__intro a:hover { color: var(--accent); }
.theme-light .svc-head__title { color: var(--text); }

.theme-light .svc-case {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px -12px rgba(14, 21, 37, .12);
}
.theme-light .svc-case__title { color: var(--text); }
.theme-light .svc-case__more { color: var(--muted); }
.theme-light .svc-case__more:hover { color: var(--accent); }
.theme-light .svc-case__label { box-shadow: 0 6px 18px rgba(14, 21, 37, .2); }

.theme-light .svc-article {
  padding: 14px 14px 4px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 30px -12px rgba(14, 21, 37, .12);
}
.theme-light .svc-article__date { color: var(--accent); font-weight: 600; }
.theme-light .svc-article__title,
.theme-light .svc-article__title a { color: var(--text); }
.theme-light .svc-article__title a:hover { color: var(--accent); }
.theme-light .svc-article__desc { color: var(--muted); }
