/*
Theme Name: JCruz Motors
Theme URI: https://jcruzmotors.com
Author: JCruz Motors
Author URI: https://jcruzmotors.com
Description: Custom WordPress theme for JCruz Motors — Fleet Ready. Performance Driven.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jcruzmotors
Tags: custom-theme, auto-repair, fleet, performance
*/

/* All styles are compiled from Tailwind via assets/css/main.css → assets/css/output.css */

/* === Z-INDEX + 3D LOGO SCROLL FIX (2026-04-20) === */
#hero-3d-logo, #hero-3d-canvas {
  z-index: -1 !important;
  transition: opacity 0.5s ease !important;
}
#hero-3d-interact { z-index: 0 !important; }
main, main > section, footer { position: relative; z-index: 3; }
body:not(.at-hero) #hero-logo-wrap, body:not(.at-hero) #hero-3d-logo,
body:not(.at-hero) #hero-3d-canvas {
  opacity: 0 !important;
}

/* === REVIEWS AUTO-SLIDE (2026-04-21) === */
.reviews-track.auto-slide {
  animation: reviews-scroll 60s linear infinite;
  width: max-content;
}
.reviews-track.auto-slide:hover {
  animation-play-state: paused;
}
@keyframes reviews-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-1 * var(--review-slide-distance, 2000px))); }
}

/* === 3D LOGO BLEED FIX (2026-04-21) === */
/* opacity:0 alone doesn't stop WebGL compositing — visibility:hidden does */
body:not(.at-hero) #hero-3d-logo,
body:not(.at-hero) #hero-3d-canvas,
body:not(.at-hero) #hero-logo-wrap {
  visibility: hidden !important;
  opacity: 0 !important;
}

/* === CINDER CANVAS Z-INDEX (2026-04-21) === */
#red-cinders { z-index: 1 !important; }
