/* ==========================================================================
   NowAid Plataforma Digital — Design System
   ========================================================================== */

:root {
  --primary-900: #0b2a5b;
  --primary-800: #0d3b8c;
  --primary-700: #1649a8;
  --primary-600: #1e5fbf;
  --primary-500: #2f74d6;
  --primary-100: #dbe9fb;
  --primary-50: #eef5fe;
  --teal: #14b8a6;
  --teal-dark: #0e9488;
  --teal-50: #e6faf8;
  --bg: #f6f9ff;
  --white: #ffffff;
  --text: #1e293b;
  --muted: #5b6b84;
  --border: #e2e8f0;
  --dark-800: #0a1f42;
  --dark-700: #0d2b58;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 2px 8px rgba(11, 42, 91, 0.07);
  --shadow-md: 0 10px 30px rgba(11, 42, 91, 0.12);
  --shadow-lg: 0 24px 60px rgba(11, 42, 91, 0.18);
  --header-h: 76px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--primary-600);
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: min(1160px, 92%);
  margin-inline: auto;
}

/* ==========================================================================
   Header
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.header.scrolled {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.brand-mark {
  width: auto;
  height: 24px;
}

.footer .brand-mark {
  height: 25px;
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name strong {
  font-size: 1.22rem;
  color: var(--primary-900);
  letter-spacing: 0.2px;
}

.brand-name span {
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-600);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -26px;
  width: 100%;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--teal);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-900);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover {
  background: var(--primary-700);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  border-radius: 3px;
  background: var(--primary-900);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

@media (min-width: 1025px) and (max-width: 1420px) {
  .nav {
    gap: 14px;
  }

  .nav-links {
    gap: 13px;
  }

  .nav-links a {
    font-size: 0.8rem;
  }

  .nav-cta {
    padding: 8px 14px;
    font-size: 0.85rem;
  }
}

@media (max-width: 1024px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 12px 6%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.3s ease;
  }

  .nav-links.open {
    max-height: 480px;
    opacity: 1;
  }

  .nav-links a {
    padding: 13px 4px;
    border-bottom: 1px solid var(--border);
  }

  .nav-links a:last-child {
    border-bottom: 0;
  }

  .nav-links a.active::after {
    display: none;
  }

  .nav-links a.active {
    color: var(--primary-600);
  }

  .nav-cta {
    display: none;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  color: #fff;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(20, 184, 166, 0.32), transparent 60%),
    radial-gradient(700px 420px at -10% 110%, rgba(47, 116, 214, 0.35), transparent 60%),
    linear-gradient(110deg, rgba(8, 26, 58, 0.92) 0%, rgba(11, 42, 91, 0.85) 50%, rgba(30, 95, 191, 0.72) 100%),
    url("../img/hero-home.jpg") center 25% / cover no-repeat;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
  padding: 96px 0 104px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(20, 184, 166, 0.12);
  border: 1px solid rgba(20, 184, 166, 0.35);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.15rem);
  line-height: 1.16;
  letter-spacing: -0.6px;
  margin-bottom: 18px;
}

.hero h1 .accent {
  color: var(--teal);
}

.hero p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.06rem;
  max-width: 560px;
  margin-bottom: 30px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  perspective: 900px;
}

.hero-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  padding: 20px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.hero-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.12);
}

.hero-card.wide {
  grid-column: span 2;
}

.hero-card h4 {
  font-size: 0.9rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.hero-card p {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

.hero-card .mini-stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 10px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
}

.hero-card .mini-stat b {
  color: var(--teal);
}

.ico {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.ico-lg {
  width: 30px;
  height: 30px;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 64px 0 72px;
    gap: 36px;
  }

  .hero-visual {
    max-width: 480px;
  }
}

/* ==========================================================================
   Hero carousel com parallax
   ========================================================================== */

.hero-carousel {
  display: flex;
  flex-direction: column;
}

.hero-viewport {
  overflow: hidden;
}

.hero-track {
  display: flex;
  transition: transform 0.85s cubic-bezier(0.65, 0, 0.35, 1);
}

.hero-slide {
  position: relative;
  flex: 0 0 100%;
  min-height: min(100svh, 820px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-parallax {
  position: absolute;
  top: -16%;
  left: 0;
  width: 100%;
  height: 132%;
  background-size: cover;
  background-position: center;
  will-change: transform;
  transform: translate3d(0, 0, 0) scale(1.12);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(20, 184, 166, 0.26), transparent 60%),
    radial-gradient(700px 420px at -10% 110%, rgba(47, 116, 214, 0.32), transparent 60%),
    linear-gradient(110deg, rgba(8, 26, 58, 0.95) 0%, rgba(11, 42, 91, 0.85) 50%, rgba(11, 42, 91, 0.52) 100%);
}

.hero-body {
  position: relative;
  z-index: 3;
  padding-top: calc(var(--header-h) + 36px);
  padding-bottom: 128px;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 16px;
}

.hero-arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  transition: all 0.25s ease;
}

.hero-arrow:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: #04121f;
  transform: translateY(-2px);
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 0;
  transition: all 0.25s ease;
}

.hero-dots button.active {
  width: 30px;
  background: var(--teal);
}

@media (max-width: 900px) {
  .hero-slide {
    min-height: 92svh;
  }

  .hero-body {
    padding-top: calc(var(--header-h) + 22px);
    padding-bottom: 142px;
  }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-teal {
  background: var(--teal);
  color: #04121f;
}

.btn-teal:hover {
  background: #2dd4bf;
  box-shadow: 0 10px 26px rgba(20, 184, 166, 0.4);
}

.btn-light {
  background: #fff;
  color: var(--primary-900);
}

.btn-light:hover {
  box-shadow: 0 10px 26px rgba(255, 255, 255, 0.25);
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
}

.btn-outline-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-blue {
  background: var(--primary-900);
  color: #fff;
}

.btn-blue:hover {
  background: var(--primary-700);
  box-shadow: 0 10px 26px rgba(11, 42, 91, 0.3);
}

.btn-outline-blue {
  background: transparent;
  color: var(--primary-700);
  border: 1.5px solid var(--primary-500);
}

.btn-outline-blue:hover {
  background: var(--primary-50);
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section {
  padding: 92px 0;
}

.section.alt {
  background: var(--white);
}

.section-head {
  max-width: 780px;
  margin-bottom: 52px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--primary-900);
  line-height: 1.2;
  letter-spacing: -0.4px;
  margin-bottom: 14px;
}

.section-head p {
  color: var(--muted);
  font-size: 1.02rem;
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 640px;
}

/* ==========================================================================
   Cards & grids
   ========================================================================== */

.grid {
  display: grid;
  gap: 22px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

a.card-link {
  display: block;
  color: inherit;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-100);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 13px;
  margin-bottom: 18px;
  background: var(--primary-50);
  color: var(--primary-600);
}

.card-icon.teal {
  background: var(--teal-50);
  color: var(--teal-dark);
}

.card h3 {
  font-size: 1.08rem;
  color: var(--primary-900);
  margin-bottom: 10px;
}

.card p {
  font-size: 0.92rem;
  color: var(--muted);
}

.card ul.feats {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.card ul.feats li {
  position: relative;
  font-size: 0.88rem;
  color: var(--muted);
  padding-left: 22px;
}

.card ul.feats li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  opacity: 0.75;
}

.card-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--primary-600);
  background: var(--primary-50);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.card-tag.teal {
  color: var(--teal-dark);
  background: var(--teal-50);
}

/* Dark cards */
.card.dark {
  background: linear-gradient(160deg, var(--dark-800), var(--dark-700));
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
}

.card.dark h3 { color: #fff; }
.card.dark p { color: rgba(255, 255, 255, 0.78); }
.card.dark .card-icon { background: rgba(20, 184, 166, 0.16); color: var(--teal); }
.card.dark .card-tag { background: rgba(255, 255, 255, 0.1); color: var(--teal); }
.card.dark ul.feats li { color: rgba(255, 255, 255, 0.78); }

/* ==========================================================================
   Steps
   ========================================================================== */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
}

.step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px 24px;
  overflow: hidden;
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: 6px;
  right: 16px;
  font-size: 3.4rem;
  font-weight: 800;
  color: var(--primary-50);
  letter-spacing: -2px;
  line-height: 1;
}

.step h3 {
  font-size: 1rem;
  color: var(--primary-900);
  margin-bottom: 8px;
}

.step p {
  font-size: 0.88rem;
  color: var(--muted);
}

.step .dot {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: var(--teal);
  margin: 0 auto 16px;
}

.step.center { text-align: center; }

/* ==========================================================================
   CTA band
   ========================================================================== */

.cta-band {
  position: relative;
  background:
    radial-gradient(600px 340px at 90% 0%, rgba(20, 184, 166, 0.4), transparent 60%),
    linear-gradient(135deg, var(--primary-900), var(--primary-700));
  color: #fff;
  overflow: hidden;
}

.cta-band.cb-photo {
  background:
    radial-gradient(600px 340px at 90% 0%, rgba(20, 184, 166, 0.3), transparent 60%),
    linear-gradient(120deg, rgba(8, 26, 58, 0.94) 0%, rgba(11, 42, 91, 0.88) 55%, rgba(22, 73, 168, 0.78) 100%),
    url("../img/hero-home.jpg") center / cover no-repeat;
}

.cta-band.cb-home { background: radial-gradient(600px 340px at 90% 0%, rgba(20,184,166,.3), transparent 60%), linear-gradient(120deg, rgba(8,26,58,.94) 0%, rgba(11,42,91,.88) 55%, rgba(22,73,168,.78) 100%), url("../img/hero-home.jpg") center / cover no-repeat; }
.cta-band.cb-sobre { background: radial-gradient(600px 340px at 90% 0%, rgba(20,184,166,.3), transparent 60%), linear-gradient(120deg, rgba(8,26,58,.94) 0%, rgba(11,42,91,.88) 55%, rgba(22,73,168,.78) 100%), url("../img/sobre-hero.jpg") center / cover no-repeat; }
.cta-band.cb-solucoes { background: radial-gradient(600px 340px at 90% 0%, rgba(20,184,166,.3), transparent 60%), linear-gradient(120deg, rgba(8,26,58,.94) 0%, rgba(11,42,91,.88) 55%, rgba(22,73,168,.78) 100%), url("../img/solucoes-hero.jpg") center / cover no-repeat; }
.cta-band.cb-saude { background: radial-gradient(600px 340px at 90% 0%, rgba(20,184,166,.3), transparent 60%), linear-gradient(120deg, rgba(8,26,58,.94) 0%, rgba(11,42,91,.88) 55%, rgba(22,73,168,.78) 100%), url("../img/saude-hero.jpg") center / cover no-repeat; }
.cta-band.cb-educacao { background: radial-gradient(600px 340px at 90% 0%, rgba(20,184,166,.3), transparent 60%), linear-gradient(120deg, rgba(8,26,58,.94) 0%, rgba(11,42,91,.88) 55%, rgba(22,73,168,.78) 100%), url("../img/educacao-hero.jpg") center / cover no-repeat; }
.cta-band.cb-contratos { background: radial-gradient(600px 340px at 90% 0%, rgba(20,184,166,.3), transparent 60%), linear-gradient(120deg, rgba(8,26,58,.94) 0%, rgba(11,42,91,.88) 55%, rgba(22,73,168,.78) 100%), url("../img/contratos-hero.jpg") center / cover no-repeat; }
.cta-band.cb-telessaude { background: radial-gradient(600px 340px at 90% 0%, rgba(20,184,166,.3), transparent 60%), linear-gradient(120deg, rgba(8,26,58,.94) 0%, rgba(11,42,91,.88) 55%, rgba(22,73,168,.78) 100%), url("../img/saude-telemedicina.jpg") center / cover no-repeat; }
.cta-band.cb-contato { background: radial-gradient(600px 340px at 90% 0%, rgba(20,184,166,.3), transparent 60%), linear-gradient(120deg, rgba(8,26,58,.94) 0%, rgba(11,42,91,.88) 55%, rgba(22,73,168,.78) 100%), url("../img/contato-hero.jpg") center / cover no-repeat; }
.cta-band.cb-ai-data { background: radial-gradient(600px 340px at 90% 0%, rgba(20,184,166,.3), transparent 60%), linear-gradient(120deg, rgba(8,26,58,.94) 0%, rgba(11,42,91,.88) 55%, rgba(22,73,168,.78) 100%), url("../img/solucoes-hero.jpg") center / cover no-repeat; }
.cta-band.cb-gov { background: radial-gradient(600px 340px at 90% 0%, rgba(20,184,166,.3), transparent 60%), linear-gradient(120deg, rgba(8,26,58,.94) 0%, rgba(11,42,91,.88) 55%, rgba(22,73,168,.78) 100%), url("../img/contratos-hero.jpg") center / cover no-repeat; }

.cta-band-inner {
  padding: 84px 0;
  text-align: center;
  position: relative;
}

.cta-band h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin-bottom: 14px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 640px;
  margin: 0 auto 32px;
}

.cta-band .btn-ctas {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* ==========================================================================
   Long-page index navigation (scrollspy)
   ========================================================================== */

.index-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.index-nav-inner {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 0;
  scrollbar-width: none;
}

.index-nav-inner::-webkit-scrollbar {
  display: none;
}

.index-nav a {
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--white);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.index-nav a:hover {
  color: var(--primary-600);
  border-color: var(--primary-500);
}

.index-nav a.active {
  background: var(--primary-900);
  color: #fff;
  border-color: var(--primary-900);
}

/* ==========================================================================
   Module sections (extended pages)
   ========================================================================== */

.module {
  scroll-margin-top: calc(var(--header-h) + 88px);
  padding: 72px 0;
}

.module.alt {
  background: var(--white);
}

.module-head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 34px;
}

.module-head .m-ico {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 15px;
  background: var(--primary-900);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.module-head h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: var(--primary-900);
  letter-spacing: -0.3px;
  margin-bottom: 6px;
}

.module-head p {
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 760px;
}

.module-note {
  margin-top: 28px;
  font-size: 0.86rem;
  color: var(--muted);
  background: var(--primary-50);
  border-left: 3px solid var(--teal);
  padding: 14px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Flow pills */
.flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.flow span {
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 7px 14px;
  border-radius: 999px;
}

.flow b {
  color: var(--teal-dark);
  font-weight: 700;
}

/* Data strip (metrics examples) */
.datastrip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.datastrip span {
  font-size: 0.8rem;
  background: var(--teal-50);
  color: var(--teal-dark);
  border: 1px solid rgba(20, 184, 166, 0.3);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 500;
}

.chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.chain span {
  font-size: 0.82rem;
  background: var(--white);
  color: var(--primary-900);
  border: 1px solid var(--border);
  padding: 7px 12px;
  border-radius: 999px;
  font-weight: 500;
}

.chain i {
  font-style: normal;
  color: var(--teal);
  font-weight: 700;
  font-size: 0.9rem;
}

.chain span.hl {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}

/* ==========================================================================
   Hero small (inner pages)
   ========================================================================== */

.page-hero {
  position: relative;
  color: #fff;
  background:
    radial-gradient(700px 400px at 90% -10%, rgba(20, 184, 166, 0.28), transparent 60%),
    linear-gradient(115deg, rgba(8, 26, 58, 0.9) 0%, rgba(11, 42, 91, 0.82) 55%, rgba(30, 95, 191, 0.66) 100%),
    url("../img/hero-home.jpg") center / cover no-repeat;
  padding: 72px 0;
  overflow: hidden;
}

.page-hero.pv-sobre {
  background:
    radial-gradient(700px 400px at 90% -10%, rgba(20, 184, 166, 0.28), transparent 60%),
    linear-gradient(115deg, rgba(8, 26, 58, 0.9) 0%, rgba(11, 42, 91, 0.82) 55%, rgba(30, 95, 191, 0.66) 100%),
    url("../img/sobre-hero.jpg") center / cover no-repeat;
}

.page-hero.pv-solucoes {
  background:
    radial-gradient(700px 400px at 90% -10%, rgba(20, 184, 166, 0.28), transparent 60%),
    linear-gradient(115deg, rgba(8, 26, 58, 0.9) 0%, rgba(11, 42, 91, 0.82) 55%, rgba(30, 95, 191, 0.66) 100%),
    url("../img/solucoes-hero.jpg") center / cover no-repeat;
}

.page-hero.pv-saude {
  background:
    radial-gradient(700px 400px at 90% -10%, rgba(20, 184, 166, 0.28), transparent 60%),
    linear-gradient(115deg, rgba(8, 26, 58, 0.9) 0%, rgba(11, 42, 91, 0.82) 55%, rgba(30, 95, 191, 0.66) 100%),
    url("../img/saude-hero.jpg") center / cover no-repeat;
}

.page-hero.pv-educacao {
  background:
    radial-gradient(700px 400px at 90% -10%, rgba(20, 184, 166, 0.28), transparent 60%),
    linear-gradient(115deg, rgba(8, 26, 58, 0.9) 0%, rgba(11, 42, 91, 0.82) 55%, rgba(30, 95, 191, 0.66) 100%),
    url("../img/educacao-hero.jpg") center / cover no-repeat;
}

.page-hero.pv-contratos {
  background:
    radial-gradient(700px 400px at 90% -10%, rgba(20, 184, 166, 0.28), transparent 60%),
    linear-gradient(115deg, rgba(8, 26, 58, 0.9) 0%, rgba(11, 42, 91, 0.82) 55%, rgba(30, 95, 191, 0.66) 100%),
    url("../img/contratos-hero.jpg") center / cover no-repeat;
}

.page-hero.pv-contato {
  background:
    radial-gradient(700px 400px at 90% -10%, rgba(20, 184, 166, 0.28), transparent 60%),
    linear-gradient(115deg, rgba(8, 26, 58, 0.9) 0%, rgba(11, 42, 91, 0.82) 55%, rgba(30, 95, 191, 0.66) 100%),
    url("../img/contato-hero.jpg") center / cover no-repeat;
}

.page-hero.pv-telessaude {
  background:
    radial-gradient(700px 400px at 90% -10%, rgba(20, 184, 166, 0.28), transparent 60%),
    linear-gradient(115deg, rgba(8, 26, 58, 0.9) 0%, rgba(11, 42, 91, 0.82) 55%, rgba(30, 95, 191, 0.66) 100%),
    url("../img/saude-telemedicina.jpg") center / cover no-repeat;
}

.page-hero.pv-ai-data {
  background:
    radial-gradient(700px 400px at 90% -10%, rgba(20, 184, 166, 0.28), transparent 60%),
    linear-gradient(115deg, rgba(8, 26, 58, 0.9) 0%, rgba(11, 42, 91, 0.82) 55%, rgba(30, 95, 191, 0.66) 100%),
    url("../img/solucoes-hero.jpg") center / cover no-repeat;
}

.page-hero.pv-gov {
  background:
    radial-gradient(700px 400px at 90% -10%, rgba(20, 184, 166, 0.28), transparent 60%),
    linear-gradient(115deg, rgba(8, 26, 58, 0.9) 0%, rgba(11, 42, 91, 0.82) 55%, rgba(30, 95, 191, 0.66) 100%),
    url("../img/contratos-hero.jpg") center / cover no-repeat;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  max-width: 820px;
}

.page-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
}

.page-hero .crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.page-hero .crumbs a,
.page-hero .crumbs span {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
}

.page-hero .crumbs a:hover {
  color: var(--teal);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--primary-900);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding: 64px 0 44px;
}

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
}

.footer h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.footer .brand-name strong { color: #fff; }
.footer .brand-name span { color: rgba(255, 255, 255, 0.5); }

.footer p {
  margin-top: 14px;
  font-size: 0.86rem;
  max-width: 300px;
}

.footer ul li {
  margin-bottom: 10px;
}

.footer ul a {
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s ease;
}

.footer ul a:hover {
  color: var(--teal);
}

.footer .offices li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.86rem;
  margin-bottom: 12px;
}

.footer .offices .ico {
  width: 16px;
  height: 16px;
  color: var(--teal);
  margin-top: 3px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 22px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom strong {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 34px;
}

.form-card h3 {
  color: var(--primary-900);
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.form-card > p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 7px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.94rem;
  color: var(--text);
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px var(--primary-100);
  background: #fff;
}

.field textarea {
  resize: vertical;
  min-height: 130px;
}

.contact-info {
  display: grid;
  gap: 18px;
}

.contact-item {
  display: flex;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.contact-item .ico {
  width: 26px;
  height: 26px;
  color: var(--teal-dark);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-item h4 {
  font-size: 0.95rem;
  color: var(--primary-900);
  margin-bottom: 4px;
}

.contact-item p {
  font-size: 0.88rem;
  color: var(--muted);
}

.form-note {
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 12px;
}

/* ==========================================================================
   Highlights (two columns with list)
   ========================================================================== */

.highlight-list li {
  position: relative;
  padding: 11px 0 11px 30px;
  border-bottom: 1px dashed var(--border);
  font-size: 0.94rem;
  color: var(--muted);
}

.highlight-list li:last-child {
  border-bottom: 0;
}

.highlight-list li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 17px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--teal);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 40px;
}

@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
}

.big-quote {
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  color: var(--primary-800);
  font-weight: 600;
  line-height: 1.5;
  border-left: 4px solid var(--teal);
  padding-left: 22px;
  max-width: 720px;
}

.mt-40 { margin-top: 40px; }
.mt-24 { margin-top: 24px; }
.center { text-align: center; }

/* ==========================================================================
   Imagens
   ========================================================================== */

.photo {
  width: 100%;
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}

.photo-split {
  aspect-ratio: 4 / 3;
  width: 100%;
}

.photo-card {
  aspect-ratio: 16 / 10;
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  object-fit: cover;
}

.card-media {
  margin: -28px -26px 0;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.card:hover .card-media img {
  transform: scale(1.05);
}

@media (max-width: 640px) {
  .photo-split,
  .photo-card {
    aspect-ratio: 16 / 10;
  }
}

/* ==========================================================================
   Carrossel
   ========================================================================== */

.carousel {
  position: relative;
}

.carousel-viewport {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.carousel-track {
  display: flex;
  transition: transform 0.65s cubic-bezier(0.65, 0, 0.35, 1);
}

.carousel-slide {
  flex: 0 0 100%;
  min-height: 400px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  padding: 56px 64px;
}

.carousel-content {
  max-width: 560px;
}

.carousel-content h3 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: #fff;
  letter-spacing: -0.4px;
  margin-bottom: 12px;
}

.carousel-content p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1rem;
  margin-bottom: 24px;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 22px;
}

.carousel-arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--primary-900);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.carousel-arrow:hover {
  background: var(--primary-900);
  border-color: var(--primary-900);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.carousel-arrow .ico {
  width: 20px;
  height: 20px;
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dots button {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: #c3d2ea;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s ease;
}

.carousel-dots button.active {
  width: 28px;
  background: var(--teal);
}

@media (max-width: 640px) {
  .carousel-slide {
    min-height: 440px;
    padding: 34px 22px;
  }
}

/* ==========================================================================
   Mockups de produto (SaaS) — interface ilustrativa em HTML/CSS
   ========================================================================== */

.mockup {
  max-width: 980px;
  margin-inline: auto;
}

.mock-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.mock-tab {
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mock-tab:hover {
  color: var(--primary-600);
  border-color: var(--primary-500);
}

.mock-tab.active {
  background: var(--primary-900);
  color: #fff;
  border-color: var(--primary-900);
}

.mock-panes .mock-pane {
  display: none;
}

.mock-panes .mock-pane.active {
  display: block;
}

.mock-browser {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.mock-browser-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 16px;
  background: #f1f5fb;
  border-bottom: 1px solid var(--border);
}

.mock-dots {
  display: flex;
  gap: 6px;
}

.mock-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #cbd5e1;
}

.mock-dots span:nth-child(1) { background: #f87171; }
.mock-dots span:nth-child(2) { background: #fbbf24; }
.mock-dots span:nth-child(3) { background: #34d399; }

.mock-url {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.78rem;
  color: var(--muted);
  max-width: 460px;
}

.mock-url svg.ico {
  width: 14px;
  height: 14px;
  color: var(--teal);
}

.mock-app {
  display: grid;
  grid-template-columns: 218px 1fr;
  min-height: 500px;
  background: var(--bg);
}

.mock-sidebar {
  background: #fff;
  border-right: 1px solid var(--border);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mock-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary-900);
  padding: 0 6px;
}

.mock-logo-mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--primary-700), var(--teal));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mock-logo-mark .ico { width: 16px; height: 16px; }

.mock-nav {
  display: grid;
  gap: 4px;
}

.mock-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  padding: 9px 10px;
  border-radius: 9px;
}

.mock-nav-item svg.ico { width: 16px; height: 16px; }

.mock-nav-item.active {
  background: var(--primary-50);
  color: var(--primary-700);
  font-weight: 600;
}

.mock-main {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mock-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.mock-topbar h4 {
  font-size: 1rem;
  color: var(--primary-900);
}

.mock-topbar p {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 2px;
}

.mock-action {
  display: flex;
  gap: 8px;
}

.mock-btn {
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  border-radius: 9px;
  padding: 8px 14px;
  cursor: default;
}

.mock-btn.teal {
  background: var(--teal);
  border-color: var(--teal);
  color: #04121f;
}

.mock-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.mock-stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
}

.mock-stat .lbl {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.mock-stat .val {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-900);
  line-height: 1.1;
}

.mock-stat .trend {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
}

.mock-pill {
  font-size: 0.66rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.mock-pill.ok { background: var(--teal-50); color: var(--teal-dark); }
.mock-pill.warn { background: #fef3c7; color: #b45309; }
.mock-pill.crit { background: #fee2e2; color: #b91c1c; }

.mock-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 14px;
}

.mock-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

.mock-panel h5 {
  font-size: 0.82rem;
  color: var(--primary-900);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mock-panel h5 span {
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 500;
}

.mock-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 128px;
}

.mock-chart .bar {
  flex: 1;
  border-radius: 5px 5px 0 0;
  background: var(--primary-100);
  position: relative;
}

.mock-chart .bar.hl {
  background: linear-gradient(180deg, var(--teal), var(--teal-dark));
}

.mock-chart .bar i {
  position: absolute;
  bottom: -19px;
  left: 0;
  right: 0;
  text-align: center;
  font-style: normal;
  font-size: 0.65rem;
  color: var(--muted);
}

.mock-rows {
  display: grid;
  gap: 12px;
}

.mock-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mock-row .row-name {
  width: 42%;
  font-size: 0.76rem;
  color: var(--text);
  font-weight: 500;
}

.mock-row .row-track {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: var(--primary-50);
  overflow: hidden;
}

.mock-row .row-track i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--teal);
}

.mock-list {
  display: grid;
  gap: 10px;
}

.mock-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--text);
  font-weight: 500;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 9px 12px;
}

.mock-list li.solo {
  display: block;
  flex-wrap: wrap;
  font-weight: 400;
  color: var(--muted);
  padding: 10px 12px;
}

.mock-list li.solo strong { color: var(--text); font-weight: 600; }

.mock-qa-user {
  display: block;
  font-size: 0.8rem;
  color: var(--text);
  background: var(--primary-50);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 10px 12px;
}

.mock-caption {
  margin-top: 14px;
  text-align: center;
  font-size: 0.76rem;
  color: var(--muted);
}

@media (max-width: 1024px) {
  .mock-kpis { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .mock-app { grid-template-columns: 1fr; }
  .mock-sidebar { display: none; }
  .mock-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .mock-kpis { grid-template-columns: 1fr; }
  .mock-main { padding: 16px; }
}