/* ═══════════════════════════════════════════════════════
   Kabrios Shared Nav & Footer
   Loaded via <link> from https://kabrios.com/shared/kabrios-nav.css
   Used by ALL kabrios pages (main site + subdomains)
   ═══════════════════════════════════════════════════════ */

:root {
  --kb-bg: #07111f;
  --kb-surface: rgba(7, 17, 31, 0.82);
  --kb-border: rgba(210, 227, 247, 0.12);
  --kb-border-strong: rgba(210, 227, 247, 0.22);
  --kb-text: #ebf2fb;
  --kb-muted: #afc0d6;
  --kb-accent: #8fe3ff;
  --kb-accent-strong: #c6f2ff;
  --kb-btn-text: #04111b;
}

/* ── Header ── */
.kb-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--kb-surface);
  border-bottom: 1px solid var(--kb-border);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.kb-header-wrap {
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

/* ── Brand ── */
.kb-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--kb-text);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.kb-brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--kb-accent), #66e1c1);
  box-shadow: 0 0 18px rgba(138, 180, 255, 0.55);
}

.kb-brand-accent { color: var(--kb-accent); }

/* ── Nav links ── */
.kb-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.kb-nav-link {
  color: var(--kb-muted);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 8px 12px;
  border-radius: 10px;
  transition: color 0.18s ease, background 0.18s ease;
}

.kb-nav-link:hover,
.kb-nav-link.is-active {
  color: var(--kb-text);
  background: rgba(138, 180, 255, 0.08);
}

/* ── Action buttons ── */
.kb-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  white-space: nowrap;
}

.kb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--kb-border-strong);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
  font-family: inherit;
}

.kb-btn:hover {
  transform: translateY(-1px);
}

.kb-btn.is-cta {
  background: linear-gradient(135deg, var(--kb-accent) 0%, var(--kb-accent-strong) 100%);
  color: var(--kb-btn-text);
  border-color: transparent;
}

.kb-btn.is-cta:hover {
  box-shadow: 0 8px 32px rgba(143, 227, 255, 0.25);
}

.kb-btn.is-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--kb-text);
}

/* ── Mobile toggle ── */
.kb-toggle {
  display: none;
  background: transparent;
  color: var(--kb-text);
  border: 1px solid var(--kb-border-strong);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
}

/* ── Footer ── */
.kb-footer {
  border-top: 1px solid var(--kb-border);
  padding: 0;
  background: rgba(5, 11, 20, 0.45);
  margin-top: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.kb-footer-wrap {
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.5rem 0 0;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: start;
}

.kb-footer-bottom {
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--kb-border);
  margin-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(175, 192, 214, 0.4);
}

.kb-footer-brand {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--kb-text);
  margin-bottom: 0.75rem;
}

.kb-footer-copy {
  max-width: 34ch;
  font-size: 0.9rem;
  color: var(--kb-muted);
  margin: 0;
  line-height: 1.6;
}

.kb-footer-contact {
  font-size: 0.82rem;
  color: rgba(175, 192, 214, 0.4);
  margin-top: 1rem;
}

.kb-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  justify-content: flex-end;
}

.kb-footer-link {
  color: var(--kb-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.18s ease;
}

.kb-footer-link:hover {
  color: var(--kb-text);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .kb-toggle { display: block; }
  .kb-nav {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    padding: 1rem;
    background: rgba(7, 17, 31, 0.96);
    border-bottom: 1px solid var(--kb-border);
    flex-direction: column;
    align-items: stretch;
  }
  .kb-header.is-open .kb-nav { display: flex; }
  .kb-actions { gap: 0.4rem; }
  .kb-btn { padding: 0.5rem 0.8rem; font-size: 0.85rem; }
  .kb-footer-wrap { grid-template-columns: 1fr; }
  .kb-footer-links { justify-content: flex-start; }
}

/* ── Subscribe bar (above footer, on every page) ── */
.kb-subscribe-bar {
  border-top: 1px solid var(--kb-border, rgba(210, 227, 247, 0.12));
  border-bottom: 1px solid var(--kb-border, rgba(210, 227, 247, 0.12));
  background: rgba(143, 227, 255, 0.03);
  padding: 0;
}

.kb-subscribe-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem 0;
}

.kb-subscribe-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.kb-subscribe-title {
  color: var(--kb-text, #ebf2fb);
  font-size: 1rem;
  font-weight: 700;
}

.kb-subscribe-desc {
  color: var(--kb-muted, #afc0d6);
  font-size: 0.88rem;
}

.kb-subscribe-form {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.kb-subscribe-input {
  width: 260px;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--kb-border-strong, rgba(210, 227, 247, 0.22));
  background: rgba(255, 255, 255, 0.04);
  color: var(--kb-text, #ebf2fb);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.18s ease;
}

.kb-subscribe-input::placeholder {
  color: rgba(175, 192, 214, 0.4);
}

.kb-subscribe-input:focus {
  border-color: var(--kb-accent, #8fe3ff);
}

.kb-subscribe-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--kb-accent, #8fe3ff) 0%, var(--kb-accent-strong, #c6f2ff) 100%);
  color: var(--kb-btn-text, #04111b);
  font-weight: 700;
  font-size: 0.88rem;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}

.kb-subscribe-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(143, 227, 255, 0.2);
}

.kb-subscribe-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.kb-subscribe-success {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--kb-accent, #8fe3ff);
  font-size: 0.92rem;
  font-weight: 600;
}

.kb-subscribe-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(155, 231, 180, 0.15);
  color: #9be7b4;
  font-size: 0.85rem;
  font-weight: 700;
}

@media (max-width: 768px) {
  .kb-subscribe-wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    text-align: center;
  }
  .kb-subscribe-form {
    flex-direction: column;
  }
  .kb-subscribe-input {
    width: 100%;
  }
}
