/* WFA Contabilidade & Projetos Agrícolas — Leoberto Leal/SC
   Visual clean: fundo branco, botões navy (azul) com texto branco,
   VERMELHO (vinho) apenas como detalhe (fios, marcadores, eyebrow). */
:root {
  --navy: #23264d;
  --navy-700: #1a1c3c;
  --navy-900: #14152e;
  --maroon: #8b2635;      /* só detalhe */
  --gray: #6d6e70;
  --agro: #4b7d4f;
  --ink: #22254a;
  --text: #3d3f56;
  --muted: #6a6c7e;
  --bg: #e8e9ed;          /* fundo da página — cinza-claro suave (não tão branco) */
  --line: #d7dae3;
  --line-2: #e2e4ec;
  --surface: #f1f2f6;     /* faixas/rodapé — um tom acima do fundo */
  --white: #ffffff;       /* cards flutuam em branco */
  --radius: 16px;
  --shadow: 0 12px 34px -16px rgba(24, 26, 60, .22);
  --shadow-sm: 0 4px 14px -8px rgba(24, 26, 60, .2);
  --wrap: 1140px;
  --font: "Figtree", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; color: var(--ink); margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }
.container { width: min(var(--wrap), 92%); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 100; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; gap: .5rem; justify-content: center; font-weight: 700; font-size: 1rem; padding: .85rem 1.6rem; border-radius: 999px; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .2s, box-shadow .2s, color .2s; text-decoration: none; }
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary, .btn--wa { background: var(--navy); color: #fff; }          /* azul + branco */
.btn--primary:hover, .btn--wa:hover { background: var(--navy-700); }
.btn--outline { background: #fff; color: var(--navy); border-color: var(--line); }
.btn--outline:hover { border-color: var(--navy); background: var(--surface); }
.btn--white { background: #fff; color: var(--navy); }                        /* p/ usar sobre navy */
.btn--white:hover { background: #eef0f7; }
.btn--ghost { border-color: rgba(255,255,255,.55); color: #fff; }            /* p/ usar sobre navy */
.btn--ghost:hover { background: rgba(255,255,255,.12); }

/* ---------- Top bar ---------- */
.top { background: var(--surface); color: var(--muted); font-size: .82rem; border-bottom: 1px solid var(--line-2); }
.top .container { display: flex; flex-wrap: wrap; gap: .3rem 1.6rem; justify-content: center; padding: .5rem 0; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem 0; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 46px; width: auto; }
.brand--footer img { height: 60px; }
.nav { display: flex; align-items: center; gap: .2rem; }
.nav a { color: var(--ink); font-weight: 600; padding: .5rem .85rem; border-radius: 8px; font-size: .96rem; }
.nav a:hover { background: var(--surface); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--navy); }
.nav a[aria-current="page"]::after { content: ""; display: block; height: 2px; background: var(--maroon); border-radius: 2px; margin-top: 2px; }
.nav__cta { margin-left: .5rem; }
/* o CTA é um botão navy — texto branco mesmo dentro do .nav (evita navy no navy) */
.nav a.nav__cta, .nav a.nav__cta:hover { color: #fff; background: var(--navy); }
.nav a.nav__cta:hover { background: var(--navy-700); }
.nav a.nav__cta[aria-current="page"]::after { display: none; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav-toggle svg { width: 28px; height: 28px; stroke: var(--navy); }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch; background: #fff; border-bottom: 1px solid var(--line); padding: .6rem 5%; gap: .1rem; box-shadow: var(--shadow); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .2s; }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: .8rem 1rem; }
  .nav a[aria-current="page"]::after { display: none; }
  .nav__cta { margin: .5rem 0 0; }
}

/* ---------- Hero (claro) ---------- */
.hero { position: relative; background: linear-gradient(180deg, #f5f6f9 0%, var(--bg) 100%); overflow: hidden; border-bottom: 1px solid var(--line-2); }
.hero::before { content: ""; position: absolute; right: -160px; top: -160px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(35,38,77,.06), transparent 68%); }
.hero::after { content: ""; position: absolute; left: -120px; bottom: -160px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(139,38,53,.05), transparent 70%); }
.hero .container { position: relative; padding: clamp(2.6rem, 6vw, 4.6rem) 0; display: grid; gap: 2.2rem; grid-template-columns: 1.12fr .88fr; align-items: center; }
.hero__badge { display: inline-flex; align-items: center; gap: .55rem; background: rgba(35,38,77,.07); color: var(--navy); font-weight: 700; font-size: .85rem; padding: .4rem 1rem; border-radius: 999px; margin-bottom: 1.1rem; }
/* luzinha verde pulsando (indicador "ativo") */
.hero__badge::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #21c25a; box-shadow: 0 0 0 0 rgba(33,194,90,.6); animation: pulse 1.9s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(33,194,90,.55); } 70% { box-shadow: 0 0 0 11px rgba(33,194,90,0); } 100% { box-shadow: 0 0 0 0 rgba(33,194,90,0); } }
@media (prefers-reduced-motion: reduce) { .hero__badge::before, .svc li::after { animation: none; } }
.hero .lead { font-size: 1.18rem; color: var(--muted); max-width: 44ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero__card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.hero__card h3 { color: var(--ink); }
.hero__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.hero__list li { display: flex; gap: .65rem; align-items: flex-start; color: var(--text); font-size: .99rem; }
.hero__list .dot { color: #fff; background: var(--navy); border-radius: 50%; width: 20px; height: 20px; display: grid; place-items: center; font-size: .68rem; flex: none; margin-top: 3px; font-weight: 800; }
.hero--agro { background: linear-gradient(180deg, #eef4ee, #e4e9e6); }
.hero--agro .hero__badge { background: rgba(75,125,79,.12); color: #2f5a34; }
.hero--agro .hero__list .dot { background: var(--agro); }
@media (max-width: 860px) { .hero .container { grid-template-columns: 1fr; } }

/* ---------- Seções ---------- */
.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section--surface { background: var(--surface); }
.section__head { max-width: 62ch; margin-bottom: 2.2rem; }
.section__head.center { margin-inline: auto; text-align: center; }
.eyebrow { color: var(--maroon); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; display: inline-flex; align-items: center; gap: .5rem; margin-bottom: .55rem; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--maroon); border-radius: 2px; }
.lead { color: var(--muted); font-size: 1.08rem; }

/* ---------- Grid + cards ---------- */
.grid { display: grid; gap: 1.2rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; transition: transform .18s, box-shadow .18s, border-color .18s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d9dbe6; }
.card__icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 1.5rem; background: var(--surface); margin-bottom: 1rem; color: var(--navy); }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--muted); margin: 0; font-size: .96rem; }
.card__link { display: inline-flex; align-items: center; gap: .3rem; margin-top: 1rem; font-weight: 700; color: var(--navy); }
.card__link:hover { text-decoration: none; gap: .5rem; }
/* fio superior de detalhe (vermelho) opcional */
.card--accent { position: relative; }
.card--accent::before { content: ""; position: absolute; left: 1.5rem; right: 1.5rem; top: 0; height: 3px; background: var(--maroon); border-radius: 0 0 3px 3px; }

/* ---------- Listas de serviço (checklist) ---------- */
.svc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 100%; }
.svc__head { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--line-2); display: flex; align-items: center; gap: .8rem; }
.svc__head .ic { font-size: 1.55rem; }
.svc__head h3 { margin: 0; }
.svc__head .accent { width: 5px; align-self: stretch; border-radius: 3px; background: var(--maroon); margin: -1.25rem .35rem -1.25rem -.4rem; } /* detalhe vermelho */
.svc ul { list-style: none; margin: 0; padding: 1.1rem 1.5rem 1.4rem; display: grid; gap: .55rem; }
.svc li { position: relative; padding-left: 1.7rem; color: var(--text); font-size: .97rem; }
.svc li::before { content: ""; position: absolute; left: 0; top: .34em; width: 16px; height: 16px; border-radius: 50%; background: rgba(33,194,90,.14); }
/* marcador = luzinha verde pulsante */
.svc li::after { content: ""; position: absolute; left: 5px; top: .54em; width: 6px; height: 6px; border-radius: 50%; background: #21c25a; box-shadow: 0 0 0 0 rgba(33,194,90,.5); animation: pulse-sm 2.1s ease-out infinite; }
@keyframes pulse-sm { 0% { box-shadow: 0 0 0 0 rgba(33,194,90,.5); } 70% { box-shadow: 0 0 0 6px rgba(33,194,90,0); } 100% { box-shadow: 0 0 0 0 rgba(33,194,90,0); } }
.svc--agro .svc__head .accent { background: var(--agro); }

/* ---------- Stats (claro) ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.stats > div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1rem; border-top: 3px solid var(--maroon); }
.stats .num { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; color: var(--navy); }
.stats .lbl { color: var(--muted); font-size: .92rem; }
@media (max-width: 620px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Faixa CTA (navy) ---------- */
.band { border-radius: 24px; padding: clamp(2rem, 5vw, 3.2rem); text-align: center; background: linear-gradient(135deg, var(--navy), var(--navy-900)); color: #fff; position: relative; overflow: hidden; }
.band::before { content: ""; position: absolute; right: -80px; top: -80px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(139,38,53,.4), transparent 65%); }
.band h2 { color: #fff; position: relative; }
.band p { color: #d7d9ea; max-width: 52ch; margin-inline: auto; position: relative; }
.band__btns { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 1.4rem; position: relative; }
.band--left { text-align: left; }
.band--left p { margin-inline: 0; }
.band--left .band__btns { justify-content: flex-start; }
.band--agro { background: linear-gradient(135deg, #2f5a34, #1e3a26); }
.band--agro::before { background: radial-gradient(circle, rgba(255,255,255,.12), transparent 65%); }

/* ---------- Contato ---------- */
.info { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
.info__item { display: flex; gap: .9rem; align-items: flex-start; }
.info__item .ic { font-size: 1.35rem; background: var(--surface); width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.info__item h3 { margin: 0 0 .2rem; font-size: 1.02rem; }
.info__item p { margin: 0; color: var(--muted); }
.map { border: 0; width: 100%; height: 340px; border-radius: var(--radius); border: 1px solid var(--line); }

/* ---------- Rodapé (claro) ---------- */
.site-footer { background: var(--surface); color: var(--muted); padding: 3rem 0 1.5rem; border-top: 1px solid var(--line); }
.site-footer a { color: var(--ink); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
@media (max-width: 780px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__grid h4 { color: var(--ink); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 1rem; }
.footer__grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; font-size: .95rem; }
.footer__brand img { margin-bottom: 1rem; }
.footer__brand p { color: var(--muted); font-size: .95rem; max-width: 42ch; }
.footer__bottom { padding-top: 1.2rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; font-size: .85rem; color: #8a8ca0; }

/* ---------- Utilidades ---------- */
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s, transform .6s; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .btn:hover, .card:hover { transform: none; } }
