/* Custom styles that complement Tailwind — minimal, targeted overrides */

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

/* Selection color */
::selection {
  background: rgba(45, 212, 191, 0.3);
  color: #ffffff;
}

/* Focus visible for accessibility */
:focus-visible {
  outline: 2px solid #2dd4bf;
  outline-offset: 2px;
}

/* 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;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .slow-rotate, .truck-bounce, .pulse-ring {
    animation: none !important;
  }
}

/* Print styles */
@media print {
  nav, .mobile-menu, #menuOverlay, footer {
    display: none !important;
  }
  body {
    background: white !important;
    color: black !important;
  }
  section {
    page-break-inside: avoid;
  }
}

/* Ensure images don't overflow */
img {
  max-width: 100%;
  height: auto;
}

/* Smooth focus for anchor links */
:focus {
  outline: none;
}

/* Custom select arrow */
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='%239aa3d6' 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 1rem center;
  padding-right: 2.5rem;
}

/* Ensure the hero image loads without shift */
#hero img {
  will-change: transform;
}

/* Subtle glow effect for mint elements */
.shadow-mint {
  box-shadow: 0 0 40px rgba(45, 212, 191, 0.15);
}

/* Gradient text utility */
.text-gradient-mint {
  background: linear-gradient(135deg, #2dd4bf, #5eead4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
