/*
Theme Name: Afspraak op Zondag
Author: yebDESIGN
Author URI: https://yebdesign.nl
Description: Theme of Afspraak op Zondag
Requires at least: 6.1
Tested up to: 6.4.3
Requires PHP: 8.2
Version: 3.0
License: Private
Text Domain: aoz
Tags:
*/

/******* GENERAL *******/
:root {

  --background-rgb: 0,0,0;
  --accent-rgb: 242,193,46;
  --color-black-rgb:35,32,25;

  --shadow-opacity:.08;
  --shadow: 1px 2px 8px #00000080;
  --border-radius: .5rem;
}

body,
html {
  margin: 0;
  padding: 0;
  background: var(--wp--preset--color--background);
  background: linear-gradient(90deg, var(--wp--preset--color--background) 0%, var(--wp--preset--color--background-darker) 100%);
}

* {
  box-sizing: border-box;

}

.container {
  width: 100%;
  height: 100%;
  max-width:1000px;
  margin-left:auto;
  margin-right: auto;
  position:relative;
}

.logo {
  margin:0;
  padding:0;
  line-height:1;
  width: 160px;
  height:48px;
  aspect-ratio: 9 / 1;
  color:inherit;
  transition: color .3s;
}

.shake:not(.button) {
  animation: shake 2s infinite;
}

.fade-in {
  opacity: 0;
  animation-duration: 1s;
  animation-fill-mode: forwards;
  animation-timing-function: ease-in-out;
  animation-name: fadeInAnimation;
  --fade-direction: translateX(10px);
}

.fade-in.fade-in-top {
  --fade-direction: translateY(10px);
}

.fade-in.fade-in-bottom {
  --fade-direction: translateY(-10px);
}

.fade-in.fade-in-right {
  --fade-direction: translateX(-10px);
}

.fade-in-on-scroll {
  opacity:0;
}

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}
::selection {
  background: #b3d4fc;
  text-shadow: none;
}
audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/******* TYPOGRAPHY *******/
body {
  font-optical-sizing: auto;
  font-variation-settings: "wdth" 100;
}

b,
strong {
  font-weight: 700;
}

a,
a:link,
a:active,
a:visited {
  color:inherit;
  text-decoration:none;
  transition: text-decoration .4s linear;
}

a:hover {
  color:var(--wp--preset--color--accent);
  text-decoration: underline;
}

i,
em {
  font-style: italic;
}

p {
  margin:.8rem 0;
  text-align: justify;
}

h1,.h1,
h2,.h2,
h3,.h3,
h4,.h4,
h5,.h5 {
  font-family: var(--wp--preset--font-family--contrast);
  font-weight: 700;
  font-style: normal;
  line-height:2;
  margin-top:.3rem;
  margin-bottom:.8rem;

}

h1,.h1 {
  width:100%;
  text-align:center;
  font-size:1.8rem;
  text-transform: uppercase;
}

h1.skewed {
  display:inline-block;
  background-color: var(--wp--preset--color--accent);
  -webkit-transform: skewX(0deg) skewY(-3deg);
  -moz-transform: skewX(0deg) skewY(-3deg);
  transform: translate(0px) skew(0) skewY(-3deg);
}

ol {
  list-style: none;
  counter-reset: list-counter;
  padding-left:0;
}

ol li {
  counter-increment: list-counter;
  position: relative;
  padding-left: 2em;
}

ol li::before {
  content: counter(list-counter, decimal-leading-zero) ". ";
  font-weight:700;
  position: absolute;
  left: 0;
}

*[data-icon]:not(.before)::after,
*[data-icon].before:before {
  display: inline;
  content: attr(data-icon);
  font-family: 'Font Awesome 6 Free';
  -webkit-font-smoothing: antialiased;
  margin-right:0;
  margin-left:.5rem;
  visibility: visible;
}

*[data-icon].before:before {
  margin-right:.5rem;
  margin-left:0;
}

.shake[data-icon]::before,
.shake[data-icon]::after {
  animation: shake 2s infinite;
}

*[data-icon].icon-only::before,
*[data-icon].icon-only::after {
  margin-left:0;
  margin-right:0;
}

.accent {
  color:var(--wp--preset--color--accent);
}

.parallax-content {
  position: relative;
  will-change: transform;
}

.social-icons .col {
  flex: 1 1 auto !important;
  min-width: auto !important;
  font-size:2.4rem;
}

.text-center {
  text-align:center;
}

/******* HEADER *******/
header#top_header {
  position:fixed;
  top:0;
  left:0;
  width:100%;
  padding:2rem 1rem;
  z-index:999;
  color:var(--wp--preset--color--white);
  transition: color .3s, background-color .3s, padding-bottom .3s, padding-top .3s;
}

body.scrolled header#top_header,
header#top_header.mobile-nav-active {
  background-color:var(--wp--preset--color--white);
  color:var(--wp--preset--color--black);
  box-shadow: var(--shadow);
}

header#top_header .container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap:10px;
}

header#top_header .menu {
  flex: 1 1 auto;
  width:50%;
}

header#top_header .logo {
  flex: 0 0 auto;
  width:200px;
  transition: transform .5s ease;
}

header#main_header {
  display:block;
  height:300px;
  padding:50px;
  position: relative;
  background-repeat: no-repeat;
  background-size:cover;
  background-position: center calc(50% - 10vh);
  overflow: hidden;
}

body.home header#main_header {
  height:75vh;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0% calc(100% - 4vw));
}

header#main_header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: -webkit-linear-gradient(130deg,rgba(0, 0, 0, 0.3) 0%, transparent 30%);
  background: -moz-linear-gradient(130deg,rgba(0, 0, 0, 0.3) 0%, transparent 30%);
  background: linear-gradient(130deg,rgba(0, 0, 0, 0.3) 0%, transparent 30%);
  z-index: 0;
}

header#main_header .row {
  justify-content: end;
  align-items: center;
}

header#main_header .jumbotron {
  padding:2rem;
  border-radius: var(--border-radius);
  width:45%;
  background-color:var(--wp--preset--color--white);
  -webkit-box-shadow: var(--shadow);
  box-shadow: var(--shadow);
  z-index:2;
}

header#main_header .jumbotron .tagline {
  display:block;
  font-size: 2rem;
  line-height:1.2;
  font-weight: 700;
  user-select: none;
  margin:.5rem 0;
  text-align: left;
}

header#main_header .jumbotron .button {
  margin-left: auto;
  margin-right: auto;
}

header#main_header .scroll-trigger {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: absolute;
  bottom: 20px;
  left: 50%;
  color: var(--wp--preset--color--white);
  white-space: nowrap;
  transform: translateX(-50%);
}

header#main_header .scroll-trigger .arrow {
  width: 15px;
  height: 15px;
  display: inline-block;
  margin: 15px 0 0;
  animation: bounce 2s infinite;
}

header#countdown {
  font-weight:700;
  text-align:center;
  font-size:.7rem;
  padding:.5rem;
  background-color:var(--wp--preset--color--accent);
}

/******* NAVIGATION *******/
nav.menu {
  display:flex;
  align-items: center;
}

.nav_toggle {
  display:none;
}

header#top_header nav.menu {
  gap:1rem;
  flex-direction: row;
}

nav#primary_nav {
  justify-content: start;
}

nav#secondary_nav {
  justify-content: end;
}

nav#mobile_nav {
  max-height:0;
  overflow: hidden;
  transition: max-height .3s;
}

nav#footer_nav {
  flex-direction: column;
  align-items: start;
}

header#top_header.mobile-nav-active nav#mobile_nav {
  margin-top:1rem;
  max-height:70vh;
  overflow:scroll;
}

header#top_header .menu .menu-link:not(.icon-only,.button)::after {
  display:block;
  content:"";
  height:2px;
  width:0;
  background-color:var(--wp--preset--color--accent);
  transition: .3s;
}

.menu .menu-link {
  text-decoration:none;
  color:inherit;
  font-weight: 500;
  cursor:pointer;
  transition: color .3s;
}

.menu .menu-link:hover {
  color:var(--wp--preset--color--accent);
}

header#top_header .menu .menu-link:hover::after {
  width:100%;
}

/******* MAIN *******/
main section {
  padding:3rem;
  min-height:70vh;
}

body.home main section {
  min-height:auto;
}

section.grey {
  background: rgba(0,0,0,.1);
}

section.accent,
body.home section#counter {
  background-color:var(--wp--preset--color--accent);
  padding-top:1rem;
  padding-bottom:1rem;
}

#daysTillSunday {
  font-size: 1.2rem;
  font-weight: bold;
}

#daysTillSunday span {
  background-color:var(--wp--preset--color--white);
  display:inline-block;
  padding:.25rem .5rem;
  perspective: 2000px;
  transform-style: preserve-3d;
  perspective-origin: 0% 1%;
  transform: rotateY(-19deg) rotateZ(2deg);
  box-shadow:0 0 10px rgba(0,0,0,.08);
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: start;
  flex-wrap: nowrap;
  gap: 4rem;
  height: 100%;
}

.row > .col {
  flex: 1 1 40%;
  min-width: 200px;
}

.wp-block-table td {
  border:none;
  padding:0;
}

hr {
  border:none !important;
  clear:both;
}

/******* FOOTER *******/
footer#main_footer {
  padding:2rem 3rem;
  font-size:80%;
  background-color:var(--wp--preset--color--black-90);
  color:var(--wp--preset--color--white);
}

/******* FORM ELEMENTS *******/
.button,
.button:link,
.button:visited,
input[type="submit"],
input[type="button"] {
  display:inline-flex;
  font-size:1rem;
  width: auto;
  border: none;
  font-family: var(--wp--preset--font-family--regular);
  text-transform: uppercase;
  margin:0 .6rem;
  background-color: var(--wp--preset--color--accent);
  color: inherit;
  -webkit-appearance: button;
  border-radius: 9999px;
  cursor:pointer;
  text-align: center;
  padding: .3rem 1.3rem;
  font-weight:300 !important;
  text-decoration: none;
  transition: background-color 0.3s, box-shadow .3s;
  box-shadow:0 0 10px rgba(0,0,0,.08);
  white-space: nowrap;

}

.button:hover,
.button:active,
.button.active {
  color:inherit !important;
  background-color: var(--wp--preset--color--accent-darker);
  box-shadow:0 0 10px rgba(0,0,0,.35);
}

.button.outline,
.button.outline:link,
.button.outline:visited {
  border: 1px solid var(--wp--preset--color-accent);
  background-color: transparent;
  color: inherit;
  transition: border 0.3s, box-shadow .3s;
}

.button.outline:hover,
.button.outline:active,
.button.outline.active {
  color:inherit !important;
  background-color: transparent;
  border-color: var(--wp--preset--color--accent-darker);
}

.button.large {
  transform-origin: left top;
  transform: scale(1.25);
}

.button.small {
  margin:0;
  padding-left:.65rem;
  padding-right:.65rem;
  transform-origin: center top;
  transform: scale(.85);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="date"],
select,
textarea {
  font-family: var(--wp--preset--font-family--regular);
  font-size: 1rem;
  font-weight:300;
  width:100%;
  padding:1rem;
  -webkit-appearance: none;
  background-color: var(--wp--preset--color--white);
  border:none;
  border-radius: 3px;
  margin-bottom:5px;
  -webkit-appearance: none;
}

input:focus,
textarea:focus {
  outline:none;
  box-shadow:0 0 5px rgba(0,0,0,.25);
}

textarea {
  resize: vertical;
}

form p {
  margin:0;
}

fieldset {
  position:relative;
  border: 0;
  margin: 0;
  padding: 0;
}

fieldset label {
  color:darkgrey;
  position:absolute;
  position: absolute;
  top: 2px;
  left: 1rem;
  z-index: 9999;
  font-size: 0.7rem;
}

.wpcf7-form-control.wpcf7-submit[data-icon]:not(.before)::after,
.wpcf7-form-control.wpcf7-submit[data-icon].before:before {
  content: '&#xf1d8;';
}

.wpcf7-form-control.wpcf7-not-valid {
  background-color: rgb(247, 167, 167);
}

.wpcf7-not-valid-tip {
  color: #dc3232;
  font-size: .7rem;
  line-height:1;
}

.wpcf7 form .wpcf7-response-output {
  border:none;
  border-radius:2px;
  padding:1rem;
  box-shadow:0 0 5px rgba(0,0,0,.4);
}

.wpcf7 form.sent .wpcf7-response-output {
  background-color: #46b450;
  color:#FFF;
}

.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
  background-color: #dc3232;
  color:#FFF;
}

.wpcf7 form.spam .wpcf7-response-output {
  background-color: #f56e28;
  color:#FFF;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
  background-color: #ffb900;
  color: #FFF;
}

.appointment-timezone {
  display: none;
}

/******* MEDIA *******/
figure {
  position:relative;
  margin:.5rem auto;
  width:100%;
}

img {
  width: 80%;
  margin-left:auto;
  margin-right:auto;
}

figure img {
  border-radius: var(--border-radius);
  width:100%;
  object-fit: cover;
}

.is-cropped figure img {
  object-fit: contain !important;
}

figure img.rounded{
  aspect-ratio: 1 / 1;
  border-radius:100%;
}

figcaption {
  font-size:80%;
  position:absolute;
  bottom:0;
  left:0;
  width:100%;
  color:var(--wp--preset--color--white);
  padding:1rem;
  text-shadow: 0 0 10px var(--wp--preset--color--black-80);
}

.wp-block-gallery > p:empty {
  display: none;
}

}
.alignright,
.alignleft,
.aligncenter {
  width:auto;
  max-width: 200px;
  clear: both;
}
.alignright {
  float:right;
  margin-left:2rem !important;
}
.alignleft {
  float:left;
  margin-right:2rem !important;
}
.aligncenter {
  margin-left:auto !important;
  margin-right:auto !important;
}
.alignfull,
.alignwide,
.wp-block-image.alignfull,
.wp-block-image.alignwide {
  width:100%;
  height:400px;
  clear: both;
}

.alignfull img,
.alignwide img,
.wp-block-image.alignfull img,
.wp-block-image.alignwide img {
  width: 100%;
  height:100%;
  object-fit: cover;
  object-position: 50% 35%;
}

/******* HELPERS *******/
.hidden,
[hidden] {
  display: none !important;
}
.invisible {
  visibility: hidden;
}
.grecaptcha-badge { visibility: hidden; }

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}
.clearfix::after {
  clear: both;
}

/******* MEDIA QUERIES *******/
@media (min-width: 768px) {
  body.scrolled header#top_header,
  header#top_header.mobile-nav-active {
    padding-top:.5rem;
    padding-bottom:.5rem;
  }

  body.scrolled header#top_header .logo,
  header#top_header.mobile-nav-active .logo {
    transform: scale(.8);
    transform-origin: center center;
  }

  footer#main_footer .row {
    flex-wrap: nowrap;
  }
}

@media (max-width: 768px) {
  main section {
    padding: 1rem;
  }

  header#top_header {
    padding-top:1rem;
    padding-bottom:1rem;
  }
  header#top_header nav.menu {
    flex-direction: column;
  }

  header#main_header {
    padding: 1rem;
    background-size:auto;
  }

  header#main_header .row {
    justify-content: center;
  }
  header#main_header .jumbotron {
    width:100%;
  }

  header#top_header nav#primary_nav,
  header#top_header nav#secondary_nav {
    display:none;
  }

  .nav_toggle {
    display:block;
  }

  .row{
    gap: 1rem;
    flex-wrap: wrap;
  }

  .partners {
    flex-wrap: wrap;
  }
}

/******* ANIMATIONS *******/
@keyframes bounce {
   0%,
   20%,
   50%,
   80%,
   100% {
     transform: translateY(0);
   }

   40% {
     transform: translateY(-15px);
   }

   60% {
     transform: translateY(-7px);
   }
 }

@keyframes shake {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(0);
  }

  40% {
    transform: translateX(-5px);
  }

  60% {
    transform: translateX(-2px);
  }
}

@keyframes fadeInAnimation {
  from {
    opacity: 0;
    transform:var(--fade-direction);
  }
  to {
    opacity: 1;
    transform:translate(0,0);
  }
}