/* Reset + estilos base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-on-light);
  background: var(--cream-50);
  -webkit-font-smoothing: antialiased;
}

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

/* Os <symbol> do sprite não herdam fill/stroke do <svg> pai que os define — sem isto todo ícone renderiza preenchido de preto. */
svg[aria-hidden="true"] {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

button {
  font: inherit;
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 var(--space-4);
  font-weight: 700;
}

h1 {
  font-size: clamp(2.25rem, 5vw + 1rem, 3.75rem);
}

h2 {
  font-size: clamp(1.75rem, 3vw + 1rem, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 1.5vw + 0.8rem, 1.5rem);
}

p {
  margin: 0 0 var(--space-4);
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 3px solid var(--accent-teal);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

@media (min-width: 768px) {
  .container {
    padding-inline: var(--space-8);
  }
}

.section {
  padding-block: var(--space-16);
}

@media (min-width: 900px) {
  .section {
    padding-block: var(--space-24);
  }
}

.section--soft {
  background: var(--cream-100);
}

.section--dark-alt {
  background: var(--bg-dark-2);
}

.section--dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}

.section--dark h2,
.section--dark h3 {
  color: var(--text-on-dark);
}

.section--dark .section-heading p {
  color: var(--text-on-dark-muted);
}

.text-gradient {
  background: var(--gradient-flame);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.section-heading {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-heading p {
  color: var(--text-on-light-muted);
  font-size: 1.05rem;
}

.section-heading .eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--gradient-flame);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  margin-bottom: var(--space-2);
}

.sr-only {
  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: absolute;
  left: var(--space-4);
  top: -100px;
  background: var(--neutral-0);
  color: var(--text-on-light);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top var(--duration-fast) var(--ease-out);
}

.skip-link:focus {
  top: var(--space-4);
}

/* Placeholder de conteúdo real pendente (métricas, depoimentos, fotos) — nunca usar número/depoimento inventado, sempre este padrão visível */
.placeholder-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
  background: rgba(255, 122, 26, 0.14);
  color: var(--flame-orange);
  border: 1px dashed var(--flame-orange);
}

.section--dark .placeholder-pill {
  background: rgba(255, 201, 60, 0.12);
  color: var(--flame-yellow);
  border-color: var(--flame-yellow);
}

/* Reveal on scroll (js/shared/scroll-reveal.js liga .reveal-ready no <html> e aplica .is-visible).
   Seletor com html.reveal-ready pra vencer o `transition` curto de hover dos cards em components.css —
   sem isso a opacidade não era animada e os cards "piscavam" na tela. */
html.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 40px, 0) scale(0.98);
  transition: opacity 0.9s var(--ease-reveal), transform 1.1s var(--ease-reveal);
  will-change: opacity, transform;
}

html.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.hero__grid > div:first-child > *,
.page-hero .container > *,
.hero__figure {
  animation: hero-in 1s var(--ease-reveal) both;
}

.hero__grid > div:first-child > :nth-child(2),
.page-hero .container > :nth-child(2) {
  animation-delay: 0.1s;
}

.hero__grid > div:first-child > :nth-child(3),
.page-hero .container > :nth-child(3) {
  animation-delay: 0.2s;
}

.hero__grid > div:first-child > :nth-child(4) {
  animation-delay: 0.3s;
}

.hero__grid > div:first-child > :nth-child(5) {
  animation-delay: 0.4s;
}

.hero__figure {
  animation-duration: 1.3s;
  animation-delay: 0.25s;
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

[hidden] {
  display: none !important;
}
