:root {
    --black: #272823;
    --white: #ffffff;
    --light-green: #DBEDBB;
}

html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}

body {
  margin: 0;
  padding: 0;
  font-family: "greycliff-cf", sans-serif;
  /* font-weight: 700; */
  font-style: normal;
  font-size: 18px;
  background: var(--black);
  position: relative;
}
img {
  width: 100%;
}

.hero {
  /* background: url(images/hero-thumbnail.jpg) center top / cover #ECEEE7; */
  background-repeat: no-repeat;
  height: 90vh;
  min-height: 600px;
  max-height: 800px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  & video {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: -1;
    background: url(images/hero-thumbnail.jpg) center top / cover #312113;
  }
}
header {
  display: flex;
  padding: 80px 80px 0;
  align-items: center;
  /* background: url(images/header-bg.jpg) center center / cover #ECEEE7; */
}
#logo {
  flex-shrink: 0;
  text-indent: 100%;
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
  width: 259px;
  height: 74px;
  margin: 0 auto 0 0;
  background: url(images/afternoon-logo.svg) no-repeat;
}

a {
  text-decoration: none;
  color: var(--black);
  font-weight: 500;
}
nav ul {
  list-style-type: none;
  margin: 0 -10px 0 0;
  display: flex;
  padding: 0;
  line-height: 1;
}
nav ul li {
  margin: 0 5px;
}
nav ul li a {
  color: var(--white);
  display: flex;
  position: relative;
  padding: 11px 24px 13px 52px;
  line-height: 1;
  border-radius: 6px;
  outline: 1px solid rgba(255,255,255,.5);
  transition: .1s ease background;
}
nav ul li a:hover,
nav ul li a:focus {
  background: rgba(39, 40, 35, 0.5);
}

.icon {
  background-image: url(images/instagram.svg);
  background-position: center center;
  background-repeat: no-repeat;
  width: 22px;
  height: 22px;
  background-size: contain;
  position: absolute;
  top: 10px;
  left: 20px;
}
.icon.email {
  background-image: url(images/email.svg);
}
.icon.email-dark {
  background-image: url(images/email-dark.svg);
}
.icon.youtube {
  background-image: url(images/youtube.svg);
}

.hero-content-container {
  flex-grow: 1;
  display: flex;
  align-items: center;
  padding: 0 80px;
}
.hero-content {
  color: #fff;
  max-width: 650px;
  text-shadow: 0 4px 10px rgba(0,0,0,0.5);
  padding-bottom: 30px;
  & h2 {
    font-size: 80px;
    line-height: 1;
    letter-spacing: -1px;
    margin: 0;
  }
  & p {
    font-size: 20px;
    font-weight: normal;
    line-height: 1.75;
  }
}

@property --myColor1 {
  syntax: '<color>';
  initial-value: #536218;
  inherits: false;
}

@property --myColor2 {
  syntax: '<color>';
  initial-value: #272823;
  inherits: false;
}

.cta {
  background: white;

  border-radius: 100px;
  max-width: 600px;
  margin: 0 auto;
  padding: 20px 20px 20px 40px;
  display: flex;
  /* flex-direction: row; */
  align-items: center;
  position: sticky;
  z-index: 10;
  top: 20px;
  height: 90px;
  margin: -45px auto -45px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 100%), #DBEDBB;
  box-shadow: 0px 11px 30.9px rgba(0, 0, 0, 0.31), inset 0px 2px 0px rgba(255, 255, 255, .75);
  border-radius: 65px;
  transition: .5s ease all;
  & p {
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 1px 0;
    line-height: 1;
  }
  & .cta-button {
    /*
      Gradient transition https://stackoverflow.com/a/63848864
     */

    color: var(--white);
    background: linear-gradient(var(--myColor1), var(--myColor2));
    transition: --myColor1 .2s, --myColor2 .2s, .2s ease box-shadow;
    /* box-shadow: inset 0px 1px 0px rgba(255, 255, 255, 0.25); */
    text-shadow: 0 2px 3px rgba(0,0,0,0.5);
    border-radius: 40px;
    padding: 15px 30px 17px;
    line-height: 1;
    margin-left: 10px;
    &:hover,
    &:focus {
      --myColor1: #95BA00;
      --myColor2: #3E4C07;
      box-shadow: 0 1px 4px rgba(0,0,0,0.2);
      border-radius: 40px;
    }
    &:focus {
      outline: 1px solid var(--black);
      outline-offset: 2px;
    }
  }
}

.footer-visible .cta {
  opacity: 0;
  transform: translateY(-120px);
}
.number {
  letter-spacing: 1px;
}

@media screen and (max-width: 900px) {
  header {
    padding: 40px 20px;
    flex-direction: column;
  }
  #logo {
    margin: 0 0 20px 0;
    background-size: contain;
    width: 210px;
    height: 60px;
  }
  nav ul {
    margin: 0;
    justify-content: center;
    font-size: 14px;
  }
  nav ul li {
    margin: 0 5px;
  }
  nav ul li a {
    padding: 8px 10px 10px 34px;
  }
  .icon {
    width: 16px;
    top: 5px;
    left: 10px;
  }
  .hero {
    height: 600px;
    & .hero-content-container {
      padding: 0 40px;
    }
    & h2 {
      font-size: 60px;
    }
  }
  .cta {
    position: fixed;
    bottom: 20px;
    right: 20px;
    left: 20px;
    top: unset;
    margin: 0;
    height: auto;
    flex-direction: column;
    border-radius: 12px;
    padding: 20px 30px;
    left: unset;
    & p {
      width: 100%;
      text-align: center;
      margin-bottom: 20px;
    }
    & .cta-buttons {
      text-align: center;
      margin-bottom: 10px;
    }
    & .cta-button {
      font-size: 16px;
      padding: 10px 20px 12px;
      margin-left: 0;
    }
  }
  .footer-visible .cta {
    opacity: 0;
    transform: translateX(340px);
  }
}

@media screen and (max-width: 500px) {
  .hero h2 {
    font-size: 40px;
  }
  .cta {
    left: 20px;
    bottom: 0;
    border-radius: 12px 12px 0 0;
    & p {
      font-size: 20px;
    }
  }
  .footer-visible .cta {
    opacity: 0;
    transform: translateY(115px);
  }
}

@media screen and (max-width: 400px) {
  nav ul {
    flex-direction: column;
    align-items: center;
  }
  nav ul li {
    margin-bottom: 10px;
  }
}


/* Layout */

.two-third-one-third {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-areas:
    "main secondary-1"
    "main secondary-2";
}
.one-third-two-third {
  display: grid;
  grid-template-columns: 1fr 2fr;
  grid-template-areas:
    "secondary-1 main"
    "secondary-2 main";
}
.image-main {
  grid-area: main;
}
.image-secondary-1 {
  grid-area: secondary-1;
}
.image-secondary-2 {
  grid-area: secondary-2;
}

.half-and-half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "first-half second-half";
}
.image-first-half {
  grid-area: first-half;
}
.image-second-half {
  grid-area: second-half;
}

@media screen and (max-width: 900px) {
  .two-third-one-third,
  .one-third-two-third,
  .half-and-half {
    display: block;
    line-height: 0;
  }
}

.side-by-side {
  display: flex;
  height: 600px;
  &.reverse {
    flex-direction: row-reverse;
  }
  & .visual {
    width: 50%;
  }
  & .visual img {
    height: 100%;
    object-fit: cover;
  }
  & .visual video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  & .copy {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 50px 0;
    background: url(images/background.jpg) center center / cover #ECEEE7;
  }
  & p {
    margin: 0 0 20px;
    line-height: 1.75;
  }
}
a.button {
  position: relative;
  border: 1px solid;
  padding: 12px 20px 14px;
  display: inline-block;
  border-radius: 6px;
  transition: .2s ease background;
  &:hover,
  &:focus {
    background: rgba(39, 40, 35, 0.1);
  }
  & .icon {
    display: inline-block;
    position: static;
    width: 22px;
    height: 22px;
    margin: 0px 7px -4px 0;
    /* vertical-align: -4px; */
  }
}
p.subhead {
  text-transform: uppercase;
  font-size: 20px;
  letter-spacing: 1px;
  margin: 0;
  font-weight: 700;
}
.arrow-right {
  width: 18px;
  height: 18px;
  vertical-align: -2px;
}
h3 {
  font-size: 60px;
  margin: 0 0 10px;
}
@media screen and (max-width: 900px) {
  .side-by-side,
  .side-by-side.reverse {
    height: auto;
    flex-direction: column-reverse;
    & .visual {
      width: 100%;
      height: 400px;
      & img {
        height: 400px;
      }
    }
    & .copy {
      padding: 80px 40px;
      margin: 0;
      width: 100%;
      height: auto;
      & h3 {
        font-size: 40px;
      }
    }
  }
}

.bento {
  display: grid;
  width: 100%;
  /* gap: 16px; */
  /* margin-bottom: 100px; */
  grid-template-columns: repeat(8, minmax(0, 1fr));
  grid-auto-flow: dense;
}
.bento-home {
  grid-auto-rows: clamp(64px, 128px, 10vw);
  margin-bottom: 16px;
}
.bento-thirds {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.item {
  background-color: #efefef;
  /* border-radius: 16px; */
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  & .description {
    position: absolute;
    bottom: 0px;
    /* left: 50%; */
    /* transform: translate(-50%, -50%); */
    text-align: center;
    margin: 0 auto;
    display: inline-block;
    background: #fff;
    border-radius: 40px;
    padding: 12px 24px 14px;
    font-size: 16px;
    line-height: 1.2;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  }
  & img {
    height: 100%;
    object-fit: cover;
  }
}
.large {
  grid-column: span 6;
  grid-row: span 4;
}
.small {
  grid-column: span 2;
  grid-row: span 4;
}
.medium {
  grid-column: span 4;
  grid-row: span 8;
}
.medium-short {
  grid-column: span 4;
  grid-row: span 4;
}

@media screen and (max-width: 900px) {
  .bento {
    display: block;
  }
}

footer {
  background: url(images/footer-logo.svg) calc(100% + 200px) 50% no-repeat var(--black);
  color: var(--white);
  padding: 100px 80px 120px;
  display: flex;
  gap: 60px;
  & .column {
    width: 50%;
  }
  & .column.about {
    padding-left: 155px;
    position: relative;
    width: 60%;
    & img {
      position: absolute;
      width: 110px;
      top: 0;
      left: 0;
    }
  }
  & .column.contact {
    width: 40%;
  }
  & h2 {
    font-size: 40px;
    margin: 0;
  }
  & p {
    line-height: 1.75;
    margin: 10px 0 20px;
  }
  & img {
    width: auto;
  }
  & .button {
    background: var(--light-green);
    color: var(--black);
    border: none;
    font-weight: bold;
    margin-right: 10px;
    &:hover {
      background: #B7DA76;
    }
    &:focus {
      background-color: #B7DA76;
      outline: 1px solid var(--light-green);
      outline-offset: 2px;
    }
  }
  & .button.inverted {
    color: var(--light-green);
    border: 1px solid var(--light-green);
    background: none;
    transition: .2s ease color, .2s ease background;
    &:hover {
      color: #B7DA76;
      border-color: #B7DA76;
    }
  }
}
form {
  margin: 15px 0;
}
input[type="text"],
input[type="email"] {
  font-family: "greycliff-cf", sans-serif;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  width: 100%;
  padding: 10px 15px;
  margin: 5px 0;
  &:focus {
    outline: 1px solid var(--light-green);
    outline-offset: 2px;
  }
}
textarea {
  font-family: "greycliff-cf", sans-serif;
  font-size: 16px;
  padding: 10px 15px;
  border: none;
  border-radius: 6px;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  max-height: 150px;
  min-height: 150px;
  margin: 5px 0;
  &:focus {
    outline: 1px solid var(--light-green);
    outline-offset: 2px;
  }
}
input[type="Submit"] {
  font-family: "greycliff-cf", sans-serif;
  background: url(images/submit-arrow.svg) no-repeat center right var(--light-green);
  color: var(--black);
  border: none;
  font-weight: bold;
  margin: 5px 0;
  padding: 12px 70px 14px 20px;
  border-radius: 6px;
  font-size: 18px;
  transition: .1s ease background;
  display: inline-block;
  &:hover {
    background-color: #B7DA76;
  }
  &:focus {
    background-color: #B7DA76;
    outline: 1px solid var(--light-green);
    outline-offset: 2px;
    cursor: pointer;
  }
}

@media screen and (max-width: 900px) {
  footer {
    padding: 80px 40px;
    background-position: calc(100% - 150%) 50%;
    display: block;
    & .column {
      width: 100% !important;
    }
  }
}

@media screen and (max-width: 500px) {
  footer .column.about {
    padding-left: 0;
    & img {
      position: static;
      margin-bottom: 10px;
    }
  }
}

/* Form stuff */

.wpcf7-response-output {
  margin: 20px 0 0 0 !important;
  padding: 15px 20px 20px !important;
  border-radius: 6px !important;
}
.wpcf7-form br {
  display: none !important;
}
.wpcf7-not-valid-tip {
  margin-bottom: 10px !important;
  color: #f9b30e !important;
}
.wpcf7-response-output {
  border-color: #B7DA76 !important;
}
.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.grecaptcha-badge {
    visibility: hidden !important;
}
