/* ==========================================================================
   AVRA - testimonials, news and footer (part 3)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Testimonials
   Desktop grid: image 392 | rule @552 | quote 816 @696 | arrows @1640
   -------------------------------------------------------------------------- */

.avra-testimonials { position: relative; background: var(--avra-stone); }
/* The section supplies the 96/88 offsets; the bordered box is the 466px band
   between the two sand rules, exactly as in the Figma frame. */
.avra-testimonials__inner {
  position: relative;
  padding-block: 0;
  border-top: 1px solid var(--avra-rule-sand);
  border-bottom: 1px solid var(--avra-rule-sand);
}
.avra-testimonials__inner > * { min-height: 464px; }

.avra-testimonials__row { display: flex; align-items: flex-start; position: relative; }
.avra-testimonials__aside { flex: 0 0 392px; width: 392px; padding-top: 40px; }
.avra-testimonials__img {
  display: block;
  width: 392px;
  height: 386px;
  opacity: 0;
  transition: opacity .45s ease;
}
.avra-testimonials__img:not(.is-active) { position: absolute; pointer-events: none; }
.avra-testimonials__img.is-active { position: relative; opacity: 1; }
.avra-testimonials__aside img { width: 392px; height: 386px; object-fit: cover; display: block; }

/* vertical hairline sits 40px right of the image, full 466px of the panel */
.avra-testimonials__rule {
  flex: 0 0 1px;
  width: 1px;
  height: 466px;
  background: var(--avra-rule-sand);
  margin-left: 40px;
  margin-top: 0;
}

.avra-testimonials__vp {
  flex: 1 1 auto;
  min-width: 0;
  margin-left: 144px;
  overflow: hidden;
}
.avra-testimonials__track { display: flex; transition: transform .5s cubic-bezier(.4, 0, .2, 1); }
.avra-testimonials__item { flex: 0 0 100%; padding-top: 56px; padding-right: 128px; }
.avra-testimonials__mark {
  position: absolute;
  left: 480px;
  top: 56px;
  width: 56px;
  height: 42px;
  display: block;
  margin: 0;
  z-index: 1;
}
.avra-testimonials__mark svg { width: 56px; height: 42px; display: block; }
.avra-testimonials__quote {
  max-width: 816px;
  margin: 0;
  font-family: var(--avra-body);
  font-size: 18px;
  font-weight: 350;
  line-height: 28px;
  letter-spacing: .18px;
  color: var(--avra-grey);
}
.avra-testimonials__quote p { margin: 0 0 28px; }
.avra-testimonials__quote p:last-child { margin-bottom: 0; }
.avra-testimonials__author { margin-top: 42px; display: flex; flex-direction: column; gap: 4px; }
.avra-testimonials__name {
  margin: 0;
  font-family: var(--avra-display);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .32px;
  color: var(--avra-black);
}
.avra-testimonials__date {
  margin: 0;
  font-family: var(--avra-body);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .48px;
  text-transform: uppercase;
  color: var(--avra-grey);
}
.avra-testimonials__nav { position: absolute; top: 56px; right: 56px; }

@media (max-width: 1024px) {
  .avra-testimonials__inner { padding-block: 40px 48px; }
  .avra-testimonials__inner > * { min-height: 0; }
  .avra-testimonials__row { flex-direction: column; }
  .avra-testimonials__aside { flex: none; width: 100%; padding-top: 32px; }
  .avra-testimonials__aside img,
  .avra-testimonials__img { width: 100%; height: 282px; }
  .avra-testimonials__rule { display: none; }
  .avra-testimonials__vp { margin-left: 0; width: 100%; }
  .avra-testimonials__item { padding-top: 32px; padding-right: 0; }
  .avra-testimonials__mark, .avra-testimonials__mark svg { width: 43px; height: 32px; }
  .avra-testimonials__mark { margin-bottom: 24px; }
  .avra-testimonials__quote { font-size: 16px; line-height: 24px; letter-spacing: 0; }
  .avra-testimonials__quote p { margin-bottom: 24px; }
  .avra-testimonials__author { margin-top: 40px; }
  .avra-testimonials__nav { position: static; margin-top: 30px; }
}

/* --------------------------------------------------------------------------
   News & insights
   -------------------------------------------------------------------------- */

.avra-news { display: flex; gap: 48px; width: 100%; align-items: stretch; }
.avra-news__lead { flex: 0 0 384px; width: 384px; display: flex; flex-direction: column; }
.avra-news__heading {
  margin: 0;
  max-width: 320px;
  font-family: var(--avra-display);
  font-size: 32px;
  font-weight: 400;
  line-height: 36px;
  letter-spacing: -.32px;
  color: #fff;
  opacity: .8;
}
.avra-news__lead .avra-arrows { margin-top: auto; padding-top: 0; }

.avra-news__vp {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}
.avra-news__vp::-webkit-scrollbar { display: none; }
.avra-news__track { display: flex; gap: 48px; width: max-content; }
.avra-news__card {
  flex: 0 0 384px;
  width: 384px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  text-decoration: none;
}
.avra-news__figure { width: 100%; height: 368px; overflow: hidden; }
.avra-news__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .8s cubic-bezier(.2, .6, .2, 1);
}
.avra-news__card:hover .avra-news__figure img { transform: scale(1.04); }
.avra-news__meta { display: flex; flex-direction: column; gap: 16px; }
.avra-news__title {
  margin: 0;
  font-family: var(--avra-display);
  font-size: 18px;
  font-weight: 350;
  line-height: 1.4;
  letter-spacing: .36px;
  color: #fff;
  opacity: .8;
}
.avra-news__date {
  margin: 0;
  font-family: var(--avra-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .56px;
  text-transform: uppercase;
  color: #fff;
  opacity: .4;
}

@media (hover: hover) and (pointer: fine) { .avra-news__vp { cursor: grab; } }
.avra-news__vp.is-dragging { cursor: grabbing; scroll-behavior: auto; }
.avra-news__vp.is-dragging * { user-select: none; }
.avra-news__vp.is-dragging img { pointer-events: none; }

@media (max-width: 1024px) {
  .avra-news { flex-direction: column; gap: 24px; }
  .avra-news__lead { flex: none; width: 100%; }
  .avra-news__heading { max-width: none; letter-spacing: -.64px; }
  .avra-news__lead .avra-arrows { display: none; }
  .avra-news__vp { width: 100%; }
  .avra-news__track { gap: 24px; }
  .avra-news__card { flex: 0 0 calc(100vw - (var(--avra-gutter) * 2)); width: calc(100vw - (var(--avra-gutter) * 2)); gap: 24px; }
  .avra-news__figure { height: 280px; }
  .avra-news > .avra-arrows { display: flex; margin-top: 32px; }
}
.avra-news > .avra-arrows { display: none; }

/* --------------------------------------------------------------------------
   Social icon row
   -------------------------------------------------------------------------- */

.avra-socials { display: flex; align-items: center; gap: 20px; }
.avra-socials a { display: inline-flex; width: 18px; height: 18px; align-items: center; justify-content: center; transition: opacity .2s ease; }
.avra-socials a:hover { opacity: .6; }
.avra-socials svg { display: block; width: 18px; height: auto; }
.avra-socials svg path { fill: var(--avra-black); }

@media (max-width: 1024px) {
  .avra-socials { gap: 32px; justify-content: center; width: 100%; }
  .avra-socials a, .avra-socials svg { width: 22px; }
  .avra-socials a { height: 22px; }
}
