/* Fonte central do design. Breakpoints: 48rem (768px),
   64rem (1024px: navegação desktop e card), 80rem (1280px: seis posts por linha).
   Custom properties não são usadas nas condições de @media.
   Dimensões de imagens, proporções e regras estruturais ficam nos componentes. */
:root {
  --color-primary: #006338;
  --color-secondary: #00864c;
  --color-accent: #c62832;
  --color-accent-hover: #a51e28;
  --color-primary-hover: #004b2b;
  --color-mint: #b6ffdb;
  --color-green-medium: #44b77b;
  --text-primary: #052e20;
  --text-secondary: #52635b;
  --text-inverse: #ffffff;
  --background-page: #ffffff;
  --background-soft: #f2fbf6;
  --surface: #ffffff;
  --surface-input: #fafcfb;
  --border-color: #7a8e83;
  --border-subtle: #e3ebe6;
  --border-on-image: rgb(255 255 255 / 55%);
  --border-on-primary: rgb(255 255 255 / 30%);
  --color-error: #a51e28;
  --color-focus: #125acc;
  --color-backdrop: rgb(0 28 16 / 70%);
  --hero-overlay: linear-gradient(90deg, rgb(0 64 36 / 96%) 0%, rgb(0 64 36 / 85%) 38%, rgb(0 64 36 / 38%) 70%, rgb(0 64 36 / 12%) 100%);
  --hero-overlay-mobile: linear-gradient(90deg, rgb(0 64 36 / 94%) 0%, rgb(0 64 36 / 76%) 100%);
  --font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  --font-small: .8125rem;
  --font-caption: .875rem;
  --font-body: 1rem;
  --font-lead: clamp(1.0625rem, 1rem + .3vw, 1.25rem);
  --font-h1: clamp(2.125rem, .125rem + 10vw, 2.375rem);
  --font-h2: clamp(1.875rem, 1.35rem + 1.3vw, 2.625rem);
  --font-h3: clamp(1.125rem, 1rem + .2vw, 1.375rem);
  --weight-regular: 400;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-heavy: 800;
  --line-body: 1.65;
  --line-heading: 1.2;
  --line-hero: 1.12;
  --line-lead: 1.5;
  --tracking-heading: -.035em;
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --gutter: clamp(1.25rem, 3vw, 2.5rem);
  --section-space: clamp(3rem, 5vw, 5rem);
  --container-max: 75rem;
  --form-max: 25rem;
  --hero-content-max: 40rem;
  --brand-slot-width: 14rem;
  --brand-logo-width: 9rem;
  --social-slide-max: 20rem;
  --partner-logo-height: 2.75rem;
  --partner-logo-width: 11rem;
  --partner-gap: 2rem;
  --content-wide: 65ch;
  --content-lead: 43ch;
  --icon-size: 1.25rem;
  --icon-size-large: 1.5rem;
  --hero-min-height: 35rem;
  --header-min-height: 7rem;
  --control-height: 3rem;
  --touch-target: 2.75rem;
  --radius-sm: .25rem;
  --radius-md: .5rem;
  --radius-pill: 99rem;
  --border-width: 1px;
  --focus-width: 3px;
  --focus-offset: 3px;
  --shadow-card: 0 3px 16px rgb(5 46 32 / 8%);
  --shadow-card-raised: 0 10px 28px rgb(5 46 32 / 14%);
  --shadow-panel: 0 12px 36px rgb(0 28 16 / 16%);
  --shadow-header: 0 2px 10px rgb(5 46 32 / 6%);
  --shadow-control-hover: 0 6px 14px rgb(5 46 32 / 14%);
  /* Controles: pressão rápida e retorno padrão; mídia/menu mantêm suas durações. */
  --duration-fast: 120ms;
  --duration-control: 220ms;
  --duration-card: 260ms;
  --duration-image: 300ms;
  --duration-menu: 230ms;
  --duration-celebration: 2000ms;
  --ease-standard: ease;
  --ease-control: cubic-bezier(0.22, 1, 0.36, 1);
  --motion-control-lift: 2px;
  --motion-icon-shift: 3px;
  --motion-press-scale: .98;
  --motion-control-zoom: 1.04;
  --motion-lift: var(--space-1);
  --motion-zoom: 1.03;
  --motion-menu-offset: var(--space-2);
  --scroll-behavior: smooth;
  --z-header: 20;
  --z-skip: 30;
}
@media (min-width: 48rem) {
  :root { --font-h1: clamp(2.375rem, 1.35rem + 3.25vw, 4.5rem); --partner-logo-height: 3.5rem; --partner-logo-width: 14rem; --partner-gap: 4rem; }
}
@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-fast: 0ms;
    --duration-control: 0ms;
    --duration-card: 0ms;
    --duration-image: 0ms;
    --duration-menu: 0ms;
    --duration-celebration: 0ms;
    --motion-control-lift: 0px;
    --motion-icon-shift: 0px;
    --motion-press-scale: 1;
    --motion-control-zoom: 1;
    --motion-lift: 0px;
    --motion-zoom: 1;
    --motion-menu-offset: 0px;
    --scroll-behavior: auto;
  }
}
