/* Custom styles that complement Tailwind CSS */

/* Smooth font rendering */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Selection color */
::selection {
  background-color: #a66d8c;
  color: #f9f5f7;
}

/* Focus visible styles */
:focus-visible {
  outline: 2px solid #fbbf24;
  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;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* Print styles */
@media print {
  header,
  footer,
  #back-to-top {
    display: none;
  }
  
  body {
    color: #1c1917;
    background: white;
  }
  
  a {
    color: #4a2c3a;
  }
}

/* High contrast mode support */
@media (forced-colors: active) {
  .btn-primary {
    border: 2px solid currentColor;
  }
}

/* Smooth image loading */
img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Custom focus ring for form inputs */
input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(166, 109, 140, 0.2);
}

/* Navbar scroll state */
.navbar-scrolled {
  box-shadow: 0 4px 20px rgba(74, 44, 58, 0.1) !important;
}

/* Mobile menu open state */
.mobile-menu.open {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hamburger animation */
#menu-toggle.active #bar1 {
  transform: rotate(45deg) translate(5px, 5px);
}

#menu-toggle.active #bar2 {
  opacity: 0;
}

#menu-toggle.active #bar3 {
  transform: rotate(-45deg) translate(5px, -5px);
}
