/* Custom CSS for Infratrack Landing Page */

:root {
    /* Primary Colors */
    --primary: #E74C3C;
    --secondary: #4CAF50;
    --dark: #333333;
    --light: #FFFFFF;
    
    /* Secondary Colors */
    --secondary-light: #8BC34A;
    --gray-light: #F5F5F5;
    --gray-medium: #9E9E9E;
    --primary-dark: #C0392B;
}

/* General Styles */
body {
    font-family: 'Open Sans', sans-serif;
    color: var(--dark);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.lead {
    font-weight: 400;
    font-size: 1.2rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
}

.section-divider {
    width: 80px;
    height: 4px;
    background-color: var(--primary);
    margin: 0 auto 2rem;
}

/* Buttons */

/* Pop-up de Saída */
.exit-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
  }
  
  .exit-popup.active {
    display: flex;
  }
  
  .popup-content {
    border-radius: 8px;
    padding: 40px;
    max-width: 650px;
    width: 100%;
    position: relative;
    animation: popupFadeIn 0.3s ease;
  }
  
  @keyframes popupFadeIn {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 44px;
    cursor: pointer;
    color: #811b1b;
    transition: all 0.3s ease;
  }
  
  .popup-close:hover {
    color: #D32F2F;
  }

/* Footer */
.footer {
    background-color: #333333; /* var(--dark-color) */
    color: #fff;
    padding: 80px 0 30px;
  }
  
  .footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
  }
  
  .footer-column h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #ffffff; /* var(--white-color) */
  }
  
  .footer-column p {
    margin-bottom: 10px;
    color: #aaa;
  }
  
  .footer-links {
    list-style: none;
    padding: 0;
  }
  
  .footer-links li {
    margin-bottom: 10px;
  }
  
  .footer-links a {
    color: #aaa;
    transition: all 0.3s ease-in-out; /* var(--transition) */
  }
  
  .footer-links a:hover {
    color: #e63946; /* var(--primary-color) */
  }
  
  .social-links {
    display: flex;
    margin-top: 20px;
  }
  
  .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    color: #ffffff; /* var(--white-color) */
    transition: all 0.3s ease-in-out; /* var(--transition) */
  }
  
  .social-links a:hover {
    background-color: #e63946; /* var(--primary-color) */
    transform: translateY(-3px);
  }
  
  .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
  }
  
  .footer-bottom p {
    color: #aaa;
    margin-bottom: 0;
  }

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-outline-light {
    border-width: 2px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-success {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

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

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

/* Navbar */
.navbar {
    background-color: rgba(51, 51, 51, 0.9);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand img {
    transition: all 0.3s ease;
}

.navbar-nav .nav-link {
    color: var(--light);
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary);
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.75rem;
    font-size: 1.25rem;
    color: var(--light);
}

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

/* Hero Section */
#hero {
    background: linear-gradient(135deg, var(--dark) 0%, #1a1a1a 100%);
    color: var(--light);
    padding: 180px 0 100px;
    position: relative;
    overflow: hidden;
}

.empresas .item {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
  }
  
  .empresas .item img {
    max-height: 70px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
  }
  
  .empresas .item img:hover {
    filter: grayscale(0%);
  }
  
  .client-logo img {
    max-height: 48px;
    /* Garante que os logos não fiquem muito grandes */
    width: auto;
    transition: opacity 0.3s ease;
  }
  
  .hover-opacity-100:hover {
    opacity: 1 !important;
  }

/* Ajuste para a seção hero para acomodar a onda */
#hero {
    position: relative;
    padding-bottom: 60px;
    margin-bottom: 0;
}

#hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-image {
    position: relative;
    padding: 20px;
}

.animated-cta-outline {
    animation: pulse-cta-outline 2s infinite;
}

@keyframes pulse-cta-outline {
    0% {
        box-shadow: 0 0 0 0 rgba(215, 40, 47, 0.5);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(215, 40, 47, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(215, 40, 47, 0);
    }
}

.stats-card {
    position: flex;
    background-color: var(--light);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    max-width: 250px;
}

.stats-card:nth-child(2) {
    top: 20%;
    right: -30px;
}

.stats-card:nth-child(3) {
    bottom: 10%;
    left: -30px;
}

.stats-icon {
    background-color: var(--primary);
    color: var(--light);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 15px;
    min-width: 50px; /* Garante largura mínima fixa */
    min-height: 50px; /* Garante altura mínima fixa */
    aspect-ratio: 1; /* Força proporção 1:1 */
}

.stats-content h4 {
    font-size: 1.8rem;
    margin-bottom: 0;
}

.stats-content p {
    font-size: 0.8rem;
    margin-bottom: 0;
}

/* Problema Section */
#problema {
    padding: 80px 0;
}

.problem-image img {
    width: 100%;
    height: auto;
}

.problem-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.problem-icon {
    background-color: var(--primary);
    color: var(--light);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 20px;
    flex-shrink: 0;
}

.problem-text h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

/* Solução Section */
#solucao {
    padding: 80px 0;
}

.solution-badge {
    position: absolute;
    top: -20px;
    right: -20px;
    background-color: var(--secondary);
    color: var(--light);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature-card {
    background-color: var(--light);
    border-radius: 10px;
    padding: 20px;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 15px;
}

.feature-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.feature-list li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.feature-list li i {
    color: var(--secondary);
    margin-right: 10px;
    font-size: 0.8rem;
}

/* Benefícios Section */
#beneficios {
    padding: 80px 0;
}

.benefit-card {
    background-color: var(--light);
    border-radius: 10px;
    padding: 30px;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.benefit-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.benefit-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.benefit-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.benefit-list li i {
    color: var(--secondary);
    margin-right: 10px;
}

/* Como Funciona Section */
#como-funciona {
    padding: 80px 0;
}

.timeline {
    position: relative;
    padding: 30px 0;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: var(--gray-medium);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-icon {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 1;
    box-shadow: 0 0 0 4px var(--light), 0 0 0 8px rgba(231, 76, 60, 0.2);
}

.timeline-content {
    width: 45%;
    background-color: var(--light);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: auto;
    margin-left: 0;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
    margin-right: 0;
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary);
}

/* Indicadores Section */
#indicadores {
    padding: 80px 0;
}

.indicator-card {
    background-color: var(--light);
    border-radius: 10px;
    padding: 30px;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
}

.indicator-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.indicator-icon {
    background-color: var(--primary);
    color: var(--light);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
}

.indicator-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

/* Cards */
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

#depoimentos .card-body p.fst-italic {
    font-size: 0.9rem;
    position: relative;
    padding: 10px 0;
}

/* FAQ Section */
#faq {
    padding: 80px 0;
}

.accordion-item {
    border: none;
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.accordion-button {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    padding: 20px;
    background-color: var(--light);
    color: var(--dark);
}

.accordion-button:not(.collapsed) {
    background-color: var(--light);
    color: var(--primary);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23E74C3C'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
    padding: 20px;
    background-color: var(--light);
}

/* CTA Final Section */
#cta-final {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

/* Contato Section */

.form-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-medium);
}

.form-card label {
    font-weight: 600;
    color: var(--infratrack-gray-medium);
}

.form-control {
    border-radius: var(--border-radius);
    padding: 0.8rem 1rem;
}

.form-control:focus {
    border-color: var(--infratrack-red);
    box-shadow: 0 0 0 0.2rem rgba(215, 40, 47, 0.25);
}

#contato {
    padding: 80px 0;
}

.contact-info {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-card {
    background-color: var(--light);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item i {
    background-color: var(--primary);
    color: var(--light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.contact-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-item p {
    margin-bottom: 0;
}

.contact-item a {
    color: var(--dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary);
}



.contact-whatsapp {
    margin-top: auto;
}

/* Outras Soluções Section */
#outras-solucoes {
    padding: 80px 0;
}

.solution-card {
    background-color: var(--light);
    border-radius: 10px;
    padding: 30px;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.solution-icon {
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.solution-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: var(--light);
}

.footer-links {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--gray-medium);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.footer-contact {
    list-style: none;
    padding-left: 0;
}

.footer-contact li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.footer-contact li i {
    margin-right: 10px;
    color: var(--primary);
}

.footer-legal {
    list-style: none;
    padding-left: 0;
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    margin-bottom: 0;
}

.footer-legal li a {
    color: var(--gray-medium);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-legal li a:hover {
    color: var(--primary);
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 999;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    color: var(--light);
    transform: scale(1.1);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 15px;
    min-width: 50px; /* Garante largura mínima fixa */
    min-height: 50px; /* Garante altura mínima fixa */
    aspect-ratio: 1; /* Força proporção 1:1 */
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

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

/* Animations */
.fade-in {
    animation: fadeIn 1s ease-in-out;
}

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

/* Responsive Styles */
@media (max-width: 1199.98px) {
    .section-title {
        font-size: 2.2rem;
    }
    
    #hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 991.98px) {
    .navbar {
        padding: 0.5rem 0;
    }
    
    #hero {
        padding: 150px 0 80px;
    }
    
    #hero h1 {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .timeline:before {
        left: 30px;
    }
    
    .timeline-icon {
        left: 30px;
        transform: translateX(-50%);
    }
    
    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px !important;
    }
}

@media (max-width: 767.98px) {
    #hero {
        padding: 120px 0 60px;
    }
    
    #hero h1 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .footer-legal {
        justify-content: flex-start;
        margin-top: 10px;
    }
}

@media (max-width: 575.98px) {
    #hero h1 {
        font-size: 1.6rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .problem-item, .contact-item {
        flex-direction: column;
        justify-content: center;
    }

    .problem-icon, .contact-item i {
        margin: 0 0 15px;
        justify-content: center;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }
    
    .testimonial-avatar {
        margin: 0 auto 15px;
    }
    
    .testimonial-info {
        text-align: center;
    }
}

/* Fix para o problema de overflow horizontal em telas menores */
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Ajuste para o navbar em telas menores */
@media (max-width: 991px) {
    .navbar-collapse {
        max-width: 100%;
    }
    
    .navbar-toggler {
        margin-right: 0;
    }
    
    /* Correção para o ícone do toggler */
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
}

/* Ajuste para elementos com largura fixa */
@media (max-width: 576px) {
    
    .hero-image img, 
    .problem-image img, 
    .solution-image img {
        width: 100%;
    }
}