/* ============================================
   VARIÁVEIS
   ============================================ */
:root {
  --blue:        #1a56db;
  --blue-dark:   #1447b8;
  --blue-light:  #eff6ff;
  --green:       #16a34a;
  --green-light: #f0fdf4;
  --gray-50:     #f8fafc;
  --gray-100:    #f1f5f9;
  --gray-200:    #e2e8f0;
  --gray-400:    #94a3b8;
  --gray-600:    #475569;
  --gray-900:    #0f172a;
  --white:       #ffffff;
  --radius:      8px;
  --radius-lg:   16px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:   0 4px 12px rgba(0,0,0,.10);
  --shadow-lg:   0 10px 30px rgba(0,0,0,.12);
}

/* ============================================
   BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--gray-900);
  background: var(--white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

/* ============================================
   UTILITÁRIOS
   ============================================ */
.text-blue      { color: var(--blue) !important; }
.text-green     { color: var(--green) !important; }
.text-gray-600  { color: var(--gray-600) !important; }
.bg-blue-light  { background: var(--blue-light) !important; }
.bg-green-light { background: var(--green-light) !important; }

/* ============================================
   SEÇÕES
   ============================================ */
.py-section {
  padding: 80px 0;
}

.section-alt {
  background: var(--gray-50);
}

.section-badge {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .35rem .85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: .75rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 560px;
  margin: 0 auto;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: .75rem 0;
  transition: box-shadow .25s ease;
  z-index: 1030;
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.logo-navbar {
  height: 38px;
  width: auto;
}

.nav-link {
  color: var(--gray-600) !important;
  font-weight: 500;
  font-size: .95rem;
  padding: .4rem .75rem !important;
  border-radius: var(--radius);
  transition: color .2s, background .2s;
}

.nav-link:hover {
  color: var(--blue) !important;
  background: var(--blue-light);
}

.nav-link-mobile {
  display: flex;
  align-items: center;
  padding: .75rem 1rem;
  border-radius: var(--radius);
  color: var(--gray-900);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  transition: background .2s, color .2s;
}

.nav-link-mobile:hover {
  background: var(--blue-light);
  color: var(--blue);
}

.navbar-toggler {
  border: none;
  padding: .25rem .5rem;
  color: var(--gray-900);
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* ============================================
   BOTÕES
   ============================================ */
.btn {
  font-weight: 600;
  border-radius: var(--radius);
  transition: all .2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: var(--white);
}

.btn-outline-primary {
  border-color: var(--blue);
  color: var(--blue);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.btn-whatsapp {
  background: #25d366;
  border-color: #25d366;
  color: var(--white);
}

.btn-whatsapp:hover {
  background: #1ebe5d;
  border-color: #1ebe5d;
  color: var(--white);
}

.btn-outline-white {
  border: 2px solid rgba(255,255,255,.6);
  color: var(--white);
  background: transparent;
}

.btn-outline-white:hover {
  background: rgba(255,255,255,.15);
  border-color: var(--white);
  color: var(--white);
}

/* ============================================
   HERO
   ============================================ */
.hero-section {
  background: var(--white);
  padding: 80px 0;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  background: var(--blue-light);
  color: var(--blue);
  font-size: .8rem;
  font-weight: 600;
  padding: .4rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--gray-900);
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2rem;
  max-width: 420px;
  margin: 0 auto;
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-200);
}

.hero-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.metric-item {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.metric-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.metric-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1;
}

.metric-label {
  font-size: .75rem;
  color: var(--gray-600);
  margin-top: .15rem;
}

.hero-card-footer {
  display: flex;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-200);
}

/* ============================================
   MARQUEE
   ============================================ */
.marquee-section {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  padding: 1.25rem 0;
  overflow: hidden;
}

.marquee-label {
  text-align: center;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: .75rem;
}

.marquee-track-wrapper {
  overflow: hidden;
  width: 100%;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 2rem;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
  width: max-content;
}

.marquee-track span {
  font-size: .95rem;
  font-weight: 600;
  color: var(--gray-600);
}

.marquee-track .dot {
  color: var(--gray-400);
  font-weight: 400;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================
   SEÇÃO DOR
   ============================================ */
.pain-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s, transform .25s;
}

.pain-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.pain-stat {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: .75rem;
  line-height: 1;
}

/* ============================================
   SERVIÇOS
   ============================================ */
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s, transform .25s;
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.service-icon {
  width: 52px;
  height: 52px;
  background: var(--blue-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--blue);
  margin-bottom: 1.25rem;
  transition: background .2s, color .2s;
}

.service-card:hover .service-icon {
  background: var(--blue);
  color: var(--white);
}

/* ============================================
   COMPARATIVO
   ============================================ */
.compare-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
}

.compare-bad {
  border: 1px solid #fecaca;
  background: #fff5f5;
}

.compare-good {
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
}

.compare-header {
  padding: 1rem 1.5rem;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
}

.compare-bad .compare-header {
  background: #fee2e2;
  color: #b91c1c;
}

.compare-good .compare-header {
  background: #dcfce7;
  color: #15803d;
}

.compare-list {
  list-style: none;
  padding: 1.5rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .85rem;
}

.compare-list li {
  display: flex;
  align-items: flex-start;
  font-size: .95rem;
  color: var(--gray-600);
}

/* ============================================
   PROJETOS
   ============================================ */
.project-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s, transform .25s;
  background: var(--white);
}

.project-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.project-card .card-img-top {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform .4s ease;
}

.project-card:hover .card-img-top {
  transform: scale(1.05);
}

.project-card .card-body {
  padding: 1.25rem;
}

.project-card .card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .5rem;
  color: var(--gray-900);
}

.project-card .card-text {
  font-size: .875rem;
  color: var(--gray-600);
  margin-bottom: .75rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-tag {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue);
  font-size: .72rem;
  font-weight: 600;
  padding: .2rem .6rem;
  border-radius: 999px;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,.85), transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity .3s;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

/* Carousel mobile */
.carousel-control-prev,
.carousel-control-next {
  width: 40px;
  height: 40px;
  background: var(--blue);
  border-radius: 50%;
  top: 40%;
  transform: translateY(-50%);
  opacity: 1;
}

.carousel-control-prev { left: -8px; }
.carousel-control-next { right: -8px; }

.carousel-indicators [data-bs-target] {
  background-color: var(--blue);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  opacity: .4;
}

.carousel-indicators .active {
  opacity: 1;
}

/* ============================================
   PROCESSO
   ============================================ */
.step-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s, transform .25s;
}

.step-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
}

/* ============================================
   CTA FINAL
   ============================================ */
.cta-section {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
}

.cta-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,.85);
  max-width: 520px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 60px 0 32px;
}

.logo-footer {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: .85;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.footer-links a {
  color: var(--gray-400);
  text-decoration: none;
  font-size: .9rem;
  transition: color .2s;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-social {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 1rem;
  text-decoration: none;
  transition: background .2s, color .2s;
}

.footer-social:hover {
  background: var(--blue);
  color: var(--white);
}

.footer-divider {
  border-color: rgba(255,255,255,.1);
  margin: 2rem 0 1.5rem;
}

/* ============================================
   ANIMAÇÕES
   ============================================ */
.fade-in {
  animation: fadeInUp .7s ease-out both;
}

.fade-in-delay {
  animation: fadeInUp .7s ease-out .2s both;
}

.fade-in-section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   RESPONSIVO
   ============================================ */
@media (max-width: 991.98px) {
  .hero-section { padding: 60px 0; }
  .hero-card { max-width: 100%; }
}

@media (max-width: 575.98px) {
  .py-section { padding: 56px 0; }
  .hero-title { font-size: 1.85rem; }
  .metric-value { font-size: 1.15rem; }
  .cta-title { font-size: 1.6rem; }
}

/* ============================================
   BOTÃO VOLTAR AO TOPO
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s, transform .2s, background .2s;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--blue-dark);
  transform: translateY(-3px);
}

@media (max-width: 575.98px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
}

