/* ═══ components.css — Buttons, chips, accessibility helpers, typography classes, tags ═══ */

/* ── 4. Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-btn);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  padding: 14px 28px;
  text-decoration: none;
}

.btn-p {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(30,58,95,0.08);
}

.btn-p:hover {
  background: var(--navy-dark);
  box-shadow: 0 6px 24px rgba(30,58,95,0.15);
  transform: translateY(-2px);
}

.btn-o {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--gray-200);
}

.btn-o:hover {
  border-color: var(--blue);
  background: rgba(93,173,226,0.04);
}

.btn-g {
  background: var(--frost);
  color: var(--muted);
  border: 1.5px solid var(--gray-200);
}

.btn-g:hover {
  background: var(--pale);
  color: var(--navy);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border2);
  border-radius: var(--radius-btn);
  padding: 6px 16px 6px 8px;
  font-size: 0.82rem;
  color: var(--muted);
}

.chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}


/* ── 14. Accessibility ── */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(93,173,226,.28);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  transform: translateY(-140%);
  background: var(--navy);
  color: var(--white);
  padding: 12px 16px;
  border-radius: 12px;
  z-index: 500;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(45,62,74,.2);
}

.skip-link:focus {
  transform: translateY(0);
}

.offline-banner {
  position: sticky;
  top: 0;
  z-index: 90;
  padding: 12px 18px;
  background: var(--navy);
  color: var(--white);
  text-align: center;
  font-size: .92rem;
  line-height: 1.5;
}

.offline-banner[hidden] {
  display: none !important;
}

/* ── 15. Semantic Typography ── */

.type-display {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  color: var(--navy);
}

.type-h1 {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

.type-h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
}

.type-h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--navy);
}

.type-subheading {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--navy);
}

.type-body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--gray-600, #4A5E72);
}

.type-body-bold {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.65;
  color: var(--navy);
}

.type-small {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--gray-400, #8A9BB0);
}

.type-overline {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
}

/* ── 16. Brand Button Variants ── */

.btn-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--navy-dark);
  box-shadow: 0 6px 24px rgba(30,58,95,0.15);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--blue);
  color: var(--white);
  box-shadow: var(--shadow-blue);
}

.btn-secondary:hover {
  background: var(--blue-mid, #5DADE2);
  box-shadow: 0 6px 24px rgba(106,175,224,0.25);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--gray-200, #D9E2EA);
}

.btn-outline:hover {
  border-color: var(--blue);
  background: rgba(106,175,224,0.04);
}

.btn-ghost {
  background: var(--blue-wash, var(--frost));
  color: var(--navy);
}

.btn-ghost:hover {
  background: var(--blue-pale, var(--pale));
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: 8px;
}

/* ── 17. Tags ── */

.tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.tag-blue {
  background: var(--blue-wash, var(--frost));
  color: var(--navy);
}

.tag-navy {
  background: var(--navy);
  color: var(--white);
}

.tag-outline {
  background: transparent;
  border: 1.5px solid var(--gray-200, #D9E2EA);
  color: var(--gray-500, #5E7383);
}

.tag-success {
  background: var(--success-light, #E8F8EE);
  color: var(--success);
}

.tag-warning {
  background: var(--warning-light, #FEF3E5);
  color: var(--warning);
}

.tag-error {
  background: var(--error-light, #FDE8E8);
  color: var(--error);
}

