/* Gatos Urbanos SP — design system
   Cores, tipografia, formas e componentes compartilhados por todas as páginas. */

:root {
  /* Cor */
  --leite: #FFF8F6;      /* fundo principal */
  --rosa: #FDE8E6;       /* fundo de seção */
  --lilas: #EBD5F2;      /* apoio, divisórias */
  --coral: #FF9F6E;      /* o "sol": destaque, nunca texto sobre claro */
  --ameixa: #7A1F8C;     /* ação principal */
  --ameixa-escura: #5E1570;
  --uva: #3A1248;        /* texto e seções escuras */
  --framboesa: #A8175A;  /* links, sobrelinhas */
  --malva: #65506E;      /* texto de apoio */
  --borda: #85698C;      /* contorno de campos */
  --branco: #FFFFFF;

  /* Tipografia */
  --serif: 'Abril Fatface', Georgia, 'Times New Roman', serif;
  --sans: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --t-display: clamp(3rem, 6.6vw, 6.25rem);
  --t-h1: clamp(2.5rem, 5vw, 4.5rem);
  --t-h2: clamp(2rem, 3.6vw, 3.25rem);
  --t-h3: clamp(1.625rem, 2vw, 1.875rem);
  --t-lead: clamp(1.125rem, 1.5vw, 1.3125rem);
  --t-corpo: 1.0625rem;
  --t-peq: 0.9375rem;

  /* Forma */
  --r-p: 16px;
  --r-m: 24px;
  --r-g: 32px;
  --r-xg: clamp(36px, 5vw, 64px);
  --r-total: 999px;
  --arco: 999px 999px var(--r-m) var(--r-m);

  /* Espaço */
  --secao: clamp(64px, 8vw, 112px);
  --gutter: clamp(16px, 4vw, 40px);
  --sombra: 0 12px 32px rgba(58, 18, 72, 0.12);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--leite); }

.gu {
  font-family: var(--sans);
  font-size: var(--t-corpo);
  line-height: 1.65;
  color: var(--uva);
  background: var(--leite);
  overflow-x: clip;
}
.gu img { display: block; max-width: 100%; }
.gu h1, .gu h2, .gu h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}
.gu p { margin: 0; text-wrap: pretty; }
.gu ul, .gu ol { margin: 0; padding: 0; list-style: none; }
.gu a { color: var(--framboesa); text-underline-offset: 3px; }
.gu a:hover { color: var(--uva); }
.gu :focus-visible { outline: 3px solid var(--uva); outline-offset: 3px; border-radius: 12px; }
.gu .escuro :focus-visible { outline-color: var(--coral); }

.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.secao { padding-block: var(--secao); }
.pilha { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.pilha-g { display: flex; flex-direction: column; gap: 32px; }
.linha { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.entre { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-end; justify-content: space-between; }
.dois { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: clamp(40px, 6vw, 88px); align-items: center; }
.tres { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.quatro { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 24px; }

.display { font-size: var(--t-display); }
.h1 { font-size: var(--t-h1); }
.h2 { font-size: var(--t-h2); }
.h3 { font-size: var(--t-h3); }
.lead { font-size: var(--t-lead); line-height: 1.6; color: var(--malva); max-width: 36em; }
.apoio { color: var(--malva); }
.peq { font-size: var(--t-peq); }
.sobrelinha { font-size: var(--t-peq); font-weight: 600; letter-spacing: 0.02em; color: var(--framboesa); }
.escuro { background: var(--uva); color: var(--leite); }
.escuro .lead, .escuro .apoio { color: var(--rosa); }
.escuro .sobrelinha { color: var(--coral); }
.gu .escuro a:not(.btn) { color: var(--rosa); }
.gu .escuro a:not(.btn):hover { color: var(--coral); }
.gu .sobre-coral .sobrelinha, .gu .sobre-coral .lead { color: var(--uva); }

/* Botões */
.gu .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 14px 30px;
  border: 2px solid transparent; border-radius: var(--r-total);
  font-family: var(--sans); font-size: 1.0625rem; font-weight: 600; line-height: 1.2;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.gu .btn-primario { background: var(--ameixa); color: var(--branco); }
.gu .btn-primario:hover { background: var(--ameixa-escura); color: var(--branco); }
.gu .btn-secundario { background: transparent; color: var(--uva); border-color: var(--uva); }
.gu .btn-secundario:hover { background: var(--uva); color: var(--leite); }
.gu .btn-escuro { background: var(--uva); color: var(--leite); }
.gu .btn-escuro:hover { background: #2A0B35; color: var(--leite); }
.gu .btn-coral { background: var(--coral); color: var(--uva); }
.gu .btn-coral:hover { background: var(--leite); color: var(--uva); }
.gu .btn-p { min-height: 48px; padding: 10px 22px; font-size: 1rem; }
.gu .link-seta { font-weight: 600; color: var(--framboesa); display: inline-flex; min-height: 44px; align-items: center; gap: 8px; }
.gu .link-seta::after { content: "→"; }

/* Marcadores */
.etiqueta { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 14px; border-radius: var(--r-total); background: var(--rosa); color: var(--uva); font-size: 0.875rem; font-weight: 500; line-height: 1.3; }
.etiquetas { display: flex; flex-wrap: wrap; gap: 8px; }
.gu .filtro { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 22px; border: 2px solid var(--uva); border-radius: var(--r-total); background: transparent; color: var(--uva); font-family: var(--sans); font-size: 1rem; font-weight: 500; cursor: pointer; }
.gu .filtro:hover { background: var(--rosa); }
.gu .filtro[aria-pressed="true"] { background: var(--uva); color: var(--leite); font-weight: 600; }
.gu .filtro[aria-pressed="true"]::before { content: "✓"; }
.confianca { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.confianca li { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: var(--t-peq); }
.tique { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--coral); color: var(--uva); display: grid; place-items: center; }
.tique svg { width: 16px; height: 16px; }

/* Cabeçalho */
.topo { position: relative; z-index: 3; background: var(--leite); }
.topo-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-block: 16px; }
.gu .logo { display: inline-flex; align-items: center; gap: 12px; color: var(--uva); text-decoration: none; min-height: 48px; }
.logo svg { width: 48px; height: 48px; flex: none; }
.logo-nome { font-family: var(--serif); font-size: 1.625rem; line-height: 1; }
.logo-sp { font-family: var(--sans); font-size: 0.8125rem; font-weight: 600; background: var(--uva); color: var(--leite); border-radius: var(--r-total); padding: 3px 9px; }
.escuro .logo-sp { background: var(--coral); color: var(--uva); }
.gu .escuro .logo { color: var(--leite); }
.menu { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.gu .menu a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 16px; border-radius: var(--r-total); color: var(--uva); text-decoration: none; font-weight: 500; font-size: 1rem; }
.gu .menu a:hover { background: var(--rosa); color: var(--uva); }
.gu .menu a[aria-current="page"] { background: var(--rosa); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* Hero da home: a janela e o sol */
.hero { position: relative; padding-block: clamp(24px, 3vw, 40px) var(--secao); }
.hero-grade { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(480px, 100%), 1fr)); gap: clamp(40px, 5vw, 72px); align-items: center; }
.palco { position: relative; display: grid; place-items: center; padding-block: 24px; }
.sol { position: absolute; z-index: 0; width: min(112%, 700px); aspect-ratio: 1; border-radius: 50%; background: var(--coral); top: 50%; left: 56%; transform: translate(-50%, -50%); }
.janela { position: relative; z-index: 1; width: min(100%, 580px); aspect-ratio: 1 / 1.08; border-radius: 999px 999px 48px 48px; overflow: hidden; background: var(--rosa); }
.janela img { width: 100%; height: 100%; object-fit: cover; }
.selo { position: absolute; z-index: 2; left: 0; bottom: 40px; display: flex; align-items: center; gap: 14px; padding: 10px 26px 10px 10px; background: var(--branco); border-radius: var(--r-total); box-shadow: var(--sombra); max-width: calc(100% - 8px); }
.selo img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.selo strong { display: block; font-weight: 600; line-height: 1.3; }
.gu .selo a { font-size: var(--t-peq); font-weight: 600; }

/* Hero das páginas internas */
.capa { padding-block: clamp(24px, 3vw, 40px) clamp(48px, 6vw, 88px); }
.capa-foto { position: relative; display: grid; place-items: center; }
.capa-foto .sol { width: min(96%, 460px); left: 62%; }
.arco { position: relative; z-index: 1; width: min(100%, 460px); aspect-ratio: 1 / 1.05; overflow: hidden; border-radius: 999px 999px 40px 40px; }
.arco img, .circulo img { width: 100%; height: 100%; object-fit: cover; }
.circulo { overflow: hidden; border-radius: 50%; aspect-ratio: 1; width: min(100%, 480px); margin-inline: auto; }

/* Cartão de gato */
.gatos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); gap: 24px; }
.gato { display: flex; flex-direction: column; gap: 16px; padding: 12px 12px 20px; background: var(--branco); border-radius: var(--r-g); box-shadow: var(--sombra); }
.gato-foto { aspect-ratio: 1 / 1.1; overflow: hidden; border-radius: var(--arco); background: var(--rosa); }
.gato-foto img { width: 100%; height: 100%; object-fit: cover; }
.gato-info { display: flex; flex-direction: column; gap: 10px; padding-inline: 10px; flex: 1; }
.gato-meta { font-size: var(--t-peq); color: var(--malva); }
.gato .link-seta { margin-top: auto; }

/* Blocos */
.painel { border-radius: var(--r-xg); padding: clamp(32px, 6vw, 80px); }
.painel-rosa { background: var(--rosa); }
.painel-coral { background: var(--coral); color: var(--uva); }
.cartao { background: var(--branco); border-radius: var(--r-g); padding: clamp(24px, 3vw, 36px); box-shadow: var(--sombra); display: flex; flex-direction: column; gap: 12px; }
.cartao-liso { background: var(--rosa); border-radius: var(--r-g); padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 12px; }
.icone { width: 60px; height: 60px; border-radius: 50%; background: var(--coral); color: var(--uva); display: grid; place-items: center; flex: none; }
.icone svg { width: 28px; height: 28px; }

.passos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 32px; counter-reset: passo; }
.passos li { display: flex; flex-direction: column; gap: 12px; counter-increment: passo; }
.passos li::before { content: counter(passo); display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--coral); color: var(--uva); font-family: var(--serif); font-size: 1.75rem; line-height: 1; }

.numeros { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 24px; }
.numero { font-family: var(--serif); font-size: clamp(2.25rem, 3.4vw, 3rem); line-height: 1.1; }

/* Perguntas */
.perguntas { display: flex; flex-direction: column; gap: 12px; }
.perguntas details { background: var(--branco); border-radius: var(--r-m); padding: 6px 24px; }
.perguntas summary { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 600; cursor: pointer; list-style: none; padding-block: 10px; }
.perguntas summary::-webkit-details-marker { display: none; }
.perguntas summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--rosa); font-size: 1.25rem; line-height: 1; }
.perguntas details[open] summary::after { content: "−"; }
.perguntas details p { padding-bottom: 16px; color: var(--malva); }

/* Formulário */
.campo { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.campo label { font-weight: 600; font-size: 1rem; }
.gu .entrada { width: 100%; min-height: 56px; padding: 12px 22px; border: 2px solid var(--borda); border-radius: var(--r-m); background: var(--branco); color: var(--uva); font-family: var(--sans); font-size: 1.0625rem; }
.gu textarea.entrada { min-height: 160px; resize: vertical; line-height: 1.5; }
.gu .entrada:hover { border-color: var(--uva); }
.gu .entrada::placeholder { color: var(--malva); opacity: 1; }
.dica { font-size: var(--t-peq); color: var(--malva); }
.valores { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(120px, 100%), 1fr)); gap: 12px; }
.alternador { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: var(--r-total); background: var(--rosa); }
.gu .alternador button { min-height: 48px; border: 0; border-radius: var(--r-total); background: transparent; color: var(--uva); font-family: var(--sans); font-size: 1rem; font-weight: 500; cursor: pointer; }
.gu .alternador button[aria-pressed="true"] { background: var(--uva); color: var(--leite); font-weight: 600; }
.lista-dados { display: flex; flex-direction: column; gap: 16px; }
.lista-dados li { display: flex; gap: 16px; align-items: center; }

/* Rodapé */
.rodape { border-radius: var(--r-xg) var(--r-xg) 0 0; padding-block: clamp(48px, 6vw, 80px) 32px; }
.rodape-grade { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 40px; }
.rodape h2 { font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--coral); line-height: 1.4; margin-bottom: 12px; }
.rodape li a { display: inline-flex; min-height: 36px; align-items: center; }
.rodape-fim { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255, 248, 246, 0.3); font-size: var(--t-peq); color: var(--rosa); }

/* Páginas do design system */
.amostras { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 20px; }
.amostra { display: flex; flex-direction: column; gap: 12px; }
.amostra-cor { aspect-ratio: 1.5; border-radius: var(--r-g); padding: 18px; display: flex; flex-direction: column; justify-content: flex-end; font-weight: 600; line-height: 1.35; }
.amostra-linha { display: flex; justify-content: space-between; gap: 8px; font-size: var(--t-peq); }
.tipo-linha { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 8px 32px; align-items: baseline; padding-block: 20px; border-bottom: 1px solid var(--lilas); }
.forma { display: grid; place-items: center; background: var(--rosa); color: var(--uva); font-weight: 500; font-size: var(--t-peq); text-align: center; aspect-ratio: 1; padding: 12px; }

@media (max-width: 1120px) {
  .topo-in > .btn { order: 2; }
  .menu { order: 3; width: 100%; justify-content: center; gap: 4px; }
}

@media (max-width: 760px) {
  .menu { justify-content: space-between; gap: 0; }
  .gu .menu a { padding: 6px 10px; font-size: 0.9375rem; }
  .logo-nome { font-size: 1.5rem; }
  .logo svg { width: 44px; height: 44px; }
  .gu .btn-g { width: 100%; }
  .sol { left: 58%; }
  .selo { bottom: 12px; }
}

@media (max-width: 560px) {
  .topo-in > .btn { display: none; }
  .menu { display: grid; grid-template-columns: repeat(5, auto); justify-content: space-between; }
  .gu .menu a { padding: 6px 8px; font-size: 0.875rem; }
}

@media (prefers-reduced-motion: reduce) {
  .gu * { transition: none !important; }
}
