/* Custom styles supplementing Tailwind CSS */

/* Ensure smooth rendering */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Selection color */
::selection {
  background: rgba(212, 175, 55, 0.3);
  color: #faf8f4;
}

/* Focus visible styles */
:focus-visible {
  outline: 2px solid #d4af37;
  outline-offset: 2px;
}

/* Select dropdown arrow */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4af37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

/* Subtle image hover effect */
.img-reveal img {
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Smooth transitions for all interactive elements */
a, button {
  transition: all 0.2s ease;
}

/* Prevent layout shift on image load */
img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* 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 img {
    transition: none;
  }
}

/* Print styles */
@media print {
  nav,
  #backToTop,
  .service-card,
  .img-reveal {
    display: none;
  }

  body {
    background: white;
    color: #1a1a1a;
  }

  a {
    color: #1a1a1a;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .service-card {
    border-width: 2px;
  }

  .border-gold-500\/20 {
    border-color: rgba(212, 175, 55, 0.6);
  }
}

/* Landscape on mobile */
@media (max-width: 640px) and (orientation: landscape) {
  .min-h-screen {
    min-height: auto;
    padding-top: 6rem;
    padding-bottom: 3rem;
  }
}

/* Large screen optimizations */
@media (min-width: 1280px) {
  .reveal-hidden {
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
}
