:root {
  --color-brand-lime: #c1e968;
  --color-action-hover: #9ff23f;
  --color-brand-olive: #48552b;
  --color-brand-olive-dark: #2d381c;
  --color-whatsapp: #1fbf5b;
  --color-whatsapp-hover: #1aa84f;
  --color-bg-warm: #fbf8f1;
  --color-panel-warm: #fdfbf6;
  --color-ink: #20251e;
  --color-muted: #5e665b;
  --color-deep-green: #07130c;
  --color-deep-green-soft: #142016;
  --color-border: rgba(72, 85, 43, 0.18);
  --color-white-warm: #fffdf8;
  --shadow-soft: 0 18px 50px rgba(38, 45, 28, 0.1);
  --radius-small: 12px;
  --radius-medium: 22px;
  --radius-large: 34px;
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 52px);
  --section-space: clamp(76px, 10vw, 144px);
  --font-sans: "Segoe UI", Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-editorial: Georgia, "Times New Roman", serif;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
  scroll-padding-top: 0;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--color-bg-warm);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.admin-bar {
  --admin-bar-offset: 32px;
}

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

img {
  height: auto;
}

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

button,
summary {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

h1,
h2,
h3,
p {
  margin-block-start: 0;
}

h1,
h2,
h3 {
  color: inherit;
  font-weight: 760;
  line-height: 1.08;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  letter-spacing: -0.045em;
}

h3 {
  font-size: clamp(1.35rem, 2vw, 2rem);
}

ul,
ol {
  margin-block-start: 0;
}

.container {
  width: min(calc(100% - (2 * var(--gutter))), var(--container));
  margin-inline: auto;
}

main > section[id],
footer[id] {
  scroll-margin-top: 86px;
}

@media (min-width: 992px) {
  html {
    scroll-padding-top: 0;
  }

  main > section[id],
  footer[id] {
    scroll-margin-top: 86px;
  }
}

/*
 * Desktop: concentra todas as seções no mesmo eixo visual. O valor máximo
 * corresponde a 2,5 vezes o gutter desktop anterior (52px), sem alterar a
 * área útil de tablets e celulares.
 */
@media (min-width: 992px) {
  :root {
    --gutter: clamp(96px, 10vw, 130px);
  }
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 10000;
  inset: 12px auto auto 12px;
  padding: 10px 16px;
  border-radius: 8px;
  background: #fff;
  color: #111;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--color-brand-lime);
  outline-offset: 4px;
}

::selection {
  background: var(--color-brand-lime);
  color: var(--color-brand-olive-dark);
}

@media (max-width: 782px) {
  body.admin-bar {
    --admin-bar-offset: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
