:root {
  --bg: #ffffff;
  --card: #ffffff;
  --line: #e5e7eb;
  --text: #111827;
  --muted: #4b5563;
  --soft: #f3f4f6;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

a { color: #111827; text-decoration: none; }
a:hover { color: #374151; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Header / Nav */
.header {
  position: sticky; top: 0; z-index: 20;
  background: #fff; border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand-block { display: flex; flex-direction: column; align-items: flex-start; }
.brand { font-weight: 800; font-size: 20px; color: var(--text); }
.tagline { font-size: 13px; color: var(--muted); margin-top: 2px; }

.nav { display: flex; gap: 16px; flex-wrap: wrap; }
.nav a {
  padding: 8px 12px; border-radius: 10px;
  color: var(--text); font-weight: 500;
}
.nav a:hover { background: var(--soft); color: #111827; }
.nav a.active { background: var(--soft); color: #111827; }

/* Layout */
.hero { padding: 32px 0 8px; }
h1.section-title { margin: 0 0 8px; font-size: 28px; font-weight: 800; }
p.section-text { color: var(--muted); max-width: 840px; }
.lead { font-size: 18px; color: #1f2937; }

/* Cards & grids */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.grid-3 {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.grid-2 {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.row { display: flex; align-items: center; gap: 12px; }

/* KPI */
.kpi-label { font-size: 12px; color: #6b7280; }
.kpi-value { font-size: 24px; font-weight: 800; color: #111827; }

/* Footer */
.footer { background: #fff; border-top: 1px solid var(--line); margin-top: 40px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.muted { color: #6b7280; font-size: 14px; }

/* Utilities */
.badge {
  display: inline-block; background: var(--soft); color: #111827;
  font-weight: 600; font-size: 14px; padding: 4px 12px; border-radius: 999px; margin-bottom: 10px;
}
.list { padding-left: 18px; line-height: 1.9; margin: 8px 0 0; }

/* Buttons (used on Home/Contact) */
.btn, .button, .btn-primary {
  display: inline-block; background: #111827; color: #fff;
  padding: 12px 24px; border-radius: 8px; font-weight: 600; font-size: 14px;
  text-decoration: none; transition: background .2s; border: none; cursor: pointer;
}
.btn:hover, .button:hover, .btn-primary:hover { background: #374151; }

/* Forms */
input[type="text"], input[type="email"], textarea {
  font-family: inherit; font-size: 16px; border: 1px solid var(--line);
  border-radius: 6px; padding: 10px; width: 100%; margin-top: 4px; background: #fff; color: var(--text);
}
label { font-weight: 600; font-size: 14px; color: var(--text); }

/* Focus */
a:focus, .btn:focus, .button:focus, .btn-primary:focus,
input:focus, textarea:focus { outline: 2px solid #111827; outline-offset: 2px; }

/* Responsive */
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .card { padding: 16px; margin-bottom: 12px; }
  h1.section-title { font-size: 22px; }
  p.section-text, .lead { font-size: 16px; line-height: 1.6; }
}
@media (max-width: 640px) {
  .footer-inner { flex-direction: column; gap: 8px; }
}
