/* Custom styles for Paz Redes de Proteção */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* WhatsApp button slow bounce animation */
@keyframes bounce-slow {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.animate-bounce-slow {
  animation: bounce-slow 3s ease-in-out infinite;
}

.animate-bounce-slow:hover {
  animation: none;
}

/* Line clamp for blog excerpts */
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #001FE4;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #0018B0;
}

/* Selection color */
::selection {
  background: #001FE4;
  color: white;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #001FE4;
  outline-offset: 2px;
}

/* Gallery item hover overlay */
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: transparent;
  transition: background 0.3s ease;
}

.gallery-item:hover::after {
  background: rgba(0, 31, 228, 0.1);
}

/* Navbar transition on scroll */
nav {
  transition: box-shadow 0.3s ease;
}

/* Image loading placeholder */
img {
  background-color: #f3f4f6;
}

/* Phone number no-wrap */
a[href^="tel:"] {
  white-space: nowrap;
}

/* Prose styles for blog articles */
.prose p {
  margin-bottom: 1rem;
}

.prose h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.prose ul {
  list-style: none;
  padding: 0;
}

/* Mobile tap highlight */
@media (hover: none) {
  a, button {
    -webkit-tap-highlight-color: rgba(0, 31, 228, 0.1);
  }
}

/* Print styles */
@media print {
  nav,
  .fixed,
  footer,
  .bg-primary {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: black;
  }
}
