/* ==========================================================================
   Estilos Base e Globais — Chácara Monte Carlo
   ========================================================================== */

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

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

body {
  font-family: var(--fonte-principal);
  background-color: var(--cor-fundo);
  color: var(--cor-texto);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

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

a {
  color: var(--cor-primaria);
  text-decoration: none;
  transition: var(--transicao-padrao);
}

a:hover {
  color: var(--cor-primaria-hover);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  transition: var(--transicao-padrao);
}

/* Foco acessível */
:focus-visible {
  outline: 3px solid var(--cor-secundaria);
  outline-offset: 2px;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: var(--largura-maxima);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--espaco-4);
  padding-right: var(--espaco-4);
}

/* Tipografia */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--fonte-titulos);
  color: var(--cor-texto);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.35rem; }

p {
  margin-bottom: var(--espaco-3);
}

p:last-child {
  margin-bottom: 0;
}

/* Utilitários Visuais */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.text-muted { color: var(--cor-texto-suave); }
.text-bold { font-weight: 700; }

.section-padding {
  padding-top: var(--espaco-10);
  padding-bottom: var(--espaco-10);
}

@media (max-width: 768px) {
  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.45rem; }
  h3 { font-size: 1.2rem; }
  .section-padding {
    padding-top: var(--espaco-8);
    padding-bottom: var(--espaco-8);
  }
}
