/* Lightweight visual system: futuristic cyber-circuit aesthetic */
:root {
  --pcb-glass: rgba(11, 21, 40, 0.85);
  --pcb-line: rgba(56, 189, 248, 0.25);
  --pcb-cyan: #06b6d4;
  --pcb-cyan-glow: 0 0 20px rgba(6, 182, 212, 0.35);
  --pcb-accent-glow: 0 0 20px rgba(16, 185, 129, 0.35);
  --pcb-shadow-future: 0 18px 50px rgba(6, 18, 39, 0.13);
  --pcb-grad-hero: linear-gradient(135deg, #070d18 0%, #001e47 50%, #002d62 100%);
  --pcb-grad-card: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(248,250,252,0.95) 100%);
}

body {
  background: linear-gradient(180deg, #f7fafc 0%, #edf4f8 100%);
  color: #1e293b;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Subtle circuit background grid on headers */
.pcb-page-header,
.pcb-home-hero,
.pcb-services-archive-header,
.pcb-hero-futuristic {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--pcb-grad-hero) !important;
}

.pcb-page-header::before,
.pcb-home-hero::before,
.pcb-services-archive-header::before,
.pcb-hero-futuristic::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: 
    radial-gradient(rgba(56, 189, 248, 0.12) 1px, transparent 1px),
    radial-gradient(rgba(16, 185, 129, 0.1) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: 0 0, 16px 16px;
  opacity: 0.65;
}

.pcb-eyebrow,
.pcb-badge {
  letter-spacing: 0.06em;
}

/* Glow on hover for action buttons */
.pcb-btn {
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 112, 243, 0.16);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.pcb-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 112, 243, 0.28);
}

.pcb-btn-primary {
  background: linear-gradient(135deg, #0070f3 0%, #0051bb 100%) !important;
  border-color: #0070f3 !important;
  color: #ffffff !important;
}

.pcb-btn-primary:hover {
  box-shadow: 0 8px 24px rgba(0, 112, 243, 0.45) !important;
}

.pcb-btn-accent {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  border-color: #10b981 !important;
  color: #ffffff !important;
}

.pcb-btn-accent:hover {
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.45) !important;
}

/* Service and Product Cards Elevation */
.pcb-card,
.pcb-service-card-item,
.pcb-home-card,
.pcb-service-card-full,
.woocommerce ul.products li.product {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.pcb-card:hover,
.pcb-service-card-item:hover,
.pcb-home-card:hover,
.pcb-service-card-full:hover,
.woocommerce ul.products li.product:hover {
  transform: translateY(-5px) !important;
  border-color: rgba(6, 182, 212, 0.4) !important;
  box-shadow: 0 16px 36px rgba(6, 182, 212, 0.12), 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

/* Diagnostic Steps Grid Connector Lines */
.pcb-service-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  position: relative;
}

.pcb-service-steps-grid > div {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.15rem;
  transition: all 0.25s ease;
  position: relative;
}

.pcb-service-steps-grid > div:hover {
  background: #ffffff;
  border-color: #0070f3;
  box-shadow: 0 8px 20px rgba(0, 112, 243, 0.1);
  transform: translateY(-2px);
}

/* Interactive Filter Pills */
.pcb-sfp-pill {
  border-radius: 999px;
  min-height: 40px;
  padding: 8px 18px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pcb-sfp-pill:hover,
.pcb-sfp-pill.active {
  background: #0070f3;
  color: #ffffff;
  border-color: #0070f3;
  box-shadow: 0 4px 15px rgba(0, 112, 243, 0.25);
  transform: translateY(-1px);
}

/* Accordion FAQs styling */
.pcb-faq-accordion details {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.1rem 1.35rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pcb-faq-accordion details[open] {
  border-color: #38bdf8;
  box-shadow: 0 4px 18px rgba(56, 189, 248, 0.1);
}

.pcb-faq-accordion summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.02rem;
  color: #0f172a;
  outline: none;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pcb-faq-accordion summary::-webkit-details-marker {
  display: none;
}

.pcb-faq-accordion summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 400;
  color: #0284c7;
  transition: transform 0.2s ease;
}

.pcb-faq-accordion details[open] summary::after {
  content: "−";
  color: #0070f3;
}

/* Fault Selector Card Interactive Feel */
.pcb-fault-finder-card {
  border-radius: 16px;
  transition: box-shadow 0.3s ease;
}

.pcb-fault-finder-card:hover {
  box-shadow: 0 12px 35px rgba(0, 112, 243, 0.08);
}

/* Glowing Pulse Indicators */
.pcb-pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pcbPulse 2s infinite;
  margin-right: 6px;
  vertical-align: middle;
}

@keyframes pcbPulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* Cyber Holographic Card Highlight */
.pcb-cyber-card {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pcb-cyber-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #38bdf8, transparent);
  transition: left 0.6s ease;
}

.pcb-cyber-card:hover::after {
  left: 100%;
}

/* Quick Search Floating Input Polish */
.pcb-quicksearch-wrap-lg {
  border-radius: 12px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
  transition: box-shadow 0.25s ease, border-color 0.25s ease !important;
}

.pcb-quicksearch-wrap-lg:focus-within {
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2), 0 8px 25px rgba(0, 0, 0, 0.12) !important;
}

/* Responsive Rules */
@media (max-width: 900px) {
  .pcb-service-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .pcb-service-steps-grid {
    grid-template-columns: 1fr;
  }
  .pcb-btn {
    min-height: 44px;
  }
  .pcb-page-header {
    padding-top: 2.5rem !important;
    padding-bottom: 2.25rem !important;
  }
  .pcb-topbar-right {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pcb-btn,
  .pcb-card,
  .pcb-service-card-item,
  .pcb-sfp-pill,
  .pcb-service-steps-grid > div,
  .pcb-pulse-dot {
    transition: none !important;
    transform: none !important;
    animation: none !important;
  }
}
