/* MARK: Services page */

/* MARK: Services page foundations */

.services-page--v2 {
  overflow: hidden;
  background: var(--calabash-white);
  color: var(--calabash-navy);
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.65;
}

.services-page--v2 *,
.services-page--v2 *::before,
.services-page--v2 *::after {
  box-sizing: border-box;
}

.services-page--v2 img {
  display: block;
  max-width: 100%;
  height: auto;
}

.services-page--v2 a {
  text-decoration: none;
}

.services-page--v2 .site-container {
  width: min(
    calc(100% - (var(--calabash-page-padding) * 2)),
    var(--calabash-page-max-width)
  );
  margin-inline: auto;
}

/* MARK: Shared page elements */

.services-v2-eyebrow {
  margin: 0 0 18px;
  color: var(--calabash-company-orange-a11y);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.services-v2-text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--calabash-navy);
  font-weight: 800;
  transition: color var(--calabash-transition), gap var(--calabash-transition);
}

.services-v2-text-link:hover,
.services-v2-text-link:focus-visible {
  gap: 14px;
  color: var(--calabash-company-orange-a11y);
}

.services-v2-text-link span {
  font-size: 1.15em;
  line-height: 1;
}

.services-v2-icon-slot {
  display: block;
  flex-shrink: 0;
  border: 1.5px dashed var(--calabash-border);
  border-radius: 50%;
  background: var(--calabash-off-white);
}

.services-v2-icon {
  flex-shrink: 0;
  object-fit: contain;
}

/* MARK: Services hero */

.services-v2-hero {
  display: grid;
  min-height: 650px;
  grid-template-columns: minmax(0, 46%) minmax(0, 54%);
  background: var(--calabash-off-white);
}

.services-v2-hero__copy {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  background: linear-gradient(
    135deg,
    var(--calabash-turquoise-12) 0%,
    var(--calabash-off-white) 45%,
    var(--calabash-orange-18) 100%
  );
}

.services-v2-hero__inner {
  width: min(calc(100% - 40px), 610px);
  margin-left: max(20px, calc((var(--calabash-viewport) - var(--calabash-page-max-width)) / 2));
  padding: 56px 34px 56px 0;
}

.services-v2-hero h1 {
  margin: 0 0 16px;
  max-width: 560px;
  color: var(--calabash-navy);
  font-size: clamp(2.1rem, 3.4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.services-v2-hero__description {
  max-width: 480px;
  margin: 0 0 28px;
  color: var(--calabash-navy);
  font-size: clamp(1rem, 1.15vw, 1.08rem);
  line-height: 1.6;
}

.services-v2-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.services-v2-hero__image {
  position: relative;
  overflow: hidden;
  min-height: 650px;
  background-color: var(--calabash-light-grey);
  container-type: inline-size;
}

.services-v2-hero__image img {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: auto;
  min-width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  transform: translateX(calc((100cqw - 100%) / 2));
}

@media (prefers-reduced-motion: no-preference) {
  .services-v2-hero__image img {
    animation: services-v2-hero-pan var(--services-hero-pan-time, 25s) ease-in-out infinite alternate;
  }
}

@keyframes services-v2-hero-pan {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(100cqw - 100%));
  }
}

/* MARK: Brochure banner */

.services-v2-brochure {
  overflow: hidden;
  margin: var(--calabash-section-gap) 0;
  padding: clamp(36px, 4.5vw, 56px) 0;
  background: linear-gradient(115deg, var(--calabash-navy-dark) 0%, var(--calabash-navy) 58%, #0b3d68 100%);
  color: var(--calabash-white);
}

.services-v2-brochure__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(32px, 6vw, 96px);
  width: min(
    calc(100% - (var(--calabash-page-padding) * 2)),
    1040px
  );
  margin-inline: auto;
}

.services-v2-brochure__copy {
  flex: 0 1 540px;
  min-width: 0;
}

.services-v2-brochure__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  color: var(--calabash-company-turquoise);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.services-v2-brochure__eyebrow::before {
  flex: none;
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: var(--calabash-company-orange-a11y-on-dark);
  content: "";
}

.services-v2-brochure h2 {
  margin: 0;
  color: var(--calabash-white);
  font-size: clamp(1.7rem, 2.8vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.services-v2-brochure__description {
  max-width: 46ch;
  margin: 14px 0 24px;
  color: var(--calabash-white-88);
  font-size: clamp(1rem, 1.1vw, 1.08rem);
  line-height: 1.55;
}

.services-v2-brochure__actions .calabash-ora-solid-button {
  min-height: 54px;
  padding: 14px 30px;
  background: var(--calabash-company-orange-a11y-on-dark);
  box-shadow: none;
  color: var(--calabash-navy);
  font-size: 1rem;
  font-weight: 800;
}

.services-v2-brochure__actions .calabash-ora-solid-button:hover,
.services-v2-brochure__actions .calabash-ora-solid-button:focus-visible {
  background: #f58a3c;
  box-shadow: none;
  color: var(--calabash-navy);
}

.services-v2-brochure__actions .calabash-ora-solid-button:focus-visible {
  outline: 3px solid var(--calabash-white);
  outline-offset: 3px;
}

.services-v2-brochure__media {
  --brochure-cover-size: clamp(300px, 30vw, 400px);

  position: relative;
  flex: none;
  margin-block: calc(var(--brochure-cover-size) * -0.14);
  margin-inline: calc(var(--brochure-cover-size) * -0.1);
}

.services-v2-brochure__media::before {
  position: absolute;
  inset: -50%;
  background: radial-gradient(closest-side, rgb(69 190 225 / 36%) 0%, rgb(69 190 225 / 0%) 100%);
  pointer-events: none;
  content: "";
}

.services-v2-brochure__cover {
  position: relative;
  display: block;
  width: var(--brochure-cover-size);
  transition: transform var(--calabash-transition);
}

.services-v2-brochure__cover:hover {
  transform: translateY(-4px);
}

.services-v2-brochure__cover img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 22px 30px rgb(0 0 0 / 40%));
  transition: filter var(--calabash-transition);
}

.services-v2-brochure__cover:hover img {
  filter: drop-shadow(0 28px 36px rgb(0 0 0 / 46%));
}

@media (max-width: 760px) {
  .services-v2-brochure__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }

  .services-v2-brochure__copy {
    flex-basis: auto;
  }

  .services-v2-brochure__media {
    --brochure-cover-size: min(320px, 82vw);

    margin-inline: calc(var(--brochure-cover-size) * -0.15) 0;
  }
}

@media (max-width: 590px) {
  .services-v2-brochure__actions .calabash-ora-solid-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .services-v2-brochure__cover,
  .services-v2-brochure__cover img {
    transition: none;
  }

  .services-v2-brochure__cover:hover {
    transform: none;
  }
}

/* MARK: Product categories */

.services-v2-catalog {
  padding: 0 0 var(--calabash-section-gap);
  background: var(--calabash-white);
}

.services-v2-catalog__content {
  display: flex;
  flex-direction: column;
  gap: 48px;
  min-width: 0;
}

.services-v2-category h2 {
  margin: 0 0 8px;
  color: var(--calabash-navy);
  font-size: clamp(1.3rem, 1.8vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.services-v2-category {
  --accent: var(--calabash-company-turquoise);
  --accent-text: #167a96;
  --accent-tint: var(--calabash-turquoise-12);

  padding: 32px;
  border: 1px solid transparent;
  box-shadow: var(--calabash-card-shadow);
  border-top: 4px solid var(--accent);
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent-tint) 0%, var(--calabash-off-white) 60%);
}

.services-v2-category--turquoise {
  --accent: var(--calabash-company-turquoise);
  --accent-text: #167a96;
  --accent-tint: var(--calabash-turquoise-12);
}

.services-v2-category--orange {
  --accent: var(--calabash-company-orange);
  --accent-text: var(--calabash-company-orange-a11y);
  --accent-tint: var(--calabash-orange-18);
}

.services-v2-category--navy {
  --accent: var(--calabash-navy);
  --accent-text: var(--calabash-navy);
  --accent-tint: var(--calabash-navy-10);
}

.services-v2-category__head {
  margin-bottom: 24px;
}

.services-v2-category__heading {
  max-width: 640px;
}

.services-v2-category__tag {
  margin: 0 0 8px;
  color: var(--accent-text);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.services-v2-category__heading > p:last-child {
  margin: 0;
  color: var(--calabash-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.services-v2-category__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.services-v2-product {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 9px;
  background: var(--calabash-white);
  color: inherit;
  box-shadow: var(--calabash-card-shadow);
  transition:
    box-shadow var(--calabash-transition),
    transform var(--calabash-transition);
}

.services-v2-category .services-v2-product {
  border-bottom: 3px solid var(--accent);
}

.services-v2-category .services-v2-product:hover .services-v2-text-link {
  gap: 14px;
  color: var(--accent-text);
}

.services-v2-product:hover {
  box-shadow: 0 14px 32px rgb(8 34 74 / 10%);
  transform: translateY(-5px);
}

.services-v2-product__image,
.services-v2-product__image-slot {
  box-sizing: border-box;
  aspect-ratio: 1 / 1;
  background-color: var(--calabash-light-grey);
}

.services-v2-product__image {
  position: relative;
  overflow: hidden;
  background-color: var(--calabash-white);
  border-bottom: 1px solid var(--calabash-border);
}

.services-v2-product__image img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 450ms ease;
}

.services-v2-product:hover .services-v2-product__image img {
  transform: scale(1.05);
}

@media (prefers-reduced-motion: reduce) {
  .services-v2-product__image img {
    transition: none;
  }

  .services-v2-product:hover .services-v2-product__image img {
    transform: none;
  }
}

.services-v2-product__image-slot {
  border-bottom: 1px dashed var(--calabash-border);
}

.services-v2-product__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.services-v2-product h3 {
  margin: 0 0 6px;
  color: var(--calabash-navy);
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.3;
}

.services-v2-product p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 12px;
  color: var(--calabash-muted);
  font-size: 0.82rem;
  line-height: 1.55;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.services-v2-product__body .services-v2-text-link {
  margin-top: auto;
}

.services-v2-product__image-slot--icon {
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--calabash-border);
  background: linear-gradient(135deg, var(--accent-tint) 0%, var(--calabash-white) 100%);
}

.services-v2-product__image-slot--icon img {
  width: 56px;
  height: 56px;
}

.services-v2-product__image-slot--range {
  display: grid;
  place-items: center;
  border-bottom: none;
  background-color: var(--accent-tint);
  color: var(--accent-text);
  font-size: 1.6rem;
  line-height: 1;
}

.services-v2-category__grid--four .services-v2-product--full-range {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: stretch;
}

.services-v2-category__grid--four .services-v2-product--full-range .services-v2-product__image-slot {
  flex: none;
  width: 96px;
  aspect-ratio: auto;
  border-right: 0;
  border-bottom: 0;
}

.services-v2-category__grid--four .services-v2-product--full-range .services-v2-product__body {
  justify-content: center;
}

.services-v2-category__grid--four .services-v2-product--collection .services-v2-product__image {
  flex: none;
  width: clamp(110px, 16vw, 150px);
  height: auto;
  aspect-ratio: auto;
  border-bottom: 0;
}

.services-v2-feature {
  display: grid;
  grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid transparent;
  border-bottom: 3px solid var(--accent);
  border-radius: 9px;
  background: var(--calabash-white);
  color: inherit;
  box-shadow: var(--calabash-card-shadow);
  transition:
    box-shadow var(--calabash-transition),
    transform var(--calabash-transition);
}

.services-v2-feature:hover {
  box-shadow: 0 14px 32px rgb(8 34 74 / 10%);
  transform: translateY(-5px);
}

.services-v2-feature:hover .services-v2-text-link {
  gap: 14px;
  color: var(--accent-text);
}

.services-v2-feature__image {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  background-color: var(--calabash-light-grey);
}

.services-v2-feature__image img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms ease;
}

.services-v2-feature:hover .services-v2-feature__image img {
  transform: scale(1.04);
}

.services-v2-feature__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px 36px;
}

.services-v2-feature h3 {
  margin: 0 0 8px;
  color: var(--calabash-navy);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.25;
}

.services-v2-feature p {
  margin: 0 0 16px;
  color: var(--calabash-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.services-v2-feature ul {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.services-v2-feature li {
  position: relative;
  padding: 3px 0 3px 22px;
  color: var(--calabash-text);
  font-size: 0.9rem;
  font-weight: 600;
}

.services-v2-feature li::before {
  position: absolute;
  top: 0.95em;
  left: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

@media (prefers-reduced-motion: reduce) {
  .services-v2-feature,
  .services-v2-feature__image img {
    transition: none;
  }

  .services-v2-feature:hover,
  .services-v2-feature:hover .services-v2-feature__image img {
    transform: none;
  }
}

@media (min-width: 1101px) {
  .services-v2-catalog__content {
    display: grid;
    grid-auto-rows: 1fr;
  }

  .services-v2-category {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .services-v2-category__grid,
  .services-v2-feature {
    flex: 1 1 auto;
  }

  .services-v2-category__grid--four {
    grid-template-rows: 1fr auto;
  }

  .services-v2-category__heading {
    max-width: 900px;
  }

  .services-v2-category__grid .services-v2-product__image,
  .services-v2-category__grid .services-v2-product__image-slot {
    aspect-ratio: auto;
    height: clamp(170px, 14vw, 240px);
  }

  .services-v2-category__grid--four .services-v2-product:not(.services-v2-product--full-range) .services-v2-product__body {
    padding: 14px 14px;
  }

  .services-v2-category__grid--four .services-v2-product:not(.services-v2-product--full-range) h3 {
    font-size: 0.88rem;
  }

  .services-v2-category__grid--four .services-v2-product:not(.services-v2-product--full-range) p {
    margin-bottom: 10px;
    font-size: 0.8rem;
  }

  .services-v2-category__grid--four .services-v2-product--full-range .services-v2-product__image-slot {
    width: 64px;
    height: auto;
  }

  .services-v2-category__grid--four .services-v2-product--full-range .services-v2-product__body {
    padding: 10px 18px;
  }

  .services-v2-category__grid--four .services-v2-product--full-range h3 {
    margin-bottom: 2px;
  }

  .services-v2-category__grid--four .services-v2-product--full-range p {
    margin-bottom: 0;
  }

  .services-v2-feature__body {
    padding: 36px 44px;
  }

  .services-v2-feature h3 {
    margin-bottom: 12px;
    font-size: 1.5rem;
  }

  .services-v2-feature p {
    margin-bottom: 20px;
    font-size: 1rem;
  }

  .services-v2-feature ul {
    margin-bottom: 24px;
  }

  .services-v2-feature li {
    padding: 4px 0 4px 24px;
    font-size: 1rem;
  }

  .services-v2-feature li::before {
    top: 1em;
  }

  .services-v2-feature .services-v2-text-link {
    font-size: 1.05rem;
  }
}

@media (min-width: 1281px) {
  .services-v2-category__grid--four {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-template-rows: 1fr;
  }

  .services-v2-category__grid--four .services-v2-product--full-range {
    grid-column: auto;
    flex-direction: column;
  }

  .services-v2-category__grid--four .services-v2-product--full-range .services-v2-product__image-slot {
    width: auto;
    height: clamp(170px, 14vw, 240px);
  }

  .services-v2-category__grid--four .services-v2-product--full-range .services-v2-product__body {
    justify-content: flex-start;
    padding: 14px;
  }

  .services-v2-category__grid--four .services-v2-product--full-range h3 {
    margin-bottom: 6px;
    font-size: 0.88rem;
  }

  .services-v2-category__grid--four .services-v2-product--full-range p {
    margin-bottom: 10px;
    font-size: 0.8rem;
  }

  .services-v2-category__grid--four .services-v2-product--collection .services-v2-product__image {
    width: auto;
    height: clamp(170px, 14vw, 240px);
    border-bottom: 1px solid var(--calabash-border);
  }
}

/* MARK: Tablet layout */

@media (max-width: 1100px) {
  .services-v2-category__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .services-v2-category__grid--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .services-v2-category__grid .services-v2-product__image,
  .services-v2-category__grid .services-v2-product__image-slot {
    aspect-ratio: 3 / 2;
  }

  .services-v2-product--full-range {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: stretch;
  }

  .services-v2-product--full-range .services-v2-product__image-slot {
    flex: none;
    width: 96px;
    aspect-ratio: auto;
    border-right: 1px solid var(--calabash-border);
    border-bottom: 0;
  }

  .services-v2-product--full-range .services-v2-product__body {
    justify-content: center;
  }
}

@media (max-width: 900px) {
  .services-v2-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .services-v2-hero__inner {
    width: 100%;
    margin-left: 0;
    padding: 44px var(--calabash-page-padding) 40px;
  }

  .services-v2-hero__image {
    min-height: 320px;
  }
}

@media (max-width: 760px) {
  .services-v2-category {
    padding: 20px;
  }

  .services-v2-category__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .services-v2-feature {
    grid-template-columns: 1fr;
  }

  .services-v2-feature__image {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .services-v2-feature__body {
    padding: 22px 20px;
  }
}

@media (max-width: 590px) {
  .services-page--v2 {
    font-size: 15px;
  }

  .services-v2-hero__actions .calabash-ora-solid-button,
  .services-v2-hero__actions .calabash-ora-outline-button {
    width: 100%;
  }
}
