/* ==========================================================================
   Felikis — Tema claro / profissional
   ========================================================================== */

:root {
  --fx-primary: #0d72a0;      /* azul Felikis — derivado do logo */
  --fx-primary-dark: #0a577b;
  --fx-primary-light: #e7f4f9;
  --fx-accent: #d98a2b;       /* âmbar — CTA/destaques */
  --fx-ink: #1f2a2e;
  --fx-muted: #5b6b70;
  --fx-bg: #ffffff;
  --fx-bg-soft: #f5f9fb;
  --fx-border: #e1e8ec;

  /* paleta de apoio — usada em ícones, acentos e destaques pontuais */
  --fx-teal: #0e8f7e;
  --fx-teal-light: #e3f6f2;
  --fx-amber: #d98a2b;
  --fx-amber-light: #fbf0e0;
  --fx-purple: #6d5bd0;
  --fx-purple-light: #edeafb;
  --fx-rose: #cf5081;
  --fx-rose-light: #fbebf1;

  --bs-body-font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--fx-bg);
  color: var(--fx-ink);
  font-family: var(--bs-body-font-family);
}

/* ---------- Utilities ---------- */
.section-eyebrow {
  color: var(--fx-primary);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .8rem;
}
.section-title { font-weight: 700; color: var(--fx-ink); letter-spacing: -0.01em; }
.section-lead { color: var(--fx-muted); max-width: 720px; }
.bg-soft { background-color: var(--fx-bg-soft); }
.text-primary-fx { color: var(--fx-primary) !important; }

.btn-fx-primary {
  background-color: var(--fx-primary);
  border-color: var(--fx-primary);
  color: #fff;
  font-weight: 600;
}
.btn-fx-primary:hover, .btn-fx-primary:focus {
  background-color: var(--fx-primary-dark);
  border-color: var(--fx-primary-dark);
  color: #fff;
}

.btn-fx-outline {
  background-color: transparent;
  border: 1.5px solid var(--fx-border);
  color: var(--fx-ink);
  font-weight: 600;
}
.btn-fx-outline:hover {
  border-color: var(--fx-primary);
  color: var(--fx-primary);
  background-color: var(--fx-primary-light);
}

/* ---------- Navbar ---------- */
.navbar-fx {
  background-color: #1f2a2e;
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid transparent;
  border-top: 3px solid;
  border-image: linear-gradient(90deg, var(--fx-primary), var(--fx-teal), var(--fx-amber), var(--fx-purple)) 1;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.navbar-fx.is-scrolled {
  box-shadow: 0 2px 16px rgba(0, 0, 0, .25);
  border-bottom-color: rgba(255, 255, 255, .08);
}
.navbar-fx .nav-link { color: rgba(255, 255, 255, .85); font-weight: 500; }
.navbar-fx .nav-link:hover, .navbar-fx .nav-link.active { color: #ffffff; }
.navbar-brand img { height: 34px; }
/* Compacta os itens do menu para acomodar mais entradas sem estourar a largura */
.navbar-fx .navbar-nav .nav-link.px-3 { padding-left: .7rem !important; padding-right: .7rem !important; }
.navbar-brand span { font-weight: 700; color: #ffffff; }
.navbar-fx .navbar-toggler { border-color: rgba(255, 255, 255, .3); }
.navbar-fx .navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(255, 255, 255, .2); }
.navbar-fx .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.navbar-brand-logo {
  height: 96px;
  width: auto;
  border: none;
  border-radius: 0;
  background: none;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--fx-primary-light) 0%, #ffffff 65%);
  border-bottom: 1px solid var(--fx-border);
  padding-top: 9.5rem;
  position: relative;
  overflow: hidden;
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .28;
  z-index: 0;
  pointer-events: none;
}
.hero::before {
  width: 340px;
  height: 340px;
  background: var(--fx-teal);
  top: -100px;
  right: 6%;
}
.hero::after {
  width: 280px;
  height: 280px;
  background: var(--fx-amber);
  bottom: -80px;
  left: 4%;
}
.hero > .container { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background-color: #fff;
  border: 1px solid var(--fx-border);
  color: var(--fx-primary);
  font-weight: 600;
  font-size: .85rem;
  border-radius: 50rem;
  padding: .4rem 1rem;
}
.hero-badge.badge-teal { color: var(--fx-teal); border-color: var(--fx-teal-light); background-color: var(--fx-teal-light); }
.hero-badge.badge-amber { color: var(--fx-amber); border-color: var(--fx-amber-light); background-color: var(--fx-amber-light); }
.hero-badge.badge-purple { color: var(--fx-purple); border-color: var(--fx-purple-light); background-color: var(--fx-purple-light); }
.hero-badge.badge-blue { color: var(--fx-primary); border-color: var(--fx-primary-light); background-color: var(--fx-primary-light); }
.hero h1 { font-weight: 800; letter-spacing: -0.02em; color: var(--fx-ink); }
.hero-product-logo { display: block; width: 100%; max-width: 280px; height: auto; }
@media (max-width: 575.98px) {
  .hero-product-logo { max-width: 220px; }
}
.hero-stat-card {
  background-color: #fff;
  border: 1px solid var(--fx-border);
  border-radius: 1rem;
  box-shadow: 0 12px 30px rgba(15, 40, 35, .06);
}
.hero-map-frame {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 30% 30%, var(--fx-primary-light), #ffffff 70%);
  border: 1px solid var(--fx-border);
  border-radius: 1.25rem;
}
.hero-live-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background-color: #fff;
  border: 1px solid var(--fx-border);
  border-radius: 50rem;
  padding: .35rem .8rem;
  font-size: .72rem;
  font-weight: 600;
  color: var(--fx-ink);
  box-shadow: 0 8px 20px rgba(15, 40, 35, .08);
  z-index: 2;
}
.hero-live-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #1fae6e;
  flex-shrink: 0;
}
.hero-live-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #1fae6e;
  animation: hero-live-pulse 1.8s ease-out infinite;
}
@keyframes hero-live-pulse {
  0% { transform: scale(.6); opacity: .9; }
  100% { transform: scale(1.9); opacity: 0; }
}
.hero-pulse-ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: hero-ring-pulse 2.4s ease-out infinite;
}
@keyframes hero-ring-pulse {
  0% { transform: scale(.6); opacity: .8; }
  100% { transform: scale(3.4); opacity: 0; }
}
.hero-radar-ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: hero-radar-spin 7s linear infinite;
}
@keyframes hero-radar-spin {
  to { transform: rotate(360deg); }
}

.hero-screen-frame {
  border: 1px solid var(--fx-border);
  border-radius: 1.25rem;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 20px 45px rgba(15, 40, 35, .10);
}
.hero-screen-frame img { width: 100%; height: auto; display: block; }
.hero-screen-caption {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--fx-border);
  background-color: var(--fx-bg-soft);
}

/* ---------- Stat / Impact cards ---------- */
.stat-card {
  background-color: #fff;
  border: 1px solid var(--fx-border);
  border-top: 3px solid var(--fx-primary);
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(15, 40, 35, .08); }
.stat-number { font-weight: 800; font-size: 2.5rem; color: var(--fx-primary); letter-spacing: -0.02em; }
.stat-card.accent-teal { border-top-color: var(--fx-teal); }
.stat-card.accent-teal .stat-number { color: var(--fx-teal); }
.stat-card.accent-amber { border-top-color: var(--fx-amber); }
.stat-card.accent-amber .stat-number { color: var(--fx-amber); }
.stat-card.accent-purple { border-top-color: var(--fx-purple); }
.stat-card.accent-purple .stat-number { color: var(--fx-purple); }

/* ---------- Service cards ---------- */
.service-card {
  background-color: #fff;
  border: 1px solid var(--fx-border);
  border-radius: 1rem;
  padding: 1.75rem;
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(15, 40, 35, .08);
  border-color: var(--fx-primary);
}
.service-icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: .85rem;
  background-color: var(--fx-primary-light);
  color: var(--fx-primary);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.service-icon.icon-teal { background-color: var(--fx-teal-light); color: var(--fx-teal); }
.service-icon.icon-amber { background-color: var(--fx-amber-light); color: var(--fx-amber); }
.service-icon.icon-purple { background-color: var(--fx-purple-light); color: var(--fx-purple); }
.service-icon.icon-rose { background-color: var(--fx-rose-light); color: var(--fx-rose); }

/* ---------- Sectors ---------- */
.sector-pills .nav-link {
  color: var(--fx-muted);
  font-weight: 600;
  border-radius: 50rem;
  padding: .55rem 1.25rem;
  border: 1px solid var(--fx-border);
  margin: 0 .3rem .6rem 0;
}
.sector-pills .nav-link.active { background-color: var(--fx-primary); border-color: var(--fx-primary); color: #fff; }
.sector-panel { background-color: #fff; border: 1px solid var(--fx-border); border-left: 4px solid var(--fx-primary); border-radius: 1.25rem; padding: 2.25rem; }
.sector-panel.accent-teal { border-left-color: var(--fx-teal); }
.sector-panel.accent-amber { border-left-color: var(--fx-amber); }
.sector-panel.accent-purple { border-left-color: var(--fx-purple); }
.sector-panel.accent-rose { border-left-color: var(--fx-rose); }

/* ---------- About / pillars ---------- */
.pillar-card {
  background-color: #fff;
  border: 1px solid var(--fx-border);
  border-top: 3px solid var(--fx-primary);
  border-radius: 1rem;
  padding: 1.75rem;
  height: 100%;
}
.pillar-card.accent-teal { border-top-color: var(--fx-teal); }
.pillar-card.accent-teal .text-primary-fx { color: var(--fx-teal) !important; }
.pillar-card.accent-amber { border-top-color: var(--fx-amber); }
.pillar-card.accent-amber .text-primary-fx { color: var(--fx-amber) !important; }
.pillar-card.accent-purple { border-top-color: var(--fx-purple); }
.pillar-card.accent-purple .text-primary-fx { color: var(--fx-purple) !important; }
.pillar-connector { display: flex; align-items: center; justify-content: center; color: var(--fx-primary); font-size: 1.5rem; font-weight: 700; }
.result-banner { background: linear-gradient(120deg, var(--fx-primary) 0%, var(--fx-primary-dark) 100%); color: #fff; border-radius: 1.25rem; }

/* ---------- How we work ---------- */
.step-card { background-color: #fff; border: 1px solid var(--fx-border); border-top: 3px solid var(--fx-primary); border-radius: 1rem; padding: 2rem 1.75rem; height: 100%; }
.step-number { font-weight: 800; font-size: 2.25rem; color: var(--fx-primary-light); -webkit-text-stroke: 1.5px var(--fx-primary); }
.step-card.accent-teal { border-top-color: var(--fx-teal); }
.step-card.accent-teal .step-number { color: var(--fx-teal-light); -webkit-text-stroke-color: var(--fx-teal); }
.step-card.accent-amber { border-top-color: var(--fx-amber); }
.step-card.accent-amber .step-number { color: var(--fx-amber-light); -webkit-text-stroke-color: var(--fx-amber); }

/* ---------- Contact ---------- */
.contact-card { background-color: #fff; border: 1px solid var(--fx-border); border-radius: 1.25rem; }
.channel-item { display: flex; align-items: center; gap: .9rem; padding: .9rem 0; border-bottom: 1px solid var(--fx-border); color: var(--fx-ink); text-decoration: none; }
.channel-item:last-child { border-bottom: none; }
.channel-item:hover { color: var(--fx-primary); }
.channel-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: .75rem;
  background-color: var(--fx-primary-light);
  color: var(--fx-primary);
}
.form-control, .form-select { border-color: var(--fx-border); padding: .7rem .9rem; }
.form-control:focus, .form-select:focus { border-color: var(--fx-primary); box-shadow: 0 0 0 .2rem rgba(11, 93, 82, .15); }

/* ---------- Footer ---------- */
.footer-fx { background-color: var(--fx-bg-soft); border-top: 1px solid var(--fx-border); }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1080;
  background-color: #fff;
  border: 1px solid var(--fx-border);
  border-radius: 1rem;
  box-shadow: 0 16px 40px rgba(15, 40, 35, .14);
}

/* ---------- Back to top ---------- */
.btn-back-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  background-color: var(--fx-primary);
  color: #fff;
  z-index: 1050;
  box-shadow: 0 8px 20px rgba(15, 40, 35, .25);
}

@media (max-width: 767.98px) {
  .hero { padding-top: 8rem; }
  .stat-number { font-size: 2rem; }
}

/* ==========================================================================
   Produto — Phrisma
   ========================================================================== */

/* Faixa de clientes ("trusted by") — logos reais */
.client-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem 2.5rem;
}
.client-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
}
.client-logo-item img {
  max-height: 100%;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: .6;
  transition: filter .2s ease, opacity .2s ease;
}
.client-logo-item:hover img {
  filter: grayscale(0%);
  opacity: 1;
}
@media (max-width: 575.98px) {
  .client-logos { gap: 1.25rem 1.75rem; }
  .client-logo-item { height: 42px; }
  .client-logo-item img { max-width: 100px; }
}

/* Galeria de telas */
.screen-card {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--fx-border);
  border-radius: 1rem;
  background-color: #fff;
  overflow: hidden;
  text-align: left;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.screen-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(15, 40, 35, .08);
  border-color: var(--fx-primary);
}
.screen-thumb {
  width: 100%;
  height: 190px;
  object-fit: cover;
  object-position: top;
  display: block;
  border-bottom: 1px solid var(--fx-border);
  background-color: var(--fx-bg-soft);
}
.screen-caption {
  display: block;
  padding: 1rem 1.1rem;
}

/* Callout de case real */
.case-callout {
  background-color: var(--fx-primary-light);
  border: 1px solid var(--fx-border);
  border-left: 4px solid var(--fx-primary);
  border-radius: .75rem;
  padding: 1.25rem 1.5rem;
  color: var(--fx-ink);
}
.case-callout strong { color: var(--fx-primary-dark); display: block; margin-bottom: .35rem; }
.case-callout.accent-teal { background-color: var(--fx-teal-light); border-left-color: var(--fx-teal); }
.case-callout.accent-teal strong { color: var(--fx-teal); }
.case-callout a { color: var(--fx-primary-dark); font-weight: 600; text-decoration: underline; white-space: nowrap; }
.case-callout.accent-teal a { color: var(--fx-teal); }

/* Cases de sucesso */
.case-study-card {
  background-color: #fff;
  border: 1px solid var(--fx-border);
  border-top: 3px solid var(--fx-primary);
  border-radius: 1.25rem;
  padding: 2rem;
  height: 100%;
}
.case-study-card.accent-teal { border-top-color: var(--fx-teal); }
.case-study-card.accent-amber { border-top-color: var(--fx-amber); }
.case-study-card.accent-purple { border-top-color: var(--fx-purple); }
.case-study-card.accent-rose { border-top-color: var(--fx-rose); }
.case-study-tag {
  display: inline-block;
  background-color: var(--fx-primary-light);
  color: var(--fx-primary-dark);
  font-weight: 700;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  border-radius: 50rem;
  padding: .3rem .9rem;
  margin-bottom: 1rem;
}
.case-study-card.accent-teal .case-study-tag { background-color: var(--fx-teal-light); color: var(--fx-teal); }
.case-study-card.accent-amber .case-study-tag { background-color: var(--fx-amber-light); color: var(--fx-amber); }
.case-study-card.accent-purple .case-study-tag { background-color: var(--fx-purple-light); color: var(--fx-purple); }
.case-study-card.accent-rose .case-study-tag { background-color: var(--fx-rose-light); color: var(--fx-rose); }
.case-study-client { color: var(--fx-muted); font-weight: 600; margin-bottom: 1.25rem; }
.case-study-label {
  font-weight: 700;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--fx-muted);
  margin-bottom: .35rem;
  margin-top: 1.1rem;
}
.case-study-label:first-of-type { margin-top: 0; }
.case-study-result {
  background-color: var(--fx-bg-soft);
  border-radius: .75rem;
  padding: 1rem 1.25rem;
  margin-top: 1.25rem;
}
.case-study-result strong { color: var(--fx-primary-dark); }
.case-study-card.accent-teal .case-study-result strong { color: var(--fx-teal); }
.case-study-card.accent-amber .case-study-result strong { color: var(--fx-amber); }
.case-study-card.accent-purple .case-study-result strong { color: var(--fx-purple); }
.case-study-card.accent-rose .case-study-result strong { color: var(--fx-rose); }

/* Tabela comparativa antes/depois */
.compare-table-wrap {
  background-color: #fff;
  border: 1px solid var(--fx-border);
  border-radius: 1.25rem;
  padding: .5rem 1rem;
}
.compare-table thead th {
  border-bottom: 2px solid var(--fx-border);
  color: var(--fx-muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: .75rem;
  letter-spacing: .05em;
}
.compare-table td, .compare-table th {
  border-color: var(--fx-border);
  padding: .9rem .75rem;
}
.compare-table tbody th { font-weight: 600; color: var(--fx-ink); }
.cmp-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: .75rem;
  margin-right: .6rem;
  font-weight: 700;
}
.cmp-no { background-color: #fbeaea; color: #b23a3a; }
.cmp-yes { background-color: var(--fx-primary-light); color: var(--fx-primary); }

/* Accordion dos módulos */
.accordion-item {
  border: 1px solid var(--fx-border);
  border-radius: .75rem !important;
  overflow: hidden;
  margin-bottom: .75rem;
}
.accordion-button {
  font-weight: 600;
  color: var(--fx-ink);
  background-color: #fff;
}
.accordion-button:not(.collapsed) {
  background-color: var(--fx-primary-light);
  color: var(--fx-primary-dark);
  box-shadow: none;
}
.accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(13, 114, 160, .15); }

/* ==========================================================================
   Tecnologias — ArcGIS / Smallworld
   ========================================================================== */
.tech-card {
  background-color: #fff;
  border: 1px solid var(--fx-border);
  border-top: 3px solid var(--fx-primary);
  border-radius: 1.25rem;
  padding: 2rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
.tech-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(15, 40, 35, .08); }
.tech-card.accent-teal { border-top-color: var(--fx-teal); }
.tech-logo {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--fx-bg-soft);
  border: 1px solid var(--fx-border);
  border-radius: .85rem;
  padding: .75rem;
}
.tech-logo img { max-height: 100%; max-width: 100%; object-fit: contain; }
.tech-expertise {
  background-color: var(--fx-primary-light);
  border-radius: .75rem;
  padding: 1rem 1.25rem;
  margin-top: 1.25rem;
  font-size: .92rem;
}
.tech-card.accent-teal .tech-expertise { background-color: var(--fx-teal-light); }
.tech-expertise strong { color: var(--fx-primary-dark); }
.tech-card.accent-teal .tech-expertise strong { color: var(--fx-teal); }
