/* O documento da proposta (prévia e PDF). Folhas A4 com a identidade da Saara:
   base clara, laranja e areia, bloco azul petróleo, círculos e barras em degradê.
   No PDF: a capa ocupa a página inteira; as demais folhas começam em página nova
   e, se passarem de uma página, continuam com margem (definida no @page). */

.sheet {
  --s-pad-x: 18mm;
  --s-pad-y: 16mm;
  position: relative; width: 210mm; min-height: 297mm;
  background: #FFFFFF; color: #1E1E1E;
  padding: var(--s-pad-y) var(--s-pad-x) 12mm;
  display: flex; flex-direction: column;
  font-family: 'Montserrat', system-ui, sans-serif; font-size: 10pt; line-height: 1.55;
  box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 12px 32px rgba(0,0,0,.08);
  overflow: hidden;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.sheet__body { flex: 1; display: flex; flex-direction: column; gap: 6mm; }
.sheet__foot {
  display: flex; align-items: center; gap: 6mm; margin-top: 7mm; padding-top: 3.5mm;
  border-top: 1px solid rgba(30,30,30,.1); font-size: 7.5pt; color: #7A746D;
}
.sheet__foot img { height: 4.2mm; width: auto; flex-shrink: 0; }
.sheet__foot span { white-space: nowrap; }
.sheet__foot span:last-child { margin-left: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* ---------- tipografia do documento ---------- */
.d-eyebrow { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 8pt; letter-spacing: .14em; text-transform: uppercase; color: #E25220; }
/* Marca do Brand Book: quadrado laranja antes do título de cada seção. */
.d-eyebrow { display: flex; align-items: center; gap: 2.2mm; }
.d-eyebrow::before { content: ''; width: 2.6mm; height: 2.6mm; background: #E25220; flex-shrink: 0; }
.d-h2 { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 24pt; line-height: 1.08; letter-spacing: -.02em; margin-top: -4mm; }
.d-h2--sm { font-size: 18pt; }
.d-lede { font-size: 12pt; line-height: 1.55; color: #4A4744; max-width: 60ch; }
.d-p { color: #4A4744; }
.d-p + .d-p { margin-top: 2mm; }
.d-mini { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 8pt; letter-spacing: .12em; text-transform: uppercase; color: #7A746D; margin-bottom: 3mm; }
.sheet__body > .d-mini { margin-bottom: -4mm; }
.d-list { list-style: none; padding: 0; display: grid; gap: 1.2mm; margin-top: 2.5mm; }
.d-list li { position: relative; padding-left: 5mm; color: #1E1E1E; }
.d-list li::before { content: ''; position: absolute; left: 0; top: .62em; width: 2.2mm; height: 2.2mm; border-radius: 50%; background: #E25220; transform: translateY(-50%); }
.d-vazio { border: 1px dashed rgba(30,30,30,.25); border-radius: 4mm; padding: 10mm; text-align: center; color: #7A746D; }

/* ---------- capa ---------- */
.sheet--capa { background: #F4F4F4; padding: 20mm; justify-content: space-between; }
.capa__orb {
  position: absolute; right: -52mm; top: 38mm; width: 175mm; height: 175mm; border-radius: 50%;
  background: url(img/formas/orbe-laranja.png) center / 100% 100% no-repeat;
}
.capa__bars { position: absolute; right: 20mm; bottom: 70mm; display: grid; gap: 3mm; justify-items: end; }
.capa__bars i { display: block; height: 5mm; border-radius: 5mm; background: url(img/formas/barra-laranja.png) center / 100% 100% no-repeat; }
.capa__bars i:nth-child(1) { width: 36mm; }
.capa__bars i:nth-child(2) { width: 58mm; }
.capa__bars i:nth-child(3) { width: 24mm; background: url(img/formas/barra-azul.png) center / 100% 100% no-repeat; }
.capa__logo { position: relative; width: 52mm; height: auto; }
.capa__meio { position: relative; max-width: 170mm; display: grid; grid-template-columns: minmax(0, 1fr); gap: 5mm; margin-top: 40mm; }
.capa__cliente { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 42pt; line-height: 1.02; letter-spacing: -.03em; color: #1E1E1E; overflow-wrap: anywhere; }
.capa__projeto { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 20pt; line-height: 1.15; color: #E25220; margin-top: -2mm; }
.capa__escopo { font-size: 12pt; color: #4A4744; }
.capa__pe { position: relative; display: flex; flex-wrap: wrap; gap: 4mm 8mm; padding-top: 6mm; border-top: 1px solid rgba(30,30,30,.18); }
.capa__pe div { display: grid; gap: .5mm; }
.capa__pe span { font-size: 7.5pt; letter-spacing: .12em; text-transform: uppercase; color: #7A746D; }
.capa__pe b { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 10pt; white-space: nowrap; }

/* ---------- sobre e contexto ---------- */
.d-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5mm; }
.d-nums div { border-top: 2px solid #1E1E1E; padding-top: 3mm; display: grid; }
.d-nums b { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 26pt; line-height: 1; color: #E25220; letter-spacing: -.02em; }
.d-nums span { font-size: 8.5pt; color: #4A4744; margin-top: 1.5mm; }
.d-logos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5mm; }
.d-logos span { height: 25mm; display: flex; align-items: center; justify-content: center; background: #F4F4F4; border-radius: 2.5mm; padding: 0 6mm; overflow: hidden; }
.d-logos img { max-width: 100%; max-height: 16mm; width: auto; height: auto; object-fit: contain; filter: grayscale(1) contrast(1.1); mix-blend-mode: multiply; opacity: .9; }
.d-contexto { display: grid; grid-template-columns: 1fr 1fr; gap: 6mm; background: #F3EAE1; border-radius: 5mm; padding: 7mm 8mm; margin-bottom: 2mm; break-inside: avoid; }
.d-contexto > div:only-child { grid-column: 1 / -1; }
.d-contexto .d-eyebrow { margin-bottom: 2.5mm; }
.d-contexto .d-p { color: #1E1E1E; }

/* ---------- escopo ---------- */
.d-frente { display: block; }
.d-frente__cab { break-after: avoid; display: flex; align-items: baseline; gap: 5mm; padding: 3mm 0; border-bottom: 2px solid #1E1E1E; }
.d-frente__cab h3 { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 13pt; }
.d-frente__cab p { font-size: 8.5pt; color: #7A746D; }
.d-svcs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 8mm; }
.d-svc { padding: 5mm 0; border-bottom: 1px solid rgba(30,30,30,.1); break-inside: avoid; display: flex; flex-direction: column; gap: 2mm; }
.d-svc h3 { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 11pt; line-height: 1.25; }
.d-svc__meta { align-self: flex-start; font-size: 7.5pt; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #2E4F65; background: #EAF0F3; border-radius: 99px; padding: .6mm 2.6mm; }
.d-svc__canais { display: flex; flex-wrap: wrap; gap: 1.5mm; }
.d-svc__canais span { font-size: 8pt; font-weight: 600; border: 1px solid rgba(226,82,32,.45); color: #C6431A; border-radius: 99px; padding: .4mm 2.4mm; }
.d-svc__inclui { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 7.5pt; letter-spacing: .12em; text-transform: uppercase; color: #7A746D; margin-top: 1mm; }
.d-svc .d-list { margin-top: 0; break-inside: avoid; }
.d-svc__inclui { break-after: avoid; }
.d-svc { min-width: 0; }
.d-svc--largo { grid-column: 1 / -1; break-inside: auto; }
.d-smods { break-inside: avoid; }
.d-smods__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5mm; margin-top: 1.5mm; }
.d-smods__grid div { background: #F4F4F4; border-left: 3px solid #E25220; border-radius: 2.5mm; padding: 2.8mm 3.2mm; display: grid; gap: .6mm; break-inside: avoid; }
.d-smods__grid b { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 9pt; line-height: 1.25; }
.d-smods__grid span { font-size: 7.8pt; line-height: 1.4; color: #4A4744; }
.d-smods-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4mm 3mm; }
.d-smods-cols .d-smods__grid { grid-template-columns: 1fr; gap: 2mm; }

/* ---------- sistema ---------- */
.d-mods { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5mm; }
.d-mod { background: #F4F4F4; border-radius: 4mm; padding: 5mm; break-inside: avoid; border-left: 3px solid #E25220; }
.d-mod h4 { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 10.5pt; }
.d-mod p { color: #4A4744; margin-top: 1mm; font-size: 9pt; }
.d-etapas { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 3mm; counter-reset: et; break-inside: avoid; }
.d-etapas li { counter-increment: et; position: relative; padding-top: 9mm; font-weight: 600; font-size: 9pt; line-height: 1.3; }
.d-etapas li::before { content: counter(et); position: absolute; top: 0; left: 0; width: 6.5mm; height: 6.5mm; border-radius: 50%; background: #2E4F65; color: #fff; font-family: 'Poppins', sans-serif; font-size: 8pt; display: grid; place-items: center; }
.d-etapas li::after { content: ''; position: absolute; top: 3.2mm; left: 8.5mm; right: -1mm; height: 1px; background: rgba(46,79,101,.3); }
.d-etapas li:last-child::after { display: none; }
.d-prazo { font-size: 10.5pt; background: #F3EAE1; border-radius: 99px; padding: 2.5mm 5mm; justify-self: start; align-self: flex-start; }

/* ---------- processo, cases, depoimento ---------- */
.d-processo { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4mm; counter-reset: pr; break-inside: avoid; }
.d-processo li { counter-increment: pr; background: #F3EAE1; border-radius: 4mm; padding: 4mm; }
.d-processo li::before { content: '0' counter(pr); display: block; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 14pt; color: #E25220; line-height: 1; margin-bottom: 2mm; }
.d-processo h4 { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 11pt; }
.d-processo p { font-size: 8.5pt; color: #4A4744; margin-top: 1mm; }
.d-cases-cab { display: grid; gap: 4mm; margin-top: 3mm; break-after: avoid; }
.d-cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid #1E1E1E; break-inside: avoid; }
.d-case { padding: 4mm 5mm 0 0; display: grid; align-content: start; gap: 1.5mm; }
.d-case + .d-case { border-left: 1px solid rgba(30,30,30,.12); padding-left: 5mm; }
.d-case__nome { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 10pt; }
.d-case b { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 22pt; line-height: 1; letter-spacing: -.02em; color: #E25220; white-space: nowrap; }
.d-case__rot { font-size: 8.5pt; color: #1E1E1E; }
.d-case__seg { font-size: 7.5pt; letter-spacing: .06em; text-transform: uppercase; color: #7A746D; margin-top: 1.5mm; }
.d-case__txt { font-size: 8.5pt; color: #4A4744; }
.d-depo { background: #2E4F65; color: #FFFFFF; border-radius: 5mm; padding: 6mm 8mm; margin-top: auto; position: relative; overflow: hidden; break-inside: avoid; }
.d-depo::after { content: ''; position: absolute; right: -26mm; top: -26mm; width: 55mm; height: 55mm; border-radius: 50%; background: url(img/formas/orbe-laranja.png) center / 100% 100% no-repeat; opacity: .9; }
.d-depo p { position: relative; font-family: 'Poppins', sans-serif; font-weight: 500; font-size: 11pt; line-height: 1.45; max-width: 52ch; }
.d-depo cite { position: relative; display: block; margin-top: 4mm; font-style: normal; font-weight: 700; font-size: 9pt; }
.d-depo cite span { font-weight: 500; opacity: .7; margin-left: 2mm; }

/* ---------- investimento ---------- */
.d-tab { width: 100%; border-collapse: collapse; font-size: 9pt; }
.d-tab th { text-align: left; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 7.5pt; letter-spacing: .1em; text-transform: uppercase; color: #7A746D; padding: 0 3mm 2.5mm 0; border-bottom: 2px solid #1E1E1E; }
.d-tab td { padding: 2mm 3mm 2mm 0; border-bottom: 1px solid rgba(30,30,30,.1); vertical-align: top; }
.d-tab tr { break-inside: avoid; }
.d-tab td b { font-weight: 600; }
.d-tab td b + span { margin-left: 1.5mm; }
.d-tab td span { font-size: 7.5pt; color: #7A746D; }
.d-tab .n { text-align: right; white-space: nowrap; padding-right: 0; }
.d-tab td.n { font-weight: 600; }
.d-tab small { font-weight: 500; color: #7A746D; }
.d-tab i { font-style: normal; color: #93370D; }
.d-totais { display: grid; grid-template-columns: repeat(auto-fit, minmax(60mm, 1fr)); gap: 4mm; break-inside: avoid; }
.d-total { background: #2E4F65; color: #fff; border-radius: 5mm; padding: 5mm 6mm; display: grid; gap: 1mm; position: relative; overflow: hidden; }
.d-total:first-child { background: #1E1E1E; }
.d-total::after { content: ''; position: absolute; right: -14mm; bottom: -20mm; width: 42mm; height: 42mm; border-radius: 50%; background: url(img/formas/orbe-laranja.png) center / 100% 100% no-repeat; transform: rotate(180deg); opacity: .85; }
.d-total span { position: relative; font-size: 7.5pt; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.d-total s { position: relative; font-size: 9pt; opacity: .6; }
.d-total em { position: relative; font-style: normal; font-size: 8.5pt; color: #F7B79A; }
.d-total b { position: relative; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 22pt; line-height: 1.1; letter-spacing: -.02em; }
.d-total b small { font-size: 10pt; font-weight: 500; opacity: .8; }
.d-total__parc { position: relative; font-style: normal; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 11pt; color: #fff; margin-top: 1mm; padding-top: 2.5mm; border-top: 1px solid rgba(255,255,255,.2); }
.d-cond { break-inside: avoid; display: grid; gap: 3mm; }
.d-cond .d-mini { margin-bottom: -1mm; }
.d-validade { font-size: 9pt; color: #4A4744; }

/* ---------- combinados ---------- */
.d-termos { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 8mm; border-top: 2px solid #1E1E1E; }
.d-termos div { padding: 4mm 0; border-bottom: 1px solid rgba(30,30,30,.1); break-inside: avoid; }
.d-termos h4 { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 10pt; color: #1E1E1E; display: flex; align-items: center; gap: 2mm; }
.d-termos h4::before { content: ''; width: 2.2mm; height: 2.2mm; border-radius: 50%; background: #E25220; flex-shrink: 0; }
.d-termos p { font-size: 8.8pt; color: #4A4744; margin-top: 1.2mm; line-height: 1.5; }

/* ---------- dados das partes ---------- */
.d-partes { display: grid; grid-template-columns: 1fr 1fr; gap: 8mm; break-inside: avoid; }
.d-partes p { font-size: 9pt; color: #4A4744; }
.d-partes b { color: #1E1E1E; font-weight: 600; }

/* ---------- fechamento ---------- */
.d-passos { list-style: none; padding: 0; display: grid; gap: 0; counter-reset: ps; border-top: 2px solid #1E1E1E; }
.d-passos li { counter-increment: ps; display: flex; align-items: center; gap: 5mm; padding: 3.5mm 0; border-bottom: 1px solid rgba(30,30,30,.1); font-family: 'Poppins', sans-serif; font-weight: 500; font-size: 12pt; }
.d-passos li::before { content: counter(ps); width: 8mm; height: 8mm; border-radius: 50%; flex-shrink: 0; background: #E25220; color: #fff; font-size: 9pt; font-weight: 700; display: grid; place-items: center; }
.d-final { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 15pt; line-height: 1.3; }
.d-contato { background: #F4F4F4; border-radius: 5mm; padding: 7mm; }
.d-contato p { font-size: 9.5pt; }
.d-aceite { display: grid; grid-template-columns: 1fr 1fr; gap: 12mm; margin-top: auto; padding-top: 16mm; break-inside: avoid; }
.d-aceite div { display: grid; gap: 1mm; min-width: 0; }
.d-aceite i { display: block; height: 1px; background: #1E1E1E; margin-bottom: 2mm; }
.d-aceite b { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 10pt; }
.d-aceite span { font-size: 8.5pt; color: #7A746D; }
.d-data-aceite { font-size: 9pt; color: #4A4744; }

/* ======================================================================
   IMPRESSÃO / PDF
   ====================================================================== */
@page { size: A4; margin: 12mm 0; }
@page :first { margin: 0; }
@media print {
  html, body { background: #fff !important; height: auto; }
  .bar, .editor, .toast, .tela--lista, .tela--catalogo { display: none !important; }
  .tela--editor { display: block !important; height: auto !important; }
  .preview { display: block !important; padding: 0 !important; background: none !important; overflow: visible !important; min-height: 0 !important; }
  .vista-mob { display: none !important; }
  .preview__zoom { zoom: 1 !important; display: block; width: auto; margin: 0; }
  .sheet { box-shadow: none; min-height: 250mm; --s-pad-y: 4mm; padding-top: 4mm; padding-bottom: 0; overflow: visible; break-before: page; }
  .sheet__foot { break-before: avoid; break-inside: avoid; }
  .sheet--capa { break-before: auto; height: 297mm; min-height: 297mm; padding: 20mm; overflow: hidden; }
}
