/* =========================================================
   Rian Dâmaso — site profissional
   CSS puro. Sem frameworks.
   ========================================================= */

:root {
  --fundo: #f3f2ee;
  --superficie: #ffffff;
  --texto: #171717;
  --texto-secundario: #686863;
  --borda: #d8d7d1;
  --destaque: #353530;
  --muted: oklch(0.55 0.007 95);

  --fonte: "Manrope", system-ui, -apple-system, sans-serif;
  --fonte-serif: "Instrument Serif", Georgia, serif;

  --largura: 72rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--fundo);
  color: var(--texto);
  font-family: var(--fonte);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}

.label {
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

::selection {
  background: var(--texto);
  color: var(--fundo);
}

.container {
  max-width: var(--largura);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.faixa-clara {
  background: var(--superficie);
  border-top: 1px solid var(--borda);
}

.bloco {
  padding: 6rem 1.5rem;
}
.bloco--contato {
  padding-block: 7rem;
}

/* ---------- Utilitários de texto ---------- */
.texto-secundario {
  color: var(--texto-secundario);
}
.texto-pequeno {
  font-size: 0.875rem;
}
.texto-grande {
  font-size: 1.125rem;
}
.link-forte {
  font-weight: 600;
  font-size: 0.9375rem;
}

/* ---------- Cabeçalho ---------- */
.cabecalho {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(243, 242, 238, 0.82);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.3s ease,
    background 0.3s ease;
}
.cabecalho.is-scrolled {
  border-bottom-color: var(--borda);
}

.cabecalho__linha {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.25rem;
}
.marca {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.menu {
  display: none;
  gap: 2rem;
}
.menu a {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--texto-secundario);
  transition: color 0.25s ease;
}
.menu a:hover {
  color: var(--texto);
}
.menu-mobile {
  position: relative;
  display: flex;
  align-items: center;
}
.menu-mobile__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.menu-mobile__hamburger {
  display: block;
  width: 1.25rem;
  height: 1px;
  background: currentColor;
  position: relative;
}
.menu-mobile__hamburger::before,
.menu-mobile__hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
}
.menu-mobile__hamburger::before {
  top: -0.35rem;
}
.menu-mobile__hamburger::after {
  top: 0.35rem;
}

.menu-mobile__painel {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--fundo);
  border: 1px solid var(--borda);
  padding: 1rem;
  min-width: 10rem;
  flex-direction: column;
  gap: 0.5rem;
}
.menu-mobile__painel a {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--texto);
}

.menu-mobile.is-open .menu-mobile__painel {
  display: flex;
}

@media (min-width: 640px) {
  .menu {
    display: flex;
  }
  .menu-mobile {
    display: none;
  }
}

/* ---------- Marcador editorial de seção ---------- */
.marcador {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--texto-secundario);
}
.marcador::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--borda);
}

/* ---------- Hero ---------- */
.hero {
  padding-top: 9rem;
  padding-bottom: 6rem;
}
@media (min-width: 640px) {
  .hero {
    padding-top: 11rem;
  }
}

.hero__grid {
  display: grid;
  gap: 3rem;
  position: relative;
  width: 100%;
}
@media (min-width: 1000px) {
  .hero__grid {
    grid-template-columns: 7fr 5fr;
    align-items: end;
  }
}

.hero h1 {
  font-size: clamp(1.75rem, 8vw, 6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.hero h1 em {
  font-family: var(--fonte-serif);
  font-weight: 400;
  font-style: italic;
  color: var(--texto-secundario);
  letter-spacing: -0.01em;
}

.hero__texto {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
@media (min-width: 1000px) {
  .hero__texto {
    /* display: flex; */
    /* flex-direction: column; */
    /* justify-content: flex-end; */
    /* align-items: flex-end; */
    position: absolute;
    right: 0px;
    width: 25rem;
  }
}

.hero__texto p {
  max-width: 36rem;
  line-height: 1.7;
}

.hero__tags__wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 740px) {
  .hero__tags__wrapper {
    flex-direction: row;
  }
}

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--borda);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--texto-secundario);
}

/* ---------- Títulos de seção ---------- */
.titulo-secao {
  margin-top: 2rem;
  max-width: 40rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.titulo-secao em,
.titulo-sobre em,
.titulo-contato em {
  font-family: var(--fonte-serif);
  font-weight: 400;
  font-style: italic;
}

/* ---------- O problema ---------- */
.problemas {
  display: grid;
  gap: 3rem;
  margin-top: 3.5rem;
}

.problema {
  border-bottom: 1px solid var(--borda);
  padding-bottom: 1.25rem;
  max-width: 36rem;
  display: flex;
  justify-content: center;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 640px) {
  .problema {
    width: 60%;
  }
  .problema:nth-child(odd) {
    justify-self: start;
  }
  .problema:nth-child(even) {
    justify-self: end;
  }
}
.problema__pergunta {
  font-size: clamp(1.25rem, 1.5vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.problema p + p {
  /* margin-top: 0.5rem; */
}

/* ---------- Serviços ---------- */
.servicos {
  display: grid;
  gap: 4rem;
  margin-top: 3.5rem;
}
@media (min-width: 1024px) {
  .servicos {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  .servico--deslocado {
    /* margin-top: 6rem; */
  }
}

.servicos img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.servico__cabecalho {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-top: 2rem;
}
.servico__cabecalho h3 {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.numero-serif {
  font-family: var(--fonte-serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--texto-secundario);
}

.servico__resumo {
  margin-top: 0.75rem;
  max-width: 28rem;
}

.lista {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--borda);
  font-size: 0.875rem;
}
.lista li {
  padding-block: 0.25rem;
}
.lista li::before {
  content: "—";
  color: var(--texto-secundario);
  margin-right: 0.75rem;
}

/* ---------- Trabalhos ---------- */
.trabalhos {
  display: grid;
  gap: 2.5rem;
  margin-top: 3.5rem;
}
@media (min-width: 640px) {
  .trabalhos {
    grid-template-columns: 1fr 1fr;
  }
  .trabalho--deslocado {
    margin-top: 4rem;
  }
}

.proporcao-4-3 {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}
.proporcao-4-5 {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  width: 100%;
}
@media (min-width: 640px) {
  .proporcao-4-5 {
    aspect-ratio: 4 / 5;
  }
}
.proporcao-3-4 {
  /* aspect-ratio: 3 / 4; */
  object-fit: cover;
  width: 100%;
  max-width: 500px;
}

.trabalho__cabecalho {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
}
.trabalho__cabecalho h3 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.etiqueta {
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--texto-secundario);
}
.trabalhos p {
  margin-top: 0.5rem;
}

/* ---------- Processo ---------- */
.processo {
  display: grid;
  margin-top: 3.5rem;
}
@media (min-width: 768px) {
  .processo {
    grid-template-columns: repeat(5, 1fr);
  }
}

.etapa {
  border-top: 1px solid var(--borda);
  padding: 1.5rem 0 2.5rem;
}
@media (min-width: 768px) {
  .etapa {
    padding: 1.5rem 1.5rem 0 0;
  }
  .etapa + .etapa {
    border-left: 1px solid var(--borda);
    padding-left: 1.5rem;
  }
}
.numero-grande {
  font-size: 3rem;
  line-height: 1;
}
.etapa h3 {
  margin-top: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}
.etapa p {
  margin-top: 0.5rem;
}

/* ---------- Sobre ---------- */
.sobre {
  display: grid;
  gap: 3rem;
}
.sobre > .marcador {
  grid-column: 1 / -1;
}

.titulo-sobre {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
}
.titulo-sobre em {
  color: var(--texto-secundario);
}

.sobre__coluna-imagem {
  display: none;
}
.sobre__coluna-imagem {
  display: none;
}

@media (min-width: 970px) and (max-width: 1139px) {
  .sobre {
    grid-template-columns: 1fr;
  }
  .sobre__coluna-imagem {
    display: block;
    grid-column: 1;
    grid-row: 1;
  }
  .sobre__coluna-texto {
    grid-column: 1;
    grid-row: 2;
  }
}

@media (min-width: 1140px) {
  .sobre {
    grid-template-columns: 6fr 0fr 6fr;
  }
  .sobre__coluna-texto {
    grid-column: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .sobre__coluna-imagem {
    display: block;
  }
}

/* ---------- Contato ---------- */
.contato {
  margin-top: 3.5rem;
  max-width: 48rem;
}
.titulo-contato {
  font-size: clamp(2.25rem, 7vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.contato__acoes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--destaque);
  color: var(--fundo);
  padding: 1rem 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.25s ease;
}
.botao:hover {
  background: var(--texto);
}

/* ---------- Rodapé ---------- */
.rodape {
  border-top: 1px solid var(--borda);
}
.rodape__linha {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-block: 2.5rem;
  font-size: 0.875rem;
  color: var(--texto-secundario);
}
.rodape__nome {
  font-weight: 600;
  color: var(--texto);
}
@media (min-width: 640px) {
  .rodape__linha {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ---------- Microinterações ---------- */
.link-line {
  position: relative;
}
.link-line::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.link-line:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.img-zoom {
  overflow: hidden;
}
.img-zoom img {
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.img-zoom:hover img {
  transform: scale(1.04);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .img-zoom img,
  .link-line::after {
    transition: none;
  }
}
