/* global.css: tokens, reset, tipografia, botões e formulários */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --c-bg:            #1c1c1c;
  --c-bg-alt:        #242020;
  --c-accent:        #4a9ab5;
  --c-accent-strong: #2a7a96;
  --c-on-accent:     #1c1c1c;
  --c-text:          #f5ede6;
  --c-text-soft:     #c8c4bc;
  --c-sub:           #7a9ea8;
  --c-border:        rgba(74, 154, 181, .2);
  --c-line-light:    rgba(245, 237, 230, .35);
  --c-erro:          #e0705a;
  --c-ok:            #6cc08f;
  --c-whatsapp:      #25d366;
  --c-white:         #fff;

  --ff-d: 'Cormorant Garamond', Georgia, serif;
  --ff-b: 'DM Sans', system-ui, sans-serif;

  --radius:    14px;
  --radius-sm: 10px;
  --nav-h:     84px;
}
@media (max-width: 600px) {
  :root { --nav-h: 72px; }
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--ff-b);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img    { display: block; max-width: 100%; height: auto; }
a      { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ── Tipografia ── */
.display {
  font-family: var(--ff-d);
  font-weight: 600;
  line-height: 1.1;
}
.display-lg { font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -.01em; }
.display-md { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.display-sm { font-size: clamp(1.5rem, 2.6vw, 2rem); }

.eyebrow {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--c-accent);
}

.lead {
  font-size: 1.1rem;
  color: var(--c-text-soft);
  line-height: 1.75;
  max-width: 580px;
}

.link {
  font-weight: 600;
  color: var(--c-accent);
  border-bottom: 1px solid transparent;
}
.link:hover, .link:focus-visible { border-bottom-color: var(--c-accent); }

/* ── Botões ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: .88rem;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--c-accent);
  color: var(--c-on-accent);
  border-color: var(--c-accent);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--c-accent-strong);
  border-color: var(--c-accent-strong);
  color: var(--c-white);
}
.btn-outline {
  background: transparent;
  color: var(--c-text);
  border-color: var(--c-line-light);
}
.btn-outline:hover,
.btn-outline:focus-visible { border-color: var(--c-text); }
.btn-sm    { padding: 8px 16px; font-size: .8rem; }
.btn-lg    { padding: 14px 30px; font-size: .94rem; }
.btn-block { width: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: background-color .2s, border-color .2s, color .2s; }
}

/* ── Formulários (contato e pagamento) ── */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .82rem; font-weight: 600; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--c-bg-alt);
  border: 2px solid var(--c-border);
  border-radius: var(--radius-sm);
  font-size: .92rem;
  outline: none;
  appearance: none;
}
.field select { cursor: pointer; }
.field select option { background: var(--c-bg-alt); }
.field textarea { resize: vertical; min-height: 130px; }
.field ::placeholder { color: var(--c-sub); opacity: .7; }
.field :focus { border-color: var(--c-accent); }
.field [aria-invalid="true"] { border-color: var(--c-erro); }
@media (prefers-reduced-motion: no-preference) {
  .field input, .field select, .field textarea { transition: border-color .2s; }
}

.field-hint  { font-size: .76rem; color: var(--c-sub); }
.field-error { font-size: .78rem; color: var(--c-erro); }

/* ── Botão flutuante do WhatsApp ── */
.wa-btn {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 200;
  width: 56px; height: 56px;
  background: var(--c-whatsapp);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.wa-btn:focus-visible { outline: 2px solid var(--c-whatsapp); outline-offset: 3px; }
.wa-btn svg { width: 26px; height: 26px; fill: var(--c-white); }

/* ── Aviso de demonstração ── */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 300;
  width: max-content;
  max-width: min(92vw, 420px);
  padding: 12px 18px;
  background: var(--c-bg-alt);
  border: 1px solid var(--c-accent);
  border-radius: var(--radius);
  font-size: .86rem;
  line-height: 1.5;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: no-preference) {
  .toast { transition: opacity .25s, transform .25s; }
}

@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .form-row { grid-template-columns: 1fr; }
  .wa-btn { bottom: 80px; right: 16px; width: 48px; height: 48px; }
}
