/* ==========================================================================
   BASE — reset, tipografia e utilitários globais
   Zanette & Zanette Advogados
   ========================================================================== */

/* Fonte Montserrat (Google Fonts) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--cinza-texto);
  background-color: var(--branco);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* --- Tipografia ------------------------------------------------------ */
h1, h2, h3, h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--azul-marinho);
}

h1 { font-size: clamp(2rem, 4vw + 1rem, 3.25rem); }
h2 { font-size: clamp(1.6rem, 2.5vw + 1rem, 2.25rem); }
h3 { font-size: clamp(1.15rem, 1vw + 1rem, 1.4rem); font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }

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

strong, b { font-weight: 600; }

.texto-azul { color: var(--azul-marinho); }
.texto-dourado { color: var(--dourado-texto); }
.texto-branco { color: var(--branco); }
.text-center { text-align: center; }

/* --- Layout --------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.secao {
  padding-block: 4.5rem;
}

.secao-clara {
  background-color: var(--cinza-claro);
}

.secao-escura {
  background-color: var(--azul-marinho);
  color: var(--branco);
}

.secao-escura h2,
.secao-escura h3,
.secao-escura h4 {
  color: var(--branco);
}

.secao-titulo {
  text-align: center;
  margin-bottom: 3rem;
}

.titulo-com-linha {
  position: relative;
  display: inline-block;
  padding-bottom: 1rem;
}

.titulo-com-linha::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--dourado);
  border-radius: 2px;
}

/* --- Grids utilitários ------------------------------------------------ */
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* --- Botões ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .9rem 1.85rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-align: center;
  transition: transform .2s ease, background-color .2s ease, filter .2s ease;
  white-space: normal;
}

.btn-dourado {
  background-color: var(--dourado);
  color: var(--azul-marinho);
}

.btn-dourado:hover,
.btn-dourado:focus-visible {
  background-color: var(--dourado-claro);
  transform: translateY(-2px);
}

.btn-whats {
  background-color: var(--verde-whats-botao);
  color: var(--branco);
}

.btn-whats:hover,
.btn-whats:focus-visible {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1.1rem 2.25rem;
  font-size: 1.1rem;
}

/* --- Acessibilidade ------------------------------------------------------ */
:focus-visible {
  outline: 3px solid var(--dourado-texto);
  outline-offset: 2px;
}

.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;
}
