/* ==========================================================================
   ArrumaSite, versão com a pegada do Mahalo Media.
   Estrutura, medidas e animações vêm do site do Mahalo (regras em docs/BRIEF.md).
   Cores e conteúdo são da ArrumaSite. Breakpoints: 991px, 767px e 479px.
   O CSS é desktop primeiro, como a fonte.
   ========================================================================== */

/* Fontes (as mesmas do Mahalo), hospedadas aqui. */
@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 100 900; /* fonte variável: um arquivo cobre todos os pesos */
  font-display: swap;
  src: url("../assets/fonts/work-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Space Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/space-mono-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Space Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/space-mono-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Tokens de tema: a paleta é a do site da ArrumaSite (assets/scss/_root.scss). */
:root {
  --color-bg: #f4f1ea; /* creme: fundo claro */
  --color-bg-soft: #ece7db; /* creme escuro: no lugar do verde-menta do Mahalo */
  --color-ink: #1a1714; /* texto */
  --color-dark: #161310; /* seções e rodapé escuros */
  --color-accent: #e8462d; /* laranja-vermelho: no lugar do roxo do Mahalo */
  --color-accent-deep: #c2371f; /* a mesma cor, escura o bastante para texto sobre creme */
  --ink-soft: #544d44;
  --ink-line: rgba(26, 23, 20, 0.1);
  --on-dark: #f4f1ea;
  --on-dark-soft: rgba(244, 241, 234, 0.66);

  --font-text: "Work Sans", sans-serif;
  --font-mono: "Space Mono", monospace;

  /* Escala de tamanhos usada no Mahalo */
  --text-xs: 0.875rem;
  --text-sm: 1rem;
  --text-md: 1.125rem;
  --text-lg: 1.25rem;
  --text-xl: 1.801875rem;
  --text-2xl: 2.565625rem;
  --text-3xl: 2.88625rem;
  --text-4xl: 3.2475rem;
  --text-5xl: 3.653125rem;

  --container: 940px; /* largura máxima do conteúdo */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 991px) {
  :root {
    --container: 728px;
  }
}

@media (max-width: 479px) {
  :root {
    --container: none;
  }
}

/* Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  background-color: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 20px; /* herdado em todo o texto sem line-height próprio, como no Mahalo */
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
  padding: 0;
  font-size: inherit;
  font-weight: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  vertical-align: middle;
  border: 0;
}

a {
  color: inherit;
}

.container {
  display: flow-root;
  max-width: var(--container);
  margin-inline: auto;
}

/* ==========================================================================
   Cabeçalho fixo: transparente no topo, creme com blur depois de rolar
   (o mesmo comportamento do header do site da ArrumaSite)
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  padding-top: 2rem;
  border-bottom: 1px solid transparent;
  transition:
    padding 0.35s var(--ease),
    background-color 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.site-header.is-scrolled {
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
  /* mais opaco que no site da ArrumaSite (82%), porque aqui o header passa sobre blocos coloridos */
  background-color: color-mix(in srgb, var(--color-bg) 92%, transparent);
  border-bottom-color: var(--ink-line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.site-header__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container);
  margin-inline: auto;
}

.site-header__brand {
  display: block;
  text-decoration: none;
}

.site-header__logo {
  display: block;
  width: clamp(8.5rem, 16vw, 11rem);
  height: auto;
}

.site-nav {
  display: flex;
}

.site-nav__link {
  display: inline-block;
  padding: 20px;
  color: var(--color-accent-deep);
  font-size: var(--text-md);
  line-height: 1px;
  font-weight: 700;
  text-align: right;
  text-decoration: none;
}

.site-nav__link:hover {
  color: rgba(194, 55, 31, 0.8);
}

@media (max-width: 767px) {
  .site-header__brand {
    padding-left: 10px;
  }
}

@media (max-width: 479px) {
  .site-header {
    padding-top: 1rem;
  }

  .site-nav__link {
    padding-inline: 12px;
  }
}

/* ==========================================================================
   Formas de transição entre seções (ondas e ângulos)
   ========================================================================== */
.wave {
  height: 11vw;
  margin-bottom: -1px;
  background-repeat: no-repeat;
  background-position: 50% 100%;
  background-size: cover;
}

.wave--accent {
  position: relative;
  z-index: 1;
  background-image: url("../assets/img/wave-accent.svg");
}

.wave--angles {
  margin-top: -1px;
  margin-bottom: 0;
  background-image: url("../assets/img/angles-accent.svg");
  background-position: 50% 0;
}

.wave--dark {
  background-color: var(--color-bg-soft);
  background-image: url("../assets/img/wave-dark.svg");
}

@media (max-width: 767px) {
  .wave--dark {
    height: 20vw;
  }
}

@media (max-width: 479px) {
  .wave--dark {
    overflow: hidden;
    height: 30vw;
    background-position: 100% 100%;
  }
}

/* ==========================================================================
   Animação guiada por scroll e ponteiro (js/main.js escreve estas variáveis)
   --fx-rotate: rotação em graus   --fx-y / --fx-x: deslocamento em px
   ========================================================================== */
.about__circle,
.process__circle {
  transform: rotate(var(--fx-rotate, 0deg));
}

.about__data-points {
  transform: translate(var(--fx-x, 0px), var(--fx-y, 0px));
}

.promise__triangle,
.work__data-points {
  transform: translateY(var(--fx-y, 0px));
}

.workflow__circle {
  transform: translate(-50%, 0) rotate(var(--fx-rotate, 0deg));
}

/* ==========================================================================
   1. Abertura
   ========================================================================== */
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 85vh;
}

.hero__inner {
  max-width: 80vw;
}

.hero__title {
  width: 66.666666%;
  margin-left: 8.5%;
  font-family: var(--font-mono);
  font-size: 5.5vh;
  line-height: 1em;
  font-weight: 400;
}

.hero__lead {
  width: 66.666666%;
  margin-top: 1.75rem;
  margin-left: 8.5%;
  color: var(--ink-soft);
  font-size: var(--text-lg);
  line-height: 1.45;
}

.hero__cta {
  display: inline-block;
  margin-top: 1.5rem;
  margin-left: 8.5%;
  color: var(--color-accent-deep);
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.hero__cta:hover {
  color: rgba(194, 55, 31, 0.8);
}

@media (max-width: 991px) {
  .hero__title {
    width: 83%;
    font-size: var(--text-5xl);
  }

  .hero__lead {
    width: 83%;
  }
}

@media (max-width: 767px) {
  .hero__title {
    font-size: var(--text-2xl);
    line-height: 1.25em;
  }
}

@media (max-width: 479px) {
  .hero {
    min-height: 0;
    padding-top: 20vh;
    padding-bottom: 20vh;
  }

  .hero__title {
    font-size: var(--text-xl);
  }

  .hero__lead {
    font-size: var(--text-sm);
  }

  .hero__cta {
    font-size: var(--text-md);
  }
}

/* ==========================================================================
   2. Quem somos (bloco laranja)
   ========================================================================== */
.about {
  position: relative;
  overflow: hidden;
  padding-top: 15vh;
  padding-bottom: 15vh;
  background-color: var(--color-accent);
}

.about__title {
  position: relative;
  z-index: 2;
  width: 58.3333%;
  margin-left: 16.6667%;
  padding-bottom: 0.5em;
  padding-left: 0.25em;
  background-color: var(--color-accent);
  color: var(--color-bg);
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  line-height: 1.125em;
  font-weight: 400;
}

.about__circle {
  position: absolute;
  left: 10%;
  top: 20%;
  height: 60%;
}

.about__lead {
  position: relative;
  z-index: 2;
  width: 50%;
  margin-top: 20vh;
  margin-left: 33.3333%;
  padding-top: 0.5em;
  padding-left: 0.25em;
  background-color: var(--color-accent);
  color: var(--color-bg);
  font-size: var(--text-xl);
  line-height: 30px;
  font-weight: 400;
}

.about__data-points {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  height: 100%;
}

@media (max-width: 991px) {
  .about__data-points {
    width: 16.6667%;
  }
}

@media (max-width: 767px) {
  .about__title {
    padding-bottom: 0;
    font-size: var(--text-xl);
    line-height: 1.25em;
  }

  .about__lead {
    margin-top: 5rem;
    /* 24px: tamanho mínimo para texto creme sobre laranja ter contraste suficiente */
    font-size: 1.5rem;
    line-height: 1.25;
  }

  .about__data-points {
    display: none;
  }
}

@media (max-width: 479px) {
  .about__title,
  .about__lead {
    width: 83%;
    margin-left: 8.5%;
  }
}

/* ==========================================================================
   3. A promessa (bom, rápido e em conta)
   ========================================================================== */
.promise {
  position: relative;
  margin-top: 15vh;
  margin-bottom: 15vh;
}

.promise__inner {
  position: relative;
}

.promise__title {
  width: 58.3333%;
  margin-left: 8.3333%;
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  line-height: 1.125em;
  font-weight: 400;
}

.promise__subtitle {
  width: 33.3333%;
  margin-top: 3rem;
  margin-left: 8.3333%;
  font-size: var(--text-xl);
  line-height: 1.125em;
  font-weight: 500;
}

.promise__triangle {
  position: absolute;
  top: 15vh;
  right: 0;
  display: block;
  width: 25%;
}

@media (max-width: 991px) {
  .promise__subtitle {
    width: 66.667%;
    margin-left: 16.6667%;
  }

  .promise__triangle {
    margin-top: 10vw;
  }
}

@media (max-width: 767px) {
  .promise__title {
    font-size: var(--text-xl);
  }

  .promise__subtitle {
    font-size: var(--text-lg);
  }
}

@media (max-width: 479px) {
  .promise__title {
    width: 83%;
  }

  .promise__subtitle {
    width: 83%;
    margin-left: 8.5%;
  }

  .promise__triangle {
    display: none;
  }
}

/* ==========================================================================
   4. Processo (bloco laranja)
   ========================================================================== */
.process {
  position: relative;
  padding-top: 15vh;
  padding-bottom: 15vh;
  background-color: var(--color-accent);
}

.process__circle {
  position: absolute;
  left: 0;
  top: 10%;
  height: 60%;
  margin-left: 16.6667%;
}

.process__title {
  position: relative;
  z-index: 2;
  width: 58.3333%;
  margin-left: 33.3333%;
  padding-bottom: 1em;
  padding-left: 0.5em;
  background-color: var(--color-accent);
  color: var(--color-bg);
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  line-height: 1.125em;
  font-weight: 400;
}

@media (max-width: 991px) {
  .process__circle {
    margin-left: 8.333%;
  }

  .process__title {
    width: 75%;
    margin-left: 16.6667%;
  }
}

@media (max-width: 767px) {
  .process {
    padding-bottom: 10vh;
  }

  .process__title {
    font-size: var(--text-xl);
  }
}

@media (max-width: 479px) {
  .process {
    overflow: hidden;
  }

  .process__circle {
    height: 90%;
    max-width: none;
    margin-left: -8.333%;
  }

  .process__title {
    width: 83%;
    margin-left: 8.5%;
    padding-top: 0.25em;
  }
}

/* Divisória diagonal laranja para escuro (e a versão invertida, escuro para creme escuro) */
.divider {
  background-color: var(--color-accent);
}

.divider__shape {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: -1px;
}

.divider--flip {
  background-color: transparent;
}

.divider--flip .divider__shape {
  margin-top: -1px;
  margin-bottom: 0;
  background-color: var(--color-bg-soft);
  transform: rotate(180deg);
}

@media (max-width: 479px) {
  .divider {
    overflow: hidden;
  }

  .divider:not(.divider--flip) .divider__shape {
    width: 200vw;
    max-width: none;
    margin-left: -50vw;
  }
}

/* ==========================================================================
   5. Como funciona
   ========================================================================== */
.workflow {
  position: relative;
  display: block;
  height: 90vh;
  max-height: 80rem;
  padding-top: 10vh;
  padding-bottom: 10vh;
  background-color: var(--color-dark);
}

.workflow__title {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  transform: translate(-50%, -50%);
  color: var(--on-dark);
  font-size: var(--text-3xl);
  line-height: 1em;
  font-weight: 400;
  text-align: center;
}

.workflow__circle {
  position: absolute;
  left: 50%;
  top: 15%;
  height: 70%;
}

.workflow__step {
  position: absolute;
  display: flex;
  align-items: center;
}

.workflow__step--one {
  left: 10%;
  top: 5%;
  flex-direction: row-reverse;
  text-align: left;
}

.workflow__step--two {
  top: 5%;
  right: 10vw;
}

.workflow__step--three {
  left: 10px;
  bottom: 5%;
  flex-direction: row-reverse;
}

.workflow__step--four {
  right: 10px;
  bottom: 5%;
}

.workflow__icon {
  height: 5rem;
}

.workflow__label {
  margin-inline: 1.5rem;
  color: var(--on-dark);
  font-size: var(--text-2xl);
  line-height: 1.1; /* "Medimos resultados" ocupa duas linhas */
}

/* Em telas de 992 a 1280px o anel do círculo chega perto do passo 1 (o rótulo "Conversamos" é longo).
   O passo anda para a esquerda: no máximo em 992px e nada em 1280px, sem degrau no limite. */
@media (min-width: 992px) and (max-width: 1280px) {
  .workflow__step--one {
    left: max(10px, calc(10vw - 0.4 * (1280px - 100vw)));
  }
}

/* Entrada: cada passo desliza da esquerda uma única vez ao aparecer na tela */
.js [data-reveal] {
  opacity: 0;
  transform: translateX(-100px);
}

.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
  transition:
    opacity 1s cubic-bezier(0.165, 0.84, 0.44, 1) 0.2s,
    transform 1s cubic-bezier(0.165, 0.84, 0.44, 1) 0.2s;
}

@media (max-width: 991px) {
  .workflow__circle {
    top: 20%;
    height: 60%;
  }

  .workflow__step--one {
    left: 0;
  }

  .workflow__step--two {
    right: 0;
  }

  .workflow__step--three {
    left: 0;
    flex-direction: row-reverse;
  }

  .workflow__step--four {
    right: 0;
    flex-direction: row;
  }
}

@media (max-width: 767px) {
  .workflow__title {
    font-size: var(--text-xl);
  }

  .workflow__icon {
    height: 3rem;
  }

  .workflow__label {
    font-size: var(--text-xl);
  }
}

@media (max-width: 479px) {
  .workflow {
    height: auto;
    max-height: none;
    padding: 0 0 5vh 8.5%;
  }

  .workflow__title {
    position: static;
    margin-bottom: 1em;
    transform: none;
    font-size: var(--text-2xl);
    line-height: 1.25em;
    text-align: left;
  }

  .workflow__circle {
    display: none;
  }

  .workflow__step {
    position: static;
    margin-bottom: 2em;
    flex-direction: row;
  }

  .workflow__step--two {
    margin-left: 1em;
  }

  .workflow__step--three {
    margin-left: 2em;
  }

  .workflow__step--four {
    margin-bottom: 0;
    margin-left: 3em;
  }
}

/* ==========================================================================
   6. Projetos
   ========================================================================== */
.work {
  position: relative;
  padding-top: 10vh;
  padding-bottom: 10vh;
  background-color: var(--color-bg-soft);
}

.work__data-points {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
}

/* O conteúdo fica acima da linha de dados */
.work .container {
  position: relative;
  z-index: 1;
}

.work__title {
  width: 66.6667%;
  margin-left: 25%;
  font-family: var(--font-mono);
  font-size: var(--text-4xl);
  line-height: 1.125em;
  font-weight: 400;
}

.work__lead {
  width: 50%;
  margin-top: 3rem;
  margin-bottom: 4rem;
  margin-left: 33.3333%;
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 24px;
  font-weight: 400;
}

/* Três colunas, mesma lógica de grade do Mahalo (margem negativa de 10px) */
.projects {
  display: flex;
  flex-wrap: wrap;
  margin-inline: -10px;
}

.project {
  flex: 0 0 33.3333%;
  padding-inline: 10px;
  margin-bottom: 3rem;
}

.project--1 {
  --thumb-clip: polygon(0 0, 100% 2%, 96% 100%, 2% 95%);
}

.project--2 {
  --thumb-clip: polygon(0 2%, 100% 0, 100% 96%, 4% 100%);
}

.project--3 {
  --thumb-clip: polygon(1% 0, 99% 2%, 100% 95%, 0 100%);
}

.project--4 {
  --thumb-clip: polygon(0 0, 100% 1%, 97% 100%, 1% 94%);
}

.project--5 {
  --thumb-clip: polygon(0 2%, 100% 0, 95% 96%, 3% 100%);
}

.project--6 {
  --thumb-clip: polygon(0 0, 98% 2%, 100% 97%, 3% 100%);
}

.project__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.project__thumb {
  width: 90%;
  height: auto;
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.1);
  clip-path: var(--thumb-clip);
}

/* Recorte irregular, com os cantos de cima quase intactos para não cortar o logo dos sites.
   No hover (ou foco) ele se abre num retângulo e volta de uma vez ao sair, como no Mahalo. */
.project__link:hover .project__thumb,
.project__link:focus-visible .project__thumb {
  animation: thumb-unclip 0.3s ease-out forwards;
}

@keyframes thumb-unclip {
  from {
    clip-path: var(--thumb-clip);
  }

  to {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
}

.project__name {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  line-height: 1.125em;
  font-weight: 700;
  text-align: center;
  transition: color 0.2s var(--ease);
}

.project__link:hover .project__name {
  color: var(--color-accent-deep);
}

.project__cat {
  max-width: 90%;
  margin-top: 0.5rem;
  font-size: 1em;
  line-height: 1.25em;
  text-align: center;
}

/* Linha "E muito mais" depois dos projetos, alinhada com o texto de abertura */
.work__more {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1.25rem;
  margin-top: 1rem;
  margin-left: 33.3333%;
}

.work__more-title {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  line-height: 1.125em;
}

.work__more-text {
  color: var(--ink-soft);
}

/* Tinta com sublinhado laranja: o laranja escuro sozinho não tem contraste suficiente sobre o creme escuro */
.work__more-cta {
  font-family: var(--font-mono);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.work__more-cta:hover {
  text-decoration-color: var(--color-ink);
}

@media (max-width: 991px) {
  .work__title {
    width: 83.34%;
    margin-left: 8.333%;
  }

  .work__lead,
  .work__more {
    margin-left: 16.667%;
  }

  .work__data-points {
    display: none;
  }
}

@media (max-width: 767px) {
  .work__title {
    font-size: var(--text-xl);
  }

  .projects {
    flex-direction: column;
    margin-inline: 0;
  }

  .project {
    flex: 0 0 auto;
    width: 100%;
  }

  .project__thumb {
    width: 70%;
  }
}

@media (max-width: 479px) {
  .work__lead {
    width: 83%;
    margin-left: 8.5%;
    font-size: var(--text-lg);
  }

  .work__more {
    width: 83%;
    margin-left: 8.5%;
  }

  .project__thumb {
    width: 88%;
  }
}

/* ==========================================================================
   Rodapé (com o chamado para o contato)
   ========================================================================== */
.footer {
  padding-top: 6vh;
  padding-bottom: 2rem;
  background-color: var(--color-dark);
  color: var(--on-dark);
}

.footer__cta {
  width: 66.6667%;
  margin-left: 16.6667%;
  padding-bottom: 8vh;
}

.footer__eyebrow {
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer__title {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: var(--text-4xl);
  line-height: 1.125em;
  font-weight: 400;
}

.footer__text {
  max-width: 48ch;
  margin-top: 1.5rem;
  color: var(--on-dark-soft);
  font-size: var(--text-md);
  line-height: 1.5;
}

.footer__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
  margin-top: 2rem;
}

/* Botão com o mesmo recorte irregular das prévias */
.footer__button {
  display: inline-block;
  padding: 1rem 1.6rem;
  background-color: var(--color-accent);
  color: var(--color-ink);
  font-size: var(--text-md);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  clip-path: polygon(0 0, 100% 5%, 98% 100%, 1% 95%);
  transition: background-color 0.2s var(--ease);
}

.footer__button:hover {
  background-color: var(--color-bg);
}

/* Botão secundário: creme com texto escuro; no hover os dois trocam de cor */
.footer__button--light {
  background-color: var(--color-bg);
  clip-path: polygon(1% 5%, 100% 0, 99% 95%, 0 100%);
}

.footer__button--light:hover {
  background-color: var(--color-accent);
}

.footer__row {
  display: flex;
  align-items: flex-start;
  margin-inline: -10px;
  padding: 1.5rem 10px 0;
  border-top: 1px solid rgba(244, 241, 234, 0.14);
}

.footer__col {
  flex: 0 0 25%;
  padding-inline: 10px;
}

.footer__logo {
  display: block;
  width: 100%;
  max-width: 13.75rem;
  height: auto;
}

.footer__link {
  color: var(--on-dark);
  font-size: var(--text-md);
  text-decoration: none;
}

.footer__link:hover {
  color: var(--color-accent);
}

/* Coluna das redes: encostada na direita, itens alinhados à direita, e flex evita que as margens se fundam */
.footer__col--social {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-left: auto;
}

.social {
  display: flex;
  margin-bottom: 1rem;
}

.social__icon {
  display: block;
  width: auto;
  height: 1.5rem;
}

.social a {
  display: block;
}

.social a:hover {
  opacity: 0.7;
}

.footer__small {
  color: var(--on-dark-soft);
  font-size: var(--text-xs);
  text-align: right;
}

.footer__small + .footer__small {
  margin-top: 0.25rem;
}

@media (max-width: 991px) {
  .footer__cta {
    width: 83.34%;
    margin-left: 8.333%;
  }

  .footer__link {
    font-size: var(--text-sm);
  }
}

@media (max-width: 767px) {
  .footer__title {
    font-size: var(--text-xl);
  }

  .footer__row {
    flex-direction: column;
    margin-inline: 0;
    padding-inline: 0;
  }

  .footer__col {
    display: flex;
    flex: none;
    justify-content: center;
    width: 100%;
    margin-bottom: 1em;
  }

  .footer__col--social {
    flex-direction: column;
    align-items: center;
    margin-left: 0;
  }

  .footer__small {
    text-align: center;
  }
}

@media (max-width: 479px) {
  .footer__cta {
    width: 83%;
    margin-left: 8.5%;
  }
}
