/*
	Abstracts are helpers, variables and functions
	for scss compliation.
*/
/**==================================================================================================================================
BREAKPOINT
@TODO: remove? What is use case?? either use simple global points or write custom line. why does first breakpoint have to be 0?
 ==================================================================================================================================*/
/**==================================================================================================================================
BREAKPOINT ENDS
==================================================================================================================================*/
span.edit-link {
  display: inline-block;
  background-color: yellow;
  font-weight: 700;
  position: fixed;
  left: 0;
  bottom: 3.125rem;
  transform: translateX(-45px);
  transition: all 0.2s;
}

span.edit-link a {
  display: block;
  padding: 0.9375rem;
}

span.edit-link:hover {
  transform: translateX(0);
}

/*
	Variables for compliation
	NB! Colors should be added to base/config file as css root variable.
*/
/**
 * Block section background colors.
 * Include the background options ACF fields group to use these.
 */
/*
 * makes ul/ol as a dropdown select (normaly in mobile)
 * Structure: div > title > list > li > a
*/
/*
	Variables for legacy dc plugins
*/
section.testimonials {
  --testimonials-notch-gap: 0.625rem;
  --testimonials-bg: var(--color__blue);
  --testimonials-text: var(--color__white);
  margin: var(--spacing-block) 0;
  /* --- Quote card -------------------------------------------------------- */
  /* --- Simple layout ----------------------------------------------------- */
  /* --- Image  ------------------------------------ */
  /* --- Entrance (JS takes over after measure) ------------------------------ */
}

section.testimonials[data-color-scheme=beige] {
  --testimonials-bg: var(--color__beige);
  --testimonials-text: var(--color__black);
}

section.testimonials[data-color-scheme=moss-green] {
  --testimonials-bg: var(--color__moss-green);
  --testimonials-text: var(--color__white);
}

section.testimonials[data-color-scheme=blue] {
  --testimonials-bg: var(--color__blue);
  --testimonials-text: var(--color__white);
}

section.testimonials[data-color-scheme=light-blue] {
  --testimonials-bg: var(--color__light-blue);
  --testimonials-text: var(--color__blue);
}

section.testimonials[data-color-scheme=green-dark] {
  --testimonials-bg: var(--color__green-dark);
  --testimonials-text: var(--color__green-light);
}

section.testimonials .testimonials__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

@media screen and (max-width: 850px) {
  section.testimonials .testimonials__grid {
    grid-template-columns: 1fr;
  }
}
section.testimonials .testimonials__card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4rem;
  overflow: hidden;
  min-height: 48.375rem;
  padding: 3rem;
  background: var(--testimonials-bg);
  color: var(--testimonials-text);
  border-radius: var(--element-border-radius);
}

section.testimonials .testimonials__quote {
  margin: 0;
  max-width: 34ch;
  font-size: clamp(1.75rem, 1.1vw + 1rem, 2.25rem) !important;
  line-height: 1.5;
}

section.testimonials .testimonials__person {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

section.testimonials .testimonials__watermark {
  position: absolute;
  right: -0.5rem;
  bottom: -0.5rem;
  width: 45%;
  min-width: 13.75rem;
  opacity: 0.13;
  pointer-events: none;
}

section.testimonials .testimonials__watermark svg {
  display: block;
  width: 100%;
  height: auto;
}

section.testimonials .testimonials__watermark svg path {
  fill: var(--testimonials-text);
}

section.testimonials .testimonials__simple {
  display: grid;
  grid-template-columns: minmax(13.75rem, 27%) minmax(0, 1fr);
  -moz-column-gap: 3rem;
       column-gap: 3rem;
  align-items: start;
  padding: 2rem 0;
}

section.testimonials .testimonials__simple .testimonials__simple-content {
  grid-column: 2;
}

section.testimonials .testimonials__simple .testimonials__quote {
  max-width: 56.25rem;
  color: var(--color__grey);
  font-size: clamp(1.75rem, 1.1vw + 1rem, 2.25rem);
  line-height: 1.4;
}

section.testimonials .testimonials__simple .testimonials__quote em {
  font-style: italic;
}

section.testimonials .testimonials__simple .testimonials__person {
  gap: 0.125rem;
  margin-top: 2rem;
  color: var(--color__grey);
  line-height: 1.3;
}

section.testimonials .testimonials__simple .testimonials__name {
  font-size: 1rem;
  font-weight: 700;
}

section.testimonials .testimonials__simple .testimonials__occupation {
  font-size: 1.125rem;
}

section.testimonials .testimonials__simple-person {
  display: flex;
  align-items: flex-start;
  gap: 1.75rem;
}

section.testimonials .testimonials__simple-person .testimonials__person {
  margin-top: 0.5rem;
}

section.testimonials .testimonials__avatar {
  flex: 0 0 auto;
  width: 163px;
  height: 163px;
  aspect-ratio: 1;
  border-radius: 50%;
  -o-object-fit: cover;
     object-fit: cover;
}

section.testimonials[data-emphasis-color=moss-green] .testimonials__quote em {
  color: var(--color__moss-green);
}

section.testimonials[data-emphasis-color=blue] .testimonials__quote em {
  color: var(--color__blue);
}

section.testimonials.testimonials--simple[data-color-scheme] > .block-section-wrapper {
  width: 100%;
  max-width: none;
  padding-block: 2rem;
  padding-inline: 5%;
  background: var(--testimonials-bg);
  border-radius: var(--element-border-radius) var(--element-border-radius) 0 0;
}

@media screen and (max-width: 850px) {
  section.testimonials.testimonials--simple[data-color-scheme] > .block-section-wrapper {
    padding-inline: var(--page-gutter);
  }
}
section.testimonials.testimonials--simple[data-color-scheme] .testimonials__quote,
section.testimonials.testimonials--simple[data-color-scheme] .testimonials__person {
  color: var(--testimonials-text);
}

section.testimonials .testimonials__media {
  position: relative;
  min-height: 30rem;
  border-radius: var(--element-border-radius);
  overflow: hidden;
}

section.testimonials .testimonials__media .testimonials__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

@media screen and (max-width: 850px) {
  section.testimonials .testimonials__media .testimonials__image {
    -o-object-position: top;
       object-position: top;
  }
}
section.testimonials .testimonials__media .main-cta.white {
  border: 1px solid var(--color__blue);
}

section.testimonials .testimonials__media .testimonials__notch {
  --r: var(--element-border-radius);
  position: absolute;
  right: 0;
  bottom: 0;
  padding: var(--testimonials-notch-gap) 0 0 var(--testimonials-notch-gap);
  background: var(--color__white);
  border-top-left-radius: var(--r);
}

section.testimonials .testimonials__media .testimonials__notch::before, section.testimonials .testimonials__media .testimonials__notch::after {
  content: "";
  position: absolute;
  width: var(--r);
  height: var(--r);
  background: radial-gradient(var(--r) at top left, rgba(0, 0, 0, 0) 98%, var(--color__white) 100%);
}

section.testimonials .testimonials__media .testimonials__notch::before {
  right: 0;
  bottom: 100%;
}

section.testimonials .testimonials__media .testimonials__notch::after {
  right: 100%;
  bottom: 0;
}

section.testimonials .testimonials__media .image-caption {
  top: 1.25rem;
  bottom: auto;
  right: 1.25rem;
}

@media screen and (max-width: 480px) {
  section.testimonials .testimonials__media .image-caption {
    font-size: 0.75rem;
    padding: 0.3125rem 0.5rem;
    top: 0.625rem;
    right: 0.625rem;
  }
}
section.testimonials .testimonials__button {
  --cta-bg: var(--testimonials-bg);
  --cta-text: var(--testimonials-text);
  --cta-dot: var(--testimonials-text);
  --cta-dot-hover: var(--testimonials-bg);
  --cta-text-hover: var(--testimonials-bg);
  border: 1px solid var(--testimonials-bg);
}

@media (max-width: 65.375em) {
  section.testimonials .testimonials__simple {
    grid-template-columns: 1fr;
    row-gap: 3.875rem;
  }
  section.testimonials .testimonials__simple .testimonials__simple-person {
    order: 2;
  }
  section.testimonials .testimonials__simple .testimonials__simple-content {
    grid-column: 1;
    order: 1;
  }
}
@media screen and (max-width: 850px) {
  section.testimonials .testimonials__simple {
    padding: 1rem 0;
  }
  section.testimonials .testimonials__card {
    gap: 6.375rem;
    min-height: 35rem;
    padding: 2rem;
  }
  section.testimonials .testimonials__media {
    min-height: 22.5rem;
  }
}
section.testimonials.testimonials--anim-fade {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  section.testimonials.testimonials--anim-fade {
    opacity: 1;
  }
}
.acf-block-preview section.testimonials.testimonials--anim-fade {
  opacity: 1;
}
