/*
Theme Name: A&V Soluções
Theme URI: https://aevsolucoes.com.br
Description: Tema landing page da A&V Soluções Inteligentes. Compras corporativas B2B com faturamento e nota fiscal. Configure contatos, textos e apresentação em Aparência > Personalizar > A&V Soluções.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Author: Joel Leodoro
Text Domain: aev
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --blue-900: #0b2a66;
  --blue-700: #1446a8;
  --blue-600: #1d5bd0;
  --blue-50:  #eef3fc;
  --green-600: #2fa51b;
  --green-500: #3cbf24;
  --green-50:  #eef9ea;
  --ink: #0f1b33;
  --muted: #55627a;
  --line: #e3e8f1;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(11, 42, 102, .18);
  --container: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: "Plus Jakarta Sans", "Inter", sans-serif; line-height: 1.15; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue-700);
}
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--green-500); }
.section { padding: 96px 0; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-top: 14px; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin-top: 16px; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 10px; border: 2px solid transparent;
  font: 600 1rem "Inter", sans-serif; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green-500); color: #fff; box-shadow: 0 8px 20px -8px rgba(47, 165, 27, .6); }
.btn-primary:hover { background: var(--green-600); }
.btn-outline { border-color: var(--blue-700); color: var(--blue-700); background: #fff; }
.btn-outline:hover { background: var(--blue-50); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* Topo */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
.admin-bar .header { top: 32px; }
@media (max-width: 782px) { .admin-bar .header { top: 46px; } }
.header.scrolled { border-color: var(--line); }
.header .container { position: relative; display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 48px; height: 48px; object-fit: contain; }
.brand span { font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; font-size: 1.2rem; color: var(--blue-900); }
.brand span b { color: var(--green-600); font-weight: 800; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a { text-decoration: none; font-weight: 500; color: var(--muted); font-size: .95rem; }
.nav a:hover { color: var(--blue-700); }
.nav .btn { padding: 11px 20px; color: #fff; font-size: .92rem; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--blue-900); }
.menu-toggle svg { width: 28px; height: 28px; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: 72px 0 96px;
  background:
    radial-gradient(900px 480px at 92% 8%, rgba(60, 191, 36, .12), transparent 60%),
    radial-gradient(800px 520px at 0% 100%, rgba(29, 91, 208, .10), transparent 60%),
    var(--bg);
}
.hero .container { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; color: var(--blue-900); margin-top: 18px; }
.hero h1 em { font-style: normal; color: var(--green-600); }
.hero .lead { font-size: 1.15rem; color: var(--muted); margin-top: 22px; max-width: 560px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; max-width: 560px; }
.stat strong { display: block; font-family: "Plus Jakarta Sans", sans-serif; font-size: 1.9rem; font-weight: 800; color: var(--blue-700); line-height: 1.1; }
.stat span { font-size: .88rem; color: var(--muted); }
.hero-card {
  background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow);
  padding: 34px;
}
.hero-card img { width: 100%; max-width: 300px; margin: 0 auto; }
.hero-steps { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.hero-steps li {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-soft); border-radius: 10px; padding: 12px 14px; font-size: .95rem; font-weight: 500;
}
.hero-steps i {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font: 700 .85rem "Plus Jakarta Sans", sans-serif; font-style: normal;
  background: var(--blue-700); color: #fff;
}
.hero-steps li:last-child i { background: var(--green-500); }

/* Problema */
.problem { background: var(--bg-soft); }
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pain { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.pain .icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: #fdecec; color: #c43838; }
.pain .icon svg { width: 24px; height: 24px; }
.pain h3 { font-size: 1.15rem; margin-top: 18px; }
.pain p { color: var(--muted); margin-top: 8px; }
.solution {
  margin-top: 28px; display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center;
  background: linear-gradient(120deg, var(--blue-900), var(--blue-700)); color: #fff;
  border-radius: 18px; padding: 32px 36px;
}
.solution .icon { width: 56px; height: 56px; border-radius: 14px; background: var(--green-500); display: grid; place-items: center; }
.solution .icon svg { width: 30px; height: 30px; }
.solution h3 { font-size: 1.3rem; }
.solution p { margin-top: 6px; color: #d4e0f7; }

/* Serviços */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.service { border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; transition: box-shadow .2s ease, border-color .2s ease; }
.service:hover { box-shadow: var(--shadow); border-color: transparent; }
.service .icon { width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-700); }
.service:nth-child(even) .icon { background: var(--green-50); color: var(--green-600); }
.service .icon svg { width: 26px; height: 26px; }
.service h3 { font-size: 1.2rem; margin-top: 18px; }
.service p { color: var(--muted); margin-top: 8px; }

.delivery { margin-top: 56px; }
.delivery h3 { font-size: 1.4rem; }
.delivery > p { color: var(--muted); margin-top: 8px; }
.delivery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 24px; }
.mode { position: relative; background: var(--bg-soft); border-radius: var(--radius); padding: 28px 28px 28px 84px; }
.mode .num {
  position: absolute; left: 26px; top: 28px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: var(--blue-700); color: #fff;
  font: 800 1rem "Plus Jakarta Sans", sans-serif;
}
.mode:nth-child(2) .num { background: var(--green-500); }
.mode h4 { margin: 0; font: 700 1.08rem "Plus Jakarta Sans", sans-serif; }
.mode p { color: var(--muted); margin-top: 6px; }

.categories { margin-top: 56px; }
.categories h3 { font-size: 1.4rem; }
.categories > p { color: var(--muted); margin-top: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip { padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .92rem; font-weight: 500; color: var(--ink); }

/* Apresentação */
.presentation { padding-top: 0; }
.presentation .box {
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
  background: var(--green-50); border: 1px solid #cdeec4; border-radius: 22px; padding: 48px;
}
.presentation h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--blue-900); margin-top: 12px; }
.presentation p { color: var(--muted); margin-top: 12px; max-width: 620px; }

/* Contato */
.contact { background: var(--bg-soft); }
.contact .container { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.contact-info h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-top: 14px; }
.contact-info > p { color: var(--muted); margin-top: 16px; font-size: 1.05rem; }
.contact-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: center; }
.contact-list .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); color: var(--blue-700); flex: none; }
.contact-list .icon svg { width: 22px; height: 22px; }
.contact-list small { display: block; color: var(--muted); font-size: .82rem; }
.contact-list a, .contact-list strong { font-weight: 600; text-decoration: none; word-break: break-word; }

.form-card { background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 36px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 600; }
.field label .req { color: #c43838; }
.field input, .field select, .field textarea {
  font: inherit; font-size: .97rem; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 4px rgba(29, 91, 208, .12); }
.field input[type="file"] { padding: 10px; background: var(--bg-soft); cursor: pointer; }
.field .hint { font-size: .8rem; color: var(--muted); }
.field.invalid input, .field.invalid select { border-color: #c43838; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); font-weight: 400 !important; }
.consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--green-600); flex: none; }
.form-card .btn { width: 100%; margin-top: 24px; }
.form-card .btn[disabled] { opacity: .7; cursor: wait; transform: none; }
.form-alert { border-radius: 10px; padding: 14px 16px; margin-bottom: 20px; font-size: .93rem; background: #fdecec; color: #8f2424; border: 1px solid #f3c5c5; }
.form-success { text-align: center; padding: 24px 8px; }
.form-success .icon { width: 68px; height: 68px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: var(--green-50); color: var(--green-600); }
.form-success .icon svg { width: 36px; height: 36px; }
.form-success h3 { font-size: 1.5rem; margin-top: 18px; }
.form-success p { color: var(--muted); margin-top: 10px; }
.form-success .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }

/* Páginas internas (ex.: Política de Privacidade) */
.page-wrap { background: var(--bg-soft); padding: 56px 0 96px; }
.page-wrap .container { max-width: 820px; }
.page-content { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 44px; }
.page-content h1 { font-size: clamp(1.7rem, 3.4vw, 2.2rem); color: var(--blue-900); margin-bottom: 18px; }
.page-content h2 { font-size: 1.2rem; color: var(--blue-900); margin: 32px 0 8px; }
.page-content p, .page-content li { color: #3c4a63; line-height: 1.75; }
.page-content p { margin: 0 0 14px; }
.page-content a { color: var(--blue-700); }

/* Rodapé */
.footer { background: var(--blue-900); color: #c6d3ee; padding: 56px 0 28px; font-size: .93rem; }
.footer .top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.footer .brand span { color: #fff; }
.footer .brand img { background: #fff; border-radius: 10px; padding: 4px; }
.footer p { margin-top: 14px; max-width: 340px; }
.footer h4 { margin: 0 0 14px; color: #fff; font: 700 .95rem "Plus Jakarta Sans", sans-serif; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }
.footer .bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; }

/* WhatsApp flutuante */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 10px 24px -6px rgba(0, 0, 0, .35);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; }

/* Animações ao rolar (só com JS ativo) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .wa-float:hover { transform: none; }
}

/* Responsivo */
@media (max-width: 960px) {
  .hero .container, .contact .container { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; }
  .pain-grid { grid-template-columns: 1fr; }
  .presentation .box { grid-template-columns: 1fr; padding: 36px; }
  .footer .top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .section { padding: 72px 0; }
  .presentation { padding-top: 0; }
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 20px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; border-bottom: 0; }
  .hero { padding: 48px 0 72px; }
  .stats { gap: 10px; }
  .stat strong { font-size: 1.5rem; }
  .services-grid, .delivery-grid, .form-grid { grid-template-columns: 1fr; }
  .solution { grid-template-columns: 1fr; padding: 28px; }
  .form-card, .page-content { padding: 24px; }
  .footer .top { grid-template-columns: 1fr; }
  .hero .actions .btn { width: 100%; }
}
