/* =========================================
   CARMECHANICNEARME24X7 - ULTRA-ELITE UI/UX
   ========================================= */
:root {
  --primary: #0056b3;
  --primary-dark: #003d82;
  --hero-deep: #061830;
  --accent: #ff8c00;
  --accent-hover: #e07b00;
  --whatsapp: #25D366;
  --whatsapp-dark: #128C7E;
  --text-main: #0f172a;
  --text-muted: #475569;
  --bg-light: #f4f6f9;
  --glass-bg: rgba(255, 255, 255, 0.96);
  --glass-border: rgba(0, 0, 0, 0.1);
  --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.12);
  --shadow-hover: 0 25px 50px -12px rgba(0, 86, 179, 0.28);
  --shadow-glow: 0 0 22px rgba(37, 211, 102, 0.55);
  --transition-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --transition-smooth: cubic-bezier(0.25, 1, 0.5, 1);
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-light);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.03em;
}

/* =========================================
   GLOBAL ANIMATIONS
   ========================================= */
@keyframes shineSweep {
  0% { left: -100%; opacity: 0; }
  20% { left: 100%; opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
@keyframes textGradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes floatElement {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}
@keyframes gridMove {
  0% { transform: translateY(0); }
  100% { transform: translateY(30px); }
}
@keyframes pulseLive {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* =========================================
   GLASSMORPHISM NAVBAR
   ========================================= */
.navbar {
  background: var(--glass-bg) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
}
.navbar-brand { color: var(--primary-dark) !important; font-weight: 800; font-size: 1.45rem; }
.nav-link { color: var(--text-main) !important; font-weight: 600; padding: 0.5rem 1rem !important; position: relative; }
.nav-link:hover, .nav-link.active { color: var(--primary) !important; }
.nav-link::after {
  content: ''; position: absolute; width: 0; height: 3px; bottom: 0; left: 50%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: all 0.4s var(--transition-spring); transform: translateX(-50%); border-radius: 50px;
}
.nav-link:hover::after, .nav-link.active::after { width: 80%; }

/* =========================================
   GLOWING CTA BUTTONS
   ========================================= */
.btn-glow-whatsapp {
  background: var(--whatsapp); color: #fff; border: none; position: relative; overflow: hidden;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); animation: pulse-wa 2s infinite;
  transition: all 0.4s var(--transition-spring); z-index: 1;
}
.btn-glow-whatsapp::after, .btn-glow-primary::after, .btn-glow-accent::after {
  content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg); animation: shineSweep 3.8s cubic-bezier(0.25, 1, 0.5, 1) infinite; z-index: 2;
}
.btn-glow-whatsapp:hover {
  background: var(--whatsapp-dark); transform: translateY(-4px) scale(1.03); color: #fff;
  box-shadow: var(--shadow-glow); animation: none;
}
@keyframes pulse-wa {
  0% { transform: scale(0.98); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { transform: scale(0.98); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.btn-glow-primary {
  background: linear-gradient(45deg, var(--primary), var(--primary-dark)); color: #fff; border: none;
  position: relative; overflow: hidden; animation: pulse-primary 2.2s infinite;
  transition: all 0.4s var(--transition-spring); z-index: 1;
}
.btn-glow-primary:hover {
  transform: translateY(-3px) scale(1.03); color: #fff;
  box-shadow: 0 10px 25px rgba(0, 86, 179, 0.45); animation: none;
}
@keyframes pulse-primary {
  0% { transform: scale(0.98); box-shadow: 0 0 0 0 rgba(0, 86, 179, 0.6); }
  70% { transform: scale(1); box-shadow: 0 0 0 14px rgba(0, 86, 179, 0); }
  100% { transform: scale(0.98); box-shadow: 0 0 0 0 rgba(0, 86, 179, 0); }
}

.btn-glow-accent {
  background: linear-gradient(45deg, var(--accent), var(--accent-hover)); color: #fff; border: none;
  position: relative; overflow: hidden; transition: all 0.4s var(--transition-spring); z-index: 1;
}
.btn-glow-accent:hover {
  transform: translateY(-3px) scale(1.03); color: #fff;
  box-shadow: 0 10px 25px rgba(255, 140, 0, 0.45);
}

/* =========================================
   HERO & PAGE HEADERS
   ========================================= */
.hero {
  position: relative; padding: 150px 0 110px;
  background: linear-gradient(135deg, var(--hero-deep) 0%, var(--primary) 100%);
  color: #fff; overflow: hidden;
}
.hero::before, .page-header::before, .service-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 30px 30px; animation: gridMove 20s linear infinite; opacity: 0.45;
}
.hero-title { font-size: clamp(2.5rem, 5.5vw, 4.4rem); font-weight: 800; line-height: 1.08; }
.hero-title span {
  background: linear-gradient(to right, #fde047, #ff8c00, #fde047);
  background-size: 200% auto; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  animation: textGradientShift 4s linear infinite;
}
.page-header {
  padding: 140px 0 85px; background: linear-gradient(135deg, var(--hero-deep) 0%, var(--primary) 100%);
  color: #fff; position: relative; overflow: hidden; text-align: center;
}
.service-hero {
  padding: 145px 0 75px;
  background: linear-gradient(135deg, rgba(6, 24, 48, 0.92), rgba(0, 86, 179, 0.88)),
              url('https://images.unsplash.com/photo-1619642751034-765dfdf7c58e?auto=format&fit=crop&w=1600&q=80') center/cover;
  color: #fff; position: relative; overflow: hidden;
}

/* =========================================
   CARDS, SEARCH, VARIANTS & REVEALS
   ========================================= */
.feature-card {
  background: #fff; border-radius: 20px; padding: 2.2rem 1.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06); border: 1px solid rgba(0,0,0,0.04);
  text-align: center; transition: all 0.35s var(--transition-spring);
}
.feature-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0, 86, 179, 0.14); }
.feature-card i { font-size: 2.8rem; color: var(--primary); margin-bottom: 1rem; }

.service-card {
  background: #fff; border-radius: 24px; border: 1px solid rgba(0,0,0,0.04);
  overflow: hidden; transition: all 0.5s var(--transition-spring); box-shadow: var(--shadow-soft);
  height: 100%; display: flex; flex-direction: column; position: relative;
}
.service-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); border-color: rgba(0, 86, 179, 0.25); }
.img-wrapper { width: 100%; aspect-ratio: 16 / 10; overflow: hidden; position: relative; }
.img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--transition-smooth); }
.service-card:hover .img-wrapper img { transform: scale(1.08); }
.img-overlay {
  position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 55%);
  display: flex; align-items: flex-end; padding: 1.2rem; opacity: 0; transition: opacity 0.35s;
}
.service-card:hover .img-overlay { opacity: 1; }
.service-content { padding: 1.6rem; flex-grow: 1; display: flex; flex-direction: column; background: #fff; }

.btn-arrow-animate {
  transition: all 0.4s var(--transition-spring); color: var(--text-main); background: #fff;
}
.btn-arrow-animate:hover {
  background: var(--primary) !important; color: #fff !important;
  transform: translateX(4px) scale(1.1) rotate(-15deg); border-color: var(--primary) !important;
}

.search-bar {
  background: #fff; border-radius: 50px; padding: 8px 16px; box-shadow: 0 15px 35px rgba(0,0,0,0.16);
  max-width: 620px; margin: -30px auto 40px; position: relative; z-index: 10; display: flex; align-items: center;
}
.search-bar input { border: none; outline: none; padding: 10px 18px; font-size: 1.05rem; width: 100%; border-radius: 50px; }
.search-bar .icon { color: var(--primary); font-size: 1.2rem; padding: 0 10px; }

.content-box {
  background: #fff; border-radius: 24px; padding: 36px; box-shadow: var(--shadow-soft);
  margin-bottom: 28px; border: 1px solid rgba(0,0,0,0.04);
}
.vehicle-card {
  background: #fff; border: 2px solid #e2e8f0; border-radius: 20px; padding: 1.6rem 1.2rem;
  text-align: center; transition: all 0.4s var(--transition-spring); cursor: pointer;
  height: 100%; display: flex; flex-direction: column;
}
.vehicle-card:hover { border-color: var(--primary); transform: translateY(-7px); box-shadow: 0 15px 30px rgba(0, 86, 179, 0.15); }
.vehicle-card i { font-size: 2.3rem; color: var(--text-muted); transition: 0.3s; margin-bottom: 0.8rem; }
.vehicle-card:hover i { color: var(--primary); transform: scale(1.1); }
.vehicle-card .price-tag { font-size: 1.55rem; font-weight: 800; color: var(--primary); margin-top: auto; padding-top: 1rem; }

.sticky-widget {
  position: sticky; top: 105px; background: #fff; border-radius: 24px; padding: 28px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.1); border: 2px solid var(--primary); z-index: 10;
}
.inline-form-card {
  background: rgba(255, 255, 255, 0.97); backdrop-filter: blur(12px);
  border-radius: 24px; padding: 36px; box-shadow: 0 25px 50px rgba(0,0,0,0.18);
}
.review-card {
  background: #fff; border-radius: 24px; padding: 1.8rem; height: 100%;
  border: 1px solid #e2e8f0; box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  transition: all 0.3s ease; display: flex; flex-direction: column;
}
.review-card:hover { transform: translateY(-5px); border-color: rgba(0, 86, 179, 0.25); }
.avatar-circle {
  width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.15rem; color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}
.city-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 18px; border-radius: 50px;
  background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.28); color: #fff;
  font-weight: 600; font-size: 0.9rem; text-decoration: none; transition: 0.3s;
}
.city-chip:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-2px); }

.check-list li { margin-bottom: 14px; display: flex; align-items: flex-start; gap: 12px; }
.check-list i { color: var(--primary); font-size: 1.15rem; margin-top: 4px; }

.reveal { opacity: 0; transform: translateY(35px) scale(0.98); transition: all 0.75s var(--transition-smooth); }
.reveal.active { opacity: 1; transform: translateY(0) scale(1); }

/* =========================================
   MODAL & FORMS
   ========================================= */
.modal-content { border-radius: 26px; border: none; overflow: hidden; box-shadow: 0 25px 50px rgba(0,0,0,0.3); }
.modal-header { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; border: none; padding: 1.4rem 1.8rem; }
.form-control, .form-select {
  border-radius: 12px; padding: 12px 16px; border: 2px solid #e2e8f0; background: #f8fafc;
  font-size: 0.95rem; font-weight: 500; transition: all 0.3s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(0, 86, 179, 0.12);
}

/* =========================================
   FLOATING ACTION BUTTONS & MOBILE STICKY
   ========================================= */
.floating-container { position: fixed; bottom: 28px; right: 28px; z-index: 1050; display: flex; flex-direction: column; gap: 14px; }
.fab-btn {
  width: 62px; height: 62px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: #fff; box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  transition: all 0.4s var(--transition-spring); text-decoration: none; position: relative; overflow: hidden;
}
.fab-wa { background: var(--whatsapp); animation: floatElement 4s ease-in-out infinite, pulse-wa 2s infinite; }
.fab-call { background: var(--primary); animation: floatElement 4s ease-in-out infinite, pulse-primary 2s infinite; }
.fab-btn:hover { transform: scale(1.12); color: #fff; animation: none; }

.mobile-sticky-cta { display: none; }
.max-w-600 { max-width: 600px; margin: 0 auto; }

@media (max-width: 768px) {
  .hero { padding: 120px 0 70px; }
  .floating-container { display: none; }
  .mobile-sticky-cta {
    position: fixed; bottom: 0; left: 0; width: 100%; background: #fff; padding: 10px 12px;
    display: flex; gap: 10px; box-shadow: 0 -5px 25px rgba(0,0,0,0.15); z-index: 1040;
  }
  .mobile-sticky-cta .btn { flex: 1; font-weight: 800; border-radius: 14px; padding: 12px 0; }
  body { padding-bottom: 74px; }
  .content-box, .inline-form-card { padding: 24px; }
}

/* =========================================
   SERVICE DETAIL PRO MODULES (ADAPTED TO ULTRA-ELITE)
   ========================================= */
.detail-hero-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 2.8rem 2rem;
  border: 2px solid rgba(0, 86, 179, 0.12);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  height: 100%;
}
.detail-hero-icon {
  width: 82px; height: 82px; border-radius: 20px;
  background: rgba(0, 86, 179, 0.08); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; margin: 0 auto 1.5rem;
}

.expert-banner {
  background: #ffffff;
  border: 2px solid rgba(37, 211, 102, 0.35);
  border-left: 6px solid var(--whatsapp);
  border-radius: 18px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.08);
  margin-bottom: 1.5rem;
}
.expert-banner i {
  font-size: 2.1rem; color: var(--whatsapp-dark); flex-shrink: 0;
}

.protocol-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.35rem 1rem;
  text-align: center;
  transition: all 0.3s var(--transition-spring);
  height: 100%;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}
.protocol-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 86, 179, 0.12);
}
.protocol-card i {
  font-size: 1.5rem; color: var(--primary); margin-bottom: 0.6rem; display: block;
}
.protocol-step-label {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 1px;
  text-transform: uppercase; color: var(--accent); margin-bottom: 4px;
}

.service-notes-box {
  background: #fffbeb;
  border: 2px solid rgba(255, 140, 0, 0.35);
  border-left: 6px solid var(--accent);
  border-radius: 18px;
  padding: 1.4rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 1.5rem;
}
.service-notes-box i.notes-icon {
  font-size: 1.9rem; color: var(--accent); margin-top: 2px; flex-shrink: 0;
}
.service-notes-box ul {
  margin: 0; padding-left: 1.1rem; color: var(--text-muted); font-size: 0.92rem;
}
.service-notes-box ul li { margin-bottom: 5px; }

/* Fleet Compatibility Grid */
.fleet-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.1rem 0.75rem;
  text-align: center;
  display: block;
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.3s var(--transition-spring);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}
.fleet-card i {
  font-size: 1.35rem; color: var(--primary); margin-bottom: 6px; display: block;
}
.fleet-card strong { display: block; font-size: 0.95rem; font-weight: 700; }
.fleet-card span { font-size: 0.75rem; color: var(--text-muted); }
.fleet-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(0, 86, 179, 0.14);
  color: var(--primary);
}

/* Active Hyperlocal Zones Grid */
.zone-pill {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.25s ease;
}
.zone-pill i { color: #e11d48; font-size: 0.95rem; }
.zone-pill:hover {
  border-color: var(--primary);
  background: rgba(0, 86, 179, 0.04);
  color: var(--primary);
  transform: translateX(4px);
}

.gps-fallback-box {
  background: linear-gradient(135deg, var(--hero-deep), var(--primary-dark));
  color: #ffffff;
  border-radius: 18px;
  padding: 1.4rem;
  text-align: center;
  margin-top: 1.25rem;
}