/* ===========================================================
   Crédito Nacional: estilos comuns (header, footer, base)
   =========================================================== */
:root {
  --bg-dark: #020806;
  --bg-dark-soft: #0a140f;
  --green-deep: #0b3a26;
  --green-logo: #0b3b25;
  --green-accent: #009e68;
  --green-accent-soft: #00b878;

  --white: #ffffff;
  --surface: #f6f8f7;
  --surface-2: #eef2f0;
  --border: #e2e8e5;

  --text: #0c1411;
  --text-muted: #5b6660;
  --text-on-dark: #e8efea;
  --text-on-dark-muted: #9fb0a8;

  --radius: 8px;
  --radius-lg: 22px;
  --maxw: 1180px;
  --shadow-sm: 0 1px 2px rgba(2, 8, 6, .06);
  --shadow-md: 0 10px 30px rgba(2, 8, 6, .08);
  --shadow-lg: 0 24px 60px rgba(2, 8, 6, .35);

  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.01em;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Botões ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 0.97rem;
  padding: 10px 24px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--green-deep);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--green-accent);
}

.btn-accent {
  background: var(--green-accent);
  color: #04130c;
}

.btn-accent:hover {
  background: var(--green-accent-soft);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--green-accent);
  color: var(--green-deep);
}

.btn-ghost-dark {
  background: transparent;
  color: var(--text-on-dark);
  border-color: rgba(255, 255, 255, .22);
}

.btn-ghost-dark:hover {
  background: var(--green-accent);
  border-color: var(--green-accent);
  color: #fff;
}

/* ===========================================================
   PRIMITIVOS COMPARTILHADOS (usados por todos os fragmentos)
   =========================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-deep);
  background: rgba(11, 58, 38, .06);
  border: 1px solid rgba(11, 58, 38, .16);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-accent);
  box-shadow: 0 0 0 4px rgba(0, 158, 104, .2);
}

.section {
  padding: 92px 0;
}

.section-head {
  max-width: 680px;
  margin-bottom: 52px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  margin-bottom: 16px;
}

.section-head p {
  font-size: 1.08rem;
  color: var(--text-muted);
  margin: 0;
}

/* Hero padrão das páginas internas (faixa escura) */
.page-hero {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 88px 0 96px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(620px 320px at 78% -10%, rgba(0, 158, 104, .18), transparent 60%);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  max-width: 760px;
}

.page-hero .eyebrow {
  color: var(--green-accent);
  background: rgba(0, 158, 104, .1);
  border-color: rgba(0, 158, 104, .28);
}

/* Rótulo (página e seções): apenas o nome em caixa-alta. */
.label {
  display: inline-block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin-bottom: 18px;
}

.label.on-dark {
  color: var(--green-accent);
}

.page-hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.3rem);
  color: #fff;
}

.page-hero h1 .accent {
  color: var(--green-accent);
}

.page-hero p {
  margin: 22px 0 0;
  font-size: 1.12rem;
  color: var(--text-on-dark-muted);
  max-width: 600px;
}

/* CTA final compartilhado */
.cta-band {
  background: var(--surface);
  padding: 0 0 92px;
}

.cta-inner {
  background:
    radial-gradient(600px 300px at 85% -20%, rgba(0, 158, 104, .22), transparent 60%),
    var(--green-deep);
  border-radius: var(--radius-lg);
  padding: 60px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  color: #fff;
  box-shadow: var(--shadow-md);
}

.cta-inner h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  color: #fff;
  max-width: 560px;
}

.cta-inner p {
  color: rgba(255, 255, 255, .8);
  margin: 12px 0 0;
  max-width: 520px;
}

.cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .cta-inner {
    padding: 44px 28px;
  }
}

/* ===========================================================
   HEADER
   =========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  height: 58px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
  transition: color .2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--green-accent);
  transition: width .25s ease;
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

.nav a.active {
  color: var(--green-deep);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-actions .btn {
  padding: 8px 20px;
}

.header-actions .btn-ghost:hover {
  background: var(--green-accent);
  border-color: var(--green-accent);
  color: #fff;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: .25s;
}

/* ===========================================================
   FOOTER
   =========================================================== */
.site-footer {
  background: var(--bg-dark);
  color: var(--text-on-dark-muted);
  padding: 52px 0 28px;
  border-top: 1px solid rgba(0, 158, 104, .18);
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand img {
  height: 72px;
  width: auto;
  margin-bottom: 14px;
}

.footer-brand p {
  max-width: 280px;
  font-size: 0.92rem;
  color: var(--text-on-dark-muted);
  margin: 0;
}

.footer-col h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--green-accent);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 11px;
}

.footer-col a {
  font-size: 0.92rem;
  color: var(--text-on-dark-muted);
  transition: color .2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-col a:hover {
  color: var(--text-on-dark);
}

.footer-icon {
  color: var(--green-accent);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.footer-col a:hover .footer-icon {
  transform: translateY(-1px);
}

.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

.footer-bottom .lgpd {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green-accent);
  font-weight: 500;
}

/* ===========================================================
   Responsivo (header/footer comuns)
   =========================================================== */
@media (max-width: 880px) {

  .nav,
  .header-actions .btn-ghost {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 18px 24px 24px;
    gap: 18px;
    align-items: flex-start;
    box-shadow: var(--shadow-md);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Utilitários ---------- */
/* Visível para leitores de tela e buscadores, fora do layout visual.
   Usado no <h1> da página de Planos, cujo título não aparece no design. */
.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;
}
