/* Panno e Linea. Cores tiradas do logo; o contraste é conferido em tests/test_pagina.py */
:root {
  --fundo: #F7F4EE;
  --fundo-forte: #D8D1BF;
  --texto: #1F1E1B;
  --texto-suave: #4F4B44;
  --verde: #699772;
  --botao: #2F5E3B;
  --botao-texto: #FFFFFF;
  --rodape-fundo: #1F1E1B;
  --rodape-texto: #F7F4EE;
  --raio: 14px;
  --largura: 1120px;
  --fonte: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

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

body {
  margin: 0;
  font-family: var(--fonte);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--texto);
  background: var(--fundo);
}

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

a { color: var(--botao); }
a:focus-visible { outline: 3px solid var(--botao); outline-offset: 3px; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; }
h1, h2 { font-weight: 300; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.75rem, 4.5vw, 2.6rem); }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }

.conteiner { width: min(100% - 32px, var(--largura)); margin-inline: auto; }

.pular { position: absolute; left: -9999px; top: 8px; z-index: 10; padding: 10px 16px; background: var(--fundo); color: var(--texto); }
.pular:focus { left: 16px; }

/* Topo */
.topo { background: var(--fundo-forte); }
.topo-linha { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-block: 12px; }
.marca img { height: 72px; width: auto; }
.topo nav { order: 3; width: 100%; }
.topo ul { display: flex; gap: 8px; margin: 0; padding: 0 0 4px; list-style: none; overflow-x: auto; scrollbar-width: none; }
.topo ul::-webkit-scrollbar { display: none; }
.topo nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--fundo); color: var(--texto); text-decoration: none; white-space: nowrap; font-size: .95rem; }
.topo .topo-whats { display: none; }

/* Botões */
.botao { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border: 2px solid var(--botao); border-radius: 999px; background: var(--botao); color: var(--botao-texto); font-weight: 600; text-decoration: none; }
.botao.secundario { background: transparent; border-color: var(--texto); color: var(--texto); }
.acoes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* Seções */
section { padding-block: clamp(48px, 8vw, 96px); }
.abertura, .faixa { background: var(--fundo-forte); }
.abertura { padding-top: 24px; }
.slogan { color: var(--botao); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .9rem; }
.chamada { font-size: 1.15rem; max-width: 34em; }
.foto { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--raio); }
.duas-colunas { display: grid; gap: 32px; align-items: center; }
.introducao { max-width: 40em; color: var(--texto-suave); }

/* Produtos */
.grade { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 16px; margin: 32px 0 0; padding: 0; list-style: none; }
.grade img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--raio); }
.grade h3 { margin: 12px 0 4px; }
.grade p { margin: 0; font-size: .95rem; color: var(--texto-suave); }

/* Visite */
address { font-style: normal; font-size: 1.1rem; margin-bottom: 1.5em; }
.horarios { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 0 0 1.5em; }
.horarios dt { font-weight: 600; }
.horarios dd { margin: 0; }
.mapa { display: block; width: 100%; height: 360px; margin-top: 40px; border: 0; border-radius: var(--raio); }

/* Avaliações */
.avaliacoes { text-align: center; }
.estreito { max-width: 640px; }

/* Rodapé (o espaço de baixo no celular é para o botão fixo não cobrir texto) */
.rodape { background: var(--rodape-fundo); color: var(--rodape-texto); padding: 48px 0 104px; }
.rodape a { color: var(--rodape-texto); }
.rodape-colunas { display: grid; gap: 24px; }
.rodape-nome { font-size: 1.4rem; font-weight: 300; }
.contatos { margin: 0; padding: 0; list-style: none; }
.contatos a { display: inline-flex; align-items: center; min-height: 44px; }
.empresa { margin-top: 24px; font-size: .9rem; }

/* Página 404 */
.nao-encontrada { padding-block: 64px; text-align: center; }
.nao-encontrada .marca img { margin: 0 auto 32px; }
.nao-encontrada .acoes { justify-content: center; }

/* Botão fixo do WhatsApp, só no celular */
.whats-fixo { position: fixed; right: 16px; bottom: 16px; z-index: 5; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--botao); color: var(--botao-texto); box-shadow: 0 4px 14px rgb(0 0 0 / .25); }

@media (min-width: 768px) {
  .marca img { height: 88px; }
  .topo nav { order: 0; width: auto; }
  .topo ul { padding: 0; }
  .topo nav a { background: transparent; }
  .topo .topo-whats { display: inline-flex; }
  .duas-colunas { grid-template-columns: 1fr 1fr; gap: 56px; }
  .grade { grid-template-columns: repeat(3, 1fr); gap: 40px 28px; }
  .mapa { height: 420px; }
  .rodape { padding-bottom: 48px; }
  .rodape-colunas { grid-template-columns: 1fr 1fr; }
  .whats-fixo { display: none; }
}
