/*
 * Rowland Made Website V152
 * Explore the Vibe — category-card size and image-ratio alignment.
 *
 * Mobile follows the existing two-column category cards (1.15:1 media).
 * Desktop follows the existing V141 category grid (16:9 media + 68px copy).
 */

.home-vibe .grid2 {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  align-items: start;
}

.home-vibe .cat {
  position: relative !important;
  display: grid !important;
  grid-template-rows: auto 76px;
  min-width: 0;
  height: auto !important;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(7, 30, 61, 0.09) !important;
  border-radius: 16px !important;
  background: var(--white) !important;
  color: var(--navy) !important;
  box-shadow: none !important;
}

.home-vibe .cat-img,
.home-vibe .cat.has-img .cat-img {
  display: block;
  width: 100%;
  height: auto !important;
  min-height: 0;
  aspect-ratio: 1.15 / 1;
  overflow: hidden;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
}

.home-vibe .cat-copy {
  display: flex;
  min-width: 0;
  min-height: 76px;
  flex-direction: column;
  justify-content: center;
  padding: 11px 11px 13px;
  background: var(--white);
}

.home-vibe .cat-copy b {
  position: static !important;
  display: block !important;
  min-width: 0;
  overflow: hidden;
  padding: 0 !important;
  background: transparent !important;
  color: var(--navy) !important;
  font-family: var(--font-brand);
  font-size: 19px !important;
  font-weight: 700;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.home-vibe .cat-copy small {
  display: -webkit-box;
  min-height: 0;
  margin: 5px 0 0;
  overflow: hidden;
  padding: 0;
  color: #667080;
  font-family: var(--font-brand);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

@media (min-width: 901px) {
  .home-vibe .grid2 {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
    gap: 16px !important;
    max-width: 1440px;
    margin: 0 auto;
  }

  .home-vibe .cat {
    grid-template-rows: auto 68px;
    height: 100% !important;
    border-color: rgba(7, 30, 61, 0.12) !important;
    border-radius: 15px !important;
    box-shadow: 0 8px 24px rgba(7, 30, 61, 0.06) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .home-vibe .cat-img,
  .home-vibe .cat.has-img .cat-img {
    aspect-ratio: 16 / 9;
  }

  .home-vibe .cat-copy {
    min-height: 68px;
    padding: 13px 14px 14px;
  }

  .home-vibe .cat-copy b {
    font-size: 13px !important;
    line-height: 1.1;
  }

  .home-vibe .cat-copy small {
    margin-top: 4px;
    color: #5d7082;
    font-size: 9px;
  }

  .home-vibe .cat:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(7, 30, 61, 0.1) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-vibe .cat {
    transition: none;
  }
}
