/* ============================================
   Prodexity — Custom Styles
   Brand: #709010 (olive green), #333333 (charcoal)
   ============================================ */

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 100;
  padding: 0.75rem 1.5rem;
  background-color: #709010;
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 0 0 0.5rem 0.5rem;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  outline: 2px solid #E8A838;
  outline-offset: 2px;
}

/* --- Hero Text Shadow --- */
.hero-text-shadow {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* --- SVG Noise Texture Filter --- */
.noise-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  pointer-events: none;
  z-index: 1;
}

.noise-overlay svg {
  width: 100%;
  height: 100%;
}

/* --- Gradient Mesh Hero --- */
.hero-gradient {
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(112,144,16,0.4) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 20%, rgba(143,180,37,0.3) 0%, transparent 50%),
    radial-gradient(ellipse 70% 50% at 60% 80%, rgba(61,80,9,0.25) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 10% 90%, rgba(232,168,56,0.06) 0%, transparent 40%),
    linear-gradient(135deg, #2D3B0A 0%, #3D5009 30%, #709010 70%, #8FB425 100%);
  animation: meshShift 20s ease-in-out infinite alternate;
}

@keyframes meshShift {
  0% {
    background-position: 0% 0%, 100% 0%, 50% 100%, 0% 100%, 0% 0%;
  }
  50% {
    background-position: 30% 20%, 70% 30%, 40% 70%, 20% 80%, 0% 0%;
  }
  100% {
    background-position: 10% 40%, 90% 10%, 60% 90%, 10% 70%, 0% 0%;
  }
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --- Service Card Hover --- */
.service-card {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(112,144,16,0.1), 0 12px 32px rgba(112,144,16,0.06);
}

/* --- Button Hover/Active --- */
.btn-accent {
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
              background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-accent:hover {
  background-color: #D4952E;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(232,168,56,0.3);
}

.btn-accent:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(232,168,56,0.2);
}

.btn-accent:focus-visible {
  outline: 2px solid #E8A838;
  outline-offset: 2px;
}

/* --- Nav link states --- */
.nav-link {
  position: relative;
  transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7), 0 1px 4px rgba(0, 0, 0, 0.5);
}

.nav-scrolled .nav-link {
  text-shadow: none;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.8);
  transition: width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  width: 100%;
}

.nav-link:hover {
  color: white;
}

.nav-link:focus-visible {
  outline: 2px solid #709010;
  outline-offset: 4px;
  border-radius: 2px;
}

.nav-link:active {
  color: #3D5009;
}

.nav-link.active::after {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.8);
}

/* --- Nav active state: green only when scrolled --- */
.nav-scrolled .nav-link.active {
  color: #709010;
}

.nav-scrolled .nav-link.active::after {
  background-color: #709010;
}

/* --- Navigation Scroll State --- */
.nav-scrolled {
  background-color: rgba(255, 255, 255, 0.97) !important;
  box-shadow: 0 1px 3px rgba(112,144,16,0.08), 0 4px 12px rgba(112,144,16,0.04);
  backdrop-filter: blur(8px);
}

.nav-scrolled .nav-link {
  color: #555555;
}

.nav-scrolled .nav-link::after {
  background-color: #709010;
}

.nav-scrolled .nav-link:hover {
  color: #709010;
}

.nav-logo {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7), 0 1px 4px rgba(0, 0, 0, 0.5);
}

.nav-scrolled .nav-logo {
  color: #333333;
  text-shadow: none;
}

/* --- Mobile Nav Overlay --- */
.mobile-nav-overlay {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-panel {
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mobile-nav-overlay.open .mobile-nav-panel {
  transform: translateX(0);
}

/* --- Featured Badge --- */
.featured-badge {
  background: linear-gradient(135deg, #E8A838, #D4952E);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
}

/* --- Trust Bar --- */
.trust-bar {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.trust-bar::-webkit-scrollbar {
  display: none;
}

/* --- Form Input States --- */
.form-input {
  transition: border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-input:focus {
  border-color: #709010;
  box-shadow: 0 0 0 3px rgba(112,144,16,0.12);
  outline: none;
}

.form-input.error {
  border-color: #e53e3e;
  box-shadow: 0 0 0 3px rgba(229,62,62,0.12);
}

/* --- Staggered Reveal Delays --- */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }
.reveal-delay-7 { transition-delay: 0.7s; }
.reveal-delay-8 { transition-delay: 0.8s; }

/* --- Footer Link States --- */
.footer-link {
  transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-link:hover {
  color: #8FB425;
}

.footer-link:focus-visible {
  outline: 2px solid #8FB425;
  outline-offset: 2px;
  border-radius: 2px;
}

.footer-link:active {
  opacity: 0.8;
}

/* --- Noise Overlay Subtle (CTA / inner-page heroes) --- */
.noise-overlay-subtle {
  opacity: 0.15;
}

/* --- Select Dropdown Arrow --- */
.select-arrow {
  background-image: url('data:image/svg+xml;charset=UTF-8,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2212%22 height=%2212%22 viewBox=%220 0 12 12%22%3E%3Cpath fill=%22%23555555%22 d=%22M2 4l4 4 4-4%22/%3E%3C/svg%3E');
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

/* --- Section Divider --- */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(112,144,16,0.15), transparent);
}

/* --- Reduced Motion Support --- */
@media (prefers-reduced-motion: reduce) {
  .hero-gradient {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .reveal-delay-1,
  .reveal-delay-2,
  .reveal-delay-3,
  .reveal-delay-4,
  .reveal-delay-5,
  .reveal-delay-6,
  .reveal-delay-7,
  .reveal-delay-8 {
    transition-delay: 0s;
  }

  .service-card {
    transition: none;
  }

  .service-card:hover {
    transform: none;
  }

  .nav-link {
    transition: none;
  }

  .nav-link::after {
    transition: none;
  }

  .footer-link {
    transition: none;
  }

  .btn-accent {
    transition: none;
  }

  .mobile-nav-overlay {
    transition: none;
  }

  .mobile-nav-panel {
    transition: none;
  }

  .form-input {
    transition: none;
  }
}
