/*
Theme Name: STW
Author: Lieke Crum
Description: Stichting tijdelijk wonen
Requires at least: 6.1
Tested up to: 6.8
Requires PHP: 5.6
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
Text Domain: STW
Tags: one-column, custom-menu, custom-logo*/

:root {
  /* Measurements */
  --stw-big-padding: 60px 0;
  --stw-mobile-padding: 20px 0;
  --stw-light-padding: 0 25px;
  /* Colors */
  --stw-gray1: #7c7c7c;
  --stw-gray2: #f7f7f7;
  --stw-gray3: #dddddd;
  --stw-gray4: #9da4b0;
  --stw-red: #EA5A58;
  --stw-deep-blue: #212348;
  --stw-yellow: #fef7bb;
  --stw-lightblue: #edf6f9;
}

/* fonts */
@font-face {
font-family: 'opensans-regular';
src: url('https://vast-termite.w5.wpsandbox.pro/fonts/OpenSans-Regular.woff') format('woff');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'opensans-bold';
src: url('https://vast-termite.w5.wpsandbox.pro/fonts/OpenSans-Bold.woff') format('woff');
font-weight: 700;
font-style: normal;
}
@font-face {
font-family: 'opensans-italic';
src: url('https://vast-termite.w5.wpsandbox.pro/fonts/OpenSans-Italic.woff') format('woff');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'opensans-semibold';
src: url('https://vast-termite.w5.wpsandbox.pro/fonts/OpenSans-SemiBold.woff') format('woff');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'opensans-extrabold';
src: url('https://vast-termite.w5.wpsandbox.pro/fonts/OpenSans-ExtraBold.woff') format('woff');
font-weight: 800;
font-style: normal;
}
@font-face {
font-family: 'ptserif-bold';
src: url('./assets/fonts/PTSerif-Bold.woff') format('woff');
font-weight: 800;
font-style: normal;
}
@font-face {
font-family: 'ptserif-regular';
src: url('./assets/fonts/PTSerif-Regular.woff') format('woff');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'quicksand-bold';
src: url('./assets/fonts/Quicksand-Bold.woff') format('woff');
font-weight: 700;
font-style: normal;
}

body {
    font-family: 'quicksand-bold', serif;
    overflow-x: hidden;
    width: 100vw;
}
body p, body a {
  font-family: ptserif-regular, sans-serif;
  word-break: break-word;
} 

a, input, button, textarea, select, object {
  pointer-events: auto
}

/* Menu */

.wp-block-navigation-item{
  margin: 0 15px;
  font-family: quicksand-bold, Arial, sans-serif;
  cursor: pointer !important;
  z-index: 1000;
}
.wp-block-navigation-item:hover{
  color: var(--stw-red);
}

/* sticky menu */
.is-sticky {
  position: sticky;
  top: 0;
  z-index: 999;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.is-sticky.is-top {
  background-color: transparent;
  box-shadow: none;
}
.is-sticky.is-scrolled {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.has-hovered-item{
  background-color: white !important;
}

/* mega menu */
.mega-menu-link{
  z-index: 10;
}
.menu-area{
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.mega-menu-row{
  justify-content: left;
  display: grid !important;
}
.mega-menu-row li{
  width: fit-content !important;
}
.mega-menu-column, .mega-sub-menu{
  display: flex !important;
  flex-direction: column !important;
}
.mega-indicator::after{
  display: none !important;
}

.logo{
  height: 60px;
  position: absolute;
  top: 10px;
  justify-self: center;
  padding: 0px;
}
.logo img{
  z-index: 2;
  position: absolute;
}
.wp-block-site-logo .wp-site-blocks{
  pointer-events: none;

}
.wp-block-site-logo, .custom-logo-link, .logo img{
  height: 100%;
  width: auto;
  pointer-events: auto;
}
.wp-block-site-logo a{
  width: 142px;
}
.mega-sub-menu{
  z-index: 1 !important;
}

/* container */
.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  pointer-events: none
}


/* image */
img {
    border-radius: 15px;
}

figure{
    margin-bottom: 0;
}

/* text */
h1, h2, h3, h4, h5, h6 {
  font-family: 'quicksand-bold', Arial, sans-serif;
  color: var(--stw-deep-blue);
  font-weight: 700;
}

h2{
  font-size: clamp(2rem, 3.3vw, 3rem);
  margin: 0;
}

p, a {
  font-size: clamp(1rem, 1.2vw, 1.0625rem);
  line-height: 30px;
}

/* links */
a{
    color: var(--stw-red);
    font-weight: 700;
    text-decoration: none;
}

strong{
  font-family: quicksand-bold, Arial, sans-serif;
}

.arrow::after {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  background-color: currentColor;
  mask-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M7.5 15L12.5 10L7.5 5' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask-size: contain;
  mask-repeat: no-repeat;
  vertical-align: middle;
  transition: transform 0.3s ease;
  pointer-events: none;
}

.arrow:hover::after {
  transform: translateX(4px);
}

/* column */
.img-column {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Card grid */
.card {
  padding: 32px 24px;
  text-align: center;
  border-radius: 1em;
  position: relative; 
  background-color: white;
}

.card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.3s ease;
}

.card .default-image {
  display: block;
  width: 100%;
  transition: opacity 0.3s ease;
}

.card .hover-image {
  position: absolute;
  top: 32px;   
  left: 24px;  
  width: calc(100% - 48px); 
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 1em; 
}

.card:hover .default-image {
  opacity: 0;
}

.card:hover .hover-image {
  opacity: 1;
}

.card-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10; 
  text-decoration: none;
}

/* Location card */
.location-card {
    background-color: white; 
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s ease; 
    border: solid 1px var(--stw-gray3);
}

.location-card .location-content {
    padding: 32px 24px;
}

.image-wrapper {
    overflow: hidden; 
}

.location-card img {
    border-radius: 0 !important;
    transition: transform 0.3s ease;
}

.location-card-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10; 
  text-decoration: none;
}

.location-card:hover img {
    transform: scale(1.05); 
}

.location-card .location-content h4 {
    margin-top: 0;    
    margin-bottom: 0.5rem; 
}

.location-card .location-content p {
    margin-top: 0;    
    margin-bottom: 1rem; 
}

.location-card .wp-block-read-more {
    display: inline-block; 
    text-align: left;      
    margin: 0;             
}

/* Full width background */
/* .full-width-background {
    width: 100vw; 
    margin-left: calc(-50vw + 50%); 
    margin-right: calc(-50vw + 50%);
    padding: var(--stw-big-padding); 
    box-sizing: border-box; 
}

.full-width-background > .wp-block-columns {
    max-width: 1140px; 
    margin: 0 auto; 
    padding: 0 15px; 
} */

/* Footer */
footer {
    background-color: var(--stw-gray3); 
    padding: 10px;
    text-align: center;
}
footer a{
  font-family: quicksand-bold, Arial, sans-serif;
}
.wp-social-link{
  background-color: var(--stw-deep-blue);
}
footer nav{
  display: none !important;
}

/* header */
.bg-blob {
  content: '';
  display: flex;
  position: absolute;
  width: 66%;
  top: 0;
  right: 0;
  z-index: -1;
}
.bg-blob img {
  width: 100%;
  height: auto;
}
.header-blob div{
  justify-content: center;
  display: flex;
  flex-direction: column;
}
.header-img {
  justify-content: center;
  display: flex;
  width: 100%;
}
.header-img img {
  width: inherit !important;
  height: auto;
}
.header{
  margin-bottom: 50px;
}
/* .tekst-header{
  padding-top: 10vh;
} */
.wp-element-button{
  background-color: var(--stw-deep-blue);
}

/* Contact */

.form{
    background-color: var(--stw-deep-blue);
    left: 0;
    justify-content: center;
    display: flex;
    color: white;
    flex-direction: column;
    padding: 3rem 1rem;
}
.form h2, .form label{
  font-weight: 800;
  color: var(--stw-white) !important;
}
.form label{
  display: block;
}
.wpforms-field-limit-text{
  display: none;
}
.wpforms-container{
  width: 100% !important;
}
option{
  color: var(--stw-deep-blue) !important;
}
select, input{
  max-width: 100% !important;
}

.achtergrond{
  position: relative;
  padding: 50px 0;
  color: white;
}
.achtergrond::after{
  content: "";
  position: absolute;

  /* viewport-breed */
  width: 100vw;
  height:100%;

  /* centreren t.o.v. scherm */
  left: 50%;
  transform: translateX(-50%);

  top: 0;
  background-color: var(--stw-deep-blue);
  z-index: -1;
}
.achtergrond h2, .achtergrond h3, .achtergrond label{
  color: white !important;
}
/*
.wp-block-contact-form-7-contact-form-selector{
  width: 100%;
}
.wpcf7-form-control-wrap input, .wpcf7-form-control-wrap textarea,.wpcf7-form-control-wrap select {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--stw-gray4);
    color: var(--stw-gray4);
    border-radius: 18px;
    font-family: 'opensans-regular', sans-serif;
    font-size: 17px;
    background-color: var(--stw-deep-blue);
}
.wpcf7-form-control-wrap{
  display: flex;
  width: 100%;
}
.wpcf7 input[type="submit"] {
    background: var(--stw-red);
    color: white;
    padding: 15px 24px;
    border: none;
    cursor: pointer;
    border-radius: 18px;
    font-weight: 800;
    font-size: 17px;
} */

/* article */
.article{
  padding: 20px;
  padding-top: 50px;
  padding-bottom: 50px;
  position: relative;
  color: white;
  margin-bottom: 0;
}
.article h2, .article h3{
  color: white;
}
.article img{
  margin: 10px 0;
}

/* list */
.wp-block-list li::marker{
  color: var(--stw-red);
  font-size: x-large;
}
.wp-block-list{
  margin: 0;
}
.wp-block-list li{
  font-family: ptserif-regular, sans-serif;
  margin-bottom: 10px;
}

/* zakelijk */
.page-id-305 .footer{
  background-color: var(--stw-deep-blue);
}
.page-id-305 .footer p{
  color: white;
}
.page-id-305 .bg-blob, .page-id-308 .bg-blob, .page-id-234 .bg-blob{
  display: none;
}

/* counter */
.counter {
  font-size: 3rem;
  font-weight: 600;
  text-align: center;
}

/* bestuur */
.bestuur{
  padding-top: 50px;
  padding-bottom: 50px;
  position: relative;
  margin-bottom: 0;
  color: var(--stw-deep-blue)
}
.bestuur .wp-block-column{
  background-color: white;
  padding: 20px;
  border-radius: 15px;
}

@media (max-width: 575px) {
  .container {
    padding: var(--stw-light-padding);
  }
}
@media (min-width: 576px) {
  .container {
    max-width: 540px;
    padding-right: 15px;
    padding-left: 15px;
  }
}
@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
  .logo{
  height: 80px;
  }
  footer nav{
    display: flex !important;
  }
  .mega-menu-row{
    justify-content: center;
    display: grid !important;
  }
  .mega-indicator::after{
    display: inline-block !important;
  }
}
@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
  .bg-blob{
    max-width: 50%;
  }
  .form{
    padding: 3rem 13rem;
  }
}
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  .bg-blob{
    max-width: 40%;
  }
}
@media (min-width: 1400px) {
  .container {
    max-width: 1340px;
  }
}

.main-container::after{
  background-color: white !important;
}