/* Animation System */
.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Delay Utilities for Staggered Animations */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }

/* Focus Visible */
*:focus-visible {
  outline: 2px solid var(--color-gold-primary);
  outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .site-footer,
  .whatsapp-float-btn,
  .mobile-nav-drawer,
  .lightbox {
    display: none !important;
  }

  body {
    background: transparent !important;
    color: #000 !important;
    font-size: 12pt;
  }

  .container-custom {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  
  img {
    page-break-inside: avoid;
    max-width: 100% !important;
  }
}

/* Mobile-specific Hero Override */
@media (max-width: 767px) {
  .hero-editorial-gradient {
    background: linear-gradient(to top, rgba(24,23,20,0.85) 0%, rgba(24,23,20,0.4) 50%, rgba(24,23,20,0.15) 100%);
  }

  .hero-editorial-content {
    left: 6%;
    right: 6%;
    bottom: 10%;
    max-width: none;
  }

  .hero-editorial-title {
    font-size: clamp(2.2rem, 8vw, 2.8rem);
  }
}

/* Root Mobile Layout & Overflow Prevention */
html, body {
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: border-box;
}

@media (max-width: 767px) {
  .container-custom {
    padding-left: 20px !important;
    padding-right: 20px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Form & inputs strict constraints */
  input, select, textarea, button {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Appointment store details card & image */
  .image-portrait-4-5 {
    aspect-ratio: 3 / 2 !important;
  }

  /* Form container padding on mobile */
  .lg\:col-span-7.bg-white {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* Responsive headings */
  h1, .h1 {
    font-size: clamp(2rem, 8vw, 2.75rem) !important;
    line-height: 1.15 !important;
  }

  h2, .h2 {
    font-size: clamp(1.75rem, 6.5vw, 2.25rem) !important;
    line-height: 1.2 !important;
  }

  /* Footer one-column layout on mobile */
  .footer-columns {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  .footer-bottom-divider {
    flex-direction: column !important;
    text-align: center;
    gap: 16px;
  }

  .footer-legal-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
}
