/* =========================================================================
   V2M LICITAÇÕES — style.css
   Sistema de design: "Dossiê Oficial"
   Paleta:
     --navy-deep  #0A192F  (fundo institucional / header / footer)
     --navy       #123A6B  (ações primárias, links)
     --navy-soft  #1F4E8C  (hover)
     --gold       #F59E0B  (selo / destaque / autenticidade)
     --ink        #1D2733  (texto principal)
     --slate      #5B6B7C  (texto secundário)
     --bg         #F4F6F9  (fundo de página)
     --white      #FFFFFF
     --line       #DDE3EA  (bordas / divisores)
     --success    #2E7D32  (confirmações / itens habilitados)
   Tipografia:
     Display: 'Source Serif 4' — títulos, tom de "documento oficial"
     Corpo:   'Inter'          — leitura, formulários, UI
     Utilitária: 'IBM Plex Mono' — números de processo, CNPJ, certidões
   ========================================================================= */

:root {
  --navy-deep: #0A192F;
  --navy: #123A6B;
  --navy-soft: #1F4E8C;
  --gold: #F59E0B;
  --gold-light: #FBC96B;
  --ink: #1D2733;
  --slate: #5B6B7C;
  --bg: #F4F6F9;
  --white: #FFFFFF;
  --line: #DDE3EA;
  --success: #2E7D32;

  --font-display: 'Source Serif 4', 'Georgia', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --radius: 4px;
  --shadow-sm: 0 1px 3px rgba(10, 31, 61, 0.08);
  --shadow-md: 0 6px 24px rgba(10, 31, 61, 0.12);
  --container: 1160px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  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 { color: var(--navy-soft); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-deep);
  line-height: 1.25;
  font-weight: 700;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(200, 155, 60, 0.1);
  border: 1px solid rgba(200, 155, 60, 0.35);
  padding: 6px 12px;
  border-radius: 2px;
  margin-bottom: 18px;
}

.section {
  padding: 88px 0;
}

.section--tight { padding: 56px 0; }

.section--navy {
  background: var(--navy-deep);
  color: #C7D3E3;
}
.section--navy h2, .section--navy h3 { color: var(--white); }

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head p {
  color: var(--slate);
  font-size: 1.05rem;
  margin-top: 14px;
}

.section--navy .section-head p { color: #A9BAD1; }

/* =========================================================================
   BOTÕES
   ========================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--gold);
  color: var(--navy-deep);
}
.btn--primary:hover { background: var(--gold-light); color: var(--navy-deep); }

.btn--outline {
  background: transparent;
  border-color: rgba(255,255,255,0.4);
  color: var(--white);
}
.btn--outline:hover { background: rgba(255,255,255,0.1); color: var(--white); }

.btn--dark {
  background: var(--navy-deep);
  color: var(--white);
}
.btn--dark:hover { background: var(--navy); color: var(--white); }

.btn--block { width: 100%; justify-content: center; }

/* =========================================================================
   CABEÇALHO / NAVEGAÇÃO
   ========================================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-deep);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--container);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}

.brand-mark {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.brand-text .brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--white);
  line-height: 1.1;
}

.brand-text .brand-sub {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  display: block;
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  color: #C7D3E3;
  font-size: 0.94rem;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: var(--radius);
  transition: background 0.15s ease, color 0.15s ease;
}

.main-nav a:hover { background: rgba(255,255,255,0.06); color: var(--white); }

.main-nav a.active {
  color: var(--white);
  background: rgba(200, 155, 60, 0.16);
  box-shadow: inset 0 -2px 0 var(--gold);
}

.nav-cta { margin-left: 12px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--white);
  margin: 0 auto;
}

/* =========================================================================
   HERO
   ========================================================================= */

.hero {
  background: linear-gradient(160deg, var(--navy-deep) 0%, #0E2A50 55%, var(--navy) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding: 96px 24px 80px;
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  color: var(--white);
  margin-bottom: 20px;
}

.hero .lede {
  font-size: 1.12rem;
  color: #C7D3E3;
  max-width: 52ch;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-tag {
  font-size: 0.82rem;
  color: #C7D3E3;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 7px 14px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.hero-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

.hero-seal-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* =========================================================================
   SELO OFICIAL (elemento assinatura) — badge circular estilo carimbo
   ========================================================================= */

.seal {
  width: 100%;
  max-width: 300px;
  height: auto;
}

.seal-ring-outer { fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-dasharray: 3 4; }
.seal-ring-inner { fill: none; stroke: rgba(255,255,255,0.5); stroke-width: 1; }
.seal-bg { fill: rgba(200,155,60,0.08); }
.seal-check { stroke: var(--gold); stroke-width: 5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.seal-text { fill: var(--gold-light); font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 2.5px; }
.seal-center-text { fill: var(--white); font-family: var(--font-display); font-size: 15px; font-weight: 700; }
.seal-sub-text { fill: #A9BAD1; font-family: var(--font-mono); font-size: 6.5px; letter-spacing: 1px; }

.seal--small { max-width: 128px; }

/* variante para uso sobre fundo claro (cards de certificação) */
.seal--onlight .seal-bg { fill: rgba(18,58,107,0.05); }
.seal--onlight .seal-ring-inner { stroke: rgba(18,58,107,0.35); }
.seal--onlight .seal-text { fill: var(--navy); }
.seal--onlight .seal-sub-text { fill: var(--slate); }
.seal--onlight .seal-center-text { fill: var(--navy-deep); }
.seal--onlight .seal-check { stroke: var(--gold); }
.seal--onlight .seal-ring-outer { stroke: var(--gold); }

/* =========================================================================
   CARDS DE DIFERENCIAIS / GRID
   ========================================================================= */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  background: rgba(18,58,107,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--navy);
}

.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { color: var(--slate); font-size: 0.96rem; }

/* Cartão estilo "dossiê" com aba lateral */
.folio {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 28px 30px;
  box-shadow: var(--shadow-sm);
}
.folio h3 { font-size: 1.05rem; margin-bottom: 8px; }
.folio p { color: var(--slate); font-size: 0.95rem; }

/* =========================================================================
   LISTAS DE CHECAGEM (estilo documento habilitado)
   ========================================================================= */

.check-list { list-style: none; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 1rem;
}
.check-list li:last-child { border-bottom: none; }
.check-list .check-mark {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(46,125,50,0.12);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 2px;
}

.section--navy .check-list li { border-bottom-color: rgba(255,255,255,0.12); }

/* =========================================================================
   TABELA DE PRODUTOS (estilo catálogo/ledger)
   ========================================================================= */

.catalog {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.catalog-row {
  display: grid;
  grid-template-columns: 64px 1.3fr 2fr;
  gap: 24px;
  align-items: center;
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
}
.catalog-row:last-child { border-bottom: none; }
.catalog-row:nth-child(even) { background: #FAFBFD; }

.catalog-index {
  font-family: var(--font-mono);
  color: var(--gold);
  font-size: 0.95rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.catalog-row h3 { font-size: 1.08rem; margin-bottom: 4px; }
.catalog-row p { color: var(--slate); font-size: 0.94rem; }

/* =========================================================================
   FAIXA CTA
   ========================================================================= */

.cta-band {
  background: var(--navy);
  color: var(--white);
  padding: 56px 0;
}
.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); font-size: 1.5rem; margin-bottom: 6px; }
.cta-band p { color: #C7D3E3; }

/* =========================================================================
   PÁGINA INTERNA — CABEÇALHO DE PÁGINA
   ========================================================================= */

.page-header {
  background: var(--navy-deep);
  color: var(--white);
  padding: 64px 0 48px;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 42px 42px;
}
.page-header .container { position: relative; }
.page-header h1 { color: var(--white); font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.page-header p { color: #A9BAD1; max-width: 60ch; margin-top: 14px; font-size: 1.05rem; }

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 16px;
}
.breadcrumb span { color: #7488A6; margin: 0 8px; }

/* =========================================================================
   FORMULÁRIO DE CONTATO
   ========================================================================= */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy-deep);
  margin-bottom: 7px;
}
.field label .req { color: var(--gold); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.96rem;
  color: var(--ink);
  background: #FAFBFD;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(18,58,107,0.12);
  background: var(--white);
}
.field textarea { resize: vertical; min-height: 130px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.field-error {
  display: none;
  color: #B3261E;
  font-size: 0.8rem;
  margin-top: 6px;
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #B3261E;
  background: #FDF4F3;
}
.field.has-error .field-error { display: block; }

.form-status {
  display: none;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 0.92rem;
}
.form-status.show { display: block; }
.form-status.success {
  background: rgba(46,125,50,0.1);
  color: var(--success);
  border: 1px solid rgba(46,125,50,0.3);
}

.info-list { list-style: none; }
.info-list li {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.info-list li:last-child { border-bottom: none; }
.info-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(18,58,107,0.08);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}
.info-list h3 { font-size: 0.98rem; margin-bottom: 4px; }
.info-list p, .info-list a { color: var(--slate); font-size: 0.94rem; }

.map-note {
  margin-top: 24px;
  padding: 18px 20px;
  background: #FAFBFD;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--slate);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

/* =========================================================================
   RODAPÉ
   ========================================================================= */

.site-footer {
  background: var(--navy-deep);
  color: #A9BAD1;
  padding: 56px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand { display: flex; gap: 12px; margin-bottom: 14px; }
.footer-brand .brand-name { color: var(--white); font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; }
.footer-col h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #A9BAD1; font-size: 0.94rem; }
.footer-col a:hover { color: var(--white); }
.footer-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #7488A6;
  line-height: 1.8;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.82rem;
  color: #7488A6;
  flex-wrap: wrap;
  gap: 10px;
}

/* =========================================================================
   RESPONSIVO
   ========================================================================= */

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-seal-wrap { order: -1; }
  .seal { max-width: 190px; margin: 0 auto 24px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .site-header.nav-open .main-nav {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--navy-deep);
    padding: 12px 24px 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    gap: 2px;
  }
  .site-header.nav-open .nav-cta { margin-left: 0; margin-top: 8px; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .catalog-row { grid-template-columns: 48px 1fr; }
  .catalog-row p { grid-column: 1 / -1; }
  .section { padding: 56px 0; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
