:root {
  --bg: #ffffff;
  --surface: #f4f7fa;
  --ink: #1b2733;
  --muted: #5a6b7b;
  --border: #e2e8ef;
  /* Azul-aço da marca Johnsul (amostrado do logo) */
  --blue: #285489;
  --blue-dark: #1e3f68;
  --blue-soft: #eaf1f8;
  --accent: #2e9dc0; /* ciano de apoio (limpeza/frescor) */
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  line-height: 1.65;
}

.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 24px; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

h1, h2, h3, .brand, .stat-num {
  font-family: "Barlow", "Inter", system-ui, sans-serif;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand-logo { height: 40px; width: auto; display: block; }
.nav a {
  color: var(--ink);
  margin-left: 26px;
  font-weight: 600;
  font-size: 0.95rem;
}
.nav a:hover { color: var(--blue); }

/* Hero */
.hero {
  padding: 80px 0 64px;
  background: linear-gradient(180deg, var(--blue-soft), transparent);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow {
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  font-weight: 700;
  margin: 0 0 14px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.08;
  margin: 0 0 20px;
}
.hero h1 .hl { color: var(--blue); }
.lead { color: var(--muted); font-size: 1.15rem; max-width: 560px; margin: 0 0 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-media img { width: 100%; height: auto; border-radius: 16px; box-shadow: 0 20px 50px rgba(30, 63, 104, 0.18); }

/* Stats */
.stats { padding: 40px 0; border-bottom: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num { font-size: 2.2rem; font-weight: 700; color: var(--blue); line-height: 1; }
.stat-label { color: var(--muted); font-size: 0.9rem; }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); font-weight: 700; margin: 0 0 14px; }
.section h2::after { content: ""; display: block; height: 4px; width: 56px; margin-top: 10px; background: var(--blue); border-radius: 2px; }
.section > .container > p { color: var(--muted); max-width: 720px; }

/* Cards de produtos */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 34px; }
.card {
  background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 24px;
  border-top: 4px solid var(--blue);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(30, 63, 104, 0.12); }
.card h3 { margin: 0 0 8px; font-size: 1.2rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Buttons */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 8px; font-weight: 600;
  cursor: pointer; border: 2px solid transparent; font-size: 1rem; font-family: inherit;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-ghost { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-ghost:hover { background: var(--blue-soft); }

/* Contato */
.contato-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; }
.info-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 18px; }
.info-list li { color: var(--muted); }
.info-list strong { color: var(--ink); }
.contato-form { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 28px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: 0.88rem; font-weight: 600; color: var(--ink); }
.field input, .field textarea {
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
  padding: 12px 13px; color: var(--ink); font-family: inherit; font-size: 1rem;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(40, 84, 137, 0.15);
}
.form-status { font-size: 0.95rem; min-height: 1.2em; font-weight: 600; margin: 12px 0 0; }
.form-status.ok { color: #1c7c46; }
.form-status.err { color: #c62839; }

/* Footer */
.site-footer { background: var(--ink); color: #fff; padding: 40px 0; text-align: center; }
.footer-brand { color: #fff; font-weight: 700; margin: 0 0 4px; font-size: 1.15rem; }
.footer-meta { margin: 2px 0; color: rgba(255, 255, 255, 0.6); font-size: 0.88rem; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .contato-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; }
  .nav a { margin-left: 14px; font-size: 0.9rem; }
  .brand-card { flex-direction: column; text-align: center; }
}
