/* =============================================================
   KUMO SECURITY — COMPONENT LIBRARY
   Reusable UI patterns shared across all pages.
   Requires brand.css to be loaded first.
   ============================================================= */


/* ─── NAV ─────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 52px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}
.nav-left {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo {
  display: flex;
  align-items: center;
}
.nav-logo img {
  height: 24px;
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  font-size: 13.5px;
  color: var(--text-secondary);
  padding: 6px 10px;
  border-radius: var(--radius-btn);
  transition: color var(--transition), background var(--transition);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.nav-links a:hover {
  color: var(--text);
  background: #F1F5F9;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-right a.nav-link-plain {
  font-size: 13.5px;
  color: var(--text-secondary);
  padding: 6px 10px;
  border-radius: var(--radius-btn);
  transition: color var(--transition);
}
.nav-right a.nav-link-plain:hover { color: var(--text); }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text-muted);
  transition: transform 0.2s, opacity 0.2s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile drawer */
.mobile-menu {
  display: none;
  position: fixed;
  top: 52px;
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  z-index: 99;
  padding: 12px 0 20px;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding: 12px 24px;
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color var(--transition);
}
.mobile-menu a:hover { color: var(--text); }
.mobile-menu .mobile-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 24px;
}
.mobile-menu .btn-primary {
  margin: 4px 24px 0;
  width: calc(100% - 48px);
  justify-content: center;
}


/* ─── BUTTONS ─────────────────────────────────────────────── */
.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  transition: background var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: -0.01em;
  min-height: 36px;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-secondary {
  background: var(--surface);
  color: #374151;
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: -0.01em;
  min-height: 36px;
}
.btn-secondary:hover {
  background: #F1F5F9;
  border-color: var(--border-strong);
}
.btn-secondary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}


/* ─── SECTION PRIMITIVES ──────────────────────────────────── */
.section {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.section-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-family: var(--font-mono);
}
.section-title {
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 16px;
}
.section-title span { color: var(--text-muted); }
.section-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 480px;
}


/* ─── STATUS BADGES ───────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: var(--radius-badge);
  flex-shrink: 0;
}
.badge-pass    { background: var(--pass-bg);    color: var(--pass);    border: 1px solid var(--pass-border); }
.badge-fail    { background: var(--fail-bg);    color: var(--fail);    border: 1px solid var(--fail-border); }
.badge-partial { background: var(--partial-bg); color: var(--partial); border: 1px solid var(--partial-border); }
.badge-unknown { background: var(--unknown-bg); color: var(--unknown); border: 1px solid var(--unknown-border); }


/* ─── FOOTER ──────────────────────────────────────────────── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 40px 24px 28px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.footer-logo {
  display: flex;
  align-items: center;
}
.footer-logo img {
  height: 20px;
  width: auto;
}
.footer-nav {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
  flex-wrap: wrap;
}
.footer-nav a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-bottom p {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-muted);
}
.footer-bottom-links {
  display: flex;
  gap: 20px;
}
.footer-bottom-links a {
  font-size: 12px;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-bottom-links a:hover { color: var(--text); }


/* ─── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links     { display: none; }
  .nav-right     { display: none; }
  .nav-hamburger { display: flex; }

  .section { padding: 56px 20px; }
  .section-title { font-size: 28px; }

  .footer-top    { flex-direction: column; gap: 20px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer-bottom-links { justify-content: center; }
  footer { padding: 36px 20px 24px; }
}

@media (max-width: 480px) {
  .footer-nav { gap: 16px; }
}
