/* ==========================================================================
   SafeHome Pest Control Bangladesh - Custom Stylesheet
   Domain: safehomepestbd.com
   ========================================================================== */

:root {
  --primary-navy: #0A4D68;
  --primary-blue: #088395;
  --primary-light: #05BFDB;
  --eco-green: #059669;
  --eco-green-light: #10B981;
  --eco-green-dark: #047857;
  --coral-accent: #E11D48;
  --bg-slate: #F8FAFC;
  --text-main: #0F172A;
  --text-muted: #475569;
  --border-light: #E2E8F0;
}

/* Base Smooth Scrolling & Font */
html {
  scroll-behavior: smooth;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--text-main);
  background-color: #FFFFFF;
}

h1, h2, h3, h4, .font-heading {
  font-family: 'Poppins', 'Inter', system-ui, sans-serif;
}



/* Custom Utilities */
.bg-navy-900 { background-color: #0A2647; }
.bg-navy-800 { background-color: #0A4D68; }
.text-navy-900 { color: #0A2647; }
.text-navy-800 { color: #0A4D68; }
.bg-eco-600 { background-color: var(--eco-green); }
.bg-eco-500 { background-color: var(--eco-green-light); }
.text-eco-600 { color: var(--eco-green); }
.border-eco-600 { border-color: var(--eco-green); }

/* Sticky Mobile Bottom Bar */
.mobile-bottom-bar {
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
  z-index: 999;
}

/* WhatsApp Floating Button & Pulse */
.whatsapp-floating-btn {
  position: fixed;
  bottom: 85px;
  right: 20px;
  z-index: 990;
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #25D366;
  color: white;
  padding: 12px 18px;
  border-radius: 50px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 768px) {
  .whatsapp-floating-btn {
    bottom: 30px;
    right: 30px;
    padding: 14px 22px;
    font-size: 15px;
  }
}

.whatsapp-floating-btn:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.6);
  color: white;
}

.pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50px;
  border: 2px solid #25D366;
  animation: pulse 2s infinite;
  top: 0;
  left: 0;
  pointer-events: none;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* Cart Slide-out Drawer */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cart-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 440px;
  height: 100%;
  background-color: #FFFFFF;
  z-index: 1001;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.active {
  right: 0;
}

/* Modal Windows */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content,
.modal-card {
  background: #FFFFFF;
  border-radius: 20px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-overlay.active .modal-content,
.modal-overlay.active .modal-card {
  transform: scale(1) translateY(0);
}

/* Badge Styles */
.badge-eco {
  background-color: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.badge-warning-soft {
  background-color: #FFF1F2;
  color: #BE123C;
  border: 1px solid #FECDD3;
}

.badge-trust {
  background-color: #EFF6FF;
  color: #1E40AF;
  border: 1px solid #BFDBFE;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #F1F5F9;
}

::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* Form Styles */
.form-input-focus:focus {
  outline: none;
  border-color: var(--eco-green);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.2);
}

/* Toast Notification */
#toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  background: #0F172A;
  color: white;
  padding: 14px 20px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  pointer-events: auto;
  animation: slideInToast 0.3s ease forwards;
}

@keyframes slideInToast {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
