/* Signature Spaces — match staging  + thumbs + slider */

.signature {
  padding: 0 0 100px;
  background: #fff;
}

/* Staging: .container.signature { padding-top: 160px } + .signature gap 36px */
.signature__inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 160px 64px 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 36px; /* staging .signature grid-row-gap */
}

/*
 * Staging 
 * justify space-between, align center, full width flex row
 */
.signature__title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  /* no gap — staging uses only space-between */
}

/*
 * Staging 
 * column, gap 24px, align start
 */
.signature__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  flex: 1;
  min-width: 0;
}

/* h2 the-seasons 56/68 dark */
.signature__title {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 400;
  line-height: 68px;
  color: #121212;
  margin: 0;
}

/*
 * Staging .paragraph-large
 * width 568px, 18px/24px, normal weight
 */
.signature__text {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 24px;
  font-weight: 400;
  color: #666;
  width: 568px;
  max-width: 100%;
  margin: 0;
}

/*
 * Staging   ← polaroid stack (exact)
 * flex-flow: row; align-items: center; display: flex;
 */
.signature__thumbs {
  display: flex;
  flex-flow: row;
  align-items: center;
  flex-shrink: 0;
  position: relative;
  /* never collapse the stack */
  min-width: 0;
}

/*
 * Staging 
 * ONLY rule on desktop: margin-left: -40px
 * PNGs are pre-composited circular polaroids with transparent corners —
 * do not add border-radius, border, shadow, object-fit:cover, or max-width:100%.
 */
.signature__thumbs img,
.signature__thumb {
  /* override global img { max-width: 100% } which shrinks the stack */
  max-width: none;
  width: auto;
  height: auto;
  display: block;
  margin: 0;
  margin-left: -40px; /* staging overlap */
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  object-fit: unset;
  flex-shrink: 0;
  position: relative;
  /* later thumbs paint above earlier ones (deck order) */
}

.signature__thumbs img:nth-child(1) {
  z-index: 1;
}
.signature__thumbs img:nth-child(2) {
  z-index: 2;
}
.signature__thumbs img:nth-child(3) {
  z-index: 3;
}
.signature__thumbs img:nth-child(4) {
  z-index: 4;
}

/*
 * Staging .content-none-style
 * first image: no negative margin
 */
.signature__thumbs img:first-child,
.signature__thumb:first-child {
  margin-left: 0;
}

/* Keep polaroid edges visible (GSAP transform on .reveal can clip) */
.signature.reveal,
.signature__title-row,
.signature__thumbs {
  overflow: visible;
}

/* Full-width slider — staging .signature-content-slider height 700px */
.signature__media {
  width: 100%;
  position: relative;
}

.signature__stage {
  position: relative;
  width: 100%;
  height: 700px;
  overflow: hidden;
  background: #ddd;
}

.signature__slide {
  position: absolute;
  inset: 0;
  background: center / cover no-repeat;
  opacity: 1;
  transform: translateX(-100%);
  transition: transform 0.5s ease;
  pointer-events: none;
}

.signature__slide.is-active {
  transform: translateX(0);
  z-index: 1;
  pointer-events: auto;
}

/*
 * Staging Webflow slider arrows:
 * .w-slider-arrow-left / .w-slider-arrow-right
 * white 40px icons, 80px hit strip, full slider height, absolute inset 0
 */
.signature__arrow {
  cursor: pointer;
  color: #fff;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  width: 80px;
  margin: auto;
  font-size: 40px;
  position: absolute;
  top: 0;
  bottom: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  padding: 0;
  appearance: none;
}

.signature__arrow:focus {
  outline: 0;
}

.signature__arrow:focus-visible {
  outline: 2px solid #e0bb7f;
  outline-offset: -4px;
}

.signature__arrow:hover {
  color: #fff;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 0, 0, 0.12),
    transparent
  );
}

.signature__arrow--prev {
  z-index: 3;
  left: 0;
  right: auto;
}

.signature__arrow--next {
  z-index: 4;
  right: 0;
  left: auto;
}

/* icon centered via absolute inset + margin auto (staging .w-icon-slider-*) */
.signature__arrow-icon {
  pointer-events: none;
}

/* Staging .signature-slider-navigation / .w-slider-nav.w-round.w-slider-nav-invert */
.signature__dots,
.signature-slider-navigation {
  z-index: 2;
  display: block;
  height: 40px;
  margin: auto;
  margin-bottom: -40px;
  padding-top: 10px;
  position: absolute;
  inset: auto 0 0;
  text-align: center;
}

.signature__dot {
  cursor: pointer;
  width: 8px;
  height: 8px;
  margin: 0 3px 7px;
  padding: 0;
  border: 0;
  border-radius: 100%;
  background-color: rgba(34, 34, 34, 0.4);
  box-sizing: border-box;
  display: inline-block;
  position: relative;
  vertical-align: top;
  font-size: 0;
  line-height: 0;
  transition: background-color 0.1s, color 0.1s;
}

.signature__dot.is-active {
  width: 16px;
  height: 8px;
  border-radius: 9999px;
  background-color: #222;
}

.signature__dot:focus-visible {
  outline: 2px solid #e0bb7f;
  outline-offset: 2px;
}

/* Tablet: stack title column */
@media screen and (max-width: 991px) {
  .signature__inner {
    padding: 48px 32px 0;
  }

  .signature__title-row {
    flex-flow: column;
    align-items: flex-start;
    gap: 24px;
  }

  .signature__title {
    font-size: 40px;
    line-height: 1.15;
  }

  .signature__text {
    width: 100%;
  }

  .signature__stage {
    height: 480px;
  }
}

@media screen and (max-width: 767px) {
  .signature {
    padding-bottom: 48px;
  }

  .signature__inner {
    padding: 32px 16px 0;
  }

  .signature__title {
    font-size: 32px;
    line-height: 1.2em;
  }

  .signature__text {
    font-size: 16px;
    line-height: 1.4em;
  }

  .signature__stage {
    height: 358px;
  }
}

/* Small phones: smaller thumbs, keep polaroid rim */
@media screen and (max-width: 479px) {
  .signature__thumbs img,
  .signature__thumb {
    width: 72px;
    height: 72px;
    max-width: 72px;
    margin-left: -30px;
    object-fit: contain;
  }

  .signature__thumbs img:first-child,
  .signature__thumb:first-child {
    margin-left: 0;
  }

  .signature__stage {
    height: 225px;
  }
}
