/* ============================================================
   UAEPC Warehouse Photo Mosaic — SEO Gallery
   Replaces the old 4-card slider on home pages.
   All classes namespaced under .wh- to avoid conflicts.
   ============================================================ */

.wh-section {
  background: #0a0e1a;
  color: #fff;
  padding: 80px 20px;
  box-sizing: border-box;
}
.wh-section *,
.wh-section *::before,
.wh-section *::after { box-sizing: border-box; }

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

.wh-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}
.wh-header h2 {
  font-size: 36px;
  font-weight: 900;
  margin: 0 0 14px;
  color: #fff;
}
.wh-divider {
  width: 80px;
  height: 4px;
  background: #25D366;
  border-radius: 100px;
  margin: 0 auto 18px;
}
.wh-subtitle {
  font-size: 15px;
  line-height: 1.8;
  color: #aaa;
  margin: 0;
}

.wh-mosaic {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 150px;
  gap: 10px;
  grid-auto-flow: dense;
}
.wh-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #1a1f2e;
  margin: 0;
  transition: transform 0.3s, box-shadow 0.3s;
}
.wh-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}
.wh-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s;
}
.wh-item:hover img { transform: scale(1.05); }

.wh-item.wh-large { grid-column: span 2; grid-row: span 2; }
.wh-item.wh-tall  { grid-row: span 2; }
.wh-item.wh-wide  { grid-column: span 2; }

.wh-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(37, 211, 102, 0.95);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.5px;
  z-index: 2;
  pointer-events: none;
}
html[dir="ltr"] .wh-badge { right: auto; left: 12px; }

@media (max-width: 900px) {
  .wh-section { padding: 60px 14px; }
  .wh-header h2 { font-size: 28px; }
  .wh-mosaic {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 110px;
    gap: 8px;
  }
}
@media (max-width: 480px) {
  .wh-mosaic {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 80px;
    gap: 6px;
  }
  .wh-header h2 { font-size: 24px; }
  .wh-subtitle { font-size: 13px; }
}
