/* Custom styles that complement Tailwind for Trihealth */

/* Smooth scroll offset for fixed nav */
html {
  scroll-padding-top: 80px;
}

/* Selection color */
::selection {
  background: rgba(201, 168, 76, 0.3);
  color: #f8f6f0;
}

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

/* Image loading placeholder */
img {
  background: linear-gradient(135deg, #0f2a1a, #153d25);
}

/* Subtle grain texture overlay on body */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Hero image parallax-like subtle effect */
@media (prefers-reduced-motion: no-preference) {
  .hero-asymmetric img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
}

/* Gold shimmer on hover for service cards */
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, transparent 40%, rgba(201, 168, 76, 0.03) 50%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card {
  position: relative;
  overflow: hidden;
}

.service-card:hover::after {
  opacity: 1;
}

/* Decorative corner accents on testimonial cards */
.testimonial-card {
  position: relative;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  border-top: 2px solid rgba(201, 168, 76, 0.15);
  border-right: 2px solid rgba(201, 168, 76, 0.15);
  border-radius: 0 12px 0 0;
}

/* Ensure all interactive elements have proper cursor */
a, button {
  cursor: pointer;
}

/* Reduce motion preference */
@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;
  }

  .pulse-gold {
    animation: none;
  }
}

/* Print styles */
@media print {
  nav, .mobile-menu, #menuOverlay, .pulse-gold {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
  }

  .hero-asymmetric {
    grid-template-columns: 1fr !important;
  }
}
