/* -----------------------------------------
   SOCIAL CARDS (WPBakery element)
   "What's up on socials": heading, card fan, social links.
----------------------------------------- */

.ccg-social-cards {
  --sc-color: #fff;
  --sc-highlight: #fff;
  --sc-accent-font: inherit;

  width: 100%;
  color: var(--sc-color);
  text-align: center;
  /* Outer cards are cut off instead of causing sideways scrolling */
  overflow-x: clip;
}

.ccg-social-cards.is--light {
  --sc-color: #111112;
  --sc-highlight: #3b3c38;
}

.ccg-social-cards,
.ccg-social-cards *,
.ccg-social-cards *::before,
.ccg-social-cards *::after {
  box-sizing: border-box;
}

.ccg-social-cards .ccg-sc__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 0;
}

/* Badge: circle with the social logos taking turns */
.ccg-social-cards .ccg-sc__badge {
  position: relative;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: -0.25rem;
  border: 2px solid var(--light-fade, rgb(255 255 255 / 15%));
  border-radius: 50%;
  overflow: hidden;
}

.ccg-social-cards.is--light .ccg-sc__badge {
  border-color: rgb(0 0 0 / 15%);
}

.ccg-social-cards .ccg-sc__badge-icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--sc-color);
  opacity: 0;
  transform: translateY(110%);
  /* 3 logos, 1.4s each: rise in, hold, rise out */
  animation: ccg-sc-badge 4.2s cubic-bezier(0.65, 0, 0.2, 1) infinite;
  animation-delay: calc(var(--i, 0) * 1.4s);
}

.ccg-social-cards .ccg-sc__badge-icon svg {
  display: block;
  width: 1.375rem;
  height: 1.375rem;
}

@keyframes ccg-sc-badge {
  0%      { opacity: 0; transform: translateY(110%); }
  8%, 28% { opacity: 1; transform: translateY(0); }
  36%, 100% { opacity: 0; transform: translateY(-110%); }
}

/* Heading */
.ccg-social-cards .ccg-sc__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding: 0;
  font-size: clamp(2.75rem, 4.2vw, 4.5rem);
  line-height: 0.9;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.ccg-social-cards .ccg-sc__title-line {
  display: block;
}

.ccg-social-cards .ccg-sc__title-line.is--accent {
  font-weight: 400;
  font-size: 0.65em;
  line-height: 1.4;
  color: var(--nectar-extra-color-2);
}

/* Hidden until the script has split it into words (no flash of the full heading) */
html.js .ccg-social-cards .ccg-sc__title:not(.is--split) {
  visibility: hidden;
}

/* Same drop-in as Salient's "line reveal by space" split headings:
   each word rises from behind its own mask, staggered */
.ccg-social-cards .ccg-sc__word {
  position: relative;
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  /* room for ascenders/descenders inside the mask without changing the line spacing */
  padding: 0.08em 0.02em;
  margin: -0.08em -0.02em;
}

.ccg-social-cards .ccg-sc__word-inner {
  position: relative;
  display: inline-block;
  transform: translateY(1.3em);
  transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
  transition-delay: calc(var(--w, 0) * 1ms);
}

.ccg-social-cards .ccg-sc__title.is--in .ccg-sc__word-inner {
  transform: none;
}

/* Cards.
   Everything inside the stage is sized in em: one card is 20em wide.
   The stage's font size scales so the whole fan fits the container. */
.ccg-social-cards .ccg-sc__cards {
  width: 100%;
  container-type: inline-size;
}

.ccg-social-cards .ccg-sc__cards-stage {
  --sc-span: 84;
  --sc-span-m: 68;
  position: relative;
  width: 100%;
  font-size: clamp(3px, calc(100cqw / var(--sc-span)), 12px);
  /* card height + hover lift + room for the tilted outer cards */
  height: 52em;
  margin: 0 auto;
  margin-bottom: -25px;
}

.ccg-social-cards .ccg-sc__card {
  position: absolute;
  top: 3em;
  left: 50%;
  width: 23em;
  margin-left: -11.5em;
  aspect-ratio: 4 / 7.25;
  border-radius: 1.5rem;
  overflow: hidden;
  overflow: clip;
  background-color: rgba(127, 127, 127, 0.15);
  transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(var(--s));
  transform-origin: 50% 50%;
  display: block;
  -webkit-user-drag: none;
  /* stops Safari showing square corners while the card animates */
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  isolation: isolate;
}

.ccg-social-cards .ccg-sc__media {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  margin: 0;
  object-fit: cover;
  pointer-events: none;
  border-radius: 0;
}

.ccg-social-cards .ccg-sc__video {
  opacity: 0;
  transition: opacity 0.35s ease;
}

.ccg-social-cards .ccg-sc__card.is--playing .ccg-sc__video,
.ccg-social-cards .ccg-sc__video.is--frame {
  opacity: 1;
}

.ccg-social-cards a.ccg-sc__card:focus-visible {
  outline: 2px solid var(--sc-color);
  outline-offset: 0.5em;
}

/* Narrow containers: drop the two outer cards and size for five.
   The outer two bleed off the edges a little so the cards stay a decent size. */
@container (max-width: 640px) {
  .ccg-social-cards .ccg-sc__cards-stage {
    font-size: clamp(3px, calc(100cqw / (var(--sc-span-m) * 0.82)), 12px);
  }

  .ccg-social-cards .ccg-sc__card.is--outer {
    display: none;
  }
}

/* Text under the cards */
.ccg-social-cards .ccg-sc__intro {
  margin: 0;
  padding: 0;
  color: var(--sc-color);
  font-family: var(--sc-accent-font);
  font-size: 1.45rem;
  line-height: 1.2;
  margin-top: -1rem;
}

body div#ajax-content-wrap a.nectar-button.ccg-sc__btn {
    background: var(--nectar-extra-color-3) !important;
    border-radius: 10000px !important;
    font-weight: 400;
    padding: var(--button-padding);
    line-height: 1 !important;
    font-size: 0.75rem;
}

body div#ajax-content-wrap a.nectar-button.ccg-sc__btn:hover {
    background: #fff !important;
}

.ccg-social-cards .ccg-sc__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media screen and (max-width: 480px) {
  .ccg-social-cards .ccg-sc__links {
    gap: 0.5rem 1.1rem;
  }
}

.ccg-social-cards .ccg-sc__links li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ccg-social-cards .ccg-sc__links li::before {
  display: none;
}

.ccg-social-cards .ccg-sc__link,
.ccg-social-cards .ccg-sc__link:hover,
.ccg-social-cards .ccg-sc__link:focus {
  color: var(--sc-color);
  text-decoration: none;
}

.ccg-social-cards .ccg-sc__link {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}

/* Account buttons (Salient nectar-button, with a logo + handle) */
body div#ajax-content-wrap .ccg-social-cards .ccg-sc__buttons {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.25rem;
  margin: 0rem 0 0;
  padding: 0;
  list-style: none;
  margin-top: -5px;
  width: 100%;
}

.ccg-social-cards .ccg-sc__buttons li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ccg-social-cards .ccg-sc__buttons li::before {
  display: none;
}

.ccg-social-cards .ccg-sc__btn.nectar-button {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
  padding: var(--button-padding, 1.1rem 1.5rem);
  border: var(--button-border, 2px solid);
  border-color: var(--light-fade, rgb(255 255 255 / 15%));
  border-radius: var(--border-radius-value, 1rem);
  background: transparent;
  color: var(--sc-color) !important;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: none;
  text-decoration: none;
  box-shadow: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.ccg-social-cards.is--light .ccg-sc__btn.nectar-button {
  border-color: rgb(0 0 0 / 15%);
}

.ccg-social-cards a.ccg-sc__btn.nectar-button:hover,
.ccg-social-cards a.ccg-sc__btn.nectar-button:focus-visible {
  background: var(--sc-color);
  border-color: var(--sc-color);
  color: var(--sc-bg, #000) !important;
}

.ccg-social-cards.is--light a.ccg-sc__btn.nectar-button:hover,
.ccg-social-cards.is--light a.ccg-sc__btn.nectar-button:focus-visible {
  color: #fff !important;
}

.ccg-social-cards .ccg-sc__btn.is--solid {
  background: var(--sc-color);
  border-color: var(--sc-color);
  color: var(--sc-bg, #000) !important;
}

.ccg-social-cards.is--light .ccg-sc__btn.is--solid {
  color: #fff !important;
}

.ccg-social-cards a.ccg-sc__btn.is--solid:hover,
.ccg-social-cards a.ccg-sc__btn.is--solid:focus-visible {
  opacity: 0.85;
}

.ccg-social-cards .ccg-sc__btn-icon {
  display: inline-flex;
  flex: none;
  width: 1rem;
  height: 1rem;
  margin: -0.5rem 0px;
}

.ccg-social-cards .ccg-sc__btn-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.ccg-social-cards .ccg-sc__btn-text {
  display: inline-block;
}

@media screen and (max-width: 480px) {
  .ccg-social-cards .ccg-sc__buttons {
    gap: 0.5rem;
  }

  .ccg-social-cards .ccg-sc__btn.nectar-button {
    padding: 0.95rem 1.15rem;
    font-size: 0.75rem;
  }
}

/* Wipe-reveal block (added by the script) */
.ccg-social-cards .ccg-sc__reveal {
  position: relative;
  display: inline-block;
}

.ccg-social-cards .ccg-sc__reveal-block {
  position: absolute;
  inset: -0.05em -0.1em;
  background-color: var(--sc-highlight);
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

/* Link hover: letters roll up, a copy rolls in from below */
.ccg-social-cards .ccg-sc__link-text {
  display: inline-flex;
  overflow: hidden;
  line-height: 1.3em;
  height: 1.3em;
  vertical-align: top;
}

.ccg-social-cards .ccg-sc__char {
  display: inline-block;
  white-space: pre;
  text-shadow: 0 1.3em 0 currentColor;
  transition: transform 0.5s cubic-bezier(0.65, 0, 0.2, 1);
  transition-delay: calc(var(--i, 0) * 0.025s);
}

.ccg-social-cards a.ccg-sc__link:hover .ccg-sc__char,
.ccg-social-cards a.ccg-sc__link:focus-visible .ccg-sc__char {
  transform: translateY(-1.3em);
}

@media (prefers-reduced-motion: reduce) {
  .ccg-social-cards .ccg-sc__char,
  .ccg-social-cards .ccg-sc__word-inner {
    transition: none;
  }

  .ccg-social-cards .ccg-sc__word-inner {
    transform: none;
  }

  /* Show just the first logo, no cycling */
  .ccg-social-cards .ccg-sc__badge-icon {
    animation: none;
  }

  .ccg-social-cards .ccg-sc__badge-icon:first-child {
    opacity: 1;
    transform: none;
  }
}


/* 1300 */

@media only screen and (max-width: 1300px) {

.ccg-social-cards .ccg-sc__card {
    aspect-ratio: 4.1 / 7.25;
}

.ccg-social-cards .ccg-sc__cards-stage {
  height: 44.5em;
  margin-bottom: 25px;
}

}

/* 999 */

@media only screen and (max-width: 999px) {
    /* SOCIAL CARDS */
    .ccg-social-cards .ccg-sc__cards {
        max-width: 90vw;
    }
}


/* 479 */

@media only screen and (max-width: 479px) {
  body div#ajax-content-wrap .ccg-social-cards .ccg-sc__buttons {
    max-width: 320px;
    gap: 4px 2.5px;
  }
  .ccg-social-cards .ccg-sc__card {
        border-radius:15px;
  }
  body div#ajax-content-wrap a.nectar-button.ccg-sc__btn {
    padding: 1rem 1.35rem;
    gap: 7.5px;
    font-size: .8rem;
}
  .ccg-social-cards .ccg-sc__intro {font-size: 1.1rem;}
  .ccg-social-cards .ccg-sc__title {
    font-size: 2.35rem;
    line-height: 1;
}
  .ccg-social-cards .ccg-sc__cards {
    margin-top: -0.75rem;
    max-width: 100vw;
}
  .ccg-social-cards .ccg-sc__badge {
  width: 3.25rem;
  height: 3.25rem;
}
  .ccg-social-cards .ccg-sc__badge-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}
}