/* ========================================================
   MAB Cleaning Service LLC — Ultra-Premium Design System
   Color Palette, Typography, Dynamic Animations & Micro-Interactions
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  --primary: #16a34a;
  --primary-hover: #15803d;
  --primary-light: #dcfce7;
  --secondary: #0a192f;
  --secondary-dark: #071320;
  --navy-card: #0b1a2d;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --bg-light: #f8fafc;
  --border-light: #f1f5f9;
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--text-dark);
  background-color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--secondary);
  font-weight: 700;
  line-height: 1.25;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

img {
  max-width: 100%;
  height: auto;
}

/* Custom Container */
.mab-container {
  width: 100%;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ============================================
   PILL BADGES
   ============================================ */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  background-color: #ecfdf5;
  color: #10b981;
  border: 1px solid #a7f3d0;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
}

.badge-pill:hover {
  background-color: #d1fae5;
  transform: translateY(-1px);
}

.badge-pill-navy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  background-color: rgba(255, 255, 255, 0.08);
  color: #86efac;
  border: 1px solid rgba(134, 239, 172, 0.25);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
}

.badge-pill-navy:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(134, 239, 172, 0.45);
}

/* ============================================
   BUTTON SYSTEM & SHIMMER EFFECTS
   ============================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #16a34a, #10b981);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 11px 24px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-20deg);
  transition: left 0.75s ease;
}

.btn-primary:hover::after {
  left: 140%;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #15803d, #059669);
  box-shadow: 0 8px 22px rgba(22, 163, 74, 0.45);
  transform: translateY(-2px) scale(1.02);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: transparent;
  color: #0f172a;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 22px;
  border-radius: 9999px;
  border: 1.5px solid #cbd5e1;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.btn-outline:hover {
  border-color: #16a34a;
  color: #16a34a;
  background-color: #f0fdf4;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.15);
}

.btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #ffffff;
  color: #16a34a !important;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 11px 24px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-white:hover {
  background-color: #f8fafc;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: rgba(4, 120, 87, 0.7);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 22px;
  border-radius: 9999px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-outline-white:hover {
  background-color: #047857;
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

/* ============================================
   COMPACT SERVICE CARD & HOVER EFFECTS
   ============================================ */
.service-compact-card {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 1px 4px rgba(11, 30, 51, 0.04);
  text-decoration: none;
}

.service-compact-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 24px rgba(22, 163, 74, 0.14), 0 4px 8px rgba(0, 0, 0, 0.04);
  border-color: #86efac;
}

.service-compact-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background-color: #e8f8ee;
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.service-compact-card:hover .service-compact-icon {
  background-color: #10b981;
  color: #ffffff;
  transform: rotate(6deg) scale(1.1);
}

/* ============================================
   STEP CARD & HOVER EFFECTS
   ============================================ */
.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.step-item:hover {
  transform: translateY(-4px);
}

.step-icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #0a192f;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  box-shadow: 0 6px 16px rgba(10, 25, 47, 0.18);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.step-item:hover .step-icon-circle {
  background-color: #16a34a;
  transform: scale(1.12);
  box-shadow: 0 10px 24px rgba(22, 163, 74, 0.35);
}

/* ============================================
   REVIEW CARD & HOVER EFFECTS
   ============================================ */
.testimonial-card {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(11, 30, 51, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(11, 30, 51, 0.09);
  border-color: #e2e8f0;
}

/* ============================================
   VIDEO PLAY BUTTON RADAR PULSE
   ============================================ */
.play-pulse-btn {
  position: relative;
  transition: all 0.3s ease;
}

.play-pulse-btn::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  animation: radarWave 2s infinite;
  z-index: 0;
}

.play-pulse-btn::after {
  content: '';
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  animation: radarWave 2s infinite 0.6s;
  z-index: 0;
}

@keyframes radarWave {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* ============================================
   HERO FLOATING BADGE
   ============================================ */
.hero-badge-float {
  animation: badgeFloat 4.5s ease-in-out infinite;
}

@keyframes badgeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.stat-glow {
  text-shadow: 0 0 20px rgba(34, 197, 94, 0.25);
}

/* ============================================
   GLASSMORPHISM STICKY HEADER
   ============================================ */
header.header-scrolled {
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  box-shadow: 0 4px 20px rgba(11, 30, 51, 0.06);
}

/* ============================================
   FLOATING WHATSAPP BUTTON & RADAR RINGS
   ============================================ */
.whatsapp-floating {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  z-index: 9999;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
}

.whatsapp-floating:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.65);
  background: #20ba5a;
}

.whatsapp-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.35);
  animation: whatsappWave 2.5s infinite;
  z-index: -1;
  pointer-events: none;
}

@keyframes whatsappWave {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.22); opacity: 0.2; }
}

/* ============================================
   FLOATING GRAPHICS & MICRO-ANIMATIONS
   ============================================ */
.floating-supplies {
  animation: floatSupplies 5s ease-in-out infinite;
}

@keyframes floatSupplies {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(1.5deg); }
}

.hover-lift {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(11, 30, 51, 0.08);
}

.img-zoom-hover {
  overflow: hidden;
}

.img-zoom-hover img {
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.img-zoom-hover:hover img {
  transform: scale(1.05);
}

/* ============================================
   MODALS SYSTEM
   ============================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 25, 47, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 99999;
  display: none !important;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.active {
  display: flex !important;
  animation: fadeInModal 0.25s ease-out forwards;
}

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

.modal-dialog {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-backdrop.active .modal-dialog {
  transform: translateY(0) scale(1);
}

/* ============================================
   MOBILE OPTIMIZATIONS & TOUCH MICRO-ANIMATIONS
   ============================================ */
@media (max-width: 768px) {
  * {
    -webkit-tap-highlight-color: transparent;
  }

  .mab-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Smooth tap scale feedback on touch */
  .btn-primary:active,
  .btn-outline:active,
  .btn-white:active,
  .btn-outline-white:active,
  .service-compact-card:active,
  .step-item:active {
    transform: scale(0.96) !important;
  }

  /* Mobile floating WhatsApp positioning */
  .whatsapp-floating {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
  }

  /* Headings on mobile */
  h1 {
    font-size: 2rem !important;
    line-height: 1.18 !important;
  }

  h2 {
    font-size: 1.55rem !important;
    line-height: 1.25 !important;
  }

  /* Compact service card on mobile */
  .service-compact-card {
    padding: 12px 14px;
    border-radius: 12px;
  }

  /* Floating badge on mobile */
  .hero-badge-float {
    animation-duration: 3.5s;
  }
}

/* ========================================================
   MOBILE DRAWER NAVIGATION (HIGH PRIORITY)
   ======================================================== */
.mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 25, 47, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 82%;
  max-width: 330px;
  height: 100%;
  height: 100dvh;
  background: #ffffff;
  z-index: 9999;
  transform: translateX(-100%);
  -webkit-transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 15px 0 35px -5px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

body.mobile-menu-active {
  overflow: hidden !important;
}

body.mobile-menu-active .mobile-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.mobile-menu-active .mobile-drawer {
  transform: translateX(0);
  -webkit-transform: translateX(0);
}
