/* =========================================================
   Dona Clemes Salgados – estilos
   Edite as cores e a fonte aqui em cima e o site todo muda.
   ========================================================= */

:root {
  --amarelo: #e5b21e;
  --creme: #ede5d0;
  --vermelho: #b1261a;
  --vermelho-social: #bb3231;
  --verde: #45b855;
  --texto: #000;
  --cinza: #4d4d4d;
  --link: #cc3366;

  --fonte: "Montserrat", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --largura: 1140px;
}

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--fonte);
  font-size: 16px;
  line-height: 1.5;
  color: var(--texto);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; line-height: 1; }
p { margin: 0 0 .9em; }
p:last-child { margin-bottom: 0; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: var(--link); }
:focus-visible { outline: 3px solid var(--vermelho); outline-offset: 3px; }

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

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

/* Títulos e subtítulos das seções */
.titulo {
  font-size: clamp(34px, 4.6vw, 49px);
  font-weight: 800;
  line-height: 1;
  color: var(--vermelho);
  margin-bottom: 20px;
}
.titulo--centro { text-align: center; }

.subtitulo {
  text-align: center;
  font-size: clamp(24px, 3.4vw, 40px);
  line-height: 1.05;
  margin-bottom: 0;
}

/* Botão verde */
.botao {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 9px;
  background: var(--verde);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: filter .2s;
}
.botao:hover { filter: brightness(1.08); }
.botao--grande { font-size: 24px; font-weight: 500; }

/* Fundo creme com desenho de linhas bem suave */
.fundo-padrao { position: relative; background-color: var(--creme); isolation: isolate; }
.fundo-padrao::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: url("../img/padrao-fundo.webp") center;
  opacity: .09;
}

/* =========================================================
   TOPO
   ========================================================= */
.topo {
  position: relative;
  z-index: 20;           /* mantém o menu aberto por cima do banner */
  background: rgba(229, 178, 30, .83);
  isolation: isolate;
}
.topo::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: url("../img/padrao-pequeno.webp");
  opacity: .5;
}

.topo__grade {
  display: grid;
  grid-template-columns: 25fr 38fr 26.5fr 10.5fr;
  align-items: center;
  min-height: 94px;
}

.topo__logo { justify-self: center; }
.topo__logo img { width: 111px; }

.menu ul { display: flex; justify-content: center; }
.menu a {
  display: block;
  padding: 13px 20px;
  font-size: 15px;
  font-weight: 500;
  color: #000;
  text-decoration: none;
}
.menu a:hover, .menu a:focus-visible { color: var(--vermelho-social); }

.topo__cta { text-align: center; }

.redes { display: flex; justify-content: center; gap: 5px; }
.redes a {
  display: grid; place-items: center;
  width: 28px; height: 28px;
  border-radius: 10%;
  background: var(--vermelho-social);
}
.redes svg { width: 14px; height: 14px; fill: #fff; }
.redes a:hover { opacity: .9; }

/* Botão de menu (só aparece em telas menores) */
.menu-botao {
  display: none;
  width: 36px; height: 36px;
  margin: 0 auto;
  border: 0; border-radius: 3px;
  background: rgba(0, 0, 0, .06);
  cursor: pointer;
}
.menu-botao__icone,
.menu-botao__icone::before,
.menu-botao__icone::after {
  display: block; width: 16px; height: 2px; margin: 0 auto;
  background: #333; position: relative; transition: transform .2s, background .2s;
}
.menu-botao__icone::before, .menu-botao__icone::after { content: ""; position: absolute; left: 0; }
.menu-botao__icone::before { top: -5px; }
.menu-botao__icone::after { top: 5px; }
.menu-aberto .menu-botao__icone { background: transparent; }
.menu-aberto .menu-botao__icone::before { transform: translateY(5px) rotate(45deg); }
.menu-aberto .menu-botao__icone::after { transform: translateY(-5px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 598px;
  padding: 60px 0 90px;
  background: #000 url("../img/banner-topo.webp") center / cover no-repeat;
  color: #fff;
  text-align: center;
  isolation: isolate;
  overflow: hidden;
}
.hero::before {           /* escurece a foto para o texto aparecer */
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: rgba(0, 0, 0, .5);
}
.hero h1 {
  font-size: clamp(40px, 6vw, 67px);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 20px;
}
.hero p { font-size: clamp(18px, 2.2vw, 23px); }

.onda {
  position: absolute;
  left: 50%; bottom: -1px;
  width: calc(117% + 1.3px);
  height: 63px;
  transform: translateX(-50%) rotate(180deg);
  fill: var(--creme);
  max-width: none;
}

/* =========================================================
   SOBRE
   ========================================================= */
.sobre { background: var(--creme); }

.duas-colunas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 20px;
}
.sobre__imagem img { width: 70%; margin: 10px auto 0; }
.sobre__texto { padding: 85px 10px 40px; }

/* =========================================================
   VENDA SEM FABRICAR
   ========================================================= */
.revenda { background: var(--amarelo); padding: 95px 0 40px; }

.passos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 40px;
}
.passo { padding: 10px; }

/* Os três ícones têm tamanhos/ajustes diferentes, como no original */
.passo__icone { width: 47%; margin: 0 auto -55px; position: relative; z-index: 1; }
.passo__icone--assado { width: 67%; margin-top: -32px; margin-bottom: -93px; }
.passo__icone--esfiha { width: 63%; margin-top: -32px; margin-bottom: -77px; }

.passo__card {
  margin: 15px;
  padding: 34px;
  border-radius: 28px;
  background: #fff;
  text-align: center;
  color: var(--cinza);
}
.passo__numero { display: block; line-height: 24px; }
.passo__card h3 {
  margin: 8px 0 16px;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--vermelho);
}
.passo__card p { font-size: 15px; line-height: 1.6; }

/* =========================================================
   POR QUE ESCOLHER
   ========================================================= */
.diferenciais { padding: 95px 0 40px; }

.diferenciais__grade {
  display: grid;
  grid-template-columns: 41fr 59fr;
  align-items: start;
  margin-top: 0;
}
.lista-selos { padding: 87px 10px 0; }
.lista-selos li {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  min-height: 58px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--amarelo);
}
.lista-selos img { width: 55px; flex: none; }
.diferenciais__foto { width: 100%; padding: 10px; }

/* =========================================================
   CHAMADA REVENDEDOR
   ========================================================= */
.chamada {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 363px;
  padding: 40px 0;
  background: #000;
  color: #fff;
  isolation: isolate;
}
.chamada::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: url("../img/fundo-revendedor.webp") center no-repeat;
  opacity: .57;
}
.chamada__grade {
  display: grid;
  grid-template-columns: 61fr 39fr;
  align-items: center;
  gap: 20px;
}
.chamada__grade > div:first-child { padding: 0 10px; }
.chamada h2 { font-size: 32px; font-weight: 800; line-height: 1.2; margin-bottom: 20px; }
.chamada p { font-size: 22px; line-height: 30px; max-width: 30em; }
.chamada__acao { text-align: center; }

/* =========================================================
   NOSSOS SALGADOS – carrossel
   ========================================================= */
.produtos { padding: 95px 0 70px; }

.carrossel {
  --por-tela: 3;           /* quantas fotos aparecem por vez */
  --espaco: 12px;
  position: relative;
  margin-top: 30px;
  padding: 0 10px;
}
.carrossel__trilho {
  display: flex;
  gap: var(--espaco);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.carrossel__trilho::-webkit-scrollbar { display: none; }
.carrossel__trilho li {
  flex: 0 0 calc((100% - (var(--por-tela) - 1) * var(--espaco)) / var(--por-tela));
  scroll-snap-align: start;
}
.carrossel__trilho img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, .59);
  border-radius: 19px;
}
.carrossel__seta {
  position: absolute; top: 50%;
  display: grid; place-items: center;
  width: 36px; height: 36px;
  padding: 0; border: 0;
  background: none;
  cursor: pointer;
  transform: translateY(-50%);
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, .5));
}
.carrossel__seta svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2.5; }
.carrossel__seta--ant { left: 14px; }
.carrossel__seta--prox { right: 14px; }

/* =========================================================
   RODAPÉ
   ========================================================= */
.rodape { background: var(--amarelo); padding: 40px 0; }
.rodape__grade {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  min-height: 223px;
  gap: 20px;
}
.rodape__grade > div { padding: 0 10px; }
.rodape h2 { font-size: 19px; font-weight: 500; line-height: 1.2; margin-bottom: 20px; }
.rodape p { font-size: 16px; }
.rodape a { text-decoration: none; }
.rodape__selo img { width: 60%; margin: 0 auto; }

/* =========================================================
   TABLET (até 1024px)
   ========================================================= */
@media (max-width: 1024px) {
  .topo__grade { position: relative; }
  .menu-botao { display: block; }
  .menu {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    z-index: 10;
    background: #fff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, .12);
  }
  .menu-aberto .menu { display: block; }
  .menu ul { flex-direction: column; }
  .menu a { padding: 14px 20px; text-align: center; }

  .carrossel { --por-tela: 2; }
  .lista-selos li { font-size: 22px; }
}

/* =========================================================
   CELULAR (até 767px)
   ========================================================= */
@media (max-width: 767px) {
  .topo__grade {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 14px;
    padding: 16px 10px;
  }
  .topo__logo img { width: 130px; }

  .hero { min-height: 520px; }

  .duas-colunas,
  .passos,
  .diferenciais__grade,
  .chamada__grade,
  .rodape__grade { grid-template-columns: 1fr; }

  .sobre { padding-bottom: 40px; }
  .sobre__imagem img { width: 60%; }
  .sobre__texto { padding-top: 20px; }

  .revenda { padding-top: 60px; }
  .passos { gap: 40px; }

  .diferenciais { padding-top: 60px; }
  .lista-selos { padding-top: 40px; }
  .lista-selos li { justify-content: center; font-size: 20px; }
  .lista-selos img { width: 40px; }

  .chamada { padding: 50px 0; }
  .chamada h2 { font-size: 28px; }
  .chamada p { font-size: 18px; line-height: 1.5; }

  .produtos { padding-top: 60px; }
  .carrossel { --por-tela: 1; }

  .rodape__selo img { width: 50%; }
}
