/* ============================================================
   PMC — Pumps, Motors & Controls, Inc.
   Enhanced Custom Styles with Modern Design
   ============================================================ */

/* ── Nav helpers with enhanced hover effects ── */
.nav-link {
  color: rgba(229, 231, 235, 0.9);
  padding: 0.625rem 1rem;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  position: relative;
  font-size: 0.9375rem;
}
.nav-link:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b9dd8, #2e7db5);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}
.nav-link:hover::after {
  width: 70%;
}
.nav-active {
  color: white;
  background: rgba(59, 157, 216, 0.2);
  box-shadow: 0 2px 8px rgba(46, 125, 181, 0.2);
}
.mobile-nav-link {
  display: block;
  padding: 0.625rem 0.5rem;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}
.mobile-nav-link:hover {
  background: rgba(59, 157, 216, 0.2);
  border-left-color: #3b9dd8;
  padding-left: 0.75rem;
}

/* ── Dropdown with enhanced shadows and animations ── */
.dropdown-menu {
  background: white;
  border-radius: 0.75rem;
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: all 0.2s ease;
  box-shadow: 0 20px 60px rgba(15, 37, 64, 0.2), 0 4px 16px rgba(15, 37, 64, 0.1);
  animation: dropdownSlide 0.2s ease-out;
  overflow: hidden;
  min-width: 14rem;
  padding: 0.5rem;
}
@keyframes dropdownSlide {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.dropdown-item {
  display: block;
  padding: 0.75rem 1rem;
  color: #374151;
  font-size: 0.9375rem;
  transition: all 0.15s ease;
  position: relative;
  border-radius: 0.5rem;
  border-left: 3px solid transparent;
  margin-bottom: 0.125rem;
}
.dropdown-item:last-child {
  margin-bottom: 0;
}
.dropdown-item:hover {
  background: linear-gradient(135deg, #e8f2fa 0%, #dceef9 100%);
  color: #1a3a5c;
  border-left-color: #3b9dd8;
  padding-left: 1.25rem;
  transform: translateX(2px);
}
.dropdown-item::before {
  content: '→';
  position: absolute;
  left: 0.5rem;
  opacity: 0;
  transition: opacity 0.15s ease;
  color: #3b9dd8;
  font-weight: bold;
  margin-right: 0.125rem;
}
.dropdown-item:hover::before {
  opacity: 1;
}

/* ── Inner page banner with enhanced gradient ── */
.page-banner {
  @apply w-full h-48 md:h-64 flex items-end;
  background: linear-gradient(135deg, #0f2540 0%, #1a3a5c 50%, #2e7db5 100%);
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15,37,64,0.3), rgba(15,37,64,0.85));
  z-index: 1;
}
.page-banner::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(59, 157, 216, 0.15) 0%, transparent 70%);
  z-index: 0;
}

/* ── Section headings with enhanced typography ── */
.section-heading {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #0f2540 0%, #1a3a5c 50%, #2e7db5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.3;
  position: relative;
  display: inline-block;
}
@media (min-width: 768px) {
  .section-heading {
    font-size: 2.25rem;
  }
}
.section-heading::after {
  content: '';
  position: absolute;
  bottom: -0.5em;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #3b9dd8, #2e7db5);
  border-radius: 2px;
}
.section-subheading {
  @apply text-lg font-semibold mb-2;
  color: #1a3a5c;
  letter-spacing: -0.01em;
}

/* ── CTA buttons with gradients and animations ── */
.btn-primary {
  display: inline-block;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  padding: 0.875rem 2rem;
  background: linear-gradient(135deg, #3b9dd8 0%, #2e7db5 100%);
  box-shadow: 0 4px 15px rgba(46, 125, 181, 0.3);
  position: relative;
  overflow: hidden;
  color: white;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a3a5c 0%, #0f2540 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(46, 125, 181, 0.5);
  color: white;
}
.btn-primary:hover::before {
  opacity: 1;
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  @apply inline-block font-semibold rounded-lg transition-all duration-300;
  padding: 0.875rem 2rem;
  border: 2px solid #3b9dd8;
  color: #2e7db5;
  background: white;
  position: relative;
}
.btn-outline:hover {
  color: white;
  background: linear-gradient(135deg, #3b9dd8 0%, #2e7db5 100%);
  border-color: #2e7db5;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(46, 125, 181, 0.3);
}

/* ── Special outline button for hero (on dark background) ── */
.btn-outline-hero {
  @apply inline-block font-semibold rounded-lg transition-all duration-300;
  padding: 0.875rem 2rem;
  border: 2px solid white;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: white;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.btn-outline-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: white;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}
.btn-outline-hero:hover {
  color: #1a3a5c;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}
.btn-outline-hero:hover::before {
  opacity: 1;
}

/* ── Card with enhanced depth and hover effects ── */
.card {
  @apply bg-white rounded-xl overflow-hidden transition-all duration-300;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 2px 8px rgba(15, 37, 64, 0.06), 0 1px 3px rgba(15, 37, 64, 0.04);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(15, 37, 64, 0.12), 0 4px 12px rgba(46, 125, 181, 0.08);
  border-color: rgba(46, 125, 181, 0.2);
}

/* ── FAQ accordion with enhanced styling ── */
.faq-item details summary {
  @apply cursor-pointer font-semibold py-4 px-5 rounded-lg list-none flex justify-between items-center transition-all duration-200;
  background: linear-gradient(135deg, #f0f7fc 0%, #e8f2fa 100%);
  color: #1a3a5c;
  border: 1px solid rgba(46, 125, 181, 0.1);
}
.faq-item details summary:hover {
  background: linear-gradient(135deg, #e8f2fa 0%, #dceef9 100%);
  border-color: rgba(46, 125, 181, 0.2);
  box-shadow: 0 2px 8px rgba(46, 125, 181, 0.1);
}
.faq-item details summary::after {
  content: '+';
  @apply font-bold text-2xl;
  color: #3b9dd8;
  transition: transform 0.3s ease;
}
.faq-item details[open] summary::after {
  content: '−';
  transform: rotate(180deg);
}
.faq-item details p {
  padding: 1rem 1.5rem;
  color: #374151;
  line-height: 1.7;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  border-radius: 0.5rem;
  background: white;
  border-left: 4px solid;
  border-image: linear-gradient(180deg, #3b9dd8, #2e7db5) 1;
  box-shadow: 0 2px 8px rgba(15, 37, 64, 0.04);
}

/* ── Trust / stats bar with enhanced backgrounds ── */
.trust-bar {
  padding-top: 3rem;
  padding-bottom: 3rem;
  border-top: 1px solid;
  border-bottom: 1px solid;
  background: linear-gradient(135deg, #f8fbfd 0%, #e8f2fa 50%, #f0f7fc 100%);
  border-color: rgba(46, 125, 181, 0.15);
  position: relative;
}
.trust-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(59, 157, 216, 0.05) 0%, transparent 50%);
  pointer-events: none;
}
.stats-bar {
  text-align: center;
  color: white;
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
  background: linear-gradient(135deg, #0f2540 0%, #1a3a5c 50%, #2e7db5 100%);
  position: relative;
  overflow: hidden;
}
.stats-bar::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(59, 157, 216, 0.2) 0%, transparent 70%);
  animation: statsGlow 8s ease-in-out infinite;
}
@keyframes statsGlow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20%, 10%); }
}

/* ============================================================
   ENHANCED CSS-ONLY HERO SLIDESHOW
   Modern design with better overlays and animations
   ============================================================ */

.hero-slideshow {
  position: relative;
  width: 100%;
  height: 580px;
  overflow: hidden;
  background: linear-gradient(135deg, #0f2540 0%, #1a3a5c 100%);
}

@media (max-width: 768px) {
  .hero-slideshow { height: 420px; }
}

.hero-slideshow .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: slideshow 25s infinite;
  background-size: cover;
  background-position: center;
  transform: scale(1);
}

/* Stagger each slide by 5s with enhanced colors */
.hero-slideshow .slide:nth-child(1) { 
  animation-delay: 0s;
  background: linear-gradient(135deg, #1a3a5c 0%, #2e7db5 100%);
}
.hero-slideshow .slide:nth-child(2) { 
  animation-delay: 5s;
  background: linear-gradient(135deg, #0f2540 0%, #1a3a5c 100%);
}
.hero-slideshow .slide:nth-child(3) { 
  animation-delay: 10s;
  background: linear-gradient(135deg, #163352 0%, #2e7db5 100%);
}
.hero-slideshow .slide:nth-child(4) { 
  animation-delay: 15s;
  background: linear-gradient(135deg, #0f2540 0%, #1e4a6e 100%);
}
.hero-slideshow .slide:nth-child(5) { 
  animation-delay: 20s;
  background: linear-gradient(135deg, #1a3a5c 0%, #3b9dd8 100%);
}

@keyframes slideshow {
  0%   { opacity: 0; transform: scale(1.05); }
  4%   { opacity: 1; transform: scale(1); }
  20%  { opacity: 1; transform: scale(1); }
  24%  { opacity: 0; transform: scale(1.05); }
  100% { opacity: 0; transform: scale(1.05); }
}

.hero-slideshow .slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,37,64,0.85) 0%, rgba(26,58,92,0.7) 50%, rgba(46,125,181,0.6) 100%);
  z-index: 1;
}
.hero-slideshow .slide-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, transparent 0%, rgba(15,37,64,0.4) 100%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  z-index: 10;
}
.hero-content h1 {
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.2);
  animation: heroFadeIn 1s ease-out;
}
.hero-content p {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  animation: heroFadeIn 1s ease-out 0.2s both;
}
.hero-content .btn-primary,
.hero-content .btn-outline {
  animation: heroFadeIn 1s ease-out 0.4s both;
}
@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Enhanced icon containers ── */
.icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #e8f2fa 0%, #dceef9 100%);
  box-shadow: 0 2px 8px rgba(46, 125, 181, 0.1);
}
.icon-container:hover {
  background: linear-gradient(135deg, #3b9dd8 0%, #2e7db5 100%);
  box-shadow: 0 4px 16px rgba(46, 125, 181, 0.25);
  transform: scale(1.1) rotate(5deg);
}
.icon-container:hover svg {
  color: white !important;
}

/* ── Certification badge styling ── */
.cert-badge {
  @apply bg-white rounded-xl p-6 transition-all duration-300;
  border: 2px solid rgba(46, 125, 181, 0.1);
  box-shadow: 0 4px 12px rgba(15, 37, 64, 0.08);
}
.cert-badge:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(46, 125, 181, 0.3);
  box-shadow: 0 8px 24px rgba(46, 125, 181, 0.15);
}
.cert-badge-title {
  @apply font-bold text-sm text-center;
  background: linear-gradient(135deg, #1a3a5c 0%, #2e7db5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Enhanced list checkmarks ── */
.check-list-item {
  @apply transition-all duration-200;
}
.check-list-item svg {
  filter: drop-shadow(0 2px 4px rgba(46, 125, 181, 0.2));
  transition: transform 0.2s ease;
}
.check-list-item:hover svg {
  transform: translateX(0.5rem);
}


/* ── Enhanced text gradients ── */
.text-gradient {
  background: linear-gradient(135deg, #1a3a5c 0%, #2e7db5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Smooth scroll behavior ── */
html {
  scroll-behavior: smooth;
}

/* ── Focus states for accessibility ── */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #3b9dd8;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── Enhanced mobile menu ── */
#mobile-menu {
  animation: mobileMenuSlide 0.3s ease-out;
}
@keyframes mobileMenuSlide {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Loading animation for images ── */
img {
  transition: opacity 0.3s ease;
}
img[loading="lazy"] {
  opacity: 0;
}
img[loading="lazy"].loaded {
  opacity: 1;
}

/* ── Enhanced breadcrumbs ── */
.breadcrumb {
  @apply flex items-center gap-2 text-sm text-gray-600;
}
.breadcrumb a {
  @apply hover:text-brand-accent transition-colors;
}
.breadcrumb-separator {
  @apply text-gray-400;
}

/* ── Section dividers ── */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(46, 125, 181, 0.3) 50%, transparent 100%);
  margin: 3rem 0;
}

/* ── Pulse animation for call-to-action elements ── */
@keyframes pulse-subtle {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(59, 157, 216, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(59, 157, 216, 0);
  }
}
.pulse-on-hover:hover {
  animation: pulse-subtle 2s infinite;
}

/* ── Enhanced form inputs ── */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  @apply w-full px-4 py-3 border border-gray-300 rounded-lg transition-all duration-200;
  @apply focus:border-brand-accent focus:ring-2 focus:ring-brand-accent/20 focus:outline-none;
}
input[type="text"]:hover,
input[type="email"]:hover,
input[type="tel"]:hover,
textarea:hover,
select:hover {
  border-color: rgba(46, 125, 181, 0.5);
}

/* ── Enhanced labels ── */
label {
  @apply block text-sm font-semibold text-gray-700 mb-2;
}

/* ── Success/Error messages ── */
.alert-success {
  @apply rounded-lg p-4 mb-4;
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  border: 1px solid #6ee7b7;
  color: #065f46;
}
.alert-error {
  @apply rounded-lg p-4 mb-4;
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  border: 1px solid #fca5a5;
  color: #991b1b;
}

/* ── Print styles ── */
@media print {
  .no-print {
    display: none !important;
  }
  header, footer, nav {
    display: none !important;
  }
}
