/* Custom styles that extend beyond Tailwind */

:root {
  --terra-50: #faf0eb;
  --terra-100: #f0d5c8;
  --terra-500: #a84e2e;
  --terra-600: #8a3a1f;
  --terra-700: #6d2c18;
  --terra-800: #552314;
  --terra-900: #3d1a0e;
  --sand-50: #fdfbf7;
  --sand-100: #f9f3e8;
  --sand-200: #f2e6cc;
  --sand-300: #e9d3a8;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--sand-50);
  color: var(--terra-900);
}

/* Reduced motion support for scroll reveals */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
  .reveal {
    transition: none;
  }
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--terra-500);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Smooth image rendering */
img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Selection color */
::selection {
  background-color: var(--terra-200);
  color: var(--terra-900);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--sand-100);
}
::-webkit-scrollbar-thumb {
  background: var(--terra-300);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--terra-500);
}

/* Subtle hover lift for service cards */
.group:hover .group-hover\:scale-110 {
  transform: scale(1.1);
}

/* Mobile menu animation */
#mobile-menu {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
