/* 
Theme Name:		 The Webdev child
Theme URI:		 https://stijn-peeters.github.io/
Description:	 The Webdev child is a child theme of twentytwentyfive
Author:			   Stijn Peeters
Author URI:		 https://stijn-peeters.github.io/
Template:		   twentytwentyfive
Version:		   1.0.0
Text Domain:	 thewebdev-child
*/
html {
  scroll-behavior: smooth;
}

.overflow-hidden {
  overflow: hidden;
}

.d-none {
  display: none;
}

footer {
  margin: unset;
}
#back-to-top {
  display: none;
  position: fixed;
  bottom: 2rem;
  right: 20px;
  padding: .4em .5em;
  line-height: 1;
  font-size: 1rem;
  background: var(--wp--preset--color--base);
  color: var(--wp--preset--color--accent-5);
  border: 1px solid var(--wp--preset--color--custom-transparent);
  text-decoration: none;
  border-radius: 5px;
  z-index: 9999;
  opacity: .7;
}
@media (max-width: 768px) {
  #back-to-top {
	right: 1vw;
  }
}

a {
  outline: unset !important;
}

header {
  a {
    outline: unset;
  }
  .wp-block-site-title a {
    text-decoration: none;
  }
  nav .current-menu-item a {
    color: var(--wp--preset--color--accent-1) !important;
  }
  nav a {
    font-size: 1rem;
    &:hover {
      text-decoration: none;
      color: var(--wp--preset--color--accent-1) !important;
    }
  }
}

footer .footer-menus {
  a,
  p:has(a) {
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
    &:hover {
      color: white !important;
      transform: translateY(-1px);
    }
  }
}

header nav .header-btn a {
  border-radius: 9999px;
  line-height: 1.6;
  color: #ffffff !important;
  font-size: clamp(0.875rem, 0.875rem + ((1vw - 0.2rem) * 0.154), 0.95rem);
  font-weight: 500;
  padding: 0.3rem 1rem !important;
  transition: all 0.2s;
  outline: unset;
  background-color: var(--wp--preset--color--contrast);
  &:hover {
    background-color: var(--wp--preset--color--accent-1);
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(26, 79, 214, 0.25);
  }
}

.wp-element-button {
  outline: unset;
}

table {
  table-layout: unset !important;
  border-spacing: 0px;
  border-collapse: unset !important;
  thead {
    background-color: black;
    color: white;
    border-bottom: unset !important;
  }
  tr td:first-of-type,
  tr th:first-of-type {
    padding: 0.5em 0.5em 0.5em 1em !important;
  }
}

.hero-categories a,
.portfolio-categories a,
.blogs-categories a,
.blogs-categories-uitgelicht a {
  font-family: var(--wp--preset--font-family--dm-sans);
  line-height: 1.6;
  box-sizing: border-box;
  margin: 0;
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wp--preset--color--accent-1);
  background: var(--wp--preset--color--accent-2);
  padding: 4px 10px;
  border-radius: 50px;
  margin-bottom: 0.75rem;
  border: unset;
  pointer-events: none;
}

.blogs-categories a {
  font-size: 0.7rem;
}

.blogs-categories-uitgelicht a {
  border: 1px solid var(--wp--preset--color--accent-1);
  margin: 0;
}

.back-blogs {
  display: flex;
  a {
    font-size: 0.8rem !important;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 12px;
    &::before {
      content: "←";
      margin-right: 8px;
      transition: margin 0.2s;
    }
  }
}

.blog-tags {
  a {
    text-decoration: none;
    font-size: 0.9rem;
  }
}

p.wp-block-post-author__name {
  line-height: 1;
  color: var(--wp--preset--color--accent-5);
  font-weight: 500;
}

p.wp-block-post-author__bio {
  margin: 0;
}

.hero-categories a {
  margin: 0 0.2rem 0.5rem 0;
  font-size: 0.72rem;
}

.hero-badge {
  font-family: var(--wp--preset--font-family--dm-sans);
  line-height: 1.6;
  box-sizing: border-box;
  margin: 0;
  position: absolute;
  top: -16px;
  right: -16px;
  background: var(--wp--preset--color--accent-4);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(26, 138, 90, 0.3);
}

.hero-floating {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.avatar-row {
  display: flex;
}

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--wp--preset--color--accent-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--wp--preset--color--accent-1);
  margin-left: -8px;
  &:first-child {
    margin-left: 0;
  }
}

.pakket {
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  position: relative;
}

.query-blog {
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.pakket:hover,
.query-blog:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.07);
}

.pakket-badge {
  position: absolute;
  top: 0;
  left: 50%;
  translate: -50% -50%;
  white-space: nowrap;
}

.over-mij-cards > div:hover {
  border-color: var(--wp--preset--color--accent-1) !important;
}

.over-mij-badge {
  position: absolute;
  bottom: -2rem;
  right: 0;
}

@media screen and (max-width: 781px) {
  .over-mij-badge {
    position: relative;
  }

  .over-mij > div {
    margin-left: auto !important;
    max-width: var(--wp--style--global--content-size);
  }

  div#webshop {
    flex-direction: column-reverse;
  }
}

.portfolio-card {
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.portfolio-card .entry-content a,
a.wp-block-post-excerpt__more-link {
  font-size: 0.8rem !important;
  font-weight: 700;
  text-decoration: none;
}

.portfolio-card .entry-content a:after,
a.wp-block-post-excerpt__more-link:after {
  content: "→";
  margin-left: 8px;
  transition: margin 0.2s;
}

.portfolio-card .entry-content a:hover:after,
a.wp-block-post-excerpt__more-link:hover:after {
  margin-left: 15px;
}

.portfolio-card figure.wp-block-post-featured-image {
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  overflow: hidden;
}

.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.07);
}

.portfolio-card figure.wp-block-post-featured-image img {
  transition: transform 0.4s;
}

.portfolio-card:hover figure.wp-block-post-featured-image img {
  transform: scale(1.03);
}

html div.wpforms-container-full button.wpforms-submit {
  font-size: 0.95rem;
  width: 100%;
  padding: 0.9rem !important;
  height: unset;
  line-height: normal;
  border: unset;
  transition: all 0.2s;
}

html div.wpforms-container-full button.wpforms-submit:after {
  display: none;
}

html div.wpforms-container-full button.wpforms-submit:hover {
  background: var(--wp--preset--color--accent-1);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(26, 79, 214, 0.2);
}

.green-checklist ::marker {
  color: var(--wp--preset--color--accent-4);
}

details.wp-block-details summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  outline: unset;
  &:after {
    content: "+";
    font-size: 1.1rem;
    transition: transform 0.3s;
    color: var(--wp--preset--color--accent-1);
    flex-shrink: 0;
    font-weight: 600;
  }
}

details.wp-block-details[open] summary:after {
  transform: rotate(45deg);
}

div#category-filters button {
  text-transform: capitalize;
  box-sizing: border-box;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  padding: 0.45rem 1rem;
  border-radius: 50px;
  border: 1.5px solid var(--wp--preset--color--custom-transparent);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--wp--preset--color--base);
  color: var(--wp--preset--color--contrast);
  border-color: var(--wp--preset--color--custom-transparent);
  outline: unset;
}

div#category-filters button.active {
  background: var(--wp--preset--color--contrast);
  color: white;
}

.hover-transition > * {
  transition: transform 0.2s;
}

.hover-transition > *:hover {
  transform: translateY(-4px);
}

.terms-query a {
  text-decoration: none;
  font-size: 0.9rem;
  display: block;
}

.terms-query li {
  margin-block-start: 10px;
}

.terms-query li:last-of-type div {
  border: unset;
}

html div.wpforms-container-full .wpforms-confirmation-container-full {
  background: unset;
  border: unset;
}

div#cmplz-document p, div#cmplz-document a, div#cmplz-document ul, div#cmplz-document li,div#cmplz-document span {
    color: var(--wp--preset--color--contrast);
    font-size: var(--wp--preset--font-size--medium);
}

div#cmplz-document p:first-of-type {
    font-size: var(--wp--preset--font-size--small);
}
div#cmplz-document h2 {
    margin-top: 1em;
    padding-top: 1em;
    border-top: 1px solid var(--wp--preset--color--accent-6);
}