/* Additional custom styles beyond Tailwind */

/* Prevent horizontal overflow on all devices */
html, body {
  overflow-x: hidden;
}

/* Smooth scroll offset for fixed header */
html {
  scroll-padding-top: 80px;
}

/* Hero image — breathing pulse */
.hero-image-pulse {
  animation: imagePulse 4s ease-in-out infinite;
  will-change: transform;
}

@keyframes imagePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Hero overlay — dark bordô, high opacity */
.hero-overlay {
  background: rgba(45, 10, 18, 0.92);
}

/* Legacy blob class (kept for other uses) */
@keyframes blob {
  0%, 100% {
    transform: translate(0px, 0px) scale(1);
  }
  33% {
    transform: translate(30px, -50px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

.animate-blob {
  animation: blob 7s infinite;
}

.animation-delay-2000 {
  animation-delay: 2s;
}

.animation-delay-4000 {
  animation-delay: 4s;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .hero-image-pulse {
    animation: none !important;
  }
}

/* Fade in animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animation-delay-200 {
  animation-delay: 0.2s;
  opacity: 0;
}

.animation-delay-400 {
  animation-delay: 0.4s;
  opacity: 0;
}

.animation-delay-600 {
  animation-delay: 0.6s;
  opacity: 0;
}

.animation-delay-800 {
  animation-delay: 0.8s;
  opacity: 0;
}

.animation-delay-1000 {
  animation-delay: 1s;
  opacity: 0;
}

.animation-delay-1200 {
  animation-delay: 1.2s;
  opacity: 0;
}

/* Gradient animation */
@keyframes gradient {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.animate-gradient {
  background-size: 200% 200%;
  animation: gradient 3s ease infinite;
}

/* Attorney card hover effect */
.attorney-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.attorney-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 25px 50px -12px rgba(122, 27, 46, 0.2);
}

/* Service card animations */
.service-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(122, 27, 46, 0.1);
}

/* Cookie banner slide-in animation */
@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-banner {
  animation: slideUp 0.5s ease-out;
}

/* Form focus styles with bordô accent */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #7A1B2E;
  box-shadow: 0 0 0 3px rgba(122, 27, 46, 0.2);
}

/* Pulse animation for CTA buttons */
@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(122, 27, 46, 0.5);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(122, 27, 46, 0);
  }
}

.pulse {
  animation: pulse 2s infinite;
}

/* Smooth transitions for all interactive elements */
a, button {
  transition: all 0.3s ease;
}

/* Glass morphism effect */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Header WhatsApp button pulse */
.header-whatsapp-pulse {
  animation: headerPulse 2.5s ease-in-out infinite;
}

@keyframes headerPulse {
  0%, 100% {
    box-shadow: 0 4px 6px rgba(37, 211, 102, 0.3);
  }
  50% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.6);
  }
}

/* WhatsApp floating button sonar animation */
@keyframes sonar {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.whatsapp-float {
  animation: sonar 2s infinite;
}

.whatsapp-float:hover {
  animation: none;
}

/* Service item card hover */
.service-item-card {
  transition: all 0.3s ease;
}

.service-item-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(122, 27, 46, 0.08);
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }

  body {
    background: white;
  }
}

/* Responsive typography improvements */
@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

@media (min-width: 1024px) {
  html {
    font-size: 18px;
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #FDF8F5;
}

::-webkit-scrollbar-thumb {
  background: #7A1B2E;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #9B2C3F;
}

/* ================================================
   METALLIC GOLD SYSTEM
   Refined gold-foil effect for icons and accents.
   Uses CSS gradients to simulate light catching
   brushed metal at a diagonal angle.
   ================================================ */

/* Metallic gold text — gradient clipped to text */
.gold-metallic {
  background: linear-gradient(
    135deg,
    #D4A843 0%,
    #F5CB4F 25%,
    #B8860B 45%,
    #FDF0C4 55%,
    #D4A843 70%,
    #8B6508 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Metallic gold SVG icons — warm gold with subtle glow */
.icon-gold-metallic {
  color: #D4A843;
  filter: drop-shadow(0 0 2px rgba(212, 168, 67, 0.4));
}

/* Metallic gold divider line */
.divider-gold-metallic {
  background: linear-gradient(
    90deg,
    #8B6508 0%,
    #D4A843 20%,
    #FDF0C4 50%,
    #D4A843 80%,
    #8B6508 100%
  );
}

/* Selection color */
::selection {
  background-color: #F9CED6;
  color: #3D0C17;
}

::-moz-selection {
  background-color: #F9CED6;
  color: #3D0C17;
}
