/* ===================================================================
   base.css: tokens, reset, tipografia, header e footer.
   Substitui o que o Tailwind (preflight + index.css) entregava no site
   React: mesmo resultado visual, escrito a mao, sem build.
   Mobile first. Gutter de 16 px (24 px a partir de 640, 32 e 48 nos maiores).
   =================================================================== */

:root {
  --bone: #fafaf8;
  --ink: #0a0a0a;
  --sand: #f4efe6;
  --warm: #efe7d8;
  --line: #e5e5e5;
  --terracota: #c2613e;
  --terracota-dark: #a94f30;
  --radius: 0.75rem;
  --font-serif: 'Fraunces', 'Instrument Serif', Georgia, serif;
  --font-sans: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --gutter: 16px;
}

/* ---------- Reset (port do preflight) ---------- */

*,
::before,
::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: var(--line);
}
html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  font-family: var(--font-sans);
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body {
  margin: 0;
  line-height: inherit;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-sans);
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  overflow-x: clip;
  width: 100%;
}
hr { height: 0; color: inherit; border-top-width: 1px; }
abbr:where([title]) { text-decoration: underline dotted; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
a { color: inherit; text-decoration: inherit; }
b, strong { font-weight: bolder; }
code, kbd, samp, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace; font-size: 1em; }
small { font-size: 80%; }
sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
sub { bottom: -0.25em; }
sup { top: -0.5em; }
table { text-indent: 0; border-color: inherit; border-collapse: collapse; }
button, input, optgroup, select, textarea {
  font-family: inherit;
  font-feature-settings: inherit;
  font-size: 100%;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
}
button, select { text-transform: none; }
button, input:where([type='button']), input:where([type='reset']), input:where([type='submit']) {
  -webkit-appearance: button;
  background-color: transparent;
  background-image: none;
}
:-moz-focusring { outline: auto; }
:-moz-ui-invalid { box-shadow: none; }
progress { vertical-align: baseline; }
::-webkit-inner-spin-button, ::-webkit-outer-spin-button { height: auto; }
[type='search'] { -webkit-appearance: textfield; outline-offset: -2px; }
::-webkit-search-decoration { -webkit-appearance: none; }
::-webkit-file-upload-button { -webkit-appearance: button; font: inherit; }
summary { display: list-item; }
blockquote, dl, dd, h1, h2, h3, h4, h5, h6, hr, figure, p, pre { margin: 0; }
fieldset { margin: 0; padding: 0; }
legend { padding: 0; }
ol, ul, menu { list-style: none; margin: 0; padding: 0; }
dialog { padding: 0; }
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { opacity: 1; color: #9ca3af; }
button, [role='button'] { cursor: pointer; }
:disabled { cursor: default; }
img, svg, video, canvas, audio, iframe, embed, object { display: block; vertical-align: middle; }
img, video { max-width: 100%; height: auto; }
[hidden]:where(:not([hidden='until-found'])) { display: none; }

/* ---------- Tipografia base ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-feature-settings: 'ss01', 'ss02';
  letter-spacing: -0.025em;
}
::selection { background: var(--ink); color: var(--bone); }
.text-balance { text-wrap: balance; }
.text-pretty { text-wrap: pretty; }

/* ---------- Container ---------- */

.container {
  margin-inline: auto;
  width: 100%;
  max-width: 1240px;
  padding-inline: 24px;
}
@media (min-width: 640px) { .container { padding-inline: 32px; } }
@media (min-width: 1024px) { .container { padding-inline: 48px; } }

/* ---------- Botao (port de ui/Button.tsx, variante primaria) ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding-inline: 28px;
  border-radius: 999px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--bone);
  background: linear-gradient(to bottom, #ce6e48, #b5552f);
  box-shadow: 0 10px 28px -10px rgba(181, 85, 47, 0.55);
  transition: all 0.3s cubic-bezier(0, 0, 0.2, 1);
  will-change: transform;
}
.btn--sm { height: 40px; padding-inline: 20px; font-size: 13px; }
.btn:hover { box-shadow: 0 16px 36px -10px rgba(181, 85, 47, 0.7); filter: brightness(1.04); transform: translateY(-1px); }
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: 2px solid transparent; box-shadow: 0 0 0 2px var(--bone), 0 0 0 4px var(--ink); }

/* ---------- Header (port de sections/Header.tsx) ---------- */

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.site-header--scrolled {
  background: rgba(250, 250, 248, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: rgba(10, 10, 10, 0.06);
}
.site-header__in { display: flex; height: 64px; align-items: center; justify-content: space-between; }
.site-header__brand { font-family: var(--font-serif); font-size: 20px; line-height: 28px; letter-spacing: -0.025em; color: var(--ink); }

/* ---------- Footer (port de sections/Footer.tsx) ---------- */

.site-footer {
  border-top: 1px solid rgba(250, 250, 248, 0.1);
  background: var(--ink);
  color: rgba(250, 250, 248, 0.7);
  padding-block: 64px;
}
.site-footer__grid { display: grid; gap: 48px; }
.site-footer__brand { font-family: var(--font-serif); font-size: 24px; line-height: 32px; letter-spacing: -0.025em; color: var(--bone); }
.site-footer__desc { margin-top: 16px; max-width: 28rem; font-size: 14px; line-height: 1.625; color: rgba(250, 250, 248, 0.6); }
.site-footer__links { display: grid; gap: 12px; font-size: 14px; line-height: 20px; }
.site-footer__links a { color: rgba(250, 250, 248, 0.7); transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1); }
.site-footer__links a:hover { color: var(--bone); }
.site-footer__legal { margin-top: 56px; border-top: 1px solid rgba(250, 250, 248, 0.1); padding-top: 40px; }
.site-footer__disclaimer { font-size: 12px; line-height: 1.625; color: rgba(250, 250, 248, 0.45); }
.site-footer__copy { margin-top: 32px; font-size: 12px; line-height: 16px; color: rgba(250, 250, 248, 0.4); }
@media (min-width: 640px) {
  .site-footer { padding-block: 80px; }
  .site-footer__links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .site-footer__grid { grid-template-columns: 1.4fr 1fr; gap: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .site-header { transition: none; }
}
