/* Services proportions follow the supplied reference; colours/photos stay Sudais. */
.farms-home .sd-services {
  --sd-service-frame-height: clamp(284px, 25.3vw, 360px);
  --gh-service-visual-height: var(--sd-service-frame-height);
  background: #fff;
}

.farms-home .sd-services .gh-solutions__pin {
  display: block;
  min-height: 0;
  padding: clamp(80px, 8.1vw, 118px) 0 clamp(44px, 4.05vw, 64px);
  overflow: hidden;
  background: #fff;
}

.sd-services__lines {
  position: absolute;
  inset: auto 0 -50px;
  width: 100%;
  height: clamp(170px, 17vw, 245px);
  color: #83bec7;
  fill: none;
  stroke: currentColor;
  opacity: .38;
  pointer-events: none;
}

.farms-home .sd-services .gh-solutions__grid {
  width: calc(100% - clamp(36px, 4.55vw, 72px));
  max-width: 1540px;
  margin-top: 0;
  margin-bottom: 0;
  margin-right: clamp(36px, 4.55vw, 72px);
  margin-left: auto;
  display: grid;
  grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
  grid-template-areas: "copy stage" "footer stage";
  align-items: start;
  column-gap: 0;
  row-gap: 0;
}

.farms-home .sd-services .gh-solutions__copy {
  align-self: start;
  margin-top: clamp(16px, 1.52vw, 24px);
  max-width: none;
  padding-left: 12px;
}

.farms-home .sd-services .gh-solutions__copy h2 {
  max-width: none;
  font-family: 'Alexandria', 'Tajawal', Tahoma, sans-serif;
  font-size: clamp(36px, 3.5vw, 50px);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0;
  text-wrap: initial;
  color: #0a2342;
}

.farms-home .sd-services .gh-solutions__copy > .gh-solutions__tagline {
  margin: 10px 0 0;
  color: #24445d;
  font-size: clamp(21px, 2vw, 27px);
  font-weight: 500;
  line-height: 1.7;
}

.farms-home .sd-services .gh-solutions__copy > p:not(.gh-solutions__tagline) {
  max-width: 535px;
  margin: 18px 0 0;
  font-size: clamp(14px, 1.115vw, 16px);
  line-height: 1.5;
  font-weight: 400;
  color: #0a2342;
}

.farms-home .sd-services .gh-solutions__stage {
  justify-self: stretch;
  width: 100%;
  height: calc(var(--sd-service-frame-height) + 196px);
  outline-offset: -3px;
  overflow: visible;
}

.farms-home .sd-services .gh-solutions__slides {
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
  cursor: grab;
  -webkit-user-select: none;
}

.farms-home .sd-services .gh-solutions__slides.is-dragging { cursor: grabbing; }

.farms-home .sd-services .gh-service {
  left: 27.8%;
  width: 62.2%;
  transform: translate3d(var(--sd-slide-x, 0px), 0, 0);
  transition: transform .65s cubic-bezier(.22,.61,.36,1);
  animation: none;
  will-change: transform;
}

.farms-home .sd-services:not([data-sd-carousel-ready]) .gh-service:not(.is-active) { visibility: hidden; }
.farms-home .sd-services .gh-solutions__slides:is(.is-dragging, .is-resizing) .gh-service { transition: none; }

.farms-home .sd-services .gh-service__visual {
  height: var(--sd-service-frame-height);
  padding: clamp(24px, 2.25vw, 33px);
  background: transparent;
}

.farms-home .sd-services .gh-service__visual img,
.farms-home .sd-services .gh-service[data-gh-service="0"] .gh-service__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 4px;
  filter: none;
  transform: none;
}

.farms-home .sd-services .gh-solutions__frame {
  left: 0;
  width: 100%;
  height: var(--sd-service-frame-height);
  stroke: #82bfc6;
  stroke-width: 1.5px;
  stroke-dasharray: 40 40;
}

.farms-home .sd-services .gh-service__label {
  margin-top: clamp(36px, 4.55vw, 66px);
  text-align: center;
  opacity: 0;
  transition: opacity .25s ease;
}

.farms-home .sd-services .gh-service.is-active .gh-service__label { opacity: 1; }

.farms-home .sd-services .gh-service__label h3 {
  font-size: clamp(24px, 2.53vw, 36px);
  font-weight: 700;
  line-height: 1.25;
  color: #0a2342;
  letter-spacing: 0;
}

.farms-home .sd-services .gh-solutions__footer {
  align-self: end;
  padding: 36px 0 0;
  border: 0;
  margin-bottom: 14px;
}

.farms-home .sd-services .gh-solutions__footer .gh-pill {
  min-width: 250px;
  min-height: 38px;
  padding: 8px 27px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  justify-content: center;
  box-shadow: none;
}

.sd-services__dots {
  position: absolute;
  bottom: 0;
  left: 27.8%;
  width: 62.2%;
  display: flex;
  justify-content: center;
  gap: 2px;
}

.sd-services__dots button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.sd-services__dots button span { width: 5px; height: 5px; border-radius: 50%; background: #9db9c5; transition: transform .2s, background .2s; }
.sd-services__dots button.is-active span { transform: scale(1.5); background: #174b73; }
.sd-services__dots button:focus-visible { outline: 2px solid #174b73; outline-offset: -3px; }

.sd-services__status { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 1000px) {
  .farms-home .sd-services { --sd-service-frame-height: clamp(270px, 29vw, 315px); }
  .farms-home .sd-services .gh-solutions__copy h2 { font-size: clamp(34px, 4.3vw, 42px); }
  .farms-home .sd-services .gh-service,
  .farms-home .sd-services .sd-services__dots { left: 15%; width: 77%; }
  .farms-home .sd-services .gh-service__visual { padding: 24px; }
}

@media (max-width: 760px) {
  .farms-home .sd-services { --sd-service-frame-height: clamp(245px, 62vw, 340px); }
  .farms-home .sd-services .gh-solutions__pin { padding: 62px 0 56px; }
  .farms-home .sd-services .gh-solutions__grid {
    width: calc(100% - 40px);
    margin-inline: auto;
    grid-template-columns: 1fr;
    grid-template-areas: "copy" "stage" "footer";
    row-gap: 34px;
  }
  .farms-home .sd-services .gh-solutions__copy { margin: 0; padding: 0; }
  .farms-home .sd-services .gh-solutions__copy h2 { font-size: clamp(30px, 7vw, 38px); line-height: 1.5; }
  .farms-home .sd-services .gh-solutions__copy > .gh-solutions__tagline { font-size: clamp(20px, 5.1vw, 25px); line-height: 1.7; }
  .farms-home .sd-services .gh-solutions__copy > p:not(.gh-solutions__tagline) { font-size: 16px; line-height: 1.8; }
  .farms-home .sd-services .gh-solutions__stage { height: calc(var(--sd-service-frame-height) + 151px); }
  .farms-home .sd-services .gh-service,
  .farms-home .sd-services .sd-services__dots { left: 5%; width: 90%; }
  .farms-home .sd-services .gh-service__visual { padding: 20px; }
  .farms-home .sd-services .gh-service__label { margin-top: 30px; }
  .farms-home .sd-services .gh-service__label h3 { font-size: clamp(22px, 5.6vw, 29px); line-height: 1.5; }
  .farms-home .sd-services .gh-solutions__footer { padding: 0; margin: 0; }
  .farms-home .sd-services .gh-solutions__footer .gh-pill { max-width: 100%; min-width: 0; }
  .sd-services__lines { height: 160px; bottom: -36px; opacity: .3; }
}

@media (prefers-reduced-motion: reduce) {
  .farms-home .sd-services .gh-service { animation: none; }
  .farms-home .sd-services * { transition: none !important; }
}
