/* ============ Fonte (alojada localmente — sem pedidos a terceiros) ============ */
@font-face {
  font-family: "Open Sans";
  src: url("../fonts/open-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

/* ============ Tokens ============ */
:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f4f7f8;
  --color-text: #1d2a30;
  --color-muted: #5a6a72;
  --color-primary: #1f5f6b;
  --color-primary-dark: #164852;
  --color-accent: #e8f1f2;
  --color-border: #d6e0e3;
  --radius: 10px;
  --max-width: 1080px;
  --font: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;           /* 16px ≈ 12pt — acima do mínimo de 10pt exigido pelo BdP */
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

h1, h2, h3 { line-height: 1.25; margin: 0 0 0.75rem; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; }
p  { margin: 0 0 1rem; }

a { color: var(--color-primary); }
a:hover { color: var(--color-primary-dark); }

.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 1rem; }
.narrow { max-width: 760px; }
.small { font-size: 0.9rem; }   /* 14.4px ≈ 10.8pt — continua acima do mínimo */
.muted { color: var(--color-muted); }

/* ============ Cabeçalho ============ */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(6px);
}
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.5rem 1.5rem; padding-top: 0.75rem; padding-bottom: 0.75rem;
}
.brand { font-weight: 700; font-size: 1.15rem; color: var(--color-text); text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; font-size: 0.95rem; }
.nav a { text-decoration: none; color: var(--color-text); }
.nav a:hover { color: var(--color-primary); }
.nav .nav-highlight { color: var(--color-primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ============ Destaque ============ */
.hero { padding: 4.5rem 0 4rem; background: linear-gradient(180deg, var(--color-accent), var(--color-bg)); }
.hero .lead { font-size: 1.15rem; color: var(--color-muted); max-width: 640px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 1rem; }
.hero-note { font-size: 0.95rem; color: var(--color-primary-dark); font-weight: 600; }

.status-badge {
  display: inline-block; margin-bottom: 1.25rem;
  padding: 0.35rem 0.8rem; border-radius: 999px;
  background: #fff4dc; color: #7a5300; border: 1px solid #f1d9a0;
  font-size: 0.9rem; font-weight: 600;
}

.btn {
  display: inline-block; padding: 0.75rem 1.4rem; border-radius: var(--radius);
  font-weight: 600; text-decoration: none; border: 2px solid var(--color-primary);
}
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); color: #fff; }
.btn-secondary { background: transparent; color: var(--color-primary); }
.btn-secondary:hover { background: var(--color-accent); }

/* ============ Secções ============ */
.section { padding: 4rem 0; }
.section-alt { background: var(--color-bg-alt); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.25rem; }
.card p { margin: 0; color: var(--color-muted); }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 1.5rem 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.steps li { counter-increment: step; position: relative; padding-top: 2.75rem; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--color-primary); color: #fff; font-weight: 700;
}
.steps p { margin: 0; color: var(--color-muted); }

.contact-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.contact-list li { padding: 0.75rem 0; border-bottom: 1px solid var(--color-border); }
.contact-list span { display: inline-block; min-width: 6rem; font-weight: 600; }

/* ============ Modelo BdP ============ */
.bdp-model { border: 2px solid var(--color-text); border-radius: 4px; padding: 1.5rem; background: #fff; }
.bdp-title { font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.02em; text-align: center; margin-bottom: 1.25rem; }
.bdp-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.bdp-table th, .bdp-table td { border: 1px solid var(--color-border); padding: 0.6rem 0.75rem; vertical-align: top; text-align: left; }
.bdp-table th { width: 40%; font-weight: 600; background: var(--color-bg-alt); }
.bdp-list { margin: 0; padding-left: 1.1rem; }
.bdp-list li + li { margin-top: 0.35rem; }
.bdp-notes { margin-top: 1.25rem; font-size: 1rem; }
.bdp-notes p:last-child { margin-bottom: 0; }

@media (max-width: 640px) {
  .bdp-model { padding: 1rem; }
  .bdp-table th, .bdp-table td { display: block; width: 100%; }
  .bdp-table th { border-bottom: none; }
}

/* ============ Rodapé ============ */
.site-footer { background: var(--color-text); color: #d9e2e5; padding: 3rem 0 1.5rem; font-size: 0.95rem; }
.site-footer a { color: #ffffff; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }
.footer-title { font-size: 1rem; color: #fff; margin-bottom: 0.75rem; }
.footer-list { padding-left: 1.1rem; margin: 0 0 1rem; }
.lr-link {
  display: inline-block; padding: 0.6rem 1rem; border: 1px solid #fff; border-radius: 6px;
  text-decoration: none; font-weight: 600;
}
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem;
  margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.footer-bottom p { margin: 0; }

/* ============ Página de texto (privacidade) ============ */
.page { padding: 3rem 0 4rem; }
.page h2 { font-size: 1.25rem; margin-top: 2rem; }
