/* ==========================================================================
   Services — mockup card grid + blue sidebar
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap");

.services-page {
  --sv-white: #ffffff;
  --sv-bg: #f5f8fc;
  --sv-dark: #1e3a5f;
  --sv-muted: #5f6f86;
  --sv-navy: #1e3a8a;
  --sv-blue: #2563eb;
  --sv-blue-bright: #1d4ed8;
  --sv-blue-soft: #dbeafe;
  --sv-yellow: #f5c518;
  --sv-border: #dbe4f0;
  --sv-radius: 1rem;
  --sv-shadow: 0 10px 28px rgba(30, 58, 138, 0.07);
  --sv-shadow-hover: 0 16px 36px rgba(30, 58, 138, 0.12);
  --sv-container: 64rem;
  --sv-font: "Outfit", "Segoe UI", sans-serif;
  --sv-ease: cubic-bezier(0.22, 1, 0.36, 1);

  padding-top: 0 !important;
  padding-bottom: 0 !important;
  background: var(--sv-bg);
  color: var(--sv-dark);
  font-family: var(--sv-font);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#service .page-content.services-page,
#service .services-page {
  padding-bottom: 0 !important;
}

.services-page h1,
.services-page h2,
.services-page h3,
.services-page h4,
.services-page h5,
.services-page h6,
.services-page p,
.services-page a,
.services-page li {
  font-family: var(--sv-font);
}

.sv-container {
  width: 100%;
  max-width: var(--sv-container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.25rem);
}

/* Breadcrumb */
.sv-crumb-bar {
  padding-block: 0.95rem;
  background: transparent;
}

.sv-crumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
  color: #7f93ad;
}

.sv-crumb__item + .sv-crumb__item::before {
  content: ">";
  margin-right: 0.4rem;
  color: #a8b6c8;
}

.sv-crumb__link {
  color: var(--sv-blue);
  text-decoration: none;
}

.sv-crumb__link:hover {
  color: var(--sv-navy);
  text-decoration: none;
}

.sv-crumb__item[aria-current="page"] {
  color: #7f93ad;
}

/* Sections */
.sv-section {
  padding-block: clamp(0.75rem, 2vw, 1.25rem) clamp(1.75rem, 3.5vw, 2.75rem);
}

.sv-section--main {
  flex: 1 0 auto;
  padding-top: 0.25rem;
}

.sv-section--soft {
  background: #eef3f9;
}

.sv-intro {
  text-align: center;
  margin-bottom: 1.5rem;
}

.sv-intro__title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 700;
  color: var(--sv-navy);
  letter-spacing: -0.02em;
}

.sv-intro__title span {
  color: var(--sv-blue-bright);
}

.sv-intro__rule {
  display: block;
  width: 3rem;
  height: 3px;
  margin: 0 auto;
  border-radius: 99px;
  background: var(--sv-yellow);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.55s var(--sv-ease);
}

.sv-intro.is-visible .sv-intro__rule {
  transform: scaleX(1);
}

/* Service cards */
.sv-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.25rem);
}

.sv-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 15.5rem;
  padding: 1.35rem 1.25rem 1.3rem;
  background: var(--sv-white);
  border: 1px solid var(--sv-border);
  border-radius: var(--sv-radius);
  box-shadow: var(--sv-shadow);
  transition: transform 0.3s var(--sv-ease), box-shadow 0.3s ease, border-color 0.3s ease;
}

.sv-card:hover,
.sv-card--featured {
  border-color: #93c5fd;
  box-shadow:
    0 0 0 1px rgba(59, 130, 246, 0.18),
    0 0 28px rgba(59, 130, 246, 0.18),
    var(--sv-shadow-hover);
}

.sv-card:hover {
  transform: translateY(-4px);
}

.sv-card--featured {
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(59, 130, 246, 0.14) 0%, transparent 55%),
    var(--sv-white);
}

.sv-card__icon {
  position: relative;
  z-index: 1;
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border-radius: 0.7rem;
  border: 1.5px solid #93c5fd;
  background: #eff6ff;
  color: var(--sv-blue);
}

.sv-card__icon svg {
  width: 1.2rem;
  height: 1.2rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sv-card__title {
  position: relative;
  z-index: 1;
  margin: 0 0 0.55rem;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sv-navy);
}

.sv-card__rule {
  position: relative;
  z-index: 1;
  display: block;
  width: 2.25rem;
  height: 2px;
  margin-bottom: 0.85rem;
  background: var(--sv-blue);
  border-radius: 99px;
}

.sv-card__text {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--sv-muted);
}

.sv-card__watermark {
  position: absolute;
  right: -0.5rem;
  bottom: -0.25rem;
  width: 7.5rem;
  height: 7.5rem;
  opacity: 0.12;
  pointer-events: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.sv-card__watermark--cloud {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none'%3E%3Crect x='10' y='28' width='14' height='22' rx='2' stroke='%232563eb' stroke-width='2'/%3E%3Crect x='28' y='18' width='14' height='32' rx='2' stroke='%232563eb' stroke-width='2'/%3E%3Crect x='46' y='24' width='12' height='26' rx='2' stroke='%232563eb' stroke-width='2'/%3E%3C/svg%3E");
}

.sv-card__watermark--web {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none'%3E%3Crect x='8' y='12' width='48' height='36' rx='3' stroke='%232563eb' stroke-width='2'/%3E%3Cpath d='M8 22h48' stroke='%232563eb' stroke-width='2'/%3E%3Ccircle cx='14' cy='17' r='1.5' fill='%232563eb'/%3E%3Ccircle cx='20' cy='17' r='1.5' fill='%232563eb'/%3E%3C/svg%3E");
}

.sv-card__watermark--mobile {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none'%3E%3Crect x='20' y='8' width='24' height='48' rx='4' stroke='%232563eb' stroke-width='2'/%3E%3Cpath d='M28 12h8' stroke='%232563eb' stroke-width='2' stroke-linecap='round'/%3E%3Ccircle cx='32' cy='50' r='2' fill='%232563eb'/%3E%3C/svg%3E");
}

.sv-card__watermark--support {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none'%3E%3Ccircle cx='32' cy='32' r='16' stroke='%232563eb' stroke-width='2'/%3E%3Cpath d='M20 32h6v8h-4a2 2 0 0 1-2-2v-6Zm24 0h-6v8h4a2 2 0 0 0 2-2v-6Z' stroke='%232563eb' stroke-width='2'/%3E%3C/svg%3E");
}

.sv-card__watermark--consult {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none'%3E%3Cpath d='M20 44c0-8 5-14 12-14s12 6 12 14' stroke='%232563eb' stroke-width='2'/%3E%3Ccircle cx='32' cy='22' r='8' stroke='%232563eb' stroke-width='2'/%3E%3Cpath d='M44 18l6-2 2 6' stroke='%232563eb' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.sv-card__watermark--network {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none'%3E%3Ccircle cx='32' cy='32' r='18' stroke='%232563eb' stroke-width='2'/%3E%3Cellipse cx='32' cy='32' rx='8' ry='18' stroke='%232563eb' stroke-width='2'/%3E%3Cpath d='M14 32h36M16 22h32M16 42h32' stroke='%232563eb' stroke-width='2'/%3E%3C/svg%3E");
}

/* Clients logos */
.sv-clients {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.85rem;
}

.sv-client {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 4.25rem;
  padding: 0.55rem 0.7rem;
  background: var(--sv-white);
  border: 1px solid var(--sv-border);
  border-radius: 0.75rem;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.sv-client img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.75;
  transition: filter 0.25s ease, opacity 0.25s ease;
}

.sv-client:hover img {
  filter: grayscale(0);
  opacity: 1;
}

/* CTA */
.sv-cta-block {
  text-align: center;
  max-width: 36rem;
  margin-inline: auto;
  padding: 1.5rem 1.25rem;
  background: var(--sv-white);
  border: 1px solid var(--sv-border);
  border-radius: var(--sv-radius);
  box-shadow: var(--sv-shadow);
}

.sv-cta-block__title {
  margin: 0 0 0.55rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--sv-navy);
}

.sv-cta-block__lead {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--sv-muted);
}

.sv-cta-block__lead a {
  color: var(--sv-blue);
  font-weight: 600;
  text-decoration: none;
}

.sv-cta-block__lead a:hover {
  text-decoration: underline;
}

/* Reveal */
.sv-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--sv-ease), transform 0.55s var(--sv-ease);
}

.sv-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.sv-reveal--d1 { transition-delay: 0.06s; }
.sv-reveal--d2 { transition-delay: 0.12s; }
.sv-reveal--d3 { transition-delay: 0.18s; }

/* Footer */
.services-page .services-footer {
  position: relative !important;
  bottom: auto !important;
  overflow: hidden;
  margin-top: auto;
  margin-bottom: 0 !important;
  padding-bottom: 1.8rem;
  flex: 0 0 auto;
}

.services-page .services-footer .services-footer-bg {
  background-image:
    linear-gradient(180deg, rgba(30, 58, 138, 0.75) 0%, rgba(15, 23, 42, 0.92) 100%),
    url("../img/services/services-brand.png") !important;
  background-position: center 20% !important;
  background-size: cover !important;
  transform: scale(1.08);
}

.services-page .services-footer .row {
  position: relative;
  z-index: 2;
}

/* Sidebar */
#service .sv-sidebar {
  --sv-yellow: #f5c518;
  overflow: hidden;
}

#service .sv-sidebar__slides {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #1d4ed8;
}

#service .sv-sidebar__track {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  will-change: transform;
  transition: transform 0.95s cubic-bezier(0.22, 1, 0.36, 1);
}

#service .sv-sidebar__slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  background-color: #1d4ed8;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

#service .sv-sidebar__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(37, 99, 235, 0.35) 0%,
    rgba(29, 78, 216, 0.45) 46%,
    rgba(30, 58, 138, 0.62) 100%
  );
  pointer-events: none;
}

#service .services-sidebar-bg {
  display: none;
}

#service .sv-sidebar::after {
  display: none;
}

.sidebar-item-wrapper[data-content="service"] > .bg-holder {
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

#service .sv-sidebar .btn-close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  left: auto;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  margin: 0;
  border: none;
  border-radius: 50%;
  background: #fff;
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  cursor: pointer;
}

#service .sv-sidebar .btn-close img.times {
  display: none !important;
}

#service .sv-sidebar .btn-close img.d-lg-none {
  display: block !important;
  width: 12px;
  height: 12px;
}

#service .sv-sidebar .page-title {
  color: #fff !important;
  font-family: var(--sv-font);
  font-weight: 700;
  left: 0.9rem !important;
  right: auto !important;
  bottom: 9.25rem !important;
  transform: none !important;
  margin: 0 !important;
  z-index: 3;
}

#service .sv-sidebar__accent {
  position: absolute;
  left: calc(0.9rem + 1.55rem) !important;
  right: auto !important;
  bottom: 1.65rem;
  width: 2px;
  height: 4.35rem;
  overflow: visible;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.65);
  z-index: 4;
}

#service .sv-sidebar__accent::before {
  content: "";
  position: absolute;
  top: -1.15rem;
  left: 50%;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #f5c518;
  transform: translateX(-50%);
  box-shadow: 0 0 12px rgba(245, 197, 24, 0.7);
  z-index: 5;
}

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

  .sv-clients {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .sv-container {
    padding-inline: clamp(1.05rem, 4vw, 1.75rem);
  }

  .sv-card {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .sv-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .sv-clients {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
  }

  .sv-card {
    padding: 1.15rem 1.05rem 1.1rem;
  }

  .sv-cta-block {
    padding: 1.35rem 1.1rem;
  }

  .sv-crumb-bar {
    padding-block: 0.55rem 0.2rem;
  }

  .sv-section {
    padding-block: 1.15rem 1.45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sv-reveal,
  .sv-intro__rule {
    transition: none !important;
  }
}
