/* ==========================================================================
   VORTEX ECOTECH - COMPONENTS STYLESHEET
   Cards, Spec Tables, Process Flow, Modal, Tabs, Accordions, Toasts
   ========================================================================== */

/* ==========================================================================
   1. Impact & Stats Counter Strip
   ========================================================================== */
.stats-strip {
  background: var(--bg-dark-card);
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem;
}

.stat-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--primary-400);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon svg {
  width: 28px;
  height: 28px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.stat-number span.unit {
  color: var(--primary-400);
  font-size: 1.5rem;
  margin-left: 2px;
}

.stat-label {
  font-size: 0.8438rem;
  color: var(--text-white-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
  margin-top: 0.25rem;
}

/* ==========================================================================
   2. Waste-to-Resource Interactive Process Flow
   ========================================================================== */
.process-section {
  background: #ffffff;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
  position: relative;
}

.process-grid::before {
  content: "";
  position: absolute;
  top: 45px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: repeating-linear-gradient(90deg, #cbd5e1, #cbd5e1 6px, transparent 6px, transparent 12px);
  z-index: 1;
}

.process-card {
  position: relative;
  z-index: 2;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.5rem 1.75rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.process-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-400);
}

.process-step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-900);
  color: var(--primary-400);
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 2px var(--primary-500);
  margin: -45px auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  transition: var(--transition);
}

.process-card:hover .process-step-num {
  background: var(--primary-500);
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.3);
}

.process-img-wrap {
  width: 100%;
  height: 140px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.25rem;
  background: var(--primary-900);
}

.process-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.process-card:hover .process-img-wrap img {
  transform: scale(1.08);
}

.process-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: var(--primary-50);
  color: var(--primary-700);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.process-icon-wrap svg {
  width: 30px;
  height: 30px;
}

.process-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--primary-900);
}

.process-card p {
  font-size: 0.9063rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   3. Service Cards & Grids
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(16, 185, 129, 0.4);
}

.service-card-media {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: var(--primary-900);
}

.service-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-card:hover .service-card-media img {
  transform: scale(1.08);
}

.service-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
}

.service-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-card-body h3 {
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
  color: var(--primary-900);
}

.service-card-body p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-card-features {
  margin-bottom: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.service-card-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-main);
  margin-bottom: 0.45rem;
}

.service-card-features li svg {
  width: 16px;
  height: 16px;
  color: var(--primary-500);
  flex-shrink: 0;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--primary-600);
}

.service-link:hover {
  color: var(--primary-500);
  gap: 0.75rem;
}

/* ==========================================================================
   4. Products Catalog & Product Cards (B2B Showcase - No Cart)
   ========================================================================== */
/* Filter Tabs */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.65rem 1.35rem;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  background: #ffffff;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  border-color: var(--primary-400);
  color: var(--primary-700);
}

.filter-btn.active {
  background: var(--primary-900);
  color: #ffffff;
  border-color: var(--primary-900);
  box-shadow: var(--shadow-sm);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.product-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(16, 185, 129, 0.35);
}

.product-media {
  position: relative;
  height: 230px;
  background: #f1f5f9;
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-media img {
  transform: scale(1.06);
}

.product-type-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
}

.product-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-code {
  font-size: 0.75rem;
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}

.product-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-900);
  margin-bottom: 0.75rem;
}

.product-desc {
  font-size: 0.9063rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

/* Product Key Specs Mini Grid */
.product-specs-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  background: var(--bg-body);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  margin-bottom: 1.5rem;
}

.spec-mini-item {
  display: flex;
  flex-direction: column;
}

.spec-mini-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.spec-mini-val {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--primary-900);
}

.product-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
}

.product-actions .btn {
  flex: 1;
  font-size: 0.8438rem;
  padding: 0.65rem 0.5rem;
}

/* ==========================================================================
   5. Technical Data Sheet (TDS) Spec Table
   ========================================================================== */
.spec-table-container {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2.5rem;
}

.spec-table-header {
  padding: 1.25rem 1.75rem;
  background: var(--primary-900);
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.spec-table-header h3 {
  color: #ffffff;
  font-size: 1.15rem;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9375rem;
}

.spec-table th, .spec-table td {
  padding: 1rem 1.75rem;
  border-bottom: 1px solid var(--border-light);
}

.spec-table th {
  background: var(--bg-body);
  color: var(--primary-900);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.spec-table tr:last-child td {
  border-bottom: none;
}

.spec-table tr:hover td {
  background: rgba(16, 185, 129, 0.03);
}

.spec-table td.spec-param {
  font-weight: 600;
  color: var(--primary-900);
}

.spec-table td.spec-unit {
  color: var(--text-muted);
}

.spec-table td.spec-val {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary-700);
}

.spec-table td.spec-method {
  font-size: 0.8125rem;
  color: var(--text-light);
  font-family: monospace;
}

/* ==========================================================================
   6. Blog / Newsroom Cards
   ========================================================================== */
.blogs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.blog-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(16, 185, 129, 0.35);
}

.blog-media {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: var(--primary-950);
}

.blog-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-media img {
  transform: scale(1.07);
}

.blog-category-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
}

.blog-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.blog-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.blog-meta svg {
  width: 14px;
  height: 14px;
}

.blog-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--primary-900);
  line-height: 1.35;
}

.blog-title a:hover {
  color: var(--primary-500);
}

.blog-excerpt {
  font-size: 0.9063rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--primary-600);
}

.blog-read-more:hover {
  color: var(--primary-500);
  gap: 0.65rem;
}

/* ==========================================================================
   7. Accordion (FAQs & Technical Details)
   ========================================================================== */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.accordion-item {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.accordion-item.active {
  border-color: var(--primary-400);
  box-shadow: var(--shadow-sm);
}

.accordion-header {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--primary-900);
}

.accordion-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary-50);
  color: var(--primary-600);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
  background: var(--primary-500);
  color: #ffffff;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.accordion-item.active .accordion-content {
  max-height: 400px;
  padding: 0 1.5rem 1.25rem 1.5rem;
}

/* ==========================================================================
   8. Global B2B Inquiry Modal & Drawers
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 17, 13, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #ffffff;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

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

.modal-header {
  padding: 1.75rem 2rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.modal-header h3 {
  font-size: 1.5rem;
  color: var(--primary-900);
}

.modal-header p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.modal-close-btn {
  background: var(--bg-body);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: #fee2e2;
  color: #dc2626;
}

.modal-body {
  padding: 2rem;
}

/* Forms inside modal and contact */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.8438rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.45rem;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  color: var(--text-main);
  background: #ffffff;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ==========================================================================
   9. Notification Toast
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  background: var(--primary-900);
  color: #ffffff;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border-left: 4px solid var(--primary-400);
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
  max-width: 380px;
  font-size: 0.9063rem;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  color: var(--primary-400);
  flex-shrink: 0;
}

.toast-icon svg {
  width: 20px;
  height: 20px;
}

/* ==========================================================================
   10. Floating Quick Inquiry Widget
   ========================================================================== */
.floating-inquiry-btn {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 999;
  background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-800) 100%);
  color: #ffffff;
  border: 1px solid rgba(52, 211, 153, 0.35);
  box-shadow: var(--shadow-lg);
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition);
}

.floating-inquiry-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 25px rgba(10, 31, 24, 0.3);
  border-color: var(--primary-400);
}

.floating-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-400);
  box-shadow: 0 0 10px #34d399;
  animation: pulse 1.8s infinite;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-grid::before {
    display: none;
  }
  .services-grid, .products-grid, .blogs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .process-grid {
    grid-template-columns: 1fr;
  }
  .services-grid, .products-grid, .blogs-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .floating-inquiry-btn {
    bottom: 1rem;
    left: 1rem;
    padding: 0.65rem 1rem;
    font-size: 0.8125rem;
  }
}
