/* ==========================================================================
   GUSTAVO RODRIGUES DA SILVA — site pessoal
   Paleta: laranja + amarelo, com tinta escura e um azul de contraste.
   ========================================================================== */

:root {
  /* cores */
  --areia: #FBF3E4;
  --areia-linha: #E7DBC3;
  --tinta: #221810;
  --tinta-suave: #372A20;
  --laranja: #F4602A;
  --laranja-escuro: #BC4316; /* versão escurecida para texto em fundo claro (AA) */
  --amarelo: #F7B733;
  --azul: #1E4E5F;
  --texto-claro-suave: #D9C9B4;
  --texto-escuro-suave: #6B5D4F;

  /* tipografia */
  --fonte-display: "Bricolage Grotesque", system-ui, sans-serif;
  --fonte-corpo: "Instrument Sans", system-ui, sans-serif;
  --fonte-mono: "IBM Plex Mono", ui-monospace, monospace;

  /* escala e ritmo */
  --raio: 18px;
  --largura-max: 1140px;
  --sombra: 0 20px 45px -25px rgba(34, 24, 16, 0.45);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--areia);
  color: var(--tinta);
  font-family: var(--fonte-corpo);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--fonte-display);
  font-weight: 700;
  line-height: 1.08;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }

a { color: inherit; }

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.pular-conteudo {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--tinta);
  color: var(--areia);
  padding: 12px 18px;
  z-index: 100;
  border-radius: 0 0 8px 0;
}
.pular-conteudo:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid var(--laranja);
  outline-offset: 3px;
}

/* ============================== EYEBROW/ETIQUETA ============================== */

.etiqueta {
  font-family: var(--fonte-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--laranja-escuro);
  margin: 0 0 1rem;
}
.etiqueta--clara { color: var(--amarelo); }
.etiqueta--contato { color: var(--tinta); }

/* ============================== HEADER ============================== */

.cabecalho {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 243, 228, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--areia-linha);
}

.cabecalho__linha {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.marca {
  font-family: var(--fonte-display);
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--tinta);
}
.marca__ponto { color: var(--laranja-escuro); }

.nav-lista {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-lista a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--tinta);
}
.nav-lista a:hover { color: var(--laranja-escuro); }

.nav-cta {
  background: var(--tinta);
  color: var(--areia) !important;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--laranja-escuro); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--tinta);
  border-radius: 2px;
}

/* ============================== HERO ============================== */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--tinta);
  color: var(--areia);
  padding: 7rem 0 6rem;
}

.hero__sinal {
  position: absolute;
  top: 50%;
  right: -8%;
  transform: translateY(-50%);
  width: min(700px, 60vw);
  opacity: 0.9;
  pointer-events: none;
}
.hero__sinal svg { width: 100%; height: 100%; }

.anel {
  fill: none;
  stroke-width: 1.5;
}
.anel--1 { stroke: var(--amarelo); opacity: 0.9; }
.anel--2 { stroke: var(--laranja); opacity: 0.6; }
.anel--3 { stroke: var(--azul); opacity: 0.35; }
.ponto { fill: var(--amarelo); }

@media (prefers-reduced-motion: no-preference) {
  .anel--1 { animation: pulsar 4.5s ease-in-out infinite; }
  .anel--2 { animation: pulsar 4.5s ease-in-out infinite 0.6s; }
  .anel--3 { animation: pulsar 4.5s ease-in-out infinite 1.2s; }
}
@keyframes pulsar {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.06); opacity: 0.5; }
}

.hero__conteudo {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.hero__titulo {
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  color: var(--areia);
}

.hero__texto {
  font-size: 1.15rem;
  max-width: 52ch;
  color: var(--texto-claro-suave);
}

.hero__chamada {
  font-family: var(--fonte-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--amarelo);
  margin: -0.4rem 0 1.25rem;
}

.secao__subtitulo {
  font-family: var(--fonte-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--laranja-escuro);
  margin: -0.35rem 0 1.5rem;
}
.secao__subtitulo--claro { color: var(--amarelo); }
.secao__subtitulo--contato { color: var(--tinta); }

.hero__acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* ============================== BOTÕES ============================== */

.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.9rem 1.75rem;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}
.botao--principal {
  background: var(--laranja);
  color: var(--tinta);
}
.botao--principal:hover {
  background: var(--amarelo);
  transform: translateY(-2px);
}
.botao--fantasma {
  border-color: var(--areia-linha);
  color: var(--areia);
}
.botao--fantasma:hover {
  border-color: var(--amarelo);
  color: var(--amarelo);
}
.botao--fantasma-claro {
  border-color: var(--tinta);
  color: var(--tinta);
}
.botao--fantasma-claro:hover {
  background: var(--tinta);
  border-color: var(--tinta);
  color: var(--areia);
}

/* ============================== SEÇÕES GERAIS ============================== */

.secao { padding: 6rem 0; }
.secao--clara { background: var(--areia); }
.secao--escura { background: var(--tinta); color: var(--areia); }

.secao__titulo {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  max-width: 18ch;
}
.secao__titulo--claro { color: var(--areia); }
.secao__titulo--contato { color: var(--tinta); }

.secao__intro {
  max-width: 54ch;
  color: var(--texto-escuro-suave);
  font-size: 1.05rem;
}

/* ============================== SOBRE ============================== */

.secao__grade--sobre {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 4rem;
  align-items: center;
}

.sobre__foto-wrap {
  position: relative;
  max-width: 380px;
}

.sobre__anel {
  position: absolute;
  inset: -22px;
  border: 2px dashed var(--laranja);
  border-radius: 28px;
  opacity: 0.55;
  z-index: 0;
}

.sobre__foto {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 5 / 5.1;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: var(--sombra);
}

.sobre__texto p { color: var(--tinta); }
.sobre__texto p:first-child { font-size: 1.15rem; font-weight: 500; }

/* ============================== SERVIÇOS ============================== */

.grade-servicos {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.cartao-servico {
  background: var(--tinta-suave);
  border: 1px solid rgba(247, 183, 51, 0.18);
  border-radius: var(--raio);
  padding: 2rem;
}

.cartao-servico__tag {
  display: inline-block;
  font-family: var(--fonte-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tinta);
  background: var(--amarelo);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.cartao-servico h3 {
  color: var(--areia);
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}

.cartao-servico p {
  color: var(--texto-claro-suave);
  margin: 0;
}

.acordeon {
  margin-top: 1.25rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(247, 183, 51, 0.22);
}

.acordeon summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-family: var(--fonte-mono);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--amarelo);
}
.acordeon summary::-webkit-details-marker { display: none; }
.acordeon summary::after {
  content: "+";
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
}
.acordeon[open] summary::after { content: "\2212"; }

.acordeon ul {
  margin: 0.9rem 0 0;
  padding-left: 1.1rem;
  color: var(--texto-claro-suave);
}
.acordeon li {
  font-size: 0.93rem;
  margin-bottom: 0.45rem;
}
.acordeon li:last-child { margin-bottom: 0; }

/* ============================== CLIENTES ============================== */

.grade-clientes {
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.logo-cliente {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--areia-linha);
  border-radius: var(--raio);
}

.logo-cliente img {
  max-height: 48px;
  width: auto;
  object-fit: contain;
}

.logo-cliente__nome {
  font-family: var(--fonte-mono);
  font-size: 0.95rem;
  text-align: center;
  color: var(--texto-escuro-suave);
  letter-spacing: 0.02em;
}

/* ============================== MÉTODO ============================== */

.lista-metodo {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 2rem;
}

.lista-metodo li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1.5rem;
  align-items: start;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--areia-linha);
}
.lista-metodo li:last-child { border-bottom: none; padding-bottom: 0; }

.lista-metodo__numero {
  font-family: var(--fonte-mono);
  font-size: 1.6rem;
  color: var(--laranja-escuro);
}

.lista-metodo h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}
.lista-metodo p {
  color: var(--texto-escuro-suave);
  margin: 0;
  max-width: 60ch;
}

/* ============================== CONTATO ============================== */

.secao--contato {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--laranja) 0%, var(--amarelo) 100%);
  color: var(--tinta);
  text-align: center;
}

.hero__sinal--contato {
  right: auto;
  left: 50%;
  top: 0;
  transform: translate(-50%, -30%);
  opacity: 0.18;
}
.hero__sinal--contato .anel { stroke: var(--tinta); }
.hero__sinal--contato .ponto { fill: var(--tinta); }

.contato__conteudo {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.contato__texto {
  font-size: 1.1rem;
  max-width: 46ch;
  margin: 0 auto 2rem;
}

.contato__acoes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.contato__linkedin {
  display: inline-block;
  margin-top: 2rem;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid var(--tinta);
}

/* ============================== FOOTER ============================== */

.rodape {
  background: var(--tinta);
  color: var(--texto-claro-suave);
  padding: 2rem 0;
  font-size: 0.9rem;
}
.rodape__linha {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.rodape a { text-decoration: none; }
.rodape a:hover { color: var(--amarelo); }

/* ============================== REVEAL ============================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].em-vista {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .anel--1, .anel--2, .anel--3 { animation: none; }
}

/* ============================== RESPONSIVO ============================== */

@media (max-width: 860px) {
  .secao__grade--sobre { grid-template-columns: 1fr; gap: 2.5rem; }
  .sobre__foto-wrap { max-width: 280px; margin: 0 auto; }
  .grade-servicos { grid-template-columns: 1fr; }
  .hero__sinal { width: 80vw; right: -20%; opacity: 0.5; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-lista {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--areia);
    border-bottom: 1px solid var(--areia-linha);
    padding: 1rem 24px 1.5rem;
    gap: 1rem;
    display: none;
  }
  .nav-lista.aberto { display: flex; }
  .hero { padding: 5rem 0 4rem; }
  .secao { padding: 4rem 0; }
  .lista-metodo li { grid-template-columns: 56px 1fr; }
}
