/* ============================================================
   NREDE DO BRASIL — Design System
   ============================================================ */

:root {
  /* Brand core (derivado da logo oficial + materiais existentes) */
  --navy: #071B33;
  --navy-raised: #0E2A4A;
  --navy-deep: #050F1E;
  --ink: #0B1B2B;
  --ink-soft: #4B5C6E;
  --muted: #5b6d79;

  --paper: #F6FAFD;
  --paper-raised: #FFFFFF;
  --line: #D7E3EE;

  --blue: #1863DC;
  --blue-deep: #0056A7;
  --blue-bright: #4B93FF;

  --green: #008E50;
  --green-bright: #16B872;

  --yellow: #FCD90A;
  --amber: #E0A400;

  --red-alert: #D6455A;

  --on-navy: #EAF2FA;
  --on-navy-soft: #9FB4C9;

  --shadow-sm: 0 4px 14px rgba(7, 27, 51, .08);
  --shadow-md: 0 16px 40px rgba(7, 27, 51, .14);
  --shadow-lg: 0 30px 80px rgba(7, 27, 51, .22);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --font-display: 'Archivo Black', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;

  --container: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

.wrap {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--navy);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--green-bright);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(22,184,114,.18);
}
.on-navy .eyebrow { color: var(--yellow); }
.on-navy .eyebrow::before { box-shadow: 0 0 0 4px rgba(252,217,10,.18); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary {
  background: linear-gradient(135deg, var(--green-bright), var(--green));
  color: #fff;
  box-shadow: 0 14px 30px rgba(0,142,80,.28);
}
.btn.secondary {
  background: transparent;
  color: var(--navy);
  border-color: rgba(7,27,51,.22);
}
.on-navy .btn.secondary,
.hero-band .btn.secondary,
.final-cta .btn.secondary,
.page-hero .btn.secondary {
  color: #fff;
  border-color: rgba(255,255,255,.4);
}
.on-navy .btn.secondary:hover,
.hero-band .btn.secondary:hover,
.final-cta .btn.secondary:hover,
.page-hero .btn.secondary:hover {
  background: rgba(255,255,255,.1);
}
.btn.gold {
  background: linear-gradient(135deg, var(--yellow), var(--amber));
  color: var(--navy-deep);
  box-shadow: 0 14px 30px rgba(252,217,10,.22);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246,250,253,.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.topbar {
  background: var(--navy-deep);
  color: rgba(255,255,255,.82);
  font-size: 13px;
}
.topbar .wrap {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.topbar .contact-line { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar a:hover { color: #fff; }

.nav-main .wrap {
  min-height: 132px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 108px; width: auto; }

.navlinks {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-soft);
}
.navlinks a { position: relative; padding: 8px 0; }
.navlinks a:hover, .navlinks a.active { color: var(--blue-deep); }
.navlinks .dropdown { position: relative; }
.navlinks .dropdown-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 300px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.navlinks .dropdown:hover .dropdown-panel,
.navlinks .dropdown:focus-within .dropdown-panel {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.dropdown-panel a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-weight: 600;
}
.dropdown-panel a:hover { background: var(--paper); }
.dropdown-panel .ico {
  width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center;
  font-size: 15px; font-weight: 900; color: #fff;
  flex-shrink: 0;
}
.mobile-toggle { display: none; }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-head {
  max-width: 720px;
  margin: 0 0 52px;
}
.section-head p { color: var(--ink-soft); font-size: 17.5px; line-height: 1.65; margin: 18px 0 0; }
h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.08; }
h3 { font-size: 21px; line-height: 1.25; }

.band { background: var(--paper-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-navy { background: var(--navy); color: var(--on-navy); }
.band-navy h2, .band-navy h3, .band-navy h4 { color: #fff; }
.band-navy p { color: var(--on-navy-soft); }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.card .ico {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: grid; place-items: center;
  margin-bottom: 20px;
  color: #fff;
}
.card h3 { margin-bottom: 10px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.6; }
.card .learn { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 700; font-size: 14px; color: var(--blue-deep); }
.card .learn .arrow { transition: transform .15s ease; }
.card:hover .learn .arrow { transform: translateX(4px); }

.grid { display: grid; gap: 22px; }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* ---------- Stats ---------- */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { border-left: 3px solid var(--green-bright); padding-left: 16px; }
.stat strong { display: block; font-family: var(--font-display); font-size: 30px; color: #fff; }
.stat span { display: block; margin-top: 6px; font-size: 13.5px; color: var(--on-navy-soft); line-height: 1.4; }

/* ---------- Reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--navy-deep); color: var(--on-navy-soft); padding: 68px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-brand img { height: 96px; margin-bottom: 16px; }
.footer-brand p { max-width: 300px; font-size: 14px; line-height: 1.6; }
.footer-tags { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.footer-tags span { border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 5px 12px; font-size: 12px; }
.footer-col h4 { color: #fff; font-family: var(--font-body); font-size: 14px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 18px; }
.footer-col ul { display: grid; gap: 12px; }
.footer-col a { font-size: 14.5px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }

/* ---------- Timeline ---------- */
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; }
.timeline::before { content: ""; position: absolute; top: 22px; left: 8%; right: 8%; height: 2px; background: var(--line); }
.timeline-item { position: relative; padding: 0 24px; text-align: center; }
.timeline-item .year-dot {
  width: 46px; height: 46px; border-radius: 50%; margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--green-bright), var(--green));
  color: #fff; font-family: var(--font-display); font-size: 13px;
  box-shadow: 0 0 0 6px var(--paper-raised), var(--shadow-sm);
  position: relative; z-index: 1;
}
.timeline-item h4 { font-size: 17px; margin-bottom: 8px; }
.timeline-item p { margin: 0; color: var(--ink-soft); font-size: 14.5px; line-height: 1.55; }
@media (max-width: 860px) {
  .timeline { grid-template-columns: 1fr; gap: 32px; }
  .timeline::before { display: none; }
}

/* ---------- Client trust strip ---------- */
.clients-strip { background: var(--paper-raised); border-bottom: 1px solid var(--line); padding: 40px 0; }
.clients-strip .label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); margin-bottom: 22px; text-align: center; }
.clients-strip .logos-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.client-badge {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 22px; background: var(--paper);
  font-family: var(--font-display); font-size: 14.5px; color: var(--navy);
  transition: transform .15s ease, box-shadow .15s ease;
}
.client-badge:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.client-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-bright); flex-shrink: 0; }

/* ---------- Segments band (pill list) ---------- */
.segments-band ul { display: flex; flex-wrap: wrap; gap: 12px; }
.segments-band li { background: var(--paper-raised); border: 1px solid var(--line); border-radius: 999px; padding: 11px 20px; font-size: 14.5px; font-weight: 600; color: var(--navy); }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #1EBE57;
  color: #fff;
  padding: 14px 20px;
  border-radius: 999px;
  box-shadow: 0 16px 34px rgba(30,190,87,.4);
  font-weight: 700;
  font-size: 14.5px;
}
.wa-float:hover { transform: translateY(-3px); }

@media (max-width: 1080px) {
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .navlinks, .topbar .contact-line { display: none; }
  .mobile-toggle { display: block; }
  .grid-3, .grid-2, .stats-row { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
}

/* ============================================================
   Solution detail pages
   ============================================================ */
.page-hero { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%); color: var(--on-navy); padding: 64px 0 76px; }
.page-hero .wrap { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px; }
.page-hero h1 { color: #fff; font-size: clamp(32px, 4vw, 48px); max-width: 620px; }
.page-hero p.lede { color: var(--on-navy-soft); font-size: 17.5px; line-height: 1.7; max-width: 560px; margin: 18px 0 0; }
.page-hero .ico-big { width: 88px; height: 88px; border-radius: 20px; display: grid; place-items: center; font-family: var(--font-display); font-size: 26px; color: #fff; box-shadow: var(--shadow-lg); flex-shrink: 0; }
.breadcrumb { font-size: 13px; color: var(--on-navy-soft); margin-bottom: 20px; }
.breadcrumb a { color: var(--on-navy-soft); }
.breadcrumb a:hover { color: #fff; }

.benefit-row { display: flex; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.benefit-row:last-child { border-bottom: none; }
.benefit-row .num { font-family: var(--font-display); font-size: 22px; color: var(--green-bright); flex-shrink: 0; width: 46px; }
.benefit-row h4 { font-size: 18px; margin-bottom: 6px; }
.benefit-row p { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.6; }

.other-solutions { grid-template-columns: repeat(4, 1fr); }
.mini-card { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 18px; transition: transform .15s ease, box-shadow .15s ease; }
.mini-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.mini-card .ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 13px; flex-shrink: 0; margin: 0; }
.mini-card strong { font-size: 14.5px; color: var(--navy); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

@media (max-width: 860px) {
  .page-hero .wrap { grid-template-columns: 1fr; text-align: left; }
  .page-hero .ico-big { display: none; }
  .other-solutions { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
}
