/* Squadra Brasil — Blog and privacy pages */

.page-content {
  background: var(--paper);
}

.content-hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(350px, 25vw, 480px);
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--white);
  background: #202020;
}

.content-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 50% -20%, rgba(0, 186, 238, .2), transparent 55%);
  pointer-events: none;
}

.content-hero__shape {
  position: absolute;
  z-index: -2;
  top: 50%;
  left: 50%;
  width: min(920px, 72vw);
  max-width: none;
  opacity: .42;
  translate: -50% -50%;
  animation: content-shape-spin 34s linear infinite;
}

.content-hero__copy {
  width: min(1000px, calc(100% - 48px));
  padding: 70px 0 46px;
  text-align: center;
}

.content-hero__copy h1 {
  margin: 0;
  color: var(--pink);
  font-family: var(--font-display);
  font-size: clamp(4.2rem, 8.2vw, 9.2rem);
  font-weight: 600;
  line-height: .82;
  text-transform: uppercase;
}

.content-hero__copy p {
  width: min(680px, 100%);
  margin: 26px auto 0;
  color: rgba(255, 255, 255, .86);
  font-size: clamp(.94rem, 1.15vw, 1.2rem);
  line-height: 1.65;
}

.content-hero__arrows {
  position: absolute;
  top: calc(50% - 118px);
  left: calc(50% - 180px);
  scale: .72;
}

.content-hero__dots {
  position: absolute;
  top: calc(50% + 78px);
  left: 50%;
  display: flex;
  gap: 9px;
  translate: -50% 0;
}

.content-hero__dots i {
  width: 7px;
  height: 7px;
  background: var(--white);
  border-radius: 50%;
  animation: content-dot-chase 1.7s ease-in-out infinite;
}

.content-hero__dots i:nth-child(2) { animation-delay: .12s; }
.content-hero__dots i:nth-child(3) { animation-delay: .24s; }
.content-hero__dots i:nth-child(4) { animation-delay: .36s; }

.content-hero--compact .content-hero__copy h1 {
  font-size: clamp(3.6rem, 7vw, 7.8rem);
}

.blog-feed,
.privacy-content {
  position: relative;
  overflow: hidden;
  background-color: var(--paper);
}

.privacy-content {
  background-image: radial-gradient(circle, rgba(19, 35, 176, .085) 1px, transparent 1.15px);
  background-size: 12px 12px;
}

.blog-feed__inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
  padding: clamp(88px, 8vw, 150px) 0 clamp(110px, 10vw, 190px);
}

.blog-feed__header {
  width: min(780px, 100%);
  margin: 0 auto clamp(50px, 6vw, 86px);
  text-align: center;
}

.blog-feed__header > span {
  color: var(--pink);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.blog-feed__header h2 {
  margin: 14px 0 12px;
  color: var(--blue);
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 5.2rem);
  font-weight: 600;
  line-height: .95;
  text-transform: uppercase;
}

.blog-feed__empty {
  margin: -24px auto 0;
  max-width: 34rem;
  color: var(--blue);
  font-size: 1.05rem;
  line-height: 1.5;
  text-align: center;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}

.blog-card {
  min-width: 0;
  overflow: hidden;
  display: block;
  background: #fff;
  border: 1px solid rgba(19, 35, 176, .08);
  border-radius: 18px;
  box-shadow: 0 22px 60px rgba(27, 30, 91, .09);
  transition: border-color .28s ease, box-shadow .28s ease, transform .28s ease;
}

.blog-card__link {
  height: 100%;
  display: grid;
  grid-template-rows: 300px 1fr;
  color: inherit;
}

.blog-card:hover {
  border-color: rgba(19, 35, 176, .18);
  box-shadow: 0 26px 68px rgba(27, 30, 91, .13);
  transform: translateY(-4px);
}

.blog-card:has(.blog-card__link:focus-visible) {
  outline: 3px solid var(--cyan);
  outline-offset: 5px;
}

.blog-card--featured {
  grid-column: 1 / -1;
}

.blog-card--featured .blog-card__link {
  grid-template-columns: 1.12fr .88fr;
  grid-template-rows: minmax(410px, auto);
}

.blog-card__media {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #ececf4;
}

.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--media-hover-duration) var(--media-hover-ease);
}

.blog-card__link:hover .blog-card__media img,
.blog-card__link:focus-visible .blog-card__media img {
  transform: scale(var(--media-hover-scale));
}

.blog-card__media > span {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 8px 13px;
  color: var(--blue);
  background: var(--pink);
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.blog-card__media > span b {
  display: inline-block;
  margin-left: 4px;
  transition: transform .2s ease;
}

.blog-card__link:hover .blog-card__media > span b,
.blog-card__link:focus-visible .blog-card__media > span b {
  transform: translateX(4px);
}

.blog-card__copy {
  padding: clamp(28px, 3.5vw, 48px);
  align-self: center;
}

.blog-card__copy small {
  color: var(--pink);
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.blog-card__copy h2 {
  margin: 12px 0 14px;
  color: var(--blue);
  font-size: clamp(1.3rem, 2vw, 2rem);
  line-height: 1.2;
}

.blog-card--featured .blog-card__copy h2 {
  font-size: clamp(1.9rem, 3.2vw, 3.2rem);
}

.blog-card__copy p {
  margin: 0;
  color: #5b5b69;
  line-height: 1.7;
}

/* Blog article ----------------------------------------------------------- */

.blog-post-hero {
  min-height: clamp(430px, 31vw, 600px);
}

.blog-post-hero .portfolio-page-hero__copy {
  width: min(1240px, calc(100% - 72px));
}

.blog-post-hero h1 {
  margin-inline: auto;
  font-size: clamp(3.4rem, 6.2vw, 7.3rem);
  line-height: .86;
}

.blog-post-hero .portfolio-page-hero__arrows {
  top: clamp(76px, 22%, 126px);
  left: calc(50% - min(210px, 24vw));
}

.blog-post-hero .portfolio-page-hero__dots {
  top: auto;
  bottom: clamp(54px, 9%, 78px);
}

.blog-article {
  position: relative;
  overflow: hidden;
  background: var(--paper);
}

.blog-article__inner {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
  padding: clamp(44px, 4vw, 72px) 0 clamp(100px, 9vw, 170px);
}

.blog-article__back {
  display: inline-flex;
  margin-bottom: clamp(48px, 5vw, 82px);
  color: var(--blue);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: color .18s ease, transform .18s ease;
}

.blog-article__back:hover,
.blog-article__back:focus-visible {
  color: var(--pink);
  transform: translateX(-4px);
}

.blog-article__introduction {
  width: min(850px, 100%);
  margin: 0 auto clamp(42px, 5vw, 70px);
  text-align: center;
}

.blog-article__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 12px;
  color: var(--pink);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.blog-article__introduction > p {
  margin: 22px 0 0;
  color: #343445;
  font-size: clamp(1.12rem, 1.8vw, 1.42rem);
  line-height: 1.7;
}

.blog-article__cover {
  width: 100%;
  aspect-ratio: 16 / 8.5;
  margin: 0;
  overflow: hidden;
  background: #ececf4;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(27, 30, 91, .13);
}

.blog-article__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-article__gallery {
  margin-top: clamp(28px, 4vw, 48px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 18px;
}

.blog-article__gallery figure {
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  background: #ececf4;
  border-radius: 15px;
  box-shadow: 0 16px 42px rgba(27, 30, 91, .1);
}

.blog-article__gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-article__body {
  width: min(790px, 100%);
  margin: clamp(62px, 7vw, 110px) auto 0;
  padding: clamp(34px, 5vw, 62px);
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(19, 35, 176, .08);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(27, 30, 91, .1);
}

.blog-article__lead {
  margin: 0 0 54px;
  color: #343445;
  font-size: clamp(1.12rem, 1.55vw, 1.3rem);
  font-weight: 500;
  line-height: 1.8;
}

.blog-article__body section + section {
  margin-top: 46px;
}

.blog-article__body h2 {
  margin: 0 0 17px;
  color: var(--blue);
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}

.blog-article__body p,
.blog-article__body li {
  color: #555565;
  line-height: 1.82;
}

.blog-article__body p {
  margin: 0;
}

.blog-article__body p + p {
  margin-top: 14px;
}

.blog-article__body ul {
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  list-style: none;
}

.blog-article__body li {
  position: relative;
  padding-left: 28px;
}

.blog-article__body li::before {
  content: "";
  position: absolute;
  top: .55em;
  left: 2px;
  width: 12px;
  height: 7px;
  border-bottom: 3px solid var(--pink);
  border-left: 3px solid var(--pink);
  rotate: -45deg;
}

.blog-article__body blockquote {
  margin: 54px 0 0;
  padding: 30px clamp(24px, 4vw, 42px);
  color: var(--blue);
  background: rgba(226, 98, 160, .16);
  border-left: 5px solid var(--pink);
  border-radius: 0 12px 12px 0;
  font-size: clamp(1.08rem, 1.7vw, 1.34rem);
  font-weight: 800;
  line-height: 1.6;
}

.blog-related {
  margin-top: clamp(90px, 9vw, 150px);
}

.blog-related__heading {
  margin-bottom: clamp(34px, 4vw, 54px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.blog-related__heading h2 {
  grid-column: 2;
  margin: 0;
  color: var(--blue);
  font-family: var(--font-display);
  font-size: clamp(3rem, 5.2vw, 5.4rem);
  font-weight: 600;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.blog-related__controls {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.blog-related__controls[hidden],
.blog-related__pagination[hidden] {
  display: none;
}

.blog-related__control {
  width: 46px;
  height: 46px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  color: var(--blue);
  background: #fff;
  border: 1px solid rgba(19, 35, 176, .18);
  border-radius: 50%;
  box-shadow: 0 10px 28px rgba(27, 30, 91, .1);
  cursor: pointer;
  transition: color .22s ease, background-color .22s ease, border-color .22s ease, transform .22s ease;
}

.blog-related__control span {
  font-size: 1.25rem;
  line-height: 1;
  transform: translateY(-1px);
}

.blog-related__control:hover,
.blog-related__control:focus-visible {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
  transform: translateY(-2px);
}

.blog-related__control:focus-visible {
  outline: 3px solid rgba(0, 186, 238, .35);
  outline-offset: 3px;
}

.blog-related__control:disabled {
  opacity: .34;
  cursor: default;
  transform: none;
}

.blog-related__viewport {
  margin: -8px -6px 0;
  padding: 8px 6px 30px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: inline mandatory;
  scroll-padding-inline: 6px;
  scrollbar-width: none;
}

.blog-related__viewport::-webkit-scrollbar {
  display: none;
}

.blog-related__viewport:focus-visible {
  border-radius: 18px;
  outline: 3px solid rgba(0, 186, 238, .35);
  outline-offset: 4px;
}

.blog-related__track {
  display: flex;
  gap: 24px;
}

.blog-related-card {
  flex: 0 0 calc((100% - 48px) / 3);
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: inherit;
  background: #fff;
  border: 1px solid rgba(19, 35, 176, .08);
  border-radius: 15px;
  box-shadow: 0 18px 46px rgba(27, 30, 91, .09);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  transition: transform .25s ease, box-shadow .25s ease;
}

.blog-related-card:hover,
.blog-related-card:focus-visible {
  box-shadow: 0 24px 56px rgba(27, 30, 91, .14);
  transform: translateY(-4px);
}

.blog-related-card__media {
  height: 190px;
  overflow: hidden;
  display: block;
}

.blog-related-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--media-hover-duration) var(--media-hover-ease);
}

.blog-related-card:hover .blog-related-card__media img,
.blog-related-card:focus-visible .blog-related-card__media img {
  transform: scale(var(--media-hover-scale));
}

.blog-related-card__copy {
  flex: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.blog-related-card__copy small {
  color: var(--pink);
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.blog-related-card__copy strong {
  margin-top: 10px;
  color: var(--blue);
  font-size: 1rem;
  line-height: 1.4;
}

.blog-related-card__copy em {
  margin-top: auto;
  padding-top: 20px;
  color: var(--blue);
  font-size: .72rem;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.blog-related__pagination {
  min-height: 18px;
  margin-top: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
}

.blog-related__pagination button {
  width: 9px;
  height: 9px;
  padding: 0;
  background: rgba(19, 35, 176, .22);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: width .22s ease, background-color .22s ease, border-radius .22s ease;
}

.blog-related__pagination button:hover,
.blog-related__pagination button:focus-visible {
  background: var(--pink);
  outline: none;
}

.blog-related__pagination button[aria-current="true"] {
  width: 28px;
  background: var(--pink);
  border-radius: 999px;
}

.content-contact-cta {
  padding: clamp(76px, 7vw, 120px) 24px;
  color: var(--white);
  text-align: center;
  background-color: var(--pink);
  background-image: radial-gradient(circle, rgba(19, 35, 176, .1) 1px, transparent 1.15px);
  background-size: 12px 12px;
}

.content-contact-cta > div {
  width: min(760px, 100%);
  margin-inline: auto;
}

.content-contact-cta h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 5.2vw, 5.5rem);
  font-weight: 600;
  line-height: .95;
  text-transform: uppercase;
}

.content-contact-cta p {
  margin: 18px auto 28px;
  line-height: 1.65;
}

.content-contact-cta a,
.privacy-article__back {
  min-height: 48px;
  padding: 13px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  background: var(--white);
  border-radius: 5px;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  transition: transform .2s ease, box-shadow .2s ease;
}

.content-contact-cta a:hover,
.content-contact-cta a:focus-visible,
.privacy-article__back:hover,
.privacy-article__back:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(19, 35, 176, .18);
}

.privacy-content {
  padding: clamp(72px, 8vw, 140px) 0;
}

.privacy-page-hero h1 {
  font-size: clamp(3.7rem, 6.4vw, 7rem);
  line-height: .86;
}

.privacy-article {
  width: min(900px, calc(100% - 48px));
  margin-inline: auto;
  padding: clamp(34px, 6vw, 76px);
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(19, 35, 176, .08);
  border-radius: 18px;
  box-shadow: 0 26px 76px rgba(27, 30, 91, .1);
}

.privacy-article__tagline {
  margin: 0 0 14px;
  color: var(--blue);
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  line-height: 1.05;
  text-transform: uppercase;
}

.privacy-article__updated {
  margin: 0 0 26px;
  color: var(--pink);
  font-size: .86rem;
}

.privacy-article__intro {
  margin: 0 0 48px;
  color: #353548;
  font-size: clamp(1.08rem, 1.6vw, 1.3rem);
  line-height: 1.75;
}

.privacy-article section + section {
  margin-top: 38px;
}

.privacy-article h2 {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.25;
}

.privacy-article p,
.privacy-article li {
  color: #555565;
  line-height: 1.8;
}

.privacy-article p {
  margin: 0;
}

.privacy-article p + p {
  margin-top: 12px;
}

.privacy-article a:not(.privacy-article__back) {
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.privacy-article__contact {
  padding: 26px;
  background: rgba(0, 186, 238, .09);
  border-left: 4px solid var(--cyan);
  border-radius: 0 10px 10px 0;
}

.privacy-article__references ul {
  margin: 0;
  padding-left: 20px;
}

.privacy-article__back {
  margin-top: 50px;
  color: var(--white);
  background: var(--blue);
}

@keyframes content-shape-spin {
  to { rotate: 360deg; }
}

@keyframes content-dot-chase {
  0%, 68%, 100% { opacity: .28; transform: translateY(-3px) scale(.78); }
  30%, 44% { opacity: 1; transform: translateY(2px) scale(1); }
}

@media (max-width: 980px) {
  .blog-related-card {
    flex-basis: calc((100% - 20px) / 2);
  }

  .blog-related__track {
    gap: 20px;
  }
}

@media (max-width: 760px) {
  .content-hero {
    min-height: 350px;
  }

  .content-hero__copy {
    padding-top: 58px;
  }

  .content-hero__shape {
    width: 820px;
  }

  .content-hero__arrows {
    top: calc(50% - 96px);
    left: calc(50% - 135px);
    scale: .58;
  }

  .content-hero__dots {
    top: calc(50% + 72px);
  }

  .blog-grid,
  .blog-card--featured .blog-card__link {
    grid-template-columns: 1fr;
  }

  .blog-card__link,
  .blog-card--featured .blog-card__link {
    grid-column: auto;
    grid-template-rows: 240px auto;
  }

  .blog-post-hero {
    min-height: 430px;
  }

  .blog-post-hero .portfolio-page-hero__copy {
    width: calc(100% - 32px);
  }

  .blog-post-hero h1 {
    font-size: clamp(2.9rem, 12vw, 5rem);
    line-height: .9;
  }

  .blog-post-hero .portfolio-page-hero__arrows {
    top: 54px;
    left: calc(50% - 118px);
  }

  .blog-post-hero .portfolio-page-hero__dots {
    bottom: 48px;
  }

  .blog-article__inner {
    width: min(100% - 32px, 1120px);
  }

  .blog-article__cover {
    aspect-ratio: 4 / 3;
  }

  .blog-article__body {
    padding: 30px 24px;
  }

  .blog-related__heading {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 22px;
  }

  .blog-related__heading h2,
  .blog-related__controls {
    grid-column: 1;
  }

  .blog-related__controls {
    justify-self: center;
  }

  .blog-related__viewport {
    margin-inline: -16px;
    padding-inline: 16px;
    scroll-padding-inline: 16px;
  }

  .blog-related__track {
    gap: 16px;
  }

  .blog-related-card {
    flex-basis: min(86%, 360px);
  }

  .blog-related-card__media {
    height: 190px;
  }

  .privacy-article,
  .blog-feed__inner {
    width: min(100% - 32px, 1180px);
  }

  .privacy-page-hero h1 {
    font-size: clamp(2.75rem, 12vw, 4.2rem);
    line-height: .88;
  }
}

@media (prefers-reduced-motion: reduce) {
  .content-hero__shape,
  .content-hero__dots i {
    animation: none;
  }

  .blog-related__viewport {
    scroll-behavior: auto;
  }
}
