html {
  scroll-behavior: smooth;
}

body {
  line-height: 1.4;
  color: #707070;
}

body:not(.homepage) {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.homepage {
  background-image: url(../images/bg-dots.png);
  background-size: contain;
  background-color: #464646;
  background-repeat: repeat-x;
}

h1,h2,h3,h4,h5,h6 {
  line-height: 1.2;
}

h2 { font-size: 2rem; }

@keyframes fade {
  from {
    fill-opacity: 1;
  }

  50% {
    fill-opacity: .75;
  }

  to {
    fill-opacity: 1;
  }
}
@keyframes pulse {
  from {
    transform: scale3d(1, 1, 1);
  }

  50% {
    transform: scale3d(1.05, 1.05, 1.05);
  }

  to {
    transform: scale3d(1, 1, 1);
  }
}
.logo:hover svg {
  animation-duration: 1s;
  animation-fill-mode: both;
  animation-name: pulse;
}
.logo:hover .lps {
  animation-duration: 1s;
  animation-fill-mode: both;
  animation-name: fade;
}

header,
section,
.section {
  padding: 2rem;
}

header {
  background: #32b73b;
  color: #fff;
}
.homepage header {
  min-height: 300px;
  background-image: url(../images/bg-dots.png);
  background-size: contain;
  position: relative;
  z-index: 2;
}
.homepage header:after {
  background: inherit;
  content: '';
  display: block;
  height: 50%;
  left: 0;
  position: absolute;
  right: 0;
  z-index: -1;
  bottom: 0;
  transform: skewY(-3deg);
  transform-origin: 100%;
}
.header-brand {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header-content {
  display: flex;
  margin: 4rem 0;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  position: relative;
}
.header-content .command-center {
  display: block;
  position: absolute;
  right: 0;
  top: 25%;
  opacity: 0.1;
}

.header-content div:first-child {
  max-width: 600px;
}
.header-content div:first-child p {
  margin-top: 3rem;
  margin-bottom: 2rem;
}
.command-center {
  text-align: right;
}
.command-center img {
  width: 90%;
  padding-left: 2rem;
  max-width: 750px;
  margin: 0;
}
.header-content h1 {
  font-size: 56px;
  font-weight: bold;
}

@media (min-width: 640px) {
  .header-content .command-center {
    top: unset;
    bottom: 0;
  }
}
@media (min-width: 1024px) {
  .header-content {
    flex-direction: row;
    justify-content: space-between;
  }
  .header-content .command-center {
    display: initial;
    position: relative;
    opacity: 1;
  }
}
@media (min-width: 1280px) {
  .header-content {
    margin: 4rem;
  }
}
.header-content h1 {
  color: #fff;
}

/* header nav {
  float: right;
} */
header nav a {
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  /* margin: 0 0.6rem; */
  border-bottom: 4px solid transparent;
  padding: 4px 8px;
}
header nav a:hover {
  border-color: #fff;
}

main {
  flex: 1;
  padding: 2rem 8rem;
  color: #707070;
  background: #fff;
}

.section-header {
  text-align: center;
  color: #fff;
}
section,.section {
  margin-top: 8rem;
  margin-bottom: 8rem;
  color: #fff;
}
body > section:last-of-type {
  margin-bottom: 0;
}
section {
  padding: 2rem;
}
section.straight.inverted {
  background: #32b73b;
  color: rgba(255, 255, 255, 0.95);
}
.white-section {
  padding: 8rem 2rem;
  color: #707070;
  background: #fff;
  position: relative;
  z-index: 2;
}
.white-section:before,
.white-section:after {
  background: inherit;
  content: '';
  display: block;
  height: 50%;
  left: 0;
  position: absolute;
  right: 0;
  z-index: -1;
}
.white-section:before {
  top: 0;
  transform: skewY(-3deg);
  transform-origin: 0 100%;
}
.white-section:after {
  bottom: 0;
  transform: skewY(-3deg);
  transform-origin: 100%;
}
.white-section div {
  margin-bottom: 2rem;
  clear: both;
}
.white-section h2,
.white-section h3 {
  margin-bottom: 1rem;
}

.container {
  margin: auto;
  max-width: 900px;
}
.container > h2:first-child {
  margin-top: 0;
}

.strengths-list {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 1rem;
  margin: 3rem auto;
}
@media (min-width: 768px) {
  .strengths-list {
    grid-template-columns: 1fr 1fr;
  }
}
.btn-like {
  display: block;
  padding: 22px;
  background: #fff;
  color: #000;
  font-weight: bold;
  text-decoration: none;
  max-width: 400px;
  text-align: center;
  border: 4px solid transparent;
  border-radius: 8px;
  margin: auto;
}
.btn-like:not(.shadowless) {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
.btn-like:hover {
  background: #32b73b;
  border-color: #fff;
  color: #fff;
}
.btn-like.inverted {
  background: #32b73b;
  color: #fff;
}
.btn-like.inverted:hover {
  background: #fff;
  color: #32b73b;
  border-color: #32b73b;
}
.strengths-section h2 {
  margin-bottom: 3.16rem;
}
.strengths-section h2,
.strengths-section h3 {
  color: #fff;
}
.strengths-section .btn-like {
  box-shadow: 0 25px 50px -12px rgba(255, 255, 255, 0.35);
}
.strength {
  display: flex;
}
.strength img {
  margin-right: 1rem;
  align-self: baseline;
  margin-top: 8px;
}
.strength-header {
  font-size: 1.31951rem;
  margin-bottom: 0.5rem;
}
.why-cheddar-section .container > h2,
.why-cheddar-section .container > h3 {
  text-align: center;
}
.why-cheddar h3 { text-align: center; }
.why-cheddar-section .container > h2 {
  color: #32b73b;
}
.why-cheddar-section .btn-like {
  margin-top: 2rem;
}

.why-cheddar {
  display: flex;
  flex-direction: column;
}
.why-cheddar img {
  margin: 0 auto 1.58rem;
}

@media (min-width: 768px) {
  .why-cheddar {
    flex-direction: row;
  }
  .why-cheddar h3 { text-align: left; }
  .why-cheddar:nth-child(odd) img {
    margin-right: 4rem;
  }
  .why-cheddar:nth-child(even) img {
    margin-left: 4rem;
  }
  .why-cheddar:nth-child(even) {
    flex-direction: row-reverse;
  }
}
.sub-header {
  text-align: center;
  margin-bottom: 1.58rem;
  color: #fff;
  font-family: 'Roboto Slab', sans-serif;
  font-weight: 700;
  text-rendering: optimizeLegibility;
  font-size: 1rem;
  line-height: 1.1;
}
.why-cheddar-section .sub-header {
  color: #707070;
}
.why-cheddar div {
  align-self: center;
}
.why-cheddar img {
  width: 256px;
}
.why-cheddar h2 {
  margin-top: 0;
}



footer {
  background: #383838;
  padding: 4rem;
  color: #fff;
  text-align: center;
}
footer > div {
  margin-top: 0.75rem;
}

/* small */
@media (min-width: 640px) {
  footer {
    text-align: left;
    display: flex;
    justify-content: space-between;
  }
  footer > div {
    margin-top: unset;
  }
}

.socials .social:not(:last-child) {
  margin-right: 0.3rem;
}

.social {
  display: inline-flex;
  background: #fff;
  border-radius: 50%;
  border: 1px solid #fff;
  width: 48px;
  height: 48px;
  justify-content: center;
}
.social:hover {
  background: #32b73b;
}
.social:hover svg {
  color: #fff;
}
.social svg {
  width: 45%;
  height: 100%;
  color: #383838;
}

.centered {
  margin: auto;
}

.avatar {
  border-radius: 50%;
  width: 80px;
  height: 80px;
  overflow: hidden;
}
.avatar img {
  width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
}

.testimonial {
  background: #fff;
  color: #707070;
  margin: 0.5em 0.5em 84px;
  padding: 2em;
  border-radius: 16px;
  position: relative;
}

.testimonial:last-child {
  margin-bottom: 0;
}

.testimonial .avatar {
  position: absolute;
}

@media (min-width: 1024px) {
  .testimonials {
    display: flex;
  }
  .testimonial {
    margin: 1em;
  }
}

.divider {
  margin: 1rem 0;
  line-height: 1;
  height: 0;
  font-weight: 700;
  letter-spacing: .05em;
  color: white;

  display: table;
  white-space: nowrap;
  height: auto;
  line-height: 1;
  text-align: center;
  font-size: 1rem;
}

.divider:before,
.divider:after {
  content: '';
  display: table-cell;
  position: relative;
  top: 50%;
  width: 50%;
  background-repeat: no-repeat;
}
.divider:before {
  background-position: right 1em top 50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><line x1='50%' y1='10' x2='100%' y2='10' stroke='white' stroke-width='1' /></svg>");
}
.divider:after {
  background-position: left 1em top 50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><line x1='0' y1='10' x2='50%' y2='10' stroke='white' stroke-width='1' /></svg>");
}


section.contact-section {
  /* display: flex; */
  padding: 0;
}
.contact-callout, 
.contact-block {
  flex-grow: 1;
  flex-basis: 0;
  padding: 4rem 2rem;
}

.contact-callout {
  background: #fffafa;
  color: #707070;
  display: flex; 
  align-items: center;
}
.contact-block {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
.contact-block > h2 {
  margin-top: 0;
}

#footer-contact-form {
  max-width: 400px;
  margin: auto;
}
.contact-callout p:first-child {
  font-size: 1.5rem;
}
.contact-callout p {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  line-height: 1.1;
}
.cheese-moon {
  width: 30%;
  max-width: 256px;
  /* margin-right: 1rem; */
  margin-right: 1.75rem;
}

/* medium */
@media (min-width: 768px) {
  .contact-callout p:first-child {
    font-size: 2rem;
  }
  .contact-callout, 
  .contact-block {
    padding: 4rem 3rem;
  }
}

/* Large (lg) */
@media (min-width: 1024px) {
  .contact-section {
    display: flex;
  }
  .contact-callout {
    flex-direction: column;
  }
  .contact-callout, 
  .contact-block {
    padding: 6rem 3rem;
  }
  .cheese-moon {
    width: 40%;
    margin-bottom: 2rem;
  }
}

/* xl */
@media (min-width: 1280px) {
  .contact-callout {
    flex-direction: row;
  }
  .cheese-moon {
    margin-right: 1.75rem;
  }
}


:root {
  --universal-margin: 0.5rem;
  --universal-padding: 0.5rem;
  --universal-border-radius: 0.125rem;
  --input-back-color: #f8f8f8;
  --input-fore-color: #111;
  --input-border-color: #ddd;
  --input-focus-color: #0288d1;
  --input-invalid-color: #d32f2f;
}

form {
  margin: var(--universal-margin);
  padding: calc(2 * var(--universal-padding)) var(--universal-padding);
}

label {
  padding: calc(var(--universal-padding) / 2) var(--universal-padding);
  display: block;
}

.input-group {
  display: block;
}


input, textarea {
  width: 100%;
  box-sizing: border-box;
  background: var(--input-back-color);
  color: var(--input-fore-color);
  border: 0.0625rem solid var(--input-border-color);
  border-radius: var(--universal-border-radius);
  margin: calc(var(--universal-margin) / 2);
  padding: var(--universal-padding) calc(1.5 * var(--universal-padding));
}

input:not([type="button"]):not([type="submit"]):not([type="reset"]):hover, 
input:not([type="button"]):not([type="submit"]):not([type="reset"]):focus, 
textarea:hover, textarea:focus, 
select:hover, select:focus {
  border-color: var(--input-focus-color);
  box-shadow: none;
}

input:not([type="button"]):not([type="submit"]):not([type="reset"]):invalid, input:not([type="button"]):not([type="submit"]):not([type="reset"]):focus:invalid, textarea:invalid, textarea:focus:invalid, select:invalid, select:focus:invalid {
  border-color: var(--input-invalid-color);
  box-shadow: none;
}

input:not([type="button"]):not([type="submit"]):not([type="reset"])[readonly], textarea[readonly], select[readonly] {
  background: var(--secondary-back-color);
}

input:disabled, input[disabled], textarea:disabled, textarea[disabled], select:disabled, select[disabled], button:disabled, button[disabled], .button:disabled, .button[disabled], [role="button"]:disabled, [role="button"][disabled] {
  cursor: not-allowed;
  opacity: 0.75;
}
