/* ============================================================
   Pregão Online Bacuri — Folha de estilo principal
   Desenvolvido para Ondra Digital · ondradigital.com
   ============================================================ */

:root {
  --verde-900: #0b3d2e;
  --verde-800: #114b39;
  --verde-700: #176247;
  --verde-600: #1f7a58;
  --verde-500: #2a9a6f;
  --verde-100: #e3f3ec;
  --verde-050: #f2faf6;
  --ambar-600: #c97b12;
  --ambar-500: #e8961f;
  --ambar-400: #f5b041;
  --ambar-100: #fdf0d9;
  --cinza-900: #16201b;
  --cinza-700: #3c4a43;
  --cinza-500: #6b7a72;
  --cinza-300: #c9d3ce;
  --cinza-100: #eef2f0;
  --branco: #ffffff;
  --fundo: #fbfcfb;
  --erro: #c0392b;
  --raio: 14px;
  --raio-sm: 8px;
  --sombra: 0 10px 30px rgba(11, 61, 46, 0.08);
  --sombra-forte: 0 20px 50px rgba(11, 61, 46, 0.16);
  --fonte-titulo: "Sora", "Segoe UI", system-ui, sans-serif;
  --fonte-texto: "Inter", "Segoe UI", system-ui, sans-serif;
  --largura: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--fonte-texto);
  font-size: 17px;
  line-height: 1.65;
  color: var(--cinza-900);
  background: var(--fundo);
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--verde-700); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 {
  font-family: var(--fonte-titulo);
  color: var(--verde-900);
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.35rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 8px; background: var(--ambar-400);
  color: var(--cinza-900); padding: 10px 16px; border-radius: var(--raio-sm); z-index: 2000;
}
.skip-link:focus { left: 8px; }

.container { width: min(var(--largura), calc(100% - 32px)); margin: 0 auto; }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--alt { background: var(--verde-050); }
.section--dark { background: var(--verde-900); color: #dfeee6; }
.section--dark h2, .section--dark h3 { color: var(--branco); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.eyebrow {
  display: inline-block; font-family: var(--fonte-titulo); font-size: 0.8rem;
  font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ambar-600); margin-bottom: 12px;
}
.section--dark .eyebrow { color: var(--ambar-400); }
.lead { font-size: 1.15rem; color: var(--cinza-700); }
.section--dark .lead { color: #cfe3d9; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-family: var(--fonte-titulo);
  font-weight: 600; font-size: 1rem; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none !important; line-height: 1.2;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--ambar-500); color: var(--cinza-900); box-shadow: 0 8px 20px rgba(232,150,31,.3); }
.btn--primary:hover { background: var(--ambar-400); }
.btn--secondary { background: var(--verde-700); color: var(--branco); }
.btn--secondary:hover { background: var(--verde-600); }
.btn--outline { border-color: var(--verde-700); color: var(--verde-700); background: transparent; }
.btn--outline:hover { background: var(--verde-100); }
.btn--light { border-color: rgba(255,255,255,.6); color: var(--branco); background: transparent; }
.btn--light:hover { background: rgba(255,255,255,.1); }
.btn--whats { background: #25d366; color: #0b3d2e; }
.btn--whats:hover { background: #3be07a; }
.btn--sm { padding: 10px 18px; font-size: .92rem; }
.btn svg { width: 20px; height: 20px; }

/* ---------- Cabeçalho ---------- */
.topbar {
  background: var(--verde-900); color: #cfe3d9; font-size: .85rem;
}
.topbar .container { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; flex-wrap: wrap; }
.topbar a { color: var(--branco); }
.header {
  position: sticky; top: 0; z-index: 900; background: rgba(255,255,255,.94);
  backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid var(--cinza-100);
}
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none !important; }
.brand img { width: 46px; height: 46px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--fonte-titulo); font-weight: 700; color: var(--verde-900); font-size: 1.1rem; }
.brand__tag { font-size: .72rem; color: var(--cinza-500); letter-spacing: .04em; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 10px 14px; border-radius: 999px; font-weight: 500; color: var(--cinza-700); font-size: .97rem;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--verde-100); color: var(--verde-900); text-decoration: none; }
.nav .btn { margin-left: 10px; color: var(--cinza-900); }
.nav-toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer; border-radius: 8px;
}
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--verde-900); margin: 5px 0; border-radius: 3px; transition: .2s; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--branco);
    flex-direction: column; align-items: stretch; padding: 12px 16px 20px; gap: 4px;
    border-bottom: 1px solid var(--cinza-100); box-shadow: var(--sombra);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 14px; border-radius: var(--raio-sm); }
  .nav .btn { margin: 10px 0 0; }
  .topbar { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(1200px 600px at 85% -10%, #1f7a58 0%, var(--verde-900) 55%);
  color: var(--branco); overflow: hidden; position: relative;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("../img/pattern.svg") center/520px repeat; opacity: .07;
}
.hero .container {
  position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px;
  align-items: center; padding: clamp(56px, 8vw, 110px) 0;
}
.hero h1 { color: var(--branco); margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--ambar-400); }
.hero p { font-size: 1.15rem; color: #d7e9df; max-width: 560px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 22px; }
.hero__note { font-size: .88rem; color: #b9d3c6; }
.hero__art img { width: 100%; filter: drop-shadow(0 30px 40px rgba(0,0,0,.25)); }
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero__art { order: -1; max-width: 520px; margin: 0 auto; }
}

/* ---------- Faixa de confiança ---------- */
.trust { background: var(--branco); border-bottom: 1px solid var(--cinza-100); }
.trust .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 28px 0; }
.trust__item { display: flex; gap: 12px; align-items: flex-start; }
.trust__item img { width: 40px; height: 40px; flex: none; }
.trust__item strong { display: block; font-family: var(--fonte-titulo); color: var(--verde-900); font-size: .98rem; }
.trust__item span { font-size: .88rem; color: var(--cinza-500); }
@media (max-width: 900px) { .trust .container { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .trust .container { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 24px; }
.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: 960px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--3, .grid--2, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: var(--branco); border: 1px solid var(--cinza-100); border-radius: var(--raio);
  padding: 28px; box-shadow: var(--sombra); transition: transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sombra-forte); }
.card__icon { width: 64px; height: 64px; margin-bottom: 18px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--cinza-700); margin-bottom: 0; font-size: .98rem; }
.card ul { color: var(--cinza-700); font-size: .95rem; margin: 10px 0 0; padding-left: 1.1em; }
.card .link { margin-top: auto; padding-top: 16px; font-weight: 600; }
.card--dark { background: var(--verde-800); border-color: var(--verde-700); color: #dfeee6; }
.card--dark h3 { color: var(--branco); }
.card--dark p { color: #cfe3d9; }

/* ---------- Split (texto + imagem) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--reverse > :first-child { order: 2; }
.split img { width: 100%; }
.split .checklist { list-style: none; padding: 0; margin: 20px 0 28px; }
.checklist li { position: relative; padding-left: 34px; margin-bottom: 12px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--verde-100) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23176247' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M5 13l4 4L19 7'/></svg>") center/14px no-repeat;
}
.section--dark .checklist li::before { background-color: rgba(255,255,255,.12); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } .split--reverse > :first-child { order: 0; } }

/* ---------- Passos ---------- */
.steps { counter-reset: passo; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.step { position: relative; background: var(--branco); border-radius: var(--raio); padding: 26px 22px 22px; border: 1px solid var(--cinza-100); box-shadow: var(--sombra); }
.step::before {
  counter-increment: passo; content: counter(passo, decimal-leading-zero);
  font-family: var(--fonte-titulo); font-weight: 700; font-size: 2rem; color: var(--ambar-500);
  display: block; margin-bottom: 8px; line-height: 1;
}
.step h3 { font-size: 1.08rem; }
.step p { font-size: .93rem; color: var(--cinza-700); margin: 0; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Portais ---------- */
.portais { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.portais span {
  background: var(--branco); border: 1px solid var(--cinza-300); border-radius: 999px;
  padding: 8px 16px; font-size: .92rem; color: var(--cinza-700); font-weight: 500;
}

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(135deg, var(--verde-800), var(--verde-600));
  color: var(--branco); border-radius: 24px; padding: clamp(36px, 5vw, 64px);
  display: grid; grid-template-columns: 1.3fr .7fr; gap: 32px; align-items: center;
  position: relative; overflow: hidden;
}
.cta h2 { color: var(--branco); }
.cta p { color: #d7e9df; margin-bottom: 0; }
.cta__actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq details {
  background: var(--branco); border: 1px solid var(--cinza-100); border-radius: var(--raio-sm);
  padding: 0 22px; margin-bottom: 12px; box-shadow: var(--sombra);
}
.faq summary {
  cursor: pointer; padding: 18px 36px 18px 0; font-family: var(--fonte-titulo); font-weight: 600;
  color: var(--verde-900); list-style: none; position: relative; font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; color: var(--ambar-600); font-weight: 300;
}
.faq details[open] summary::after { content: "−"; }
.faq details p, .faq details ul { color: var(--cinza-700); padding-bottom: 18px; margin: 0; }

/* ---------- Página interna ---------- */
.page-hero { background: var(--verde-900); color: var(--branco); padding: clamp(44px, 6vw, 72px) 0; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: url("../img/pattern.svg") center/520px repeat; opacity: .06; pointer-events: none; }
.page-hero .container { position: relative; }
.page-hero h1 { color: var(--branco); margin-bottom: 10px; }
.page-hero p { color: #cfe3d9; max-width: 680px; font-size: 1.1rem; margin: 0; }
.breadcrumb { font-size: .85rem; color: #b9d3c6; margin-bottom: 14px; }
.breadcrumb a { color: #e3f3ec; }

.prose { max-width: 820px; }
.prose h2 { font-size: 1.6rem; margin-top: 2em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.6em; }
.prose p, .prose li { color: var(--cinza-700); }
.prose table { width: 100%; border-collapse: collapse; font-size: .93rem; margin: 16px 0 24px; }
.prose th, .prose td { border: 1px solid var(--cinza-300); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--verde-100); color: var(--verde-900); font-family: var(--fonte-titulo); font-weight: 600; }
.prose .box {
  background: var(--ambar-100); border-left: 4px solid var(--ambar-500); border-radius: var(--raio-sm);
  padding: 16px 20px; margin: 20px 0;
}
.prose .meta { font-size: .88rem; color: var(--cinza-500); }

/* ---------- Formulário ---------- */
.form-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .form-wrap { grid-template-columns: 1fr; } }
.form { background: var(--branco); border: 1px solid var(--cinza-100); border-radius: var(--raio); padding: 32px; box-shadow: var(--sombra); }
.form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--verde-900); }
.form .field { margin-bottom: 18px; }
.form input, .form select, .form textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--cinza-300); border-radius: var(--raio-sm);
  font: inherit; font-size: 1rem; background: var(--branco); color: var(--cinza-900);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--verde-500); border-color: var(--verde-500); }
.form textarea { min-height: 130px; resize: vertical; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.form .consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--cinza-700); font-weight: 400; }
.form .consent input { width: auto; margin-top: 4px; }
.form .hp { position: absolute; left: -9999px; }
.form small { color: var(--cinza-500); font-size: .82rem; }
.contact-info .item { display: flex; gap: 14px; margin-bottom: 20px; align-items: flex-start; }
.contact-info .item img { width: 38px; height: 38px; flex: none; }
.contact-info strong { display: block; font-family: var(--fonte-titulo); color: var(--verde-900); }
.contact-info a { word-break: break-all; }

/* ---------- Rodapé ---------- */
.footer { background: var(--verde-900); color: #b9d3c6; padding: 56px 0 24px; font-size: .92rem; }
.footer a { color: #e3f3ec; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; margin-bottom: 36px; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }
.footer h4 { color: var(--branco); font-size: .95rem; margin-bottom: 14px; letter-spacing: .04em; text-transform: uppercase; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; }
.footer__brand img { width: 44px; margin-bottom: 12px; }
.footer__legal {
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; font-size: .82rem; color: #93b3a4;
}
.footer__legal p { margin-bottom: 6px; }
.footer__disclaimer { background: rgba(255,255,255,.06); border-radius: var(--raio-sm); padding: 14px 18px; margin-bottom: 20px; font-size: .85rem; }

/* ---------- WhatsApp flutuante ---------- */
.whats-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 850; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(0,0,0,.25); transition: transform .15s;
}
.whats-float:hover { transform: scale(1.06); }
.whats-float svg { width: 32px; height: 32px; }

/* ---------- Banner de cookies ---------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1500; max-width: 720px; margin: 0 auto;
  background: var(--branco); border: 1px solid var(--cinza-300); border-radius: var(--raio);
  box-shadow: var(--sombra-forte); padding: 22px 24px; display: none;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner h2 { font-size: 1.05rem; margin-bottom: 6px; }
.cookie-banner p { font-size: .9rem; color: var(--cinza-700); margin-bottom: 14px; }
.cookie-banner__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-modal {
  position: fixed; inset: 0; z-index: 1600; background: rgba(11,61,46,.55); display: none;
  align-items: center; justify-content: center; padding: 16px;
}
.cookie-modal.is-visible { display: flex; }
.cookie-modal__box { background: var(--branco); border-radius: var(--raio); max-width: 560px; width: 100%; padding: 28px; max-height: 90vh; overflow: auto; }
.cookie-modal__box h2 { font-size: 1.2rem; }
.cookie-cat { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--cinza-100); }
.cookie-cat:first-of-type { border-top: 0; }
.cookie-cat label { font-weight: 600; color: var(--verde-900); display: block; }
.cookie-cat p { font-size: .86rem; color: var(--cinza-700); margin: 2px 0 0; }
.switch { position: relative; flex: none; width: 46px; height: 26px; margin-top: 2px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider { position: absolute; inset: 0; background: var(--cinza-300); border-radius: 999px; cursor: pointer; transition: .2s; }
.switch .slider::before { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + .slider { background: var(--verde-600); }
.switch input:checked + .slider::before { transform: translateX(20px); }
.switch input:disabled + .slider { opacity: .6; cursor: not-allowed; }
.cookie-modal__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

/* ---------- Alerta de formulário ---------- */
.alert { padding: 14px 18px; border-radius: var(--raio-sm); margin-bottom: 18px; font-size: .95rem; display: none; }
.alert--erro { background: #fdecea; color: var(--erro); border: 1px solid #f5c6c2; }
.alert.is-visible { display: block; }

/* ---------- Página 404 / obrigado ---------- */
.center { text-align: center; max-width: 640px; margin: 0 auto; }
.center img { max-width: 360px; margin: 0 auto 28px; }

/* ---------- Utilitários ---------- */
.mt-0 { margin-top: 0 !important; }
.mt-2 { margin-top: 24px; }
.mt-3 { margin-top: 40px; }
.text-center { text-align: center; }
.badge { display: inline-block; background: var(--ambar-100); color: var(--ambar-600); border-radius: 999px; padding: 4px 12px; font-size: .78rem; font-weight: 600; }
.muted { color: var(--cinza-500); font-size: .9rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .header, .topbar, .whats-float, .cookie-banner, .cookie-modal, .footer__grid { display: none !important; }
}
