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

File#: _1_feature-v3
Title: Feature v3
Descr: Content group containing text + media element that outsets its container at a specific viewport size
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: hsl(250, 84%, 54%);
  box-shadow: inset 0 1px 0 hsla(0, 0%, 100%, 0.15), 
              0 1px 3px hsla(250, 84%, 38%, 0.25), 
              0 2px 6px hsla(250, 84%, 38%, 0.1), 
              0 6px 10px -2px hsla(250, 84%, 38%, 0.25);
  color: hsl(0, 0%, 100%);
}

.cd-btn--primary:hover {
  background: hsl(250, 84%, 60%);
  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);
}

.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-v3 {}

.feature-v3__grid {
  display: grid;
  gap: 2rem;
}

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

.feature-v3__content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-v3__label {
  font-size: 0.9375rem;
  color: hsl(240, 4%, 65%);
  text-transform: capitalize;
}

.feature-v3__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.feature-v3__media-wrapper > * {
  border-radius: 0.75em;
  box-shadow: 0 1.2px 1.9px -1px hsla(230, 13%, 9%, 0.01),
              0 3px 5px -1px hsla(230, 13%, 9%, 0.015),
              0 8px 15px -1px hsla(230, 13%, 9%, 0.05),
              0 28px 40px -1px hsla(230, 13%, 9%, 0.1),
              0 0 0 1px hsla(230, 13%, 9%, 0.05);
}

@media (min-width: 64rem) {
  .feature-v3 {
    overflow-x: clip;
  }

  .feature-v3__grid {
    grid-template-columns: repeat(12, 1fr);
    align-items: center;
  }

  .feature-v3__grid > * {
    min-width: 0;
    grid-column-end: span 6;
  }

  .feature-v3__media-wrapper {
    position: relative;
    height: 520px;
  }

  .feature-v3__media-wrapper > * {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    max-width: none;
    width: auto;
  }
}

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

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 {
  margin-top: 8rem;
  margin-bottom: 8rem;
}

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

.cd-link {
  color: hsl(250, 84%, 54%);
  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%;
}