/* Custom styles complementing Tailwind and inline styles */

/* Smooth scroll offset for fixed nav */
section[id] {
  scroll-margin-top: 80px;
}

/* Selection color */
::selection {
  background: rgba(255, 107, 79, 0.25);
  color: #1C1C22;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #1C1C22;
}
::-webkit-scrollbar-thumb {
  background: #FF6B4F;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #E85A3F;
}

/* Subtle pattern for service cards on hover */
.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
  transition: transform 0.3s ease;
}

.service-icon {
  transition: transform 0.3s ease;
}

/* Geometric floating animation */
@keyframes float-slow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(3deg); }
}

@keyframes float-slower {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(-2deg); }
}

.hero-geo-1 {
  animation: float-slow 6s ease-in-out infinite;
}

.hero-geo-2 {
  animation: float-slower 8s ease-in-out infinite;
}

/* Image hover zoom for property-style cards */
.img-grid-item {
  overflow: hidden;
}

.img-grid-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28,28,34,0.2) 0%, transparent 40%);
  border-radius: 12px;
  pointer-events: none;
}

/* Process step hover */
.process-step:hover {
  border-color: rgba(255,107,79,0.3);
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

/* Testimonial card hover */
.testimonial-card:hover {
  border-color: rgba(255,107,79,0.2);
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px white inset !important;
}

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

/* Print styles */
@media print {
  nav, .hero-geo-*, .cta-geo, footer { display: none; }
  body { color: #000; background: #fff; }
  .hero-bg { background: #333 !important; }
}
