/* ═══════════════════════════════════════════════════════════════════════
   FREEL Portal — portal.css
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  /* Paleta clara premium */
  --primary:   #1B4F8A;
  --primary-2: #2563EB;
  --accent:    #2563EB;
  --accent-soft:#EEF4FF;
  --green:     #0F9D58;
  --orange:    #EA580C;
  --gold:      #F59E0B;

  /* Neutros claros */
  --ink:       #0F172A;   /* texto forte */
  --ink-2:     #334155;   /* texto médio */
  --muted:     #64748B;   /* texto suave */
  --line:      #E8EDF4;   /* bordas */
  --surface:   #FFFFFF;   /* cartões */
  --bg:        #F7F9FC;   /* fundo geral */
  --bg-2:      #EEF3FA;   /* fundo alt */

  /* Compat com classes antigas que usavam fundo escuro */
  --dark:      #FFFFFF;
  --dark2:     #F7F9FC;
  --gray:      #64748B;
  --light:     #F7F9FC;
  --border:    #E8EDF4;

  --radius:    14px;
  --radius-lg: 22px;
  --shadow-xs: 0 1px 2px rgba(15,23,42,.04);
  --shadow:    0 6px 24px rgba(15,23,42,.06);
  --shadow-md: 0 12px 32px rgba(15,23,42,.08);
  --shadow-lg: 0 24px 60px rgba(15,23,42,.12);
  --ring:      0 0 0 4px rgba(37,99,235,.12);
}

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4,h5,.section-title,.freel-wordmark { font-family: 'Sora', system-ui, sans-serif; }

/* ── Header fixo (topbar + navbar juntos) ──────────────────────────────── */
.portal-header-sticky {
  position: sticky;
  top: 0;
  z-index: 1040;
  will-change: transform;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* ── Topbar ────────────────────────────────────────────────────────────── */
.portal-topbar {
  background: linear-gradient(90deg,#0F2647 0%,#1B4F8A 100%);
  padding: 9px 0;
  font-size: 12px;
}
.topbar-link {
  color: rgba(255,255,255,.72);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color .2s;
}
.topbar-link:hover { color: #fff; }
.topbar-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
}
.topbar-contacts {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
}
.tb-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.92);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all .2s;
}
.tb-item:hover { color: #fff; }
.tb-ico {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.tb-pill {
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(255,255,255,.06);
}
.tb-pill-green { border-color: rgba(34,197,94,.5); }
.tb-pill-green:hover { background: rgba(34,197,94,.14); }
.tb-pill-red { border-color: rgba(239,68,68,.5); }
.tb-pill-red:hover { background: rgba(239,68,68,.14); }

/* ── Navbar ────────────────────────────────────────────────────────────── */
.portal-nav {
  background: linear-gradient(180deg,#E8EDF4 0%,#CBD5E6 100%);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  padding: 8px 0;
  border-bottom: 4px solid transparent;
  transition: all .3s ease;
}
.portal-nav.scrolled {
  background: linear-gradient(180deg,rgba(232,237,244,.97) 0%,rgba(203,213,230,.97) 100%);
  box-shadow: var(--shadow);
  padding: 6px 0;
}
/* Linha grossa verde quando algum menu está aberto (clique, hover ou foco) */
.portal-nav:has(.dropdown-menu.show),
.portal-nav:has(.nav-item.dropdown:hover),
.portal-nav:has(.nav-item.dropdown:focus-within),
.portal-nav.menu-open {
  border-bottom: 4px solid #16A34A;
}
.portal-nav .nav-link {
  color: var(--ink-2) !important;
  font-size: 14.5px;
  font-weight: 600;
  padding: 9px 14px !important;
  border-radius: 10px;
  transition: all .2s;
  position: relative;
}
.portal-nav .nav-link:hover,
.portal-nav .nav-link.active {
  color: var(--accent) !important;
  background: var(--accent-soft);
}
.portal-nav .dropdown-toggle::after { opacity:.5; margin-left:.4em; }
.freel-wordmark { font-size: 20px; font-weight: 800; color: var(--primary); letter-spacing: .08em; }
.navbar-toggler { color: var(--ink) !important; }
.navbar-toggler i { color: var(--ink) !important; }

/* ── Mega Menu FULL-WIDTH (limpo, com divisórias e foto) ───────────────── */
.portal-nav { position: relative; }
.portal-nav .nav-item.dropdown { position: static; }

.mega-menu {
  position: absolute;
  top: 100%;
  left: 0 !important;
  right: 0 !important;
  transform: none !important;
  width: 100%;
  border: 0;
  border-top: 4px solid #16A34A;
  border-radius: 0 0 18px 18px;
  box-shadow: 0 24px 50px rgba(15,23,42,.14);
  overflow: hidden;
  padding: 0 !important;
  margin: 0 !important;
  background: #fff;
  animation: megaIn .18s ease;
}
@keyframes megaIn { from{opacity:0; transform:translateY(-6px);} to{opacity:1; transform:none;} }

/* Grade interna centralizada */
.mega-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
}

/* Colunas de conteúdo */
.mega-col {
  flex: 1 1 0;
  min-width: 0;
  padding: 34px 30px;
  border-right: 1px solid var(--line);
}
.mega-col:last-of-type { border-right: 0; }

/* Compat: classes antigas viram coluna clara */
.mega-col-dark { background: #fff; }

/* Primeira coluna com fundo cinza mais escuro (separação visual) */
.mega-col-soft { background: #E2E8F0; }
.mega-col-soft .mega-label { color: #475569; }
.mega-col-soft .mega-link strong { color: #1E293B; }
.mega-col-soft .mega-link:hover { background: rgba(37,99,235,.1); }

/* Título da coluna */
.mega-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: var(--muted);
  margin: 0 0 18px;
}

/* Links de texto — limpos, com ícone discreto */
.mega-link,
.mega-link-highlight {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 10px 10px;
  border-radius: 10px;
  text-decoration: none;
  margin: 0 -10px 2px;
  transition: background .15s, color .15s;
}
.mega-link i,
.mega-link-highlight i {
  font-size: 17px;
  color: var(--accent);
  flex-shrink: 0;
  width: 22px;
  text-align: center;
}
.mega-link strong,
.mega-link-highlight strong {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  line-height: 1.3;
}
.mega-link small,
.mega-link-highlight small {
  display: block;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 1px;
}
.mega-link:hover,
.mega-link-highlight:hover { background: var(--accent-soft); }
.mega-link:hover strong,
.mega-link-highlight:hover strong { color: var(--accent); }

/* Card cinza (Etapas de uso) */
.mega-card {
  display: block;
  padding: 16px 18px;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--bg);
  margin-bottom: 14px;
  transition: all .2s;
}
.mega-card i { font-size: 20px; color: var(--accent); display: block; margin-bottom: 8px; }
.mega-card strong { font-size: 14px; font-weight: 700; color: var(--ink); display: block; }
.mega-card small { font-size: 12px; color: var(--muted); line-height: 1.5; display: block; margin-top: 2px; }
.mega-card:hover { border-color: rgba(37,99,235,.35); box-shadow: var(--shadow); }

/* Card verde (Componentes do Sistema) */
.mega-card-green {
  display: block;
  padding: 16px 18px;
  border-radius: 12px;
  text-decoration: none;
  background: linear-gradient(135deg,#0F9D58,#0B7A43);
  color: #fff;
  transition: all .2s;
}
.mega-card-green i { font-size: 20px; color: #fff; display: block; margin-bottom: 8px; }
.mega-card-green strong { font-size: 14px; font-weight: 700; color: #fff; display: block; }
.mega-card-green small { font-size: 12px; color: rgba(255,255,255,.9); line-height: 1.8; display: block; margin-top: 4px; }
.mega-card-green:hover { filter: brightness(1.06); box-shadow: 0 12px 28px rgba(15,157,88,.3); }

/* Painel de FOTO à direita */
.mega-promo {
  flex: 0 0 320px;
  position: relative;
  min-height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 0;
}
.mega-promo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,38,71,.25) 0%, rgba(15,38,71,.92) 100%);
}
.mega-promo-content {
  position: relative;
  z-index: 1;
  padding: 30px;
  color: #fff;
}
.mega-promo-content h5 {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 20px;
  line-height: 1.2;
  margin-bottom: 8px;
}
.mega-promo-content p {
  font-size: 13px;
  color: rgba(255,255,255,.88);
  margin-bottom: 18px;
  line-height: 1.5;
}
.mega-promo-btn {
  display: inline-block;
  background: #fff;
  color: var(--primary) !important;
  font-weight: 700;
  font-size: 13.5px;
  padding: 11px 22px;
  border-radius: 10px;
  text-decoration: none;
  transition: all .2s;
}
.mega-promo-btn:hover { background: var(--accent); color: #fff !important; transform: translateY(-2px); }



/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn { transition: all .2s ease; }
.btn-accent {
  background: linear-gradient(135deg,#2563EB,#1B4F8A);
  color: #fff;
  border: 0;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(37,99,235,.28);
}
.btn-accent:hover { color:#fff; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(37,99,235,.38); }
.btn-primary-freel {
  background: linear-gradient(135deg,#2563EB,#1B4F8A);
  color: #fff;
  border: 0;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 15px;
  box-shadow: 0 6px 18px rgba(37,99,235,.28);
}
.btn-primary-freel:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(37,99,235,.4); }
.btn-orange {
  background: linear-gradient(135deg,#F97316,#EA580C);
  color: #fff;
  border: 0;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(234,88,12,.3);
}
.btn-orange:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(234,88,12,.42); }
.btn-outline-primary { border:1.5px solid var(--accent); color:var(--accent); font-weight:600; }
.btn-outline-primary:hover { background:var(--accent); border-color:var(--accent); transform: translateY(-1px); }

/* ── Section base ──────────────────────────────────────────────────────── */
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-lg { padding: 120px 0; }
.section-dark { background: linear-gradient(135deg,#0F2647 0%,#1B4F8A 100%); color: #fff; }
.section-dark2 { background: linear-gradient(135deg,#1B4F8A 0%,#2563EB 100%); color: #fff; }
.section-light { background: var(--bg); }
.section-gradient {
  background:
    radial-gradient(900px 380px at 12% -10%, rgba(37,99,235,.16), transparent 60%),
    radial-gradient(700px 320px at 95% 0%, rgba(245,158,11,.10), transparent 55%),
    linear-gradient(135deg,#0F2647 0%,#1B4F8A 55%,#2563EB 100%);
  color: #fff;
}
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.15;
}
.section-subtitle {
  font-size: 18px;
  color: #64748B;
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.7;
}
.section-dark .section-subtitle { color: rgba(255,255,255,.65); }
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  color: var(--accent);
  border: 1px solid rgba(31,111,235,.2);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 16px;
}

/* ── Cards ─────────────────────────────────────────────────────────────── */
.card-portal {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: all .25s ease;
}
.card-portal:hover {
  border-color: rgba(37,99,235,.35);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.card-portal-dark {
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 28px;
  background: rgba(255,255,255,.05);
  transition: all .25s;
}
.card-portal-dark:hover {
  border-color: rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
}
.icon-box {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.icon-box-blue  { background: rgba(31,111,235,.12); color: var(--accent); }
.icon-box-green { background: rgba(46,125,50,.12); color: var(--green); }
.icon-box-orange{ background: rgba(230,81,0,.12); color: var(--orange); }
.icon-box-gold  { background: rgba(245,127,23,.12); color: var(--gold); }

/* ── Planos (estilo ERP) ───────────────────────────────────────────────── */
.plano-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  background: var(--surface);
  position: relative;
  transition: all .25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
}
.plano-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.plano-card.destaque {
  border: 2px solid var(--orange);
  box-shadow: 0 16px 44px rgba(234,88,12,.16);
}
.plano-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg,#F97316,#EA580C);
  color: #fff;
  border-radius: 999px;
  padding: 5px 18px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: .08em;
  box-shadow: 0 6px 16px rgba(234,88,12,.32);
}
.plano-nome {
  font-family: 'Sora', sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.01em;
  margin-bottom: 10px;
}
.plano-preco {
  font-family: 'Sora', sans-serif;
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.plano-cifra { font-size: 18px; font-weight: 700; }
.plano-mes { font-size: 14px; font-weight: 500; color: var(--muted); }
.plano-tagline { font-size: 13.5px; color: var(--muted); margin: 12px 0 20px; line-height: 1.5; }

.plano-features { list-style: none; padding: 0; margin: 0; flex: 1; }
.plano-features li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 8px 0;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.45;
}
.plano-features li span { flex: 1; }
.plano-features .check {
  color: var(--green);
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 16px;
  font-weight: 700;
}
.plano-features .cross { color: #CBD5E1; flex-shrink: 0; margin-top: 1px; }

.btn-plano {
  display: block;
  width: 100%;
  text-align: center;
  color: #fff !important;
  border: 0;
  border-radius: 12px;
  padding: 13px;
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none !important;
  transition: all .2s ease;
  box-shadow: 0 6px 16px rgba(15,23,42,.12);
}
.btn-plano:hover, .btn-plano:focus, .btn-plano:visited, .btn-plano:active {
  color: #fff !important;
  text-decoration: none !important;
}
.btn-plano:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 12px 26px rgba(15,23,42,.18); }

.link-comparar {
  color: var(--accent);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
}
.link-comparar:hover { color: var(--primary); text-decoration: underline; }


/* ── Stats bar ─────────────────────────────────────────────────────────── */
.stat-item { text-align: center; }
.stat-num { font-size: clamp(32px,5vw,56px); font-weight: 900; line-height: 1; }
.stat-label { font-size: 14px; opacity: .7; margin-top: 4px; }

/* ── Categorias ────────────────────────────────────────────────────────── */
.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 18px;
  border-radius: 18px;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  transition: all .22s ease;
  text-align: center;
}
.cat-card:hover {
  border-color: rgba(37,99,235,.4);
  background: var(--accent-soft);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.cat-emoji { font-size: 38px; transition: transform .22s; }
.cat-card:hover .cat-emoji { transform: scale(1.12); }
.cat-nome { font-weight: 700; font-size: 14.5px; color: var(--ink); font-family:'Sora',sans-serif; }
.cat-sub { font-size: 11.5px; color: var(--muted); line-height:1.5; }

/* ── Depoimentos ───────────────────────────────────────────────────────── */
.depo-card {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 28px;
}
.depo-stars { color: #F59E0B; font-size: 14px; margin-bottom: 10px; }
.depo-texto { font-size: 15px; line-height: 1.7; color: #374151; font-style: italic; }
.depo-autor { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.depo-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.depo-nome { font-weight: 600; font-size: 14px; }
.depo-cargo { font-size: 12px; color: #64748B; }

/* ── Como funciona steps ───────────────────────────────────────────────── */
.step-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-line {
  width: 2px;
  flex: 1;
  background: linear-gradient(to bottom, var(--accent), transparent);
  margin: 6px auto;
}

/* ── FAQ ───────────────────────────────────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid #E2E8F0;
  padding: 20px 0;
}
.faq-question {
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 15px;
}
.faq-answer {
  font-size: 14px;
  color: #64748B;
  line-height: 1.7;
  margin-top: 10px;
  display: none;
}
.faq-answer.open { display: block; }

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero-section {
  min-height: 600px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transition: opacity .8s;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(10,22,40,.78) 0%, rgba(10,22,40,.55) 45%, rgba(10,22,40,.18) 75%, rgba(10,22,40,.10) 100%);
}
.hero-content { position: relative; z-index: 2; }
.hero-search {
  background: rgba(255,255,255,.97);
  border-radius: 18px;
  padding: 10px;
  box-shadow: 0 24px 60px rgba(15,23,42,.28);
}
.hero-search .form-select, .hero-search .form-control {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14.5px;
}
.hero-search .form-select:focus, .hero-search .form-control:focus {
  border-color: var(--accent);
  box-shadow: var(--ring);
}

/* ── CTA Banner ────────────────────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-radius: 20px;
  padding: 56px 48px;
  text-align: center;
}

/* ── Footer ────────────────────────────────────────────────────────────── */
.portal-footer {
  position: relative;
  overflow: hidden;
  color: rgba(255,255,255,.8);
  border-top: 4px solid var(--accent);
}

/* Imagem de fundo do footer com overlay escuro */
.footer-bg-image {
  position: absolute;
  inset: 0;
  background-image: url('../img/footer-bg.png');
  background-size: cover;
  background-position: center top;
  z-index: 0;
}
.footer-bg-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(8,20,40,.86);
}
.footer-heading {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255,255,255,.7);
  margin-bottom: 16px;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: rgba(255,255,255,.88);
  text-decoration: none;
  font-size: 14px;
  transition: color .2s;
}
.footer-links a:hover { color: #fff; }
.footer-social {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  transition: all .2s;
  font-size: 16px;
}
.footer-social:hover { background: var(--accent); color: #fff; }

/* ── Floating WhatsApp ─────────────────────────────────────────────────── */
.portal-wpp {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(37,211,102,.4);
  z-index: 999;
  transition: transform .2s;
}
.portal-wpp:hover { transform: scale(1.1); color: #fff; }

/* ── Back to top ───────────────────────────────────────────────────────── */
.portal-totop {
  position: fixed;
  bottom: 88px; right: 24px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(10,22,40,.8);
  color: #fff;
  border: 1px solid rgba(255,255,255,.15);
  display: none;
  align-items: center; justify-content: center;
  font-size: 16px;
  cursor: pointer;
  z-index: 998;
  transition: all .2s;
}
.portal-totop.visible { display: flex; }
.portal-totop:hover { background: var(--accent); }

/* ── Utilities ─────────────────────────────────────────────────────────── */
.text-accent { color: var(--accent) !important; }
.text-primary-freel { color: var(--primary) !important; }
.fw-600 { font-weight: 600 !important; }
.fw-800 { font-weight: 800 !important; }
.fw-900 { font-weight: 900 !important; }
.rounded-xl { border-radius: 16px !important; }
.rounded-2xl { border-radius: 20px !important; }
.bg-primary-freel { background: var(--primary) !important; }
.bg-accent { background: var(--accent) !important; }
.bg-dark-freel { background: var(--dark) !important; }
.divider-line { border: 0; border-top: 1px solid #E2E8F0; margin: 48px 0; }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 991px) {
  .mega-menu {
    width: 100% !important;
    max-width: 100% !important;
    left: 0 !important;
    transform: none !important;
    box-shadow: none;
    border-top: 0;
  }
  .mega-inner { flex-direction: column; min-height: 0; }
  .mega-inner > div { padding: 18px 20px; flex: 1 1 auto !important; }
  .mega-inner > .mega-col-dark { border-radius: 0; }
  .mega-inner > .mega-promo { display: none; }
  .section { padding: 56px 0; }
  .hero-section { min-height: 500px; }
  .cta-banner { padding: 40px 24px; }
}
@media (max-width: 767px) {
  .section { padding: 40px 0; }
  .plano-card { margin-bottom: 24px; }
  /* Topbar compacta no mobile (mantém contatos, em vez de sumir) */
  .portal-topbar { font-size: 11px; padding: 6px 0; }
  .topbar-grid { grid-template-columns: 1fr; gap: 6px; }
  .topbar-contacts { gap: 12px; flex-wrap: wrap; justify-content: center; }
  .tb-item span { font-size: 11px; }
  .tb-pill { padding: 4px 10px; }
  /* Hero no mobile */
  .hero-section { min-height: auto; padding: 30px 0; }
  .hero-content { text-align: center; }
  .hero-content .text-start { max-width: 100% !important; text-align: center; }
  .hsearch, .hsearch-pills { max-width: 100% !important; margin: 0 auto !important; }
  .hsearch-tabs { justify-content: center !important; }
  .hsearch-pills { justify-content: center !important; }
  .hero-content h1 { font-size: clamp(26px,7vw,38px) !important; }
  /* Resultados: cards 1 por linha já vem do Bootstrap col-md */
  .rb-card { padding: 22px 18px; }
  /* Footer empilha */
  .portal-footer { text-align: center; }
  .footer-social { margin: 0 auto; }
}
@media (max-width: 575px) {
  .navbar-brand img { height: 42px !important; }
  .hsearch-tab { padding: 10px 20px; font-size: 14px; }
  .hsearch-bar { padding: 6px; }
  .rb-filtros { gap: 10px; }
}

/* ═══ Polish — tons claros premium ════════════════════════════════════════ */

/* Badge sobre seções escuras/hero (vidro claro) */
.section-dark .section-badge,
.section-gradient .section-badge,
.hero-content .section-badge {
  background: rgba(255,255,255,.14);
  color: #fff;
  border-color: rgba(255,255,255,.28);
  backdrop-filter: blur(6px);
}

/* Ícones com tons claros */
.icon-box-blue  { background: var(--accent-soft); color: var(--accent); }
.icon-box-green { background: #E7F7EF; color: var(--green); }
.icon-box-orange{ background: #FEEFE3; color: var(--orange); }
.icon-box-gold  { background: #FEF3DD; color: var(--gold); }

/* Seleção de texto */
::selection { background: rgba(37,99,235,.18); color: var(--ink); }

/* Scrollbar clara */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: #C7D3E4; border-radius: 999px; border: 3px solid var(--bg-2); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* Scroll reveal (usado por [data-animate], classe .animated via JS) */
[data-animate].animated, [data-animate].in { opacity: 1; transform: none; }

/* Foco acessível */
a:focus-visible, button:focus-visible, .btn:focus-visible,
input:focus-visible, select:focus-visible { outline: none; box-shadow: var(--ring); }

/* Tipografia de títulos mais encorpada */
.section-title { letter-spacing: -.02em; color: var(--ink); }
.section-dark .section-title, .section-gradient .section-title, .hero-content .section-title { color: #fff; }
.fw-900 { font-weight: 800 !important; }
.rounded-2xl { border-radius: var(--radius-lg) !important; }

/* Divisor suave entre seções claras */
.section-light + .section, .section + .section-light { border-top: 1px solid var(--line); }

/* ── Cards de resultado da busca (seção abaixo do hero) ─────────────────── */
.rb-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--shadow-xs);
  transition: all .22s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.rb-card:hover { border-color: rgba(37,99,235,.35); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.rb-avatar {
  width: 78px; height: 78px; border-radius: 50%;
  background: linear-gradient(135deg,#1F6FEB,#1B4F8A); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 26px; margin-bottom: 16px;
  background-size: cover; background-position: center;
  box-shadow: 0 8px 20px rgba(31,111,235,.28);
}
.rb-nome { font-family:'Sora',sans-serif; font-weight: 800; font-size: 16px; color: #0F172A; }
.rb-cat { color: var(--accent); font-weight: 600; font-size: 13.5px; margin-top: 2px; }
.rb-local { color: #64748B; font-size: 13px; margin-top: 6px; }
.rb-local i { color: #EF4444; }
.rb-bio { color: #64748B; font-size: 13px; line-height: 1.5; margin: 12px 0 0; }
.rb-tags { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.rb-tag { font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 5px; }
.rb-remoto { background: #E7F7EF; color: #15803D; }
.rb-domic  { background: #FEEFE3; color: #C2410C; }
.rb-preco { margin-top: 14px; font-size: 13.5px; color: #475569; }
.rb-preco strong { color: #0F172A; }
.rb-btn {
  display: block; margin-top: 18px; width: 100%;
  background: var(--accent-soft); color: var(--accent);
  border-radius: 10px; padding: 11px; font-weight: 700; font-size: 13.5px;
  text-decoration: none; transition: all .2s;
}
.rb-btn:hover { background: var(--accent); color: #fff; }

/* Nota/pontuação no card de resultado */
.rb-nota { color: #F59E0B; font-weight: 700; font-size: 13.5px; margin-top: 6px; }
.rb-nota i { color: #F59E0B; }
.rb-nota-tot { color: #94A3B8; font-weight: 500; font-size: 12px; }

/* ── Scroll-margin para âncoras (compensa header fixo ~100px) ──────────── */
[id] { scroll-margin-top: 100px; }
