/* ==========================================================================
   QUORIT — Quorit Solutions Stylesheet (quorit-solutions.css)
   Brand Colors:
     Primary Red:       #D3171D
     Primary Orange:    #F78545
     Deep Red:          #A91F24
     Scientific Blue:   #292D76
     Scientific Green:  #10974A
     Warm Background:   #FCFAF8
     White:             #FFFFFF
     Text Primary:      #252525
     Text Secondary:    #667085
     Border:            #E8E1DC
   ========================================================================== */

/* Custom Borders & Elevation */
.custom-border {
  border: 1px solid #E8E1DC;
}

.elevation-soft {
  box-shadow: 0 4px 20px -4px rgba(37, 37, 37, 0.05), 0 2px 6px -1px rgba(37, 37, 37, 0.02);
}

.elevation-card {
  box-shadow: 0 8px 24px -4px rgba(37, 37, 37, 0.06), 0 2px 6px -1px rgba(37, 37, 37, 0.02);
}

.elevation-hover {
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s ease;
}

.elevation-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -8px rgba(37, 37, 37, 0.1), 0 6px 12px -2px rgba(37, 37, 37, 0.04);
  border-color: rgba(247, 133, 69, 0.5);
}

/* First Product Badge & Highlight */
.first-product-badge {
  box-shadow: 0 2px 6px -1px rgba(211, 23, 29, 0.3);
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Category Tab Buttons */
.cat-filter-tab {
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  user-select: none;
}

.cat-filter-tab:hover {
  color: #F78545;
  border-color: rgba(247, 133, 69, 0.5);
  background-color: #FFFFFF;
}

.cat-filter-tab.active {
  background-color: #D3171D !important;
  color: #FFFFFF !important;
  border-color: #D3171D !important;
  box-shadow: 0 4px 14px -2px rgba(211, 23, 29, 0.35);
}

.cat-filter-tab.active .tab-count-badge {
  background-color: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

/* Horizontal Scroll Container */
.cat-scroll-container {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}

.cat-scroll-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}

/* Product Card Grid Transitions */
.product-item {
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.product-item.filtering-out {
  opacity: 0;
  transform: scale(0.96) translateY(10px);
}

.product-item.filtering-in {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Product Card Placeholder Mesh */
.product-placeholder-pattern {
  background-color: #F9F8F6;
  background-image: radial-gradient(#E8E1DC 1px, transparent 1px);
  background-size: 16px 16px;
}

/* Hero Scientific Ambient Glow */
.hero-glow-orange {
  background: radial-gradient(circle, rgba(247, 133, 69, 0.12) 0%, rgba(247, 133, 69, 0) 70%);
}

.hero-glow-red {
  background: radial-gradient(circle, rgba(211, 23, 29, 0.08) 0%, rgba(211, 23, 29, 0) 70%);
}

.hero-glow-blue {
  background: radial-gradient(circle, rgba(41, 45, 118, 0.06) 0%, rgba(41, 45, 118, 0) 70%);
}

.hero-glow-green {
  background: radial-gradient(circle, rgba(16, 151, 74, 0.06) 0%, rgba(16, 151, 74, 0) 70%);
}

/* Sticky Category Filter Bar */
#solutions-filter-bar.is-stuck {
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px -2px rgba(37, 37, 37, 0.06);
  border-bottom: 1px solid #E8E1DC;
}

/* Header Scrolled State */
header.header-scrolled {
  background-color: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px -2px rgba(37, 37, 37, 0.05);
  border-bottom: 1px solid #E8E1DC;
}

/* Mobile Drawer */
#mobile-drawer.drawer-closed {
  transform: translateX(100%);
  pointer-events: none;
}

#mobile-drawer.drawer-open {
  transform: translateX(0);
  pointer-events: auto;
}

/* Modals (Quick View & Inquiry) */
.modal-closed {
  opacity: 0;
  pointer-events: none;
}

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

.modal-card {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.modal-closed .modal-card {
  transform: scale(0.95) translateY(16px);
  opacity: 0;
}

.modal-open .modal-card {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Scroll Reveal */
.reveal-init {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-init.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-150 { transition-delay: 150ms; }
.delay-200 { transition-delay: 200ms; }

/* Accessible Focus States */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid #D3171D;
  outline-offset: 2px;
}
