/* Custom styles supplementing Tailwind */

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

/* Selection color */
::selection {
  background: rgba(240, 72, 60, 0.2);
  color: #111113;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #111113;
}
::-webkit-scrollbar-thumb {
  background: #3f3f46;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #52525b;
}

/* Nav height transition */
.nav {
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

/* Mobile menu overlay */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.menu-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Hero text reveal animation */
.hero-bg .reveal {
  animation: heroReveal 0.8s ease forwards;
}
.hero-bg .reveal:nth-child(2) { animation-delay: 0.15s; }
.hero-bg .reveal:nth-child(3) { animation-delay: 0.3s; }
.hero-bg .reveal:nth-child(4) { animation-delay: 0.45s; }

@keyframes heroReveal {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Image aspect ratio helper */
.ratio-4-3 {
  aspect-ratio: 4 / 3;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg .reveal { animation: none; opacity: 1; transform: none; }
  .service-card:hover { transform: none; }
  .group:hover img { transform: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
