/* Monaco Metalworks - Custom Styles */

/* Scroll Animation Classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animation delays */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* Gold underline hover effect for nav */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #D4A017;
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #D4A017;
}

/* Service card hover */
.service-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(212, 160, 23, 0.15);
  border-color: #D4A017;
}

/* Hero text shadow for readability */
.hero-text-shadow {
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}

/* Metal texture overlay */
.metal-texture {
  background-image: 
    radial-gradient(ellipse at 20% 50%, rgba(255,255,255,0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(255,255,255,0.02) 0%, transparent 50%),
    linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,0.4) 100%);
}

/* Noise texture overlay */
.noise-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

/* Gold gradient button */
.btn-gold {
  background: linear-gradient(135deg, #D4A017 0%, #E8B93A 50%, #D4A017 100%);
  background-size: 200% 200%;
  transition: background-position 0.4s ease, transform 0.2s ease, box-shadow 0.3s ease;
}
.btn-gold:hover {
  background-position: 100% 100%;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212, 160, 23, 0.4);
}

/* Portfolio item hover */
.portfolio-item {
  transition: opacity 0.3s ease;
}
.portfolio-item .portfolio-overlay {
  opacity: 0;
  transition: opacity 0.3s ease;
}
.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #111111;
}
::-webkit-scrollbar-thumb {
  background: #4A4A4A;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #D4A017;
}

/* Mobile bottom CTA bar */
.mobile-cta-bar {
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

/* Honeypot (spam prevention) */
.honeypot {
  position: absolute;
  left: -9999px;
}

/* Form focus styles */
input:focus, textarea:focus, select:focus {
  outline: 2px solid #D4A017;
  outline-offset: 2px;
  border-color: #D4A017 !important;
  box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.2);
}

/* Section divider */
.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #D4A017, #E8B93A);
}

/* Testimonial card */
.testimonial-card {
  border-left: 3px solid #D4A017;
}

/* Reviews dot indicator */
.review-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4A4A4A;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.review-dot.active {
  background: #D4A017;
  transform: scale(1.3);
}
.review-dot:hover {
  background: #D4A017;
}
.review-dot:focus-visible {
  outline: 2px solid #D4A017;
  outline-offset: 2px;
}

/* Hamburger animation */
#mobile-menu-btn span {
  transition: all 0.3s ease;
}

/* Skip to content (accessibility) */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #D4A017;
  color: #111;
  padding: 8px 16px;
  z-index: 100;
  transition: top 0.3s ease;
}
.skip-link:focus {
  top: 0;
}



/* WCAG 2.5.8 Target Size (Minimum) — 44px touch targets */
/* Using real CSS because Tailwind CDN may not generate min-h-[44px] arbitrary values */
nav[aria-label="Main navigation"] a,
nav[aria-label="Main navigation"] button,
nav[aria-label="Mobile navigation"] a,
nav[aria-label="Mobile navigation"] button,
nav[aria-label="Footer navigation"] a,
nav[aria-label="Footer services navigation"] a,
nav[aria-label="Company navigation"] a,
footer a,
.mobile-cta-bar a,
.btn-gold,
.skip-link {
  min-height: 44px !important;
}

#mobile-menu-btn,
[aria-label="Close lightbox"],
#lightbox-prev,
#lightbox-next {
  min-height: 44px !important;
  min-width: 44px !important;
}

/* Footer links — tighten spacing on mobile while keeping 44px touch targets on desktop */
@media (max-width: 1023px) {
  footer a,
  nav[aria-label="Footer navigation"] a,
  nav[aria-label="Company navigation"] a {
    min-height: 36px !important;
  }
  footer ul {
    gap: 0 !important;
  }
  footer .space-y-2 > * + * {
    margin-top: 0 !important;
  }
  footer .space-y-3 > * + * {
    margin-top: 0.25rem !important;
  }
}

/* Social icon links — override 44px min-height so circles stay round (w-10 h-10 = 40px, but 44px min-width ensures touch target) */
.social-icon {
  min-height: 40px !important;
  min-width: 44px !important;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }
}