/* ============================================================
   CONCILHE – Consultoria Financeira e Organizacional
   style.css — Site Principal
   ============================================================ */
@import url('./tokens.css');

/* ── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
  overflow-x: clip; /* Safari 15.4+: não quebra rubber-band scroll */
}
body {
  font-family: var(--font-body);
  color: var(--navy);
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent; }
a { -webkit-tap-highlight-color: transparent; }

/* ── SKIP LINK ────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 9999;
  padding: 8px 16px;
  background: var(--navy);
  color: #fff;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
}
.skip-link:focus {
  left: 16px;
}

/* ── LAYOUT UTILITIES ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}
.section { padding: 96px 0; }

/* ── HEADINGS ─────────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-display); }

/* ── TYPOGRAPHY UTILITIES ─────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(72,217,81,.10);
  color: var(--green-dark);
  border: 1px solid rgba(72,217,81,.30);
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.badge--dark {
  background: rgba(72,217,81,.12);
  color: var(--green);
  border-color: rgba(72,217,81,.35);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 800;
  line-height: 1.18;
  color: var(--navy);
  margin-bottom: 16px;
}
.section-title--light { color: var(--white); }
.section-sub {
  font-size: 16.5px;
  color: var(--blue-mid);
  line-height: 1.75;
  max-width: 560px;
}
.section-sub--light { color: rgba(255,255,255,.62); }
.text-green { color: var(--green); }
.text-center { text-align: center; }

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 600;
  border: 2px solid transparent;
  transition: background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              transform var(--dur) var(--ease);
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--green);
  color: var(--dark);
  border-color: var(--green);
}
.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(72,217,81,.32);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.45);
}
.btn-outline:hover {
  border-color: var(--green);
  color: var(--green);
}
.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-navy:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-sm { padding: 10px 20px; font-size: 13.5px; }

/* ── NAVBAR ───────────────────────────────────────────────── */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  padding: 22px 0;
  transition: padding var(--dur) var(--ease),
              background var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.navbar.is-scrolled {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 13px 0;
  box-shadow: 0 2px 24px rgba(29,45,91,.09);
}
.navbar .container {
  display: flex;
  align-items: center;
  gap: 12px;
}
.navbar-brand { display: flex; align-items: center; flex-shrink: 0; }
.navbar-brand .logo { height: 34px; width: auto; max-width: none; transition: opacity var(--dur); }
.logo-light { display: block; }
.logo-dark  { display: none; }
.navbar.is-scrolled .logo-light { display: none; }
.navbar.is-scrolled .logo-dark  { display: block; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-link {
  padding: 8px 13px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.82);
  border-radius: 6px;
  transition: color var(--dur), background var(--dur);
}
.nav-link:hover { color: var(--green); }
.navbar.is-scrolled .nav-link { color: var(--navy); }
.navbar.is-scrolled .nav-link:hover { color: var(--green-dark); }

.nav-portal-btn { margin-left: 8px; }
.navbar.is-scrolled .nav-portal-btn {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.navbar.is-scrolled .nav-portal-btn:hover {
  background: var(--green);
  border-color: var(--green);
  color: var(--dark);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  padding: 8px;
  z-index: 1010;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: background-color var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              opacity var(--dur) var(--ease);
}
.navbar.is-scrolled .hamburger span { background: var(--navy); }
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  min-height: 100svh; /* iOS Safari: exclui a barra de endereços dinâmica */
  background: var(--dark);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-canvas svg { width: 100%; height: 100%; }

/* Gradient overlay bottom */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent, rgba(34,26,64,.6));
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding-top: 88px;
  padding-bottom: 64px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero-eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.6); opacity: .6; }
}

.hero h1 {
  font-size: clamp(38px, 4.8vw, 64px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.12;
  margin-bottom: 24px;
  letter-spacing: -.5px;
}
.hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,.65);
  line-height: 1.82;
  max-width: 500px;
  margin-bottom: 42px;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Hero visual */
.hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-symbol-ring {
  position: relative;
  width: 400px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-symbol-ring::before,
.hero-symbol-ring::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(72,217,81,.18);
  animation: ring-expand 4s ease-in-out infinite;
}
.hero-symbol-ring::before { width: 340px; height: 340px; }
.hero-symbol-ring::after  { width: 400px; height: 400px; animation-delay: .8s; border-color: rgba(72,217,81,.10); }
@keyframes ring-expand {
  0%,100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.04); opacity: .5; }
}
.hero-symbol {
  width: 220px;
  height: 220px;
  object-fit: contain;
  filter: drop-shadow(0 0 60px rgba(72,217,81,.35));
  animation: float 7s ease-in-out infinite;
  position: relative;
  z-index: 2;
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

/* Float metric cards */
.float-card {
  position: absolute;
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}
.float-card--1 { top: 30px; right: -10px; }
.float-card--2 { bottom: 60px; left: -10px; }
.float-card-icon {
  width: 38px; height: 38px;
  background: rgba(72,217,81,.15);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.float-card-icon svg { width: 20px; height: 20px; }
.float-card-val {
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.float-card-lbl {
  font-size: 11px;
  color: rgba(255,255,255,.55);
  margin-top: 2px;
}

/* Hero scroll hint */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.35);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  animation: bounce-down 2.4s ease-in-out infinite;
}
@keyframes bounce-down {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* Hero background animated gradient layer */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 20% 40%, rgba(45, 115, 245, 0.12) 0%, transparent 60%),
              radial-gradient(ellipse 60% 80% at 80% 70%, rgba(72, 217, 81, 0.07) 0%, transparent 55%);
  background-size: 200% 200%;
  animation: heroGradientShift 16s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}
@keyframes heroGradientShift {
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before {
    animation: none;
  }
}

/* ── SOBRE ────────────────────────────────────────────────── */
.sobre { background: var(--white); }
.sobre .container {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}
.sobre-visual {
  position: relative;
}
.sobre-bg-shape {
  position: absolute;
  inset: -24px;
  background: #d4ddf0;
  border-radius: var(--radius-xl);
  z-index: 0;
}
.sobre-logo-wrap {
  position: relative;
  z-index: 1;
  background: #edf1fa;
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  /* Altura mínima maior que a da logo: cria respiro vertical generoso para
     que os cards "100+"/"15+" (que espiam os cantos em -20px) sobrem
     apenas sobre área branca, sem cobrir o desenho/texto da marca. */
  min-height: 400px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sobre-logo-wrap img { max-width: 240px; }
.sobre-stat-card {
  position: absolute;
  bottom: -20px;
  right: -20px;
  z-index: 2;
  background: var(--dark);
  color: var(--white);
  padding: 22px 26px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
}
.sobre-stat-card .num {
  font-size: 38px;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
}
.sobre-stat-card .lbl {
  font-size: 12.5px;
  color: rgba(255,255,255,.60);
  margin-top: 4px;
}
.sobre-stat-card-2 {
  position: absolute;
  top: -20px;
  left: -20px;
  z-index: 2;
  background: var(--navy);
  color: var(--white);
  padding: 18px 22px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
}
.sobre-stat-card-2 .num { font-size: 30px; font-weight: 800; color: var(--green); line-height: 1; }
.sobre-stat-card-2 .lbl { font-size: 12px; color: rgba(255,255,255,.55); margin-top: 3px; }

.sobre-text .section-sub { margin-bottom: 32px; }
.sobre-checks {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
}
.sobre-check {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  color: var(--navy);
  font-weight: 500;
}
.sobre-check-icon {
  width: 22px; height: 22px;
  background: rgba(72,217,81,.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sobre-check-icon svg { width: 13px; height: 13px; }

/* ── SERVIÇOS ─────────────────────────────────────────────── */
.servicos { background: var(--gray-bg); }
.servicos-head {
  text-align: center;
  margin-bottom: 60px;
}
.servicos-head .section-sub { margin: 0 auto; }
.servicos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card-servico {
  background: #1a2744;
  border-radius: var(--radius-md);
  padding: 38px 30px;
  border: 1.5px solid rgba(255,255,255,.07);
  position: relative;
  overflow: hidden;
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.card-servico::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--green));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.card-servico:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  border-color: rgba(72,217,81,.35);
}
.card-servico:hover::after { transform: scaleX(1); }

.card-ico {
  width: 52px; height: 52px;
  background: rgba(255,255,255,.08);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  transition: background var(--dur);
}
.card-servico:hover .card-ico { background: rgba(72,217,81,.18); }
.card-ico svg { width: 26px; height: 26px; stroke: rgba(255,255,255,.80); }
.card-servico:hover .card-ico svg { stroke: var(--green); }

.card-servico h3 {
  font-family: 'Bahnschrift', 'DIN Alternate', 'Franklin Gothic Medium', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 10px;
}
.card-servico p {
  font-size: 13.5px;
  color: rgba(255,255,255,.55);
  line-height: 1.72;
}
.card-servico .card-tag {
  display: inline-flex;
  margin-top: 18px;
  gap: 6px;
  flex-wrap: wrap;
}
.card-servico .tag-item {
  font-size: 11px;
  font-weight: 600;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.70);
  padding: 3px 10px;
  border-radius: 100px;
}

/* ── METODOLOGIA ──────────────────────────────────────────── */
.metodologia {
  background: var(--dark);
  position: relative;
  overflow: hidden;
}
.metodologia::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(72,217,81,.07) 0%, transparent 65%);
  pointer-events: none;
}
.metodologia::after {
  content: '';
  position: absolute;
  bottom: -200px; left: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(29,45,91,.5) 0%, transparent 65%);
  pointer-events: none;
}
.metodologia .container { position: relative; z-index: 1; }
.metodologia-head { text-align: center; margin-bottom: 80px; }
.metodologia-head .section-sub { margin: 0 auto; }

/* ── Timeline wrapper ─────────────────────────────────────── */
.tl-wrap {
  position: relative;
  padding: 8px 0;
}

/* Linha de progresso vertical */
.tl-track {
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: rgba(255,255,255,.06);
  border-radius: 2px;
  overflow: hidden;
  mask-image: linear-gradient(180deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
}
.tl-track-fill {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 0%;
  background: linear-gradient(180deg, #48d951 0%, #2D73F5 100%);
  transition: height .08s linear;
  box-shadow: 0 0 14px rgba(72,217,81,.4);
}

/* ── Linha / row ──────────────────────────────────────────── */
.tl-item {
  display: grid;
  grid-template-columns: 1fr 88px 1fr;
  align-items: center;
  margin-bottom: 52px;
  position: relative;
}
.tl-item:last-child { margin-bottom: 0; }
.tl-ghost { /* lado vazio */ }
.tl-side { padding: 0 36px; }

/* Coluna central (nó + bridge) */
.tl-axis {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

/* ── Nó circular ──────────────────────────────────────────── */
.tl-node {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: #1a2744;
  border: 2px solid rgba(72,217,81,.35);
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 3;
  flex-shrink: 0;
  transition: border-color .45s ease, background .45s ease, box-shadow .45s ease;
}
.tl-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1.5px solid rgba(72,217,81,.35);
  opacity: 0;
  transform: scale(.75);
}
.tl-num {
  font-family: 'Poppins', sans-serif;
  font-size: 20px; font-weight: 800;
  color: #48d951;
  letter-spacing: .5px;
  transition: color .4s ease;
}

/* ── Linha horizontal (bridge) ────────────────────────────── */
.tl-bridge {
  position: absolute;
  top: 50%;
  height: 1px;
  width: 160px;
  pointer-events: none;
  transform: scaleX(0);
  transition: transform .5s cubic-bezier(.22,1,.36,1) .28s;
}
.tl-bridge--l {
  right: 36px;
  background: linear-gradient(270deg, rgba(72,217,81,.55) 0%, rgba(72,217,81,0) 100%);
  transform-origin: right;
}
.tl-bridge--r {
  left: 36px;
  background: linear-gradient(90deg, rgba(72,217,81,.55) 0%, rgba(72,217,81,0) 100%);
  transform-origin: left;
}

/* ── Card ─────────────────────────────────────────────────── */
.tl-card {
  background: rgba(255,255,255,.032);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 16px;
  padding: 32px 36px;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transition: opacity .6s ease, transform .65s cubic-bezier(.22,1,.36,1), box-shadow .4s ease;
}
/* Bordas de conexão e glow direcional */
.tl-item--l .tl-card {
  transform: translateX(-40px);
  border-right-color: rgba(72,217,81,.22);
}
.tl-item--r .tl-card {
  transform: translateX(40px);
  border-left-color: rgba(72,217,81,.22);
}
.tl-item--l .tl-card::before {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 72px;
  background: linear-gradient(270deg, rgba(72,217,81,.04), transparent);
  pointer-events: none;
}
.tl-item--r .tl-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 72px;
  background: linear-gradient(90deg, rgba(72,217,81,.04), transparent);
  pointer-events: none;
}

/* Etiqueta do passo */
.tl-label {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-size: 10px; font-weight: 700;
  color: #48d951;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
  padding: 5px 13px;
  background: rgba(72,217,81,.08);
  border: 1px solid rgba(72,217,81,.18);
  border-radius: 20px;
}
.tl-card p {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: rgba(255,255,255,.62);
  line-height: 1.78;
  margin: 0;
}

/* ── Estado ativo (JS adiciona .tl-item--on) ──────────────── */
.tl-item--on .tl-card {
  opacity: 1 !important;
  transform: translateX(0) !important;
  box-shadow: 0 12px 48px rgba(0,0,0,.35);
}
.tl-item--on .tl-node {
  border-color: #48d951;
  background: #162038;
  box-shadow: 0 0 0 8px rgba(72,217,81,.08), 0 0 32px rgba(72,217,81,.25);
}
.tl-item--on .tl-num   { color: #48d951; text-shadow: 0 0 14px rgba(72,217,81,.55); }
.tl-item--on .tl-bridge { transform: scaleX(1); }
.tl-item--on .tl-ring  { animation: tl-ring-pulse 1.8s ease-out .3s both; }

@keyframes tl-ring-pulse {
  0%   { opacity: 1;  transform: scale(.75); }
  55%  { opacity: .4; transform: scale(1.2);  }
  100% { opacity: 0;  transform: scale(1.5);  }
}

/* ── NÚMEROS / STATS ──────────────────────────────────────── */
.numeros {
  background: var(--white);
  padding: 72px 0;
  border-top: 1px solid var(--gray-light);
  border-bottom: 1px solid var(--gray-light);
}
.numeros-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.num-item {
  text-align: center;
  padding: 40px 20px;
  border-right: 1px solid var(--gray-light);
}
.num-item:last-child { border-right: none; }
.num-val {
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 8px;
}
.num-val em { font-style: normal; color: var(--green); }
.num-lbl {
  font-size: 13.5px;
  color: var(--blue-mid);
  font-weight: 500;
}

/* ── PORTAL SECTION ───────────────────────────────────────── */
.portal-cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--dark) 100%);
  position: relative;
  overflow: hidden;
}
.portal-cta-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.portal-cta .container {
  position: relative;
  z-index: 1;
}
.portal-cta-text {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.portal-cta-text .section-sub {
  margin-left: auto;
  margin-right: auto;
}
.portal-cta-text .section-sub { color: rgba(255,255,255,.60); margin-bottom: 32px; }
.portal-feat-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.portal-feat {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255,255,255,.82);
}
.portal-feat-dot {
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── CONTATO ──────────────────────────────────────────────── */
.contato { background: var(--gray-bg); }
.contato .container {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 72px;
  align-items: start;
}
.contato-info .section-sub { margin-bottom: 36px; }
.contato-items {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.contato-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contato-ico {
  width: 46px; height: 46px;
  background: var(--dark);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contato-ico svg { width: 20px; height: 20px; stroke: var(--green); fill: none; }
.contato-item-lbl {
  font-size: 11px;
  font-weight: 700;
  color: var(--blue-mid);
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 3px;
}
.contato-item-val {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
}
.contato-form {
  background: var(--white);
  padding: 44px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}
.contato-form h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 26px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-field-plain { margin-bottom: 16px; }
.form-field-plain label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 7px;
}
.form-field-plain input,
.form-field-plain textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--navy);
  background: #fff;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color var(--dur), box-shadow var(--dur);
}
.form-field-plain input::placeholder,
.form-field-plain textarea::placeholder { color: #b0b8cc; }
.form-field-plain input:focus,
.form-field-plain textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(29,45,91,.07);
}
.form-field-plain textarea { resize: vertical; min-height: 110px; }

/* ── FOOTER ───────────────────────────────────────────────── */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 68px 0 32px;
}
.footer-body {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.footer-brand-img { height: 30px; margin-bottom: 18px; }
.footer-brand-desc {
  font-size: 13.5px;
  color: rgba(255,255,255,.45);
  line-height: 1.75;
  max-width: 280px;
  margin-bottom: 24px;
}
.footer-socials {
  display: flex;
  gap: 10px;
}
.footer-social-a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.07);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur), transform var(--dur);
}
.footer-social-a:hover {
  background: var(--green);
  transform: translateY(-2px);
}
.footer-social-a svg { width: 16px; height: 16px; fill: var(--white); }
.footer-col h4 {
  font-size: 11.5px;
  font-weight: 700;
  color: rgba(255,255,255,.45);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 18px;
}
.footer-col li { margin-bottom: 10px; }
.footer-col li a {
  font-size: 14px;
  color: rgba(255,255,255,.6);
  transition: color var(--dur);
}
.footer-col li a:hover { color: var(--green); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: rgba(255,255,255,.3);
  flex-wrap: wrap;
  gap: 8px;
}

/* ── ANIMATIONS ───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ── CLIENTES ─────────────────────────────────────────────── */
.clientes { background: var(--gray-bg); }
.clientes-head {
  text-align: center;
  margin-bottom: 52px;
}
.clientes-head .section-sub { margin: 0 auto; }
.clientes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cliente-card {
  background: rgba(27, 58, 107, 0.08);
  border: 1.5px solid rgba(27, 58, 107, 0.14);
  border-radius: var(--radius-md);
  padding: 32px 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              background var(--dur) var(--ease);
}
.cliente-card:hover {
  transform: translateY(-5px);
  background: rgba(27, 58, 107, 0.13);
  box-shadow: var(--shadow-md);
  border-color: rgba(72,217,81,.4);
}
.cliente-card img {
  max-width: 170px;
  max-height: 72px;
  width: 100%;
  height: auto;
  object-fit: contain;
  opacity: 0.75;
  transition: opacity .35s var(--ease);
}
.cliente-card:hover img { opacity: 1; }

/* ── DEPOIMENTOS ──────────────────────────────────────────── */
.depoimentos { background: #fff; }
.depoimentos-head { text-align: center; margin-bottom: 48px; }
.depoimentos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.dep-card {
  background: var(--gray-bg);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.dep-stars { color: #f0a500; font-size: 18px; letter-spacing: 2px; }
.dep-text { font-size: 15px; color: var(--text); line-height: 1.7; flex: 1; font-style: italic; }
.dep-autor { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.dep-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.dep-nome { font-weight: 600; font-size: 14px; color: var(--navy); }
.dep-cargo { font-size: 12px; color: var(--text-2); }

/* ── SEGMENTOS ────────────────────────────────────────────── */
.segmentos { background: var(--gray-bg); }
.segmentos-head { text-align: center; margin-bottom: 48px; }
.segmentos-head .section-sub { margin: 0 auto; }
.segmentos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.seg-card {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.seg-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.seg-ico {
  width: 52px; height: 52px;
  margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(27,58,107,.08);
  border-radius: 14px;
  transition: background var(--dur);
}
.seg-ico svg { width: 24px; height: 24px; stroke: var(--navy); transition: stroke var(--dur); }
.seg-card:hover .seg-ico { background: rgba(72,217,81,.14); }
.seg-card:hover .seg-ico svg { stroke: var(--green-dark); }
.seg-nome { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.seg-desc { font-size: 13px; color: var(--text-2); }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1100px) {
  .hero .container { gap: 40px; }
  .sobre .container { gap: 52px; }
  .servicos-grid { grid-template-columns: repeat(2, 1fr); }
  .clientes-grid { grid-template-columns: repeat(2, 1fr); }
  .portal-cta .container { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .hero-visual { display: none; }
  .sobre .container { grid-template-columns: 1fr; }
  .sobre-visual { display: none; }
  /* tl-wrap: mantém layout desktop (timeline vertical já é single-col em essência) */
  .tl-track { left: 50%; }
  .numeros-grid { grid-template-columns: repeat(2, 1fr); }
  .num-item { border-right: none; border-bottom: 1px solid var(--gray-light); }
  .num-item:nth-child(odd) { border-right: 1px solid var(--gray-light); }
  .contato .container { grid-template-columns: 1fr; }
  .footer-body { grid-template-columns: 1fr 1fr; }
  .portal-feat-list { grid-template-columns: 1fr; }
  .depoimentos-grid { grid-template-columns: 1fr; }
  .segmentos-grid { grid-template-columns: repeat(2, 1fr); }
}
/* iOS Safari: previne zoom automático em inputs com font-size < 16px */
@media (max-width: 768px) {
  input, textarea, select {
    font-size: 16px;
  }
}

@media (max-width: 680px) {
  .section { padding: 64px 0; }
  .servicos-grid { grid-template-columns: 1fr; }
  .clientes-grid { grid-template-columns: repeat(2, 1fr); }
  .segmentos-grid { grid-template-columns: 1fr; }
  /* timeline mobile — linha lateral esquerda */
  .tl-track { left: 23px; transform: none; }
  .tl-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    margin-bottom: 40px;
  }
  .tl-ghost { display: none; }
  .tl-axis { order: 0; flex-shrink: 0; width: 46px; align-self: flex-start; padding-top: 2px; }
  .tl-node { width: 46px; height: 46px; }
  .tl-num  { font-size: 13px; }
  .tl-bridge { display: none; }
  .tl-side { order: 1; flex: 1; padding: 0 0 0 18px; }
  .tl-item--l .tl-card,
  .tl-item--r .tl-card { transform: translateX(22px); }
  .tl-card { padding: 22px 22px; border-radius: 12px; }
  .numeros-grid { grid-template-columns: 1fr; }
  .num-item { border-right: none !important; border-bottom: 1px solid var(--gray-light); }
  .num-item:last-child { border-bottom: none; }
  .footer-body { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contato-form { padding: 28px 22px; }

  .nav-menu {
    position: fixed;
    inset: 0;
    background: var(--dark);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transform: translateX(100%);
    visibility: hidden; /* impede cálculo de overflow + esconde de leitores de tela */
    transition: transform .35s var(--ease), visibility 0s .35s;
    z-index: 1005;
  }
  .nav-menu.is-open {
    transform: translateX(0);
    visibility: visible;
    transition: transform .35s var(--ease), visibility 0s 0s;
  }
  .nav-menu .nav-link { font-size: 20px; color: var(--white); padding: 12px 24px; }
  .nav-portal-btn { display: none; }
  .hamburger { display: flex; }
  .nav-menu-brand { display: flex !important; justify-content: center; padding: 0 0 16px; }
  .nav-menu-brand .nav-menu-logo { height: 28px; width: auto; }
  .nav-menu-cta { display: flex !important; justify-content: center; padding: 16px 0 0; }
}

/* Hide mobile-only items on desktop */
@media (min-width: 681px) {
  .nav-menu-brand,
  .nav-menu-cta { display: none; }
}

/* ── DISPOSITIVOS MUITO PEQUENOS (≤ 390px — iPhone SE, mini) ── */
@media (max-width: 390px) {
  .container { padding: 0 16px; }
  .hero h1 { font-size: 34px; }
  .hero-sub { font-size: 15px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { justify-content: center; }
  .contato-form { padding: 22px 16px; }
  .tl-card { padding: 18px 16px; }
  .section { padding: 56px 0; }
  .servicos-grid { gap: 16px; }
  .card-servico { padding: 28px 20px; }
  .footer-body { gap: 32px; }
}

@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;
  }
}
