/* Services page only; the shared homepage styles remain intact. */
.services-hero {
  background: white;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}
.services-hero::before {
  content: "";
  position: absolute;
  inset: 60px 0 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(10, 26, 63, 0.09) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10, 26, 63, 0.09) 1px, transparent 1px);
  background-size: 30px 37px;
  mask-image: linear-gradient(
    to bottom,
    transparent,
    black 35%,
    black 70%,
    transparent
  );
}
.services-hero-inner {
  max-width: 1440px;
  margin-inline: auto;
  min-height: 778px;
  padding: 90px 63px 68px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 55px;
  align-items: center;
}
.services-hero-copy {
  position: relative;
  z-index: 1;
}
.services-hero h1 {
  font-size: 52px;
  font-weight: 600;
  line-height: 84px;
  letter-spacing: 0;
  margin: 0;
}
.services-hero-copy p {
  max-width: 675px;
  font-size: 18px;
  font-weight: 500;
  line-height: 27px;
  color: var(--muted);
}
.services-hero-copy .button {
  margin-top: 36px;
  min-width: 193px;
}
.services-hero-art {
  width: 100%;
  max-width: 498px;
  aspect-ratio: 498 / 613;
  position: relative;
  margin: 0;
  justify-self: end;
  isolation: isolate;
}
.services-hero-art::before,
.services-hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  transform: translate(-35px, -14px) rotate(-4.45deg);
  background: rgba(10, 26, 63, 0.14);
  z-index: -1;
}
.services-hero-art::after {
  transform: translate(-55px, -20px) rotate(-4.45deg);
  background: rgba(10, 26, 63, 0.06);
  z-index: -2;
}
.services-hero-art img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}
.services-width {
  max-width: 1314px;
  margin-inline: auto;
  position: relative;
}
.services-offer {
  --muted: #707070;
  background: #fdf7f5;
  margin-top: 31px;
  padding: 56px 63px;
}
.services-offer h2 {
  text-align: center;
  font-size: 38px;
  line-height: 57px;
  margin-bottom: 77px;
}
.services-intro {
  min-height: 196px;
  margin-bottom: 0px;
  max-width: 590px;
}
.services-intro h3 {
  color: #2d2d2d;
  font-size: 32px;
  line-height: 42px;
  font-weight: 600;
  margin-bottom: 9px;
}
.services-intro p {
  font-size: 18px;
  line-height: 27px;
  font-weight: 500;
  color: var(--muted);
}
.services-tabs {
  display: flex;
  justify-content: space-between;
  gap: 26px;
  width: 405px;
  padding: 4px 6px;
  background: white;
  border: 1px solid rgba(255, 92, 2, 0.1);
  border-radius: 50px;
  position: absolute;
  right: 0;
  top: 245px;
}
.services-tabs a {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  padding: 10px;
  border-radius: 20px;
  color: #767676;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.services-tabs a[aria-selected="true"] {
  background: #d93410;
  color: white;
}
.services-tabs a:hover {
  color: var(--navy);
}
.services-tabs a[aria-selected="true"]:hover {
  background: #df2f0a;
  color: white;
}
.services-panel[hidden] {
  display: none;
}
.services-panel + .services-panel {
  margin-top: 48px;
}
.services-offer.is-interactive .services-panel {
  margin-top: 0;
}
.services-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(259px, auto);
  gap: 12px;
}
.services-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 22px;
  background: var(--card-surface);
}
.services-card h4 {
  font-size: 26px;
  line-height: 38px;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 12px;
  position: relative;
  z-index: 1;
}
.services-card p {
  font-size: 14px;
  line-height: 21px;
  position: relative;
  z-index: 1;
}
.services-card img {
  object-fit: contain;
  display: block;
}
.services-card-feature {
  grid-row: span 2;
  padding: 24px 15px;
}
.services-card-feature h4 {
  font-size: 30px;
}
.services-card-feature img {
  width: 269px;
  max-width: 100%;
  height: 249px;
  margin: 20px auto 16px;
}
.services-card-wide {
  grid-column: span 2;
  padding: 32px 32px;
}

.services-card-wide:not(.services-card-bottom) {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 38px;
}
.services-card-wide:not(.services-card-bottom) p {
  margin-top: 0;
}

.services-card-wide h4 {
  max-width: 453px;
  font-size: 32px;
}
.services-card-wide p {
  max-width: 453px;
  margin-top: 26px;
}
.services-card-wide img {
  position: absolute;
  width: 200px;
  height: 213px;
  right: 17%;
  top: 24px;
}
.services-card-wide h4,
.services-card-wide p {
  width: 57%;
}
.services-card-small {
  min-height: 259px;
  padding: 16px 22px;
}
.services-card-small h4 {
  max-width: 320px;
  margin-bottom: 5px;
}
.services-card-small p {
  max-width: 313px;
  padding-bottom: 48px;
}
.services-card-small img {
  position: absolute;
  right: 14px;
  bottom: 15px;
  width: 140px;
  height: 103px;
}
.services-card-bottom.services-card-wide img {
  width: 40%;
  height: calc(100% - 20px);
  right: 8px;
  top: 10px;
}
.services-card-bottom.services-card-small img {
  right: 0;
  bottom: 0;
  width: 202px;
  height: 93px;
}
.services-cards-process .services-card-wide img {
  right: 9%;
  width: 228px;
  height: 227px;
  top: 12px;
}
.services-cards-process .services-card-bottom.services-card-wide img {
  right: 10px;
  width: 40%;
  height: calc(100% - 20px);
}
/* .services-cards-process .services-card-wide p {
  margin-top: 60px;
} */
.services-cards-process .services-card-small p {
  max-width: 300px;
}
.services-cards-process .services-card-bottom.services-card-small img {
  width: 160px;
  height: 120px;
}
/* .services-cards-product {
  grid-template-columns: 1fr 1fr 1fr;
} */
.services-cards-product .services-card-wide:not(.services-card-bottom) img {
  width: 232px;
  height: 146px;
  right: 8%;
  top: 62px;
}
/* .services-cards-product .services-card-wide p {
  margin-top: 60px;
} */
/* .services-cards-product .services-card-small {
  grid-column: span 2;
} */
/* .services-cards-product .services-card-small p {
  max-width: 500px;
} */

.services-cards-process .services-card-small p,
.services-cards-product .services-card-small p {
  max-width: 300px;
}

.services-cards-process .services-card-bottom.services-card-small img,
.services-cards-product .services-card-bottom.services-card-small img {
  width: 160px;
  height: 120px;
}

.services-faq {
  --muted: #707070;
  background: #fdf7f5;
  margin-block: 31px;
  padding: 68px 63px;
}
.services-faq-inner {
  max-width: 1204px;
  margin-inline: auto;
}
.services-faq h2 {
  font-size: 48px;
  line-height: 56px;
  color: #2d2d2d;
  margin-bottom: 20px;
}
.services-faq-summary {
  max-width: 636px;
  font-size: 16px;
  line-height: 26px;
  color: var(--muted);
}
.services-faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 52px 32px;
  margin-top: 48px;
}
.services-faq-grid h3 {
  font-size: 20px;
  line-height: 28px;
  font-weight: 500;
  color: #2d2d2d;
  margin-bottom: 26px;
}
.services-faq-grid p {
  font-size: 16px;
  line-height: 26px;
  color: var(--muted);
}
.services-cta {
  margin-bottom: 28px;
}
@media (max-width: 1200px) {
  .services-hero-inner {
    gap: 40px;
    padding-inline: 40px;
  }
  .services-hero h1 {
    font-size: 42px;
    line-height: 1.5;
  }
  .services-desktop-break {
    display: none;
  }
  .services-offer,
  .services-faq {
    padding-inline: 40px;
  }
  .services-tabs {
    width: 340px;
    gap: 10px;
  }
  .services-intro {
    max-width: 55%;
  }
  .services-card-wide img {
    right: 3%;
    width: 35%;
  }
  .services-cards-process .services-card-wide:not(.services-card-bottom) img,
  .services-cards-product .services-card-wide:not(.services-card-bottom) img {
    width: 35%;
    right: 3%;
  }
  .services-card h4 {
    font-size: 24px;
    line-height: 1.3;
  }
  .services-card-wide h4 {
    font-size: 28px;
  }
  .services-card-small p {
    padding-bottom: 95px;
  }
}
@media (max-width: 900px) {
  .services-hero-inner {
    min-height: auto;
    padding: 60px 30px;
    gap: 35px;
  }
  .services-hero h1 {
    font-size: 36px;
    line-height: 1.4;
  }
  .services-hero-copy p {
    margin-top: 18px;
    font-size: 16px;
    line-height: 25px;
  }
  .services-offer,
  .services-faq {
    padding: 44px 30px;
  }
  .services-offer h2 {
    margin-bottom: 35px;
  }
  .services-tabs {
    position: static;
    margin: 0 0 30px;
    width: 100%;
    max-width: 405px;
  }
  .services-intro {
    max-width: 100%;
    min-height: 0;
    margin-bottom: 24px;
  }
  .services-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .services-card-feature {
    grid-row: auto;
    grid-column: span 2;
  }
  .services-card-feature img {
    margin-inline: 0;
    float: right;
    width: 40%;
    height: 220px;
    margin-top: 0;
  }
  .services-card-feature p {
    max-width: 55%;
    padding-top: 18px;
  }
  .services-card-wide {
    grid-column: span 2;
  }
  /* .services-cards-product .services-card-small {
    grid-column: span 2;
  } */
  .services-faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .services-faq h2 {
    font-size: 38px;
    line-height: 1.3;
  }
}
@media (max-width: 600px) {
  .services-hero-inner {
    grid-template-columns: 1fr;
    padding: 44px 24px 40px;
    gap: 55px;
  }
  .services-hero h1 {
    font-size: 36px;
    line-height: 1.35;
  }
  .services-hero-art {
    width: calc(100% - 30px);
    max-width: 400px;
    margin-inline: auto;
  }
  .services-hero-art::before {
    transform: translate(-15px, -8px) rotate(-4.45deg);
  }
  .services-hero-art::after {
    transform: translate(-28px, -14px) rotate(-4.45deg);
  }
  .services-offer,
  .services-faq {
    padding: 40px 20px;
  }
  .services-offer h2 {
    font-size: 32px;
    line-height: 1.3;
  }
  .services-intro h3 {
    font-size: 28px;
  }
  .services-intro p {
    font-size: 16px;
    line-height: 25px;
  }
  .services-cards {
    display: flex;
    flex-direction: column;
  }
  .services-card {
    padding: 24px;
    min-height: 0;
  }
  .services-card h4,
  .services-card-wide h4 {
    font-size: 26px;
    line-height: 1.3;
    width: auto;
    max-width: none;
  }
  .services-card p,
  .services-card-wide p,
  .services-cards-product .services-card-small p {
    width: auto;
    max-width: none;
    padding: 0;
    margin-top: 0;
  }
  .services-card img,
  .services-card-wide img,
  .services-cards-process .services-card-wide img,
  .services-cards-product .services-card-wide img,
  .services-card-bottom.services-card-wide img,
  .services-card-bottom.services-card-small img,
  .services-cards-process .services-card-bottom.services-card-small img,
  .services-cards-process .services-card-bottom.services-card-wide img,
  .services-cards-process .services-card-wide:not(.services-card-bottom) img {
    position: static;
    float: none;
    width: auto;
    max-width: 100%;
    height: 180px;
    margin: 20px auto;
  }
  .services-card-feature img {
    height: 240px;
  }
  .services-card-small img {
    height: 130px;
    margin-bottom: 0;
  }
  .services-card-feature p {
    padding: 0;
  }
  .services-cards-process .services-card-wide p,
  .services-cards-product .services-card-wide p {
    margin-top: 0;
  }

  .services-card-wide:not(.services-card-bottom) {
    display: block;
    padding: 24px;
  }

  .services-faq h2 {
    font-size: 34px;
  }
  .services-faq-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 36px;
  }
  .services-faq-grid h3 {
    margin-bottom: 14px;
  }
}

/* INDIVIDUAL CARD SETTINGS
   Each selector affects ONE card only. See CARD-EDITING.md for examples.
   Widths are relative to the card, so artwork scales with the layout.
   These controls apply to the desktop three-column composition. */
[data-service-card="people-1"] {
  --art-width: 269px;
  --feature-bottom: 80px;
}
[data-service-card="people-2"] {
  --art-width: 23%;
  --art-right: 17%;
  --art-top: 24px;
  --copy-gap: 26px;
}
[data-service-card="people-3"] {
  --art-width: 32%;
  --art-right: 3.3%;
  --art-bottom: 16px;
  --title-width: 340px;
}
[data-service-card="people-4"] {
  --art-width: 40%;
  --art-right: 8%;
  --art-bottom: 16px;

  /* --title-width: 1200px; */
  --body-width: 300px;
}
[data-service-card="people-5"] {
  --art-width: 40%;
  --art-right: 8px;
  --art-bottom: 10px;
  --title-width: 430px;
  --copy-gap: 36px;
}
[data-service-card="people-6"] {
  --art-width: 70%;
  --art-right: 0px;
  --art-bottom: 0px;

  --title-width: 300px;
}
[data-service-card="process-1"] {
  --art-width: 242px;
  --feature-bottom: 60px;
}
[data-service-card="process-2"] {
  --art-width: 26%;
  --art-right: 9%;
  --art-top: 21px;
  --copy-gap: 60px;
}
[data-service-card="process-3"] {
  --art-width: 35%;
  --art-right: 3.3%;
  --art-bottom: 8px;
  --title-width: 320px;

  --body-width: 290px;
}
[data-service-card="process-4"] {
  --art-width: 33%;
  --art-right: 3%;
  --art-bottom: 14px;
  --body-width: 235px;
}
[data-service-card="process-5"] {
  --art-width: 40%;
  --art-right: 8px;
  --art-bottom: 10px;
  --copy-gap: 36px;
}
[data-service-card="process-6"] {
  --art-width: 40%;
  --art-right: 0px;
  --art-bottom: 0px;

  --body-width: 300px;
}
[data-service-card="product-1"] {
  --art-width: 235px;
  --feature-bottom: 60px;
}
[data-service-card="product-2"] {
  --art-width: 27%;
  --art-right: 8%;
  --art-top: 62px;
  --copy-gap: 60px;
}
[data-service-card="product-3"] {
  --art-width: 32%;
  --art-right: 1%;
  --art-bottom: 0px;
  --title-width: 340px;
  --body-width: 280px;
}
[data-service-card="product-4"] {
  --art-width: 33%;
  --art-right: 2%;
  --art-bottom: 14px;
  --body-width: 230px;
}
[data-service-card="product-5"] {
  --art-width: 32%;
  --art-right: 8px;
  --art-bottom: 10px;
  --copy-gap: 36px;
}
[data-service-card="product-6"] {
  --art-width: 34%;
  --art-right: 0px;
  --art-bottom: 4px;

  --body-width: 240px;
}

@media (min-width: 901px) {
  .services-cards .services-card-feature {
    display: flex;
    flex-direction: column;
    padding: 24px 15px var(--feature-bottom, 60px);
  }
  .services-cards .services-card-feature h4 {
    font-size: 30px;
    line-height: 38px;
    margin: 0;
  }
  .services-cards .services-card-feature img {
    float: none;
    width: var(--art-width, 269px);
    height: auto;
    max-width: 100%;
    margin: auto;
    flex: 0 0 auto;
  }
  .services-cards .services-card-feature p {
    padding: 0;
  }
  .services-cards .services-card-wide {
    display: block;
    padding: 32px;
  }
  .services-cards .services-card-wide h4 {
    width: 57%;
    max-width: var(--title-width, 453px);
    font-size: 32px;
    line-height: 38px;
    margin: 0;
  }
  .services-cards .services-card-wide p {
    width: 57%;
    max-width: var(--body-width, 453px);
    margin-top: var(--copy-gap, 26px);
  }
  .services-cards .services-card-bottom.services-card-wide {
    padding: 40px 30px;
  }
  .services-cards .services-card-small {
    padding: 18px 22px;
  }
  .services-cards .services-card-small h4 {
    max-width: var(--title-width, 100%);
    font-size: 26px;
    line-height: 38px;
    margin: 0 0 var(--copy-gap, 12px);
  }
  .services-cards .services-card-small p {
    max-width: var(--body-width, 100%);
    padding-bottom: 48px;
  }
  .services-cards .services-card-wide img,
  .services-cards .services-card-wide:not(.services-card-bottom) img,
  .services-cards .services-card-small img,
  .services-cards .services-card-bottom.services-card-wide img,
  .services-cards .services-card-bottom.services-card-small img {
    position: absolute;
    width: var(--art-width);
    height: auto;
    max-height: none;
    right: var(--art-right, 0px);
    top: var(--art-top, auto);
    bottom: var(--art-bottom, auto);
    transform: none;
    margin: 0;
  }
}
/* Keep three columns only where the reference's text measures fit.
   At narrower widths use the existing two-column arrangement. */
@media (min-width: 901px) and (max-width: 1200px) {
  .services-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .services-cards .services-card-feature {
    grid-row: auto;
    grid-column: span 2;
    padding: 24px;
  }
  .services-cards .services-card-feature img {
    width: var(--art-width);
    margin: 24px auto;
  }
  .services-cards .services-card-feature p {
    max-width: none;
  }
  .services-cards .services-card-wide h4 {
    font-size: 28px;
    line-height: 1.3;
  }
  .services-cards .services-card-small h4 {
    font-size: 24px;
    line-height: 1.3;
  }
  .services-cards .services-card-wide p {
    margin-top: 26px;
  }
}
@media (min-width: 601px) and (max-width: 900px) {
  .services-cards .services-card-wide:not(.services-card-bottom) img {
    width: 32%;
    height: auto;
    right: 3%;
    top: 50%;
    transform: translateY(-50%);
  }
  .services-cards .services-card-bottom.services-card-wide img {
    width: 39%;
    height: auto;
    top: auto;
    bottom: 10px;
  }
  .services-cards .services-card-small img {
    width: var(--art-width);
    height: auto;
    right: var(--art-right, 0px);
    bottom: var(--art-bottom, 0px);
  }
}
@media (max-width: 600px) {
  .services-cards .services-card img,
  .services-cards .services-card-wide:not(.services-card-bottom) img,
  .services-cards .services-card-bottom.services-card-wide img,
  .services-cards .services-card-bottom.services-card-small img {
    position: static;
    float: none;
    inset: auto;
    transform: none;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 240px;
    object-fit: contain;
    margin: 22px auto;
  }
  .services-cards .services-card-small img {
    max-height: 150px;
  }
}

@media (min-width: 901px) {
  .services-cards [data-service-card="people-4"] h4 {
    width: 100%;
    max-width: none;
    font-size: 24px;
    line-height: 1.3;
  }

  .services-cards [data-service-card="process-1"] h4 {
    width: 100%;
    max-width: none;
    font-size: 24px;
    line-height: 1.3;
  }
}
