/* Fontes alojadas no próprio site (sem pedidos a terceiros, mais rápido em dados móveis). */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/poppins-400.woff') format('woff'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/poppins-500.woff') format('woff'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/poppins-700.woff') format('woff'); }
@font-face { font-family: 'Lora'; font-style: italic; font-weight: 500; font-display: swap; src: url('/assets/fonts/lora-italic-500.woff') format('woff'); }

:root {
  /* Marca Owina: vermelho da fita, preto da tinta, ouro dos filetes, manjericão. */
  --red: #b3151c;
  --red-dark: #8e1016;
  --red-soft: #f7e4e2;
  --ink: #1e1a18;
  --gold: #e2a32b;
  --gold-soft: #f3c767;
  --paper: #f6f3ee;
  --card: #ffffff;
  --line: #e7dfd3;
  --muted: #6b625b;
  --basil: #3f7a2b;
  --basil-soft: #e3eedc;

  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-script: 'Lora', Georgia, 'Times New Roman', serif;

  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 12px;
  --tap: 48px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
html.is-locked, html.is-locked body { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, p { margin: 0; }
img, video, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 22px; height: 22px; flex: none; }

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

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 0 22px;
  border: 2px solid transparent; border-radius: 999px;
  font-weight: 700; font-size: 15px; text-decoration: none; text-align: center;
  transition: background-color .15s, color .15s, border-color .15s, transform .1s;
}
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--paper); }
.btn--outline { background: transparent; color: var(--red); border-color: var(--red); }
.btn--outline:hover { background: var(--red-soft); }
.btn--ghost { background: transparent; color: var(--muted); }
.btn--ghost:hover { color: var(--red); background: var(--red-soft); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-soft); }
.btn--block { width: 100%; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn--danger { background: transparent; color: var(--red); border-color: var(--line); }
.btn--danger:hover { border-color: var(--red); background: var(--red-soft); }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink);
  position: relative; text-decoration: none; transition: background-color .15s, border-color .15s;
}
.icon-btn:hover { border-color: var(--red); color: var(--red); }

/* ---------- Campos de formulário ---------- */
.field { display: grid; gap: 6px; }
.field > label, .field > .label { font-size: 13px; font-weight: 500; color: var(--ink); }
.field .hint { font-size: 12px; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: var(--tap); padding: 0 14px;
  border: 1.5px solid var(--line); border-radius: 14px; background: #fff;
  font-size: 16px; /* 16px evita o zoom automático no iPhone */
  transition: border-color .15s, box-shadow .15s;
}
.textarea { padding: 12px 14px; min-height: 92px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.input[aria-invalid='true'], .select[aria-invalid='true'], .textarea[aria-invalid='true'] { border-color: var(--red); }
.field-error { font-size: 12px; font-weight: 500; color: var(--red); }
