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

File#: _1_feature
Title: Feature
Descr: Content group containing text + media (img, video, iframe, inline SVG)
Usage: codyhouse.co/license

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

Buttons 

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

.cd-btn {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  white-space: nowrap;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 0.375em;
  font-size: 1em;
  font-weight: 500;
  text-decoration: none;
  line-height: 1.2;
  cursor: pointer;
  transition: 0.2s;
  will-change: transform;
}

.cd-btn:focus-visible {
  outline: none;
}

.cd-btn:active {
  transform: translateY(2px);
}

.cd-btn--primary {
  background: var(--color-bg-lighter);
  box-shadow: inset 0px 1px 0px hsl(0deg 0% 0% / 15%), 0px 1px 3px hsl(0deg 0% 42.3% / 25%), 0px 2px 6px hsl(0deg 0% 58.66% / 10%), 0px 6px 10px -2px hsl(0deg 0% 43.15% / 25%);
  color: var(--color-black);
}

.cd-btn--primary:hover {
 background: var(--color-black);
  color: var(--color-bg-lighter);
  box-shadow: inset 0 1px 0 hsla(0, 0%, 100%, 0.15), 
              0 1px 2px hsl(0deg 0% 0% / 25%), 
              0 1px 4px hsl(0deg 0% 0% / 10%), 
              0 3px 6px -2px hsl(0deg 0% 0% / 25%);
}

.cd-btn--primary:focus-visible {
  box-shadow: inset 0 1px 0 hsla(0, 0%, 100%, 0.15), 
              0 1px 2px hsla(250, 84%, 38%, 0.25), 
              0 1px 4px hsla(250, 84%, 38%, 0.1), 
              0 3px 6px -2px hsla(250, 84%, 38%, 0.25), 
              0 0 0 2px hsl(0, 0%, 100%), 
              0 0 0 4px hsl(250, 84%, 54%);
}

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

Component 

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

.feature {}

.feature__grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.feature__grid > * {
  min-width: 0;
}

.feature__content {
  display: flex;
  gap: 1rem;
  flex-direction: column;
}
.feature__content h2{
    color: var(--color-bg-light);
    font-size: 2em;
}
.feature__content p{
    color: var(--color-bg-light);
}
.feature__label {
  font-size: 0.9375rem;
  color: hsl(240, 4%, 65%);
  text-transform: capitalize;
}

.feature__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}
.feature__actions > .cd-link{
    color: var(--color-bg-light);
}
.feature--center-x .feature__actions {
  justify-content: center;
}

.feature__img {
  width: 100%;
  border-radius: 0.75em;
}

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

  .feature--invert .feature__grid > *:first-child {
    order: 2;
  }
}

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

Utilities 

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

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

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

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

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

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

.cd-position-relative {
  position: relative;
}

.cd-z-index-1 {
  z-index: 1;
}

.cd-margin-y-2xl {
  padding-top: 8rem;
  padding-bottom: 8rem;
  background-color: var(--color-accent-dark);
}

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

.cd-line-height-lg {
  line-height: 1.58;
}

.cd-link {
  color: var(--color-accent-dark);
  text-decoration: none;
  background-image: linear-gradient(to right, hsl(250, 84%, 54%) 50%, hsla(250, 84%, 54%, 0.2) 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%;
}