/* =============================================================
   BASE — Reset, body, tipografia global, utilitários
   Grupo Ingá — Site Institucional
   ============================================================= */

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

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

/* Body */
body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-normal);
  color: var(--color-neutral-900);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
  color: var(--color-brand-green);
}

/* Listas */
ul, ol {
  list-style: none;
}

/* Títulos */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--color-neutral-900);
}

h1 {
  font-size: var(--font-size-hero);
  font-family: var(--font-serif);
}

h2 {
  font-size: var(--font-size-3xl);
  font-family: var(--font-serif);
}

h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

/* Parágrafo */
p {
  line-height: var(--line-height-normal);
  color: var(--color-neutral-600);
}

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

/* Input base (reset) */
input, textarea, select {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
}

/* =============================================================
   UTILITÁRIOS
   ============================================================= */

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

/* Seção padrão */
.section {
  padding-top: var(--section-pad-y);
  padding-bottom: var(--section-pad-y);
}

.section--sm {
  padding-top: var(--section-pad-y-sm);
  padding-bottom: var(--section-pad-y-sm);
}

/* Cabeçalho de seção (título + subtítulo centralizados) */
.section-header {
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-2xl);
}

.section-header__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-brand-green);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
}

.section-header__eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 2px;
  background-image: var(--grad-gold-metallic);
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.section-header__title {
  font-family: var(--font-serif);
  font-size: var(--font-size-3xl);
  font-weight: 900;
  color: var(--color-neutral-900);
  margin-bottom: var(--space-md);
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-header__subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-neutral-600);
  line-height: var(--line-height-loose);
}

/* Variantes para fundo escuro */
.section-header--light .section-header__title {
  color: var(--color-white);
}

.section-header--light .section-header__subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.section-header__eyebrow--light {
  color: var(--color-brand-gold-light);
}

/* Fundos alternativos */
.bg-light   { background-color: var(--color-neutral-100); }
.bg-green   { background-color: var(--color-brand-green); }
.bg-green-light { background-color: var(--color-brand-green-light); }
.bg-gold    { background-color: var(--color-brand-gold-light); }

/* Texto sobre fundo verde */
.bg-green h1,
.bg-green h2,
.bg-green h3,
.bg-green h4,
.bg-green p {
  color: var(--color-white);
}

/* Visualmente oculto (acessibilidade) */
.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;
}

/* =============================================================
   RESPONSIVIDADE BASE
   ============================================================= */

@media (max-width: 768px) {
  h1 { font-size: var(--font-size-3xl); }
  h2 { font-size: var(--font-size-2xl); }
  h3 { font-size: var(--font-size-xl); }

  .section {
    padding-top: var(--section-pad-y-sm);
    padding-bottom: var(--section-pad-y-sm);
  }

  .section-header__title {
    font-size: var(--font-size-2xl);
  }
}

@media (max-width: 480px) {
  :root {
    --container-pad: 16px;
  }

  h1 { font-size: var(--font-size-2xl); }
  h2 { font-size: var(--font-size-xl); }
}
