/* ============================================================================
 * base.css — estilo do sistema Enjoy. Limpo, mobile-first, sem frameworks.
 * Identidade NEUTRA (nome/logo ainda indefinidos).
 *
 * CORES: os valores abaixo são o FALLBACK. Em tempo de execução, assets/js/
 * brand.js sobrescreve --azul / --azul-escuro / --tinta / --verde a partir de
 * ENJOY_BRAND.cores. Trocar a marca = editar brand.js (não este arquivo).
 * ==========================================================================*/
:root {
  --azul: #1f6feb;
  --azul-escuro: #16509c;
  --tinta: #16202b;
  --cinza: #5b6b7b;
  --cinza-claro: #8595a4;
  --linha: #e3e8ee;
  --fundo: #f6f8fb;
  --branco: #ffffff;
  --verde: #1f9d55;
  --amarelo: #d99a00;
  --vermelho: #d64545;
  --raio: 12px;
  --sombra: 0 1px 3px rgba(16, 32, 43, .08), 0 4px 16px rgba(16, 32, 43, .04);
  --fonte: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--fonte);
  color: var(--tinta);
  background: var(--fundo);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ---- tipografia ---- */
h1, h2, h3 { margin: 0 0 .4em; line-height: 1.2; font-weight: 700; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
a { color: var(--azul); text-decoration: none; }
a:hover { text-decoration: underline; }
small, .muted { color: var(--cinza); }

/* ---- layout ---- */
.container { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 16px; }
.container-sm { max-width: 460px; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.grow { flex: 1; }

/* ---- topo ---- */
.topbar {
  background: var(--branco);
  border-bottom: 1px solid var(--linha);
  padding: 12px 0;
  position: sticky; top: 0; z-index: 10;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; }
.marca { font-weight: 800; letter-spacing: -.02em; color: var(--tinta); }
.marca span { color: var(--azul); }

/* ---- cards ---- */
.card {
  background: var(--branco);
  border: 1px solid var(--linha);
  border-radius: var(--raio);
  padding: 20px;
  box-shadow: var(--sombra);
}
.card + .card { margin-top: 16px; }

/* ---- botões ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 10px;
  padding: 11px 18px; font-size: .98rem; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: filter .15s, background .15s;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primario { background: var(--azul); color: #fff; }
.btn-primario:hover { background: var(--azul-escuro); color: #fff; }
/* CTA de conversão (amarelo aprovado 16/07) — só nos CTAs principais (Agendar visita) */
.btn-cta { background: #FFC72C; color: #0E2A47; }
.btn-cta:hover { background: #E6B31F; color: #0E2A47; }
.btn-neutro { background: transparent; color: var(--tinta); border-color: var(--linha); }
.btn-neutro:hover { background: var(--fundo); }
.btn-perigo { background: var(--vermelho); color: #fff; }
.btn-bloco { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---- formulários ---- */
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
input, select, textarea {
  width: 100%; padding: 11px 12px; font-size: 1rem; font-family: inherit;
  border: 1px solid var(--linha); border-radius: 10px; background: var(--branco);
  color: var(--tinta);
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px rgba(31,111,235,.15);
}
.campo + .campo { margin-top: 14px; }

/* ---- badges/status ---- */
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.badge-verde   { background: #e4f6ea; color: var(--verde); }
.badge-amarelo { background: #fbf1d6; color: var(--amarelo); }
.badge-cinza   { background: #eef2f6; color: var(--cinza); }
.badge-vermelho{ background: #fbe4e4; color: var(--vermelho); }

/* ---- timeline de slots (reservar) ---- */
.timeline { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.slot {
  border: 1px solid var(--linha); border-radius: 8px; padding: 10px 6px;
  text-align: center; font-size: .85rem; font-weight: 600; cursor: pointer;
  background: var(--branco);
}
.slot small { display: block; font-weight: 500; font-size: .72rem; }
.slot.livre:hover { border-color: var(--azul); }
.slot.sel { background: var(--azul); color: #fff; border-color: var(--azul); }
.slot.ocupado  { background: #f0f2f5; color: var(--cinza-claro); cursor: not-allowed; text-decoration: line-through; }
.slot.buffer   { background: repeating-linear-gradient(45deg,#f6f8fb,#f6f8fb 5px,#eef2f6 5px,#eef2f6 10px); color: var(--cinza-claro); cursor: not-allowed; }
.slot.bloqueado{ background: #fbe4e4; color: var(--vermelho); cursor: not-allowed; }

/* legenda */
.legenda { display: flex; gap: 16px; flex-wrap: wrap; font-size: .82rem; color: var(--cinza); }
.legenda i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; border: 1px solid var(--linha); }

/* ---- grade da gestão ---- */
.grade { width: 100%; border-collapse: collapse; font-size: .85rem; }
.grade th, .grade td { border: 1px solid var(--linha); padding: 8px; text-align: left; }
.grade th { background: var(--fundo); position: sticky; top: 0; }
.grade .ocupado { background: #eaf1fd; }
.grade .bloqueado { background: #fbe4e4; }
.scroll-x { overflow-x: auto; }

/* ---- avisos ---- */
.aviso { border-radius: 10px; padding: 12px 14px; font-size: .9rem; }
.aviso-info { background: #eaf1fd; color: var(--azul-escuro); }
.aviso-atencao { background: #fbf1d6; color: #7a5a00; }

/* ---- landing "em breve" ---- */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 40px 20px;
  background: linear-gradient(160deg, #eef4ff 0%, #f6f8fb 60%);
}
.hero h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); }
.hero .sub { color: var(--cinza); font-size: 1.1rem; max-width: 520px; margin: 0 auto 24px; }
.pill { display: inline-block; background: var(--branco); border: 1px solid var(--linha); border-radius: 999px; padding: 6px 16px; font-weight: 600; font-size: .85rem; color: var(--azul); margin-bottom: 20px; }

.rodape { text-align: center; color: var(--cinza-claro); font-size: .82rem; padding: 24px 0; }

@media (min-width: 640px) {
  .container { padding: 0 24px; }
}
