/*
 * Equifruit Notes Carousel Styles
 * Ported directly from Why.vue for 100% match on Desktop and Mobile.
 */

:root {
  --notes-black: #302624;
  --notes-lilac: rgba(214, 197, 229, 0.95);
  --notes-blue: rgba(138, 199, 235, 0.95);
  --notes-green: rgba(148, 203, 165, 0.95);
  --notes-orange: rgba(242, 149, 95, 0.95);
  --notes-white: rgba(255, 255, 255, 0.95);
}

.Why,
.Why__stickers {
  position: relative;
  margin-top: 0 !important;
  padding-top: 0 !important;
  width: 100vw !important;
  max-width: 100vw !important;
  left: 50% !important;
  right: auto !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  box-sizing: border-box !important;
}

/* Also strip top margin/padding from Elementor widget wrappers if present */
.elementor-widget-equifruit_notes_carousel,
.elementor-widget-equifruit_notes_carousel .elementor-widget-container {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

@media (max-width: 768px) {
  .Why,
  .Why__stickers {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
}

.Why__stickers-wrapper {
  height: auto !important;
  padding: 0 !important;
  margin-top: 0 !important;
  display: flex;
  align-items: center !important;
  position: relative;
  will-change: transform;
}



/* Intro Section containing bubble and banana - Compact Height */
.Why__intro {
  position: relative;
  height: calc(130 / 1440 * 100vw);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

@media (max-width: 768px) {
  .Why__intro {
    height: calc(75 / 375 * 100vw);
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
}

.Why__banana {
  margin-right: calc(30 / 1440 * 100vw);
  position: absolute;
  right: calc(60 / 1440 * 100vw);
  top: calc(10 / 1440 * 100vw);
  z-index: 2;
}

.Why__banana .Banana,
.Why__banana .SharkEatBanana {
  width: calc(280 / 1440 * 100vw);
  height: calc(320 / 1440 * 100vw);
}

@media (max-width: 768px) {
  .Why__banana {
    margin-right: 0;
    right: calc(-30 / 375 * 100vw);
    top: 0;
  }

  .Why__banana .Banana,
  .Why__banana .SharkEatBanana {
    width: calc(130 / 375 * 100vw);
    height: calc(160 / 375 * 100vw);
  }
}

/* Speech Bubble styling */
.Why .Bubble {
  width: calc(502 / 1440 * 100vw);
  height: calc(243 / 1440 * 100vw);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 40px;
  box-sizing: border-box;
}

.Why .Bubble svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.Why .Bubble__text {
  position: relative;
  z-index: 2;
  font-family: inherit;
  font-weight: 700;
  font-size: calc(24 / 1440 * 100vw);
  color: var(--notes-black);
  text-align: center;
  line-height: 1.2;
}

@media (max-width: 768px) {
  .Why .Bubble {
    width: calc(210 / 375 * 100vw);
    height: calc(100 / 375 * 100vw);
    margin-top: calc(15 / 375 * 100vw);
    transform: translate(-50%, -50%) translateX(-50%);
    padding: 10px 15px;
  }

  .Why .Bubble__text {
    font-size: calc(12 / 375 * 100vw);
  }
}

/* Stickers Carousel (Horizontal Pinned Area) - Compact Height */
.Why__stickers {
  height: auto !important;
  min-height: calc(480 / 1440 * 100vw) !important;
  width: 100%;
  position: relative;
  top: 0;
  margin-top: 0 !important;
  padding-top: 0 !important;
  overflow: visible;
  z-index: 10;
}



.Why__stickers-wrapper {
  height: auto !important;
  padding: calc(20 / 1440 * 100vw) 0 !important;
  display: flex;
  align-items: center;
  position: relative;
  will-change: transform;
}

.Why__stickers-block {
  padding: calc(44 / 1440 * 100vw);
  width: calc(409 / 1440 * 100vw);
  min-height: calc(477 / 1440 * 100vw);
  height: auto;
  flex-shrink: 0;
  flex-grow: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: calc(80 / 1440 * 100vw);
  text-align: center;
  box-sizing: border-box;
  position: relative;
  border-radius: 0px;
  transform-origin: center center;
}

.Why__stickers-block > div {
  width: 100%;
}

.Why__stickers-block p,
.Why__stickers-block div {
  font-family: inherit;
  font-weight: 500;
  color: var(--notes-black);
  font-size: calc(28 / 1440 * 100vw);
  line-height: calc(35 / 1440 * 100vw);
  margin: 0 auto;
  max-width: 100%;
  text-align: center;
}

.Why__stickers-block h3,
.Why__stickers-block strong {
  display: block;
  font-family: inherit;
  font-weight: 700;
  font-size: calc(32 / 1440 * 100vw);
  line-height: calc(38 / 1440 * 100vw);
  color: var(--notes-black);
  margin-bottom: calc(15 / 1440 * 100vw);
  text-align: center;
}

/* First note starts flush in track, off-screen transform handled by GSAP */
.Why__stickers-block:first-child {
  margin-left: 0 !important;
}

/* Card Rotations matching Why.vue */
.Why__stickers-block:nth-child(odd) {
  transform: rotate(-4deg);
}

.Why__stickers-block:nth-child(even) {
  transform: rotate(2deg);
}

/* Color Sequence matching Why.vue */
.Why__stickers-block:nth-child(6n+1) { background: var(--notes-lilac); }
.Why__stickers-block:nth-child(6n+2) { background: var(--notes-blue); }
.Why__stickers-block:nth-child(6n+3) { background: var(--notes-green); }
.Why__stickers-block:nth-child(6n+4) { background: var(--notes-orange); }
.Why__stickers-block:nth-child(6n+5) { background: var(--notes-white); }
.Why__stickers-block:nth-child(6n+6) { background: var(--notes-orange); }

/* Custom Overrides */
.Why__stickers-block.is-color-lilac  { background: var(--notes-lilac)  !important; }
.Why__stickers-block.is-color-blue   { background: var(--notes-blue)   !important; }
.Why__stickers-block.is-color-green  { background: var(--notes-green)  !important; }
.Why__stickers-block.is-color-orange { background: var(--notes-orange) !important; }
.Why__stickers-block.is-color-white  { background: var(--notes-white)  !important; }

/* Mobile (portrait) scaling matching Why.vue @p 375px — 1 full card with visible space around it */
@media (max-width: 768px) {
  .Why__stickers {
    height: auto !important;
    min-height: calc(440 / 375 * 100vw) !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    overflow: visible !important;
  }

  .Why__stickers-wrapper {
    padding: calc(30 / 375 * 100vw) 0 !important;
    margin-top: 0 !important;
    align-items: center !important;
  }

  .Why__stickers-block {
    padding: calc(24 / 375 * 100vw) calc(20 / 375 * 100vw) !important;
    width: calc(250 / 375 * 100vw) !important;
    max-width: calc(250 / 375 * 100vw) !important;
    height: auto !important;
    min-height: calc(340 / 375 * 100vw) !important;
    margin-right: calc((375 - 250) / 375 * 100vw) !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
    transform-origin: center center !important;
  }

  .Why__stickers-block:first-child {
    margin-left: calc((375 - 250) / 2 / 375 * 100vw) !important;
  }

  /* Subtle rotation on mobile to ensure zero corner clipping */
  .Why__stickers-block:nth-child(odd) {
    transform: rotate(-2deg) !important;
  }

  .Why__stickers-block:nth-child(even) {
    transform: rotate(1.5deg) !important;
  }

  .Why__stickers-block p,
  .Why__stickers-block div {
    font-size: calc(16 / 375 * 100vw) !important;
    line-height: calc(21 / 375 * 100vw) !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }

  .Why__stickers-block h3,
  .Why__stickers-block strong {
    font-size: calc(19 / 375 * 100vw) !important;
    line-height: calc(23 / 375 * 100vw) !important;
    margin-bottom: calc(10 / 375 * 100vw) !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }
}

.Why__title {
  position: absolute;
  left: 50%;
  top: 50%;
  text-align: center;
  white-space: normal;
  width: 90vw;
  max-width: 90vw;
  transform: translate(-50%, -50%);
  font-family: 'claudia', sans-serif;
  font-weight: 900;
  font-size: calc(82 / 1440 * 100vw);
  line-height: 1;
  text-transform: uppercase;
  color: var(--notes-black);
  z-index: 0 !important;
  pointer-events: none;
  opacity: 1 !important;
  visibility: visible !important;
}

@media (max-width: 768px) {
  .Why__title {
    font-size: calc(24 / 375 * 100vw);
    line-height: 1.1;
    white-space: normal !important;
    width: 90vw !important;
    max-width: 90vw !important;
    z-index: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}

/* Wing element */
.Why__wing {
  position: absolute;
  height: calc(115 / 1440 * 100vw);
  width: calc(139 / 1440 * 100vw);
  left: calc(-139 / 1440 * 100vw);
  bottom: -1px;
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 5;
  pointer-events: none;
}

@media (max-width: 768px) {
  .Why__wing {
    height: calc(58 / 375 * 100vw);
    width: calc(70 / 375 * 100vw);
    left: calc(-70 / 375 * 100vw);
  }
}

/* Button section */
.Why__btn {
  margin-top: 20px;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  position: relative;
  width: 100%;
}

/* Media Quote Slider (PressSlider) & Marquee Controls */
.PressSlider__blocks,
.Instagram__slider-blocks {
  animation-duration: 50s !important; /* Slow down marquee speed significantly to allow plenty of time to read */
}

.PressSlider:hover .PressSlider__blocks,
.PressSlider__container:hover .PressSlider__blocks,
.Press:hover,
.Instagram__slider:hover .Instagram__slider-blocks {
  animation-play-state: paused !important; /* Pause automatic movement on hover so users can read quotes comfortably */
}