@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ============================================
   IndEngix - Estilos Base
   Paleta: Azul marinho, sem gradientes
   Inspiração: stripe.com, getninjas.com.br
   ============================================ */

:root {
  --navy: #0a2540;
  --navy-light: #1e3a5f;
  --navy-dark: #061830;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-600: #475569;
  --gray-800: #1e293b;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 4px 6px -1px rgba(10, 37, 64, 0.08), 0 2px 4px -2px rgba(10, 37, 64, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(10, 37, 64, 0.1), 0 4px 6px -4px rgba(10, 37, 64, 0.08);
  --transition: 0.2s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* clip preserva position:sticky; hidden quebra. Fallback para navegadores antigos */
html,
body {
  overflow-x: hidden;
}
@supports (overflow-x: clip) {
  html,
  body {
    overflow-x: clip;
  }
}

html {
  scroll-behavior: smooth;
  scrollbar-color: #0069c0 rgba(0, 105, 192, 0.15);
  scrollbar-width: thin;
}

/* Scrollbar personalizado (Chrome, Safari, Edge) */
html::-webkit-scrollbar {
  width: 10px;
}

html::-webkit-scrollbar-track {
  background: rgba(0, 105, 192, 0.08);
}

html::-webkit-scrollbar-thumb {
  background: #0069c0;
  border-radius: 5px;
}

html::-webkit-scrollbar-thumb:hover {
  background: #0059a8;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--white);
}

/* Fundo quadriculado estilo caderno de engenharia (página inicial) */
body.home-page {
  background-color: var(--white);
  background-image:
    linear-gradient(rgba(10, 37, 64, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 37, 64, 0.035) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: 0 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--navy);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--navy-light);
}

/* ========== HEADER ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 0.75rem 1.5rem;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  height: 40px;
  width: auto;
}

.header-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.header-nav a {
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--gray-800);
}

.header-nav a:hover {
  color: var(--navy);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--navy);
}

/* Botão Download no header - fundo preto e texto branco */
.btn-download {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius);
  background: #000;
  color: var(--white);
  transition: background 0.25s, color 0.25s;
  position: relative;
  overflow: hidden;
}
.btn-download::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.4s ease;
}
.btn-download:hover::after { left: 100%; }
.home-page .site-header .btn-download,
.home-page .site-header.site-header-scrolled .btn-download,
.site-header .btn-download,
.site-header:not(.site-header-scrolled) .btn-download,
.site-header.site-header-scrolled .btn-download {
  background: #000;
  color: var(--white);
}
.home-page .site-header .btn-download::after,
.home-page .site-header.site-header-scrolled .btn-download::after {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

/* ========== MAIN CONTENT ========== */
main {
  padding-top: 64px;
  min-height: calc(100vh - 280px);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 1rem;
  text-align: center;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--gray-600);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--white);
  color: var(--navy);
  border: 2px solid var(--navy);
}

.btn-with-search svg {
  flex-shrink: 0;
}

.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border: 2px solid var(--navy);
}

.btn-secondary:hover {
  background: var(--gray-50);
}

/* ========== HERO SECTION ========== */
.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 4rem 1.5rem;
  background: var(--navy);
  overflow: hidden;
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 16, 31, 0.55);
  z-index: 0;
  pointer-events: none;
}

.hero-bg-geometry {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-geometry-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
}

.hero-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--white);
  margin: 0 0 1.5rem;
  line-height: 1.2;
}

/* Hero animação de entrada */
.hero .hero-animate {
  animation: heroFadeInUp 0.8s ease-out forwards;
}

@keyframes heroFadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero .hero-animate {
    animation: none;
    opacity: 1;
  }
}

/* ========== ANIMAÇÕES AO SCROLL ========== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Service cards: combinar animação com rotação */
.service-card.animate-on-scroll:nth-child(4n+1),
.service-card.animate-on-scroll:nth-child(4n+4) {
  transform: translateY(20px) rotate(-2deg);
}

.service-card.animate-on-scroll:nth-child(4n+2),
.service-card.animate-on-scroll:nth-child(4n+3) {
  transform: translateY(20px) rotate(2deg);
}

.service-card.animate-on-scroll.animate-in:nth-child(4n+1),
.service-card.animate-on-scroll.animate-in:nth-child(4n+4) {
  transform: translateY(0) rotate(-2deg);
}

.service-card.animate-on-scroll.animate-in:nth-child(4n+2),
.service-card.animate-on-scroll.animate-in:nth-child(4n+3) {
  transform: translateY(0) rotate(2deg);
}

/* Category cards: combinar animação com rotação */
.category-card.animate-on-scroll.animate-in:nth-child(6n+1),
.category-card.animate-on-scroll.animate-in:nth-child(6n+6) {
  transform: translateY(0) rotate(-2deg);
}

.category-card.animate-on-scroll.animate-in:nth-child(6n+2),
.category-card.animate-on-scroll.animate-in:nth-child(6n+3) {
  transform: translateY(0) rotate(2deg);
}

.category-card.animate-on-scroll.animate-in:nth-child(6n+4),
.category-card.animate-on-scroll.animate-in:nth-child(6n+5) {
  transform: translateY(0) rotate(-1.5deg);
}

.animate-on-scroll.animate-delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.animate-delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.animate-delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.animate-delay-4 { transition-delay: 0.4s; }
.animate-on-scroll.animate-delay-5 { transition-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .animate-on-scroll.animate-in {
    opacity: 1;
    transform: none;
  }
  .category-card,
  .category-card:nth-child(n),
  .category-card:hover {
    transform: none;
  }
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero .btn-primary {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, #0069c0 100%);
  color: var(--white);
}

.hero .btn-primary:hover {
  background: var(--white);
  color: var(--navy);
  filter: none;
}

.hero .btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.hero .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ========== CARDS DE SERVIÇOS DESTAQUE ========== */
.services-showcase {
  background: var(--gray-50);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* Cards inclinados alternados (exclui .tilt-left/.tilt-right usados no carrossel "Serviços em Destaque") */
.service-card:not(.tilt-left):not(.tilt-right):nth-child(4n+1),
.service-card:not(.tilt-left):not(.tilt-right):nth-child(4n+4) {
  transform: rotate(-2deg);
}

.service-card:not(.tilt-left):not(.tilt-right):nth-child(4n+2),
.service-card:not(.tilt-left):not(.tilt-right):nth-child(4n+3) {
  transform: rotate(2deg);
}

.service-card:not(.tilt-left):not(.tilt-right):hover {
  transform: translateY(-8px) rotate(0deg) !important;
  box-shadow: var(--shadow-lg);
}

.service-card-image-wrap {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--gray-200);
}

.service-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.service-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0;
}

.service-card-desc {
  font-size: 0.9375rem;
  color: var(--gray-600);
  margin: 0;
  flex: 1;
}

.service-card .btn-sm {
  font-size: 0.8125rem;
  padding: 0.5rem 1rem;
  margin-top: auto;
  align-self: flex-start;
}

/* ========== SEÇÃO ESCOLHA UMA CATEGORIA (compacta) ========== */
.section.section-categories-compact {
  padding-top: 1rem;
  padding-bottom: 3rem;
  margin-top: 0;
}

.section-title-small {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-600);
  margin: 0 0 1rem;
  text-align: left;
}

.categories-grid-compact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.category-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  min-height: 100px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}

.category-pill:hover {
  box-shadow: var(--shadow);
  border-color: var(--navy-light);
}

.category-pill-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.category-pill-icon {
  font-size: 1.25rem;
  color: var(--navy);
  flex-shrink: 0;
}

.category-pill h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0;
}

.category-pill p {
  font-size: 0.8125rem;
  color: var(--gray-600);
  margin: 0;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .categories-grid-compact {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .categories-grid-compact {
    grid-template-columns: 1fr;
  }
}

/* ========== SEÇÃO SOLICITAÇÃO (legado - categories-grid) ========== */
#servicos .section-title {
  margin-bottom: 2rem;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* Solicite Seu Serviço - cards minimalistas (3 janelas por linha) */
.categories-grid-minimal {
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.category-card-minimal {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card-minimal:hover {
  box-shadow: var(--shadow);
}

.category-minimal-window {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 200px;
}

.category-minimal-icon {
  width: 100%;
  height: 100px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-50);
  border-radius: var(--radius);
}

.category-minimal-icon img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  object-position: center;
}

.category-card-minimal h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 0.5rem;
}

.category-card-minimal p {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin: 0 0 1rem;
  line-height: 1.5;
}

.category-card-minimal .btn {
  margin-top: auto;
}

.category-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transform-origin: center;
}

/* Cards inclinados alternados (mesma lógica dos service-cards) */
.category-card:nth-child(6n+1),
.category-card:nth-child(6n+6) {
  transform: rotate(-2deg);
}

.category-card:nth-child(6n+2),
.category-card:nth-child(6n+3) {
  transform: rotate(2deg);
}

.category-card:nth-child(6n+4),
.category-card:nth-child(6n+5) {
  transform: rotate(-1.5deg);
}

.category-card:hover {
  transform: rotate(0deg) translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.category-card-image-wrap {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--gray-100);
}

.category-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.category-card:hover .category-card-image {
  transform: scale(1.05);
}

.category-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex-grow: 1;
}

.category-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 0.5rem;
}

.category-card p {
  font-size: 0.9375rem;
  color: var(--gray-600);
  margin: 0 0 1.25rem;
  flex-grow: 1;
}

/* ========== COMO FUNCIONA ========== */
.how-it-works {
  background: var(--gray-50);
}

.how-it-works-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 3rem;
}

.how-it-works-top .flow-intro {
  margin: 0;
}

.how-it-works-top .video-box {
  margin: 0;
  max-width: 100%;
  min-width: 0;
}

.video-wrapper {
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
}

.video-wrapper {
  height: auto;
  padding-bottom: 0;
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

@media (max-width: 767px) {
  .how-it-works-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.steps-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.step-item {
  text-align: center;
  transition: transform 0.25s ease;
}

.step-item:hover {
  transform: translateY(-4px);
}

.step-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon svg {
  width: 48px;
  height: 48px;
  transition: transform 0.25s ease;
}

.step-item:hover .step-icon svg {
  transform: scale(1.08);
}

.step-item h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 0.5rem;
}

.step-item p {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin: 0;
}

/* Caixa de vídeo integrada – entorno mínimo para vídeo em destaque */
.video-box {
  max-width: 720px;
  margin: 3rem auto 0;
  padding: 0.5rem;
  background: transparent;
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: none;
  position: relative;
}

.video-box::before {
  display: none;
}

.video-box-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 1.25rem;
  text-align: center;
}

.video-box-inner {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(10, 37, 64, 0.08);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.how-it-works .video-box-inner .video-wrapper:empty {
  background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
}

/* Override: vídeo sem entorno branco (regras em grupo mais adiante não aplicam) */
.how-it-works .video-box {
  padding: 0.5rem;
  background: transparent;
  border: none;
  box-shadow: none;
}
.how-it-works .video-box::before {
  display: none;
}
.how-it-works .video-box:hover {
  transform: none;
  box-shadow: none;
}

/* ========== SOBRE NÓS ========== */
.about-section {
  position: relative;
  overflow: visible;
}

.about-wrapper {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.about-geometry {
  position: absolute;
  inset: -20px;
  pointer-events: none;
  z-index: 0;
}

.about-geometry-svg {
  width: 100%;
  height: 100%;
  opacity: 0.8;
}

.about-content {
  position: relative;
  z-index: 1;
}

.about-content p {
  font-size: 1.0625rem;
  color: var(--gray-600);
  margin-bottom: 1rem;
}

.about-content p:last-child {
  margin-bottom: 0;
}

/* Sobre Nós - layout imagem acima, texto abaixo */
.about-wrapper-side {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.about-regions-left .about-wrapper-side {
  grid-template-columns: 1fr;
}

.about-regions-left {
  overflow: visible;
}

.about-wrapper-side .about-geometry {
  display: none;
}

.about-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: visible;
  perspective: 1000px;
}

.about-image-wrap .about-image {
  display: block;
  width: 100%;
  height: auto;
  min-height: 320px;
  object-fit: contain;
  object-position: center;
  border-radius: var(--radius-lg);
  transition: transform 0.3s ease;
}

.about-wrapper-side .about-content {
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .about-wrapper-side {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Sobre Nós + Regiões: layout lado a lado (desktop) */
.about-regions-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.about-regions-left {
  overflow: visible;
}

.about-regions-left .about-wrapper-side {
  max-width: none;
  overflow: visible;
}

.about-regions-left .about-image-wrap {
  min-height: 340px;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-regions-left .about-image-wrap .about-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 300px;
}

.about-regions-right {
  position: sticky;
  top: 5rem;
  align-self: start; /* necessário para sticky funcionar no grid */
}

.regions-side-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 1rem;
  text-align: left;
}

.regions-side-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.regions-side-inner .regions-map iframe {
  height: 300px;
}

@media (max-width: 640px) {
  .about-regions-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-regions-right {
    position: static;
  }

  .regions-side-title {
    text-align: center;
  }
}

/* ========== DOWNLOAD SECTION ========== */
.download-section {
  background: linear-gradient(135deg, #04101f 0%, #0a2540 35%, #0069c0 70%, #0a2540 100%);
  padding: 4rem 1.5rem;
  color: var(--white);
  position: relative;
  overflow: visible;
}

.download-section-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.download-section-text h2 {
  font-size: 1.75rem;
  margin: 0 0 0.75rem;
}

.download-section-text p {
  margin: 0 0 1.5rem;
  opacity: 0.9;
}

.download-section-image {
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  /* Margens negativas para alinhar a imagem às bordas da seção (evita 100vw que causa scroll horizontal) */
  margin: -4rem -1.5rem -4rem 0;
  min-height: calc(100% + 8rem);
}

.download-section-image img {
  height: 100%;
  max-height: 720px;
  min-height: 480px;
  width: auto;
  object-fit: contain;
  object-position: right center;
}

.btn-download-section {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--white);
  color: var(--navy);
  font-weight: 600;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}

.btn-download-section:hover {
  background: var(--gray-100);
}

@media (max-width: 768px) {
  .download-section-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .download-section-image {
    order: 1;
    margin: -4rem -1.5rem -4rem -1.5rem;
  }
  .download-section-image img {
    margin: 0 auto;
    max-height: 420px;
    min-height: 280px;
  }
}

/* Modal de Download (aparece no PC quando clica em Download) */
.download-modal {
  background: var(--navy);
  color: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  max-width: 360px;
  margin: auto;
}
.download-modal p {
  color: var(--white);
  margin: 0;
}

/* ========== CTA SECTION ========== */
.cta-section {
  background: var(--navy);
  text-align: center;
  padding: 3rem 1.5rem;
}

.cta-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 1.5rem;
}

.cta-section .btn-primary {
  background: var(--white);
  color: var(--navy);
}

.cta-section .btn-cta-main {
  background: var(--white);
  color: var(--navy);
}
.cta-section .btn-cta-main:hover {
  background: var(--gray-100);
}

.cta-categories {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  max-width: 1000px;
  margin: 0 auto 1.5rem;
  text-align: left;
}
.cta-category-block h4 a { color: var(--white); }
.cta-category-block ul a,
.cta-category-block li {
  color: var(--gray-400);
}
.cta-category-block h4 { margin: 0 0 0.5rem; }
.cta-category-block ul { list-style: none; margin: 0; padding: 0; }
.cta-category-block li { margin-bottom: 0.25rem; }
.cta-category-block a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .cta-categories { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .cta-categories { grid-template-columns: repeat(2, 1fr); }
}

/* ========== REGIÕES ========== */
.regions-section {
  background: var(--white);
  padding: 4rem 1.5rem;
}

.regions-section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 2rem;
  text-align: center;
}

.regions-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(280px, 2fr);
  gap: 2.5rem;
  align-items: start;
}

.regions-list {
  margin: 0;
  padding: 0;
}
.regions-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.regions-list li {
  font-size: 1.0625rem;
  color: var(--navy);
  font-weight: 600;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.regions-list li:last-child {
  border-bottom: none;
}

.regions-map,
.regions-map-wrap {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.regions-map iframe,
.regions-map-wrap iframe {
  display: block;
  width: 100%;
  height: 360px;
  border: none;
}

@media (max-width: 768px) {
  .regions-inner {
    grid-template-columns: 1fr;
  }
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--navy-dark);
  color: var(--gray-400);
  padding: 3rem 1.5rem 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.footer-logo img {
  max-height: 50px;
  margin-bottom: 1rem;
}

.footer-tagline {
  font-size: 0.9375rem;
  color: var(--gray-400);
  max-width: 200px;
}

.footer-nav h4,
.footer-contact h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
  margin: 0 0 1rem;
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav li {
  margin-bottom: 0.5rem;
}

.footer-nav a {
  color: var(--gray-400);
}

.footer-nav a:hover {
  color: var(--white);
}

.footer-contact p {
  margin: 0 0 0.25rem;
  font-size: 0.9375rem;
}

.footer-contact a {
  color: var(--gray-400);
}

.footer-contact a:hover {
  color: var(--white);
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.footer-social a {
  color: var(--gray-400);
  font-size: 1.25rem;
  transition: color var(--transition);
}

.footer-social a:hover {
  color: var(--navy-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom a {
  color: var(--gray-400);
}

.footer-bottom a:hover {
  color: var(--white);
}

.footer-legal {
  font-size: 0.8125rem;
  color: var(--gray-400);
}

/* ========== FORMULÁRIO ========== */
.form-section {
  padding: 4rem 0;
}

.form-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid rgba(10, 37, 64, 0.12);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--navy);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  color: var(--gray-800);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checkbox-item input {
  width: auto;
}

.service-options-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-option-btn {
  padding: 0.75rem 1rem;
  text-align: left;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1rem;
  transition: border-color var(--transition), background var(--transition);
}

.service-option-btn:hover,
.service-option-btn.selected {
  border-color: var(--navy);
  background: rgba(10, 37, 64, 0.05);
}

.form-error {
  padding: 0.75rem;
  background: #fef2f2;
  border-radius: var(--radius);
}

.form-group.field-error > label {
  color: #b91c1c;
}

.form-group.field-error input,
.form-group.field-error select,
.form-group.field-error textarea {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.35);
}

.form-group.field-error .form-phone-row input,
.form-group.field-error .form-phone-row select {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.35);
}

.checkbox-group.field-error {
  outline: 2px solid rgba(220, 38, 38, 0.45);
  border-radius: var(--radius);
  padding: 0.35rem 0.5rem;
}

.radio-group label,
.checkbox-group label {
  cursor: pointer;
}

/* ========== PÁGINA CONFIRMAÇÃO ========== */
.confirmation-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
  text-align: center;
}

.confirmation-icon {
  font-size: 4rem;
  color: #22c55e;
  margin-bottom: 1rem;
}

.confirmation-page h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 1rem;
}

.confirmation-page p {
  font-size: 1.0625rem;
  color: var(--gray-600);
  margin-bottom: 0.75rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.confirmation-page .btn {
  margin-top: 1.5rem;
}

/* ========== PÁGINA PARCERIA ========== */
.partnership-blocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.partnership-card {
  background: var(--white);
  border: 1px solid rgba(10, 37, 64, 0.12);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.partnership-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.partnership-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 37, 64, 0.08);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: var(--navy);
}

.partnership-card h2 {
  font-size: 1.25rem;
  color: var(--navy);
  margin: 0 0 1rem;
}

.partnership-card p {
  font-size: 0.9375rem;
  color: var(--gray-600);
  margin-bottom: 1rem;
}

.partnership-card .btn {
  margin-top: 0.5rem;
}

.partnership-cta {
  text-align: center;
  padding: 1.5rem;
  background: var(--gray-50);
  border-radius: var(--radius);
  margin-top: 2rem;
}

/* ========== PÁGINAS TERMOS/PRIVACIDADE ========== */
.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

.legal-page h1 {
  font-size: 1.75rem;
  color: var(--navy);
  margin-bottom: 1rem;
}

.legal-page h2 {
  font-size: 1.125rem;
  color: var(--navy);
  margin: 2rem 0 0.75rem;
}

.legal-page p {
  color: var(--gray-600);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.legal-page ul {
  margin: 0 0 1rem 1.5rem;
  color: var(--gray-600);
}

.legal-updated {
  font-size: 0.875rem;
  color: var(--gray-400);
  margin-bottom: 2rem;
}

.legal-back {
  margin-top: 2rem;
}

.legal-back a {
  color: var(--navy);
  font-weight: 500;
}

.legal-back a:hover {
  text-decoration: underline;
}

/* ========== MOBILE ========== */
@media (max-width: 768px) {
  /* Menu toggle: oculto no topo, visível após scroll (quando fundo do header aparece) */
  .home-page .site-header:not(.site-header-scrolled) .menu-toggle {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  .home-page .site-header.site-header-scrolled .menu-toggle {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .menu-toggle {
    display: block;
    transition: opacity 0.25s, visibility 0.25s;
  }

  .header-nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--gray-200);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition), opacity var(--transition);
  }

  .header-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 60vh;
  }

  .section {
    padding: 3rem 0;
  }

  .categories-grid,
  .categories-grid-minimal {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .partnership-blocks {
    grid-template-columns: 1fr;
  }

  .form-card {
    padding: 1.25rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.5rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }
}

/* ============================================
   IndEngix - Redesign Visual 3D
   ============================================ */

:root {
  --navy-950: #04101f;
  --navy-900: #07192d;
  --navy-850: #09213b;
  --navy-800: #0a2540;
  --navy-700: #10325b;
  --navy-650: #184273;
  --navy-600: #21518b;
  --navy-500: #3c79bc;
  --navy-400: #78a3dd;
  --text-strong: #e8f1ff;
  --surface-dark: rgba(7, 25, 45, 0.78);
  --surface-blue: rgba(16, 50, 91, 0.68);
  --surface-soft: rgba(255, 255, 255, 0.72);
  --surface-card: rgba(255, 255, 255, 0.96);
  --surface-line: rgba(120, 163, 221, 0.2);
  --shadow-xl: 0 24px 80px rgba(4, 16, 31, 0.28);
  --shadow-card: 0 22px 60px rgba(8, 25, 46, 0.14);
  --shadow-soft: 0 12px 30px rgba(8, 25, 46, 0.1);
  --radius-sm: 14px;
  --radius: 18px;
  --radius-lg: 28px;
  --transition-fast: 180ms ease;
  --transition-slow: 380ms cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  scroll-padding-top: 100px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #10233f;
  background:
    radial-gradient(circle at top left, rgba(120, 163, 221, 0.12), transparent 30%),
    linear-gradient(180deg, #f7faff 0%, #eef4fb 100%);
}

a,
.btn,
.service-card,
.category-card,
.step-item,
.hero-chip,
.service-option-btn {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  padding: 1rem 1.5rem;
  background: rgba(247, 250, 255, 0.7);
  border-bottom: 1px solid rgba(120, 163, 221, 0.16);
  backdrop-filter: blur(18px);
  box-shadow: none;
  transition: background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.site-header.site-header-scrolled {
  background: rgba(247, 250, 255, 0.92);
  border-bottom-color: rgba(16, 50, 91, 0.12);
  box-shadow: 0 14px 40px rgba(7, 25, 45, 0.08);
}

.header-inner,
.footer-inner,
.container {
  max-width: 1240px;
}

.header-logo {
  height: 44px;
}

.header-nav a {
  position: relative;
  font-size: 0.95rem;
  font-weight: 600;
  color: #153153;
}

.header-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.5rem;
  height: 2px;
  background: rgba(33, 81, 139, 0.9);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition-fast);
}

.header-nav a:hover::after {
  transform: scaleX(1);
}

main {
  padding-top: 88px;
}

.section {
  padding: 5.5rem 0;
}

.section-title {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  letter-spacing: -0.04em;
  line-height: 1.04;
  color: var(--navy-800);
}

.section-subtitle {
  max-width: 720px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #4c5f7c;
}

.btn {
  min-height: 52px;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast);
}

.btn:hover {
  /* sem elevação 3d */
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: none;
}

.btn-primary:hover {
  background: var(--white);
  color: var(--navy);
  border: 2px solid var(--navy);
  box-shadow: none;
}

.btn-secondary {
  color: var(--text-strong);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
}

.btn-secondary:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.hero {
  min-height: calc(100vh - 88px);
  padding: 3rem 0 4rem;
  background: #04101f;
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.hero::before {
  inset: auto auto 8% -6%;
  width: 260px;
  height: 260px;
  border-radius: 36px;
  background: linear-gradient(180deg, rgba(120, 163, 221, 0.22), rgba(16, 50, 91, 0.04));
  transform: rotate(-24deg);
  filter: blur(2px);
}

.hero::after {
  top: 10%;
  right: -4%;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.02) 62%);
}

.hero-bg-geometry {
  opacity: 0.25;
}

.hero-glow {
  position: absolute;
  left: 10%;
  top: 14%;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(116, 168, 224, 0.35), transparent 65%);
  filter: blur(24px);
  opacity: 0.85;
  z-index: 0;
}

.hero-glow-secondary {
  top: auto;
  left: auto;
  right: 6%;
  bottom: 8%;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(60, 121, 188, 0.25), transparent 68%);
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  gap: 3rem;
  align-items: center;
  min-height: calc(100vh - 150px);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.2rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  font-size: 0.9rem;
  font-weight: 600;
}

.hero-title {
  max-width: 13ch;
  font-size: clamp(3rem, 6vw, 5.8rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.95;
  text-wrap: balance;
  margin-bottom: 1.4rem;
}

.hero-description {
  max-width: 640px;
  margin: 0 0 2rem;
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  line-height: 1.9;
  color: rgba(232, 241, 255, 0.76);
}

.hero-buttons {
  justify-content: flex-start;
  gap: 0.9rem;
  margin-bottom: 1.75rem;
}

.hero-service-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.94rem;
  font-weight: 600;
  backdrop-filter: blur(16px);
  transition:
    transform var(--transition-fast),
    border-color var(--transition-fast),
    background var(--transition-fast),
    box-shadow var(--transition-fast);
}

.hero-chip:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(120, 163, 221, 0.46);
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(4, 16, 31, 0.2);
}

.hero-visual {
  position: relative;
  min-height: 560px;
  perspective: 1400px;
}

.hero-visual-stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 560px;
  transform-style: preserve-3d;
}

.hero-orbit {
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(120, 163, 221, 0.18);
  box-shadow: inset 0 0 30px rgba(120, 163, 221, 0.08);
}

.hero-orbit-one {
  inset: 5% 8% 8% 8%;
  transform: rotateX(70deg) rotateZ(14deg);
}

.hero-orbit-two {
  inset: 17% 14% 17% 14%;
  transform: rotateX(74deg) rotateZ(-18deg);
}

.hero-panel,
.hero-stack-card {
  position: absolute;
  border-radius: 26px;
  border: 1px solid rgba(122, 170, 224, 0.22);
  color: #f6fbff;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(24px);
}

.hero-panel::before,
.hero-stack-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02)),
    linear-gradient(140deg, rgba(120, 163, 221, 0.16), transparent 45%);
}

.hero-panel > *,
.hero-stack-card > * {
  position: relative;
  z-index: 1;
}

.hero-panel span,
.hero-stack-card span,
.hero-panel-kicker {
  display: inline-flex;
  margin-bottom: 0.75rem;
  color: rgba(227, 239, 255, 0.72);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-panel strong,
.hero-stack-card strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.hero-panel p {
  margin: 0.8rem 0 0;
  color: rgba(227, 239, 255, 0.7);
  font-size: 0.92rem;
  line-height: 1.65;
}

.hero-panel-main {
  top: 18%;
  left: 12%;
  width: min(100%, 430px);
  padding: 1.6rem;
  background: linear-gradient(155deg, rgba(18, 66, 118, 0.88), rgba(9, 33, 59, 0.78));
  transform: translateZ(70px) rotateX(8deg) rotateY(-10deg);
}

.hero-panel-top {
  top: 4%;
  right: 10%;
  width: 210px;
  padding: 1rem 1.1rem;
  background: linear-gradient(160deg, rgba(65, 128, 198, 0.62), rgba(18, 66, 118, 0.38));
  transform: translateZ(110px) rotateX(-6deg) rotateY(12deg);
}

.hero-panel-side {
  top: 40%;
  right: 4%;
  width: 240px;
  padding: 1.1rem 1.15rem;
  background: linear-gradient(160deg, rgba(6, 24, 48, 0.92), rgba(16, 50, 91, 0.68));
  transform: translateZ(90px) rotateX(6deg) rotateY(-18deg);
}

.hero-panel-bottom {
  bottom: 10%;
  left: 22%;
  width: 240px;
  padding: 1rem 1.1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(7, 25, 45, 0.72));
  transform: translateZ(50px) rotateX(8deg) rotateY(8deg);
}

.hero-stack {
  position: absolute;
  right: 12%;
  bottom: 14%;
  width: 230px;
  height: 170px;
  transform-style: preserve-3d;
}

.hero-stack-card {
  inset: 0;
  padding: 1rem;
  background: linear-gradient(160deg, rgba(16, 50, 91, 0.72), rgba(5, 16, 33, 0.66));
}

.hero-stack-card:nth-child(1) {
  transform: translate3d(0, 0, 0) rotateZ(-6deg);
}

.hero-stack-card:nth-child(2) {
  transform: translate3d(-18px, -18px, -20px) rotateZ(4deg);
}

.hero-stack-card:nth-child(3) {
  transform: translate3d(-36px, -36px, -40px) rotateZ(12deg);
}

.services-showcase,
.how-it-works,
.cta-section,
.form-section,
.partnership-cta {
  position: relative;
  overflow: hidden;
}

.about-section {
  overflow: visible;
}

.services-showcase {
  background: transparent;
}

.services-showcase::before,
.how-it-works::before,
.about-section::before,
.form-section::before {
  content: '';
  position: absolute;
  inset: 8% auto auto -10%;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(120, 163, 221, 0.12), transparent 68%);
  pointer-events: none;
}

.services-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.8rem;
}

.service-card,
.category-card,
.step-item,
.video-box,
.about-wrapper,
.form-card,
.partnership-card {
  border: 1px solid rgba(120, 163, 221, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(245, 249, 255, 0.92));
  box-shadow: var(--shadow-card);
}

/* Exclui .tilt-left e .tilt-right para preservar a inclinação em "Serviços em Destaque" */
.service-card:not(.tilt-left):not(.tilt-right):nth-child(n),
.category-card:nth-child(n),
.service-card.animate-on-scroll:not(.tilt-left):not(.tilt-right):nth-child(n),
.service-card.animate-on-scroll.animate-in:not(.tilt-left):not(.tilt-right):nth-child(n),
.category-card.animate-on-scroll.animate-in:nth-child(n) {
  transform: none;
}

.service-card,
.category-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  transition:
    transform var(--transition-slow),
    box-shadow var(--transition-slow),
    border-color var(--transition-fast);
}

.service-card::before,
.category-card::before,
.step-item::before,
.video-box::before,
.about-wrapper::before,
.form-card::before,
.partnership-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), transparent 22%);
}

.service-card::after,
.category-card::after {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  top: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(16, 50, 91, 0.16), rgba(120, 163, 221, 0.76), rgba(16, 50, 91, 0.16));
}

.service-card:hover,
.category-card:hover,
.partnership-card:hover,
.step-item:hover,
.video-box:hover,
.about-wrapper:hover,
.form-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 28px 80px rgba(8, 25, 46, 0.18);
  border-color: rgba(60, 121, 188, 0.22);
}

.service-card-image-wrap,
.category-card-image-wrap {
  position: relative;
  background:
    radial-gradient(circle at top, rgba(120, 163, 221, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(16, 50, 91, 0.04), rgba(16, 50, 91, 0.12));
}

.service-card-image-wrap::after,
.category-card-image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 28%, rgba(7, 25, 45, 0.26) 100%);
}

.service-card-image,
.category-card-image {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), filter 0.6s ease;
}

.service-card:hover .service-card-image,
.category-card:hover .category-card-image {
  transform: scale(1.08);
  filter: saturate(1.08);
}

.service-card-body,
.category-card-body {
  position: relative;
  z-index: 1;
  padding: 1.45rem;
  gap: 0.9rem;
}

.category-card-body {
  align-items: flex-start;
  text-align: left;
}

.service-card-title,
.category-card h3 {
  font-size: 1.18rem;
  letter-spacing: -0.03em;
  color: var(--navy-800);
}

.service-card-desc,
.category-card p,
.step-item p,
.about-content p,
.footer-contact p,
.partnership-card p,
.legal-page p,
.legal-page ul {
  color: #566987;
}

.service-card .btn-sm,
.category-card .btn {
  margin-top: auto;
}

.category-card .btn {
  align-self: flex-start;
}

.how-it-works {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0)),
    transparent;
}

.steps-list {
  gap: 1.5rem;
}

.step-item {
  position: relative;
  padding: 1.6rem;
  border-radius: 24px;
  text-align: left;
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

.step-icon {
  width: 72px;
  height: 72px;
  margin: 0 0 1.25rem;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(120, 163, 221, 0.18), rgba(16, 50, 91, 0.08));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.step-icon svg {
  width: 34px;
  height: 34px;
}

.how-it-works .video-box {
  padding: 0.75rem;
}

.about-wrapper {
  max-width: 980px;
  padding: 2.4rem;
  border-radius: 32px;
}

.about-geometry {
  inset: -10% -4% auto auto;
}

.about-content {
  max-width: 680px;
}

.cta-section {
  padding: 4rem 1.5rem;
  background:
    radial-gradient(circle at 20% 30%, rgba(120, 163, 221, 0.26), transparent 24%),
    linear-gradient(135deg, #061830 0%, #0a2540 55%, #123560 100%);
}

.cta-section h2 {
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.site-footer {
  background:
    radial-gradient(circle at 85% 15%, rgba(60, 121, 188, 0.18), transparent 24%),
    linear-gradient(180deg, #061830 0%, #04101f 100%);
  padding-top: 4rem;
}

.footer-top {
  grid-template-columns: minmax(240px, 1.1fr) minmax(180px, 0.8fr) minmax(280px, 1fr);
  gap: 3rem;
}

.footer-logo img {
  max-height: 58px;
}

.footer-tagline {
  max-width: 280px;
  line-height: 1.8;
}

.footer-social a {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-social a:hover {
  color: #fff;
  background: rgba(120, 163, 221, 0.16);
  border-color: rgba(120, 163, 221, 0.36);
}

.footer-bottom {
  align-items: flex-start;
  border-top-color: rgba(255, 255, 255, 0.08);
}

.form-section {
  padding: 4rem 0 5.5rem;
}

.form-page-intro {
  max-width: 760px;
  margin: 0 auto 1.8rem;
  text-align: center;
}

.form-page-eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0 0 1rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(16, 50, 91, 0.06);
  border: 1px solid rgba(16, 50, 91, 0.08);
  color: var(--navy-700);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.form-page-title {
  margin: 0 0 0.75rem;
  color: var(--navy-800);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.form-page-subtitle {
  margin: 0;
  color: #536884;
  font-size: 1rem;
}

.form-card {
  max-width: 840px;
  padding: 2rem;
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 255, 0.95));
}

.form-card::before {
  left: 24px;
  right: 24px;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(16, 50, 91, 0.14), rgba(120, 163, 221, 0.8), rgba(16, 50, 91, 0.14));
}

.form-content-shell {
  position: relative;
}

.form-progress {
  margin-bottom: 1.8rem;
}

.form-progress-track {
  position: relative;
  height: 6px;
  margin-bottom: 1.1rem;
  border-radius: 999px;
  background: rgba(16, 50, 91, 0.08);
  overflow: hidden;
}

.form-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(16, 50, 91, 0.86), rgba(120, 163, 221, 0.8));
  transition: width var(--transition-slow);
}

.form-progress-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.form-progress-step {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: #8191a8;
  transition: color var(--transition-fast);
}

.form-progress-step.active,
.form-progress-step.completed {
  color: var(--navy-800);
}

.form-progress-number {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(16, 50, 91, 0.12);
  background: rgba(255, 255, 255, 0.78);
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.form-progress-step.active .form-progress-number,
.form-progress-step.completed .form-progress-number {
  color: #fff;
  border-color: rgba(16, 50, 91, 0.8);
  background: linear-gradient(180deg, rgba(16, 50, 91, 0.96), rgba(33, 81, 139, 0.92));
}

.form-progress-label {
  font-size: 0.94rem;
  font-weight: 600;
}

.form-step-heading {
  margin-bottom: 1.8rem;
}

.form-step-kicker {
  display: inline-flex;
  margin-bottom: 0.8rem;
  color: var(--navy-600);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-step-description {
  margin: 0;
  color: #5d718d;
  font-size: 0.98rem;
  line-height: 1.7;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  font-weight: 600;
  color: var(--navy-800);
  margin-bottom: 0.55rem;
}

.form-group input,
.form-group select,
.form-group textarea,
.service-option-btn {
  border-radius: 16px;
  border-color: rgba(16, 50, 91, 0.1);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.95rem 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(33, 81, 139, 0.72);
  box-shadow: 0 0 0 4px rgba(120, 163, 221, 0.14);
}

.form-phone-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: stretch;
}

.form-phone-row .form-phone-pais {
  flex: 0 0 auto;
  min-width: 7.5rem;
}

.form-phone-row .form-phone-ddd {
  flex: 0 0 4.5rem;
  max-width: 5.5rem;
}

.form-phone-row .form-phone-num {
  flex: 1 1 10rem;
  min-width: 8rem;
}

.checkbox-group {
  gap: 0.8rem;
}

.checkbox-item {
  min-height: 48px;
  padding: 0.8rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(16, 50, 91, 0.1);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

.service-option-btn {
  padding: 1rem 1.1rem;
  font-weight: 600;
  color: #173355;
  transition:
    transform var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast);
}

.service-option-btn:hover,
.service-option-btn.selected {
  transform: translateY(-2px);
  border-color: rgba(33, 81, 139, 0.34);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(227, 239, 255, 0.88));
  box-shadow: 0 16px 30px rgba(8, 25, 46, 0.12);
}

.form-error {
  padding: 0.95rem 1rem;
  border: 1px solid rgba(220, 38, 38, 0.18);
  border-radius: 16px;
  background: rgba(254, 242, 242, 0.96);
}

.form-group.field-error > label {
  color: #b91c1c;
}

.form-group.field-error input,
.form-group.field-error select,
.form-group.field-error textarea {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.35);
}

.form-group.field-error .form-phone-row input,
.form-group.field-error .form-phone-row select {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.35);
}

.checkbox-group.field-error {
  outline: 2px solid rgba(220, 38, 38, 0.45);
  border-radius: 16px;
  padding: 0.35rem 0.5rem;
}

.confirmation-page,
.legal-page {
  position: relative;
}

.partnership-card,
.partnership-cta {
  border-radius: 26px;
}

.legal-page {
  max-width: 860px;
}

.legal-page h1,
.confirmation-page h1 {
  letter-spacing: -0.03em;
}

@media (max-width: 1180px) {
  .hero-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-title {
    max-width: 11.5ch;
  }

  .hero-visual {
    min-height: 520px;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 0.85rem 1rem;
  }

  .header-nav {
    top: 72px;
    background: rgba(247, 250, 255, 0.96);
    backdrop-filter: blur(20px);
  }

  main {
    padding-top: 78px;
  }

  .section {
    padding: 4.2rem 0;
  }

  .hero {
    min-height: auto;
    padding: 2rem 0 3rem;
  }

  .hero-title {
    max-width: none;
    font-size: clamp(2.4rem, 12vw, 3.8rem);
  }

  .hero-description {
    max-width: none;
  }

  .hero-buttons,
  .hero-service-chips {
    justify-content: flex-start;
  }

  .hero-visual {
    min-height: 420px;
  }

  .hero-panel-main {
    left: 4%;
    width: calc(100% - 8%);
  }

  .hero-panel-top,
  .hero-panel-side,
  .hero-panel-bottom {
    width: 190px;
  }

  .hero-panel-top {
    right: 4%;
  }

  .hero-panel-side {
    top: 44%;
    right: 1%;
  }

  .hero-panel-bottom {
    left: 8%;
  }

  .hero-stack {
    right: 8%;
    width: 180px;
  }

  .services-grid,
  .categories-grid,
  .categories-grid-compact,
  .steps-list,
  .partnership-blocks {
    grid-template-columns: 1fr;
  }

  .footer-top,
  .form-progress-steps {
    grid-template-columns: 1fr;
  }

  .form-progress-step {
    justify-content: flex-start;
  }

  .form-card {
    padding: 1.4rem;
  }

  .about-wrapper {
    padding: 1.5rem;
  }
  .how-it-works .video-box {
    padding: 0.5rem;
  }
}

@media (max-width: 480px) {
  .hero-buttons,
  .hero-service-chips {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-chip,
  .hero-buttons .btn,
  .category-card .btn,
  .service-card .btn-sm,
  .form-card .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-visual {
    min-height: 360px;
  }

  .hero-panel-main {
    top: 8%;
  }

  .hero-panel-top,
  .hero-panel-side,
  .hero-panel-bottom {
    display: none;
  }

  .hero-stack {
    right: 10%;
    bottom: 12%;
  }

  .step-item,
  .service-card-body,
  .category-card-body {
    padding: 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-panel,
  .hero-stack,
  .hero-orbit,
  .service-card,
  .category-card,
  .step-item,
  .btn,
  .hero-chip,
  .service-option-btn {
    transition: none !important;
    animation: none !important;
  }
}

/* ============================================
   IndEngix - Correção de direção visual
   ============================================ */

.btn {
  min-height: 50px;
  border-radius: 999px;
  box-shadow: none;
}

.btn-primary {
  background: #0a2540;
  color: #ffffff;
  box-shadow: none;
}

.btn-primary:hover {
  background: #ffffff;
  color: #0a2540;
  box-shadow: none;
}

.btn-secondary {
  background: #ffffff;
  color: #0a2540;
  border: 1px solid rgba(10, 37, 64, 0.12);
}

.btn-secondary:hover {
  background: #f6f9fc;
  color: #0a2540;
}

.site-header {
  background: rgba(248, 251, 255, 0.92);
}

.hero {
  min-height: calc(100vh - 88px);
  padding: 2.5rem 0 4rem;
  background: #04101f;
}

.hero::before,
.hero::after,
.hero-glow,
.hero-visual,
.hero-panel,
.hero-stack,
.hero-orbit {
  display: none !important;
}

.hero-layout.hero-layout-modern {
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  align-items: center;
  gap: 3rem;
}

.hero-copy {
  max-width: 760px;
}

.hero-eyebrow {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
}

.hero-title {
  max-width: 12ch;
  font-size: clamp(3rem, 6vw, 5.2rem);
  line-height: 0.95;
}

.hero-description {
  max-width: 620px;
  color: rgba(232, 241, 255, 0.84);
}

.hero-buttons {
  margin-bottom: 1.4rem;
}

.hero .btn-primary {
  background: linear-gradient(135deg, #061830 0%, #0a2540 50%, #0069c0 100%);
  color: #ffffff;
  box-shadow: none;
}

.hero .btn-primary:hover {
  background: #ffffff;
  color: #0a2540;
}

.hero .btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.hero .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.hero-service-chips {
  gap: 0.7rem;
}

.hero-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  backdrop-filter: blur(0);
  box-shadow: none;
}

.hero-chip:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

.hero-request-card {
  padding: 1.4rem;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  box-shadow: 0 24px 64px rgba(4, 16, 31, 0.34);
  backdrop-filter: blur(18px);
}

.hero-request-card-top {
  margin-bottom: 1.25rem;
}

.hero-request-kicker {
  display: inline-block;
  margin-bottom: 0.65rem;
  color: rgba(232, 241, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-request-card h2 {
  margin: 0 0 0.6rem;
  color: #ffffff;
  font-size: 1.9rem;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-request-card p {
  margin: 0;
  color: rgba(232, 241, 255, 0.72);
  line-height: 1.7;
}

.hero-request-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.hero-request-option {
  display: block;
  padding: 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(10, 37, 64, 0.08);
  color: #0a2540;
  box-shadow: 0 16px 30px rgba(8, 25, 46, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-request-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(8, 25, 46, 0.16);
}

.hero-request-option strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

.hero-request-option span {
  display: block;
  color: #5a6d8a;
  font-size: 0.9rem;
  line-height: 1.55;
}

.services-showcase {
  padding-top: 5rem;
  padding-bottom: 0;
  overflow: visible;
}

.services-showcase .container {
  overflow: visible;
}

.services-showcase .container {
  overflow: visible;
}

.services-showcase-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
}

.services-showcase-heading .section-subtitle {
  margin: 0.7rem 0 0;
  text-align: left;
}

.services-carousel-controls {
  display: flex;
  gap: 0.75rem;
}

.services-arrow {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(10, 37, 64, 0.12);
  border-radius: 999px;
  background: #ffffff;
  color: #0a2540;
  box-shadow: 0 12px 24px rgba(8, 25, 46, 0.08);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.services-arrow:hover {
  transform: translateY(-2px);
  background: #f5f8fc;
  box-shadow: 0 16px 28px rgba(8, 25, 46, 0.12);
}

.services-carousel {
  overflow: visible;
  perspective: 1200px;
  padding: 1rem 2.5rem 0;
}

/* Wrapper com scroll: evita que overflow-x na track corte o efeito 3D nos cards */
.services-scroll-wrapper {
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 0.75rem 1.5rem 0;
  -webkit-overflow-scrolling: touch;
}
.services-scroll-wrapper::-webkit-scrollbar {
  display: none;
}

.services-track .service-card {
  transform-style: preserve-3d;
  transition: none;
  will-change: transform;
  backface-visibility: hidden;
}

.services-track .service-card:hover {
  transition: transform 0.35s ease;
}

/* Efeito de inclinação 3D: tilt-left = lado esquerdo para dentro, tilt-right = lado direito para dentro
   perspective() no próprio elemento evita flattening por overflow no ancestor */
.services-track .service-card.tilt-left {
  transform: perspective(800px) rotateY(-18deg) !important;
}

.services-track .service-card.tilt-right {
  transform: perspective(800px) rotateY(18deg) !important;
}

.services-track .service-card.tilt-left:hover {
  transform: perspective(800px) rotateY(-18deg) translateY(-6px) !important;
}

.services-track .service-card.tilt-right:hover {
  transform: perspective(800px) rotateY(18deg) translateY(-6px) !important;
}

.services-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2.4rem) / 3);
  gap: 1.2rem;
  overflow: visible;
  padding: 0.5rem 2.5rem 0;
}

.service-slide {
  scroll-snap-align: start;
}

.service-card,
.category-card {
  border-radius: 26px;
  background: #ffffff;
  border: 1px solid rgba(10, 37, 64, 0.08);
  box-shadow: 0 18px 38px rgba(8, 25, 46, 0.08);
}

.service-card::before,
.category-card::before,
.service-card::after,
.category-card::after {
  display: none;
}

.service-card:hover,
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 46px rgba(8, 25, 46, 0.12);
}

.service-card-image-wrap,
.category-card-image-wrap {
  background: #dbe8f8;
}

.service-card-image-wrap::after,
.category-card-image-wrap::after {
  background: linear-gradient(180deg, transparent 40%, rgba(7, 25, 45, 0.14) 100%);
}

.service-card-body,
.category-card-body {
  padding: 1.3rem;
}

.service-card-title,
.category-card h3 {
  font-size: 1.25rem;
}

.service-card .btn-sm {
  width: 100%;
}

.category-card-body {
  text-align: left;
}

.category-card .btn {
  width: 100%;
}

@media (max-width: 1100px) {
  .hero-layout.hero-layout-modern {
    grid-template-columns: 1fr;
  }

  .hero-title {
    max-width: none;
  }

  .hero-request-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-track {
    grid-auto-columns: calc((100% - 1.2rem) / 2);
  }
}

@media (max-width: 768px) {
  .hero {
    padding-top: 2rem;
  }

  .hero-title {
    font-size: clamp(2.5rem, 12vw, 3.9rem);
  }

  .hero-request-grid,
  .services-showcase-heading {
    grid-template-columns: 1fr;
  }

  .services-showcase-heading {
    display: grid;
  }

  /* Serviços mais pedidos: 3 cards visíveis no mobile, área de corte mais ampla */
  .services-carousel {
    padding: 0.5rem 0.5rem 0;
  }

  .services-scroll-wrapper {
    padding: 0.5rem 0.25rem 0;
  }

  .services-track {
    grid-auto-columns: calc((100% - 0.8rem) / 2);
    gap: 0.8rem;
    padding: 0.5rem 0.5rem 0;
  }
}

@media (max-width: 520px) {
  .hero-request-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Refino visual da home
   ============================================ */

.home-page main {
  padding-top: 0;
}

.home-page .site-header {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

.home-page .site-header .header-nav a,
.home-page .site-header .menu-toggle {
  color: rgba(255, 255, 255, 0.88);
}

.home-page .site-header .header-nav a::after {
  background: rgba(255, 255, 255, 0.94);
}

.home-page .site-header.site-header-scrolled {
  background: rgba(247, 250, 255, 0.94);
  border-bottom-color: rgba(16, 50, 91, 0.1);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 40px rgba(7, 25, 45, 0.08);
}

.home-page .site-header.site-header-scrolled .header-nav a,
.home-page .site-header.site-header-scrolled .menu-toggle {
  color: #153153;
}
.home-page .site-header.site-header-scrolled .header-nav a.btn-download {
  color: var(--white) !important;
}

.home-page .site-header.site-header-scrolled .header-nav a::after {
  background: rgba(33, 81, 139, 0.9);
}

.home-page .hero {
  min-height: 100vh;
  padding-top: 7.6rem;
}

.home-page .hero-layout.hero-layout-modern {
  align-items: start;
}

.hero-copy {
  padding-top: 1.2rem;
}

.hero-title {
  margin-top: 0;
}

.hero-description {
  margin-bottom: 1.8rem;
}

.hero-buttons {
  margin-bottom: 0;
}

.btn {
  min-height: 52px;
  padding: 0.9rem 1.35rem;
  border-radius: 18px 7px 18px 7px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.service-card .btn-primary {
  background: #0069c0;
  color: var(--white);
  box-shadow: none;
}

.category-card .btn-primary,
.cta-section .btn-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: none;
}

.hero .btn-primary {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, #0069c0 100%);
  color: var(--white);
  box-shadow: none;
}

.hero .btn-primary:hover,
.service-card .btn-primary:hover,
.category-card .btn-primary:hover,
.cta-section .btn-primary:hover {
  color: var(--navy);
  border: 2px solid var(--navy);
  box-shadow: none;
}

.hero .btn-primary:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--navy);
}

.service-card .btn-primary:hover,
.category-card .btn-primary:hover,
.cta-section .btn-primary:hover {
  background: var(--white);
}

.hero .btn-secondary {
  border-radius: 18px 7px 18px 7px;
}

.hero-request-card {
  position: relative;
  overflow: hidden;
  padding: 1.55rem;
  border-radius: 30px 10px 30px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05)),
    linear-gradient(180deg, rgba(19, 58, 99, 0.44), rgba(8, 23, 40, 0.22));
  box-shadow: 0 32px 90px rgba(4, 16, 31, 0.34);
}

.hero-request-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 112px;
  height: 112px;
  background: linear-gradient(135deg, rgba(120, 163, 221, 0.5), rgba(120, 163, 221, 0));
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  pointer-events: none;
}

.hero-request-card h2 {
  max-width: 12ch;
}

.hero-request-grid {
  gap: 1rem;
}

.hero-request-option {
  position: relative;
  overflow: hidden;
  padding: 1.05rem 1rem 1rem;
  border-radius: 18px 6px 18px 6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 255, 0.94));
  border: 1px solid rgba(10, 37, 64, 0.08);
}

.hero-request-option::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, rgba(22, 58, 97, 0.3), rgba(80, 133, 205, 0.95), rgba(22, 58, 97, 0.3));
}

.services-showcase-heading {
  margin-bottom: 0.75rem;
}

.services-arrow {
  border-radius: 16px 6px 16px 6px;
}

.service-card,
.category-card,
.step-item,
.video-box,
.about-wrapper,
.form-card,
.partnership-card {
  border-radius: 28px 10px 28px 10px;
}

.service-card,
.category-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(10, 37, 64, 0.09);
  box-shadow: 0 24px 50px rgba(8, 25, 46, 0.08);
}

.service-card::before,
.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 86px;
  height: 86px;
  display: block;
  background: linear-gradient(135deg, rgba(120, 163, 221, 0.42), rgba(120, 163, 221, 0));
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  pointer-events: none;
  z-index: 2;
}

.service-card::after,
.category-card::after {
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 4px;
  display: block;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, rgba(16, 50, 91, 0.1), rgba(120, 163, 221, 0.82), rgba(16, 50, 91, 0.1));
}

.service-card-image-wrap,
.category-card-image-wrap {
  aspect-ratio: 16 / 11;
  position: relative;
  background: #dbe8f8;
}

.service-card-image-wrap::before,
.category-card-image-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 16, 31, 0.05), rgba(5, 16, 31, 0.32)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 35%);
  z-index: 1;
}

.service-card-image,
.category-card-image {
  filter: saturate(1.08) contrast(1.04);
}

.service-card-body,
.category-card-body {
  position: relative;
  z-index: 3;
  padding: 1.4rem;
}

.service-card-kicker {
  margin: 0;
  color: #4c6f99;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-card-title,
.category-card h3 {
  margin-top: 0.1rem;
  font-size: 1.22rem;
  letter-spacing: -0.03em;
}

.service-card-desc,
.category-card p {
  line-height: 1.7;
}

.service-card .btn-sm,
.category-card .btn {
  width: 100%;
}

.how-it-works {
  position: relative;
  overflow: hidden;
  padding-top: 6rem;
}

.how-it-works::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 220px;
  background:
    radial-gradient(circle at 14% 40%, rgba(120, 163, 221, 0.16), transparent 18%),
    radial-gradient(circle at 84% 20%, rgba(120, 163, 221, 0.12), transparent 20%);
  pointer-events: none;
}

.flow-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 2rem;
  padding: 1.7rem 1.8rem;
  border: 1px solid rgba(120, 163, 221, 0.18);
  border-radius: 26px 8px 26px 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 249, 255, 0.84));
  box-shadow: 0 20px 44px rgba(8, 25, 46, 0.06);
}

.flow-intro-kicker {
  margin: 0 0 0.65rem;
  color: #4c6f99;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.flow-intro h3 {
  margin: 0 0 0.65rem;
  color: var(--navy-800);
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.flow-intro-copy p:last-child {
  margin: 0;
  color: #566987;
  line-height: 1.8;
}

.flow-intro-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.flow-intro-pillars span {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0.7rem 0.95rem;
  border: 1px solid rgba(10, 37, 64, 0.08);
  border-radius: 14px 6px 14px 6px;
  background: #ffffff;
  color: #0a2540;
  font-weight: 600;
}

.process-rail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr) 32px minmax(0, 1fr) 32px minmax(0, 1fr) 32px minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
  margin-bottom: 3rem;
}

.process-card {
  position: relative;
  padding: 1.55rem;
  border: 1px solid rgba(120, 163, 221, 0.18);
  border-radius: 26px 8px 26px 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 255, 0.94));
  box-shadow: 0 24px 52px rgba(8, 25, 46, 0.08);
}

.process-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), transparent 28%);
  pointer-events: none;
}

.process-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  height: 34px;
  margin-bottom: 1rem;
  border: 1px solid rgba(10, 37, 64, 0.08);
  border-radius: 12px 4px 12px 4px;
  background: rgba(10, 37, 64, 0.04);
  color: #0a2540;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.process-card .step-icon {
  border-radius: 20px 6px 20px 6px;
}

.process-card h4 {
  margin: 0 0 0.6rem;
  font-size: 1.08rem;
  letter-spacing: -0.03em;
}

.process-card p {
  margin: 0 0 1rem;
  line-height: 1.72;
}

.process-points {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-points li {
  position: relative;
  padding-left: 1rem;
  color: #4d617f;
  font-size: 0.9rem;
  line-height: 1.6;
}

.process-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #5185cd;
}

.process-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-arrow span {
  position: relative;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(81, 133, 205, 0.15), rgba(81, 133, 205, 0.9));
}

.process-arrow span::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -1px;
  width: 10px;
  height: 10px;
  border-top: 2px solid #5185cd;
  border-right: 2px solid #5185cd;
  transform: translateY(-50%) rotate(45deg);
}

.video-box {
  border-radius: 30px 10px 30px 10px;
}

@media (max-width: 1100px) {
  .flow-intro {
    grid-template-columns: 1fr;
  }

  .flow-intro-pillars {
    justify-content: flex-start;
  }

  .process-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-arrow {
    display: none;
  }
}

@media (max-width: 768px) {
  .home-page .hero {
    padding-top: 6.5rem;
  }

  .hero-request-card h2 {
    max-width: none;
  }

  .process-rail,
  .flow-intro {
    grid-template-columns: 1fr;
  }
}
