/**
 * VarkaSolar Enterprise CSS Bridge (v2.0)
 * This file imports and consolidates enterprise-level style overrides
 * that apply globally across the platform.
 */

/* ── Enterprise Utility Overrides ─────────────────────────────── */

/* Smooth scrolling with accessibility respect */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Focus-visible styles for keyboard accessibility */
:focus-visible {
  outline: 2px solid hsl(var(--vs-brand));
  outline-offset: 3px;
  border-radius: 4px;
}

/* Mega-nav keyboard focus states */
.vs-nav-link:focus-visible,
.vs-mega-item:focus-visible,
.vs-mega-foot-link:focus-visible {
  outline: 2px solid hsl(var(--vs-brand));
  outline-offset: 4px;
  border-radius: 8px;
}

/* ── Mobile Bottom Nav Body Offset ─────────────────────────────── */
body.has-mobile-nav {
  padding-bottom: 80px;
}

/* WhatsApp float z-index fix - above mobile nav */
.vs-whatsapp-float {
  z-index: 5600;
  position: fixed;
  bottom: 88px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: all 0.5s cubic-bezier(0.2, 0, 0, 1);
  text-decoration: none;
}
.vs-whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: #FFF;
}
.vs-whatsapp-float:hover {
  transform: scale(1.1) translateY(-4px);
  box-shadow: 0 16px 40px rgba(37, 211, 102, 0.5);
}

@media (min-width: 769px) {
  .vs-whatsapp-float {
    bottom: 32px;
    right: 100px;
  }
}

/* ── Conversion popup mobile fix ────────────────────────────────── */
@media (max-width: 768px) {
  .vs-conversion-popup {
    bottom: 88px !important;
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
  }
}

/* ── Image Lazy Load Fade-In ────────────────────────────────────── */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.4s ease;
}
img[loading="lazy"].loaded {
  opacity: 1;
}

/* ── Touch Target Minimum Size ──────────────────────────────────── */
@media (max-width: 768px) {
  a, button, [role="button"] {
    min-height: 44px;
    min-width: 44px;
  }
}

/* ── Print Styles ────────────────────────────────────────────────── */
@media print {
  .vs-topbar-wrapper,
  .vs-header,
  .vs-mobile-overlay,
  .vs-mobile-app-nav,
  .vs-whatsapp-float,
  .vs-conversion-popup,
  .vs-back-to-top { display: none !important; }
  body { padding: 0 !important; margin: 0 !important; }
}
