/* Shared product quality, accessibility, and clean clinical UI overrides for Desinfesta Lda */

html {
  scroll-behavior: auto !important;
}

/* Shared navigation bar for static technical & institutional pages */
.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid #e2e8f0;
  background-color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.nav-links a {
  color: #334155;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 6px;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-links a:hover {
  color: #0f172a;
  background-color: #f1f5f9;
}

.nav-links a.active {
  color: #0369a1;
  background-color: #e0f2fe;
  border: 1px solid #bae6fd;
}

/* Accessible typography on clean white card surfaces (.glass-panel) */
.content-box,
.article-card,
.policy-box {
  padding: 32px;
  margin-bottom: 20px;
  text-align: left;
  color: #334155;
  background-color: #ffffff;
}

.content-box h1,
.policy-box h1 {
  color: #0f172a;
}

.content-box h2,
.article-card h2,
.policy-box h2 {
  font-size: 1.4rem;
  color: #0f172a;
  margin-top: 20px;
  margin-bottom: 10px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.content-box h2:first-child,
.article-card h2:first-of-type {
  margin-top: 0;
}

.content-box h3,
.article-card h3,
.policy-box h3 {
  font-size: 1.05rem;
  color: #0369a1;
  margin-top: 20px;
  margin-bottom: 8px;
  font-weight: 700;
}

.content-box p,
.article-card p,
.policy-box p {
  color: #334155;
  margin-bottom: 12px;
  line-height: 1.7;
  font-size: 0.94rem;
}

.content-box ul,
.article-card ul,
.article-card ol,
.policy-box ul {
  padding-left: 20px;
  margin-bottom: 14px;
  color: #334155;
}

.content-box li,
.article-card li,
.policy-box li {
  margin-bottom: 6px;
  line-height: 1.65;
  font-size: 0.92rem;
}

.policy-box a,
.content-box a:not(.btn-primary),
.article-card a:not(.btn-primary) {
  color: #0369a1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background-color: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
  margin-bottom: 12px;
}

.page-footer {
  background-color: #ffffff;
  color: #64748b;
  border-top: 1px solid #e2e8f0;
  padding: 28px 0;
  text-align: center;
  font-size: 0.85rem;
}

.page-footer a {
  color: #0369a1;
  text-decoration: none;
  margin: 0 10px;
  font-weight: 600;
}

.page-footer a:hover {
  text-decoration: underline;
  color: #0f172a;
}

/* AI Privacy & Scope Disclosure bar inside Assistant */
.ai-disclosure-bar {
  padding: 8px 12px;
  background-color: #f8fafc;
  border-top: 1px solid #e2e8f0;
  color: #475569;
  font-size: 0.68rem;
  line-height: 1.4;
  text-align: left;
}

.ai-disclosure-bar a {
  color: #0369a1;
  font-weight: 600;
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #0284c7;
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .content-box,
  .article-card,
  .policy-box {
    padding: 20px 16px;
  }
  .nav-bar {
    padding: 10px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
