/* Site do ENFEZ (enfez.app): as mesmas cores do app (docs/06-marca.md) */
:root {
  --fundo: #f6f4f7;
  --branco: #ffffff;
  --tinta: #17131c;
  --tinta-suave: #5e5266;
  --destaque: #e0479e;
  --link: #b01e72;
  --linha: #e4dfe6;
  --menta: #bdebd3;
  --amarelo: #ffe7a3;
  --coral: #ffb199;
  --lilas: #ede4f6;
  --rosa-topo: #f98ddb;
  --rosa-base: #fecbf2;
  --raio-grande: 32px;
  --raio: 22px;
  --largura: 1080px;
  --texto: 68ch;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--tinta);
  background: var(--fundo);
  -webkit-text-size-adjust: 100%;
}

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

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

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

a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--destaque); outline-offset: 3px; border-radius: 6px; }

.pular {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--tinta);
  color: var(--branco);
  padding: 10px 16px;
  border-radius: 999px;
  z-index: 10;
}
.pular:focus { top: 12px; }

/* Topo */
.topo {
  max-width: var(--largura);
  margin: 0 auto;
  padding: 20px 20px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.marca img { width: 112px; }
.topo nav { display: flex; gap: 20px; }
.topo nav a { color: var(--tinta); font-weight: 600; text-decoration: none; }
.topo nav a:hover, .topo nav a[aria-current="page"] { color: var(--link); }

main { max-width: var(--largura); margin: 0 auto; padding: 8px 20px 48px; }

/* Início */
.abertura {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: end;
  background: linear-gradient(180deg, var(--rosa-topo) 0%, var(--rosa-base) 100%);
  border-radius: var(--raio-grande);
  overflow: hidden;
  margin-top: 12px;
}
.abertura-texto { padding: clamp(28px, 5vw, 64px); align-self: center; }
.abertura h1 {
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 0 0 20px;
  max-width: 9ch;
}
.abertura .chamada {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.5;
  max-width: 36ch;
  margin: 0 0 28px;
}
.lojas { display: flex; flex-wrap: wrap; gap: 10px; }
.loja {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--tinta);
  color: var(--branco);
  font-weight: 600;
  font-size: 0.98rem;
}
/* A imagem tem o mesmo degradê do painel: ocupa a altura toda para as cores casarem */
.abertura-mascote { align-self: stretch; display: block; }
.abertura-mascote img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18%);
  mask-image: linear-gradient(90deg, transparent 0, #000 18%);
}

.blocos {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.bloco { border-radius: var(--raio-grande); padding: clamp(24px, 3.4vw, 40px); }
.bloco h2 { font-size: 1.5rem; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 10px; font-weight: 800; }
.bloco p { margin: 0; max-width: 44ch; }
.bloco-registro { grid-column: span 7; background: var(--menta); }
.bloco-recado { grid-column: span 5; background: var(--amarelo); }
.bloco-alerta { grid-column: span 5; background: var(--coral); }
.bloco-dados { grid-column: span 7; background: var(--lilas); }

.botoes-app { display: flex; gap: 10px; margin-top: 22px; }
.botoes-app span {
  flex: 1;
  max-width: 180px;
  text-align: center;
  padding: 14px 0;
  border-radius: 999px;
  font-weight: 700;
}
.botoes-app .fui { background: var(--tinta); color: var(--branco); }
.botoes-app .ainda { background: var(--branco); color: var(--tinta); }

.notificacao {
  margin-top: 22px;
  background: rgba(255, 255, 255, 0.86);
  border-radius: 20px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 36px 1fr auto;
  column-gap: 10px;
  align-items: center;
  font-size: 0.95rem;
  line-height: 1.35;
}
.notificacao img { width: 36px; height: 36px; border-radius: 9px; grid-row: span 2; }
.notificacao strong { font-weight: 700; }
.notificacao .quando { color: var(--tinta-suave); font-size: 0.85rem; align-self: start; }
.notificacao .texto { grid-column: 2 / 4; }

.emergencia {
  margin: 28px 0 0;
  padding: 0 4px;
  color: var(--tinta-suave);
  max-width: var(--texto);
}

/* Documentos */
.documento { max-width: 760px; margin: 0 auto; }
.documento h1 {
  font-size: clamp(2.1rem, 4.6vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 28px 0 10px;
}
.documento h1 + p { color: var(--tinta-suave); margin-top: 0; }
.documento h2 {
  font-size: 1.35rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 44px 0 10px;
  font-weight: 750;
  scroll-margin-top: 20px;
}
.documento h3 { font-size: 1.08rem; margin: 28px 0 6px; }
.documento p, .documento li { max-width: var(--texto); }
.documento ul { padding-left: 1.2em; }
.documento li { margin: 6px 0; }
.documento li::marker { color: var(--destaque); }

.indice {
  background: var(--lilas);
  border-radius: var(--raio);
  padding: 20px 24px;
  margin: 28px 0 8px;
}
.indice p { margin: 0 0 8px; font-weight: 700; }
.indice ul { list-style: none; margin: 0; padding: 0; columns: 2 220px; column-gap: 28px; }
.indice li { margin: 4px 0; break-inside: avoid; }
.indice a { color: var(--tinta); text-decoration: none; }
.indice a:hover { color: var(--link); text-decoration: underline; }

.tabela {
  overflow-x: auto;
  margin: 16px 0 8px;
  border-radius: 16px;
  background: var(--branco);
  border: 1px solid var(--linha);
}
.tabela table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 0.95rem; line-height: 1.45; }
.tabela th, .tabela td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--linha); }
.tabela th { background: #faf7fb; font-weight: 700; }
.tabela tr:last-child td { border-bottom: 0; }
.tabela td:first-child { font-weight: 600; }

/* Rodapé */
.rodape { background: var(--tinta); color: #e9e4ee; margin-top: 56px; }
.rodape-dentro {
  max-width: var(--largura);
  margin: 0 auto;
  padding: 40px 20px 48px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 28px;
  font-size: 0.95rem;
  line-height: 1.55;
}
.rodape a { color: #ffffff; }
.rodape p { margin: 0; }
.rodape nav { display: flex; flex-direction: column; gap: 6px; }
.rodape .aviso { grid-column: 1 / -1; color: #bdb3c6; border-top: 1px solid #332a3d; padding-top: 20px; }
.rodape .marca-rodape { width: 96px; margin-bottom: 14px; }
.rodape .encarregado { margin-top: 14px; color: #bdb3c6; }

@media (max-width: 760px) {
  /* No celular o texto fica sobre a cor do topo da imagem, e a imagem vem inteira embaixo */
  .abertura { grid-template-columns: 1fr; background: var(--rosa-topo); }
  .abertura h1 { max-width: none; }
  .abertura-mascote img { -webkit-mask-image: none; mask-image: none; height: auto; }
  .blocos > .bloco { grid-column: 1 / -1; }
  .rodape-dentro { grid-template-columns: 1fr; }
  .topo nav { gap: 14px; }
}

/* Tabelas no celular: cada linha vira um bloco, com o nome da coluna antes do valor */
@media (max-width: 640px) {
  .tabela { overflow: visible; background: none; border: 0; }
  .tabela table { min-width: 0; }
  .tabela thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tabela table, .tabela tbody, .tabela tr, .tabela td { display: block; }
  .tabela tr { background: var(--branco); border: 1px solid var(--linha); border-radius: 16px; padding: 6px 0; margin-bottom: 10px; }
  .tabela td { border: 0; padding: 6px 14px; }
  .tabela td::before { content: attr(data-rotulo); display: block; font-size: 0.82rem; font-weight: 700; color: var(--tinta-suave); }
  .tabela td:first-child { font-size: 1.02rem; }
  .tabela td:first-child::before { display: none; }
}

@media print {
  .topo nav, .rodape, .pular, .indice { display: none; }
  body { background: #fff; }
}
