/* Custom styles beyond Tailwind */

/* Smooth focus outlines for accessibility */
*:focus-visible {
  outline: 2px solid #c23550;
  outline-offset: 2px;
}

/* Selection color */
::selection {
  background: #fce7eb;
  color: #822139;
}

/* Custom underline animation for line-reveal */
.line-reveal {
  position: relative;
  display: inline-block;
}

/* Mobile menu overlay backdrop */
.mobile-menu::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(254, 253, 251, 0.5);
  backdrop-filter: blur(4px);
  z-index: -1;
}

/* Service card subtle border animation */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #c23550, #f4a7b8);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card:hover::before {
  transform: scaleX(1);
}

/* Gallery image hover effect */
#gallery .img-reveal img {
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Form select arrow customization */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a89f95' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 2rem;
}

/* Reduced motion support */
@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;
  }
  
  .img-reveal {
    opacity: 1;
    transform: none;
  }
  
  .service-card:hover {
    transform: none;
  }
  
  #gallery .img-reveal img {
    transform: none;
  }
}
