/* Irrisolo — estilos globais (todas as páginas) */

:root {
  /* Marca */
  --verde-floresta: #1F4D3A;
  --verde-folha: #4A9B5E;
  --azul-agua: #2B8C9E;
  --areia: #F4F1EA;
  --grafite: #1E2422;

  /* Apoio */
  --verde-destaque: #3E8752;     /* palavra-chave em fundo claro */
  --verde-claro: #9FD3AE;        /* palavra-chave em fundo escuro */
  --verde-suave: #BFDDC8;        /* linha fina do título em fundo escuro */
  --azul-fechado: #1F6F7E;       /* fundos com texto */
  --verde-rodape: #173B2C;
  --areia-escura: #ECE7DB;
  --texto-2: #4B5450;
  --borda: #E2DCCD;
  --foto-vazia: #D6CFBD;
  --branco: #FFFFFF;

  --sombra-botao: 0 10px 24px rgba(23, 59, 44, .22);
  --largura: 1200px;
  --gutter: 24px;
  --secao-y: 104px;
}

@media (max-width: 720px) {
  :root {
    --gutter: 20px;
    --secao-y: 72px;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 400;
  color: var(--grafite);
  background: var(--areia);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--verde-floresta); }
a:hover { color: var(--verde-folha); }
strong { font-weight: 700; }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }

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

.container {
  max-width: calc(var(--largura) + 2 * var(--gutter));
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.pular-conteudo {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--verde-floresta);
  color: var(--areia);
  font-weight: 700;
}
.pular-conteudo:focus { top: 12px; color: var(--areia); }

/* ---------- Etiqueta em cápsula ---------- */

.etiqueta {
  align-self: flex-start;
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  background: #E1EBDD;
  color: var(--verde-floresta);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.2;
  text-transform: uppercase;
}

/* ---------- Título em duas linhas (fina + grossa) ---------- */

/* Tamanho por variável: cada variação define --t (desktop) e, se quiser, --t-celular */
.titulo {
  text-transform: uppercase;
  line-height: .9;
  letter-spacing: -.01em;
  color: var(--verde-floresta);
  font-size: var(--t, clamp(40px, 5vw, 72px));
  overflow-wrap: break-word;
}
.titulo > span { display: block; }
.titulo .fina { font-weight: 300; color: var(--verde-destaque); }
.titulo .grossa { font-weight: 900; }
.titulo em { font-style: normal; color: var(--verde-destaque); }

.escuro .titulo { color: var(--areia); }
.escuro .titulo .fina { color: var(--verde-suave); }
.escuro .titulo em { color: var(--verde-claro); }

@media (max-width: 720px) {
  .titulo { font-size: var(--t-celular, clamp(34px, 10vw, 52px)); }
}

/* Palavra gigante decorativa ao fundo */
.palavra-fundo {
  position: absolute;
  font-weight: 900;
  line-height: .8;
  letter-spacing: -.03em;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--verde-floresta);
  color: var(--areia);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.btn:hover {
  color: var(--areia);
  transform: translateY(-2px);
  box-shadow: var(--sombra-botao);
  filter: brightness(1.1);
}
.btn:active { transform: translateY(0); box-shadow: none; }
.btn svg { flex: 0 0 auto; width: 18px; height: 18px; }

.btn--grande { min-height: 56px; padding: 0 28px; font-size: 17px; }
.btn--grande svg { width: 20px; height: 20px; }
.btn--pequeno { min-height: 44px; padding: 0 20px; font-size: 15px; gap: 8px; }

.btn--claro { background: var(--areia); color: var(--verde-floresta); }
.btn--claro:hover { color: var(--verde-floresta); filter: brightness(1.04); }

@media (prefers-reduced-motion: reduce) {
  .btn, .btn:hover { transition: none; transform: none; }
}

@media (max-width: 720px) {
  .btn:not(.btn--grande):not(.btn--pequeno) { padding: 0 18px; font-size: 15px; }
}

/* ---------- Espaço reservado para foto ---------- */
/* Trocar por <img> quando as fotos reais chegarem. */

.foto-vazia {
  display: flex;
  align-items: flex-end;
  padding: 20px;
  border-radius: 24px;
  background: var(--foto-vazia);
}
.foto-vazia__legenda {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--areia);
  color: var(--texto-2);
  font-size: 13px;
  line-height: 1.3;
}

/* Foto real: <picture class="foto"> preenche o espaço sem deformar.
   A altura vem da classe da seção (ex.: .beneficio__foto). */
.foto {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 24px;
  background: var(--foto-vazia);
}
.foto img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Cabeçalho ---------- */

.cabecalho {
  background: var(--areia);
  border-bottom: 1px solid var(--borda);
}
.cabecalho__interno {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.cabecalho__logo img { width: 150px; height: auto; }

@media (max-width: 720px) {
  .cabecalho__logo img { width: 128px; }
}

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

.rodape {
  background: var(--verde-rodape);
  color: #CFE3D4;
}
.rodape__interno {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding-top: 72px;
  padding-bottom: 40px;
}
.rodape__colunas {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  font-size: 15px;
  line-height: 1.8;
}
.rodape__marca { flex: 1 1 260px; display: flex; flex-direction: column; gap: 18px; }
.rodape__marca img { width: 150px; height: auto; }
.rodape__marca p { max-width: 280px; line-height: 1.6; }
.rodape__coluna { flex: 0 1 200px; display: flex; flex-direction: column; }
.rodape__titulo {
  margin-bottom: 8px;
  color: var(--areia);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.rodape a { color: #CFE3D4; text-decoration: none; }
.rodape a:hover { color: var(--areia); text-decoration: underline; }
.rodape__contato { display: inline-flex; align-items: center; gap: 10px; }
.rodape__contato svg { flex: 0 0 auto; width: 18px; height: 18px; color: var(--verde-claro); }
.rodape__contato:hover svg { color: var(--areia); }
.rodape__base {
  padding-top: 24px;
  border-top: 1px solid #2E5A47;
  font-size: 13px;
  color: #A9C7B2;
}

/* ---------- WhatsApp sempre visível ---------- */

/* Celular: barra fixa no rodapé da tela */
.barra-celular {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--areia);
  border-top: 1px solid var(--borda);
  transition: transform .3s ease, visibility .3s;
}
.barra-celular .btn { width: 100%; }

/* Desktop: botão flutuante */
.wa-flutuante {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  box-shadow: 0 6px 18px rgba(23, 59, 44, .18);
  transition: opacity .25s ease, visibility .25s, transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

/* Os dois só aparecem depois que o topo sai da tela (controlado pelo site.js) */
.js .wa-flutuante:not(.visivel) { opacity: 0; visibility: hidden; }
.js .barra-celular:not(.visivel) { transform: translateY(110%); visibility: hidden; }

@media (prefers-reduced-motion: reduce) {
  .barra-celular, .wa-flutuante { transition: none; }
}

@media (max-width: 720px) {
  .barra-celular { display: block; }
  .wa-flutuante { display: none; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}
