/* Home & Agri Category Grid - Styles (namespaced) */
.haag-section-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.haag-grid-item {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
  min-height: 60vh;
}

.haag-glass-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(98, 88, 88, 0.2);
  backdrop-filter: blur(20px);
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  z-index: 1;
}

.haag-content {
  position: absolute;
  bottom: 80px;
  left: 80px;
  right: 80px;
  z-index: 2;
  color: #ffffff;
}

.haag-text {
  transition: transform 0.5s ease-in-out;
}

.haag-content h2 {
  font-size: 1.5rem;
  margin-bottom: 5px;
  transition: transform 0.5s ease-in-out;
  color: white;
}

.haag-content .description {
  font-size: 1rem;
  margin-bottom: 50px;
  color: #fff;
  opacity: 0;
  max-height: 0;
  transition: opacity 0.5s ease-in-out, max-height 0.5s ease-in-out, transform 0.5s ease-in-out;
  transform: translateY(20px);
}

/* CTA */
.haag-cta-link { text-decoration: none; color: inherit; }
.haag-cta { display: inline-flex; align-items: center; color: #fff; font-weight: bold; cursor: pointer; position: relative; overflow: hidden; }
.haag-cta-text-wrap { position: relative; display: inline-block; height: 1em; overflow: hidden; }
.haag-cta-text { display: block; transform: translateY(0); transition: transform 0.3s ease; }
.haag-cta-text-hover { position: absolute; top: 100%; left: 0; right: 0; }
@media (hover: hover) and (pointer: fine) {
  .haag-cta:hover .haag-cta-text { transform: translateY(-100%); }
}
.haag-cta-arrow { color: #88D339; margin-left: 8px; transition: transform 0.3s ease; }
@media (hover: hover) and (pointer: fine) {
  .haag-cta:hover .haag-cta-arrow { transform: translateX(4px); }
}

/* Hover & Active */
@media (hover: hover) and (pointer: fine) {
  .haag-grid-item:hover .haag-glass-overlay,
  .haag-grid-item.active .haag-glass-overlay { opacity: 1; }
  .haag-grid-item:hover .haag-content .description,
  .haag-grid-item.active .haag-content .description {
    opacity: 1;
    max-height: 80px;
    transform: translateY(0);
  }
  .haag-grid-item:hover .haag-content h2,
  .haag-grid-item.active .haag-content h2 {
    transform: translateY(-30px);
  }
}

/* Mobile */
@media (hover: none) {
  .haag-section-container { grid-template-columns: 1fr; }
  .haag-grid-item { width: 100%; aspect-ratio: 1 / 1; min-height: auto; }
  .haag-glass-overlay { display: none; }
  .haag-content { background: rgba(255,255,255,0.2); backdrop-filter: blur(10px); border-radius: 10px; padding: 20px; position: absolute; bottom: 20px; left: 20px; right: 20px; z-index: 2; color: #000; }
  .haag-content .description { opacity: 1; max-height: none; transform: none; transition: none; }
  .haag-content h2 { transform: none; transition: none; color: #000; }
}
