/* ===== VARIÁVEIS E CONFIGURAÇÕES GLOBAIS ===== */
:root {
  --bg-dark: #000000;
  --text-light: #ffffff;
  --gold-primary: #d4af37; /* Dourado mais escuro e elegante */
  --gold-secondary: #b8941f; /* Dourado ainda mais escuro para hover */
  --gold-light: #f5d76e; /* Dourado claro para detalhes */
  --whatsapp-green: #25D366;
  --shadow-gold: 0 0 10px rgba(212, 175, 55, 0.5);
  --shadow-gold-intense: 0 0 20px rgba(212, 175, 55, 0.7);
  --transition-standard: all 0.3s ease;
}

/* ===== ESTILOS GLOBAIS ===== */
body.bg-black {
  background-color: var(--bg-dark) !important;
  color: var(--text-light);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ===== CORES PERSONALIZADAS ===== */
.text-gold {
  color: var(--gold-primary) !important;
  font-weight: 600;
}

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

/* ===== BOTÕES ANIMADOS ===== */
.btn-warning.pulsante {
  animation: pulseBtn 1.5s infinite;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-secondary));
  border: none;
  color: #000 !important;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: var(--transition-standard);
  box-shadow: var(--shadow-gold);
}

.btn-warning.pulsante:hover {
  background: linear-gradient(135deg, var(--gold-secondary), var(--gold-primary));
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-gold-intense);
  color: #000 !important;
}

.btn-warning.pulsante:active {
  transform: translateY(0) scale(0.98);
}

@keyframes pulseBtn {
  0%, 100% { 
    box-shadow: var(--shadow-gold); 
  }
  50% { 
    box-shadow: var(--shadow-gold-intense); 
  }
}

/* ===== FORMULÁRIOS ===== */
.form-control, .form-select {
  background-color: #1a1a1a;
  border: 1px solid #333;
  color: var(--text-light);
  transition: var(--transition-standard);
}

.form-control:focus, .form-select:focus {
  background-color: #2a2a2a;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
  color: var(--text-light);
}

.form-control::placeholder {
  color: #888;
}

.form-label.text-gold {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--gold-primary) !important;
}

/* Validação do formulário */
.form-control:invalid, .form-select:invalid {
  border-color: #dc3545;
}

.form-control:valid, .form-select:valid {
  border-color: var(--gold-primary);
}

.invalid-feedback {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* ===== CARROSSEL ===== */
.carousel {
  position: relative;
}

.carousel-inner {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Desktop - Carrossel menor */
@media (min-width: 992px) {
  .carousel-inner {
    max-width: 80%;
    margin: 0 auto;
    max-height: 500px; /* Altura máxima reduzida */
  }
  
  .carousel-item img {
    height: 500px;
    object-fit: cover;
    object-position: center;
  }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 991px) {
  .carousel-inner {
    max-width: 90%;
    margin: 0 auto;
    max-height: 450px;
  }
  
  .carousel-item img {
    height: 450px;
    object-fit: cover;
    object-position: center;
  }
}

/* Mobile - Mantém o tamanho original */
@media (max-width: 767px) {
  .carousel-inner {
    max-width: 100%;
    max-height: none;
  }
  
  .carousel-item img {
    height: auto;
    max-height: 400px;
    object-fit: cover;
    object-position: center;
  }
}

.carousel-indicators button {
  background-color: var(--gold-primary);
  opacity: 0.5;
  transition: var(--transition-standard);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 6px;
}

.carousel-indicators button.active {
  opacity: 1;
  transform: scale(1.2);
}

.carousel-control-prev,
.carousel-control-next {
  width: 60px;
  opacity: 0.8;
  transition: var(--transition-standard);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(212, 175, 55, 0.8);
  border-radius: 50%;
  padding: 15px;
  transition: var(--transition-standard);
  width: 40px;
  height: 40px;
  background-size: 20px 20px;
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
  background-color: var(--gold-primary);
  transform: scale(1.1);
}

/* ===== ALERTAS ===== */
.alert-floating {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  z-index: 1060;
  min-width: 300px;
  max-width: 90%;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.4s ease-in-out;
  opacity: 0;
  border: 1px solid var(--gold-primary);
}

.alert-warning {
  background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
}

.alert-success {
  background: linear-gradient(135deg, #1a2a1a, #0a1a0a);
  border: 1px solid #198754;
  color: #90ee90;
}

.alert-danger {
  background: linear-gradient(135deg, #2a1a1a, #1a0a0a);
  border: 1px solid #dc3545;
  color: #f8a5a5;
}

.alert-floating.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.alert-floating .btn-close {
  padding: 0.75rem;
  margin-left: 0.5rem;
  filter: invert(1);
}

/* ===== RODAPÉ ===== */
footer {
  border-top: 1px solid var(--gold-primary);
  margin-top: 2rem;
  background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
}

/* Texto do copyright em branco */
footer p.text-white {
  color: var(--text-light) !important;
  font-weight: 500;
}

/* ===== ESTILOS PARA AS REDES SOCIAIS - ÍCONES SEM TEXTO ===== */
.social-links {
  margin-top: 1rem;
}

.social-link {
  text-decoration: none;
  color: var(--gold-primary) !important;
  transition: var(--transition-standard);
  padding: 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
}

.social-link:hover {
  color: var(--gold-light) !important;
  transform: translateY(-3px);
  background: rgba(255, 193, 7, 0.1);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.social-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Container das redes sociais lado a lado */
.social-links .d-flex {
  flex-direction: row !important;
  gap: 20px !important;
  justify-content: center;
  flex-wrap: wrap;
}

/* Tamanho dos ícones */
.social-link svg {
  width: 32px;
  height: 32px;
  transition: var(--transition-standard);
}

.social-link:hover svg {
  transform: scale(1.1);
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.6));
}

@media (max-width: 576px) {
  .social-links .d-flex {
    gap: 15px !important;
  }
  
  .social-link {
    width: 45px;
    height: 45px;
    padding: 10px;
  }
  
  .social-link svg {
    width: 28px;
    height: 28px;
  }
}

/* ===== LOGOTIPO ===== */
.logo {
  max-width: 180px;
  height: auto;
  display: block;
  margin: 0 auto;
  transition: var(--transition-standard);
}

.logo:hover {
  transform: scale(1.05);
}

/* ===== WHATSAPP FLUTUANTE - VERDE VAZADO NO PRETO ===== */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background: #000000;
  border-radius: 50%;
  padding: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: var(--transition-standard);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 2px solid var(--whatsapp-green);
}

.whatsapp-float svg {
  width: 34px;
  height: 34px;
  color: var(--whatsapp-green);
  transition: var(--transition-standard);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
  border-color: #128C7E;
  background: rgba(37, 211, 102, 0.1);
}

.whatsapp-float:hover svg {
  transform: rotate(10deg);
  color: #128C7E;
}

/* ===== MODAL DE CARREGAMENTO ===== */
#loaderModal {
  opacity: 1;
  transition: opacity 0.4s ease;
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.9);
}

#loaderModal p {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--gold-primary);
  animation: pulseText 1.5s ease-in-out infinite;
  margin-top: 1rem;
  text-align: center;
}

@keyframes pulseText {
  0%, 100% { 
    opacity: 1; 
  }
  50% { 
    opacity: 0.6; 
  }
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ===== TÍTULOS ===== */
h1, h2, h3, h4, h5, h6 {
  color: var(--gold-primary);
  font-weight: 700;
}

h1.text-gold {
  text-shadow: 0 2px 4px rgba(212, 175, 55, 0.3);
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== ESTILOS PARA O MODAL DE CONFIRMAÇÃO ===== */
.modal-content {
  border: 2px solid var(--gold-primary);
  border-radius: 15px;
  background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
  animation: modalSlideIn 0.5s ease-out;
}

@keyframes modalSlideIn {
  0% {
    transform: translateY(-50px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  border-bottom: 1px solid var(--gold-primary);
  background: rgba(212, 175, 55, 0.1);
  padding: 1.5rem;
}

.modal-body {
  padding: 2rem;
  text-align: center;
}

.modal-footer {
  border-top: 1px solid var(--gold-primary);
  background: rgba(212, 175, 55, 0.05);
  padding: 1.5rem;
}

.modal-title.text-gold {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.3rem;
}

.btn-close-white {
  filter: invert(1) grayscale(100%) brightness(200%);
}

/* Ícone de sucesso maior */
.modal-body svg {
  width: 80px;
  height: 80px;
  margin-bottom: 1rem;
  animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Texto do modal mais legível */
.modal-body h4 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #28a745;
}

.modal-body p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.modal-body .alert-info {
  background: rgba(13, 110, 253, 0.1);
  border: 1px solid rgba(13, 110, 253, 0.3);
  color: #90caf9;
  font-size: 0.95rem;
  text-align: center;
}

.modal-body .alert-info small {
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Botão do modal */
.modal-footer .btn-warning {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-secondary));
  border: none;
  color: #000;
  font-weight: 600;
  padding: 12px 30px;
  font-size: 1.1rem;
  transition: var(--transition-standard);
  border-radius: 8px;
}

.modal-footer .btn-warning:hover {
  background: linear-gradient(135deg, var(--gold-secondary), var(--gold-primary));
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold-intense);
}

/* ===== BARRA DE PROGRESSO - 10 SEGUNDOS ===== */
.modal-progress {
  height: 4px;
  background: #333;
  border-radius: 2px;
  margin-top: 1rem;
  overflow: hidden;
}

.modal-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-primary), var(--gold-light));
  width: 100%;
  animation: progressBar 10s linear forwards; /* 10 SEGUNDOS */
}

@keyframes progressBar {
  0% {
    width: 100%;
  }
  100% {
    width: 0%;
  }
}

/* Animações suaves para o modal */
.modal.fade .modal-dialog {
  transform: scale(0.8) translateY(-50px);
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
  opacity: 0;
}

.modal.show .modal-dialog {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
  .logo {
    max-width: 150px;
  }
  
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }
  
  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
  
  .reveal {
    transform: translateY(20px);
  }

  .alert-floating {
    min-width: 280px;
    top: 15px;
  }
  
  .modal-body {
    padding: 1.5rem;
  }
  
  .modal-body h4 {
    font-size: 1.3rem;
  }
  
  .modal-body p {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .logo {
    max-width: 120px;
  }
  
  #loaderModal p {
    font-size: 1rem;
  }

  .alert-floating {
    min-width: 250px;
    top: 10px;
  }
  
  .modal-dialog {
    margin: 20px;
  }
  
  .modal-body {
    padding: 1.2rem;
  }
  
  .modal-body h4 {
    font-size: 1.2rem;
  }
  
  .modal-body p {
    font-size: 0.95rem;
  }
  
  .modal-body svg {
    width: 60px;
    height: 60px;
  }
  
  .modal-footer .btn-warning {
    padding: 10px 20px;
    font-size: 1rem;
  }
}

/* ===== ACESSIBILIDADE ===== */
@media (prefers-reduced-motion: reduce) {
  .btn-warning.pulsante,
  .whatsapp-float,
  .reveal,
  #loaderModal p,
  .alert-floating,
  .logo,
  .modal.fade .modal-dialog,
  .modal-body svg,
  .modal-progress-bar,
  .social-link {
    animation: none;
    transition: none;
  }
  
  .whatsapp-float:hover,
  .btn-warning.pulsante:hover,
  .modal-footer .btn-warning:hover,
  .social-link:hover {
    transform: none;
  }
  
  .modal-progress-bar {
    animation: none;
    width: 100%;
  }
}

/* ===== ESTADOS DE FOCUS ===== */
.btn:focus,
.form-control:focus,
.form-select:focus,
.whatsapp-float:focus,
.social-link:focus {
  outline: 2px solid var(--gold-primary);
  outline-offset: 2px;
}

/* ===== MELHORIAS VISUAIS ADICIONAIS ===== */
.container {
  position: relative;
}

.container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

/* Efeito de brilho nos elementos dourados */
.glow-effect {
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* Transições suaves para todos os elementos interativos */
a, button, .form-control, .form-select {
  transition: var(--transition-standard);
}

/* Espaçamento consistente */
section.container {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* Melhorias no formulário para mobile */
@media (max-width: 576px) {
  .form-control, .form-select {
    font-size: 16px; /* Previne zoom no iOS */
  }
  
  .btn-warning.pulsante {
    padding: 12px 24px;
    font-size: 1.1rem;
  }
}

/* Contador visual opcional para o modal */
.modal-timer {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(212, 175, 55, 0.2);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
  color: var(--gold-primary);
  border: 1px solid var(--gold-primary);
}

/* Efeitos de loading melhorados */
.spinner-border {
  color: var(--gold-primary);
}

/* Melhorias de performance */
* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
}

/* Suporte para dark mode do sistema */
@media (prefers-color-scheme: dark) {
  body.bg-black {
    background-color: var(--bg-dark) !important;
  }
}

/* Print styles */
@media print {
  .whatsapp-float,
  .alert-floating,
  .modal,
  .social-links {
    display: none !important;
  }
}

/* ===== SECTION DO GOOGLE MAPS ===== */
.maps-section {
  background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
  border-top: 1px solid var(--gold-primary);
  border-bottom: 1px solid var(--gold-primary);
}

.maps-section h2 {
  font-size: 2.2rem;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.maps-section .text-gold-light {
  font-size: 1.1rem;
  font-weight: 400;
}

.maps-container {
  position: relative;
  border: 2px solid var(--gold-primary);
  box-shadow: var(--shadow-gold-intense);
  transition: var(--transition-standard);
}

.maps-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.4);
}

.maps-container iframe {
  display: block;
  filter: grayscale(20%) contrast(110%);
  transition: filter 0.3s ease;
}

.maps-container:hover iframe {
  filter: grayscale(0%) contrast(100%);
}

.maps-info {
  padding: 1rem 0;
}

.info-item {
  padding: 1.5rem;
  background: rgba(212, 175, 55, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  transition: var(--transition-standard);
  height: 100%;
}

.info-item:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--gold-primary);
  transform: translateY(-3px);
}

.info-item h5 {
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.info-item p {
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Responsividade do Maps */
@media (max-width: 768px) {
  .maps-section h2 {
    font-size: 1.8rem;
  }
  
  .maps-section .text-gold-light {
    font-size: 1rem;
  }
  
  .maps-container iframe {
    height: 350px;
  }
  
  .info-item {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .info-item h5 {
    font-size: 1rem;
  }
  
  .info-item p {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .maps-section {
    padding: 3rem 0;
  }
  
  .maps-section h2 {
    font-size: 1.6rem;
  }
  
  .maps-container iframe {
    height: 300px;
  }
  
  .info-item {
    padding: 0.8rem;
  }
}

/* Efeito de brilho no título do maps */
.maps-section h2.text-gold {
  position: relative;
  display: inline-block;
}

.maps-section h2.text-gold::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
  border-radius: 2px;
}

/* Animação de entrada para a section do maps */
.maps-section.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.maps-section.reveal.active {
  opacity: 1;
  transform: translateY(0);
}