/* Walk Rotterdam - Astro theme */
:root {
  --color-aqua: #7fffd4;
  --color-teal: #51b2cc;
  --color-text: #696a69;
  --color-black: #231f20;
}

* {
  box-sizing: border-box;
}

:focus {
  outline: none;
}

.center {
  text-align: center;
}

.right {
  text-align: right;
}

.clear {
  width: 100%;
  display: block;
  clear: both;
}

@media (min-width: 768px) {
  .clear {
    display: none;
  }
}

/* Site layout */
.site {
  background: #fff;
}

.site,
.site-header {
  position: relative;
  display: inline-block;
}

.site-header {
  width: 100vw;
  height: 42vh;
  background-color: #fff;
  overflow: hidden;
}

.home .site-header {
  height: 100vh;
}

.site-header::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-image: url(/img/walk-rotterdam-guided-tours-central-station-mobile.jpg);
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: cover;
  animation: headerReveal 1s 0.4s forwards;
  display: none;
  opacity: 0;
}

.site-header[data-header-bg="about"]::before {
  background-image: url(/img/walk-rotterdam-guided-tours-header1.jpg);
}

.site-header[data-header-bg="walks"]::before {
  background-image: url(/img/walk-rotterdam-guided-tours-header2.jpg);
}

.site-header[data-header-bg="reserve"]::before {
  background-image: url(/img/walk-rotterdam-guided-tours-header3.jpg);
}

.site-header[data-header-bg="contact"]::before {
  background-image: url(/img/walk-rotterdam-guided-tours-header6.jpg);
}

.site-header[data-header-bg="terms"]::before {
  background-image: url(/img/walk-rotterdam-guided-tours-header5.jpg);
}

.loaded .site-header::before {
  display: block;
}

@media (min-width: 768px) {
  .site-header::before {
    background-position: 50%;
    background-image: url(/img/walk-rotterdam-guided-tours-central-station.jpg);
  }
  .site-header[data-header-bg="about"]::before {
    background-image: url(/img/walk-rotterdam-guided-tours-header1.jpg);
  }
  .site-header[data-header-bg="walks"]::before {
    background-image: url(/img/walk-rotterdam-guided-tours-header2.jpg);
  }
  .site-header[data-header-bg="reserve"]::before {
    background-image: url(/img/walk-rotterdam-guided-tours-header3.jpg);
  }
  .site-header[data-header-bg="contact"]::before {
    background-image: url(/img/walk-rotterdam-guided-tours-header6.jpg);
  }
  .site-header[data-header-bg="terms"]::before {
    background-image: url(/img/walk-rotterdam-guided-tours-header5.jpg);
  }
}

@keyframes headerReveal {
  0% {
    opacity: 0;
    transform: scale(1.04);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

h1.slogan,
h1.title {
  position: absolute;
  left: 50vw;
  top: 36%;
  color: #fff;
  width: 90%;
  max-width: 800px;
  text-align: center;
  transform: translate(-50%, -50%);
  font-size: 1.8em;
  text-shadow: 0 0 14px rgba(0, 0, 0, 0.4);
  cursor: default;
  margin-bottom: 0;
  animation: fadeIn 1s 0.6s forwards;
  display: none;
  opacity: 0;
}

@media (min-width: 768px) {
  h1.slogan,
  h1.title {
    font-size: 2.6em;
    top: 42%;
  }
}

@media (min-width: 1024px) {
  h1.slogan,
  h1.title {
    font-size: 3em;
    top: 46%;
  }
}

.loaded h1.slogan,
.loaded h1.title {
  display: block;
}

.headerbtns {
  position: absolute;
  bottom: 20%;
  width: 100%;
  text-align: center;
  animation: fadeIn 0.8s 0.8s forwards;
  opacity: 0;
  display: none;
}

.loaded .headerbtns {
  display: block;
}

.headerbtns a {
  display: inline-block;
  padding: 12px 16px;
  background: #fff;
  color: #000;
  font-weight: 700;
  font-size: 1.6em;
  border-radius: 8px;
  width: 80%;
  transition: all 0.2s;
  text-decoration: none;
}

@media (min-width: 768px) {
  .headerbtns a {
    padding: 14px 20px;
    font-size: 1.8em;
    width: 260px;
  }
}

.headerbtns a.one {
  margin: 0 0 20px;
  background-color: var(--color-aqua);
  color: var(--color-black);
}

@media (min-width: 768px) {
  .headerbtns a.one {
    margin: 0 10px 0 0;
  }
}

.headerbtns a.one:hover {
  background-color: #fff;
}

.headerbtns a.two {
  margin: 0;
  background-color: var(--color-teal);
  color: var(--color-black);
}

@media (min-width: 768px) {
  .headerbtns a.two {
    margin: 0 0 0 10px;
  }
}

.headerbtns a.two:hover {
  color: var(--color-black);
  background-color: #fff;
}

.wrapper {
  position: relative;
  max-width: 1200px;
  width: 100%;
  margin: auto;
}

body {
  background-color: #fff;
  font-family: neuzeit-grotesk, sans-serif;
  margin: 0;
}

h1, h2, h3, h5 {
  font-weight: 700;
  text-align: center;
  color: var(--color-text);
}

h5 {
  font-weight: 500;
}

h1 {
  font-size: 2.4em;
  margin: 0 0 4rem;
}

h2 {
  font-size: 2.3em;
  margin: 0 0 3.5rem;
}

h2.front {
  font-size: 2.4em;
  margin: 0 0 4rem;
}

h3 {
  font-size: 2.2em;
  margin: 0 0 3rem;
}

h4 {
  font-size: 2.1em;
  margin: 0 0 2.5rem;
}

h5 {
  font-size: 2em;
  margin: 0 0 2rem;
}

p {
  font-size: 1.2em;
  line-height: 1.7;
  font-weight: 300;
}

/* Content area */
.content-area {
  margin: 3rem auto;
  width: 100%;
  max-width: 860px;
  display: none;
  padding: 0 24px;
  animation: fadeIn 1.2s 0.6s forwards;
  opacity: 0;
}

.loaded .content-area {
  display: block;
}

@media (min-width: 320px) {
  .content-area {
    padding: 0 10px;
  }
}

@media (min-width: 375px) {
  .content-area {
    padding: 0 16px;
  }
}

@media (min-width: 425px) {
  .content-area {
    padding: 0 20px;
  }
}

@media (min-width: 768px) {
  .content-area {
    margin: 5rem auto;
    padding: 0 40px;
  }
}

@media (min-width: 1024px) {
  .content-area {
    margin: 5rem auto;
    padding: 0;
  }
}

.content-area p {
  color: var(--color-text);
  font-size: 1.2em;
}

@media (min-width: 768px) {
  .content-area p {
    font-size: 1.4em;
  }
  .home .content-area p {
    font-size: 1.6em;
  }
}

.content-area ul {
  color: var(--color-text);
  margin: 1em 0;
  padding: 0;
  list-style: none;
  font-size: 1em;
}

@media (min-width: 768px) {
  .content-area ul {
    font-size: 1.14em;
  }
}

.content-area ul li {
  margin: 0;
  line-height: 1em;
  padding: 0.6em 0;
}

.content-area h2 {
  font-size: 1.8em;
  margin: 0 0 3rem;
}

@media (min-width: 768px) {
  .content-area h2 {
    font-size: 2.6em;
    margin: 0 0 5rem;
  }
}

.content-area h5 {
  font-size: 1.4em;
  margin: 0 0 1rem;
}

@media (min-width: 768px) {
  .content-area h5 {
    font-size: 2em;
    margin: 0 0 1rem;
  }
}

.content-area a {
  color: inherit;
  text-decoration: none;
  border-bottom: 2px solid var(--color-aqua);
}

.content-area a:hover {
  background-color: var(--color-aqua);
  border-bottom-color: #000;
}

/* Footer */
.site-footer {
  position: relative;
  float: left;
  width: 100vw;
  display: none;
  background-color: var(--color-aqua);
  animation: fadeIn 1.2s 0.8s forwards;
  opacity: 0;
  margin-top: 4em;
}

.loaded .site-footer {
  display: block;
}

.site-footer .wrapper {
  margin: 3rem auto;
  max-width: 860px;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .site-footer .wrapper {
    padding: 0 40px;
  }
}

@media (min-width: 1024px) {
  .site-footer .wrapper {
    padding: 0;
  }
}

.site-footer nav.footer {
  display: inline-block;
  width: 50%;
  float: left;
}

.site-footer nav.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.site-footer nav.footer ul li {
  display: block;
}

@media (min-width: 768px) {
  .site-footer nav.footer ul li {
    display: inline-block;
    margin-right: 14px;
  }
}

.site-footer nav.footer ul li a {
  padding: 4px 0;
  color: #fff;
  display: block;
  text-decoration: none;
  font-size: 1.2em;
  transition: all 0.2s;
}

.site-footer nav.footer ul li a:hover {
  color: #000;
}

#socials {
  position: relative;
  width: 50%;
  text-align: right;
  float: right;
}

#socials,
#socials a {
  display: inline-block;
}

#socials a {
  width: auto;
  height: auto;
  color: #fff;
  background: none;
  padding: 4px 0;
  font-size: 1.2em;
  margin-left: 14px;
  text-decoration: none;
}

#footerwalk {
  position: relative;
  float: left;
  width: 100%;
  padding: 80px 0;
  margin: 0;
  font-size: 5em;
  line-height: 1;
  color: #fff;
  text-align: center;
  font-weight: 900;
  text-transform: uppercase;
  cursor: default;
}

#footerwalk::before {
  content: "";
  width: 100%;
  height: 12px;
  position: absolute;
  left: 0;
  top: calc(50% + 2px);
  background-color: #fff;
  transform: translateY(-50%);
}

/* Navigation */
nav.main {
  position: fixed;
  left: 0;
  padding: 20px 0;
  width: 100%;
  display: none;
  transition: all 0.2s;
  animation: fadeIn 1.2s 0.2s forwards;
  opacity: 0;
  z-index: 10;
}

.loaded nav.main {
  display: block;
}

.scroll nav.main {
  background: #fff;
  padding: 12px 0;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.2);
}

nav.main ul {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
}

nav.main ul li {
  position: relative;
  display: none;
  width: 33.3%;
  float: left;
  line-height: 80px;
}

.scroll nav.main ul li {
  line-height: 40px;
}

@media (min-width: 768px) {
  nav.main ul li {
    width: 20%;
    display: inline-block;
  }
}

nav.main ul li:first-child,
nav.main ul li:nth-child(2) {
  display: inline-block;
}

nav.main ul li:nth-child(2) {
  float: right;
}

@media (min-width: 768px) {
  nav.main ul li:nth-child(2) {
    float: left;
  }
}

nav.main ul li a {
  font-size: 1.4em;
  text-decoration: none;
  text-transform: lowercase;
  font-weight: 900;
  color: #000;
}

nav.main ul li a:hover {
  border-bottom: 4px solid var(--color-aqua);
}

nav.main ul li.menu-logo {
  display: inline-block;
  line-height: 80px;
  width: 33.3%;
}

.scroll nav.main ul li.menu-logo {
  line-height: 40px;
}

@media (min-width: 768px) {
  nav.main ul li.menu-logo {
    width: 20%;
  }
}

nav.main ul li.menu-logo a {
  text-indent: -9000px;
  width: 80px;
  height: 80px;
  background-image: url(/img/walk-logo.svg);
  background-size: contain;
  background-position: 50%;
  background-repeat: no-repeat;
  display: inline-block;
  border-bottom: none;
  transition: all 0.2s;
}

nav.main ul li.menu-logo a:hover {
  border-bottom: none;
}

.scroll nav.main ul li.menu-logo a {
  width: 40px;
  height: 40px;
}

/* Walks grid */
.walks .walk {
  float: left;
  position: relative;
  width: 100%;
  margin-bottom: 2em;
}

@media (min-width: 768px) {
  .walks .walk {
    width: 48%;
  }
  .walks .walk:nth-of-type(2n) {
    margin-left: 2%;
  }
  .walks .walk:nth-of-type(odd) {
    margin-right: 2%;
  }
}

.walks .walk:hover .figure img {
  filter: grayscale(0);
  opacity: 0.8;
}

.walk .figure {
  margin: 0 0 1.2em;
  display: block;
  background-color: #000;
}

.walk .figure,
.walk .figure img {
  position: relative;
  float: left;
  width: 100%;
  height: auto;
}

.walk .figure img {
  filter: grayscale(100%);
  transition: all 0.4s;
  opacity: 1;
}

.walk .figure .caption {
  text-transform: uppercase;
  color: #fff;
  cursor: default;
  position: absolute;
  top: 10%;
  left: 4%;
  width: 92%;
}

.walk .figure .caption .title {
  text-align: left;
  color: #fff;
  font-weight: 700;
  line-height: 1;
  margin: 0 0 4px;
  padding: 0;
}

@media (min-width: 320px) {
  .walk .figure .caption .title {
    font-size: 1.4em;
  }
}

@media (min-width: 375px) {
  .walk .figure .caption .title {
    font-size: 1.6em;
  }
}

@media (min-width: 425px) {
  .walk .figure .caption .title {
    font-size: 2em;
  }
}

@media (min-width: 768px) {
  .walk .figure .caption .title {
    font-size: 2em;
  }
}

@media (min-width: 1024px) {
  .walk .figure .caption .title {
    font-size: 2.2em;
  }
}

.walk .figure .caption .sub {
  font-weight: 500;
  font-size: 1em;
  text-transform: none;
  padding: 0;
  margin: 0;
}

.walk .figure .caption .sub span {
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  background-color: rgba(0, 0, 0, 0.8);
  display: inline;
  clear: both;
  padding: 2px 4px;
  color: #fff;
  line-height: 1.8;
  margin: 0 4px 0 0;
}

.walk .figure .bookonline {
  padding: 6px 12px;
  background: #fff;
  color: #000;
  font-weight: 700;
  font-size: 1.2em;
  border-radius: 4px;
  position: absolute;
  right: 0.8em;
  bottom: 0.8em;
  transition: all 0.2s;
  margin: 0;
  background-color: var(--color-teal);
  color: var(--color-black);
  text-decoration: none;
  border-bottom: none;
}

@media (min-width: 1024px) {
  .walk .figure .bookonline {
    font-size: 1.4em;
  }
}

.walk .figure .bookonline:hover {
  color: var(--color-black);
  background-color: #fff;
}

.walk p {
  font-size: 1em;
}

.walk .article .sub.start {
  margin-top: 1em;
}

.dev {
  width: 100%;
  display: block;
  float: left;
  height: 0;
}

/* Book form */
.book form {
  width: 100%;
  max-width: 640px;
  margin: auto;
}

.book input[type="email"],
.book input[type="number"],
.book input[type="text"] {
  width: 100%;
  padding: 0.8em 1.2em;
  font-size: 1em;
  border: 1px solid var(--color-aqua);
  margin: 0 0 1em;
  color: var(--color-text);
}

.book input[type="email"].error,
.book input[type="number"].error,
.book input[type="text"].error {
  border-color: #cc5179;
}

.book #walk_date_btn {
  position: relative;
  width: 100%;
  padding: 0.8em 1.2em;
  font-size: 1em;
  border: 1px solid var(--color-aqua);
  color: var(--color-text);
  cursor: pointer;
  overflow: hidden;
  margin: 0 0 1em;
}

.book .date-input {
  width: 100%;
  padding: 0.8em 1.2em;
  font-size: 1em;
  border: 1px solid var(--color-aqua);
  margin: 0 0 1em;
  color: var(--color-text);
  cursor: pointer;
  background: #fff;
}

.book .date-input:focus {
  border-color: var(--color-teal);
}

/* Flatpickr styling overrides */
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.prevMonthDay.flatpickr-disabled,
.flatpickr-day.nextMonthDay.flatpickr-disabled {
  cursor: not-allowed;
  color: #c1c3c1;
}

.book .terms.error:before {
  border-color: #cc5179;
}

.book .terms {
  position: relative;
  float: left;
  font-size: 0.9em;
  padding: 0.8em 1.2em 0.8em 30px;
  margin: 0 0 1em;
  color: #c1c3c1;
}

@media (min-width: 768px) {
  .book .terms {
    font-size: 1em;
  }
}

.book .terms:before {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 1px solid #c1c3c1;
  display: block;
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
}

.book .terms:after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 56.3'><title>checkmark</title><polygon points='71.11 0 32.59 38.52 8.89 14.81 0 23.7 32.59 56.3 80 8.89 71.11 0'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  width: 28px;
  height: 28px;
  display: none;
}

.book .terms.active:after {
  display: block;
}

.book .submit {
  display: inline-block;
  padding: 8px 14px;
  background: var(--color-teal);
  color: var(--color-black);
  font-weight: 700;
  font-size: 1.2em;
  border-radius: 8px;
  transition: all 0.2s;
  float: right;
  border: none;
  margin: 0;
  text-decoration: none;
  cursor: pointer;
}

@media (min-width: 768px) {
  .book .submit {
    padding: 10px 16px;
    font-size: 1.4em;
  }
}

.book .submit:hover {
  color: var(--color-black);
  background-color: var(--color-aqua);
}
