/* ==========================================================================
   Associação Natureza do Amor (ANA) — Design System & Main Styles
   Réplica Fiel do Dossiê Institucional e Blueprint de Marca
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Onest:wght@400;500;600;700&display=swap');

:root {
  /* Cores de Marca Oficiais */
  --color-primary:        #2E7D32;   /* Verde-folha primário */
  --color-primary-dark:   #1B5E20;   /* Verde escuro para hovers/gradientes */
  --color-primary-light:  #E8F5E9;   /* Fundo suave para badges/ícones */
  --color-primary-accent: #43A047;   /* Verde vibrante para destaques */

  /* Cores Institucionais Escuras */
  --color-ink:            #1B2A4A;   /* Azul-marinho institucional para títulos e footer */
  --color-ink-deep:       #0F1B30;   /* Azul-marinho profundo do rodapé */
  --color-ink-card:       #14233C;   /* Fundo escuro para cartões de contraste */

  /* Cores de Superfície */
  --color-surface:        #FFFFFF;
  --color-surface-soft:   #F4F5F6;   /* Cartões suaves, inputs e secções alternadas */
  --color-surface-faint:  #FBFBFB;
  --color-surface-line:   #EAECEE;   /* Divisórias e bordas sutis */

  /* Cores de Texto */
  --color-text:           #222222;   /* Texto principal de leitura */
  --color-text-muted:     #727272;   /* Texto secundário e parágrafos descritivos */
  --color-text-soft:      #4A4A4A;
  --color-text-faint:     #9E9E9E;
  --color-text-inverse:   #FFFFFF;

  /* Bordas e Sombras */
  --color-border-hairline: rgba(0, 0, 0, 0.08);
  --color-border-footer:   rgba(255, 255, 255, 0.12);
  --color-glass:           rgba(255, 255, 255, 0.88);
  --color-glass-dark:      rgba(15, 27, 48, 0.85);
  
  --shadow-sm:  0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md:  0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg:  0 16px 36px rgba(0, 0, 0, 0.09);
  --shadow-hover: 0 20px 40px rgba(46, 125, 50, 0.14);
  --shadow-focus: 0 0 0 4px rgba(46, 125, 50, 0.25);

  /* Gradientes Oficiais (Blueprint G1 a G8) */
  --gradient-g1: linear-gradient(220deg, rgba(27,42,74,0.20) 19%, rgba(27,42,74,0.60) 54%, rgba(27,42,74,0.80) 85%);
  --gradient-g2: linear-gradient(170deg, transparent 0%, transparent 72%, rgba(46,80,50,0.83) 98.5%, #2E7D32 100%);
  --gradient-g3: linear-gradient(139deg, transparent 44%, transparent 58%, #2E7D32 115%);
  --gradient-g4: linear-gradient(180deg, transparent 47%, rgba(0,0,0,0.9) 100%);
  --gradient-g5: linear-gradient(146deg, transparent 0%, transparent 67%, rgba(46,80,50,0.83) 94%, #2E7D32 100%);
  --gradient-g6: linear-gradient(180deg, transparent 32%, rgba(15,27,48,0.71) 74%, #0F1B30 113%);
  --gradient-g7: linear-gradient(0deg, transparent 51%, rgba(0,0,0,0.9) 100%);
  --watermark-opacity: 0.13;

  /* Raios de Curvatura Oficiais */
  --radius-pill:         66px;   /* Todos os botões pílula */
  --radius-nav:          54px;   /* Navbar flutuante desktop */
  --radius-card-xl:      32px;   /* Blocos grandes de destaque */
  --radius-card-lg:      24px;   /* Cartões grandes desktop */
  --radius-card-md:      20px;   /* Cartões médios / doação */
  --radius-card-sm:      16px;   /* Cartões menores */
  --radius-card-xs:      12px;   /* Imagens e inputs */
  --radius-tag:          10px;   /* Badges e tags */
  --radius-circle:       50%;

  /* Grelha & Content Container */
  --container-max:       1240px;
  --container-wide:      1360px;
  --gutter-desktop:      32px;
  --gutter-mobile:       20px;

  /* Espaçamento Vertical de Secções */
  --section-padding-y:   110px;
  --section-padding-tablet: 80px;
  --section-padding-mobile: 60px;

  /* Transições e Físicas */
  --ease-spring:         cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth:         cubic-bezier(0.32, 0.72, 0, 1);
  --transition-fast:     0.2s ease;
  --transition-normal:   0.35s var(--ease-smooth);
  --transition-slow:     0.7s var(--ease-spring);
}

/* ==========================================================================
   CSS Reset & Base Rules
   ========================================================================== */

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

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

body {
  font-family: 'Onest', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--color-text);
  background-color: var(--color-surface);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
}

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

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

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

ul, ol {
  list-style: none;
}

/* Acessibilidade: Skip link */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 24px;
  background: var(--color-primary);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  z-index: 9999;
  font-weight: 600;
  transition: top 0.2s ease;
}

.skip-to-content:focus {
  top: 20px;
}

/* Foco visível */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

/* ==========================================================================
   Tipografia Oficial
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Onest', sans-serif;
  font-weight: 500;
  letter-spacing: -0.028em;
  color: var(--color-ink);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 5vw + 1rem, 4rem); /* 40px mobile -> 64px desktop */
  line-height: 1.06;
}

h2 {
  font-size: clamp(1.875rem, 3.5vw + 0.5rem, 3rem); /* 30px mobile -> 48px desktop */
  line-height: 1.15;
}

h3 {
  font-size: clamp(1.625rem, 2.5vw + 0.5rem, 2.5rem); /* 26px mobile -> 40px desktop */
  line-height: 1.2;
}

h4 {
  font-size: 1.5rem; /* 24px */
  line-height: 1.3;
}

p, .body-text {
  color: var(--color-text-muted);
  font-weight: 400;
  font-size: 1.125rem; /* 18px */
  line-height: 1.65;
  text-wrap: pretty;
}

.body-large {
  font-size: clamp(1.125rem, 1vw + 0.75rem, 1.25rem); /* 18px - 20px */
  line-height: 1.7;
}

.body-small {
  font-size: 0.9375rem; /* 15px */
  line-height: 1.5;
}

.label-text {
  font-size: 0.875rem; /* 14px */
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ==========================================================================
   Layout & Content Containers
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter-desktop);
  padding-right: var(--gutter-desktop);
}

.container-wide {
  width: 100%;
  max-width: var(--container-wide);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter-desktop);
  padding-right: var(--gutter-desktop);
}

.section {
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
  position: relative;
}

.section-soft {
  background-color: var(--color-surface-soft);
}

.section-dark {
  background-color: var(--color-ink);
  color: var(--color-surface);
}

.section-deep {
  background-color: var(--color-ink-deep);
  color: var(--color-surface);
}

/* ==========================================================================
   Marcação Visual dos Títulos de Secção (Réplica Fiel do PDF)
   Folha/pílula verde elegante ao lado do título H2
   ========================================================================== */

.section-header {
  margin-bottom: 54px;
}

.section-header.text-center {
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.title-with-leaf {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.section-header.text-center .title-with-leaf {
  justify-content: center;
  align-items: center;
}

.leaf-mark {
  display: inline-block;
  width: 22px;
  height: 38px;
  background-color: var(--color-primary);
  border-radius: 0 16px 0 16px;
  flex-shrink: 0;
  margin-top: 6px;
}

.section-subtitle {
  margin-top: 14px;
  font-size: 1.1875rem;
  color: var(--color-text-muted);
  max-width: 720px;
}

.section-dark .section-subtitle,
.section-deep .section-subtitle {
  color: rgba(255, 255, 255, 0.75);
}

.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-deep h2,
.section-deep h3,
.section-deep h4 {
  color: #FFFFFF;
}

/* Responsividade Global */
@media (max-width: 1024px) {
  :root {
    --section-padding-y: var(--section-padding-tablet);
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding-y: var(--section-padding-mobile);
    --gutter-desktop: var(--gutter-mobile);
  }

  .leaf-mark {
    width: 16px;
    height: 28px;
    border-radius: 0 12px 0 12px;
    margin-top: 4px;
  }
}
