/* -------------------------------- 

File#: _1_feature-v6
Title: Feature v6
Descr: A section containing a list of features
Usage: codyhouse.co/license

-------------------------------- */

/* -------------------------------- 

Icons 

-------------------------------- */

.cd-icon {
  --size: 1em;
  font-size: var(--size);
  height: 1em;
  width: 1em;
  display: inline-block;
  color: inherit;
  fill: currentColor;
  line-height: 1;
  flex-shrink: 0;
  max-width: initial;
}

.cd-icon use { /* SVG symbols - enable icon color corrections */
  color: inherit;
  fill: currentColor;
}

/* -------------------------------- 

Component 

-------------------------------- */

.feature-v6 {
  position: relative;
  z-index: 1;
}

.feature-v6__grid {
  display: grid;
  gap: 3rem;
}

.feature-v6__grid > * {
  min-width: 0;
}

.feature-v6__img {
  width: 100%;
  border-radius: 0.375em;
  margin-bottom: 1rem;
}

.feature-v6__icon-wrapper {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px hsla(230, 13%, 9%, 0.05);
  background-color: hsl(0, 0%, 100%);
  margin-bottom: 1rem;
}

.feature-v6__icon {
  --size: 24px;
  color: hsl(250, 84%, 54%);
}

.feature-v6__description {
  color: hsl(225, 4%, 47%);
  line-height: 1.58;
}

@media (min-width: 64rem) {
  .feature-v6__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* -------------------------------- 

Utilities 

-------------------------------- */

.cd-margin-x-auto {
  margin-left: auto;
  margin-right: auto;
}

.cd-margin-bottom-2xs {
  margin-bottom: 0.75rem;
}

.cd-margin-bottom-xs {
  margin-bottom: 1rem;
}

.cd-padding-y-xl {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.cd-container {
  width: calc(100% - 3rem);
  margin-left: auto;
  margin-right: auto;
}

.cd-max-width-adaptive-lg {
  max-width: 32rem;
}

@media (min-width: 64rem) {
  .cd-max-width-adaptive-lg {
    max-width: 64rem;
  }
}

@media (min-width: 85.5rem) {
  .cd-max-width-adaptive-lg {
    max-width: 80rem;
  }
}

.cd-link {
  color: var(--color-accent-dark);
  text-decoration: none;
  background-image: linear-gradient(to right, hsl(0deg 0% 0%) 50%, hsl(0deg 0% 0% / 20%) 50%);
  background-size: 200% 1px;
  background-repeat: no-repeat;
  background-position: 100% 100%;
  transition: background-position 0.2s;
}

.cd-link:hover {
  background-position: 0% 100%;
}

.cd-text-center {
  text-align: center;
}