/* ==========================================================================
   References Page Specific Styles
   ========================================================================== */

/* References Page Hero */
.products-hero {
  min-height: 400px;
  background: linear-gradient(135deg, var(--green-primary), var(--earth-green));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.products-hero .hero-content {
  max-width: 800px;
  padding: var(--spacing-3xl);
}

.products-hero .hero-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: var(--spacing-lg);
  color: var(--white);
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.products-hero .hero-subtitle {
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 1.8;
  opacity: 0.95;
  margin-bottom: 0;
}

/* References Header */
.references-header {
  margin-bottom: 3rem;
}

.references-title-wrapper {
  margin-bottom: 1rem;
}

.references-title {
  font-size: 2rem;
  font-weight: 700;
  color: #2471A3;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.75rem 0;
  font-family: var(--font-display);
}

.references-title-line {
  width: 320px;
  height: 2px;
  background: #3498DB;
  margin: 0;
}

.references-subtitle {
  font-size: 1.125rem;
  color: var(--gray-800);
  margin: 0;
  font-weight: bold;
}

/* References Grid */
.references-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.reference-item {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  height: 100%;
  width: 100%;
  transition: all 0.3s ease;
  aspect-ratio: 1;
  overflow: hidden;
  box-sizing: border-box;
}

.reference-item:hover {
  border-color: var(--green-primary);
  box-shadow: 0 4px 12px rgba(46, 204, 113, 0.15);
  transform: translateY(-2px);
}

.reference-item img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.reference-item:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .products-hero {
    min-height: 300px;
  }
  
  .products-hero .hero-title {
    font-size: 2rem;
  }
  
  .products-hero .hero-subtitle {
    font-size: 1.125rem;
  }
  
  .references-title {
    font-size: 1.5rem;
  }
  
  .references-title-line {
    width: 225px;
  }
  
  .references-subtitle {
    font-size: 1rem;
  }
  
  .references-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
  }
  
  .reference-item {
    padding: 1rem;
    min-height: 120px;
  }
}

