/* Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary);
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 10000;
}

.skip-link:focus {
  top: 0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}

/* Footer */
.site-footer {
  background: var(--color-dark);
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 4rem;
}

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

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  text-decoration: none;
  transition: all 0.3s ease;
  animation: whatsappPulse 2s infinite;
}

@keyframes whatsappPulse {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6);
    transform: scale(1.05);
  }
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 5px 25px rgba(37, 211, 102, 0.6);
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  background: var(--color-primary);
  color: white;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 20px rgba(217, 53, 53, 0.3);
  z-index: 1000;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(217, 53, 53, 0.4);
}

/* Commercial Tab */
.commercial-tab {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: white;
  padding: 15px 10px;
  text-decoration: none;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  border-radius: 0 10px 10px 0;
  box-shadow: 2px 0 15px rgba(0, 0, 0, 0.2);
  z-index: 999;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
  from {
    left: -100px;
  }
  to {
    left: 0;
  }
}

.commercial-tab:hover {
  transform: translateY(-50%) translateX(5px);
  box-shadow: 3px 0 20px rgba(0, 0, 0, 0.3);
}

.commercial-tab span {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
}

.commercial-tab i {
  writing-mode: horizontal-tb;
  font-size: 20px;
}

@media (max-width: 768px) {
  .commercial-tab {
    writing-mode: horizontal-tb;
    left: 50%;
    top: 20px;
    bottom: auto;
    transform: translateX(-50%) translateY(-100px);
    padding: 10px 20px;
    border-radius: 50px;
    flex-direction: row;
    gap: 8px;
    opacity: 0;
    animation: slideDownMobile 0.5s ease-out 3s forwards;
  }

  @keyframes slideDownMobile {
    from {
      transform: translateX(-50%) translateY(-100px);
      opacity: 0;
    }
    to {
      transform: translateX(-50%) translateY(0);
      opacity: 1;
    }
  }

  .commercial-tab span {
    writing-mode: horizontal-tb;
    font-size: 12px;
  }

  .commercial-tab i {
    font-size: 16px;
  }

  .commercial-tab:hover {
    transform: translateX(-50%) translateY(-2px);
  }

  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 24px;
    bottom: 20px;
    right: 20px;
  }

  .back-to-top {
    width: 40px;
    height: 40px;
    font-size: 16px;
    bottom: 20px;
    left: 20px;
  }
}

/* Popups */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.popup-content {
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.98), rgba(10, 10, 10, 0.98));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid var(--color-primary);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
  transform: scale(0.8);
  transition: transform 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(217, 53, 53, 0.2);
}

.popup-overlay.active .popup-content {
  transform: scale(1);
}

.popup-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  color: var(--color-light);
  font-size: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.popup-close:hover {
  background: rgba(217, 53, 53, 0.2);
  transform: rotate(90deg);
}

.popup-content h3 {
  color: var(--color-light);
  font-size: 1.8rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.popup-content p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.popup-cta {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 5px 20px rgba(37, 211, 102, 0.3);
}

.popup-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

.popup-cta i {
  font-size: 1.2rem;
}

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

.idle-popup .popup-content {
  animation: popupFadeIn 0.5s ease-out;
}

.exit-popup .popup-content {
  animation: popupFadeIn 0.3s ease-out;
}

/* LGPD Cookie Consent */
.lgpd-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9997;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.lgpd-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lgpd-popup {
  position: fixed;
  max-width: 300px;
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8),
              0 0 0 2px rgba(217, 53, 53, 0.5);
  z-index: 9998;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: none;
}

.lgpd-popup.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 768px) {
  .lgpd-popup {
    bottom: 20px;
    left: 20px;
  }
}

@media (max-width: 767px) {
  .lgpd-popup {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: calc(100% - 40px);
    max-width: 300px;
  }

  .lgpd-popup.active {
    transform: translateX(-50%) translateY(0);
  }
}

.lgpd-icon {
  text-align: center;
  font-size: 32px;
  color: var(--color-primary);
  margin-bottom: 15px;
  animation: cookieBite 2s infinite;
  filter: drop-shadow(0 0 10px rgba(217, 53, 53, 0.5));
}

@keyframes cookieBite {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-5deg); }
  75% { transform: rotate(5deg); }
}

.lgpd-text {
  margin-bottom: 15px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

.lgpd-text strong {
  font-size: 14px;
  color: var(--color-primary);
  text-shadow: 0 0 10px rgba(217, 53, 53, 0.3);
}

.lgpd-text a {
  color: var(--color-primary);
  text-decoration: underline;
  font-weight: 500;
  transition: all 0.3s ease;
}

.lgpd-text a:hover {
  text-decoration: none;
  text-shadow: 0 0 10px rgba(217, 53, 53, 0.5);
}

.lgpd-buttons {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.lgpd-buttons button {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.lgpd-accept {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: white;
  position: relative;
  overflow: hidden;
}

.lgpd-accept::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.lgpd-accept:hover::before {
  left: 100%;
}

.lgpd-accept:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(217, 53, 53, 0.5),
              0 0 30px rgba(255, 0, 86, 0.3);
}

.lgpd-reject {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.lgpd-reject:hover {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  border-color: rgba(217, 53, 53, 0.5);
}

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