/**
 * Custom Enhancements CSS
 * Melhorias visuais modernas para o site
 */

/* ============================================
   ACESSIBILIDADE
   ============================================ */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--black-primary);
  color: var(--green-primary);
  padding: 8px;
  text-decoration: none;
  z-index: 100;
  border: 2px solid var(--green-primary);
}

.skip-link:focus {
  top: 0;
  color: var(--green-primary);
  font-weight: 600;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.sr-only-focusable:focus {
  position: static;
  width: auto;
  height: auto;
  padding: inherit;
  margin: inherit;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* Melhorias de foco para acessibilidade */
*:focus-visible {
  outline: 3px solid var(--green-primary);
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--green-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============================================
   VARIÁVEIS CSS MODERNAS - TEMA VERDE E PRETO
   ============================================ */
:root {
  /* Paleta de Verde Moderna */
  --green-primary: #4ad194;
  --green-dark: #2d8659;
  --green-light: #6ee5b3;
  --green-lighter: #a8f5d4;
  --green-darkest: #1a5c3a;
  --green-accent: #22c55e;
  
  /* Paleta de Preto */
  --black-primary: #000000;
  --black-dark: #0a0a0a;
  --black-soft: #1a1a1a;
  --black-text: #2d2d2d;
  --gray-dark: #333333;
  
  /* Gradientes Verde e Preto */
  --primary-gradient: linear-gradient(135deg, #4ad194 0%, #22c55e 100%);
  --secondary-gradient: linear-gradient(135deg, #6ee5b3 0%, #4ad194 100%);
  --success-gradient: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  --dark-gradient: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
  --green-black-gradient: linear-gradient(135deg, #4ad194 0%, #000000 100%);
  --black-green-gradient: linear-gradient(135deg, #000000 0%, #22c55e 100%);
  --light-gradient: linear-gradient(135deg, #a8f5d4 0%, #6ee5b3 100%);
  
  /* Sombras com toque verde e preto */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.3);
  --shadow-green: 0 4px 15px rgba(74, 209, 148, 0.3);
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 12px;
  --border-radius-lg: 20px;
}

/* ============================================
   NAVBAR MELHORADA
   ============================================ */
.navbar {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95) !important;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.navbar.absolute.transparent {
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(15px);
}

.navbar-brand img {
  transition: var(--transition-smooth);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

.nav-link {
  font-weight: 500;
  position: relative;
  padding: 0.5rem 1rem !important;
  border-radius: 8px;
  transition: var(--transition-smooth);
}

.nav-link:hover {
  background: rgba(74, 209, 148, 0.1);
  transform: translateY(-2px);
  color: var(--green-primary) !important;
}

/* ============================================
   HERO SECTION MELHORADA
   ============================================ */
.wrapper.white-wrapper {
  position: relative;
  overflow: hidden;
}

.wrapper.white-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(74, 209, 148, 0.05) 0%, rgba(34, 197, 94, 0.05) 100%);
  z-index: 1;
  pointer-events: none;
}

/* ============================================
   CARDS DE PREÇOS MODERNOS
   ============================================ */
.pricing.panel {
  border: 2px solid var(--black-primary);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: var(--transition-smooth);
  position: relative;
  background: #ffffff;
  box-shadow: var(--shadow-md);
}

.pricing.panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
  opacity: 0;
  transition: var(--transition-smooth);
  background: linear-gradient(135deg, #4ad194 0%, #22c55e 100%);
}

.pricing.panel:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl), 0 0 0 2px var(--green-primary);
  border-color: var(--green-primary);
}

.pricing.panel:hover::before {
  opacity: 1;
}

.pricing.panel .panel-heading {
  padding: 2rem 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-bottom: 2px solid var(--black-primary);
}

.pricing.panel .prices {
  margin-bottom: 1.5rem;
  text-align: center;
}

.pricing.panel .price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 1rem;
  width: 100%;
  position: relative;
  z-index: 2;
}

.price-currency {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--green-primary);
  line-height: 1;
  display: inline-block;
  vertical-align: baseline;
}

.price-value {
  font-size: 3rem;
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  display: inline-block;
  vertical-align: baseline;
}

.price-period {
  padding: 0.5rem 1.2rem;
  background: linear-gradient(135deg, rgba(74, 209, 148, 0.15) 0%, rgba(34, 197, 94, 0.15) 100%);
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 auto;
  margin-top: 0.75rem;
  border: 1.5px solid rgba(74, 209, 148, 0.3);
  white-space: nowrap;
}

.pricing.panel .panel-title {
  color: var(--black-text);
  font-weight: 600;
  font-size: 1.1rem;
  margin-top: 1rem;
}

.pricing.panel .panel-body {
  padding: 1.5rem 1.5rem 1rem;
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.pricing.panel .panel-footer {
  padding: 1.5rem;
  background: #ffffff;
  text-align: center;
}

/* Lista de características do plano */
.plan-features {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.plan-features li {
  padding: 0.6rem 0;
  color: var(--black-text);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  transition: var(--transition-smooth);
}

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

.plan-features li:hover {
  color: var(--green-primary);
  padding-left: 0.25rem;
  font-weight: 600;
}

.plan-features li i {
  color: var(--green-primary);
  font-size: 1rem;
  font-weight: bold;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(74, 209, 148, 0.15) 0%, rgba(34, 197, 94, 0.15) 100%);
  border-radius: 50%;
}

/* ============================================
   BOTÕES MODERNOS
   ============================================ */
.btn {
  border-radius: 50px;
  padding: 0.75rem 2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.85rem;
  transition: var(--transition-smooth);
  border: none;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-default {
  background: var(--primary-gradient);
  color: #ffffff;
}

.btn-default:hover {
  background: var(--primary-gradient);
  color: #ffffff;
}

.pricing.panel .btn {
  width: 100%;
  position: relative;
  z-index: 1;
  display: inline-block;
  text-align: center;
}

/* Ajustes específicos para desktop */
@media (min-width: 992px) {
  .pricing.panel .panel-footer {
    padding: 1.5rem 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .pricing.panel .btn {
    min-width: 140px;
    max-width: 200px;
  }
  
  /* Cards de créditos - layout específico */
  .col-lg-7 .pricing.panel .panel-footer {
    padding: 1.25rem 1rem 1.75rem;
  }
  
  .col-lg-7 .pricing.panel .btn {
    padding: 0.65rem 1.5rem;
    font-size: 0.8rem;
  }
}

/* ============================================
   SEÇÃO DE PREÇOS COM BACKGROUND
   ============================================ */
.wrapper.image-wrapper {
  position: relative;
  padding: 4rem 0;
}

.wrapper.image-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(74, 209, 148, 0.9) 0%, rgba(34, 197, 94, 0.9) 100%);
  z-index: 1;
}

.wrapper.image-wrapper .container {
  position: relative;
  z-index: 2;
}

.wrapper.image-wrapper h2,
.wrapper.image-wrapper h3 {
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.wrapper.image-wrapper .section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

/* ============================================
   SEÇÃO DE REVENDA
   ============================================ */
.wrapper.light-wrapper {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  padding: 4rem 0;
}

.title-bg {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  background: var(--black-primary);
  color: var(--green-primary);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 2px solid var(--green-primary);
}

.display-3 {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, #4ad194 0%, #22c55e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 2rem;
}

/* ============================================
   FOOTER MELHORADO
   ============================================ */
footer.dark-wrapper {
  background: var(--dark-gradient);
  padding: 2rem 0;
  border-top: 3px solid var(--green-primary);
}

footer.dark-wrapper p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin: 0;
}

/* ============================================
   ANIMAÇÕES SUAVES
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pricing.panel {
  animation: fadeInUp 0.6s ease-out;
}

.pricing.panel:nth-child(1) {
  animation-delay: 0.1s;
}

.pricing.panel:nth-child(2) {
  animation-delay: 0.2s;
}

.pricing.panel:nth-child(3) {
  animation-delay: 0.3s;
}

/* ============================================
   RESPONSIVIDADE MELHORADA
   ============================================ */
@media (max-width: 768px) {
  .price-value {
    font-size: 2.5rem;
  }
  
  .display-3 {
    font-size: 2rem;
  }
  
  .wrapper.image-wrapper .section-title {
    font-size: 1.8rem;
  }
  
  .pricing.panel {
    margin-bottom: 1.5rem;
  }
  
  .pricing.panel:hover {
    transform: translateY(-5px);
  }
}

/* ============================================
   MELHORIAS GERAIS
   ============================================ */
.pricing-wrapper {
  padding: 2rem 0;
}

.panel-heading {
  text-align: center;
}

.panel-heading small {
  display: block;
  color: var(--gray-dark);
  font-size: 0.9rem;
  margin-top: 0.5rem;
  font-weight: 400;
}

.pricing.panel .price small {
  color: #a0aec0;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Responsividade para o período de preço */
@media (max-width: 768px) {
  .price-period {
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
  }
  
  .price-value {
    font-size: 2.5rem;
  }
}

/* Melhorias no espaçamento */
.space10 {
  height: 0.625rem;
}

.space15 {
  height: 0.9375rem;
}

.space20 {
  height: 1.25rem;
}

/* Cards destacados */
.pricing.panel.popular {
  border: 3px solid var(--black-primary);
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 0 0 2px var(--green-primary);
}

.pricing.panel.popular::before {
  opacity: 1;
  height: 6px;
  background: var(--primary-gradient);
}

@media (max-width: 768px) {
  .pricing.panel.popular {
    transform: scale(1);
  }
}

/* Melhorias no texto */
.inverse-text h2,
.inverse-text h3 {
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* Gradiente no texto do hero */
.tp-caption.font-weight-600 {
  background: linear-gradient(135deg, #4ad194 0%, #22c55e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Melhorias nos botões do slider */
.tp-caption.btn {
  background: linear-gradient(135deg, #4ad194 0%, #22c55e 100%);
  border: none;
  box-shadow: 0 4px 15px rgba(74, 209, 148, 0.4);
}

.tp-caption.btn:hover {
  box-shadow: 0 6px 20px rgba(74, 209, 148, 0.6);
  transform: translateY(-2px);
}
