:root {
  /* cores base (podem ser sobrescritas pelo PHP) */
  --bg-deep: #020617;
  --bg-mid: #0b1220;
  --bg-soft: #111827;
  --accent: #38bdf8;
  --accent-strong: #0ea5e9;
  --accent-soft: rgba(56, 189, 248, 0.18);
  --text-main: #e5f2ff;
  --text-muted: #9ca3af;
  --border-glass: rgba(148, 163, 184, 0.25);
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-deep);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== LAYOUT GERAL ===== */

.page-wrapper {
  position: relative;
  min-height: 100vh;
  padding-bottom: 0; /* sem sobra no final */
}

.bg-pattern {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.25;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(56, 189, 248, 0.12) 0, transparent 55%),
    radial-gradient(circle at 80% 0%, rgba(56, 189, 248, 0.10) 0, transparent 60%),
    radial-gradient(circle at 50% 100%, rgba(30, 64, 175, 0.35) 0, transparent 60%);
  z-index: -2;
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.2) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.2) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at top, rgba(0, 0, 0, 0.75), transparent 70%);
  -webkit-mask-image: radial-gradient(circle at top, rgba(0, 0, 0, 0.75), transparent 70%);
  z-index: -1;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ===== NAVBAR ===== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(2, 6, 23, 0.96);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  object-fit: cover;
}

.logo-badge {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #38bdf8, #0f172a);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.8);
  font-weight: 700;
  font-size: 18px;
}

.logo-text-main {
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 14px;
  text-transform: uppercase;
}

.logo-text-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-links a {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-cta {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.4);
  font-size: 13px;
  text-decoration: none;
  color: var(--white);
  background: radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.6), rgba(15, 23, 42, 0.95));
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.5);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.8);
}

.nav-toggle {
  display: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-main);
  margin: 4px 0;
  border-radius: 2px;
}

/* ===== HERO ===== */

.hero {
  padding: 80px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.1fr); /* ESQ: imagens / DIR: texto */
  gap: 56px;
  align-items: center;
}

/* Coluna esquerda (carrossel) */

.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.hero-carousel {
  width: 100%;
  max-width: 580px;
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.9);
}

.hero-carousel .item img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-carousel .carousel-indicators {
  bottom: 12px;
}

.hero-carousel .carousel-indicators li {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: none;
  margin: 0 4px;
  background: rgba(148, 163, 184, 0.85);
}

.hero-carousel .carousel-indicators .active {
  background: #38bdf8;
}

.hero-visual-caption {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-muted);
}

/* Coluna direita (texto / CTA) */

.hero-content {
  max-width: 520px;
  margin-left: auto;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.4);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero-kicker-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: radial-gradient(circle, #22c55e, #15803d);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.8);
}

.hero-title {
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--white);
  text-shadow: 0 0 25px rgba(56, 189, 248, 0.8);
}

.hero-highlight {
  color: var(--accent);
}

.hero-subtitle {
  max-width: 480px;
  margin-top: 14px;
  font-size: 15px;
  color: var(--text-muted);
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 22px;
  border-radius: 999px;
  background-image: linear-gradient(135deg, #38bdf8, #0ea5e9, #22d3ee);
  color: var(--bg-deep);
  border: none;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 0 26px rgba(56, 189, 248, 0.95);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.btn-primary:hover {
  transform: translateY(-1px) scale(1.01);
  filter: brightness(1.05);
  box-shadow: 0 0 32px rgba(56, 189, 248, 1);
}

.btn-primary .arrow {
  font-size: 18px;
}

.hero-note {
  font-size: 12px;
  color: var(--text-muted);
}

.hero-metrics {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 12px;
}

.hero-metrics-item {
  display: flex;
  flex-direction: column;
}

.hero-metrics-item strong {
  font-size: 15px;
  color: var(--accent);
}

/* ===== SEÇÕES ===== */

section {
  padding: 60px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 32px;
}

.section-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 8px;
}

.section-title {
  font-size: 24px;
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
}

/* Cards especialidades */

.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card-glass {
  position: relative;
  padding: 18px 16px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 64, 175, 0.6));
  border: 1px solid var(--border-glass);
  box-shadow: 0 24px 45px rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(14px);
  overflow: hidden;
}

.card-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.38), transparent 55%);
  opacity: 0.8;
  pointer-events: none;
}

.card-inner {
  position: relative;
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 20% 20%, #e0f2fe, #0ea5e9);
  color: #0f172a;
  font-weight: 800;
  font-size: 22px;
  margin-bottom: 10px;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.8);
}

.card-title {
  font-size: 15px;
  margin-bottom: 6px;
}

.card-text {
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== METODOLOGIA (TIMELINE) ===== */

.timeline-wrapper {
  background: radial-gradient(circle at 0% 0%, rgba(30, 64, 175, 0.8), rgba(15, 23, 42, 0.98));
  border-radius: 24px;
  padding: 20px 18px;
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.9);
  position: relative;
  overflow: hidden;
}

.timeline-line {
  position: absolute;
  top: 50%;
  left: 28px;
  right: 28px;
  height: 2px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.1), rgba(56, 189, 248, 0.75), rgba(56, 189, 248, 0.1));
  transform: translateY(-50%);
  opacity: 0.8;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  position: relative;
}

.timeline-step {
  text-align: center;
  position: relative;
}

.timeline-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.7);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.7);
  font-size: 18px;
}

.timeline-title {
  font-size: 14px;
  margin-bottom: 4px;
}

.timeline-text {
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== RESULTADOS ===== */

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.result-card {
  padding: 18px 16px 16px;
  border-radius: 18px;
  background: radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.28), rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 24px 45px rgba(15, 23, 42, 0.9);
}

.result-number {
  font-size: 26px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

.result-label {
  font-size: 13px;
}

.result-helper {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===== INTEGRAR COM PADRÃO DO SISTEMA (bg-gray / bg-white) ===== */

.home-section.bg-white,
.home-section.bg-gray,
#bottom-widget {
  background: var(--bg-deep) !important;
  color: var(--text-main);
}

/* textos dentro do bottom-widget em claro */
#bottom-widget h5,
#bottom-widget p,
#bottom-widget a {
  color: var(--text-main) !important;
}

/* ===== FOOTER / CONTATO ===== */

footer {
  background: var(--bg-deep);
  color: #e9eefb;
  padding: 20px 0;
  border-top: 1px solid rgba(148,163,184,0.35);
}

footer p {
  color: #e9eefb;
}

footer a,
footer a:visited {
  color: #fff;
  text-decoration: none;
}

footer a:hover {
  color: #e9eefb;
  text-decoration: underline;
}

.footer-main-text {
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 13px;
}

.footer-sub-text {
  font-size: 16px;
  color: rgba(255,255,255,0.9);
  margin-top: 0;
}

.footer-separator {
  margin: 0 10px;
  opacity: 0.5;
}

/* ===== FORM CONTATO / UTILITÁRIOS ===== */

.contact-info-title {
  font-size: 18px;
  margin-bottom: 10px;
}

.contact-info-text {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.contact-email {
  font-size: 14px;
  margin-bottom: 10px;
}

.contact-email a {
  color: var(--accent);
  text-decoration: none;
}

.social-links {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.7);
  font-size: 13px;
  text-decoration: none;
  color: var(--white);
}

.social-icon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0ea5e9, #1d4ed8);
  font-size: 12px;
  font-weight: 700;
}

.contact-form {
  padding: 16px 16px 14px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(8, 47, 73, 0.98));
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 30px 50px rgba(15, 23, 42, 0.95);
}

.form-group {
  margin-bottom: 10px;
}

label {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.92);
  padding: 8px 9px;
  font-size: 13px;
  color: var(--text-main);
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 80px;
}

input:focus,
textarea:focus {
  border-color: rgba(56, 189, 248, 0.9);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.45);
}

.btn-submit {
  width: 100%;
  margin-top: 6px;
}

/* ===== RESPONSIVO ===== */

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .hero {
    padding-top: 32px;
  }

  .hero-content {
    margin-left: 0;
  }

  .hero-visual,
  .hero-carousel {
    max-width: 480px;
    margin: 0 auto;
  }

  .cards-grid-3,
  .results-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline-line {
    display: none;
  }
}

@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: rgba(15, 23, 42, 0.97);
    flex-direction: column;
    padding: 10px 16px 12px;
    border-bottom: 1px solid rgba(30, 64, 175, 0.7);
    display: none;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .hero-metrics {
    gap: 12px;
  }

  section {
    padding: 46px 0;
  }
}
