/*
 * Automaticfacil - Custom CSS
 * Works with Bootstrap 5
 */
 :root {
  --primary: #0052CC; /* Azul profundo corporativo (estilo Atlassian) */
  --primary-dark: #003d99; /* Versão mais escura para hover states */
  --primary-light: #4c9aff; /* Azul claro para elementos secundários e destaques */
  --secondary: #172B4D; /* Azul escuro quase naval para elementos secundários */
  --light: #F4F5F7; /* Cinza muito claro para fundos */
  --dark: #253858; /* Azul escuro para textos, substituindo o preto puro */
}

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

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

a {
  text-decoration: none;
  transition: all 0.3s ease;
}

.bg-primary {
  background-color: var(--primary) !important;
}

.text-primary {
  color: var(--primary) !important;
}

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

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

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

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

/* Navigation */
.navbar {
  padding: 15px 0;
}

.navbar-brand img {
  max-height: 40px;
}

.nav-link {
  font-weight: 500;
  padding: 8px 15px !important;
}

.nav-link.active {
  color: var(--primary) !important;
}

/* Hero Section */
.hero-section {
  padding: 60px 0;
}

.resource-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 30px;
}

.resource-tab {
  padding: 8px 15px;
  margin-right: 10px;
  margin-bottom: 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  color: white;
  display: inline-block;
  text-decoration: none;
}

.resource-tab.active, .resource-tab:hover {
  background: #ffffff;
  color: var(--primary);
  text-decoration: none;
}

/* Adicione estas regras para os botões da navegação de recursos */
section.bg-light .resource-tab {
  background: rgba(0, 82, 204, 0.1);
  color: var(--primary);
}

section.bg-light .resource-tab.active {
  background: var(--primary);
  color: white;
}

section.bg-light .resource-tab:hover:not(.active) {
  background: rgba(0, 82, 204, 0.2);
  color: var(--primary-dark);
}

/* Feature Cards */
.feature-icon {
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
}

.card {
  transition: all 0.3s ease;
  border: none;
}

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

/* Feature Sections */
.feature-title {
  color: var(--primary);
  margin-bottom: 20px;
  font-weight: 600;
}

.feature-desc {
  font-size: 1.1rem;
  margin-bottom: 25px;
  line-height: 1.6;
}

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

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

.feature-list i {
  margin-right: 10px;
  font-size: 18px;
}

/* Steps Section */
.steps {
  padding: 20px 0;
}

.step {
  align-items: flex-start;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  font-weight: bold;
  margin-right: 15px;
  flex-shrink: 0;
}

.step-content {
  flex-grow: 1;
}

/* Integration Section */
.integration-item {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  transition: all 0.3s ease;
  height: 100%;
}

.integration-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.integration-item img {
  height: 60px;
  margin-bottom: 15px;
}

/* Testimonials */
.testimonial {
  border-radius: 10px;
}

.testimonial-text {
  font-style: italic;
  position: relative;
  padding: 0 10px;
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.6;
}

.testimonial-text::before {
  content: '"';
  position: absolute;
  left: -15px;
  top: -5px;
  font-size: 30px;
  color: var(--primary-light);
  opacity: 0.5;
}

.testimonial-author h5 {
  font-size: 18px;
  margin-bottom: 5px;
}

.testimonial-author p {
  font-size: 14px;
}

/* FAQ Section */
.accordion-button:not(.collapsed) {
  background-color: rgba(0, 82, 204, 0.1);
  color: var(--primary);
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(0, 82, 204, 0.25);
}

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

/* WhatsApp Float Button */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.15);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.whatsapp-float:hover {
  background-color: #20ba5a;
  color: #fff;
  transform: scale(1.05);
}

/* Footer */
.bg-dark {
  background-color: var(--secondary) !important;
}

footer {
  padding-top: 60px;
}

footer h5 {
  font-weight: 600;
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 20px;
}

footer h5::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 40px;
  background: var(--primary-light);
}

footer a.text-white {
  opacity: 0.8;
  line-height: 2;
}

footer a.text-white:hover {
  opacity: 1;
}

.social-icons a {
  display: inline-block;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  text-align: center;
  line-height: 32px;
  margin-right: 8px;
}

.social-icons a:hover {
  background: var(--primary-light);
}

/* Responsive styles */
@media (max-width: 991px) {
  .navbar {
    padding: 10px 0;
  }
  
  .resource-tab {
    margin-bottom: 8px;
    font-size: 13px;
    padding: 6px 12px;
  }
  
  .step {
    margin-bottom: 30px;
  }
}

@media (max-width: 767px) {
  .hero-section {
    padding: 40px 0;
  }
  
  .feature-title {
    font-size: 24px;
  }
  
  .feature-desc {
    font-size: 1rem;
  }
  
  .step-number {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }
  
  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 24px;
    bottom: 20px;
    right: 20px;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fadeInUp {
  animation: fadeInUp 0.5s ease forwards;
}

