/* Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
a, button, summary, input, select, textarea { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: clamp(2rem, 5vw, 3.75rem); }
h3 { font-size: 1.25rem; }
p { color: var(--muted); }

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

/* Layout */
.container {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 48px);
}
.section { padding-block: var(--section-pad); }
.section__head { display: grid; gap: var(--space-4); margin-bottom: var(--space-8); max-width: 760px; }

/* Tipografia utilitária */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--text);
}
.label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 0 var(--space-5);
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-weight: 500;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
  white-space: nowrap;
}
.btn--primary { background: var(--text); color: var(--bg); }
.btn--primary:hover { background: #fff; }
.btn--secondary { border-color: var(--line); color: var(--text); background: transparent; }
.btn--secondary:hover { border-color: var(--muted); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  transition: background-color .25s;
}
.card:hover { background: var(--surface-2); }

/* Imagens em escala de cinza */
.photo { filter: grayscale(1) contrast(1.1); object-fit: cover; width: 100%; height: 100%; }

/* Revelação ao rolar */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Acessibilidade */
.visually-hidden {
  position: absolute !important;
  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: 16px; top: -100px; z-index: 100;
  background: var(--text); color: var(--bg);
  padding: var(--space-3) var(--space-4); border-radius: var(--radius-pill);
}
.skip-link:focus { top: 16px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
