/* ==========================================================================
   Eletro Paiva — base compartilhada por todas as páginas
   Tokens, tipografia e componentes. Nada específico de segmento aqui:
   um segmento que precise de outra paleta sobrescreve as variáveis de cor
   em assets/css/<segmento>.css ou num bloco <style> da própria página.
   ========================================================================== */

:root {
  /* Cores (nomes de função) */
  --papel: #F4EFE2;
  --cartao: #FFFDF7;
  --tinta: #1E2A1F;
  --tinta-suave: #3F4A3F;
  --primaria: #2E5A33;
  --primaria-escura: #1F3F23;
  --destaque: #EDB920;
  --linha: #D9D1BD;
  --linha-suave: #E6DFCC;

  /* Tipografia */
  --fonte-titulo: "Zilla Slab", Georgia, serif;
  --fonte-texto: "Atkinson Hyperlegible", Verdana, sans-serif;

  /* Medidas */
  --largura-conteudo: 44rem;
  --margem: 20px;
  --raio: 8px;
}

/* --- Base ---------------------------------------------------------------- */

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

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

body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--fonte-texto);
  font-size: 17px;
  line-height: 1.5;
  overflow-wrap: break-word;
}

h1,
h2 {
  margin: 0;
  font-family: var(--fonte-titulo);
  font-weight: 700;
  line-height: 1.15;
  color: var(--primaria);
}

h1 {
  font-size: 32px;
}

h2 {
  font-size: 26px;
  margin-bottom: 20px;
}

p {
  margin: 0;
}

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

a {
  color: var(--primaria);
}

a:hover {
  color: var(--primaria-escura);
}

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

.conteudo {
  max-width: var(--largura-conteudo);
  margin: 0 auto;
  padding: 0 var(--margem);
}

/* --- Seções -------------------------------------------------------------- */

.secao {
  padding: 32px 0;
  border-top: 1px solid var(--linha);
}

.secao--cartao {
  background: var(--cartao);
}

/* --- Faixa do topo ------------------------------------------------------- */

.topo {
  background: var(--destaque);
  color: var(--tinta);
}

.topo .conteudo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
  min-height: 60px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.topo__marca {
  font-family: var(--fonte-titulo);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.topo__descricao {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
}

/* --- Abertura ------------------------------------------------------------ */

.abertura {
  padding: 24px 0 32px;
}

.abertura h1 {
  margin-bottom: 20px;
}

.apresentacao {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.foto-perfil {
  flex: none;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--linha);
}

/* Placeholder enquanto a foto real não chega */
.foto-perfil--vazia {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  text-align: center;
  font-size: 12px;
  line-height: 1.25;
  color: var(--tinta-suave);
}

/* --- Botões -------------------------------------------------------------- */

.botoes {
  display: grid;
  gap: 12px;
}

.botao {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 12px 20px;
  border: 2px solid transparent;
  border-radius: var(--raio);
  font-family: var(--fonte-texto);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.botao:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.icone {
  flex: none;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.botao--principal,
.botao--principal:hover {
  background: var(--primaria);
  color: #fff;
}

.botao--secundario,
.botao--secundario:hover {
  background: var(--cartao);
  border-color: var(--primaria);
  color: var(--primaria);
}

.botao--destaque,
.botao--destaque:hover {
  background: var(--destaque);
  color: var(--tinta);
}

/* --- Lista de serviços --------------------------------------------------- */

.lista-servicos {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lista-servicos li {
  position: relative;
  padding: 14px 0 14px 26px;
  border-bottom: 1px solid var(--linha-suave);
}

.lista-servicos li:first-child {
  padding-top: 0;
}

.lista-servicos li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.lista-servicos li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(14px + 0.75em - 5px);
  width: 10px;
  height: 10px;
  background: var(--destaque);
}

.lista-servicos li:first-child::before {
  top: calc(0.75em - 5px);
}

/* --- Passos -------------------------------------------------------------- */

.passos {
  display: grid;
  gap: 18px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.passos li {
  display: flex;
  align-items: center;
  gap: 14px;
}

.passos__numero {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primaria);
  color: #fff;
  font-family: var(--fonte-titulo);
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
}

/* --- Caixa de preço ------------------------------------------------------ */

.caixa-preco {
  padding: 16px 18px;
  background: var(--cartao);
  border: 1px solid var(--linha);
  border-radius: var(--raio);
}

.caixa-preco p:first-child {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.caixa-preco p + p {
  margin-top: 6px;
  color: var(--tinta-suave);
}

/* --- Grade de fotos ------------------------------------------------------ */

.grade-fotos {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foto-servico {
  margin: 0;
}

.foto-servico img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  background: var(--linha);
}

.foto-servico figcaption {
  margin-top: 10px;
}

.nota-fotos {
  margin-top: 24px;
}

/* Placeholder enquanto a foto real não chega */
.foto-servico--vazia {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  padding: 8px;
  border-radius: 6px;
  background: var(--linha);
  text-align: center;
  color: var(--tinta-suave);
}

/* --- Chamada final ------------------------------------------------------- */

.chamada {
  padding: 36px 0;
  background: var(--primaria);
}

.chamada h2 {
  margin-bottom: 24px;
  color: #fff;
}

/* --- Rodapé -------------------------------------------------------------- */

.rodape {
  padding: 28px 0 40px;
  background: var(--tinta);
  color: var(--linha);
  font-size: 16px;
}

.rodape__nome {
  margin-bottom: 4px;
  font-family: var(--fonte-titulo);
  font-size: 18px;
  font-weight: 700;
  color: var(--destaque);
}

/* --- Desktop ------------------------------------------------------------- */

@media (min-width: 768px) {
  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 30px;
    margin-bottom: 24px;
  }

  .secao {
    padding: 48px 0;
  }

  .abertura {
    padding: 40px 0 48px;
  }

  .abertura h1 {
    margin-bottom: 28px;
  }

  .apresentacao {
    margin-bottom: 28px;
  }

  .abertura .botoes {
    grid-template-columns: 1fr 1fr;
  }

  .grade-fotos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
  }

  .chamada {
    padding: 48px 0;
  }

  .chamada .botoes {
    grid-template-columns: minmax(0, 22rem);
  }
}
