/* ═══════════════════════════════════════════
   BASE.CSS — Variáveis, Reset e Tipografia
   NildaMarmitaFit
═══════════════════════════════════════════ */

/* ─── GOOGLE FONTS ─── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ─── VARIÁVEIS GLOBAIS ─── */
:root {
  /* Cores */
  --verde:        #2D6A4F;
  --verde-medio:  #40916C;
  --verde-claro:  #74C69D;
  --verde-palido: #D8F3DC;
  --verde-bg:     #F0FAF4;
  --laranja:      #E76F51;
  --laranja-claro:#FFF0EB;
  --preto:        #1A1A1A;
  --cinza:        #F7F7F5;
  --cinza-medio:  #E8E8E5;
  --cinza-texto:  #666666;
  --branco:       #FFFFFF;

  /* Sombras */
  --sombra-sm:    0 2px 12px rgba(0,0,0,.06);
  --sombra:       0 4px 30px rgba(0,0,0,.08);
  --sombra-hover: 0 12px 40px rgba(0,0,0,.14);

  /* Bordas */
  --raio-sm:   8px;
  --raio:      16px;
  --raio-lg:   24px;
  --raio-btn:  50px;

  /* Espaçamentos */
  --gap-xs:  8px;
  --gap-sm:  16px;
  --gap:     24px;
  --gap-lg:  48px;
  --gap-xl:  96px;

  /* Tipografia */
  --fonte-titulo: 'Playfair Display', Georgia, serif;
  --fonte-corpo:  'DM Sans', system-ui, sans-serif;

  /* Transições */
  --trans: all .25s ease;
  --trans-slow: all .4s ease;
}

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

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

body {
  font-family: var(--fonte-corpo);
  color: var(--preto);
  background: var(--branco);
  overflow-x: hidden;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: var(--fonte-corpo); }
input, textarea, select { font-family: var(--fonte-corpo); }

/* ─── TIPOGRAFIA ─── */
h1, h2, h3, h4 {
  font-family: var(--fonte-titulo);
  line-height: 1.15;
  color: var(--preto);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 700; }
h4 { font-size: 1rem; font-weight: 600; }

p {
  line-height: 1.75;
  color: var(--cinza-texto);
  font-size: .97rem;
}

strong { font-weight: 600; color: var(--preto); }

/* ─── LAYOUT ─── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: var(--gap-xl) 0; }

.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 56px;
}
.section-header h2 { margin-bottom: 14px; }
.section-header p   { font-size: 1.05rem; }

/* ─── COMPONENTES BASE ─── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--verde-palido);
  color: var(--verde);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--raio-btn);
  margin-bottom: 16px;
}
.tag::before {
  content: '';
  display: block;
  width: 6px; height: 6px;
  background: var(--verde);
  border-radius: 50%;
  flex-shrink: 0;
}

.tag-escuro {
  background: rgba(116,198,157,.15);
  color: var(--verde-claro);
}
.tag-escuro::before { background: var(--verde-claro); }

/* ─── ANIMAÇÕES DE ENTRADA ─── */

/* PADRÃO SEGURO: conteúdo sempre visível.
   A animação só ativa via JS quando o elemento
   entra na viewport — nunca bloqueia o conteúdo. */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity .6s ease, transform .6s ease;
}

/* Animação de entrada apenas em desktop com JS ativo */
@media (min-width: 769px) {
  .reveal:not(.visible) {
    opacity: 0;
    transform: translateY(28px);
  }
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.d1 { transition-delay: .1s; }
.d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; }
.d4 { transition-delay: .4s; }
.d5 { transition-delay: .5s; }

/* ─── UTILITÁRIOS ─── */
.text-center { text-align: center; }
.text-verde  { color: var(--verde); }
.text-laranja{ color: var(--laranja); }
.bg-cinza    { background: var(--cinza); }
.bg-verde-bg { background: var(--verde-bg); }
.mt-sm { margin-top: var(--gap-sm); }
.mt    { margin-top: var(--gap); }
.mt-lg { margin-top: var(--gap-lg); }
