/* =========================================================
   AdvAcervo — "A memória do seu escritório."
   Paleta vinho: ~60% branco, 30% vinho, 10% dourado.
   Libre Caslon Text (títulos) + Inter (texto). Contraste WCAG AA.
   Botão vinho = única ação principal (foco visual).
   ========================================================= */

:root {
  --wine:        #6B1E2E;   /* principal: logo, títulos, destaque, botões */
  --wine-night:  #3F0F1A;   /* rodapé, chamada final, modo escuro */
  --white:       #FFFFFF;   /* fundo geral */
  --ice:         #F5F5F5;   /* fundo alternado (cinza-gelo, sem bege) */
  --gold-dark:   #7A5C2E;   /* links e destaque de texto sobre branco */
  --gold:        #B08D57;   /* ícones, filetes, ornamentos; texto só sobre vinho-noite */
  --rose:        #C9A9A6;   /* legendas sobre fundo escuro, estados inativos */
  --ink:         #2B2A2A;   /* corpo do texto (grafite) */
  --ink-soft:    #4a4746;
  --line:        #e7e2e2;
  --error:       #9a4a2f;   /* erros: tom distinto do vinho da marca */

  --maxw: 1140px;
  --radius: 5px;
  --shadow-sm: 0 1px 2px rgba(63,15,26,.05), 0 6px 18px rgba(63,15,26,.06);
  --shadow-md: 0 10px 30px rgba(63,15,26,.10);
  --shadow-lg: 0 24px 60px rgba(63,15,26,.16);
  --ease: cubic-bezier(.16,1,.3,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.68;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1;
}

h1, h2, h3, h4 {
  font-family: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  color: var(--wine);
  line-height: 1.16;
  font-weight: 700;
  margin: 0 0 .5em;
  letter-spacing: -0.003em;
}
p { margin: 0 0 1rem; }
a { color: var(--gold-dark); text-decoration: none; }
a:hover { color: var(--wine); }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 92px 0; }
.section-alt { background: var(--ice); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-wine { background: var(--wine-night); color: var(--white); }
.section-wine h1, .section-wine h2, .section-wine h3 { color: #fff; }

.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.kicker {
  display: inline-block; text-transform: uppercase; letter-spacing: .18em;
  font-size: .76rem; font-weight: 700; color: var(--gold-dark);
  margin-bottom: 14px;
}
.section-wine .kicker { color: var(--gold); }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin: 0 0 14px; }
.section-head p { font-size: 1.12rem; color: var(--ink-soft); margin: 0; }
.section-wine .section-head p { color: var(--rose); }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: var(--radius); border: 1px solid transparent;
  font-family: inherit; font-weight: 600; font-size: 1rem; letter-spacing: .005em;
  cursor: pointer; transition: transform .2s var(--ease), box-shadow .25s ease, background .2s ease, color .2s ease;
}
/* ÚNICA ação principal = vinho (foco visual) */
.btn-primary {
  background: var(--wine); color: #fff; font-weight: 700;
  box-shadow: 0 2px 10px rgba(107,30,46,.25);
}
.btn-primary:hover { background: #561826; color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(107,30,46,.3); }
/* na chamada final (fundo vinho-noite): botão vinho com borda dourada */
.section-wine .btn-primary { border: 1px solid var(--gold); }
.section-wine .btn-primary:hover { border-color: var(--gold); background: var(--wine); }
.btn-ghost { background: transparent; color: var(--wine); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--wine); color: var(--wine); }
.btn-text { background: transparent; color: var(--wine); padding: 15px 8px; }
.btn-text:hover { color: var(--gold-dark); }
.btn-lg { padding: 18px 38px; font-size: 1.08rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-word {
  font-family: "Libre Caslon Text", serif; font-weight: 700; font-size: 1.5rem;
  letter-spacing: .005em; line-height: 1;
}
.brand-word .adv { color: var(--wine); }
.brand-word .acervo { color: var(--ink); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { font-size: .95rem; font-weight: 500; color: var(--ink); }
.site-nav a:hover { color: var(--wine); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--wine); margin: 5px 0; transition: .3s; }

/* ---------- hero ---------- */
.hero { padding: 84px 0 72px; background: linear-gradient(180deg, var(--white) 0%, var(--ice) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1.06; margin-bottom: 22px; }
.hero-lead { font-size: 1.24rem; color: var(--ink-soft); max-width: 560px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* demo de busca */
.search-demo {
  background: var(--white); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.search-bar {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px;
  border-bottom: 1px solid var(--line); background: #fff;
}
.search-bar svg { flex: none; color: var(--gold); }
.search-query { font-size: 1rem; color: var(--ink); font-weight: 500; }
.search-caret { display: inline-block; width: 1px; height: 1.1em; background: var(--wine); margin-left: 1px; vertical-align: middle; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.search-results { padding: 8px 0; }
.result {
  display: block; padding: 14px 18px; border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.result:last-child { border-bottom: 0; }
.result.show { opacity: 1; transform: translateY(0); }
.result-meta { font-size: .78rem; font-weight: 700; letter-spacing: .04em; color: var(--gold-dark); text-transform: uppercase; margin-bottom: 4px; }
.result-ementa { font-size: .92rem; color: var(--ink-soft); line-height: 1.5; }

/* ---------- A dor ---------- */
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 40px; }
.pain-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm); border-top: 3px solid var(--wine);
}
.pain-num { font-family: "Libre Caslon Text", serif; font-size: 2.2rem; font-weight: 700; color: var(--wine); line-height: 1; margin-bottom: 10px; }
.pain-card p { margin: 0; color: var(--ink-soft); }
.pain-close { text-align: center; font-family: "Libre Caslon Text", serif; font-size: 1.5rem; color: var(--wine); max-width: 640px; margin: 0 auto; font-style: italic; }

/* ---------- Antes e depois ---------- */
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.ba-col { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.ba-col.after { border-color: var(--wine); box-shadow: 0 0 0 1px var(--wine), var(--shadow-md); }
.ba-head { padding: 18px 24px; font-weight: 700; letter-spacing: .02em; }
.ba-col.before .ba-head { background: var(--ice); color: var(--ink-soft); }
.ba-col.after .ba-head { background: var(--wine); color: #fff; }
.ba-list { list-style: none; margin: 0; padding: 8px 24px 24px; }
.ba-list li { padding: 14px 0 14px 32px; position: relative; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.ba-list li:last-child { border-bottom: 0; }
.ba-list li::before { position: absolute; left: 0; top: 13px; font-size: 1.1rem; }
.ba-col.before .ba-list li::before { content: "✕"; color: var(--rose); }
.ba-col.after .ba-list li::before { content: "✓"; color: var(--wine); font-weight: 700; }

/* ---------- Como funciona ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { position: relative; padding-top: 8px; }
.step-num {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wine); color: var(--gold); font-family: "Libre Caslon Text", serif;
  font-weight: 700; font-size: 1.25rem; margin-bottom: 16px;
}
.step h3 { font-size: 1.25rem; margin-bottom: 8px; }
.step p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
.steps-note { text-align: center; color: var(--ink-soft); margin-top: 36px; font-style: italic; }

/* ---------- Vantagens ---------- */
.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.adv-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s ease; }
.adv-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.adv-icon { width: 30px; height: 30px; color: var(--gold); margin-bottom: 14px; }
.adv-card h3 { font-size: 1.22rem; margin-bottom: 8px; }
.adv-card p { margin: 0; color: var(--ink-soft); font-size: .96rem; }

/* ---------- Dois jeitos ---------- */
.ways-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 30px; }
.way { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px; box-shadow: var(--shadow-sm); border-top: 3px solid var(--gold); }
.way-tag { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 12px; }
.way h3 { font-size: 1.5rem; margin-bottom: 10px; }
.way p { margin: 0; color: var(--ink-soft); }
.ways-support { text-align: center; max-width: 720px; margin: 0 auto; font-size: 1.08rem; color: var(--ink-soft); }
.ways-support strong { color: var(--wine); }

/* ---------- Segurança ---------- */
.sec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 36px; max-width: 900px; margin: 0 auto; }
.sec-item { display: flex; gap: 14px; align-items: flex-start; }
.sec-item svg { flex: none; width: 24px; height: 24px; color: var(--gold); margin-top: 2px; }
.sec-item p { margin: 0; }
.sec-disclaimer { text-align: center; color: var(--ink-soft); font-size: .86rem; margin-top: 40px; max-width: 680px; margin-left: auto; margin-right: auto; }

/* ---------- Caso real ---------- */
.case { max-width: 820px; margin: 0 auto; text-align: center; }
.case-quote { font-family: "Libre Caslon Text", serif; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.3; color: #fff; font-style: italic; margin-bottom: 28px; }
.case-stats { display: flex; justify-content: center; gap: 56px; flex-wrap: wrap; }
.case-stat .n { font-family: "Libre Caslon Text", serif; font-size: 2.4rem; font-weight: 700; color: var(--gold); line-height: 1; }
.case-stat .l { font-size: .9rem; color: var(--rose); letter-spacing: .02em; }

/* ---------- Como começar ---------- */
.start-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 30px; }
.start-step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow-sm); }
.start-step .n { font-family: "Libre Caslon Text", serif; color: var(--gold-dark); font-size: 1.4rem; font-weight: 700; }
.start-step h3 { font-size: 1.2rem; margin: 6px 0 8px; }
.start-step p { margin: 0; color: var(--ink-soft); font-size: .96rem; }
.start-note { text-align: center; color: var(--ink-soft); max-width: 720px; margin: 0 auto; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; background: none; border: 0; cursor: pointer; text-align: left;
  padding: 22px 40px 22px 0; position: relative; font-family: inherit;
  font-size: 1.1rem; font-weight: 600; color: var(--wine);
}
.faq-q::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--gold-dark); transition: transform .3s ease; }
.faq-item.open .faq-q::after { content: "−"; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-a p { margin: 0; padding: 0 0 22px; color: var(--ink-soft); }

/* ---------- Chamada final ---------- */
.final { text-align: center; }
.final h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 28px; max-width: 760px; margin-left: auto; margin-right: auto; }
.lead-form { max-width: 560px; margin: 36px auto 0; display: grid; gap: 14px; text-align: left; }
.lead-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lead-form label { font-size: .86rem; font-weight: 600; color: var(--rose); display: block; margin-bottom: 6px; }
.lead-form input, .lead-form select, .lead-form textarea {
  width: 100%; padding: 13px 14px; border-radius: var(--radius); border: 1px solid rgba(201,169,166,.4);
  background: rgba(255,255,255,.06); color: #fff; font-family: inherit; font-size: .98rem;
}
.lead-form input::placeholder, .lead-form textarea::placeholder { color: rgba(201,169,166,.6); }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.lead-form select option { color: var(--ink); }
.form-msg { font-size: .95rem; color: var(--gold); min-height: 1.2em; }
.form-msg.error { color: var(--rose); }

/* ---------- footer ---------- */
.site-footer { background: var(--wine-night); color: var(--rose); padding: 48px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand .brand-word .adv, .footer-brand .brand-word .acervo { color: #fff; }
.footer-tag { font-size: .9rem; color: var(--rose); }
.footer-links { display: flex; gap: 22px; }
.site-footer a { color: var(--rose); font-size: .9rem; }
.site-footer a:hover { color: var(--gold); }
.footer-legal { width: 100%; text-align: center; margin-top: 28px; font-size: .82rem; color: rgba(201,169,166,.6); }

/* ---------- /tecnologia ---------- */
.tech-hero { padding: 72px 0 40px; }
.tech-hero h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); }
.tech-section h2 { font-size: 1.7rem; margin-top: 8px; }
.tech-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.tech-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.tech-card h3 { font-size: 1.2rem; }
.tech-card code { background: var(--ice); padding: 2px 6px; border-radius: 4px; font-size: .88em; color: var(--wine); }
.tech-card p { margin: 0; color: var(--ink-soft); font-size: .96rem; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- responsivo (prioridade celular no hero e formulário) ---------- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .pain-grid, .steps, .adv-grid, .start-steps { grid-template-columns: 1fr 1fr; }
  .tech-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .section { padding: 64px 0; }
  .site-nav { position: fixed; inset: 72px 0 auto 0; background: var(--white); flex-direction: column; gap: 0; padding: 8px 0; border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .3s var(--ease); }
  .site-nav.open { transform: translateY(0); }
  .site-nav a { padding: 14px 24px; width: 100%; }
  .nav-toggle { display: block; }
  .pain-grid, .steps, .adv-grid, .ba-grid, .ways-grid, .sec-grid, .start-steps { grid-template-columns: 1fr; }
  .case-stats { gap: 32px; }
  .lead-form .row { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .search-caret { animation: none; }
  * { scroll-behavior: auto; }
}
