/* ═══════════════════════════════════════════════════════════
   FMV Engenharia — base.css
   Reset · Variáveis CSS · Tipografia · Animações
═══════════════════════════════════════════════════════════ */

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

/* ── Design Tokens ── */
:root {
  --forest:       #0C3B28;
  --forest-mid:   #1A5C3E;
  --leaf:         #2D8653;
  --leaf-light:   #4CAF72;
  --gold:         #B8933A;
  --gold-light:   #D4AE62;
  --cream:        #F7F3ED;
  --cream-dark:   #EDE8DF;
  --white:        #FFFFFF;
  --ink:          #1A1A18;
  --ink-mid:      #3D3D38;
  --ink-soft:     #6B6B62;
  --ink-muted:    #9B9B90;
  --border:       rgba(12, 59, 40, 0.12);
  --border-strong:rgba(12, 59, 40, 0.25);

  /* Spacing scale */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  3rem;
  --space-xl:  5rem;
  --space-2xl: 7rem;

  /* Border radius */
  --radius-sm:  2px;
  --radius-md:  8px;
  --radius-full:100px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.7s ease;
}

/* ── Base ── */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Compensar navbar fixa */
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-overflow-scrolling: touch;
}

body {
  font-family: 'Outfit', sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 5.5rem);
  font-weight: 300;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  font-weight: 400;
}

h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  font-weight: 400;
}

h4 {
  font-size: 1.15rem;
  font-weight: 600;
}

p {
  font-weight: 300;
  color: var(--ink-mid);
}

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

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

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── Hero fade-up animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
}

.fade-up-1 { animation-delay: 0.1s; }
.fade-up-2 { animation-delay: 0.25s; }
.fade-up-3 { animation-delay: 0.4s; }
.fade-up-4 { animation-delay: 0.55s; }
