/* ── GFM Services Block ─────────────────────────────────────── */

/* ═══════════════════════════════════════════════════════════════
   SERVICES SECTION
═══════════════════════════════════════════════════════════════ */
:root {
  --services-slide-h: clamp(300px, 30vw, 537px);
}

.services {
  position: relative;
  z-index: 0;
  background: #08070D;
  overflow: hidden;
}

.services__bg-img { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.services__bg-img img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
.services__bg-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; pointer-events: none; }
.services__overlay { position: absolute; inset: 0; background: rgba(0,0,0,var(--overlay,0.4)); z-index: 2; pointer-events: none; }

/* ── Header ── */
.services__header {
  padding: clamp(32px, 4vw, 88px) clamp(24px, 8vw, 200px);
  text-align: center;
}

.services__headline {
  /* font-family: var(--font-display); */
  font-weight: 600;
  font-size: var(--type-h2-size);
  line-height: var(--type-h2-lh);
  color: var(--color-dirt-white);
  margin: 0;
  letter-spacing: 0;
  text-transform: uppercase;
}

.services__headline-highlight {
  color: var(--color-turquoise-500);
}

/* ── Slider ── */
.services__swiper {
  width:calc( 100% - (var(--nav-px) * 2));
  overflow: hidden;
  overflow: visible;
}

.services__swiper .swiper-wrapper {
  align-items: center;
}

/* ── Individual slide ── */
.services__slide {
  width: min(82vw, 1440px);
  max-width: calc(100vw - (var(--nav-px) * 2));
  display: flex;
  height: auto;
  overflow: hidden;
  pointer-events: auto;
}

.services__swiper .swiper-slide {
  opacity: 0.2;
  transform: scale(0.9);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transform-origin: center center;
}

.services__swiper .swiper-slide-active {
  opacity: 1;
  transform: scale(1);
  z-index: 9;
  pointer-events: auto !important;
}

.services__swiper .swiper-slide-prev,
.services__swiper .swiper-slide-next {
  opacity: 0.55;
  transform: scale(0.92);
}

.services__swiper .swiper-slide-active button{
  z-index: 91 !important;
}

/* ── Text panel (left 50%) ── */
.services__panel-text {
  flex: 0 0 50%;
  position: relative;
  background: #151515;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(16px, 1.6vw, 24px);
  overflow: hidden;
  row-gap: 2rem;
  border: 1px solid #59516D;
}

.services__panel-bg-img { position: absolute; inset: 0; z-index: 0; }
.services__panel-bg-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.services__panel-bg-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; pointer-events: none; }
.services__panel-overlay { position: absolute; inset: 0; background: rgba(0,0,0,var(--overlay,0.4)); z-index: 2; pointer-events: none; }

.services__panel-text .text-block,
.services__panel-text .services__cta { position: relative; z-index: 3; }

.services__title {
  font-family: var(--font-brand);
  font-size: var(--type-h3-size);
  line-height: var(--type-h3-lh);
  color: #EAE9ED;
  margin: 0;
  letter-spacing: 0;
  text-transform: uppercase;
}

.services__desc {
  font-family: var(--font-brand);
  font-size: var(--type-body-md-size);
  line-height: var(--type-body-md-lh);
  color: #EAE9ED;
  margin: 0;
}

.services__tagline {
  font-family: var(--font-brand);
  font-size: var(--type-body-md-size);
  line-height: var(--type-body-md-lh);
  color: var(--color-white);
  margin: 0;
  font-weight: 400;
}

/* All extended slides — center content as a group */
.services__slide--processing .services__panel-text,
.services__slide--packaging .services__panel-text,
.services__slide--ingredients .services__panel-text,
.services__slide--automation .services__panel-text,
.services__slide--supply-chain .services__panel-text {
  justify-content: space-between;
  gap: clamp(10px, 1vw, 16px);
  overflow-y: auto;
}

.services__slide--processing .services__desc,
.services__slide--packaging .services__desc,
.services__slide--ingredients .services__desc,
.services__slide--automation .services__desc,
.services__slide--supply-chain .services__desc {
  color: var(--color-white);
}

.services__cta {
  align-self: flex-start;
  margin-top: 4px;
}

/* ── Video panel (right 50%) ── */
.services__panel-video {
  flex: 0 0 50%;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.services__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.services__panel-video .services__video-iframe {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  inset: auto !important;
  width: auto !important;
  min-width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  min-height: 100% !important;
  aspect-ratio: 16 / 9;
  border: 0;
  pointer-events: none;
  transform: scale(2) !important;
}

.services__video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.20) 0%, rgba(0, 0, 0, 0.20) 100%);
  pointer-events: none;
}

/* ── Pagination bar ── */
.services__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(20px, 2.6vw, 40px) var(--nav-px);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  gap: 24px;
}

/* ── Prev / Next arrows ── */
.services__arrow {
  width: 48px;
  height: 48px;
  border: 1px solid var(--color-stroke);
  background: rgba(8, 7, 13, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.services__arrow--prev {
}

.services__arrow--next {
}

.services__arrow--prev img {
  transform: rotate(180deg);
}

.services__arrow:hover {
  border-color: var(--color-turquoise-500);
  background: rgba(4, 221, 207, 0.1);
}

/* Mobile arrows — always visible inside the nav bar */
.services__arrow--mobile {
  position: static;
  opacity: 1;
  pointer-events: auto;
  display: flex;
}

.services__indicators {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.services__dot,
.services__tick {
  display: block;
  cursor: pointer;
  border: none;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.3s ease, width 0.3s ease;
}

.services__dot {
  width: 9.59px !important;
  height: 9.59px !important;
  background: var(--color-turquoise-500) !important;
}

.services__tick {
  width: 1.935px;
  height: 9.59px;
  background: var(--color-stroke);
}

/* ══════════════════════════════════════════════════════════
   INGREDIENTS MODAL
══════════════════════════════════════════════════════════ */
/* ── Bootstrap modal overrides for sector modals ────────────── */
.modal-backdrop.show {
  background: rgba(1, 1, 1, 0.82);
  opacity: 1;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.sector-modal .modal-dialog {
  max-width: 1200px;
}

/* Suppress Bootstrap's slide-down; our content does a subtle slide-up */
.sector-modal.fade .modal-dialog {
  transform: none;
  transition: none;
}

.sector-modal.show .ing-modal__box {
  animation: ing-modal-in 0.25s ease;
}

.ing-modal__box {
  background: #08070D;
  border: 1px solid #59516D95;
  border-radius: 0;
  overflow: visible;
  width: 100%;
}

.ing-modal__inner {
  max-height: 78vh;
  overflow-y: auto;
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Corner accent squares */
.ing-modal__corner {
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
   display: none;
}

.ing-modal__corner--tl {
  top: -7px;
  left: -7px;
  background: var(--color-turquoise-500);
}

.ing-modal__corner--br {
  bottom: -7px;
  right: -7px;
  background: #D00EB9;
}

@keyframes ing-modal-in {
  from { transform: translateY(12px); }
  to   { transform: translateY(0); }
}

.ing-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: 1px solid var(--color-stroke);
  color: var(--color-white);
  width: 48px;
  height: 48px;
  border-radius: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.ing-modal__close svg{
  width: 16px;
  height: 16px;
}

.ing-modal__close:hover {
  border-color: var(--color-turquoise-500);
  color: var(--color-turquoise-500);
}

.ing-modal__intro {
  font-family: var(--font-brand);
 font-size: clamp(20px, 1vw, 24px);
  line-height: var(--type-body-md-lh);
  color: var(--color-white);
  margin: 0;
  padding-right: 32px;
}

.ing-modal__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: clamp(10px, 1vw, 16px);
  flex-wrap: wrap;
}

.ing-modal__list li {
  font-family: var(--font-brand);
  font-size: clamp(14px, 1vw, 16px);
  line-height: var(--type-body-md-lh);
  padding: 12px 16px;
  border: 1px solid var(--color-stroke);
  display: flex;
  align-items: flex-start;
  transition: color 0.2s;
  gap: 16px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-white);
  flex: 0 0 auto;
}


/* The Figma "line" prefix — 32px wide dash in orchid colour */
.ing-modal__list li::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--color-orchid-500);
  flex-shrink: 0;
  margin-top: 0.7em; /* vertically centre against first line of text */
}


/* ── Hotel modal extras ─────────────────────────────────────── */
.ing-modal__title {
  /* font-family: var(--font-display); */
  font-weight: 400;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.1;
  color: var(--color-dirt-white);
  margin: 0;
  text-transform: uppercase;
  padding-right: 40px; /* clear the close button */
}

.ing-modal__subtitle {
  font-family: var(--font-brand);
  font-size: var(--type-label-size);
  font-weight: 400;
  line-height: var(--type-label-lh);
  letter-spacing: var(--type-label-tracking);
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0;
}

.ing-modal__body {
  font-family: var(--font-brand);
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.6;
  color: var(--color-white);
}

.ing-modal__body p,
.ing-modal__body ul,
.ing-modal__body ol {
  margin: 0 0 12px;
}

.ing-modal__body ul,
.ing-modal__body ol {
  padding-left: 20px;
}

.ing-modal__body strong {
  color: var(--color-dirt-white);
}

.ing-modal__book-btn {
  align-self: flex-start;
  margin-top: 8px;
}

.ing-modal__book-btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Editor preview: static layout (Swiper never initialises) ── */
.editor-styles-wrapper .services {
  min-height: 400px;
  background: #08070D;
}
.editor-styles-wrapper .services__swiper {
  width: 100%;
  overflow: hidden;
}
.editor-styles-wrapper .services__swiper .swiper-wrapper {
  display: flex;
  transform: none !important;
  will-change: unset;
}
.editor-styles-wrapper .services__swiper .swiper-slide {
  opacity: 1;
  flex: 0 0 100%;
  max-width: 100%;
}
.editor-styles-wrapper .services__swiper .swiper-slide:not(:first-child) {
  display: none;
}
.editor-styles-wrapper .services__nav {
  background: rgba(8, 7, 13, 0.8);
}

@media (max-width: 991px) {
  .services {
    padding-left: var(--nav-px);
    padding-right: var(--nav-px);
  }

  .services__header,
  .services__nav {
    padding-left: 0;
    padding-right: 0;
  }

  .services__swiper {
    width: 100%;
    overflow: hidden;
  }

  .services__swiper .swiper-slide {
    opacity: 1;
  }

  .services__slide {
    width: 100%;
    max-width: 100%;
    flex-direction: column;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .services__panel-video {
    order: 1;
    flex: 0 0 auto;
    width: 100%;
    min-height: 220px;
  }

  .services__panel-text {
    order: 2;
    flex: 0 0 auto;
    width: 100%;
    height: auto;
  }
}

@media (max-width: 767px) {
  .services .services__swiper .swiper-slide {
    flex-direction: column-reverse !important;
  }

  .services .services__panel-text {
    order: 2;
  }

  .services .services__panel-video {
    order: 1;
  }

  .services__header {
    padding-top: 28px;
    padding-bottom: 24px;
    text-align: left;
  }

  .services__headline {
    text-wrap: pretty;
    display: flex;
    flex-direction: column;
  }

  .services__slide {
    align-self: stretch;
  }

  .services__panel-video {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .services__video {
    position: absolute;
    inset: 0;
  }

  .services__panel-text {
    min-height: 0;
    justify-content: flex-start;
    gap: 14px;
    padding: 20px 16px;
    overflow: visible;
  }

  .services__slide--processing .services__panel-text,
  .services__slide--packaging .services__panel-text,
  .services__slide--ingredients .services__panel-text,
  .services__slide--automation .services__panel-text,
  .services__slide--supply-chain .services__panel-text {
    overflow: visible;
  }

  .services__desc {
    font-size: 15px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
  }

  .services__cta {
    margin-top: 8px;
    flex-shrink: 0;
    position: relative;
    z-index: 4;
  }
}
