/* Grindheart Training Solutions - Custom Styles */
/* Professional tactical training and security services */

/* ==========================================================================
   BASE STYLES & CUSTOM PROPERTIES
   ========================================================================== */

:root {
  --grim-dark: #0B0E11;
  --safety-orange: #FF6A00;
  --signal-green: #00E676;
  --warning-yellow: #FFD400;
  --grim-gray: #CBD5E1;
  
  /* Additional tactical colors */
  --tactical-gray: #2D3748;
  --steel-blue: #4A5568;
  --matte-black: #1A202C;
  
  /* Typography */
  --font-tactical: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  
  /* Shadows */
  --shadow-tactical: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
  --shadow-glow-orange: 0 0 20px rgba(255, 106, 0, 0.3);
  --shadow-glow-green: 0 0 20px rgba(0, 230, 118, 0.3);
  
  /* Transitions */
  --transition-standard: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   TACTICAL BACKGROUND PATTERNS
   ========================================================================== */

.bg-tactical-pattern {
  background-image: 
    radial-gradient(circle at 1px 1px, rgba(255, 106, 0, 0.1) 1px, transparent 0);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
}

.bg-tactical-hex {
  background-image: 
    linear-gradient(30deg, transparent 24%, rgba(255, 106, 0, 0.05) 25%, rgba(255, 106, 0, 0.05) 26%, transparent 27%, transparent 74%, rgba(255, 106, 0, 0.05) 75%, rgba(255, 106, 0, 0.05) 76%, transparent 77%),
    linear-gradient(-30deg, transparent 24%, rgba(0, 230, 118, 0.05) 25%, rgba(0, 230, 118, 0.05) 26%, transparent 27%, transparent 74%, rgba(0, 230, 118, 0.05) 75%, rgba(0, 230, 118, 0.05) 76%, transparent 77%);
  background-size: 60px 60px;
}

/* ==========================================================================
   ENHANCED FOCUS STATES FOR ACCESSIBILITY
   ========================================================================== */

*:focus {
  outline: none;
}

button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
  box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.5);
  outline: 2px solid transparent;
  outline-offset: 2px;
}

/* High contrast focus for better accessibility */
@media (prefers-contrast: high) {
  button:focus,
  input:focus,
  select:focus,
  textarea:focus,
  a:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.8);
    outline: 3px solid #FFD400;
  }
}

/* ==========================================================================
   CUSTOM ANIMATIONS
   ========================================================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(255, 106, 0, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(255, 106, 0, 0.8), 0 0 30px rgba(255, 106, 0, 0.4);
  }
}

@keyframes tactical-scan {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 100% 100%;
  }
}

/* Animation classes */
.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-slide-in-right {
  animation: slideInRight 0.6s ease-out forwards;
}

.animate-pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

.animate-tactical-scan {
  animation: tactical-scan 3s linear infinite;
}

/* ==========================================================================
   ENHANCED BUTTON STYLES
   ========================================================================== */

.btn-tactical {
  position: relative;
  overflow: hidden;
  transition: var(--transition-standard);
  background: linear-gradient(135deg, var(--safety-orange), #e55a00);
  border: 1px solid rgba(255, 106, 0, 0.3);
}

.btn-tactical::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-tactical:hover::before {
  left: 100%;
}

.btn-tactical:hover {
  box-shadow: var(--shadow-glow-orange);
  transform: translateY(-2px);
}

.btn-tactical:active {
  transform: translateY(0);
}

/* Secondary button variant */
.btn-tactical-secondary {
  background: linear-gradient(135deg, var(--signal-green), #00c766);
  border: 1px solid rgba(0, 230, 118, 0.3);
}

.btn-tactical-secondary:hover {
  box-shadow: var(--shadow-glow-green);
}

/* ==========================================================================
   ENHANCED CARD STYLES
   ========================================================================== */

.card-tactical {
  background: linear-gradient(145deg, rgba(45, 55, 72, 0.9), rgba(26, 32, 44, 0.9));
  border: 1px solid rgba(255, 106, 0, 0.1);
  backdrop-filter: blur(10px);
  transition: var(--transition-standard);
}

.card-tactical:hover {
  border-color: rgba(255, 106, 0, 0.3);
  box-shadow: var(--shadow-tactical);
  transform: translateY(-5px) scale(1.02);
}

.card-tactical::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--safety-orange), var(--signal-green), var(--warning-yellow));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card-tactical:hover::before {
  opacity: 1;
}

/* ==========================================================================
   TACTICAL FORM ENHANCEMENTS
   ========================================================================== */

.form-tactical input,
.form-tactical select,
.form-tactical textarea {
  background: rgba(45, 55, 72, 0.8);
  border: 1px solid rgba(203, 213, 225, 0.2);
  transition: var(--transition-standard);
  position: relative;
}

.form-tactical input::placeholder,
.form-tactical textarea::placeholder {
  color: rgba(203, 213, 225, 0.6);
}

.form-tactical input:focus,
.form-tactical select:focus,
.form-tactical textarea:focus {
  background: rgba(45, 55, 72, 1);
  border-color: var(--safety-orange);
  box-shadow: 0 0 0 1px rgba(255, 106, 0, 0.3);
}

/* Checkbox and radio custom styling */
.form-tactical input[type="checkbox"],
.form-tactical input[type="radio"] {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(203, 213, 225, 0.3);
  border-radius: 4px;
  background: var(--grim-dark);
  position: relative;
  cursor: pointer;
}

.form-tactical input[type="checkbox"]:checked,
.form-tactical input[type="radio"]:checked {
  background: var(--safety-orange);
  border-color: var(--safety-orange);
}

.form-tactical input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.form-tactical input[type="radio"] {
  border-radius: 50%;
}

.form-tactical input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
}

/* ==========================================================================
   PROGRESS INDICATORS & LOADING STATES
   ========================================================================== */

.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 106, 0, 0.3);
  border-top: 2px solid var(--safety-orange);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(203, 213, 225, 0.2);
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar::after {
  content: '';
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--safety-orange), var(--signal-green));
  animation: progress-slide 2s ease-in-out infinite;
}

@keyframes progress-slide {
  0% { width: 0%; }
  50% { width: 70%; }
  100% { width: 100%; }
}

/* ==========================================================================
   TESTIMONIAL & REVIEW STYLES
   ========================================================================== */

.testimonial-card {
  background: linear-gradient(135deg, rgba(45, 55, 72, 0.9), rgba(26, 32, 44, 0.95));
  border-left: 4px solid var(--safety-orange);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 4rem;
  color: var(--safety-orange);
  opacity: 0.3;
  font-family: Georgia, serif;
}

/* Star rating */
.star-rating {
  display: flex;
  gap: 2px;
}

.star {
  color: var(--warning-yellow);
  font-size: 1.2rem;
}

.star.empty {
  color: rgba(203, 213, 225, 0.3);
}

/* ==========================================================================
   TACTICAL NAVIGATION ENHANCEMENTS
   ========================================================================== */

.nav-tactical {
  backdrop-filter: blur(20px);
  background: rgba(11, 14, 17, 0.95);
  border-bottom: 1px solid rgba(255, 106, 0, 0.1);
}

.nav-tactical a {
  position: relative;
  transition: var(--transition-fast);
}

.nav-tactical a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--safety-orange);
  transition: width 0.3s ease;
}

.nav-tactical a:hover::after,
.nav-tactical a:focus::after {
  width: 100%;
}

/* Mobile menu animation */
.mobile-menu {
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.mobile-menu.open {
  transform: translateX(0);
}

/* ==========================================================================
   BADGE & STATUS INDICATORS
   ========================================================================== */

.badge-tactical {
  background: linear-gradient(135deg, var(--safety-orange), #e55a00);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(255, 106, 0, 0.3);
}

.badge-success {
  background: linear-gradient(135deg, var(--signal-green), #00c766);
}

.badge-warning {
  background: linear-gradient(135deg, var(--warning-yellow), #e6c200);
  color: var(--grim-dark);
}

.status-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--signal-green);
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.5);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS & MOBILE OPTIMIZATIONS
   ========================================================================== */

@media (max-width: 768px) {
  .card-tactical {
    transform: none;
  }
  
  .card-tactical:hover {
    transform: translateY(-2px);
  }
  
  .btn-tactical {
    padding: 12px 24px;
    font-size: 1rem;
  }
  
  /* Reduce animations on mobile for better performance */
  .animate-fade-in-up,
  .animate-slide-in-right {
    animation: fadeIn 0.3s ease-out forwards;
  }
}

/* ==========================================================================
   ACCESSIBILITY ENHANCEMENTS
   ========================================================================== */

/* High contrast mode */
@media (prefers-contrast: high) {
  .card-tactical {
    border: 2px solid var(--safety-orange);
  }
  
  .btn-tactical {
    border: 2px solid currentColor;
  }
  
  .badge-tactical {
    border: 1px solid white;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .animate-pulse-glow,
  .animate-tactical-scan,
  .loading-spinner {
    animation: none;
  }
}

/* Screen reader only content */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sr-only:focus {
  position: static;
  width: auto;
  height: auto;
  padding: inherit;
  margin: inherit;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
  .bg-tactical-pattern,
  .bg-tactical-hex {
    background: none !important;
  }
  
  .card-tactical {
    border: 1px solid #000 !important;
    box-shadow: none !important;
  }
  
  .btn-tactical,
  .btn-tactical-secondary {
    background: #fff !important;
    color: #000 !important;
    border: 1px solid #000 !important;
  }
  
  /* Hide interactive elements in print */
  button,
  .mobile-menu,
  .comparison-modal,
  .quote-modal {
    display: none !important;
  }
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.text-glow {
  text-shadow: 0 0 10px currentColor;
}

.backdrop-tactical {
  backdrop-filter: blur(10px) saturate(180%);
  background: rgba(11, 14, 17, 0.8);
}

.border-tactical {
  border: 1px solid rgba(255, 106, 0, 0.2);
}

.border-tactical-green {
  border: 1px solid rgba(0, 230, 118, 0.2);
}

.shadow-tactical {
  box-shadow: var(--shadow-tactical);
}

.shadow-glow-orange {
  box-shadow: var(--shadow-glow-orange);
}

.shadow-glow-green {
  box-shadow: var(--shadow-glow-green);
}

/* Gradient text */
.text-gradient-tactical {
  background: linear-gradient(135deg, var(--safety-orange), var(--signal-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==========================================================================
   PERFORMANCE OPTIMIZATIONS
   ========================================================================== */

/* GPU acceleration for animations */
.gpu-accelerated {
  transform: translateZ(0);
  will-change: transform;
}

/* Optimize scrolling performance */
.smooth-scroll {
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

/* ==========================================================================
   CUSTOM SCROLLBAR STYLING
   ========================================================================== */

/* Webkit browsers */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--grim-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--safety-orange);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #e55a00;
}

/* Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--safety-orange) var(--grim-dark);
}

