/* ==========================================================================
   Page sections: slideshow, marquee, wave divider, standalone image,
   image with text, testimonials carousel, icon bar, FAQ, contact form,
   newsletter block.
   ========================================================================== */

/* Slideshow ---------------------------------------------------------------- */

.slideshow-component {
  position: relative;
  display: flex;
  flex-direction: column;
}

.slider {
  position: relative;
  flex-wrap: inherit;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scroll-padding-left: 0;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 0;
  scrollbar-width: none;
}

.slider::-webkit-scrollbar {
  display: none;
}

.slider__slide {
  scroll-snap-align: start;
  flex-shrink: 0;
  padding-bottom: 0;
}

.slideshow.banner {
  flex-direction: row;
  flex-wrap: nowrap;
  margin: 0;
  gap: 0;
  position: relative;
  z-index: 0;
}

.slideshow__slide {
  padding: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
}

/* "Adapt to image": the hero artwork is square. */
.banner--adapt_image .slideshow__slide::before {
  content: "";
  display: block;
  padding-bottom: 100%;
}

.banner__media {
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
}

.banner__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0.2;
  z-index: 1;
}

.banner__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0;
}

.banner__box {
  --color-foreground: 255, 255, 255;
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-width: 0;
  max-width: 54.5rem;
  padding: 4rem 3.5rem;
  text-align: center;
  background: transparent;
  color: rgba(var(--color-foreground), var(--alpha-text));
  border: 0;
}

.banner__box > * + .banner__text {
  margin-top: 1rem;
}

.banner__box > * + .banner__buttons {
  margin-top: 2rem;
}

.banner__heading {
  margin: 0;
}

.banner__buttons {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 45rem;
  word-break: break-word;
  justify-content: center;
}

.slideshow__controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-button {
  color: rgba(var(--color-foreground), var(--alpha-text));
  background: transparent;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.slider-button .icon {
  height: 0.6rem;
}

.slider-button--next .icon {
  transform: rotate(-90deg);
}

.slider-button--prev .icon {
  transform: rotate(90deg);
}

.slider-button:not([disabled]):hover {
  color: rgb(var(--color-foreground));
}

.slider-counter {
  display: flex;
  justify-content: center;
  min-width: 4.4rem;
}

.slideshow__control-wrapper {
  display: flex;
}

.slider-counter__link {
  padding: 0.7rem;
  background: transparent;
  line-height: 0;
}

.slider-counter__link--dots .dot {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 0.1rem solid rgba(var(--color-foreground), 0.5);
  padding: 0;
  display: block;
}

.slider-counter__link--active.slider-counter__link--dots .dot {
  background-color: rgb(var(--color-foreground));
}

.slider-counter__link--dots:not(.slider-counter__link--active):hover .dot {
  border-color: rgb(var(--color-foreground));
}

.slideshow__autoplay {
  position: absolute;
  right: 0;
}

.slideshow__autoplay .icon {
  height: 0.8rem;
  width: auto;
}

@media screen and (min-width: 750px) {
  .slider-counter__link {
    padding: 1rem;
  }

  .banner__content {
    padding: 5rem;
  }
}

.slideshow__autoplay .icon.icon-play,
.slideshow__autoplay--paused .icon.icon-pause {
  display: none;
}

.slideshow__autoplay--paused .icon.icon-play {
  display: block;
  transform: none;
}

/* Marquee banner ----------------------------------------------------------- */

.spro-section {
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.spro-container {
  position: relative;
  margin: 0 auto;
  max-width: 1000px;
}

.spro-marquee {
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-color: rgb(var(--color-base-accent-1));
  padding: var(--marquee-pad-m);
}

.spro-marquee .spro-container {
  overflow: hidden;
  padding: 1px 0;
}

.spro-marquee .spro-grid {
  width: fit-content;
  align-items: center;
  display: flex;
  position: relative;
  animation: aa-marquee var(--marquee-speed, 15s) reverse linear infinite;
  will-change: transform;
}

.spro-marquee .spro-item {
  display: inline-block;
  flex-shrink: 0;
  margin: 0 var(--marquee-gap, 105px) 0 0;
}

.spro-marquee p {
  margin: 0;
  padding: 0;
  white-space: nowrap;
  font-family: var(--font-marquee-family);
  font-weight: 400;
  font-size: var(--marquee-font-m);
  color: #fff;
}

@media (min-width: 768px) {
  .spro-marquee {
    padding: var(--marquee-pad-d);
  }

  .spro-marquee .spro-container {
    padding: 0;
  }

  .spro-marquee p {
    font-size: var(--marquee-font-d);
  }
}

@keyframes aa-marquee {
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .spro-marquee .spro-grid {
    animation: none;
  }
}

/* Wave divider ------------------------------------------------------------- */

.section-divider__spacer {
  height: var(--h-m, 0);
}

.section-divider {
  position: relative;
  line-height: 0;
}

.section-divider--flip {
  transform: scaleY(-1);
}

.section-divider__svg {
  position: relative;
  top: 1px;
  height: 3rem;
  overflow: hidden;
  background: transparent;
}

.section-divider__svg svg {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
}

.section-divider__svg use {
  fill: rgb(var(--color-background));
}

.parallax1 > use {
  animation: aa-wave-1 10s linear infinite;
}

.parallax2 > use {
  animation: aa-wave-2 8s linear infinite;
  opacity: 0.4;
}

.parallax3 > use {
  animation: aa-wave-1 6s linear infinite;
  opacity: 0.3;
}

.parallax4 > use {
  animation: aa-wave-2 4s linear infinite;
  opacity: 0.2;
}

@keyframes aa-wave-1 {
  0% { transform: translate(85px, 0); }
  100% { transform: translate(-90px, 0); }
}

@keyframes aa-wave-2 {
  0% { transform: translate(-90px, 0); }
  100% { transform: translate(85px, 0); }
}

@media screen and (min-width: 750px) {
  .section-divider__spacer {
    height: var(--h-d, 0);
  }

}

@media screen and (min-width: 990px) {
  .section-divider__svg {
    height: 6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .section-divider__svg use {
    animation: none;
  }
}

/* Standalone image --------------------------------------------------------- */

.spro-image {
  padding: var(--img-pad-m);
}

.spro-image .spro-container {
  max-width: var(--img-max, 1000px);
  padding: var(--img-cpad-m);
}

.spro-image .spro-grid {
  display: block;
  position: relative;
  margin: 0 auto;
  padding: 0;
}

.spro-image img,
.spro-image .aa-placeholder {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  object-fit: cover;
}

.spro-image .aa-placeholder {
  aspect-ratio: 4 / 5;
}

@media (max-width: 767px) {
  .spro-image--desktop-only {
    display: none;
  }
}

@media (min-width: 768px) {
  .spro-image {
    padding: var(--img-pad-d);
  }

  .spro-image .spro-container {
    padding: var(--img-cpad-d);
  }

  .spro-image--mobile-only {
    display: none;
  }
}

/* Image with text ---------------------------------------------------------- */

.image-with-text .grid {
  margin-bottom: 0;
}

.image-with-text .grid__item {
  position: relative;
}

.image-with-text__media {
  min-height: 100%;
  overflow: visible;
}

.image-with-text__media--adapt {
  height: 0;
  min-height: 0;
}

.image-with-text__media img {
  object-fit: cover;
  object-position: center center;
}

.image-with-text__content {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  align-self: center;
  padding: 3rem;
  position: relative;
  z-index: 1;
}

.image-with-text__content--top {
  justify-content: flex-start;
}

.image-with-text__content > * + * {
  margin-top: 2rem;
}

.image-with-text__content > .image-with-text__text:empty ~ a {
  margin-top: 2rem;
}

.image-with-text__content > :first-child:is(.image-with-text__heading) {
  margin-top: 0;
}

.image-with-text__content :last-child:is(.image-with-text__heading) {
  margin-bottom: 0;
}

.image-with-text__content .button {
  margin-top: 3rem;
}

.image-with-text__heading {
  margin-bottom: 0;
}

.image-with-text__text p {
  word-break: break-word;
  margin-top: 0;
  margin-bottom: 1rem;
}

.image-with-text__text.subtitle {
  font-size: 1.8rem;
  line-height: 1.8;
  letter-spacing: 0.06rem;
  color: rgba(var(--color-foreground), 0.7);
}

.image-with-text__content--mobile-center {
  align-items: center;
  text-align: center;
}

/* Mobile: image stacked on text, corners joined. */
@media screen and (max-width: 749px) {
  .image-with-text.collapse-corners .image-with-text__media,
  .image-with-text.collapse-corners .image-with-text__media img {
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
  }

  .image-with-text.collapse-corners .image-with-text__content {
    border-top-right-radius: 0;
    border-top-left-radius: 0;
  }

  .image-with-text.same-colors.collapse-padding .image-with-text__content {
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0;
  }
}

@media screen and (min-width: 750px) {
  .image-with-text__grid {
    flex-wrap: nowrap;
  }

  .image-with-text__media-item,
  .image-with-text__text-item {
    width: 50%;
    max-width: 50%;
    flex: 0 0 50%;
  }

  .image-with-text__media-item--top {
    align-self: flex-start;
  }

  .image-with-text__media-item--middle {
    align-self: center;
  }

  .image-with-text__media-item--top {
    align-self: flex-start;
  }

  .image-with-text.same-colors.collapse-padding .image-with-text__content {
    padding-right: 0;
  }

  .image-with-text__content--desktop-left {
    align-items: flex-start;
    text-align: left;
  }

}

@media screen and (min-width: 990px) {
  .image-with-text__content {
    padding: 6rem 7rem 7rem;
  }
}

@media screen and (min-width: 750px) {
  .page-width.desktop-full-page {
    max-width: none;
  }
}

/* Multicolumn cards (testimonials + icon bar) ------------------------------ */

.multicolumn-card {
  position: relative;
  box-sizing: border-box;
}

.multicolumn-card.center {
  text-align: center;
}

.multicolumn-card__info {
  position: relative;
  padding: 2.5rem;
}

.color-bg-overlay {
  background-image: linear-gradient(rgba(var(--color-foreground), 0.04), rgba(var(--color-foreground), 0.04));
}

@media screen and (max-width: 749px) {
  .page-width.mobile-full-page {
    padding-left: 0;
    padding-right: 0;
  }

  .mobile-full-page .title-wrapper--self-padded-mobile {
    padding: 0 var(--page-gutter-mobile);
  }
}

/* Carousel (testimonials) */
.splide {
  position: relative;
}

.splide__track {
  position: relative;
  z-index: 0;
  overflow: hidden;
}

.splide__list {
  display: flex;
  align-items: flex-start;
  margin: 0;
  padding: 0;
  list-style: none;
  transition: transform 400ms cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.splide__slide {
  position: relative;
  flex-shrink: 0;
  box-sizing: border-box;
  list-style: none;
  margin: 0;
}

.splide__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(var(--color-background));
  color: rgba(var(--color-foreground), var(--alpha-text));
  opacity: 0.7;
  cursor: pointer;
  font-size: 3rem;
}

.splide__arrow:hover:not(:disabled) {
  opacity: 0.9;
}

.splide__arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

.splide__arrow svg {
  width: 0.6em;
  height: 0.6em;
  fill: currentColor;
}

.splide__arrow--prev {
  left: 1rem;
}

.splide__arrow--prev svg {
  transform: scaleX(-1);
}

.splide__arrow--next {
  right: 1rem;
}

.splide__pagination {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 1rem 1rem 0;
  list-style: none;
}

.splide__pagination li {
  display: inline-flex;
  align-items: flex-end;
  height: 1.9rem;
  margin: 0;
}

@media screen and (min-width: 750px) {
  .splide__pagination {
    padding-top: 1.5rem;
  }

  .splide__pagination li {
    height: 2rem;
  }
}

.splide__pagination__page {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 18px;
  padding: 6px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.splide__pagination__page::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 5px;
  background: rgb(var(--color-base-text));
  opacity: 0.7;
  transition: transform 200ms linear;
}

.splide__pagination__page.is-active::before {
  transform: scale(1.5);
  opacity: 1;
}

@media screen and (min-width: 750px) {
  .splide--desktop-arrows-outside .splide__arrow--prev {
    left: -4rem;
  }

  .splide--desktop-arrows-outside .splide__arrow--next {
    right: -4rem;
  }
}

/* Testimonial card */
.testimonial-card .multicolumn-card__info {
  padding: 1.25rem 2rem;
}

.testimonial-card__stars {
  margin: 0;
  font-size: 2.2rem;
  line-height: 1.2;
  color: var(--color-stars);
}

.testimonial-card__quotes {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  font-size: 3.5rem;
  color: rgba(var(--color-foreground), var(--alpha-text));
}

.testimonial-card__quotes svg {
  width: 0.55em;
  height: 0.55em;
  fill: currentColor;
}

.testimonial-card .rte p {
  margin: 0;
}

.testimonial-card__author-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0.75rem;
  padding-top: 1rem;
  border-top: 0.1rem solid rgba(var(--color-foreground), 0.08);
}

.testimonial-card__avatar {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  margin-right: 1rem;
  border-radius: 50%;
  overflow: hidden;
}

.testimonial-card__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-card__author {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.1;
}

/* Icon bar ----------------------------------------------------------------- */

.icon-bar__list {
  display: grid;
  grid-template-columns: repeat(var(--columns-mobile, 1), minmax(0, 1fr));
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.icon-bar-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.icon-bar-card__icon {
  padding-top: 2.5rem;
  line-height: 0;
}

.icon-bar-card__icon .material-icon {
  width: 5rem;
  height: 5rem;
}

.icon-bar-card .multicolumn-card__info {
  padding: 1rem 2.5rem 2.5rem;
}

.icon-bar-card h3 {
  margin: 0;
  line-height: calc(1 + 0.5 / var(--font-heading-scale));
}

.icon-bar-card .rte {
  margin-top: 1rem;
}

@media screen and (min-width: 750px) {
  .icon-bar__list {
    grid-template-columns: repeat(var(--columns-desktop, 3), minmax(0, 1fr));
    gap: var(--gap-desktop, 40px);
  }
}

/* FAQ accordion ------------------------------------------------------------ */

.collapsible-content-wrapper-narrow {
  margin: 0 auto;
  padding: 0 2rem;
  max-width: 73.4rem;
}

.collapsible-content__header {
  word-break: break-word;
}

.collapsible-content__heading {
  margin: 0 0 2rem;
}

.accordion {
  margin: 0 0 1.5rem;
  overflow: hidden;
}

.accordion__summary {
  display: flex;
  align-items: center;
  position: relative;
  padding: 1.5rem;
  line-height: 1;
}

.summary__title {
  display: flex;
  align-items: center;
  flex: 1;
}

.summary__title img {
  flex-shrink: 0;
  width: 2.86rem;
  height: auto;
  margin-right: 0.975rem;
  border-radius: 0;
}

.accordion__title {
  display: inline-block;
  max-width: calc(100% - 5rem);
  min-height: 1.6rem;
  margin: 0;
  font-size: calc(var(--font-heading-scale) * 1.4rem);
  word-break: break-word;
}

.accordion .icon-caret {
  position: absolute;
  right: 1.5rem;
  top: calc(50% - 0.45rem);
  width: 1.52rem;
  height: 0.91rem;
  transition: transform var(--duration-default) ease;
}

.accordion details[open] .icon-caret {
  transform: rotate(180deg);
}

.accordion__content {
  padding: 0 1.5rem 1.5rem;
  word-break: break-word;
  overflow-x: auto;
}

.accordion__content a {
  color: currentColor;
}

@media screen and (min-width: 750px) {
  .collapsible-content__heading {
    margin-bottom: 3rem;
  }

  .accordion__summary {
    padding: 2rem;
  }

  .accordion__content {
    padding: 0 2rem 2rem;
  }

  .accordion .icon-caret {
    right: 2rem;
  }
}

/* Contact form ------------------------------------------------------------- */

.contact .title {
  text-align: center;
}

.contact .field-wrapper {
  margin-bottom: 1.5rem;
}

.contact .form__label {
  margin-bottom: 0.6rem;
}

@media screen and (min-width: 750px) {
  .contact .field-wrapper {
    margin-bottom: 2rem;
  }
}

/* Image-only use of "image with text": no empty text box, full media corners. */
.image-with-text--media-only .image-with-text__text-item {
  display: none;
}

.image-with-text.image-with-text--media-only .image-with-text__media,
.image-with-text.image-with-text--media-only .image-with-text__media img {
  border-radius: var(--media-radius);
}

.contact__button {
  margin-top: 0;
}

.contact .form__message {
  margin: 0 0 2rem;
  line-height: 1.4;
}

.contact-from__success-container {
  color: rgb(40, 193, 0);
}

.contact-from__errors-container {
  color: rgb(255, 0, 0);
}

@media screen and (min-width: 750px) {
  .contact__fields {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-column-gap: 2rem;
  }
}

/* Newsletter block (collections page) -------------------------------------- */

.newsletter__wrapper {
  padding-right: 4rem;
  padding-left: 4rem;
}

.newsletter__wrapper > * {
  margin-top: 0;
  margin-bottom: 0;
}

.newsletter__wrapper > * + * {
  margin-top: 2rem;
}

.newsletter__wrapper .newsletter-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 36rem;
  position: relative;
  margin: 2rem auto 0;
}

.newsletter__wrapper .newsletter-form__field-wrapper {
  width: 100%;
}

.newsletter__subheading {
  max-width: 70rem;
  margin-left: auto;
  margin-right: auto;
}

/* Card copy: paragraphs sit flush (line breaks, not margins, space the text). */
.multicolumn-card .rte p {
  margin: 0;
}

/* Keep the last accordion's bottom margin inside the list. */
.collapsible-content__grid {
  display: flow-root;
}

.icon-bar-card .rte strong {
  font-weight: 700;
}

.icon-bar__list {
  margin-bottom: 0.75rem;
}
