:root {
  --services-cream: #fafaf8;
  --services-gold: #ecc368;
  --services-gold-soft: #c9a961;
  --services-gold-dark: #c69a52;
  --services-gold-light: #f2ddb4;
  --services-purple-dark: #120719;
  --services-purple: #500082;
  --services-ink: #2a1a3f;
  --services-text: #1a1a1a;
  --services-line: #e8e8e8;
}

* {
  box-sizing: border-box;
}

body.page-services-overview {
  margin: 0;
  background: #ffffff;
  color: var(--services-text);
  font-family: Arial, Helvetica, sans-serif;
  max-width: 100%;
  overflow-x: hidden;
}

.page-services-overview main {
  overflow: hidden;
}

.page-services-overview img {
  display: block;
  max-width: 100%;
}

.services-overview-hero {
  background: #ffffff;
  padding: 341px 0 100px;
}

.services-overview-hero__inner,
.services-card__inner {
  width: min(1200px, calc(100% - 100px));
  margin: 0 auto;
}

.services-eyebrow {
  margin: 0;
  color: var(--services-gold-soft);
  font-family: "Google Sans Flex", Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: normal;
  text-transform: uppercase;
}

.services-rule,
.services-card__rule {
  display: block;
  height: 1px;
  background: currentColor;
  color: var(--services-gold-soft);
}

.services-rule {
  width: 40px;
  margin-top: 15px;
}

.services-overview-hero h1 {
  margin: 23px 0 0;
  padding-bottom: 0.18em;
  font-family: "Canela Deck", "Lora", Georgia, "Times New Roman", serif;
  font-size: 96px;
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: 0;
}

.services-overview-hero h1 span {
  display: block;
  /* Extend the gradient-clip paint area so italic descenders aren't cut,
     then pull it back so line spacing stays unchanged. */
  padding-bottom: 0.18em;
  margin-bottom: -0.18em;
}

.services-overview-hero h1 span:first-child {
  background: linear-gradient(90deg, var(--services-purple-dark) 14%, var(--services-purple) 93%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.services-overview-hero h1 span:last-child {
  background: linear-gradient(90deg, var(--services-gold-dark), var(--services-gold-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
}

.services-overview-hero__copy {
  width: min(677px, 100%);
  margin: 45px 0 0;
  color: var(--services-text);
  font-family: "Lora", Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.8;
}

.services-card {
  min-height: 520px;
  background: #ffffff;
}

.services-list {
  margin-bottom: 112px;
}

.services-card--tinted {
  background: var(--services-cream);
}

.services-card__inner {
  display: grid;
  grid-template-columns: minmax(0, 540px) minmax(0, 540px);
  gap: 120px;
  min-height: 520px;
  padding: 40px 0;
}

.services-card__image {
  width: 100%;
  height: 440px;
  border: 1px solid var(--services-line);
  overflow: hidden;
}

.services-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.services-card__content {
  align-self: start;
  width: 100%;
  padding-top: 32px;
}

.services-card--image-right .services-card__content {
  padding-top: 46px;
}

.services-card__number {
  margin: 0;
  color: var(--services-gold);
  font-family: "Google Sans Flex", Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
}

.services-card__rule {
  width: 30px;
  margin-top: 10px;
  color: var(--services-gold);
}

.services-card h2 {
  /* padding-bottom extends the gradient-clip paint area so italic descenders
     aren't cut; the negative margin keeps surrounding spacing unchanged. */
  margin: 36px 0 -0.2em;
  padding-bottom: 0.2em;
  background: linear-gradient(90deg, var(--services-purple-dark) 14%, var(--services-purple) 93%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: "Canela Deck", "Lora", Georgia, "Times New Roman", serif;
  font-size: 48px;
  font-style: italic;
  font-weight: 400;
  line-height: 0.97;
  letter-spacing: 0;
}

.services-card__content > p:not(.services-card__number) {
  margin: 36px 0 0;
  color: var(--services-text);
  font-family: "Lora", Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.8;
}

.services-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 244px;
  min-height: 43px;
  margin-top: 25px;
  padding: 9px 20px;
  background: linear-gradient(90deg, var(--services-purple-dark) 14%, var(--services-purple) 93%);
  color: var(--services-gold);
  font-family: "Google Sans Flex", Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

@media (max-width: 1100px) {
  .services-overview-hero {
    padding-top: clamp(245px, 31vw, 320px);
    padding-bottom: 78px;
  }

  .services-overview-hero__inner,
  .services-card__inner {
    width: min(920px, calc(100% - 64px));
  }

  .services-overview-hero h1 {
    font-size: 74px;
  }

  .services-card__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
  }
}

@media (max-width: 760px) {
  .services-overview-hero {
    padding-top: clamp(186px, 37vw, 255px);
    padding-bottom: 54px;
  }

  .services-overview-hero__inner,
  .services-card__inner {
    width: calc(100vw - 44px);
    max-width: calc(100% - 44px);
  }

  .services-overview-hero h1 {
    margin-top: 24px;
    font-size: 54px;
    line-height: 0.95;
  }

  .services-overview-hero__copy {
    margin-top: 34px;
    font-size: 15px;
    line-height: 1.75;
  }

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

  .services-card__inner {
    display: flex;
    flex-direction: column;
    gap: 34px;
    min-height: 0;
    padding: 44px 0 50px;
  }

  .services-card--image-right .services-card__inner {
    flex-direction: column-reverse;
  }

  .services-card__image {
    height: auto;
    aspect-ratio: 540 / 440;
  }

  .services-card__content,
  .services-card--image-right .services-card__content {
    padding-top: 0;
  }

  .services-card h2 {
    margin-top: 28px;
    font-size: 38px;
  }

  .services-card__content > p:not(.services-card__number) {
    margin-top: 25px;
    font-size: 14px;
    line-height: 1.75;
  }
}

@media (max-width: 486px) {
  .services-overview-hero {
    padding-top: 205px;
    padding-bottom: 48px;
  }

  .services-overview-hero h1 {
    font-size: clamp(38px, 11.2vw, 44px);
  }

  .services-overview-hero__copy br {
    display: none;
  }

  .services-list {
    margin-bottom: 64px;
  }

  .services-card__inner {
    padding: 40px 0 46px;
  }

  .services-card h2 {
    font-size: 34px;
  }

  .services-button {
    width: 100%;
  }
}

/* Scroll reveal — staggered fade + rise */
@media (prefers-reduced-motion: no-preference) {
  .page-services-overview [data-reveal] > * {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
    will-change: opacity, transform;
  }

  .page-services-overview [data-reveal].is-revealed > * {
    opacity: 1;
    transform: none;
  }

  .page-services-overview [data-reveal].is-revealed > *:nth-child(1) { transition-delay: 0s; }
  .page-services-overview [data-reveal].is-revealed > *:nth-child(2) { transition-delay: 0.08s; }
  .page-services-overview [data-reveal].is-revealed > *:nth-child(3) { transition-delay: 0.16s; }
  .page-services-overview [data-reveal].is-revealed > *:nth-child(4) { transition-delay: 0.24s; }
  .page-services-overview [data-reveal].is-revealed > *:nth-child(5) { transition-delay: 0.32s; }
  .page-services-overview [data-reveal].is-revealed > *:nth-child(6) { transition-delay: 0.4s; }

  /* image wrappers carry a border — animate the whole element so the
     border fades in together with the image */
  .page-services-overview .services-card__image[data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
    will-change: opacity, transform;
  }

  .page-services-overview .services-card__image[data-reveal].is-revealed {
    opacity: 1;
    transform: none;
  }

  .page-services-overview .services-card__image[data-reveal] > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
