/* Basic setup */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background-color: #fff;
  color: #555;
  font-family: 'Lato', 'Arial', sans-serif;
  font-size: 20px;
  font-weight: 300;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

section {
  padding: 80px 0;
}

/* orange colours */
body {
  --main: #e67e22;
  --darker: #cf6d17;
  overflow-x: hidden;
}

.svg {
  fill: var(--main);
}

/* not needed for modern browsers
.clearfix {zoom: 1}
.clearfix:after {
    content: '.';
    clear: both;
    display: block;
    height: 0;
    visibility: hidden;
}
*/
/* Reusable components across site */
.row {
  max-width: 1140px;
  margin: 0 auto;
}

/* - headings */
h1, h2, h3 {
  margin: 0;
  font-weight: 300;
}

h1 {
  letter-spacing: 1px;
  color: #fff;
  margin-bottom: 20px;
  font-size: 240%;
  word-spacing: 4px;
}

h2 {
  letter-spacing: 1px;
  margin-top: 30px;
  font-size: 180%;
  word-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
}

h2:after {
  display: block;
  height: 2px;
  background-color: var(--main);
  content: " ";
  margin: 30px auto;
  width: 100px;
}

h3 {
  font-size: 110%;
  margin-bottom: 15px;
  text-transform: uppercase;
}

/* - paragraphs */
.long-copy {
  line-height: 145%;
  width: 70%;
  margin-left: 15%;
}

.box {
  padding: 1%;
}

.box p {
  font-size: 85%;
  line-height: 145%;
}

/* - icons */
.icon-large {
  width: 64px;
}

.icon-medium {
  width: 40px;
}

.icon-small {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  margin-top: -4px;
  margin-right: 10px;
}

/* - links */
a:link, a:visited {
  color: var(--main);
  text-decoration: none;
  padding-bottom: 1px;
  border-bottom: 1px solid var(--main);
  transition: border-bottom 0.2s, color 0.2s;
}

a:hover, a:active {
  color: #555;
  border-bottom: 1px solid transparent;
}

/* - buttons */
.btn:link,
.btn:visited,
input[type=submit] {
  display: inline-block;
  padding: 10px 30px;
  font-weight: 300;
  text-decoration: none;
  border-radius: 200px;
  border: 1px solid var(--main);
  transition: background-color 0.4s, border 0.4s, color 0.4s;
}

.btn-full:link,
.btn-full:visited,
input[type=submit] {
  background-color: var(--main);
  color: #fff;
  margin-right: 15px;
}

.btn-ghost:link,
.btn-ghost:visited {
  color: var(--main);
}

.btn:hover,
.btn:active,
input[type=submit]:hover,
input[type=submit]:active {
  background-color: var(--darker);
  border: 1px solid var(--darker);
  color: #fff;
}

/* Main page header */
header {
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5)), url(img/hero.jpg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  height: 100vh;
}

.hero-text-box {
  position: absolute;
  width: 1140px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.logo,
.logo-black {
  width: auto;
  float: left;
}

.logo {
  margin-top: 20px;
  height: 100px;
}

.logo-black {
  height: 56px;
  display: none;
  margin-top: 3px;
  margin-bottom: 3px;
  margin-left: 10px;
}

/* main navigation */
.main-nav {
  float: right;
  list-style: none;
  margin-top: 55px;
}

.main-nav li {
  display: inline-block;
  margin-left: 40px;
  text-transform: uppercase;
}

.main-nav li a:link,
.main-nav li a:visited {
  border-bottom: 2px solid transparent;
  color: #fff;
  text-decoration: none;
  font-size: 90%;
  padding-bottom: 5px;
  transition: border-bottom 0.4s;
}

.main-nav li a:hover,
.main-nav li a:active {
  border-bottom: 2px solid var(--main);
}

/* sticky navigation for lower down page */
.sticky,
.mobile-open {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.98);
  z-index: 10;
}

.sticky .main-nav,
.mobile-open .main-nav {
  margin-top: 20px;
}

.sticky .main-nav li a:link,
.sticky .main-nav li a:visited,
.mobile-open .main-nav li a:link,
.mobile-open .main-nav li a:visited {
  color: #555;
  padding-bottom: 5px;
}

.sticky .logo,
.mobile-open .logo,
.mobile-open .logo-black {
  display: none;
}

.sticky .logo-black {
  display: block;
}

/* mobile navigation for narrow screens */
.mobile-nav-icon {
  position: fixed;
  right: 5px;
  top: 5px;
  z-index: 20;
  cursor: pointer;
}

.mobile-nav-open,
.mobile-nav-close {
  display: none;
}

/* Main page - features section */
.section-features .long-copy {
  margin-bottom: 50px;
}

.section-features .icon-large {
  display: block;
  margin: 0 auto 20px auto;
}

.section-features h3 {
  text-align: center;
}

/* Main page - characters section */
.section-characters {
  padding-bottom: 0;
}

.characters {
  list-style: none;
  width: 100%;
  display: flow-root;
}

.characters li {
  display: block;
  float: left;
  width: 25%;
}

.character-figure {
  margin: 0;
  width: 100%;
  overflow: hidden;
  background: #000;
}

.character-figure img {
  opacity: 0.7;
  width: 100%;
  height: auto;
  transform: scale(1.15);
  transition: transform 0.5s, opacity 1s;
}

.character-figure img:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* Main page - how it works section */
.section-steps {
  background-color: #f4f4f4;
}

.steps-box {
  margin-top: 30px;
}

.steps-box:first-child {
  text-align: right;
  padding-right: 3%;
  margin-top: 30px;
}

.steps-box:last-child {
  padding-left: 3%;
  margin-top: 70px;
}

.app-screen {
  width: 40%
}

.works-step {
  margin-bottom: 50px;
}

.works-step div {
  color: var(--main);
  border: 2px solid var(--main);
  display: inline-block;
  border-radius: 50%;
  height: 50px;
  width: 50px;
  text-align: center;
  padding: 5px;
  float: left;
  font-size: 150%;
  margin-right: 25px;
}

.works-step p {
  padding-top: 3px;
}

.works-step:last-of-type {
  margin-bottom: 80px;
}

.btn-app:link, btn-app:visited {
  border: none;
}

.btn-app img {
  height: 50px;
  width: auto;
  margin-right: 10px;
}

/* Main page - sample section */
.section-sample h3 {
  text-align: center;
  margin-left: 20px;
  margin-right: 20px;
}
.section-sample img {
  width: 100%;
  height: auto;
  margin-bottom: 15px;
}

.section-sample p {
  line-height: 120%;
  margin-left: 1rem;
  margin-right: 1rem;
  margin-bottom: 0.5rem;
}

/* Main page - testimonials section */
.section-testimonials {
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url(img/back-testimonials.jpg);
  background-size: cover;
  color: white;
  background-attachment: fixed;
}

.section-testimonials blockquote {
  padding: 2%;
  font-style: italic;
  line-height: 145%;
}

.section-testimonials blockquote:before {
  content: "\201C";
  font-size: 200%;
  vertical-align: bottom;
}

.section-testimonials blockquote:after {
  content: "\201D";
  font-size: 200%;
  vertical-align: bottom;
}

.section-testimonials cite {
  text-align: right;
  display: block;
  font-size: 90%;
  margin-top: 25px;
}

.section-testimonials cite img {
  height: 50px;
  border-radius: 50%;
  margin-right: 10px;
}

/* Main page - plans section */
.section-plans {
  background-color: #f4f4f4;
}

.plan-box {
  background-color: #fff;
  border-radius: 15px;
  width: 90%;
  margin-left: 5%;
  box-shadow: 0 2px 2px #f0f0f0;
}

.plan-box div {
  padding: 15px;
  border-bottom: 1px solid #f4f4f4;
}

.plan-box div:first-child {
  background-color: #fcfcfc;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

.plan-box div:last-child {
  text-align: center;
  border: 0;
}

.plan-price {
  color: #e67e22;
  font-size: 200%;
  margin-bottom: 10px;
  font-stretch: condensed;
}

.plan-price span {
  font-size: 70%;
}

.plan-price-meal {
  font-size: 120%;
}

.plan-box ul {
  font-size: 90%;
  list-style: none;
}

/* Main page - contact form section */
/* .section-form {
  margin-top: 50px;
  margin-bottom: 50px;
} */
.contact-form {
  width: 60%;
  margin: 0 auto;
}

input[type=text], input[type=email], select, textarea {
  width: 100%;
  padding: 7px;
  border-radius: 3px;
  border: 1px solid #ccc;
}

textarea {
  height: 100px;
}

input[type=checkbox] {
  margin: 10px 5px 10px 0;
}

*:focus {
  outline: none;
}

/* Main page footer */
footer {
  font-size: 90%;
  background-color: #333;
  padding-top: 10px;
  padding-bottom: 10px;
}

.footer-nav {
  list-style: none;
  float: left;
}

.social-icons {
  list-style: none;
  float: right;
}

.footer-nav li,
.social-icons li {
  display: inline-block;
  margin-right: 20px;
}

.footer-nav li:last-child,
.social-icons li:last-child {
  margin-right: 0;
}

.footer-nav li a:link,
.footer-nav li a:visited,
.social-icons li a:link,
.social-icons li a:visited {
  color: #666;
  border-bottom: none;
}

.footer-nav li a:hover,
.footer-nav li a:active {
  color: #bbb;
}

footer p {
  font-size: 80%;
  text-align: center;
}

/* to support animations */
#js--features-list,
#js--locations-list,
#js--app-screen {
  opacity: 0;
}

#js--features-list.animated,
#js--locations-list.animated,
#js--app-screen.animated {
  opacity: 1;
}
