/* Extracted from index.php inline <style> block — animation helpers, layout utilities and delays */

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

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}

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

/* Animation utility classes (used in markup) */
.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}
.animate-slide-in {
  animation: slideIn 0.6s ease-out forwards;
}
.animate-pulse-slow {
  animation: pulse 3s ease-in-out infinite;
}

/* Delay helper classes (replace inline style="animation-delay: Xs") */
.anim-delay-0   { animation-delay: 0s; }
.anim-delay-200 { animation-delay: 0.2s; }
.anim-delay-400 { animation-delay: 0.4s; }
.anim-delay-600 { animation-delay: 0.6s; }
.anim-delay-800 { animation-delay: 0.8s; }

/* Visual / layout classes moved from inline style block */
.hero-gradient {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.card-hover {
  transition: all 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.text-gradient {
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Flash message styles (accessible, distinct colors) */
.flash-messages {
  position: relative;
  max-width: 980px;
  margin: 1rem auto;
  padding: 0 1rem;
  z-index: 60;
}
.flash-message {
  border-radius: 8px;
  padding: 0.65rem 1rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 6px 18px rgba(2,6,23,0.06);
  font-size: 0.95rem;
  line-height: 1.25;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Inner wrapper (text) */
.flash-message-inner {
  flex: 1 1 auto;
  color: #1f2937; /* default text */
}

/* Types */
.flash-success { background: linear-gradient(90deg,#ecfdf5,#d1fae5); border: 1px solid #10b981; }
.flash-success .flash-message-inner { color: #064e3b; }

.flash-error { background: linear-gradient(90deg,#fff1f2,#fee2e2); border: 1px solid #ef4444; }
.flash-error .flash-message-inner { color: #7f1d1d; }

.flash-warning { background: linear-gradient(90deg,#fffbeb,#fff7ed); border: 1px solid #f59e0b; }
.flash-warning .flash-message-inner { color: #92400e; }

.flash-info { background: linear-gradient(90deg,#eff6ff,#e0f2fe); border: 1px solid #3b82f6; }
.flash-info .flash-message-inner { color: #1e3a8a; }

/* Responsive utilities */
@media (max-width: 640px) {
  .hero-gradient { min-height: 100vh; }
  .card-hover:hover { transform: none; }
  .text-gradient {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  .flash-message { font-size: 0.9rem; padding: 0.55rem 0.8rem; }
}
@media (min-width: 641px) and (max-width: 768px) {
  .hero-gradient { min-height: 90vh; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-gradient { min-height: 85vh; }
}

/* Touch-friendly interaction */
@media (hover: none) and (pointer: coarse) {
  .card-hover:hover { transform: none; }
  .card-hover:active { transform: scale(0.98); }
}

/* Map container styles for index page */
#carwash-map {
  width: 100%;
  height: 360px;
  min-height: 250px;
  border-radius: 12px;
  overflow: hidden;
}
@media (max-width: 640px) {
  #carwash-map { height: 280px; }
}
@media (min-width: 1280px) {
  #carwash-map { height: 420px; }
}