/* =============================================
   GLOBALS.CSS — Design Tokens + Reset + Base
   Alana Amorim | Nutricionista
   ============================================= */

:root {
  /* === Paleta Oficial Alana Amorim === */
  --color-primary:        #a9488b; /* Roxo vibrante – identidade da marca */
  --color-primary-light:  #c46ba0; /* Hover dos botões primários */
  --color-primary-dark:   #862d6d; /* Versão escura */
  --color-secondary:      #89ad5b; /* Verde natural – nutrição e saúde */
  --color-secondary-dark: #6a8f42; /* Verde escuro */
  --color-accent:         #dbecc3; /* Verde claro – superfícies e fundos */
  --color-accent-mid:     #c6e0a8; /* Verde médio */
  --color-background:     #fdf9fc; /* Off-white levemente rosado */
  --color-surface:        #ffffff;
  --color-text:           #1e1e1e;
  --color-muted:          #666666;
  --color-border:         #ecddf4;

  /* === Tipografia === */
  --font-primary:   'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-secondary: 'Playfair Display', Georgia, serif;

  /* === Radii === */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   32px;
  --radius-full: 9999px;

  /* === Sombras === */
  --shadow-sm:  0 1px 3px rgba(169, 72, 139, 0.08);
  --shadow-md:  0 4px 16px rgba(169, 72, 139, 0.12);
  --shadow-lg:  0 12px 40px rgba(169, 72, 139, 0.16);
  --shadow-xl:  0 24px 64px rgba(169, 72, 139, 0.20);

  /* === Layout === */
  --container-width:   1200px;
  --container-padding: 1.5rem;
  --navbar-height:     80px;

  /* === Transições === */
  --transition-fast:   0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow:   0.5s cubic-bezier(0.16, 1, 0.3, 1);

  /* === Gradientes === */
  --gradient-primary:  linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  --gradient-hero:     linear-gradient(135deg, #fdf9fc 0%, #f5e8f5 100%);
  --gradient-section:  linear-gradient(180deg, var(--color-background) 0%, var(--color-accent) 100%);
}

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

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

body {
  font-family: var(--font-primary);
  color: var(--color-text);
  background-color: var(--color-background);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main, footer {
  overflow-x: hidden;
  width: 100%;
}

/* =============================================
   TIPOGRAFIA BASE
   ============================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  line-height: 1.2;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; font-family: var(--font-primary); font-weight: 600; }

p {
  margin-bottom: 1rem;
  color: var(--color-muted);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

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

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

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

/* =============================================
   ACESSIBILIDADE
   ============================================= */
:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
