/* Custom styles that complement Tailwind */

/* Smooth focus outlines for accessibility */
*:focus-visible {
  outline: 2px solid #f04a38;
  outline-offset: 2px;
}

/* Selection color */
::selection {
  background: rgba(240, 74, 56, 0.3);
  color: #fff;
}

/* Prevent layout shift on images */
img {
  max-width: 100%;
  height: auto;
}

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

/* Ensure hero is always visible */
#hero {
  min-height: 100vh;
  min-height: 100dvh;
}

/* Navbar scroll state */
.nav-scrolled {
  background: rgba(20, 20, 28, 0.97) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Mobile menu transition */
#mobile-menu {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.3s ease;
}

#mobile-menu.open {
  max-height: 400px;
  opacity: 1;
}

#mobile-menu.closed {
  max-height: 0;
  opacity: 0;
}

/* Hamburger animation */
.menu-line {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#menu-toggle.active .menu-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

#menu-toggle.active .menu-line:nth-child(2) {
  opacity: 0;
}

#menu-toggle.active .menu-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
  width: 1.4rem;
  margin-left: 0;
}

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

/* Print styles */
@media print {
  header, #contact, .coral-bar { background: white !important; color: black !important; }
  body { background: white !important; color: black !important; }
}
