/* -------------------------------- 

File#: _1_card-v11
Title: Card v11
Descr: Container of information over a background image
Usage: codyhouse.co/license

-------------------------------- */
/* reset */
*, *::after, *::before {
  box-sizing: border-box;
}

* {
  font: inherit;
  margin: 0;
  padding: 0;
  border: 0;
}

body {
  background-color: hsl(0, 0%, 100%);
  font-family: system-ui, sans-serif;
  color: hsl(230, 7%, 23%);
  font-size: 1rem;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  color: hsl(230, 13%, 9%);
  font-weight: 700;
}

h1 {
  font-size: 2.0736rem;
}

h2 {
  font-size: 1.728rem;
}

h3 {
  font-size: 1.25rem;
}

h4 {
  font-size: 1.2rem;
}

ol, ul, menu {
  list-style: none;
}

button, input, textarea, select {
  background-color: transparent;
  border-radius: 0;
  color: inherit;
  line-height: inherit;
  appearance: none;
}

textarea {
  resize: vertical;
  overflow: auto;
  vertical-align: top;
}

a {
  color: hsl(250, 84%, 54%);
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

img, video, svg {
  display: block;
  max-width: 100%;
}

@media (min-width: 64rem) {
  body {
    font-size: 1.25rem;
  }

  h1 {
    font-size: 3.051rem;
  }

    h2 {
    font-size: 2.44rem;
  }

    h3 {
    font-size: 1.75rem;
  }

    h4 {
    font-size: 1.5625rem;
  }
}

/* variables */
:root {
  /* colors */
  --co7-color-primary-hsl: 250, 84%, 54%;
  --co7-color-bg-hsl: 0, 0%, 100%;
  --co7-color-contrast-high-hsl: 230, 7%, 23%;
  --co7-color-contrast-higher-hsl: 230, 13%, 9%;
  --co7-color-contrast-lower-hsl: 240, 4%, 85%;

  /* spacing */
  --co7-space-2xs: 0.375rem;
  --co7-space-md: 1.25rem;

  /* typography */
  --co7-text-lg: 1.25rem;
  --co7-text-sm: 0.833rem;
}

@media(min-width: 64rem){
  :root {
    /* spacing */
    --co7-space-2xs: 0.5625rem;
    --co7-space-md: 2rem;

    /* typography */
    --co7-text-lg: 1.75rem;
    --co7-text-sm: 1rem;
  }
}

/* icons */
.co7-icon {
  height: var(--co7-size, 1em);
  width: var(--co7-size, 1em);
  display: inline-block;
  color: inherit;
  fill: currentColor;
  line-height: 1;
  flex-shrink: 0;
  max-width: initial;
}

/* component */
:root {
  --card-v11-height: 320px;
  --card-v11-btn-height: 50px;
}
@media (min-width: 64rem) {
  :root {
    --card-v11-height: 480px;
    --card-v11-btn-height: 70px;
  }
}

.card-v11 {
  display: block;
  position: relative;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  height: var(--card-v11-height);
  background-color: hsl(var(--co7-color-contrast-lower-hsl));
  background-size: cover;
  background-repeat: no-repeat;
}
.card-v11:hover .card-v11__btn {
  background-color: #00a1af;
  color: hsl(var(--co7-color-contrast-higher-hsl));
}
.card-v11:hover .card-v11__icon line:nth-child(1),
.card-v11:hover .card-v11__icon line:nth-child(2) {
  opacity: 1;
  -webkit-transform: rotate(0deg);
          transform: rotate(0deg);
  transition: opacity 0s 0.2s, -webkit-transform 0.2s 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
  transition: opacity 0s 0.2s, transform 0.2s 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
  transition: opacity 0s 0.2s, transform 0.2s 0.2s cubic-bezier(0.645, 0.045, 0.355, 1), -webkit-transform 0.2s 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
}
.card-v11:hover .card-v11__icon line:nth-child(3) {
  stroke-dashoffset: 96;
  transition: stroke-dashoffset 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.card-v11__box {
  position: absolute;
  bottom: 0;
  right: 0;
  background-color: hsla(var(--co7-color-contrast-higher-hsl), 0.95);
  color: hsl(var(--co7-color-bg-hsl));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@supports ((-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px))) {
  .card-v11__box {
    background-color: hsla(var(--co7-color-contrast-higher-hsl), 0.7);
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
  }
}

.card-v11__btn {
  display: flex;
  align-items: center;
  height: var(--card-v11-btn-height);
  transition: 0.4s;
}

.card-v11__icon {
  font-size: 48px;
}
.card-v11__icon line:nth-child(1),
.card-v11__icon line:nth-child(2) {
  -webkit-transform-origin: 47px 24px;
          transform-origin: 47px 24px;
  opacity: 0;
  transition: opacity 0s 0.2s, -webkit-transform 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
  transition: opacity 0s 0.2s, transform 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
  transition: opacity 0s 0.2s, transform 0.2s cubic-bezier(0.645, 0.045, 0.355, 1), -webkit-transform 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
}
.card-v11__icon line:nth-child(1) {
  -webkit-transform: rotate(-45deg);
          transform: rotate(-45deg);
}
.card-v11__icon line:nth-child(2) {
  -webkit-transform: rotate(45deg);
          transform: rotate(45deg);
}
.card-v11__icon line:nth-child(3) {
  stroke-dasharray: 48;
  stroke-dashoffset: 72;
  transition: stroke-dashoffset 0.2s 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* utility classes */
.co7-padding-x-md {
  padding-left: var(--co7-space-md);
  padding-right: var(--co7-space-md);
}

.co7-color-inherit {
  color: inherit;
}

.co7-text-lg {
  font-size: var(--co7-text-lg);
}

.co7-margin-bottom-2xs {
  margin-bottom: var(--co7-space-2xs);
}

.co7-opacity-60\% {
  opacity: 0.6;
}

.co7-text-sm {
  font-size: var(--co7-text-sm);
}

.co7-padding-md {
  padding: var(--co7-space-md);
}

.co7-width-100\% {
  width: 100%;
}

@media(min-width: 64rem){
  .co7-width-50\%\@md {
    width: 50%;
  }
}