/* ==========================================================================
   KILON ANDAIMES & ESTRUTURAS MS — DESIGN SYSTEM INDUSTRIAL CLEAN
   Identidade Visual: Industrial B2B Premium, Alto Contraste e Alta Conversão
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@500;600;700&display=swap');

:root {
  /* Cores de Superfície (Clean & Luminoso) */
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-alt: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-card-subtle: #f1f5f9;

  /* Bordas e Divisores */
  --border-color: #e2e8f0;
  --border-subtle: #edf2f7;
  --border-focus: #f59e0b;
  --border-gold: rgba(245, 158, 11, 0.4);

  /* Paleta KILON Industrial (Laranja Âmbar + Aço Escovado) */
  --primary-gold: #f59e0b;
  --primary-gold-hover: #d97706;
  --primary-orange: #ea580c;
  --primary-dark: #b45309;
  --gold-glow: rgba(245, 158, 11, 0.25);

  /* Acentos de Apoio e Engenharia */
  --accent-cyan: #0284c7;
  --accent-blue: #2563eb;
  --accent-green: #059669;
  --accent-red: #dc2626;

  /* Tipografia de Alto Contraste */
  --text-main: #0f172a;
  --text-primary: #0f172a;
  --text-muted: #475569;
  --text-secondary: #64748b;
  --text-dim: #94a3b8;

  /* Geometria e Sombras */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 16px 32px -4px rgba(15, 23, 42, 0.10), 0 6px 12px -4px rgba(15, 23, 42, 0.05);
  --shadow-gold: 0 8px 24px -4px rgba(245, 158, 11, 0.35);
}

/* Reset Global & Tipografia Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--text-main);
  letter-spacing: -0.02em;
  font-weight: 700;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   NAVBAR & HEADER
   ========================================================================== */
header.navbar, header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary-gold), var(--primary-gold-hover));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 22px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.brand-text strong {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.brand-text span {
  font-size: 10px;
  color: var(--primary-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  display: block;
}

.nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 22px;
  align-items: center;
}

.nav-links li {
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: color 0.2s ease;
  padding: 6px 4px;
}

.nav-links a:hover {
  color: var(--primary-gold-hover);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ==========================================================================
   BOTÕES E ELEMENTOS INTERATIVOS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  border: 1px solid transparent;
  line-height: 1.4;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-gold), var(--primary-gold-hover));
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-gold-hover), var(--primary-dark));
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.45);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-main);
  border: 1.5px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-alt);
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-muted);
  border: 1.5px solid #cbd5e1;
}

.btn-outline:hover {
  background: #ffffff;
  color: var(--text-main);
  border-color: var(--primary-gold);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: var(--radius-md);
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  padding: 64px 0 48px;
  background: radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.08) 0%, transparent 60%),
              linear-gradient(180deg, #ffffff 0%, var(--bg-page) 100%);
  border-bottom: 1px solid var(--border-color);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.badge-pill, .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--primary-dark);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.badge-pill .dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary-gold);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--primary-gold);
}

.hero-content h1 {
  font-size: 42px;
  line-height: 1.15;
  margin-bottom: 18px;
  color: #0f172a;
  font-weight: 800;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-gold-hover), #b45309);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 580px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-metrics {
  display: flex;
  align-items: center;
  gap: 24px;
  background: #ffffff;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  width: fit-content;
}

.metric-item strong {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

.metric-item span {
  font-size: 12px;
  color: var(--text-secondary);
}

.metric-divider {
  width: 1px;
  height: 32px;
  background-color: var(--border-color);
}

.hero-card {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.status-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-dark);
  background: rgba(245, 158, 11, 0.12);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.mono-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
}

.hero-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.hero-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.comparison-bars {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.bar-group .bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 6px;
  font-weight: 600;
}

.bar-track {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.bar-fill.fill-kilon {
  background: linear-gradient(90deg, var(--primary-gold), var(--primary-gold-hover));
  height: 100%;
  border-radius: var(--radius-full);
}

.bar-fill.fill-rent {
  background: #94a3b8;
  height: 100%;
  border-radius: var(--radius-full);
}

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ==========================================================================
   SIMULADOR MODULAR NR-18 (DESIGN SYSTEM LUMINOSO & ORGANIZADO)
   ========================================================================== */
section.section {
  padding: 64px 0;
}

.section.bg-alt {
  background-color: var(--bg-alt);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 40px;
}

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: var(--primary-dark);
  background: rgba(245, 158, 11, 0.15);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  letter-spacing: 1px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.section-header h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #0f172a;
}

.section-header p {
  color: var(--text-muted);
  font-size: 15px;
}

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

.card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  color: #1e293b;
  margin-bottom: 6px;
}

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

/* Campos de Formulário Modernos */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  background-color: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-sm);
  color: #0f172a;
  font-size: 14px;
  font-family: inherit;
  font-weight: 500;
  transition: all 0.2s ease;
  outline: none;
}

select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
  appearance: none;
  -webkit-appearance: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary-gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

/* Slider de Altura Estilizado */
.range-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

input[type="range"] {
  flex: 1;
  height: 8px;
  background: #cbd5e1;
  border-radius: var(--radius-full);
  outline: none;
  cursor: pointer;
  accent-color: var(--primary-gold);
}

.range-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  color: #b45309;
  background: #fef3c7;
  border: 1px solid #fde68a;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  min-width: 90px;
  text-align: center;
}

/* Aviso de Engenharia NR-18 */
.nr18-notice {
  background: #fffbeb;
  border: 1.5px solid #fde68a;
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 24px;
  font-size: 13px;
  color: #92400e;
  line-height: 1.5;
}

.nr18-notice strong {
  color: #78350f;
}

/* Painel de Resultados do Simulador */
.sim-output-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1.5px solid var(--border-color);
  margin-bottom: 20px;
}

.sim-output-header h3 {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

.badge-nr18 {
  font-size: 11px;
  font-weight: 700;
  color: #047857;
  background: #d1fae5;
  border: 1px solid #a7f3d0;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

/* Lista de Itens do Kit Sugerido */
.sim-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.sim-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease;
}

.sim-item:hover {
  border-color: #cbd5e1;
}

.sim-item-name strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.sim-item-name span {
  font-size: 12px;
  color: var(--text-secondary);
}

.sim-item-qty {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 15px;
  color: var(--primary-dark);
}

/* Totais do Simulador */
.sim-totals {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1.5px solid #fde68a;
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
}

.sim-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #475569;
  margin-bottom: 8px;
}

.sim-total-row strong {
  color: #0f172a;
  font-weight: 700;
}

.sim-total-row.main-total {
  border-top: 1.5px dashed #fcd34d;
  padding-top: 12px;
  margin-top: 12px;
  margin-bottom: 0;
}

.sim-total-row.main-total span {
  font-size: 14px;
  font-weight: 700;
  color: #92400e;
}

.sim-total-row.main-total strong {
  font-size: 26px;
  font-weight: 900;
  color: #b45309;
}

.sim-economy-note {
  font-size: 12px;
  color: #78350f;
  margin-top: 8px;
  font-weight: 500;
}

/* ==========================================================================
   CATÁLOGO DOS 10 SKUs (KL-01 A KL-10)
   ========================================================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.product-card {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-gold);
  box-shadow: var(--shadow-md);
}

.product-card .tag {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #d1fae5;
  color: #047857;
  border: 1px solid #a7f3d0;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.product-card h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
  color: #0f172a;
}

.product-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.product-prices {
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
  margin-bottom: 18px;
}

.price-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.price-item .sale-price {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
}

/* ==========================================================================
   CONSTRUTOR MULTI-SKU & ORÇAMENTO
   ========================================================================== */
.venda-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: start;
}

.quote-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.quote-item-row {
  display: grid;
  grid-template-columns: 2fr 110px auto;
  gap: 12px;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px;
  box-shadow: var(--shadow-sm);
}

.quote-item-remove {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quote-item-remove:hover {
  background: #fecaca;
}

/* ==========================================================================
   MALHA REGIONAL MS (14 POLOS)
   ========================================================================== */
.regional-ms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.regional-ms-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.regional-ms-card:hover {
  border-color: var(--primary-gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.regional-ms-card strong {
  font-size: 15px;
  color: #0f172a;
  font-weight: 700;
  margin-bottom: 4px;
}

.regional-ms-card span {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ==========================================================================
   FOOTER & ACESSIBILIDADE
   ========================================================================== */
footer {
  background: #0f172a;
  color: #f8fafc;
  padding: 56px 0 28px;
  margin-top: 64px;
  border-top: 1px solid #1e293b;
}

footer h4 {
  color: #ffffff;
  font-size: 16px;
  margin-bottom: 14px;
}

footer a {
  color: #94a3b8;
  transition: color 0.2s;
}

footer a:hover {
  color: #ffffff;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-copy {
  text-align: center;
  color: #64748b;
  font-size: 13px;
  border-top: 1px solid #1e293b;
  padding-top: 24px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--primary-gold);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  z-index: 9999;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

.field-hint {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.mobile-menu-toggle {
  display: none;
  background: #ffffff;
  color: #0f172a;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
}

/* Dialog Modal */
dialog.kilon-dialog {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 600px;
  width: 90%;
  margin: auto;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
}

dialog.kilon-dialog::backdrop {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
}

/* ==========================================================================
   RESPONSIVIDADE (MOBILE & TABLET)
   ========================================================================== */
@media (max-width: 900px) {
  .hero-grid, .sim-layout, .venda-grid, .footer-content {
    grid-template-columns: 1fr !important;
  }

  .form-row {
    grid-template-columns: 1fr !important;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  }

  .nav-links.nav-open {
    display: flex;
  }

  .quote-item-row {
    grid-template-columns: 1fr;
  }
}
