/* COBRA SIM - Professional CSS */

/* ===== CSS VARIABLES ===== */
:root {
  /* Colors */
  --primary-color: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary-color: #64748b;
  --accent-color: #10b981;
  --danger-color: #ef4444;
  --warning-color: #f59e0b;
  
  /* Neutral Colors */
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  
  /* Typography */
  --font-family-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-family-heading: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Spacing */
  --section-padding: 5rem 0;
  --container-padding: 1.5rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  /* Border Radius */
  --border-radius-sm: 0.375rem;
  --border-radius-md: 0.5rem;
  --border-radius-lg: 0.75rem;
  --border-radius-xl: 1rem;
  
  /* Transitions */
  --transition-base: all 0.2s ease-in-out;
  --transition-slow: all 0.3s ease-in-out;
}

/* ===== GLOBAL STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-700);
  background-color: var(--white);
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.75rem; }
}

p {
  margin-bottom: 1rem;
  color: var(--gray-600);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition-base);
}

a:hover {
  color: var(--primary-dark);
}

/* Section Styles */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
}

/* Button Styles */
.btn {
  font-weight: 500;
  border-radius: var(--border-radius-md);
  transition: var(--transition-base);
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family-primary);
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 0.75rem 1.5rem;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background-color: transparent;
  padding: 0.75rem 1.5rem;
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-dark {
  border: 2px solid var(--gray-700);
  color: var(--gray-700);
  background-color: transparent;
  padding: 0.75rem 1.5rem;
}

.btn-outline-dark:hover {
  background-color: var(--gray-700);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-light {
  background-color: var(--white);
  color: var(--gray-700);
  padding: 0.75rem 1.5rem;
}

.btn-light:hover {
  background-color: var(--gray-100);
  color: var(--gray-700);
  transform: translateY(-2px);
}

.btn-outline-light {
  border: 2px solid var(--white);
  color: var(--white);
  background-color: transparent;
  padding: 0.75rem 1.5rem;
}

.btn-outline-light:hover {
  background-color: var(--white);
  color: var(--gray-700);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* ===== NAVIGATION ===== */
.navbar {
  padding: 1rem 0;
  transition: var(--transition-base);
  background-color: var(--white) !important;
  border-bottom: 1px solid var(--gray-200);
}

.navbar-brand img {
  transition: var(--transition-base);
}

.navbar-nav .nav-link {
  color: var(--gray-700);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: var(--transition-base);
}

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

/* ===== HERO SECTION ===== */
.hero-section {
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
  padding-top: 120px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-stats {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin: 0;
}

.hero-buttons {
  margin-bottom: 2rem;
}

.hero-trust {
  padding: 1rem 0;
}

.trust-text {
  color: var(--gray-600);
  font-size: 0.875rem;
  margin: 0;
}

.hero-image {
  text-align: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
  }
  
  .hero-section {
    padding-top: 100px;
    text-align: center;
  }
}

/* ===== SERVICES SECTION ===== */
.services-section {
  padding: var(--section-padding);
  background-color: var(--white);
}

.service-card {
  background-color: var(--white);
  border-radius: var(--border-radius-xl);
  padding: 2rem;
  text-align: center;
  transition: var(--transition-slow);
  border: 1px solid var(--gray-200);
  height: 100%;
  position: relative;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-color);
}

.service-card.featured {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-lg);
  transform: scale(1.02);
}

.service-card.featured:hover {
  transform: scale(1.02) translateY(-8px);
}

.service-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary-color);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-md);
  font-size: 0.875rem;
  font-weight: 600;
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--white);
  font-size: 2rem;
}

.service-card h4 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--gray-900);
}

.service-card p {
  color: var(--gray-600);
  margin-bottom: 1.5rem;
}

.service-features {
  list-style: none;
  padding: 0;
  text-align: left;
}

.service-features li {
  padding: 0.5rem 0;
  color: var(--gray-600);
}

/* ===== BENEFITS SECTION ===== */
.benefits-section {
  padding: var(--section-padding);
  background-color: var(--gray-50);
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
}

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

.benefit-content h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--gray-900);
}

.benefit-content p {
  color: var(--gray-600);
  margin: 0;
}

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

/* ===== PRICING SECTION ===== */
.pricing-section {
  padding: var(--section-padding);
  background-color: var(--white);
}

.pricing-card {
  background-color: var(--white);
  border-radius: var(--border-radius-xl);
  padding: 2rem;
  text-align: center;
  transition: var(--transition-slow);
  border: 2px solid var(--gray-200);
  height: 100%;
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-color);
}

.pricing-card.featured {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-lg);
  transform: scale(1.05);
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-8px);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--accent-color);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-md);
  font-size: 0.875rem;
  font-weight: 600;
}

.pricing-header h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--gray-900);
}

.price {
  margin-bottom: 2rem;
}

.currency {
  font-size: 1.5rem;
  color: var(--gray-600);
  vertical-align: top;
}

.amount {
  font-size: 3rem;
  font-weight: 700;
  color: var(--gray-900);
}

.period {
  font-size: 1rem;
  color: var(--gray-600);
}

.pricing-features ul {
  list-style: none;
  padding: 0;
  text-align: left;
  margin-bottom: 2rem;
}

.pricing-features li {
  padding: 0.75rem 0;
  color: var(--gray-600);
  border-bottom: 1px solid var(--gray-100);
}

.pricing-features li:last-child {
  border-bottom: none;
}

/* ===== CLIENTS SECTION ===== */
.clients-section {
  padding: var(--section-padding);
  background-color: var(--gray-50);
}

/* Carrossel de Logos */
.clients-carousel-container {
  overflow: hidden;
  margin: 3rem 0;
  position: relative;
  background: linear-gradient(90deg, rgba(248, 250, 252, 0) 0%, rgba(248, 250, 252, 1) 10%, rgba(248, 250, 252, 1) 90%, rgba(248, 250, 252, 0) 100%);
  padding: 2rem 0;
}

.clients-carousel {
  display: flex;
  animation: scrollLogos 30s linear infinite;
  width: calc(200px * 26); /* 13 logos x 2 (duplicados) x largura */
}

.client-logo-item {
  flex: 0 0 200px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 20px;
}

.client-logo-carousel {
  max-width: 120px;
  max-height: 80px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: var(--transition-base);
}

.client-logo-carousel:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

/* Pausa a animação quando hover no container */
.clients-carousel-container:hover .clients-carousel {
  animation-play-state: paused;
}

@keyframes scrollLogos {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-200px * 13 - 20px * 13)); /* Move uma sequência completa */
  }
}

/* Cards de Clientes */
.client-card {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition-base);
  border: 1px solid var(--gray-200);
  height: 100%;
}

.client-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.client-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.client-card h5 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--gray-900);
}

.client-card p {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-bottom: 0.25rem;
}

.client-card small {
  font-size: 0.75rem;
}

/* Botão Toggle */
#toggleClientsView {
  transition: var(--transition-base);
}

#toggleClientsView:hover {
  transform: translateY(-2px);
}

.toggle-icon {
  transition: transform 0.3s ease;
}

#toggleClientsView.expanded .toggle-icon {
  transform: rotate(180deg);
}

/* Seção expandida */
.all-clients-section {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.5s ease;
}

.all-clients-section.show {
  opacity: 1;
  max-height: 2000px;
}

/* Responsividade do carrossel */
@media (max-width: 768px) {
  .clients-carousel {
    animation-duration: 40s; /* Mais lento em mobile */
  }
  
  .client-logo-item {
    flex: 0 0 150px;
    margin: 0 10px;
  }
  
  .client-logo-carousel {
    max-width: 100px;
    max-height: 60px;
  }
  
  .clients-carousel {
    width: calc(150px * 26);
  }
  
  @keyframes scrollLogos {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-150px * 13 - 10px * 13));
    }
  }
}

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

.cta-buttons {
  margin-bottom: 2rem;
}

.cta-guarantee {
  opacity: 0.8;
}

/* ===== FOOTER ===== */
.footer-section {
  background-color: var(--gray-900);
  color: var(--gray-300);
}

.footer-brand img {
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--gray-400);
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  background-color: var(--gray-800);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  transition: var(--transition-base);
}

.social-link:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-title {
  color: var(--white);
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

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

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--gray-400);
  transition: var(--transition-base);
}

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

.contact-info {
  margin-bottom: 1rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.contact-item i {
  width: 20px;
  color: var(--primary-color);
  margin-right: 1rem;
  margin-top: 0.25rem;
}

.contact-item strong {
  display: block;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.contact-item a {
  color: var(--gray-400);
}

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

.footer-divider {
  border-color: var(--gray-700);
  margin: 3rem 0 2rem;
}

.footer-copyright {
  color: var(--gray-400);
  margin: 0;
}

.footer-legal {
  display: flex;
  gap: 2rem;
}

.footer-legal a {
  color: var(--gray-400);
  font-size: 0.875rem;
}

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

/* ===== BACK TO TOP BUTTON ===== */
.btn-back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-base);
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
}

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

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

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .section-title {
    font-size: 2.25rem;
  }
}

@media (max-width: 992px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .hero-section {
    text-align: center;
  }
  
  .benefit-item {
    text-align: center;
    flex-direction: column;
    align-items: center;
  }
  
  .benefit-icon {
    margin-right: 0;
    margin-bottom: 1rem;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 3rem 0;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
  
  .cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .cta-buttons .btn {
    width: 100%;
  }
  
  .footer-legal {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .social-links {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .btn-back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 45px;
    height: 45px;
  }
}

/* ===== UTILITIES ===== */
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.text-muted { color: var(--gray-500) !important; }
.text-light { color: var(--gray-300) !important; }
.text-white-50 { color: rgba(255, 255, 255, 0.5) !important; }

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

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

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in-left {
  animation: fadeInLeft 0.6s ease-out;
}

.animate-fade-in-right {
  animation: fadeInRight 0.6s ease-out;
}