/* PREÇOS SECTION - MODERNA E RESPONSIVA */

/* Variáveis */
:root {
  --bronze: #d4a017;
  --bronze-dark: #b8860b;
  --bronze-light: #f4d03f;
  --bronze-glow: rgba(212, 160, 23, 0.3);
  --bronze-transparent: rgba(212, 160, 23, 0.1);
  --bg-dark: #0a0a0a;
  --bg-darker: #000000;
  --bg-card: #111111;
  --text-light: #ffffff;
  --text-gray: #b0b0b0;
  --text-light-gray: #e0e0e0;
  --border-radius: 16px;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  --shadow-hover: 0 30px 60px rgba(0, 0, 0, 0.7);
  --shadow-light: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Seção Principal */
.precos-section {
  padding: 100px 20px;
  background: var(--bg-darker);
  position: relative;
  overflow: hidden;
}

/* Borda Decorativa Superior */
.precos-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--bronze-dark) 20%,
    var(--bronze) 40%,
    var(--bronze-light) 50%,
    var(--bronze) 60%,
    var(--bronze-dark) 80%,
    transparent 100%
  );
  z-index: 1;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Cabeçalho */
.precos-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.precos-titulo {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.precos-destaque {
  background: linear-gradient(
    135deg,
    var(--bronze-light),
    #ffd700,
    var(--bronze)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  font-weight: 900;
  text-shadow: 0 4px 20px rgba(244, 208, 63, 0.3);
}

.precos-subtitulo {
  color: var(--text-gray);
  font-size: 1.3rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  font-weight: 300;
  letter-spacing: 0.3px;
  opacity: 0.9;
}

/* Filtros por Categoria */
.precos-filtros {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.filtro-precos-btn {
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 160, 23, 0.2);
  border-radius: 30px;
  color: var(--text-gray);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.filtro-precos-btn:hover {
  background: rgba(212, 160, 23, 0.1);
  color: var(--bronze-light);
  border-color: var(--bronze);
  transform: translateY(-2px);
}

.filtro-precos-btn.active {
  background: linear-gradient(135deg, var(--bronze-dark), var(--bronze));
  color: var(--bg-dark);
  border-color: var(--bronze);
  font-weight: 600;
  box-shadow: var(--shadow-light);
}

/* Container da Tabela */
.tabela-precos-container {
  position: relative;
  margin-bottom: 50px;
}

.tabela-precos {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(212, 160, 23, 0.1);
}

/* Cabeçalho da Tabela */
.tabela-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  padding: 25px 30px;
  background: linear-gradient(
    135deg,
    rgba(212, 160, 23, 0.1),
    rgba(184, 134, 11, 0.05)
  );
  border-bottom: 1px solid rgba(212, 160, 23, 0.2);
}

.tabela-header h3 {
  color: var(--bronze-light);
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}

.col-servico {
  min-width: 300px;
}

.col-preco {
  min-width: 120px;
  text-align: center;
}

/* Linhas da Tabela */
.tabela-linhas {
  max-height: 600px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--bronze) transparent;
}

.tabela-linhas::-webkit-scrollbar {
  width: 6px;
}

.tabela-linhas::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.tabela-linhas::-webkit-scrollbar-thumb {
  background: var(--bronze);
  border-radius: 3px;
}

.tabela-linha {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  padding: 25px 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
  opacity: 1;
  transform: translateY(0);
  animation: linhaAparece 0.5s ease forwards;
}

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

.tabela-linha:hover {
  background: rgba(255, 255, 255, 0.02);
}

.tabela-linha:last-child {
  border-bottom: none;
}

/* Coluna Serviço */
.servico-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.servico-nome {
  color: var(--text-light);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
}

.servico-descricao {
  color: var(--text-gray);
  font-size: 0.95rem;
  font-weight: 300;
  margin: 0;
  line-height: 1.4;
}

.servico-nota {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--bronze);
  font-weight: 500;
  margin-top: 5px;
  font-style: italic;
}

/* Coluna Preço */
.preco-valor {
  display: block;
  color: var(--bronze-light);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  position: relative;
}

/* Nota Final */
.precos-nota {
  text-align: center;
  padding: 30px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--border-radius);
  border: 1px solid rgba(212, 160, 23, 0.1);
}

.precos-nota p {
  color: var(--text-gray);
  font-size: 0.95rem;
  margin: 5px 0;
  font-weight: 300;
}

.precos-nota p:first-child {
  color: var(--bronze-light);
  font-weight: 400;
}

/* ==================== RESPONSIVIDADE ==================== */

/* Desktop Médio */
@media (max-width: 1200px) {
  .tabela-header {
    gap: 20px;
    padding: 20px 25px;
  }

  .tabela-linha {
    gap: 20px;
    padding: 20px 25px;
  }
}

/* Tablet */
@media (max-width: 992px) {
  .precos-section {
    padding: 80px 20px;
  }

  .precos-titulo {
    font-size: 3rem;
  }

  .tabela-header {
    grid-template-columns: 1fr auto;
    padding: 20px;
  }

  .tabela-linha {
    grid-template-columns: 1fr auto;
    padding: 20px;
  }

  .col-preco {
    grid-column: 1;
    grid-row: 2;
    text-align: left;
    min-width: auto;
  }

  .tabela-header .col-preco {
    display: block;
  }

  .servico-nome {
    font-size: 1.2rem;
  }

  .preco-valor {
    font-size: 1.5rem;
    text-align: left;
  }
}

/* Mobile Grande */
@media (max-width: 768px) {
  .precos-section {
    padding: 60px 15px;
  }

  .precos-titulo {
    font-size: 2.5rem;
  }

  .precos-subtitulo {
    font-size: 1.1rem;
    padding: 0 10px;
  }

  .precos-filtros {
    gap: 10px;
    margin-bottom: 40px;
  }

  .filtro-precos-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .tabela-precos {
    border-radius: 12px;
  }

  .tabela-linha {
    padding: 18px 20px;
    gap: 15px;
  }

  .servico-nome {
    font-size: 1.1rem;
  }

  .servico-descricao {
    font-size: 0.9rem;
  }

  .preco-valor {
    font-size: 1.4rem;
  }
}

/* Mobile Pequeno */
@media (max-width: 576px) {
  .precos-section {
    padding: 50px 10px;
  }

  .precos-titulo {
    font-size: 2rem;
  }

  .precos-subtitulo {
    font-size: 1rem;
  }

  .precos-filtros {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 30px;
    -webkit-overflow-scrolling: touch;
  }

  .tabela-linha {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 20px;
  }

  .col-preco {
    grid-column: 1;
    grid-row: 2;
    text-align: left;
  }

  .servico-info {
    margin-bottom: 10px;
  }

  .servico-nome {
    font-size: 1.1rem;
  }

  .preco-valor {
    font-size: 1.6rem;
    text-align: left;
  }

  .precos-nota {
    padding: 15px;
  }

  .precos-nota p {
    font-size: 0.9rem;
  }
}

/* Mobile Muito Pequeno */
@media (max-width: 400px) {
  .precos-titulo {
    font-size: 1.8rem;
  }

  .tabela-linha {
    padding: 15px;
  }

  .servico-nome {
    font-size: 1rem;
  }

  .preco-valor {
    font-size: 1.5rem;
  }
}

/* Animações de Entrada */
.precos-header {
  animation: fadeInUp 0.8s ease-out;
}

.precos-filtros {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.tabela-precos-container {
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.precos-nota {
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

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

/* Stagger Animation para linhas */
.tabela-linha:nth-child(1) {
  animation-delay: 0.5s;
}
.tabela-linha:nth-child(2) {
  animation-delay: 0.55s;
}
.tabela-linha:nth-child(3) {
  animation-delay: 0.6s;
}
.tabela-linha:nth-child(4) {
  animation-delay: 0.65s;
}
.tabela-linha:nth-child(5) {
  animation-delay: 0.7s;
}
.tabela-linha:nth-child(6) {
  animation-delay: 0.75s;
}
.tabela-linha:nth-child(7) {
  animation-delay: 0.8s;
}
.tabela-linha:nth-child(8) {
  animation-delay: 0.85s;
}
.tabela-linha:nth-child(9) {
  animation-delay: 0.9s;
}
.tabela-linha:nth-child(10) {
  animation-delay: 0.95s;
}
.tabela-linha:nth-child(11) {
  animation-delay: 1s;
}
.tabela-linha:nth-child(12) {
  animation-delay: 1.05s;
}
.tabela-linha:nth-child(13) {
  animation-delay: 1.1s;
}
.tabela-linha:nth-child(14) {
  animation-delay: 1.15s;
}
.tabela-linha:nth-child(15) {
  animation-delay: 1.2s;
}
.tabela-linha:nth-child(16) {
  animation-delay: 1.25s;
}
.tabela-linha:nth-child(17) {
  animation-delay: 1.3s;
}
.tabela-linha:nth-child(18) {
  animation-delay: 1.35s;
}
.tabela-linha:nth-child(19) {
  animation-delay: 1.4s;
}
.tabela-linha:nth-child(20) {
  animation-delay: 1.45s;
}
.tabela-linha:nth-child(21) {
  animation-delay: 1.5s;
}
.tabela-linha:nth-child(22) {
  animation-delay: 1.55s;
}

/* Otimização de Performance */
@media (prefers-reduced-motion: reduce) {
  .precos-header,
  .precos-filtros,
  .tabela-precos-container,
  .precos-nota,
  .tabela-linha,
  .filtro-precos-btn {
    animation: none !important;
    transition: none !important;
  }

  .tabela-linha {
    opacity: 1;
    transform: none;
  }
}

/* Acessibilidade */
.filtro-precos-btn:focus {
  outline: 2px solid var(--bronze-light);
  outline-offset: 2px;
}

/* Estados de Filtro */
.tabela-linha.hidden {
  display: none;
  animation: none;
}

.tabela-linha.visible {
  display: grid;
  animation: linhaAparece 0.5s ease forwards;
}
