@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --red: #C41E3A;
  --dark-red: #8B1538;
  --black: #1a1a1a;
  --gray: #555;
  --white: #ffffff;
  --light-gray: #f7f7f7;
  --transition: 0.3s ease;
  --font-main: 'Poppins', sans-serif;
  --font-modern: 'Inter', 'Poppins', sans-serif;
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
  --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.1);
  --shadow-strong: 0 15px 40px rgba(0, 0, 0, 0.15);
  --gradient-red: linear-gradient(135deg, #C41E3A 0%, #8B1538 100%);
  --gradient-dark: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  --gradient-light: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  --primary: #C41E3A;
  --transition-smooth: 0.3s ease;
}

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

body {
  font-family: var(--font-main);
  background-color: rgb(36, 8, 8);
  color: var(--black);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ==========================================
   HEADER E NAVEGAÇÃO
========================================== */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(196, 30, 58, 0.1);
}

.logo-navbar {
  height: 55px;
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.navbar-brand img {
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.navbar-nav .nav-link {
  color: #1a1a1a !important;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
  font-family: var(--font-modern);
  letter-spacing: 0.02em;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 50%;
  background: var(--gradient-red);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover {
  color: #C41E3A !important;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 80%;
}

.dropdown-menu {
  border-radius: 6px;
  min-width: 200px;
}

.dropdown-item {
  color: #333;
  transition: all 0.3s ease;
}

.dropdown-item:hover {
  background-color: #C41E3A;
  color: #fff;
}

.btn-danger {
  background: var(--gradient-red);
  border: none;
  border-radius: 25px;
  padding: 8px 20px;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
  transition: all 0.3s ease;
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(196, 30, 58, 0.4);
  background: var(--gradient-red);
}

/* ==========================================
   HERO SECTION
========================================== */
.hero {
  position: relative;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0)
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(196, 30, 58, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
  display: none !important;
}

.hero .carousel-item img {
  width: calc(90% - 4rem) !important;
  height: 600px !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  margin: 1rem auto 1rem auto !important;
  padding: 0px !important;
  display: block;
}

.hero .carousel-item {
  padding: 0 !important;
  overflow: hidden;
}

.hero .carousel-inner {
  padding-top: 3rem;
}

.carousel-item img {
  transition: transform 8s ease;
}

.carousel-item.active img {
  transform: scale(1.02);
}

.carousel-indicators [data-bs-target] {
  background-color: var(--red);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(196, 30, 58, 0.6);
  border: 2px solid white;
  transition: all 0.3s ease;
}

.carousel-indicators .active {
  background: #C41E3A;
  transform: scale(1.2);
  box-shadow: 0 0 10px rgba(196, 30, 58, 0.5);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(100%);
  width: 2rem;
  height: 2rem;
}

/* ==========================================
   SEÇÃO DE SOLUÇÕES
========================================== */
.solutions-section {
  padding: 5rem 0;
  background: var(--gradient-light);
  position: relative;
  overflow: hidden;
  margin: 3rem 0;
  box-shadow: 0 -10px 30px rgba(220, 20, 60, 0.08), 0 10px 30px rgba(0, 0, 0, 0.05);
}

.solutions-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, rgba(220, 20, 60, 0.1) 0%, transparent 70%);
  clip-path: polygon(100% 0%, 0% 100%, 100% 100%);
  pointer-events: none;
  animation: floatTriangle1 8s ease-in-out infinite;
}

.solutions-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 250px;
  height: 250px;
  background: linear-gradient(-45deg, rgba(0, 0, 0, 0.05) 0%, transparent 70%);
  clip-path: polygon(0% 0%, 0% 100%, 100% 100%);
  pointer-events: none;
  animation: floatTriangle2 10s ease-in-out infinite;
}

.solutions-section h2 {
  text-align: center;
  color: #333333;
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 4rem;
  line-height: 1.2;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
  position: relative;
  z-index: 10;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
  z-index: 5;
}

.solution-item {
  background: white;
  border-radius: 20px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(196, 30, 58, 0.1);
  backdrop-filter: blur(5px);
  animation: fadeInUp 0.6s ease forwards;
}

.solution-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-red);
  box-shadow: 0 0 20px rgba(196, 30, 58, 0.3);
}

.solution-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(196, 30, 60, 0.15);
  border-color: rgba(196, 30, 58, 0.3);
  cursor: pointer;
}

.solution-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(196, 30, 58, 0.1) 0%, rgba(196, 30, 58, 0.05) 100%);
  border-radius: 50%;
  transition: all 0.4s ease;
  border: 3px solid rgba(196, 30, 58, 0.1);
}

.solution-item:hover .solution-icon {
  background: linear-gradient(135deg, rgba(196, 30, 58, 0.15) 0%, rgba(196, 30, 58, 0.1) 100%);
  border-color: rgba(196, 30, 58, 0.3);
  transform: scale(1.1) rotate(5deg);
}

.solution-icon svg {
  width: 50px;
  height: 50px;
}

.solution-item h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #000000;
  margin-bottom: 1rem;
  line-height: 1.4;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.solution-item p {
  font-size: 0.95rem;
  color: #333333;
  margin-bottom: 2rem;
  line-height: 1.6;
  flex-grow: 2;
}

.btn-solution {
  display: inline-block;
  background: var(--gradient-red);
  color: white;
  padding: 12px 24px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: 2px solid #DC143C;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: auto;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.btn-solution::before {
  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.5s ease;
}

.btn-solution:hover {
  background: #B22222;
  border-color: #B22222;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(220, 20, 60, 0.3);
  color: white;
  text-decoration: none;
}

.btn-solution:hover::before {
  left: 100%;
}

/* ==========================================
   FOOTER CORRIGIDO
========================================== */
footer {
    background-color: #ffffff;
    color: #333333;
    padding: 40px 0 20px;
    border-top: 1px solid #e0e0e0;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 50px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto 30px auto;
}

.footer-section {
    flex: 0 0 auto;
    min-width: 180px;
}

.footer-section.logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 150px;
}

.footer-section.services-section,
.footer-section.partner-section {
    flex: 0 0 200px;
    text-align: left;
}

.footer-logo {
    max-width: 120px;
    height: auto;
    margin-bottom: 15px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.footer-section h3 {
    color: #333333;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    border-bottom: 2px solid #c70922;
    padding-bottom: 8px;
    display: inline-block;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #666666;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
}

.footer-section a:hover {
    color: #007bff;
}

.social-icons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    color: #666666;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.social-icons a:nth-child(1):hover {
    background-color: #1877f2;
    color: white;
    border-color: #1877f2;
}

.social-icons a:nth-child(2):hover {
    background-color: #e4405f;
    color: white;
    border-color: #e4405f;
}

.social-icons a:nth-child(3):hover {
    background-color: #0077b5;
    color: white;
    border-color: #0077b5;
}

.footer-bottom {
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
    text-align: center;
    color: #666666;
    font-size: 13px;
}

.footer-bottom p {
    margin: 5px 0;
}

/* ==========================================
   FOOTER ALTERNATIVO (caso precise)
========================================== */
.site-footer {
  background: var(--gradient-dark);
  color: var(--white);
  padding: 2rem 0;
  text-align: center;
  font-size: 0.95rem;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-red);
}

.site-footer a {
  color: var(--white);
  text-decoration: none;
  opacity: 0.85;
  margin: 0 0.4rem;
  transition: opacity var(--transition);
}

.site-footer a:hover {
  color: var(--red);
  opacity: 1;
}

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: rgba(196, 30, 58, 0.1);
  border-radius: 50%;
  line-height: 40px;
  text-align: center;
  margin: 0 5px;
  transition: all 0.3s ease;
  border: 1px solid rgba(196, 30, 58, 0.2);
  color: var(--white);
  font-weight: bold;
}

.social-links a:hover {
  background: var(--gradient-red);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(196, 30, 58, 0.3);
  color: var(--red);
}

/* ==========================================
   UTILITÁRIOS E INTERAÇÕES
========================================== */
.btn, .solution-item, .result-item, .contact-details li {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn:active {
  transform: scale(0.98);
}

.btn, .solution-item, .indicator, .contact-details .icon {
  cursor: pointer;
}

.btn:hover, .solution-item:hover {
  cursor: pointer;
}

.contact-details .icon svg path,
.contact-details .icon svg circle,
.contact-details .icon svg polyline {
  stroke: #fff !important;
}

/* ==========================================
   ANIMAÇÕES
========================================== */
@keyframes floatTriangle1 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-5px) rotate(1deg); }
}

@keyframes floatTriangle2 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(3px) rotate(-1deg); }
}

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

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

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.solution-item:nth-child(1) { animation-delay: 0.1s; }
.solution-item:nth-child(2) { animation-delay: 0.2s; }
.solution-item:nth-child(3) { animation-delay: 0.3s; }
.solution-item:nth-child(4) { animation-delay: 0.4s; }

.solution-item:hover .solution-icon svg {
  animation: pulse 1s infinite;
}

/* ==========================================
   RESPONSIVIDADE
========================================== */
@media (min-width: 1400px) {
  .solutions-grid {
    max-width: 1600px;
    gap: 2rem;
  }
  
  .solution-item {
    padding: 2.5rem 2rem;
  }
  
  .solutions-section::before {
    width: 350px;
    height: 350px;
  }
  
  .solutions-section::after {
    width: 300px;
    height: 300px;
  }
}

@media (max-width: 1200px) and (min-width: 769px) {
  .solutions-grid {
    gap: 1rem;
  }
  
  .solution-item {
    padding: 1.8rem 1.2rem;
    min-height: 400px;
  }
  
  .solution-item h3 {
    font-size: 1.1rem;
  }
  
  .solution-item p {
    font-size: 0.9rem;
  }
  
  .solutions-section::before {
    width: 200px;
    height: 200px;
  }
  
  .solutions-section::after {
    width: 150px;
    height: 150px;
  }
}

@media (max-width: 768px) {
  .hero .carousel-item img {
    height: 300px;
    padding: 1rem 0;
  }
  
  .solutions-section {
    padding: 4rem 0;
  }
  
  .solutions-section h2 {
    font-size: 2rem;
    margin-bottom: 3rem;
    padding: 0 1rem;
  }
  
  .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 0 1rem;
  }
  
  .solution-item {
    padding: 2rem 1.5rem;
    min-height: 350px;
  }
  
  .solutions-section::before {
    width: 150px;
    height: 150px;
  }
  
  .solutions-section::after {
    width: 120px;
    height: 120px;
  }
  
  .navbar-nav .nav-link::after {
    display: none;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 25px;
  }
  
  .footer-section.logo-section {
    flex: none;
    width: 100%;
  }
  
  .footer-logo {
    max-width: 100px;
  }
  
  .social-icons {
    justify-content: center;
  }
  
  .footer-section.services-section,
  .footer-section.partner-section {
    flex: none;
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .solutions-section h2 {
    font-size: 1.8rem;
  }
  
  .solutions-grid {
    grid-template-columns: 1fr;
  }
  
  .solution-item {
    padding: 1.5rem 1rem;
    min-height: auto;
  }
  
  .solution-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 1rem;
  }
  
  .solution-icon svg {
    width: 40px;
    height: 40px;
  }
  
  .btn-solution {
    padding: 10px 20px;
    font-size: 0.85rem;
  }
  
  .solutions-section::before {
    width: 100px;
    height: 100px;
  }
  
  .solutions-section::after {
    width: 80px;
    height: 80px;
  }
  
  .footer-content {
    gap: 20px;
  }
  
  .footer-section h3 {
    font-size: 16px;
  }
  
  .footer-logo {
    max-width: 80px;
  }
}

.main-header.business-forward {
  background: linear-gradient(135deg, 
    rgba(248, 249, 250, 0.95), 
    rgba(255, 255, 255, 0.98));
  border-bottom: 3px solid #C41E3A;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.main-header.business-forward .business-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 100px,
    rgba(196, 30, 58, 0.02) 101px,
    rgba(196, 30, 58, 0.02) 102px
  );
}

.main-header.business-forward .logo-wrapper {
  position: relative;
  transition: all 0.3s ease;
}

.main-header.business-forward .subtle-scan {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 2px solid transparent;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.main-header.business-forward .logo-wrapper:hover .subtle-scan {
  border-color: rgba(196, 30, 58, 0.2);
}

.main-header.business-forward .enterprise-info {
  margin-left: 1.2rem;
  display: flex;
  flex-direction: column;
}

.main-header.business-forward .enterprise-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.2;
}

.main-header.business-forward .enterprise-tagline {
  font-size: 0.9rem;
  color: #C41E3A;
  font-weight: 500;
}

.main-header.business-forward .since {
  font-size: 0.7rem;
  color: #888;
  font-weight: 400;
}

.main-header.business-forward .business-link {
  color: #333 !important;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 4px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.main-header.business-forward .business-link:hover {
  color: #C41E3A !important;
  border-color: rgba(196, 30, 58, 0.2);
  background: rgba(196, 30, 58, 0.03);
}

.btn-business {
  background: #C41E3A;
  color: white !important;
  padding: 12px 25px;
  border-radius: 4px;
  border: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 3px 12px rgba(196, 30, 58, 0.2);
}

.btn-business:hover {
  background: #8B1538;
  transform: translateY(-1px);
  box-shadow: 0 5px 20px rgba(196, 30, 58, 0.3);
  color: white !important;
}






/* Correções APENAS para Opera */
.opera-browser .carousel-item {
    position: relative !important;
    width: 100% !important;
    overflow: hidden !important;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.opera-browser .carousel-item img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover;
    -o-object-fit: cover;
    max-width: 100% !important;
}

.opera-browser .container,
.opera-browser .container-fluid {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden;
}

/* Reset específico para Opera */
.opera-browser * {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}