/* Custom styles beyond Tailwind */

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

/* Selection color */
::selection {
  background-color: #99f6e4;
  color: #134e4a;
}

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

/* Mobile menu animation */
#mobile-menu {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
}

#mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
}

#mobile-menu.closed {
  transform: translateX(100%);
  opacity: 0;
}

/* Navbar scroll state */
nav.scrolled {
  box-shadow: 0 1px 20px rgba(20, 184, 166, 0.08);
}

/* Smooth image loading */
img {
  image-rendering: auto;
}

/* 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; }
}

/* Tablet adjustments */
@media (max-width: 768px) {
  .hero-img-wrapper {
    aspect-ratio: 4/3;
  }
}

/* Large desktop */
@media (min-width: 1024px) {
  .hero-img-wrapper {
    aspect-ratio: auto;
    height: 100%;
  }
}
