/* Services listing page — Univista-inspired layout */

/* Scroll reveals & motion */
.services-page__section .reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}

.services-page__section .reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.services-breathe {
  display: inline-flex;
  animation: servicesBreathe 3s ease-in-out infinite;
}

@keyframes servicesBreathe {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.06);
    opacity: 0.92;
  }
}

@keyframes servicesUnderlinePulse {
  0%, 100% {
    width: 4rem;
    opacity: 1;
  }
  50% {
    width: 5.5rem;
    opacity: 0.85;
  }
}

.page-hero__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.75);
}

.page-hero__breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-hero__breadcrumb a:hover {
  color: #00AEEF;
}

.page-hero__breadcrumb span[aria-current="page"] {
  color: #00AEEF;
  font-weight: 600;
}

.page-hero__breadcrumb-sep {
  opacity: 0.5;
  user-select: none;
}

/* Main services list */
.services-univista {
  background: #fff;
}

.services-univista__header {
  text-align: center;
  margin-bottom: 3rem;
}

.services-univista__headline {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: #0f172a;
  position: relative;
  display: inline-block;
}

.services-univista__headline::after {
  content: '';
  display: block;
  width: 4rem;
  height: 4px;
  background: linear-gradient(90deg, #2E3192, #00AEEF);
  margin: 0.85rem auto 0;
  border-radius: 2px;
  animation: servicesUnderlinePulse 3.5s ease-in-out infinite;
}

.services-univista__columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 1024px) {
  .services-univista__columns {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.services-univista__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.services-univista__item {
  display: flex;
  gap: 1.25rem;
  padding: 1.75rem 1rem 1.75rem 0;
  border-bottom: 1px solid rgba(46, 49, 146, 0.1);
  border-left: 3px solid transparent;
  border-radius: 0 0.5rem 0.5rem 0;
  transition:
    border-color 0.35s ease,
    background 0.35s ease,
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease;
}

.services-univista__item:hover {
  border-left-color: #00AEEF;
  background: linear-gradient(90deg, rgba(46, 49, 146, 0.04) 0%, transparent 100%);
  transform: translateX(6px);
  box-shadow: -4px 0 0 rgba(0, 174, 239, 0.35);
}

.services-univista__item:first-child {
  padding-top: 0;
}

.services-univista__num {
  flex-shrink: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  color: #00AEEF;
  -webkit-text-stroke: 1px rgba(46, 49, 146, 0.15);
  min-width: 2.5rem;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s ease;
}

.services-univista__item:hover .services-univista__num {
  transform: scale(1.08);
  color: #2E3192;
  -webkit-text-stroke: 0;
}

.services-univista__item-body {
  flex: 1;
  min-width: 0;
}

.services-univista__item-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  line-height: 1.35;
  transition: color 0.3s ease;
}

.services-univista__item:hover .services-univista__item-title {
  color: #2E3192;
}

.services-univista__item-title a {
  color: #0f172a;
  text-decoration: none;
  transition: color 0.2s ease;
}

.services-univista__item-title a:hover {
  color: #2E3192;
}

.services-univista__item-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #64748b;
  margin: 0;
}

.services-univista__empty {
  text-align: center;
  color: #64748b;
  padding: 3rem 0;
}

/* Tagline band */
.services-tagline {
  background: linear-gradient(135deg, #2E3192 0%, #192071 100%);
  padding: 2.5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.services-tagline::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 120%, rgba(0, 174, 239, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.services-tagline__text {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: #fff;
  margin: 0;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 1;
}

/* Impact / case studies */
.services-impact {
  background: linear-gradient(180deg, #f8faf9 0%, #ffffff 100%);
  border-top: 1px solid rgba(46, 49, 146, 0.06);
}

.services-impact__header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.services-impact__title {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: #2E3192;
  margin-bottom: 0.75rem;
}

.services-impact__subtitle {
  max-width: 40rem;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.7;
  color: #64748b;
}

.services-impact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .services-impact__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-impact__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.services-impact__card {
  background: #fff;
  border-radius: 0.85rem;
  border: 1px solid rgba(46, 49, 146, 0.08);
  box-shadow: 0 6px 24px rgba(46, 49, 146, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  height: 100%;
}

.services-impact__card:hover {
  transform: translateY(-4px);
  border-color: rgba(46, 49, 146, 0.18);
  box-shadow: 0 16px 40px rgba(46, 49, 146, 0.1);
}

.services-impact__card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
}

.services-impact__card-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #0f172a;
  margin-bottom: 0.65rem;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.services-impact__card:hover .services-impact__card-title {
  color: #2E3192;
}

.services-impact__card-desc {
  font-size: 0.9rem;
  line-height: 1.65;
  color: #64748b;
  flex: 1;
  margin-bottom: 0.85rem;
}

.services-impact__card-meta {
  font-size: 0.8rem;
  color: #2E3192;
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
}

.services-impact__card-client::before {
  content: '—';
  margin-right: 0.35rem;
  opacity: 0.5;
}

.services-impact__card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #2E3192;
  margin-top: auto;
  transition: gap 0.3s ease, color 0.3s ease;
}

.services-impact__card:hover .services-impact__card-cta {
  gap: 0.55rem;
  color: #192071;
}

.services-impact__footer {
  text-align: center;
  margin-top: 2.5rem;
}

.services-impact__all-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #2E3192;
  font-weight: 600;
  text-decoration: none;
  transition: gap 0.25s ease;
}

.services-impact__all-link:hover {
  gap: 0.75rem;
}

/* FAQs */
.services-faq {
  position: relative;
  background: #f4f7f5;
  overflow: hidden;
}

.services-faq::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 0% 0%, rgba(46, 49, 146, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(0, 174, 239, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.services-faq__layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .services-faq__layout {
    grid-template-columns: minmax(280px, 360px) 1fr;
    gap: 3.5rem;
  }
}

.services-faq__intro {
  position: relative;
}

@media (min-width: 1024px) {
  .services-faq__intro {
    position: sticky;
    top: 6rem;
  }
}

.services-faq__intro-inner {
  background: linear-gradient(165deg, #141852 0%, #2E3192 72%, #2430A0 100%);
  color: #fff;
  border-radius: 1.25rem;
  padding: 2rem 1.75rem;
  box-shadow:
    0 24px 48px rgba(20, 24, 82, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}

.services-faq__intro:hover .services-faq__intro-inner {
  transform: translateY(-3px);
  box-shadow:
    0 28px 56px rgba(20, 24, 82, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

@media (min-width: 640px) {
  .services-faq__intro-inner {
    padding: 2.5rem 2rem;
  }
}

.services-faq__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #00AEEF;
  margin-bottom: 1rem;
}

.services-faq__eyebrow::before {
  content: '';
  width: 1.5rem;
  height: 2px;
  background: #00AEEF;
  border-radius: 1px;
}

.services-faq__title {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(1.65rem, 3.2vw, 2.15rem);
  line-height: 1.2;
  color: #fff;
  margin: 0 0 0.85rem;
}

.services-faq__subtitle {
  font-size: 0.98rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
}

.services-faq__support {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.services-faq__help {
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 1.25rem;
}

.services-faq__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.services-faq__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.services-faq__cta--primary {
  background: #00AEEF;
  color: #141852;
}

.services-faq__cta--primary:hover {
  background: #33C4F0;
  transform: translateY(-1px);
}

.services-faq__cta--secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.services-faq__cta--secondary:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.06);
}

.services-faq__accordion {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.services-faq__item {
  background: #fff;
  border: 1px solid rgba(46, 49, 146, 0.08);
  border-radius: 0.875rem;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(46, 49, 146, 0.04);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.services-faq__item:hover {
  border-color: rgba(46, 49, 146, 0.16);
}

.services-faq__item[open] {
  border-color: rgba(46, 49, 146, 0.22);
  box-shadow: 0 8px 28px rgba(46, 49, 146, 0.1);
}

.services-faq__question {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.35rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  color: #0f172a;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.services-faq__question::-webkit-details-marker {
  display: none;
}

.services-faq__index {
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #2E3192;
  background: rgba(46, 49, 146, 0.08);
  border-radius: 0.375rem;
  padding: 0.35rem 0.5rem;
  min-width: 2.25rem;
  text-align: center;
  transition: background 0.3s ease, color 0.3s ease;
}

.services-faq__item[open] .services-faq__index {
  background: #2E3192;
  color: #fff;
}

.services-faq__question-text {
  line-height: 1.45;
  padding-right: 0.25rem;
}

.services-faq__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(46, 49, 146, 0.06);
  color: #2E3192;
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease, color 0.3s ease;
}

.services-faq__item[open] .services-faq__toggle {
  transform: rotate(180deg);
  background: #00AEEF;
  color: #141852;
}

.services-faq__answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.services-faq__item[open] .services-faq__answer {
  grid-template-rows: 1fr;
}

.services-faq__answer-inner {
  overflow: hidden;
}

.services-faq__answer-inner p {
  margin: 0;
  padding: 0 1.35rem 1.35rem 4.6rem;
  font-size: 0.95rem;
  line-height: 1.75;
  color: #64748b;
  border-top: 1px solid rgba(46, 49, 146, 0.06);
  padding-top: 1rem;
}

@media (max-width: 639px) {
  .services-faq__answer-inner p {
    padding-left: 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .services-page__section .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .services-breathe,
  .services-univista__headline::after {
    animation: none;
  }

  .services-univista__item:hover,
  .services-impact__card:hover,
  .services-faq__intro:hover .services-faq__intro-inner {
    transform: none;
  }

  .services-impact__card,
  .services-faq__answer,
  .services-faq__toggle,
  .services-faq__item,
  .services-univista__item {
    transition: none;
  }
}
