/* =========================================================
   Amorim e Araujo Assessoria Contábil — style.css
   Design: ledger/papel contábil — serif editorial + sans utilitário,
   tinta naval + latão envelhecido, hairlines no lugar de sombras pesadas.
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --color-ink: #13233c;
  --color-ink-soft: #2c3e5c;
  --color-paper: #f7f5f0;
  --color-paper-alt: #efeadf;
  --color-paper-line: #dcd5c4;
  --color-gold: #a1793f;
  --color-gold-dark: #7e5f30;
  --color-text: #262b33;
  --color-text-soft: #585f6c;
  --color-text-inverse: #f3efe6;
  --color-success: #2f6d4f;
  --color-success-bg: #e9f2ec;
  --color-error: #ad3f36;
  --color-error-bg: #f8eae8;

  --font-display: 'Lora', 'Iowan Old Style', 'Georgia', serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;

  --container: 1180px;
  --radius-sm: 3px;
  --radius-md: 6px;
  --shadow-card: 0 1px 1px rgba(19, 35, 60, 0.04), 0 10px 24px -12px rgba(19, 35, 60, 0.18);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6.5rem;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; margin: 0; color: var(--color-ink); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section { padding: var(--space-6) 0; }
@media (max-width: 720px) {
  .section { padding: var(--space-5) 0; }
}
.section--alt { background: var(--color-paper-alt); }
.section--ink { background: var(--color-ink); color: var(--color-text-inverse); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--color-gold-dark);
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.section-head { max-width: 640px; margin-bottom: var(--space-4); }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.section-head p { margin-top: var(--space-2); color: var(--color-text-soft); font-size: 1.05rem; }
.section--ink .section-head p { color: #c9d1de; }

.rule {
  border: none;
  border-top: 1px solid var(--color-paper-line);
  margin: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--color-gold); color: #fff; }
.btn--primary:hover { background: var(--color-gold-dark); }
.btn--ghost { background: transparent; border-color: var(--color-paper-line); color: var(--color-ink); }
.btn--ghost:hover { border-color: var(--color-gold); color: var(--color-gold-dark); }
.btn--on-ink { background: var(--color-text-inverse); color: var(--color-ink); }
.btn--on-ink:hover { background: #fff; }
.btn--block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 245, 240, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--color-paper-line);
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 0.85rem 0;
}
.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--color-ink); }
.brand__sub { font-size: 0.68rem; letter-spacing: 0.06em; color: var(--color-text-soft); }

.nav-desktop { display: flex; align-items: center; gap: var(--space-4); }
.nav-desktop ul { display: flex; gap: var(--space-3); }
.nav-desktop a { text-decoration: none; font-size: 0.94rem; color: var(--color-ink-soft); font-weight: 500; }
.nav-desktop a:hover { color: var(--color-gold-dark); }
.header-cta { display: flex; align-items: center; gap: var(--space-2); }
.header-phone { display: none; font-size: 0.88rem; color: var(--color-text-soft); text-decoration: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-paper-line);
  border-radius: var(--radius-sm);
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.2rem;
  padding: var(--space-2) 0 var(--space-3);
  border-top: 1px solid var(--color-paper-line);
}
.nav-mobile a {
  display: block;
  padding: 0.7rem 0.2rem;
  text-decoration: none;
  color: var(--color-ink);
  font-weight: 500;
  border-bottom: 1px solid var(--color-paper-line);
}
.nav-mobile.is-open { display: flex; }

@media (max-width: 880px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-phone { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding: var(--space-6) 0 var(--space-5); overflow: hidden; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-5);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  letter-spacing: -0.01em;
}
.hero__lede {
  margin-top: var(--space-3);
  font-size: 1.15rem;
  color: var(--color-text-soft);
  max-width: 52ch;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-paper-line);
}
.trust-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.88rem; color: var(--color-text-soft); }
.trust-item svg { width: 18px; height: 18px; flex: none; color: var(--color-gold-dark); }
.hero__art { position: relative; }
.hero__art svg { width: 100%; height: auto; }

@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; max-width: 420px; margin: 0 auto; }
}

/* ---------- Benefícios (linhas tipo extrato, não cards genéricos) ---------- */
.benefits-list { border-top: 1px solid var(--color-paper-line); }
.benefit-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-paper-line);
}
.benefit-row__icon {
  width: 46px; height: 46px;
  border: 1px solid var(--color-paper-line);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-gold-dark);
  background: #fff;
}
.benefit-row__icon svg { width: 22px; height: 22px; }
.benefit-row h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.benefit-row p { color: var(--color-text-soft); max-width: 62ch; }

/* ---------- Como funciona ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  position: relative;
}
.step { position: relative; padding-top: var(--space-3); border-top: 2px solid var(--color-paper-line); }
.step__num { font-family: var(--font-display); font-size: 1.6rem; color: var(--color-gold-dark); display: block; margin-bottom: 0.6rem; }
.step h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.step p { color: var(--color-text-soft); font-size: 0.95rem; }
@media (max-width: 880px) {
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
}

/* ---------- Painel de transparência (dados reais do registro) ---------- */
.registry {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: center;
}
.registry__card {
  background: #fff;
  border: 1px solid var(--color-paper-line);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}
.registry__card dl { display: grid; grid-template-columns: auto 1fr; gap: 0.55rem 1.2rem; margin-top: var(--space-2); }
.registry__card dt { font-size: 0.82rem; color: var(--color-text-soft); }
.registry__card dd { margin: 0; font-weight: 600; color: var(--color-ink); font-size: 0.95rem; }
.registry h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: var(--space-2); }
.registry > div > p { color: var(--color-text-soft); font-size: 1.05rem; max-width: 46ch; }
@media (max-width: 880px) {
  .registry { grid-template-columns: 1fr; }
}

/* ---------- Diferenciais ---------- */
.differentials { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); }
.differential { padding: var(--space-3); border: 1px solid var(--color-paper-line); border-radius: var(--radius-md); background: #fff; }
.differential svg { width: 26px; height: 26px; color: var(--color-gold-dark); margin-bottom: var(--space-2); }
.differential h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.differential p { color: var(--color-text-soft); font-size: 0.92rem; }
@media (max-width: 880px) { .differentials { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .differentials { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; }
.faq-item { border-bottom: 1px solid var(--color-paper-line); }
.faq-item__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  background: none;
  border: none;
  padding: 1.15rem 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--color-ink);
}
.faq-item__q svg { width: 20px; height: 20px; flex: none; transition: transform 0.2s ease; color: var(--color-gold-dark); }
.faq-item[open] .faq-item__q svg { transform: rotate(45deg); }
.faq-item__a { padding: 0 0 1.25rem; color: var(--color-text-soft); max-width: 68ch; }
.faq-item summary { list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }

/* ---------- CTA final ---------- */
.cta-final { text-align: center; }
.cta-final__inner { max-width: 620px; margin: 0 auto; }
.cta-final h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--color-text-inverse); }
.cta-final p { margin-top: var(--space-2); color: #c9d1de; font-size: 1.05rem; }
.cta-final .btn { margin-top: var(--space-4); }

/* ---------- Formulário ---------- */
.contact { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--space-5); align-items: start; }
.contact__info h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: var(--space-2); }
.contact__info p { color: var(--color-text-soft); }
.contact__list { margin-top: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); }
.contact__list li { display: flex; align-items: center; gap: 0.7rem; font-size: 0.96rem; }
.contact__list a { text-decoration: none; }
.contact__list a:hover { color: var(--color-gold-dark); }
.contact__list svg { width: 20px; height: 20px; color: var(--color-gold-dark); flex: none; }

.form-card {
  background: #fff;
  border: 1px solid var(--color-paper-line);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  box-shadow: var(--shadow-card);
}
.field { margin-bottom: var(--space-3); }
.field label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--color-ink); margin-bottom: 0.4rem; }
.field input, .field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--color-paper-line);
  border-radius: var(--radius-sm);
  background: var(--color-paper);
  color: var(--color-text);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--color-gold); background: #fff; }
.field textarea { resize: vertical; min-height: 110px; }
.field-error { color: var(--color-error); font-size: 0.82rem; margin-top: 0.35rem; display: none; }
.field.has-error input, .field.has-error textarea { border-color: var(--color-error); }
.field.has-error .field-error { display: block; }

.consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.86rem; color: var(--color-text-soft); margin-bottom: var(--space-3); }
.consent input { margin-top: 0.25rem; }
.consent a { color: var(--color-gold-dark); text-decoration: underline; }

.form-note { font-size: 0.82rem; color: var(--color-text-soft); margin-top: var(--space-2); }
.form-honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

.form-feedback { display: none; border-radius: var(--radius-sm); padding: 0.85rem 1rem; font-size: 0.92rem; margin-bottom: var(--space-3); }
.form-feedback.is-success { display: block; background: var(--color-success-bg); color: var(--color-success); }
.form-feedback.is-error { display: block; background: var(--color-error-bg); color: var(--color-error); }

@media (max-width: 880px) { .contact { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-ink); color: #c9d1de; padding: var(--space-5) 0 var(--space-3); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: var(--space-4); }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; margin-bottom: var(--space-2); }
.footer-brand__mark { width: 34px; height: 34px; }
.footer-brand__name { font-family: var(--font-display); color: #fff; font-size: 1.02rem; }
.footer-col h4 { color: #fff; font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 0.03em; margin-bottom: var(--space-2); }
.footer-col ul { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col a { text-decoration: none; font-size: 0.92rem; color: #c9d1de; }
.footer-col a:hover { color: #fff; }
.footer-legal { font-size: 0.85rem; line-height: 1.7; color: #a9b3c4; max-width: 46ch; }
.footer-bottom {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; flex-wrap: wrap; gap: var(--space-2);
  justify-content: space-between;
  font-size: 0.82rem;
  color: #8c97ab;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Páginas legais ---------- */
.legal-page { padding: var(--space-5) 0; }
.legal-page .container { max-width: 820px; }
.legal-page h1 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-bottom: var(--space-1); }
.legal-page .updated { color: var(--color-text-soft); font-size: 0.88rem; margin-bottom: var(--space-4); }
.legal-page h2 { font-size: 1.25rem; margin-top: var(--space-4); margin-bottom: var(--space-2); }
.legal-page p, .legal-page li { color: var(--color-text-soft); margin-bottom: var(--space-2); }
.legal-page ul { list-style: disc; padding-left: 1.3rem; }
.legal-page ul li { margin-bottom: 0.5rem; }
.legal-page a { color: var(--color-gold-dark); }
.legal-page strong { color: var(--color-ink); }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 1rem; right: 1rem; bottom: 1rem;
  z-index: 100;
  background: #fff;
  border: 1px solid var(--color-paper-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: var(--space-3);
  max-width: 640px;
  margin: 0 auto;
  display: none;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { font-size: 0.9rem; color: var(--color-text-soft); }
.cookie-banner a { color: var(--color-gold-dark); text-decoration: underline; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: var(--space-2); }
.cookie-banner__actions .btn { padding: 0.6rem 1.1rem; font-size: 0.88rem; }

.cookie-modal {
  position: fixed; inset: 0; z-index: 110;
  background: rgba(19, 35, 60, 0.5);
  display: none;
  align-items: center; justify-content: center;
  padding: 1rem;
}
.cookie-modal.is-visible { display: flex; }
.cookie-modal__panel {
  background: #fff; border-radius: var(--radius-md); padding: var(--space-4);
  max-width: 520px; width: 100%; max-height: 86vh; overflow-y: auto;
}
.cookie-modal__panel h3 { font-size: 1.2rem; margin-bottom: var(--space-2); }
.cookie-option { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-2); padding: var(--space-2) 0; border-bottom: 1px solid var(--color-paper-line); }
.cookie-option__text strong { display: block; color: var(--color-ink); font-size: 0.95rem; }
.cookie-option__text p { font-size: 0.85rem; color: var(--color-text-soft); margin-top: 0.2rem; }
.switch { position: relative; width: 42px; height: 24px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch__track { position: absolute; inset: 0; background: #d5d0c3; border-radius: 999px; transition: background-color 0.15s ease; }
.switch__track::before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform 0.15s ease; }
.switch input:checked + .switch__track { background: var(--color-gold); }
.switch input:checked + .switch__track::before { transform: translateX(18px); }
.switch input:disabled + .switch__track { background: #b9c2ce; opacity: 0.7; }
.cookie-modal__actions { display: flex; justify-content: flex-end; gap: 0.6rem; margin-top: var(--space-3); }

/* ---------- Skip link (acessibilidade) ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--color-ink); color: #fff;
  padding: 0.7rem 1rem; z-index: 200; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Utilitários ---------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
