/* Azad Car Repair Workshop - Custom Stylesheet (Indian Automotive Theme) */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,600;12..96,700;12..96,800&family=Instrument+Sans:wght@400;500;600;700&display=swap');

:root {
  color-scheme: light;
  --color-ink: #0F172A;
  --color-body: #334155;
  --color-primary: #1E293B;
  --color-primary-hover: #0F172A;
  --color-primary-tint: #F1F5F9;
  --color-accent: #DC2626;
  --color-accent-hover: #B91C1C;
  --color-accent-tint: #FEF2F2;
  --color-saffron: #D97706;
  --color-saffron-tint: #FFFBEB;
  --color-surface: #FFFFFF;
  --color-surface-alt: #F8FAFC;
  --color-border: #E2E8F0;
  --color-whatsapp: #25D366;
  --color-call: #DC2626;
  --color-badge: #EF4444;
}

/* Explicit CSS Fallbacks for Tailwind CDN Compatibility */
.bg-accent { background-color: #DC2626 !important; }
.hover\:bg-accent-hover:hover, .bg-accent-hover { background-color: #B91C1C !important; }
.text-accent { color: #DC2626 !important; }
.bg-accent-tint { background-color: #FEF2F2 !important; }
.border-accent { border-color: #DC2626 !important; }

.bg-primary { background-color: #1E293B !important; }
.hover\:bg-primary-hover:hover { background-color: #0F172A !important; }
.text-primary { color: #1E293B !important; }
.bg-primary-tint { background-color: #F1F5F9 !important; }

.bg-saffron { background-color: #D97706 !important; }
.text-saffron { color: #D97706 !important; }
.bg-saffron-tint { background-color: #FFFBEB !important; }

.bg-whatsapp { background-color: #25D366 !important; }
.text-whatsapp { color: #25D366 !important; }

.bg-badgeRed { background-color: #EF4444 !important; }

html {
  scroll-behavior: smooth;
  font-family: 'Instrument Sans', system-ui, -apple-system, sans-serif;
  color: var(--color-ink);
  background-color: var(--color-surface);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--color-surface);
  color: var(--color-body);
  line-height: 1.65;
  font-size: 1rem;
  overflow-x: hidden;
  padding-bottom: 84px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  color: var(--color-ink);
  line-height: 1.2;
  margin-top: 0;
}

/* Fluid Typography Helpers */
.text-fluid-h1 {
  font-size: clamp(2.25rem, 4vw + 1rem, 3.5rem);
  letter-spacing: -0.02em;
}

.text-fluid-h2 {
  font-size: clamp(1.75rem, 3vw + 0.75rem, 2.5rem);
  letter-spacing: -0.015em;
}

.text-fluid-h3 {
  font-size: clamp(1.25rem, 2vw + 0.5rem, 1.75rem);
}

/* Gradient Text Utilities */
.text-gradient-red {
  background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-saffron {
  background: linear-gradient(135deg, #D97706 0%, #B45309 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Fallback Container */
.container-custom {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Image Containment Rules */
img {
  max-width: 100%;
  height: auto;
}

/* Active Nav Tab Styling */
.nav-tab-active {
  background-color: #DC2626 !important;
  color: #FFFFFF !important;
  font-weight: 800 !important;
  border-radius: 10px !important;
  padding: 8px 18px !important;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25) !important;
}

/* Focus and active accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid #DC2626;
  outline-offset: 2px;
}

/* Soft pulse animation for floating buttons */
@keyframes soft-pulse {
  0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.5); }
  70% { box-shadow: 0 0 0 18px rgba(220, 38, 38, 0); }
  100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

@keyframes soft-pulse-wa {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.pulse-call { animation: soft-pulse 2.5s infinite; }
.pulse-wa { animation: soft-pulse-wa 2.5s infinite; }

/* Notification badge animation */
@keyframes badge-pop {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.animate-badge { animation: badge-pop 3s infinite ease-in-out; }

/* Button Shimmer Effect */
.btn-shimmer {
  position: relative;
  overflow: hidden;
}

.btn-shimmer::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -150%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: rotate(30deg);
  transition: transform 0.8s ease;
}

.btn-shimmer:hover::after {
  transform: translate(120%, 120%) rotate(30deg);
}

/* Card Hover Lift Effect */
.hover-lift {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 35px -5px rgba(220, 38, 38, 0.12), 0 8px 15px -3px rgba(30, 41, 59, 0.08);
  border-color: #DC2626;
}

/* Scroll reveal initial state & staggered delays */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.stagger-1 { transition-delay: 0.1s; }
.reveal-on-scroll.stagger-2 { transition-delay: 0.2s; }
.reveal-on-scroll.stagger-3 { transition-delay: 0.3s; }

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll { opacity: 1; transform: none; transition: none; }
  .pulse-call, .pulse-wa, .animate-badge { animation: none; }
  .hover-lift:hover { transform: none; }
  html { scroll-behavior: auto; }
}

/* Lightbox Modal Styles */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.gallery-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-viewport {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  user-select: none;
  touch-action: none;
}

.lightbox-img-wrapper {
  transition: transform 0.1s ease-out;
  transform-origin: center center;
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.15);
}

/* NoScript Fallback Styles */
noscript .noscript-banner {
  background-color: var(--color-accent-tint);
  color: var(--color-accent-hover);
  border-bottom: 2px solid var(--color-accent);
  padding: 12px 16px;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
}

/* Print Styles */
@media print {
  body { padding-bottom: 0; color: #000; background: #fff; }
  .no-print, header, footer, #floating-buttons, .cta-band { display: none !important; }
}
