/**
 * PCDM Industrial Pro — Custom CSS
 * Extra utilities, Elementor overrides, and polish
 */

/* ── ELEMENTOR OVERRIDES ── */
.elementor-page #pcdm-header { position: fixed !important; }
.elementor-section { margin-top: 0 !important; }
.e-con, .elementor-container { max-width: 1280px !important; }

/* Elementor button global style matching PCDM */
.elementor-button.pcdm-style {
  background: var(--pcdm-red) !important;
  border-radius: 4px !important;
  font-family: var(--font-heading) !important;
  font-weight: 700 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  transition: all 0.3s ease !important;
}
.elementor-button.pcdm-style:hover {
  background: var(--pcdm-red-dark) !important;
  transform: translateY(-2px) !important;
}

/* ── GLASSMORPHISM CARDS (for Elementor sections) ── */
.pcdm-glass-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius);
  padding: 36px;
}

/* ── RED GLOW EFFECT ── */
.pcdm-red-glow {
  box-shadow: 0 0 20px rgba(214, 0, 0, 0.3), 0 0 60px rgba(214, 0, 0, 0.1);
}

/* ── ENGINEERING GRID BG ── */
.pcdm-grid-bg {
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* ── DARK SECTION UTILITY ── */
.pcdm-dark-section {
  background: var(--pcdm-black) !important;
  color: white;
}

.pcdm-dark-section h1,
.pcdm-dark-section h2,
.pcdm-dark-section h3,
.pcdm-dark-section h4 { color: white; }

.pcdm-dark-section p { color: rgba(255,255,255,0.65); }

/* ── RED SECTION ── */
.pcdm-red-section { background: var(--pcdm-red) !important; }
.pcdm-red-section * { color: white !important; }

/* ── HIGHLIGHT TEXT ── */
.pcdm-text-red { color: var(--pcdm-red) !important; }
.pcdm-text-white { color: white !important; }

/* ── DIVIDER RED ── */
.pcdm-divider-red {
  border: none;
  height: 3px;
  background: var(--pcdm-red);
  width: 60px;
  margin: 20px 0;
}

/* ── SERVICE ICON SIZES for Elementor Icon widget ── */
.pcdm-icon-box .elementor-icon { color: var(--pcdm-red) !important; }
.pcdm-icon-box:hover .elementor-icon { color: white !important; }

/* ── COUNTER WIDGET override ── */
.pcdm-counter-wrap .elementor-counter-number-wrapper { font-family: var(--font-heading) !important; font-weight: 900 !important; color: white !important; }
.pcdm-counter-wrap .elementor-counter-title { color: rgba(255,255,255,0.5) !important; font-family: var(--font-heading) !important; letter-spacing: 1px !important; text-transform: uppercase !important; font-size: 11px !important; }

/* ── TESTIMONIAL SLIDER ── */
.pcdm-testimonial-slider .elementor-testimonial__content {
  font-style: italic;
  color: var(--pcdm-gray-text);
  font-size: 15px;
  line-height: 1.8;
}
.pcdm-testimonial-slider .elementor-testimonial__name {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--pcdm-black);
}

/* ── LOGO CAROUSEL (Elementor) ── */
.pcdm-logo-carousel .elementor-image img {
  filter: grayscale(80%);
  opacity: 0.6;
  transition: all 0.3s ease;
}
.pcdm-logo-carousel .elementor-image:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* ── ANIMATED HOVER CARDS ── */
.pcdm-hover-card {
  transition: all 0.3s ease;
  border-radius: var(--radius);
  overflow: hidden;
}
.pcdm-hover-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* ── STICKY HEADER ADJUSTMENT for WP Admin Bar ── */
.admin-bar #pcdm-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar #pcdm-header { top: 46px; }
}

/* ── SCROLL ANIMATIONS ── */
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.pcdm-animate-left.animated  { animation: slideInLeft  0.6s ease both; }
.pcdm-animate-right.animated { animation: slideInRight 0.6s ease both; }
.pcdm-animate-scale.animated { animation: scaleIn      0.6s ease both; }

/* ── PRELOADER (optional) ── */
#pcdm-preloader {
  position: fixed;
  inset: 0;
  background: var(--pcdm-black);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease;
}
#pcdm-preloader.hidden {
  opacity: 0;
  pointer-events: none;
}
.pcdm-loader-ring {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: var(--pcdm-red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── CONTACT FORM STYLE ── */
.wpcf7-form input,
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100% !important;
  padding: 14px 16px !important;
  border: 1.5px solid var(--pcdm-gray-mid) !important;
  border-radius: 6px !important;
  font-family: var(--font-body) !important;
  font-size: 14px !important;
  background: white !important;
  color: var(--pcdm-black) !important;
  outline: none !important;
  transition: border-color 0.2s ease !important;
  margin-bottom: 16px !important;
}
.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
  border-color: var(--pcdm-red) !important;
  box-shadow: 0 0 0 3px rgba(214,0,0,0.08) !important;
}
.wpcf7-form input[type="submit"],
.wpcf7-submit {
  background: var(--pcdm-red) !important;
  color: white !important;
  padding: 15px 36px !important;
  border: none !important;
  border-radius: 6px !important;
  font-family: var(--font-heading) !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  transition: background 0.2s ease !important;
  width: 100% !important;
}
.wpcf7-form input[type="submit"]:hover,
.wpcf7-submit:hover { background: var(--pcdm-red-dark) !important; }
.wpcf7-response-output {
  border-color: var(--pcdm-red) !important;
  border-radius: 6px !important;
  padding: 12px 16px !important;
  font-size: 14px !important;
  margin-top: 16px !important;
}

/* ── BACK TO TOP ── */
#back-to-top:hover {
  background: var(--pcdm-red-dark) !important;
  transform: translateY(-4px) !important;
}

/* ── WORDPRESS BLOCK EDITOR STYLES ── */
.wp-block-image figcaption { color: var(--pcdm-gray-text); font-size: 13px; text-align: center; margin-top: 8px; }
.wp-block-quote { border-left: 4px solid var(--pcdm-red); padding: 16px 24px; background: var(--pcdm-gray-light); border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; }
.wp-block-code { background: #1a1a2e; color: #e0e0e0; padding: 20px 24px; border-radius: var(--radius); font-size: 14px; overflow-x: auto; }
.wp-block-table td, .wp-block-table th { padding: 12px 16px; border: 1px solid var(--pcdm-gray-mid); }
.wp-block-table th { background: var(--pcdm-black); color: white; font-family: var(--font-heading); font-size: 13px; letter-spacing: 0.5px; text-transform: uppercase; }

/* ── RESPONSIVE UTILITIES ── */
@media (max-width: 768px) {
  .pcdm-hide-mobile { display: none !important; }
  .hero-stats-bar .stat-number { font-size: 28px; }
  .hero-stats-bar .stat-label  { font-size: 10px; }
  .about-split { grid-template-columns: 1fr !important; }
  .mission-grid { grid-template-columns: 1fr !important; }
  .footer-grid  { grid-template-columns: 1fr !important; }
}

@media (min-width: 769px) {
  .pcdm-hide-desktop { display: none !important; }
}

/* ── PRINT ── */
@media print {
  #pcdm-header, #back-to-top, .mobile-menu, .filter-btn { display: none !important; }
  .page-hero { margin-top: 0 !important; }
  body { color: black !important; }
}
