/* =============================================
   base.css — Reset e estilos globais
   ============================================= */

/* Google Fonts — Montserrat 400 / 700 / 900 */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;900&display=swap");

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

/* Body */
body {
  font-family: var(--font-display);
  background: var(--color-primary);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--color-surface);
}

::-webkit-scrollbar-thumb {
  background: var(--color-mid);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}

/* Seleção de texto */
::selection {
  background: var(--color-accent);
  color: #fff;
}

/* Links base */
a {
  color: inherit;
  text-decoration: none;
}

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

/* Botão base */
button {
  font-family: var(--font-display);
  cursor: pointer;
  border: none;
  background: none;
}

.btn--whatsapp.btn--fixed {
  width: 2em;
  height: 2em;

  font-size: 2rem;
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 1;

  & * {
    font-size: inherit;
  }
}

/* Foco visível para navegação por teclado */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Tokens responsivos de seção */
@media (min-width: 768px) {
  :root {
    --section-pad-v: 5rem;
    --section-pad-h: 2rem;
  }
}

@media (min-width: 1024px) {
  :root {
    --section-pad-v: 6rem;
    --section-pad-h: 3rem;
  }
}
