/* ==========================================================================
   Pramukh Engineering Works - Global Common & Accessibility Utility Styles
   ========================================================================== */

/* ==========================================================================
   1. KEYBOARD ACCESSIBILITY & FOCUS STATES
   ========================================================================== */

:focus {
  outline: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.nav-link:focus-visible,
.btn:focus-visible,
.product-card:focus-visible {
  outline: 2px solid var(--secondary, #D89A2B) !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 4px rgba(216, 154, 43, 0.25) !important;
}

/* ==========================================================================
   2. SCREEN READER ONLY & ACCESSIBILITY UTILITIES
   ========================================================================== */

.visually-hidden,
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ==========================================================================
   3. LAYOUT STABILITY & CUMULATIVE LAYOUT SHIFT (CLS) UTILITIES
   ========================================================================== */

img {
  max-width: 100%;
  height: auto;
  font-style: italic;
  vertical-align: middle;
}

.img-aspect-ratio {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
}

.product-img-aspect {
  aspect-ratio: 4 / 3;
  object-fit: contain;
  width: 100%;
  background: #f8fafc;
}

/* ==========================================================================
   3.5. CTA SECTION POSITIONING & SPACING
   ========================================================================== */

.cta-section {
  position: relative;
  z-index: 2;
  margin-bottom: 40px;
}

.cta-box {
  position: relative;
  transform: none;
}

/* ==========================================================================
   4. SELECTION & SCROLLBAR CUSTOMIZATION
   ========================================================================== */

::selection {
  background: var(--secondary, #D89A2B);
  color: #ffffff;
}

::-webkit-scrollbar {
  width: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary, #D89A2B);
}

/* ==========================================================================
   5. REDUCED MOTION OVERRIDE UTILITIES
   ========================================================================== */

@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;
  }
}

/* ==========================================================================
   6. FLOATING WHATSAPP BUTTON
   ========================================================================== */

.whatsapp-float {
  position: fixed;
  width: 54px;
  height: 54px;
  bottom: 25px;
  right: 25px;
  background-color: #25d366;
  color: #ffffff;
  border-radius: 50px;
  text-align: center;
  font-size: 28px;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  background-color: #128c7e;
  color: #ffffff;
  transform: scale(1.12);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

@media (max-width: 768px) {
  .whatsapp-float {
    width: 48px;
    height: 48px;
    bottom: 20px;
    right: 16px;
    font-size: 25px;
  }
}
