/* ============================================
   Carniceria Chihuahua — Custom Styles
   ============================================ */

/* Base */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

/* Selection */
::selection {
  background: #7B2D3B;
  color: #fefcfb;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #fdf8f5;
}
::-webkit-scrollbar-thumb {
  background: #d4a08a;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #7B2D3B;
}

/* Navigation */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #7B2D3B;
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}

/* Navbar scroll state */
nav.scrolled {
  background: rgba(254, 252, 251, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(123, 45, 59, 0.08);
}

/* Reveal animations */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-up.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* Hero decorative shapes */
.hero-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

/* Image hover effect */
.rounded-2xl overflow-hidden img {
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.rounded-2xl.overflow-hidden:hover img {
  transform: scale(1.05);
}

/* Service cards */
.group:hover .group-hover\!scale-110 {
  transform: scale(1.1);
}

/* Mobile menu */
#mobile-menu {
  animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Form focus styles */
input:focus,
textarea:focus {
  box-shadow: 0 0 0 4px rgba(123, 45, 59, 0.1);
}

/* Button ripple */
button, a {
  -webkit-tap-highlight-color: transparent;
}

/* Print */
@media print {
  nav, #hero .absolute.bottom-8, footer {
    display: none;
  }
  body {
    background: white;
    color: black;
  }
}
