.category-index__intro {
  max-width: 46rem;
  margin: 0 0 2.25rem;
}

.category-index__intro h1 {
  margin-bottom: 0.65rem;
  color: var(--primary, #374f47);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.category-index__intro p {
  margin-bottom: 0;
  color: #4f5753;
  font-size: 1.05rem;
  line-height: 1.65;
}

.category-index__grid {
  row-gap: 0.35rem;
}

.category-tile {
  overflow: hidden;
  border-radius: 15px;
  background: var(--primary, #374f47);
  box-shadow: 0 6px 20px rgb(32 45 39 / 12%);
  transition: box-shadow 180ms ease-out, transform 180ms ease-out;
}

.category-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgb(32 45 39 / 19%);
}

.category-tile__link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1.38 / 1;
  border-radius: inherit;
  background: var(--primary, #374f47);
  color: #fff;
  text-decoration: none;
  isolation: isolate;
}

.category-tile__image,
.category-tile__fallback,
.category-tile__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.category-tile__image {
  z-index: -2;
  object-fit: cover;
  transition: transform 320ms ease-out;
}

.category-tile__fallback {
  z-index: -2;
  background: var(--primary, #374f47);
}

.category-tile__shade {
  z-index: -1;
  background: linear-gradient(180deg, rgb(17 27 23 / 0%) 26%, rgb(17 27 23 / 88%) 100%);
}

.category-tile__content {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.1rem, 3vw, 1.65rem);
  color: #fff;
}

.category-tile__content h2 {
  max-width: 100%;
  margin: 0 0 0.4rem;
  color: inherit;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 1px 8px rgb(0 0 0 / 20%);
}

.category-tile__description {
  display: -webkit-box;
  max-width: 38rem;
  overflow: hidden;
  margin: 0 0 0.8rem;
  color: rgb(255 255 255 / 92%);
  font-size: 0.94rem;
  line-height: 1.45;
  text-shadow: 0 1px 6px rgb(0 0 0 / 28%);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.category-tile__meta {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
}

.category-tile__arrow {
  display: grid;
  flex: 0 0 auto;
  width: 2.45rem;
  height: 2.45rem;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--primary, #374f47);
  box-shadow: 0 3px 10px rgb(23 36 30 / 18%);
  transition: color 180ms ease-out, background-color 180ms ease-out, transform 180ms ease-out;
}

.category-tile:hover .category-tile__image,
.category-tile__link:focus-visible .category-tile__image {
  transform: scale(1.045);
}

.category-tile:hover .category-tile__arrow,
.category-tile__link:focus-visible .category-tile__arrow {
  transform: translateX(2px);
  background: var(--secondary, #70a38e);
  color: #fff;
}

.category-tile__link:focus-visible {
  outline: 3px solid var(--secondary, #70a38e);
  outline-offset: -4px;
}

.category-tile--text-only .category-tile__shade {
  background: linear-gradient(145deg, var(--primary, #374f47), #263b33);
}

/* Brand logos need a separate visual area so the brand name stays readable. */
.category-tile--brand {
  background: #fff;
}

.category-tile--brand .category-tile__link {
  display: flex;
  min-height: 18rem;
  aspect-ratio: auto;
  flex-direction: column;
  background: #fff;
  color: var(--primary, #374f47);
}

.category-tile--brand .category-tile__visual {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 1rem;
  background: #fff;
}

.category-tile--brand .category-tile__image {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 13rem;
  object-fit: contain;
  transition: transform 320ms ease-out;
}

.category-tile--brand .category-tile__fallback {
  position: static;
  width: 100%;
  height: 100%;
  min-height: 7rem;
  background: linear-gradient(145deg, var(--primary, #374f47), #263b33);
}

.category-tile--brand .category-tile__content {
  position: static;
  min-height: 7.25rem;
  width: 100%;
  justify-content: center;
  padding: 1.1rem 1.25rem;
  background: #f7f8f7;
  color: var(--primary, #374f47);
}

.category-tile--brand .category-tile__content h2 {
  text-shadow: none;
}

.category-tile--brand .category-tile__description {
  color: #4f5753;
  text-shadow: none;
}

.category-tile--brand .category-tile__meta {
  color: #4f5753;
}

.category-tile--brand .category-tile__arrow {
  background: var(--primary, #374f47);
  color: #fff;
}

.category-tile--category {
  background: #fff;
}

.category-tile--category .category-tile__link {
  display: flex;
  min-height: 100%;
  aspect-ratio: auto;
  flex-direction: column;
  background: #fff;
  color: var(--primary, #374f47);
}

.category-tile--category .category-tile__visual {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fff;
}

.category-tile--category .category-tile__image {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 320ms ease-out;
}

.category-tile--category .category-tile__fallback {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, var(--primary, #374f47), #263b33);
}

.category-tile--category .category-tile__content {
  position: static;
  min-height: 7.25rem;
  width: 100%;
  justify-content: center;
  padding: 1.1rem 1.25rem;
  background: #f7f8f7;
  color: var(--primary, #374f47);
}

.category-tile--category .category-tile__content h2 {
  text-shadow: none;
}

.category-tile--category .category-tile__description {
  color: #4f5753;
  text-shadow: none;
}

.category-tile--category .category-tile__meta {
  color: #4f5753;
}

.category-tile--category .category-tile__arrow {
  background: var(--primary, #374f47);
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .category-tile,
  .category-tile__image,
  .category-tile__arrow {
    transition: none;
  }

  .category-tile:hover,
  .category-tile:hover .category-tile__image,
  .category-tile__link:focus-visible .category-tile__image,
  .category-tile:hover .category-tile__arrow,
  .category-tile__link:focus-visible .category-tile__arrow {
    transform: none;
  }
}

@media (max-width: 575.98px) {
  .category-index__intro {
    margin-bottom: 1.5rem;
  }

  .category-tile__link {
    aspect-ratio: 1.2 / 1;
  }

  .category-tile--brand .category-tile__link {
    aspect-ratio: auto;
  }

  .category-tile--category .category-tile__link {
    aspect-ratio: auto;
  }

  .category-tile__content {
    padding: 1rem;
  }

  .category-tile__arrow {
    width: 2.2rem;
    height: 2.2rem;
  }
}
