@import url(/assets/css/inter.css);
:root {
  --text: black;
  --background: #fffdf8;
  --white-highlight: #fff;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--background);
  color: var(--text);
  font-weight: 200;
  font-size: 1rem;
  line-height: 1.3;
}

main, .header, .footer {
  width: calc(100vw - 40px);
  max-width: 1280px;
  margin: 0 auto;
  background: var(--background);
  color: var(--text);
}
.header {
    padding: 1rem 5%;
}
.logo img {
  width: 290px;
}
h1, h2, h3, h4, h5, h6 {
  font-weight: 200;
  line-height: 1.1;
}
h2 {
  font-size: 4rem;
  margin-block: 2rem;
}

/* footer */
.footer {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem;
  font-size: 0.9rem;
  color: #666;
  background: var(--background) url(/assets/img/kaleido.svg) no-repeat bottom center;
  background-size: 100% auto;
  .footer-links {
    padding-inline: 5%;
    list-style: none;
    margin: 2rem 0 0;
    text-align: right;
    margin-right: 50%;
    a { 
        font-size: 4.5rem;
        color: black;
        text-decoration: none;
        background-image: url('/assets/img/big-ol-squarrow.svg');
        background-repeat: no-repeat;
        background-position: right 0 center;
        padding-right: 4rem;
        transition: all 0.3s ease-in-out;
    }
  }
  .address {
    white-space: nowrap;
  }
  .footer-bottom {
    display: flex;
    gap: 2rem;
    font-size: 0.83rem;
    padding-inline: 10%;
    padding-block: 2rem;
    a {
        color: #1f1f1f;
    }
    a:hover {
        color: black;
    }
  }
}

.footer::before {
  position: absolute;
  top: 0;
  left: 0;
  content: "";
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: black;
}

/* navigation */
.header, .nav, .nav ul {
    display: flex;
    gap: 1rem;
}
.nav {
    flex: 1;
    ul {
        flex: 1;
        list-style: none;
        padding: 0 0 0.5rem;
        margin: 0;
        gap: 1rem;
        align-items: flex-end;
        a {
            color: #1f1f1f;
            text-decoration: none;
            transition: all 0.3s ease-in-out;
            padding: 0.25rem 1rem;
            border: none;
            border-radius: 2rem;
        }
        a:hover, a.active {
            color: black;
            background: #deded5;
            
        }
    }
    .work {
        align-self: flex-end;
        justify-self: flex-end;
        padding-bottom: 0.5rem;
        padding-right: 1rem;
    }
}

.menu-icon, .overlay, #menu-toggle {
  display: none;
}

/* mobile - navigation */
@media screen and (max-width: 1024px) {
  .header {
    display: block;
    position: relative;
  }
  .logo img {
    width: 195px;
  }
  .nav {
      position: absolute;
      top: 60px;
      left: -20px;
      width: 100vw;
      margin: 0;
      padding: 1rem 1rem 2rem;
      display: block;
      background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 0.9) 25%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0.2) 75%,
        rgba(255, 255, 255, 0) 100%
      );
      transform: translateX(calc(-150%));
      transition: transform 0.3s ease;
      backdrop-filter: blur(5px);
    
    ul {
      display: flex;
      margin: 0 0 1rem;
      padding: 0;
      a {
        display: block;
        text-decoration: none;
        font-weight: 300;
      }
      a.active {
        background: black;
        color: #fffdf8;
        font-weight: 300;
      }
      
    }
  }

    /* Hamburger icon wrapper */
    .menu-icon {
      float: right;
      position: relative;
      display: block;
      top: 0;
      left: 15px;
      width: 30px;
      height: 22px;
      cursor: pointer;
      z-index: 2;
    }

    /* Hamburger bars */
    .menu-icon span {
      position: static;
      display: block;
      height: 4px;
      width: 100%;
      background: #333;
      border-radius: 2px;
      margin-bottom: 6px;
      transition: all 0.3s ease;
    }

    /* Animate to X when checked */
    #menu-toggle:checked + .menu-icon span:nth-child(1) {
      transform: rotate(45deg) translate(5px, 5px);
    }

    #menu-toggle:checked + .menu-icon span:nth-child(2) {
      opacity: 0;
      
    }

    #menu-toggle:checked + .menu-icon span:nth-child(3) {
      transform: rotate(-45deg) translate(9px, -9px);
    }

    /* Show menu when checked */
    #menu-toggle:checked ~ .nav {
      transform: translateX(0);
    }

    main {
      margin: 0;
      width: 100vw;
    }

    .cta-button {
      display: inline-block;
    }

    .footer {
      padding-inline: 5%;
    }

    .footer .footer-links {
      padding-inline: 0;
      text-align: left;
    }
    .footer .footer-links a {
      font-size: 2rem;
    }

    .footer-bottom {
      flex-direction: column;
      padding-inline: 0 !important;
    }
}

/* pill buttons */
.pill {
    background: rgba(245, 39, 85, 1) url(/assets/img/arrow.svg) no-repeat calc(100% - 0.4rem) center;
    background-size: 1.2rem 1.2rem;
    border-radius: 1.6rem;
    color: white;
    line-height: 1.0;
    vertical-align: middle;
    text-decoration: none;
    padding: 0.5rem 2.8rem 0.5rem 2.4rem;
    font-weight: 400;
    display: inline-block;
}

@media screen and (max-width: 767px) {
  h2 {
    font-size: 2rem;
  }
  .footer {
    background-size: auto 10px;
  }
}