/* Custom styles complementing Tailwind */

/* Ensure smooth transitions on all interactive elements */
a, button {
  -webkit-tap-highlight-color: transparent;
}

/* Custom selection color */
::selection {
  background: #50773e;
  color: #fdfcf8;
}

/* Subtle pattern background for cream sections */
.pattern-dots {
  background-image: radial-gradient(circle, rgba(197, 218, 187, 0.4) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Ensure images don't overflow cards */
.service-card img,
.gallery img {
  backface-visibility: hidden;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #50773e;
  outline-offset: 2px;
  border-radius: 4px;
}

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

/* Mobile menu animation */
@keyframes slideIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-menu.open a {
  animation: slideIn 0.3s ease forwards;
}

.mobile-menu.open a:nth-child(1) { animation-delay: 0.05s; }
.mobile-menu.open a:nth-child(2) { animation-delay: 0.1s; }
.mobile-menu.open a:nth-child(3) { animation-delay: 0.15s; }
.mobile-menu.open a:nth-child(4) { animation-delay: 0.2s; }
.mobile-menu.open a:nth-child(5) { animation-delay: 0.25s; }
.mobile-menu.open a:nth-child(6) { animation-delay: 0.3s; }

/* Hamburger animation */
.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  width: 1.5rem;
}
