/* Proposta Rápida — CSS Agrobiozone */

:root {
  /* Importar variáveis do brand.css */
  --abz-cyan:        #00AFEF;
  --abz-verde-claro: #95C949;
  --abz-verde-medio: #54B952;
  --abz-verde-escuro: #079D50;
  --abz-tinta:   #0f2e22;
  --abz-tinta-2: #5b7268;
  --abz-linha:   #e3eae6;
  --abz-fundo:   #f5f8f6;
  --abz-card:    #ffffff;
  --abz-gradiente: linear-gradient(90deg, var(--abz-cyan) 0%, var(--abz-verde-medio) 55%, var(--abz-verde-escuro) 100%);
  --abz-font-titulo: "HeadingNow", system-ui, Arial, sans-serif;
  --abz-font-texto:  "HeadingPro", system-ui, Arial, sans-serif;
}

/* Reset */
* {
  box-sizing: border-box;
}

/* Proposta Template — Seções */
.proposta-container {
  max-width: 900px;
  margin: 0 auto;
  background: var(--abz-card);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.proposta-header {
  background: var(--abz-gradiente);
  color: white;
  padding: 40px;
  text-align: center;
}

.proposta-header h1 {
  font-family: var(--abz-font-titulo);
  margin: 0 0 10px 0;
  font-size: 28px;
  font-weight: 800;
}

.proposta-header .logo {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
}

.proposta-section {
  padding: 30px 40px;
  border-bottom: 1px solid var(--abz-linha);
}

.proposta-section:last-child {
  border-bottom: none;
}

.proposta-section h2 {
  font-family: var(--abz-font-titulo);
  color: var(--abz-cyan);
  margin: 0 0 20px 0;
  font-size: 18px;
  font-weight: 700;
}

.proposta-section h3 {
  font-family: var(--abz-font-titulo);
  color: var(--abz-tinta);
  margin: 0 0 12px 0;
  font-size: 16px;
  font-weight: 700;
}

.proposta-section p {
  margin: 0 0 12px 0;
  line-height: 1.6;
  color: var(--abz-tinta-2);
}

/* Grid 3 colunas para cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 20px 0;
}

.card {
  background: var(--abz-fundo);
  padding: 16px;
  border-radius: 6px;
  border-left: 4px solid var(--abz-verde-medio);
}

.card h4 {
  font-family: var(--abz-font-titulo);
  margin: 0 0 8px 0;
  color: var(--abz-verde-escuro);
  font-size: 14px;
}

.card p {
  margin: 0;
  font-size: 13px;
  color: var(--abz-tinta-2);
}

/* Tabela ROI */
.roi-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 13px;
}

.roi-table th {
  background: var(--abz-verde-medio);
  color: white;
  padding: 12px;
  text-align: left;
  font-family: var(--abz-font-titulo);
  font-weight: 700;
}

.roi-table td {
  padding: 12px;
  border-bottom: 1px solid var(--abz-linha);
}

.roi-table tr:nth-child(even) {
  background: var(--abz-fundo);
}

.roi-value {
  font-family: var(--abz-font-titulo);
  font-weight: 700;
  color: var(--abz-verde-escuro);
}

/* Box destaque (investimento, payback) */
.box-destaque {
  background: linear-gradient(135deg, rgba(0, 175, 239, 0.05) 0%, rgba(84, 185, 82, 0.05) 100%);
  border-left: 4px solid var(--abz-cyan);
  padding: 20px;
  margin: 20px 0;
  border-radius: 6px;
}

.box-destaque h3 {
  margin-top: 0;
}

.investimento-breakdown {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 16px 0;
}

.investimento-item {
  background: var(--abz-card);
  border: 1px solid var(--abz-linha);
  padding: 12px;
  border-radius: 4px;
  font-size: 13px;
}

.investimento-item label {
  display: block;
  color: var(--abz-tinta-2);
  font-size: 12px;
  margin-bottom: 4px;
}

.investimento-item .valor {
  font-family: var(--abz-font-titulo);
  font-size: 16px;
  font-weight: 700;
  color: var(--abz-verde-escuro);
}

/* Print CSS */
@media print {
  body {
    background: white;
    margin: 0;
    padding: 0;
  }

  .proposta-container {
    box-shadow: none;
    margin: 0;
  }

  .formulario, .preview, .btn-gerar, button {
    display: none !important;
  }

  .proposta-section {
    page-break-inside: avoid;
  }

  .roi-table, .cards-grid {
    page-break-inside: avoid;
  }

  .proposta-header {
    background: var(--abz-gradiente);
    color: white;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .investimento-breakdown {
    grid-template-columns: 1fr;
  }

  .proposta-header {
    padding: 24px;
  }

  .proposta-section {
    padding: 20px;
  }
}
