/* Services Section */
.services {
  position: relative;
  margin-top: -56px;
  padding: 100px 0 80px;
  background: #0a0a0a;
  overflow: hidden;
  z-index: 2;
  clip-path: polygon(
    0% 3%,
    20% 4.5%,
    50% 9%,
    80% 4.5%,
    100% 3%,
    100% 100%,
    0% 100%
  );
  -webkit-clip-path: polygon(
    0% 3%,
    20% 4.5%,
    50% 9%,
    80% 4.5%,
    100% 3%,
    100% 100%,
    0% 100%
  );
}

.services-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.services-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.services .container {
  position: relative;
  z-index: 2;
}

.services-glow {
  position: absolute;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 160px;
  background: radial-gradient(ellipse, rgba(227, 30, 36, 0.28) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.services-header {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  z-index: 2;
  padding-top: 8px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  position: relative;
  z-index: 2;
}

/* Desktop — horizontal parallax for all cards in What We Offer */
@media (min-width: 901px) {
  .services {
    overflow: visible;
    padding: 72px 0 20px;
    clip-path: none;
    -webkit-clip-path: none;
  }

  .services::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: linear-gradient(180deg, #0a0a0a 0%, transparent 100%);
    z-index: 4;
    pointer-events: none;
  }

  .services .container {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  .services-parallax-pin {
    position: relative;
    width: 100%;
  }

  .services-parallax-sticky {
    position: relative;
    top: 0;
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
    z-index: 2;
    padding: 0 max(var(--page-padding), 48px) 8px;
  }

  .services-parallax-sticky.is-parallax-fixed {
    position: fixed;
    top: 90px;
    z-index: 12;
    background: #0a0a0a;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  }

  .services-parallax-sticky.is-parallax-end {
    position: absolute;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100% !important;
  }

  .services-header {
    margin-bottom: 16px;
    flex-shrink: 0;
    padding-top: 0;
  }

  .services-header .section-label {
    margin-bottom: 10px;
  }

  .services-parallax-viewport {
    flex: 0 0 auto;
    width: calc(100% + (2 * max(var(--page-padding), 48px)));
    max-width: 100vw;
    margin-left: calc(-1 * max(var(--page-padding), 48px));
    margin-right: calc(-1 * max(var(--page-padding), 48px));
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    min-height: 0;
    padding-left: max(var(--page-padding), 48px);
    padding-right: max(var(--page-padding), 48px);
    box-sizing: border-box;
  }

  .services-parallax-track {
    will-change: transform;
    transition: none;
    transform: translate3d(0, 0, 0);
  }

  .services-grid {
    display: flex !important;
    flex-wrap: nowrap;
    gap: 22px;
    width: max-content;
    min-width: 0;
    padding-right: 0;
    grid-template-columns: none !important;
  }

  .service-card {
    flex: 0 0 300px;
    flex-shrink: 0;
    width: 300px;
    min-width: 300px;
    max-width: 300px;
    height: 460px;
    overflow: hidden;
  }

  .service-card-media {
    background: #111;
  }

  .service-card-media img {
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center center;
    transform: none !important;
    will-change: auto;
  }

  .service-card-footer {
    background: linear-gradient(
      to top,
      rgba(255, 255, 255, 0.97) 0%,
      rgba(255, 255, 255, 0.9) 42%,
      transparent 100%
    );
  }

  .service-card:hover .service-card-media img {
    transform: none !important;
    filter: none;
  }

  .service-card-title {
    font-size: 1.12rem;
  }

  .services-parallax-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    margin-bottom: 0;
    flex-shrink: 0;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
  }

  .services-parallax-hint i {
    animation: none;
  }
}

.services-parallax-hint {
  display: none;
}

/* No motion — static services section */
.services .fade-in-up,
.services .fade-in-up.visible {
  opacity: 1;
  transform: none;
  transition: none;
  animation: none;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  overflow: visible;
  cursor: pointer;
  height: 450px;
  transition: none;
}

.service-card:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.service-card-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 12px;
  z-index: 0;
}

.service-card-media img {
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: none;
}

.service-card:hover .service-card-media img {
  transform: none;
  filter: none;
}

.service-card-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin-top: 0;
  padding: 18px 12px 20px;
  background: transparent;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  z-index: 2;
  transition: none;
}

.service-card:hover .service-card-footer {
  background: linear-gradient(
    to top,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(255, 255, 255, 0.85) 70%,
    transparent 100%
  );
}

.service-hex {
  position: relative;
  z-index: 3;
  width: 62px;
  height: 70px;
  margin-top: 0;
  margin-bottom: 0;
  flex-shrink: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: none;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.18));
}

.service-hex::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-red);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  z-index: 0;
  transition: none;
}

.service-hex::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: #ffffff;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  z-index: 1;
  transition: none;
}

.service-card:hover .service-hex {
  transform: none;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.18));
}

.service-card:hover .service-hex::before {
  transform: none;
  background: var(--color-red);
}

.service-card:hover .service-hex::after {
  inset: 3px;
  background: #ffffff;
}

.service-hex-icon {
  position: relative;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: block;
  transition: none;
}

.service-card:hover .service-hex-icon {
  transform: none;
}

.service-card-title {
  font-family: var(--font-heading);
  font-size: clamp(0.82rem, 1vw, 0.95rem);
  font-weight: 700;
  text-transform: capitalize;
  letter-spacing: 0.1px;
  line-height: 1.3;
  color: #111111;
  padding: 0 8px 0 0;
  margin: 0;
  max-width: 100%;
  text-align: left;
  flex: 1;
  align-self: center;
  transition: none;
}

.service-card:hover .service-card-title {
  color: #111111;
  transform: none;
}

@media (max-width: 900px) {
  .services {
    margin-top: 0;
    padding-top: 48px;
    overflow: visible;
    clip-path: none;
    -webkit-clip-path: none;
  }

  .services-parallax-pin,
  .services-parallax-sticky,
  .services-parallax-viewport,
  .services-parallax-track {
    position: static;
    height: auto;
    min-height: 0;
    overflow: visible;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .services-parallax-track {
    transform: none !important;
  }

  .services-parallax-spacer {
    display: none;
  }

  .services .container {
    padding-left: var(--page-padding);
    padding-right: var(--page-padding);
  }

  .services-header {
    margin-bottom: 32px;
    text-align: center;
    padding-top: 0;
  }

  .services-header .section-label {
    margin-bottom: 12px;
  }

  .services-parallax-hint {
    display: none !important;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    overflow: visible;
    scroll-snap-type: none;
  }

  .service-card {
    width: 100%;
    min-width: 0;
    height: 300px;
  }

  .service-card-footer {
    padding: 20px 18px 22px;
    gap: 16px;
    background: linear-gradient(
      to top,
      rgba(255, 255, 255, 0.96) 0%,
      rgba(255, 255, 255, 0.88) 55%,
      transparent 100%
    );
  }

  .service-hex {
    width: 72px;
    height: 82px;
  }

  .service-hex-icon {
    width: 44px;
    height: 44px;
  }

  .service-card-title {
    font-size: 0.95rem;
    white-space: normal;
    word-wrap: break-word;
    padding-right: 4px;
  }
}

@media (max-width: 600px) {
  .services {
    padding: 40px 0 64px;
  }

  .services-header {
    margin-bottom: 28px;
  }

  .services-grid {
    gap: 18px;
  }

  .service-card {
    height: 280px;
  }

  .service-card-title {
    font-size: 0.9rem;
    line-height: 1.35;
  }
}
