/* ==========================================================================
   base.css — reset, variáveis de design e tipografia
   ========================================================================== */

:root {
  /* Paleta oficial — extraída do kit de estilos do site */
  --laranja: #fd711d;          /* cor de texto global */
  --laranja-escuro: #e05f10;
  --laranja-claro: #fb8d42;    /* cor de acento global */
  --laranja-suave: #fff3e9;
  --laranja-borda: #ffd4b3;

  --preto: #111111;            /* cor primária global */
  --grafite: #2b2b2b;
  --cinza-900: #333;
  --cinza-700: #666;           /* cor secundária global */
  --cinza-500: #888;
  --cinza-300: #ccc;
  --cinza-200: #e5e5e5;
  --cinza-100: #f4f4f4;
  --branco: #fff;
  --creme: #fdf8f2;

  --verde: #2e9e5b;
  --verde-suave: #e6f6ec;
  --vermelho: #d93b3b;
  --vermelho-suave: #fdeaea;
  --azul: #2f6fb0;
  --azul-suave: #e8f1fa;
  --amarelo: #e0a800;
  --amarelo-suave: #fff8e1;

  /* Tipografia oficial: Anton nos títulos, Poppins no texto. */
  --fonte-titulo: 'Anton', 'Arial Narrow', system-ui, sans-serif;
  --fonte-texto: 'Poppins', system-ui, -apple-system, sans-serif;
  /* Para rótulos curtos e botões, onde Anton fica apertado demais. */
  --fonte-rotulo: 'Poppins', system-ui, -apple-system, sans-serif;

  /* Espaçamento e forma */
  --raio: 10px;
  --raio-g: 16px;
  --sombra: 0 2px 8px rgba(0, 0, 0, 0.08);
  --sombra-m: 0 4px 16px rgba(0, 0, 0, 0.1);
  --sombra-g: 0 8px 32px rgba(0, 0, 0, 0.14);
  --transicao: 0.2s ease;

  --header-altura: 68px;
  --largura-max: 1200px;
}

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

* {
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--fonte-texto);
  font-size: 16px;
  line-height: 1.6;
  color: var(--cinza-900);
  background: var(--branco);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  /* Rede de segurança: nenhum elemento isolado deve empurrar a página
     para os lados no celular. */
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--fonte-titulo);
  /* Anton tem um único peso (400); pedir 800 provocaria "fake bold". */
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--preto);
}

/*
 * Sistema de reservas (login, painéis, agendamento, checkout): tudo em
 * Poppins. A Anton condensada fica só na página inicial, onde é a
 * identidade visual do site. Redefinir a variável no <body> faz todos os
 * componentes que usam var(--fonte-titulo) herdarem a troca.
 */
body:not([data-page='landing']) {
  --fonte-titulo: 'Poppins', system-ui, -apple-system, sans-serif;
}

body:not([data-page='landing']) :is(h1, h2, h3, h4, h5, h6) {
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

@media (min-width: 900px) {
  h1 { font-size: 2.8rem; }
  h2 { font-size: 2.1rem; }
  h3 { font-size: 1.4rem; }
}

a {
  color: var(--laranja-escuro);
  text-decoration: none;
  transition: color var(--transicao);
}

a:hover { color: var(--laranja); }

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

ul, ol { list-style: none; }

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button { cursor: pointer; }

/* Acessibilidade: foco visível e consistente */
:focus-visible {
  outline: 3px solid var(--laranja);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Utilitários
   -------------------------------------------------------------------------- */

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

.texto-laranja { color: var(--laranja); }
.texto-perigo { color: var(--vermelho) !important; }
.texto-sucesso { color: var(--verde) !important; }
.texto-branco { color: var(--branco); }
.texto-cinza { color: var(--cinza-700); }
.texto-centro { text-align: center; }
.texto-direita { text-align: right; }
.texto-peq { font-size: 0.85rem; }
.texto-min { font-size: 0.75rem; }
.negrito { font-weight: 700; }
.maiusculas { text-transform: uppercase; letter-spacing: 0.06em; }

.oculto { display: none !important; }
.invisivel { visibility: hidden; }

.so-leitor {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.itens-centro { align-items: center; }
.entre { justify-content: space-between; }
.centro { justify-content: center; }
.quebra { flex-wrap: wrap; }
/* `min-width: 0` permite que o item encolha abaixo do seu conteúdo; sem
   isso, um filho largo (faixa de dias, texto longo) estica o flex container
   e empurra a página para os lados no celular. */
.cresce { flex: 1; min-width: 0; }
.gap-4 { gap: 4px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

/* Barra de rolagem discreta em listas internas */
.rolagem {
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--cinza-300) transparent;
}

.rolagem::-webkit-scrollbar { width: 8px; }
.rolagem::-webkit-scrollbar-thumb {
  background: var(--cinza-300);
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
