/* =================================================================
   ARQUIVO: css/index.css (VERSÃO FINAL COM NOVO RODAPÉ)
   ================================================================= */

/* ------------------- VARIÁVEIS GLOBAIS E ESTILOS BASE ------------------- */
:root {
  --primary-color: #0e0c3c;
  --secondary-color: #16135b;
  --accent-color: #2c5a8f;
  --text-color: #333;
  --light-gray: #f8f9fa;
  --dark-gray: #495057;
  --white: #ffffff;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
  --container-width: 1400px;
  --header-height: 80px;
  --card-bg: linear-gradient(135deg, #012f5a 0%, #2c69ae 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--white);
  font-size: 102%;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Open Sans', sans-serif; color: var(--primary-color); }
main { padding-top: var(--header-height); }
section { padding: 5rem 5%; max-width: var(--container-width); margin: 0 auto; position: relative; }

.section-heading { text-align: center; margin-bottom: 3rem; }
.section-heading h2 { font-size: 2.5rem; margin-bottom: 1rem; position: relative; display: inline-block; }
.section-heading h2::after { content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); width: 80px; height: 3px; background-color: var(--accent-color); }

.grid { display: grid; gap: 2rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

/* ------------------- CABEÇALHO ------------------- */
.site-header { background-color: var(--white); box-shadow: var(--shadow); position: fixed; width: 100%; top: 0; z-index: 1000; transition: var(--transition); }
.header-content { display: flex; justify-content: space-between; align-items: center; padding: 0 20px; height: var(--header-height); max-width: 100vw; margin: 0 auto; }
.logo { width: 150px; height: 52px; background: transparent url(../assets/index/logo_topco.png) no-repeat center center; background-size: 100%; cursor: pointer; }
.main-nav .nav-list { display: flex; list-style: none; gap: 0rem; }
.main-nav .nav-list a { color: var(--primary-color); text-decoration: none; font-size: 0.9rem; font-weight: 500; padding: 0.5rem 1rem; position: relative; }
.main-nav .nav-list a::after { content: ''; position: absolute; bottom: -2px; left: 50%; width: 0; height: 2px; background: var(--accent-color); transition: var(--transition); transform: translateX(-50%); }
.main-nav .nav-list a:hover::after, .main-nav .nav-list a.active::after { width: 100%; }
.main-nav .nav-list a:hover, .main-nav .nav-list a.active { color: var(--accent-color); }
.mobile-menu-btn { display: none; background: none; border: none; font-size: 1.5rem; color: var(--primary-color); cursor: pointer; z-index: 1001; }
.mobile-menu-btn .fa-times { display: none; }

/* ------------------- BOTÕES ------------------- */
.cta-button { display: inline-flex; align-items: center; justify-content: center; padding: 14px 28px; text-decoration: none; border-radius: var(--border-radius); font-weight: 600; font-size: 1rem; transition: var(--transition); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); border: 2px solid transparent; cursor: pointer; }
.cta-button.primary { background-color: var(--accent-color); color: var(--white); }
.cta-button.secondary { background-color: rgba(255,255,255,0.1); color: var(--white); border-color: rgba(255, 255, 255, 0.3); backdrop-filter: blur(5px); }
.cta-button:hover { transform: translateY(-3px); box-shadow: 0 6px 15px rgba(44, 90, 143, 0.25); filter: brightness(1.1); }
.cta-button i { margin-left: 0.75rem; }

/* ------------------- SEÇÃO HERO ------------------- */
.hero { min-height: 90vh; background: linear-gradient(135deg, #1c3f60 0%, #2c5a8f 100%); overflow: hidden; padding: 80px 0%; display: flex; align-items: center; position: relative; }
.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: transparent url(../assets/index/paper_topco.gif) no-repeat center center; opacity: 0.3; background-size: cover; }
.hero-content { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; color: white; z-index: 2; position: relative; }
.badge { display: inline-flex; align-items: center; padding: 8px 16px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 50px; margin-bottom: 24px; }
.badge i { margin-right: 8px; color: var(--white); }
.hero-text h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.2; margin-bottom: 24px; color: var(--white); font-weight: 700; }
.hero-text p { font-size: 1.5rem; line-height: 1.8; color: rgba(255, 255, 255, 0.9); margin-bottom: 40px; }
.cta-group { display: flex; gap: 20px; }
.circle-animation { position: relative; width: 400px; height: 400px; margin: 0 auto; }
.circle { position: absolute; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.1); }
.circle-1 { width: 100%; height: 100%; animation: rotate 20s linear infinite; }
.circle-2 { width: 80%; height: 80%; top: 10%; left: 10%; animation: rotate 15s linear infinite reverse; }
.circle-3 { width: 60%; height: 60%; top: 20%; left: 20%; animation: rotate 10s linear infinite; }
.floating-shape { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 200px; height: 200px; background: url("../assets/index/logo_topco.png") no-repeat center center; background-size: 100%; animation: float 6s ease-in-out infinite; }
.hero-text { max-width: 95vw; margin: 0 2.5vw; }

/* ------------------- SEÇÃO STATS ------------------- */
#stats { background: var(--light-gray); }
.stats-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.stat-card { background: var(--white); border: 1px solid #e0e0e0; border-radius: var(--border-radius); padding: 30px; text-align: center; transition: var(--transition); }
.stat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.stat-icon { font-size: 2.5rem; color: var(--accent-color); margin-bottom: 1rem; }
.stat-content { display: flex; justify-content: center; align-items: baseline; }
.stat-number { font-size: 2.5rem; font-weight: 700; color: var(--primary-color); }
.stat-suffix { font-size: 1.5rem; font-weight: 700; color: var(--primary-color); margin-left: 2px; }
.stat-label { color: var(--dark-gray); font-size: 1.1rem; margin-top: 0.5rem; }

/* ------------------- CARD GENÉRICO ------------------- */
.card { background: var(--card-bg); padding: 2.5rem; border-radius: var(--border-radius); box-shadow: var(--shadow); transition: var(--transition); color: var(--white); display: flex; flex-direction: column; }
.card:hover { transform: translateY(-5px); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12); }
.card i { font-size: 2.5rem; margin-bottom: 1.5rem; color: var(--white); }
.card h3 { color: var(--white); }

/* ------------------- SEÇÃO PARCEIROS (ÓRBITA) ------------------- */
#parceiros { padding-bottom: 8rem; overflow: hidden; }
.partners-orbit-container {
    position: relative;
    height: fit-content;
    display: flex;
    justify-content: center;
    align-items: center;
}
.partner-orbit-scene {
    position: absolute;
    width: 100%;
    height: 100%;
    perspective: 400px;
}
.partner-orbit {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: orbitRotate 20s linear infinite;
}
.partner-orbit:hover { animation-play-state: paused; }
.partner-satellite {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 120px;
    margin-top: -50px;
    margin-left: -50px;
    transform-style: preserve-3d;
    transform: rotateY(var(--angle)) translateZ(250px);
}
.partner-logo {
    width: 100%;
    height: 100%;
    background-color: var(--white);
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background-size: 70%;
    background-position: center;
    background-repeat: no-repeat;
    animation: counter-rotate 20s linear infinite;
    transition: var(--transition);
}
.partner-satellite:hover .partner-logo {
    transform: scale(1.2);
    box-shadow: 0 10px 25px rgba(44, 90, 143, 0.3);
}
.partner-orbit-core {
    width: 270px;
    height: 270px;
    border-radius: 50%;
    background: var(--light-gray);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.1);
}
.core-logo { width: 80%; }



/* ------------------- SEÇÃO BANNER PRODUTOS ------------------- */
.produtos-section { height: 60vh; min-height: 560px; display: flex; justify-content: center; align-items: center; overflow: hidden; padding: 0; }
.produtos-background { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: url('../assets/index/nexthub_machine.gif') no-repeat center center; background-size: cover; z-index: 0; }
.produtos-section::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(14, 12, 60, 0.6); z-index: 1; }
.produtos-content { position: relative; z-index: 2; text-align: center; color: var(--white); padding: 20px; }
.produtos-content h2 { font-size: 3rem; margin-bottom: 20px; color: var(--white); }
.produtos-content p { font-size: 1.5rem; margin-bottom: 30px; color: rgba(255, 255, 255, 0.9); }
#produtos .cta-button { background: rgba(255,255,255,0.1); color: white; border: 2px solid white; }

/* ------------------- SEÇÃO SERVIÇOS ------------------- */
#servicos-especializados { background-color: var(--light-gray); }

.service-card-v2 {
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  cursor: pointer;
  height: 280px;
  perspective: 1000px;
  position: relative;
}

.service-front, .service-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden; /* Essencial para o efeito flip */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.service-front {
  background: var(--white);
  color: var(--primary-color);
  /* A frente começa virada para o usuário */
  transform: rotateY(0deg);
}

.service-back {
  background: var(--card-bg);
  color: var(--white);
  /* O verso começa "de costas", invisível */
  transform: rotateY(180deg);
}

/* EFEITO DE FLIP NO DESKTOP (COM MOUSE) */
@media (hover: hover) {
  .service-card-v2:hover .service-front {
    transform: rotateY(-180deg);
  }
  .service-card-v2:hover .service-back {
    transform: rotateY(0deg);
  }
}

/* CLASSE QUE O JAVASCRIPT VAI USAR PARA O FLIP NO MOBILE */
.service-card-v2.is-flipped .service-front {
  transform: rotateY(-180deg);
}
.service-card-v2.is-flipped .service-back {
  transform: rotateY(0deg);
}


.service-icon {
  width: 70px;
  height: 70px;
  background: var(--light-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.service-icon i {
  font-size: 2.2rem;
  color: var(--primary-color);
}

.service-front h3 {
  font-size: 1.3rem;
  text-align: center;
}

.service-back h4 {
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.service-back p {
  font-size: 1rem;
  color: rgba(255,255,255,0.9);
  text-align: center;
}

/* ------------------- SEÇÃO CONTATO ------------------- */
#contato { background: var(--primary-color); }
.contact-wrapper { max-width: 900px; background: var(--white); border-radius: var(--border-radius); box-shadow: 0 10px 40px rgba(0,0,0,0.2); padding: 3rem; margin: 0 auto; }
.contact-header { text-align: center; margin-bottom: 2rem; }
.contact-header h2 { font-size: 2.2rem; }
.contact-body { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.contact-details { display: flex; flex-direction: column; gap: 1rem; border-bottom: 1px solid #eee; padding-bottom: 2rem; }
.contact-detail-item { display: flex; align-items: center; gap: 1rem; color: var(--dark-gray); }
.contact-detail-item i { color: var(--accent-color); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-group input, .form-group textarea { width: 100%; padding: 1rem; font-family: 'Open Sans', sans-serif; border: 1px solid #ccc; border-radius: var(--border-radius); font-size: 1rem; }
.contact-form .submit-btn { width: 100%; margin-top: 1rem; }
#form-feedback { display: none; text-align: center; margin-top: 1rem; padding: 1rem; border-radius: var(--border-radius); background: #d4edda; color: #155724; }

/* ------------------- NOVO RODAPÉ INOVADOR ------------------- */
.site-footer-v2 {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 4rem 5% 2rem 5%;
    position: relative;
    overflow: hidden;
}
.footer-bg-map {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('../assets/index/img_map_footer_topco.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.05;
    z-index: 1;
}
.footer-content-wrapper {
    max-width: var(--container-width);
    margin: 0 auto;
    position: relative;
    z-index: 2;
}
.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand-info .logo { margin-bottom: 1.5rem; }
.footer-brand-info p {
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
    max-width: 450px;
    margin-bottom: 1.5rem;
}
.footer-contact-details a {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--white);
    text-decoration: none;
    margin-bottom: 1rem;
    transition: var(--transition);
}
.footer-contact-details a:hover { color: var(--accent-color); }
.footer-contact-details i { width: 20px; }
.footer-map-container iframe {
    width: 100%;
    height: 100%;
    min-height: 250px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255,255,255,0.2);
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
}
.footer-nav a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    margin-right: 1.5rem;
    transition: var(--transition);
}
.footer-nav a:hover { color: var(--white); }
.footer-social-and-copy { display: flex; align-items: center; gap: 1.5rem; }
.social-links-footer { display: flex; gap: 1rem; }
.social-link { color: var(--white); text-decoration: none; font-size: 1.2rem; }
.copyright { color: rgba(255,255,255,0.6); font-size: 0.9rem; }


/* ------------------- ANIMAÇÕES GERAIS ------------------- */
/* ------------------- ANIMAÇÕES ------------------- */
@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translate(-50%, -50%); } 50% { transform: translate(-50%, -55%); } }
@keyframes orbitRotate { from { transform: rotateY(0deg); } to { transform: rotateY(360deg); } }
@keyframes counter-rotate { from { transform: rotateY(0deg); } to { transform: rotateY(-360deg); } }

/* ------------------- RESPONSIVIDADE ------------------- */
@media (max-width: 952px) {
  .mobile-menu-btn { display: block; position: fixed; right: 20px; top: 25px; }
  .main-nav { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(0,0,0,0.5); z-index: 999; transform: translateX(-100%); transition: transform 0.3s ease-in-out; }
  .main-nav.show { transform: translateX(0); }
  .main-nav .nav-list { flex-direction: column; background: var(--white); width: 80%; max-width: 300px; height: 100%; padding: 2rem; gap: 0; }
  .main-nav .nav-list a { color: var(--primary-color); border-bottom: 1px solid #eee; padding: 1rem 0; display: flex; }
  .hero .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { order: -1; margin-bottom: 2rem; }
  .cta-group { justify-content: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .contact-body, .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .footer-bottom { flex-direction: column-reverse; gap: 1.5rem; }
    .footer-nav { order: 2; }
}

@media (max-width: 600px) {
  .stats-grid, .grid-3 { grid-template-columns: 1fr; }
  .cta-group { flex-direction: column; }
}


/* ==========================================================
   ESTILOS PERSONALIZADOS PARA A BARRA DE ROLAGEM
   (Adicionar ao final de /css/index.css)
   ========================================================== */

/* Para navegadores baseados em WebKit (Chrome, Safari, Edge, etc.) */
::-webkit-scrollbar {
  width: 12px;  /* Largura da barra de rolagem vertical */
  height: 12px; /* Altura da barra de rolagem horizontal */
}

/* O fundo da barra de rolagem (a "pista" onde o polegar desliza) */
::-webkit-scrollbar-track {
  background: #eef2f5; /* Um tom de cinza azulado bem claro, combinando com o site */
}

/* O "polegar" (a parte que você arrasta) */
::-webkit-scrollbar-thumb {
  background-color: var(--accent-color); /* O azul de destaque da sua marca */
  border-radius: 20px; /* Deixa as bordas totalmente arredondadas */
  border: 3px solid #eef2f5; /* Cria um espaçamento elegante ao redor do polegar */
}

/* Efeito ao passar o mouse sobre o polegar */
::-webkit-scrollbar-thumb:hover {
  background-color: var(--secondary-color); /* Usa o azul mais escuro da marca no hover */
}

/* Para Firefox */
/* A especificação para Firefox é mais direta */
* {
  scrollbar-width: thin; /* Opções: 'auto', 'thin', 'none' */
  scrollbar-color: var(--accent-color) #eef2f5; /* Cor do polegar | Cor da pista */
}
.social-links-footer a {
  border-radius: 50%;
}
.social-links-footer a,
.footer-nav a {
  text-decoration: none;
  padding: 5px 10px;
  transition: all 0.3s ease;
}

.social-links-footer a {
  color: white;
  border: 1px solid transparent;
}

.social-links-footer a:hover {
  color: var(--accent-color);
  transform: scale(1.2);
  border-color: var(--accent-color);
  background-color: white;
}

.footer-nav a {
  border-bottom: 2px solid transparent;
}

.footer-nav a:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.footer-nav {
  display: flex;
  gap: 0.5rem;
}

@media (max-width: 777px) {
  .footer-nav {
    justify-content: center;
  }
}

@media (max-width: 436px) {
  .footer-nav {
    flex-direction: column;
  }
}
