/* ===== Argos — globais Client-First da home =====
   Contrato: DESIGN-SYSTEM.md. Carrega depois de /lp/styles.css (tokens) e
   antes de morar.css / leilao.css (componentes). Só a home usa este arquivo.

   Aqui ficam apenas classes globais: estrutura, tipografia, botões, cards,
   selos e campos. Nada de componente de seção. */

:root {
  /* Sombras e anel de foco da marca (derivados de --violet) */
  --shadow-brand: 0 1px 3px rgba(124, 58, 237, 0.2);
  --shadow-brand-hover: 0 6px 20px rgba(124, 58, 237, 0.32);
  --focus-ring: 0 0 0 3px rgba(124, 58, 237, 0.14);
}

/* ---------- Estrutura ---------- */

.padding-global { padding-left: 24px; padding-right: 24px; }

.container-small,
.container-medium,
.container-large { width: 100%; margin-left: auto; margin-right: auto; }
.container-small { max-width: 800px; }
.container-medium { max-width: 960px; }
.container-large { max-width: 1120px; }

.max-width-small { width: 100%; max-width: 640px; }

.padding-section-small { padding-top: 64px; padding-bottom: 64px; }
.padding-section-medium { padding-top: 96px; padding-bottom: 96px; }
.padding-section-large { padding-top: 128px; padding-bottom: 128px; }

.background-color-primary { background-color: var(--white); }
.background-color-secondary { background-color: var(--bg-soft); }

@media (max-width: 640px) {
  .padding-global { padding-left: 20px; padding-right: 20px; }
  .padding-section-small { padding-top: 48px; padding-bottom: 48px; }
  .padding-section-medium { padding-top: 64px; padding-bottom: 64px; }
  .padding-section-large { padding-top: 80px; padding-bottom: 80px; }
}

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

.heading-style-h1,
.heading-style-h2,
.heading-style-h3,
.heading-style-h4 {
  font-family: var(--font-display);
  color: var(--text);
  text-wrap: balance;
}

.heading-style-h1 {
  font-size: clamp(34px, 4.1vw, 54px);
  /* celular: 30–34px (ver media abaixo) */
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.025em;
}

.heading-style-h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.heading-style-h3 {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.heading-style-h4 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.text-size-large { font-size: 18px; line-height: 1.75; }
@media (max-width: 640px) {
  .heading-style-h1 { font-size: clamp(30px, 7.9vw, 34px); line-height: 1.16; }
  .text-size-large { font-size: 17px; line-height: 1.7; }
}
.text-size-medium { font-size: 16px; line-height: 1.6; }
.text-size-regular { font-size: 15px; line-height: 1.55; }
.text-size-small { font-size: 13px; line-height: 1.5; }

.text-style-tagline {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--violet);
}

.text-weight-medium { font-weight: 500; }
.text-weight-semibold { font-weight: 600; }
.text-weight-bold { font-weight: 700; }

.text-color-primary { color: var(--text); }
.text-color-secondary { color: var(--text-2); }
.text-color-muted { color: var(--text-3); }
.text-color-brand { color: var(--violet); }

.text-align-center { text-align: center; }

/* Destaque dentro de texto corrido */
.text-size-large strong,
.text-size-medium strong,
.text-size-regular strong { color: var(--text); font-weight: 600; }

/* ---------- Botões: formato único, pílula ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-round);
  background-color: var(--violet);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: var(--shadow-brand);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 150ms ease, color 150ms ease,
              border-color 150ms ease, box-shadow 150ms ease,
              transform 160ms var(--ease-out);
}

.button svg { width: 16px; height: 16px; flex-shrink: 0; }

.button:active { transform: scale(0.97); }
.button:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }
.button:disabled,
.button[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; }

.button.is-small { height: 40px; padding: 0 18px; font-size: 14px; }
.button.is-large { height: 52px; padding: 0 32px; font-size: 15px; }

.button.is-secondary {
  background-color: var(--white);
  border-color: var(--border);
  color: var(--text);
  box-shadow: none;
}

.button.is-inverse {
  background-color: var(--white);
  border-color: var(--white);
  color: var(--violet);
  box-shadow: none;
}
.button.is-inverse:focus-visible { outline-color: var(--white); }

.button.is-text {
  height: auto;
  padding: 0;
  background-color: transparent;
  border-color: transparent;
  color: var(--violet);
  box-shadow: none;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: color 150ms ease, text-decoration-color 150ms ease,
              transform 160ms var(--ease-out);
}

/* Hover único para todos os botões (principal, is-secondary e is-inverse):
   o botão fica roxo cheio com texto branco. Mesmo estado final em qualquer
   variação; só o ponto de partida muda. is-text é link e só ganha sublinhado. */
@media (hover: hover) and (pointer: fine) {
  .button:not(.is-text):hover:not(:disabled) {
    background-color: var(--violet-hover);
    border-color: var(--violet-hover);
    color: var(--white);
    box-shadow: var(--shadow-brand-hover);
  }
  .button.is-text:hover:not(:disabled) {
    color: var(--violet-hover);
    text-decoration-color: currentColor;
  }
}

/* ---------- Card ---------- */

.card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-sm);
}

/* Bloco de destaque não clicável (ex.: contato do FAQ). */
.card.is-brand {
  background-color: var(--violet-bg);
  border-color: var(--violet-border);
  box-shadow: none;
}

.card.is-hoverable {
  cursor: pointer;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .card.is-hoverable:hover {
    border-color: var(--violet-border);
    box-shadow: var(--shadow-md);
  }
}

/* ---------- Selo ---------- */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid transparent;
  border-radius: var(--radius-round);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.tag .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; background: currentColor; }

.tag.is-brand { background-color: var(--violet-bg); color: var(--violet); }
.tag.is-success { background-color: var(--green-bg); color: var(--green-text); }
.tag.is-success .dot { background: var(--green); }
.tag.is-warning { background-color: var(--yellow-bg); color: var(--yellow-text); }
.tag.is-warning .dot { background: var(--yellow); }
.tag.is-neutral { background-color: var(--bg-soft); color: var(--text-2); border-color: var(--border); }

/* ---------- Campos ---------- */

.form_input,
.form_textarea {
  display: block;
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  background-color: var(--bg-soft);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.form_textarea { min-height: 104px; resize: vertical; }

@media (max-width: 640px) {
  .button.is-large { padding-inline: 20px; }
  .form_input, .form_textarea { font-size: 16px; }
}

.form_input::placeholder,
.form_textarea::placeholder { color: var(--text-4); opacity: 0.8; }

.form_input:focus,
.form_textarea:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: var(--focus-ring);
}

/* ---------- Movimento reduzido ---------- */

@media (prefers-reduced-motion: reduce) {
  .button:active { transform: none; }
  .button { transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, box-shadow 150ms ease; }
}
