/*
Theme Name: Mijn Thema
Author: Ewout
Description: ja bekijk de website en je ziet waarom ik dit gemaakt heb.
Version: 1.0
*/

/* Algemene opmaak */
html {
  scroll-behavior: smooth;
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}

body {
  margin: 0;
  font-family: 'Avenir', sans-serif;
  line-height: 1.6;
  background: #4076B4;
  color: #000;
}

.white-background-container {
    background-color: #ffffff;
    padding-top: 2rem;
}

/* Container die de breedte beperkt en centreert */
.container {
  max-width: 700px;
  margin: auto;
  padding: 20px;
  text-align: center;
  color: #fff;
}

.size-large {
    width: 50%;
    margin: auto;
} 

img {
  width: 100%;
  display: block;
}

h1 {
  font-size: 1.5rem;
  margin-top: 0rem;
  margin-bottom: 0.5rem;
  margin-block-start: 0;
  text-align: center;
}

h2 {
  font-size: 1.5rem;
  margin-top: 0rem;
  margin-bottom: 0.5rem;
  margin-block-start: 0;
}

#over {
  scroll-margin-top: 70px;
}

#freelance {
  background: #fff;
  color: #000;
  border-radius: 35px;
  width: 100%;
  margin-top: 2rem;
  margin-left: auto;
  margin-right: auto;
  padding: 2rem 1.5rem;
  box-sizing: border-box;
}

#freelance h2 {
    text-align: center;
    color: #000;
    margin-bottom: 0.5rem;
}

.freelance-content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  align-items: flex-start;
}

.freelance-video-column {
  flex: 1 1 35%;
}

.freelance-video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 15px;
}

.freelance-text-column {
  flex: 1 1 58%;
  text-align: justify ;
}

.freelance-text-column p {
  margin-top: 0;
  color: #000;
}

#bg-video {
  position: relative;
  left: 0;
  min-width: 100vw;
  min-height: 100vh;
  width: 100%;
  height: auto;
  z-index: -1;
  object-fit: cover;
  background: #000;
  -webkit-mask-image: linear-gradient(to bottom, black 90%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 90%, transparent 100%);
}

/* Header en navigatie - Desktop Standaard */
header {
  color: white;
  padding: 0rem;
  text-align: center;
}

#header-balk {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1em;
  padding: 0em 1em;
  background: #fc0;
  border-radius: 35px;
  position: fixed;
  top: 3%;
  left: 50%;
  width: calc(100% - 40px);
  max-width: 660px;
  transform: translateX(-50%);
  z-index: 1000;
  margin: auto;
  box-sizing: border-box;
  box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.1);
}

.header-nav-group {
  display: flex;
  gap: 1em;
}

.header-nav-group.left {
  grid-column: 1 / 2;
  justify-content: flex-start;
  margin-left: 1em;
}

#home-link {
  grid-column: 2 / 3;
  justify-self: center;
}

.header-nav-group.right {
  grid-column: 3 / 4;
  justify-content: flex-end;
  margin-right: 1em;
}

nav {
  width: 100%;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: larger;
  text-align: center;
}

nav a:hover {
  color: #dfdfdf;
}

/* Hamburgermenu styling voor de animatie */
.menu-toggle {
    display: none;
    position: relative;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1510;
}

.hamburger-icon,
.hamburger-icon::before,
.hamburger-icon::after {
    display: block;
    content: '';
    width: 100%;
    height: 3px;
    background-color: #fff;
    position: absolute;
    transition: transform 0.3s ease-in-out, top 0.3s ease-in-out;
}

.hamburger-icon {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-icon::before {
    top: -10px;
}

.hamburger-icon::after {
    top: 10px;
}

.menu-toggle.is-active .hamburger-icon {
    transform: rotate(45deg);
}

.menu-toggle.is-active .hamburger-icon::before {
    top: 0;
    transform: rotate(90deg);
}

.menu-toggle.is-active .hamburger-icon::after {
    top: 0;
    transform: rotate(0deg);
}

#mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #fc0;
    z-index: 1500;
    display: none; /* Verberg het menu standaard op desktop */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: right 0.3s ease-in-out;
}

#mobile-menu a {
  font-size: 1.6rem;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

#mobile-menu.is-open {
    right: 0;
}

/* Carousel (Services) */
.carousel-wrapper {
  overflow: hidden;
  width: 100%;
  margin: auto;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.carousel {
  display: flex;
  justify-content: center;
  padding: 2rem;
  background-color: #fc0;
  gap: 3%;
}

.item {
  flex: 0 0 auto;
  text-align: center;
  width: clamp(100px, 20% + 5px, 200px);
}

.item p {
  color: white;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.video-link {
  display: block;
  width: 100%;
  background-color: black;
  border-radius: 35px;
  border: 3px solid transparent;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  padding-top: 100%;
  
  /* Voeg een overgang toe voor de rand */
  transition: border-color 0.3s ease-in-out;
}

.carousel-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.video-link:hover {
  border-color: black; /* Verander de randkleur bij hover */
}

.video-link:hover .carousel-video {
  opacity: 1;
}

/* Product Carrousel (Homepage) */
.product-carousel {
  position: relative;
  background-color: #f5f5f5;
  padding: 2rem 0;
  border-radius: 35px;
  margin: 0 auto;
  max-width: 100%;
  overflow: hidden;
  color: black;
}

.product-carousel .product a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.product-carousel .product a img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 20px;
  display: block;
}

.product-carousel .product a p {
  margin-top: 0.5rem;
  font-weight: bold;
  color: #2C304C;
}

.carousel-container {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding: 1rem 2rem;
}

.product {
  flex: 0 0 auto;
  width: 180px;
  text-align: center;
  scroll-snap-align: start;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: gray;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 50%;
  z-index: 2;
  background: none;
  transition: transform 0.2s ease-in-out;
}

.carousel-button:hover {
  transform: translateY(-50%) scale(1.2);
}

.carousel-button.left { left: 1rem; }
.carousel-button.right { right: 1rem; }

/* Project Help Sectie */
#project-help .project-help-container {
  background: #fc0;
  color: black;
  font-weight: bold;
  border-radius: 35px;
  padding: 1rem 1.5rem;
  max-width: 700px;
  margin: 2rem auto 0.4rem auto;
  text-align: left;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.5rem;
}

.project-help-text {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex: 1;
}

.project-help-description {
  font-size: 0.7rem;
  color: #fff;
  margin-top: 0rem;
}

.project-help-button {
  background: #A00000;
  color: #fff;
  border: none;
  border-radius: 35px;
  padding: 0.3rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  font-weight: bold;
  position: relative;
  left: -2px;
  top: -2px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, top 0.2s, left 0.2s;
  white-space: nowrap;
  box-shadow: 2px 2px 0px rgba(0,0,0,1);
  margin-left: auto;
  display: block;
}

.project-help-button:hover {
  background: #800000;
  box-shadow: 1px 1px 0px rgba(0,0,0,1);
  left: -1px;
  top: -1px;
}

.project-help-button:active,
.project-help-button:focus:active {
  box-shadow: 0px 0px 0px rgba(0,0,0,1);
  left: 0px;
  top: 0px;
}

#project-help .project-help-button .button-text-mobile,
#project-help .project-help-description .description-text-mobile {
  display: none;
}

#project-help .project-help-button .button-text-desktop,
#project-help .project-help-description .description-text-desktop {
  display: inline;
}

/* Stijlen voor content-containers op Pagina's en WooCommerce Pagina's (Desktop) */
.page-container,
.woocommerce-page-container {
  display: block;
  background-color: #fff;
  color: #333;
  border-radius: 35px;
  padding: 40px;
  margin-top: 6em;
  margin-bottom: 10vh;
  text-align: left;
  width: calc(100% - 40px);
  max-width: 660px; 
}

.page-container .entry-title,
.woocommerce-page-container .woocommerce-products-header__title.page-title {
  color: #000;
  margin-bottom: 20px;
  text-align: center;
}
.woocommerce-page-container .woocommerce-products-header__title.page-title {
  font-size: 1.5em;
}
.woocommerce-page-container .woocommerce-products-header {
  margin-bottom: 2rem;
  text-align: center;
}

/* WPForms aanpassingen */
.page-container .wpforms-container .wpforms-form {
  text-align: left;
}
.page-container .wpforms-field-label {
  font-weight: bold;
  margin-bottom: 0.5em;
  display: block;
}
.page-container .wpforms-field input[type="text"],
.page-container .wpforms-field input[type="email"],
.page-container .wpforms-field textarea {
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
}
.page-container .wpforms-form button.wpforms-submit {
  background-color: #A00000 !important;
  color: #fff !important;
  border: none !important;
  padding: 10px 20px !important;
  border-radius: 35px !important;
  font-weight: bold !important;
  cursor: pointer !important;
  text-transform: none !important;
  box-shadow: 2px 2px 0px rgba(0,0,0,0.2);
  transition: background-color 0.2s, box-shadow 0.2s, top 0.2s, left 0.2s;
  position: relative;
  left: 0;
  top: 0;
}
.page-container .wpforms-form button.wpforms-submit:hover {
  background-color: #800000 !important;
  box-shadow: 1px 1px 0px rgba(0,0,0,0.2);
  left: 1px;
  top: 1px;
}

.page-container .wpforms-form button.wpforms-submit:active {
  background-color: #600000 !important;
  box-shadow: 0px 0px 0px rgba(0,0,0,0.2);
  left: 2px;
  top: 2px;
}

.wcgs-carousel, .attachment-woocommerce_thumbnail {
    box-shadow: 0 0 5px 3px rgba(0,0,0,0.1); 
    border-radius: 35px;
    transition: box-shadow 0.2s ease-in-out;
}

.attachment-woocommerce_thumbnail:hover {
    box-shadow: 0 0 0px 3px rgba(0,0,0); 
}

/* Single Product Pagina Stijlen */
.single-product div.product {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 1.5rem;
width: 100%;
}

.single-product div.product .woocommerce-product-gallery {
  flex: 0 0 60%;
}

.single-product div.product .woocommerce-product-gallery figure.woocommerce-product-gallery__wrapper,
.single-product div.product .woocommerce-product-gallery div.woocommerce-product-gallery__image,
.single-product div.product .woocommerce-product-gallery div.woocommerce-product-gallery__image--placeholder {
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  position:relative;
}

.single-product div.product .woocommerce-product-gallery div.woocommerce-product-gallery__image a {
    display: block;
    width: 100%;
    height: 100%;
}

.single-product div.product .woocommerce-product-gallery img.wp-post-image {
  width: 100% !important;
  height: auto !important;
  max-width: none !important;
  display: block !important;
}

.single-product div.product .summary.entry-summary {
  flex: 1;
}

.single-product .summary.entry-summary .product_title {
  font-size: 1.3rem;
  line-height: 1.3;
  margin-bottom: 0.4em;
}

.single-product .summary.entry-summary .price {
  font-size: 1.1rem;
  margin-bottom: 0.8em;
}

.single-product .summary.entry-summary .woocommerce-product-details__short-description p,
.single-product .summary.entry-summary .woocommerce-product-details__short-description {
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 1em;
}

.single-product .woocommerce-Tabs-panel--description p {
  font-size: 0.85rem;
  line-height: 1.5;
}

.single-product div.product form.cart .quantity .qty {
  max-width: 50px !important;
  padding: 5px !important;
  font-size: 0.9rem !important;
  height: auto !important;
  min-height: unset !important;
}

.single-product div.product form.cart,
.single-product section.related.products {
  width: 100%;
  clear: both;
  margin-top: 1.5rem;
}

.single-product div.product form.cart button.single_add_to_cart_button {
  background-color: #A00000 !important;
  color: #fff !important;
  border: none !important;
  padding: 12px 25px !important;
  border-radius: 35px !important;
  font-weight: bold !important;
  font-size: 1.1rem !important;
  cursor: pointer !important;
  text-transform: none !important;
  text-align: center;
  width: 100%;
  margin-top: 1em;
  display: block;
  box-shadow: 2px 2px 0px rgba(0,0,0,0.2);
  transition: background-color 0.2s, box-shadow 0.2s, top 0.2s, left 0.2s;
  position: relative;
  left: 0;
  top: 0;
}

.single-product div.product form.cart button.single_add_to_cart_button:hover {
  background-color: #800000 !important;
  box-shadow: 1px 1px 0px rgba(0,0,0,0.2);
  left: 1px;
  top: 1px;
}

.single-product div.product form.cart button.single_add_to_cart_button:active {
  background-color: #600000 !important;
  box-shadow: 0px 0px 0px rgba(0,0,0,0.2);
  left: 2px;
  top: 2px;
}

/* Footer */
footer {
  background-color: #2C304C;
  padding: 2rem;
  position: relative;
  color: white;
}

footer a {
  color: white;
  text-decoration: none;
}

footer a:hover {
  color: #dfdfdf;
}

#boot {
  position: absolute;
  top: -10vh;
  right: 10%;
  height: auto;
  max-width: 300px;
  pointer-events: none;
  z-index: 0;
  left: max(300px, calc(90% - 300px));
}

#logo-footer {
  position: relative;
  height: 3.27em;
  width: auto;
  max-width: 300px;
  pointer-events: none;
  z-index: 0;
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  z-index: 1;
  position: relative;
  flex-wrap: wrap;
  text-align: left;
  margin-bottom: 1rem;
  width: 80%;
  max-width: 80%;
  min-width: 560px;
  padding: 0 2rem;
  margin-left: auto;
  margin-right: auto;
}

.column {
  max-width: 400px;
  flex: 1 1 0;
}

#column-2 {
  text-align: right;
}

footer p {
  margin: 0.5rem 0;
}

footer .copyright {
  text-align: center;
  font-size: 0.9rem;
  z-index: 1;
  position: relative;
}

/* Stijlen voor de Viewport-Fixed Winkelwagenknop */
.viewport-cart-link {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 1050;
  display: inline-flex;
  align-items: center;
  background-color: #fc0;
  padding: 0.6em 1em;
  border-radius: 25px;
  text-decoration: none;
  color: #000;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
  transition: background-color 0.2s ease-in-out;
}

.viewport-cart-link:hover {
  background-color: #e6b800;
}

.viewport-cart-link .cart-icon-container {
  display: inline-block;
}

.viewport-cart-link .cart-icon {
  font-size: 1.6em;
  line-height: 1;
  color: #000;
}

.viewport-cart-link .cart-contents {
  display: inline-block;
  margin-left: 0.5em;
}

.viewport-cart-link .cart-count-bubble {
  background-color: #A00000;
  color: #fff;
  border-radius: 50%;
  padding: 0.25em 0.6em;
  font-size: 0.8em;
  font-weight: bold;
  line-height: 1;
  min-width: 1.6em;
  text-align: center;
  display: inline-block;
  vertical-align: middle;
}

/* --- Mobiele aanpassingen (max-width: 700px) --- */
@media (max-width: 700px) {

    #bg-video {
      min-height: 70vh;
      height: 70vh;
      top: 0;
    }

    .freelance-content-wrapper {
      flex-direction: column;
      align-items: center;
    }

    .freelance-video-column,
    .freelance-text-column {
      flex-basis: 100%;
      max-width: 100%;
    }

    .freelance-content-wrapper {
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .freelance-video-column {
      width: 70%;
      max-width: 280px;
      order: 2;
    }

    .freelance-text-column {
      text-align: justify;
      order: 1;
      margin-bottom: 1.5rem;
    }

    .page-container,
    .woocommerce-page-container {
      width: calc(100% - 2rem);
      margin-left: auto;
      margin-right: auto;
      margin-top: 7em;
      margin-bottom: 3rem;
      padding: 2rem;
    }

    #header-balk {
    /* Oude regels, kunnen worden verwijderd of overschreven */
    top: 0; /* Niet langer nodig, maar voor de zekerheid */
    left: 0;
    transform: none;
    width: calc(100%-2em); 
    max-width: none;
    border-radius: 35px;
    margin: 1em;
    padding: 0.5em;
    padding-left: 2em;
    padding-right: 2em;
    }

    /* Zorg dat de desktop-links verdwijnen en de hamburgerknop verschijnt */
    .header-nav-group.left,
    .header-nav-group.right {
      display: none;
    }
    
    .menu-toggle {
        display: block;
        grid-column: 3 / 4;
        justify-self: end;
    }
    
    /* Mobile Menu - Volledig scherm animatie en uitlijning */
    #mobile-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: #fc0;
        z-index: 1500;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: transform 0.3s ease-in-out;
        transform: translateX(100%); /* Zorg ervoor dat het menu verborgen is aan de rechterkant */
    }

    #mobile-menu.is-open {
        transform: translateX(0); /* Schuif het menu in beeld */
    }

    /* Verberg de desktop links en toon de hamburgerknop */
    .header-nav-group.left,
    .header-nav-group.right {
    display: none;
    }

    .menu-toggle {
        display: block;
        grid-column: 3 / 4;
        justify-self: end;
    }
    
    .container {
      max-width: 100%;
      padding: 1rem;
    }

    #freelance {
      width: 100%;
      margin: 0 auto;
      padding: 1.5rem 1rem;
    }

    /* SERVICES CARROUSEL - Aangepast voor 2x2 raster */
    .carousel-wrapper {
        padding: 0;
        margin: 0;
        margin-top: 2em;
        margin-bottom: 2em;
    }

    .carousel {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .item {
        width: 100%;
        margin: 0;
    }

    .item p {
        color: black;
        font-weight: bold;
        margin-top: 0.5rem;
    }

    .video-link {
        border-radius: 35px;
    }
    
    /* Project Help Sectie Mobiel */
    #project-help .project-help-container {
        flex-direction: column;
        text-align: center;
        max-width: 90%;
        background: transparent;
        padding: 0;
        box-shadow: none;
        border-radius: 0;
        justify-content: center;
        gap: 1rem;
    }

    #project-help .project-help-text {
        display: none;
    }

#project-help .project-help-button {
        margin-left: 0;
        margin-top: 0;
        width: 100%;
        padding: 1rem;
        font-size: 1.1rem;
        text-align: center;
    }

#project-help .project-help-button .button-text-desktop,
#project-help .project-help-description .description-text-desktop {
    display: none;
}

#project-help .project-help-button .button-text-mobile,
#project-help .project-help-description .description-text-mobile {
    display: inline;
}
    
    /* Single Product Mobiel - Kolommen onder elkaar */
    .single-product div.product {
        flex-direction: column;
        gap: 1.5rem;
    }

    .single-product div.product .woocommerce-product-gallery,
    .single-product div.product .summary.entry-summary {
        flex-basis: 100%;
        max-width: 100%;
    }

    /* Footer Mobiel */
    .footer-content {
        flex-direction: column;
        width: 100%;
        min-width: auto;
        padding: 0 1rem;
        align-items: center;
    }

    .column {
        max-width: 100%;
        text-align: center !important;
        margin-bottom: 1rem;
    }

    #boot {
        position: absolute;
        max-width: 150px;
        height: auto;
        top: -5vh;
        right: 2%;
        left: auto;
        margin: 0;
    }

    #logo-footer {
        height: 2.5em;
        max-width: 200px;
        margin: 0 auto;
    }

    footer .copyright {
        font-size: 0.8rem;
    }

    .desktop-breaks-only {
        display: none;
    }
}