/* Fontes do sistema — sem nenhuma dependência de CDN (nem para fontes). */
:root {
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

:root {
  --black: #0A0A0A;
  --graphite: #16171A;
  --elevated: #1E2023;
  --white: #FFFFFF;
  --gold: #D4AF37;
  --gold-light: #E7CA6B;
  --gold-dark: #A8842A;
  --text-primary: #F5F5F4;
  --text-secondary: #A0A0A0;
  --border: rgba(255,255,255,0.09);
  --danger: #E5484D;
  --success: #34D67A;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
body {
  background: var(--black);
  color: var(--text-primary);
  font-family: var(--font-body);
  scroll-behavior: smooth;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase; margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
img { max-width: 100%; display: block; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 0.85rem 1.4rem; border-radius: 999px; font-weight: 700; font-size: 0.9rem; transition: transform 0.15s ease, background 0.15s ease, opacity 0.15s ease; white-space: nowrap; }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--gold); color: #1A1300; }
.btn-primary:hover:not(:disabled) { background: var(--gold-light); }
.btn-whatsapp { background: #1DB954; color: #06170D; }
.btn-whatsapp:hover:not(:disabled) { background: #24E065; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text-primary); }
.btn-outline:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); }
.btn-danger { background: transparent; border: 1px solid rgba(229,72,77,0.4); color: var(--danger); }
.btn-danger:hover:not(:disabled) { background: rgba(229,72,77,0.1); }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.8rem; }
.btn-lg { padding: 1rem 1.6rem; font-size: 1rem; flex: 1; }
.btn-block { width: 100%; }

.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 999px; color: var(--text-primary); position: relative; transition: background 0.15s ease, color 0.15s ease; }
.icon-btn:hover { background: var(--elevated); }
.icon-btn.is-active { color: var(--gold); }

.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.field label { font-size: 0.75rem; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.03em; }
.field input, .field select, .field textarea {
  background: var(--elevated); border: 1px solid var(--border); color: var(--text-primary);
  padding: 0.75rem 0.9rem; border-radius: 10px; font-size: 0.95rem;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field textarea { resize: vertical; min-height: 80px; }
.field-hint { font-size: 0.72rem; color: var(--text-secondary); }
.field-error { font-size: 0.75rem; color: var(--danger); }

.page-container { max-width: 1280px; margin: 0 auto; padding: 0 1.25rem; }
.skeleton { border-radius: var(--radius); background: linear-gradient(100deg, var(--graphite) 30%, var(--elevated) 50%, var(--graphite) 70%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); background: var(--elevated); border: 1px solid var(--border); padding: 0.75rem 1.25rem; border-radius: 999px; font-size: 0.85rem; box-shadow: var(--shadow); z-index: 200; display: flex; align-items: center; gap: 0.5rem; }
.toast.is-error { border-color: rgba(229,72,77,0.5); color: #ffb3b5; }
.toast.is-success { border-color: rgba(52,214,122,0.5); color: #b6f5cf; }

.spin { animation: spin 1s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

@media (min-width: 700px) {
  .page-container { padding: 0 2rem; }
}
