/* WordPress integration layer. The visual system remains the original Webflow CSS. */
html {
  margin-top: 0 !important;
}

body {
  overflow-x: hidden;
}

.w-webflow-badge {
  display: none !important;
  visibility: hidden !important;
}

#wpadminbar {
  display: none !important;
}

/* Keep the contact form visually identical while it is connected to WordPress later. */
.w-form-done,
.w-form-fail {
  margin-top: 16px;
}

.clementien-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Centreer beide titels exact in de banner van de Over mij-pagina. */
.about-hero-section-copy-copy {
  min-height: 554px;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background-image: none;
  background-color: #292929;
}

.about-hero-section-copy-copy::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(#00000080, #00000080), url("/wp-content/themes/clementien-webflow/assets/webflow-media/a276e1305fd8b73f9a1c.png");
  background-position: 0 0, 50%;
  background-repeat: repeat, no-repeat;
  background-size: auto, cover;
  transform: scale(1.06);
  transform-origin: center;
}

.about-hero-section-copy-copy > .main-container {
  height: auto;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

.about-hero-section-copy-copy .about-hero-container {
  margin-top: 0;
  margin-bottom: 0;
}

@media (min-width: 1280px) {
  .about-hero-section-copy-copy {
    min-height: 620px;
  }
}

@media (max-width: 767px) {
  .about-hero-section-copy-copy {
    min-height: 476px;
  }

  /* Webflow gaf het laatste blogblok op 480–767 px een breedte van 150%. */
  .about-section.section-spacing-copy .about-image-copy,
  .about-section.section-spacing-copy .h2-copy,
  .about-section.section-spacing-copy .secondary-btn-copy-copy {
    width: 100%;
    max-width: 100%;
  }

  /* Geef de blogkaarten op kleine schermen dezelfde rustige zijmarges. */
  .clementien-page-blog .about-section.section-spacing > .w-container,
  .clementien-page-blog .about-section.section-spacing-copy > .w-container {
    box-sizing: border-box;
    width: 100%;
    padding-left: 24px;
    padding-right: 24px;
  }

  .clementien-page-blog .about-section .about-container,
  .clementien-page-blog .about-section .about-text-wrapper,
  .clementien-page-blog .about-section .about-image-wrapper,
  .clementien-page-blog .about-section .about-image {
    width: 100%;
    max-width: 100%;
  }

  .clementien-page-blog .about-section h2,
  .clementien-page-blog .about-section p {
    overflow-wrap: anywhere;
  }
}

/* De detailbanner loopt achter de 100px hoge navigatie door. Centreer de
   blogtitel daarom in het daadwerkelijk zichtbare deel van de afbeelding. */
.clementien-page-blog-perfecte-keuken .about-hero-section-copy-copy,
.clementien-page-blog-tijdloos-interieurontwerp .about-hero-section-copy-copy,
.clementien-page-blog-voordelen-interieurontwerp .about-hero-section-copy-copy {
  box-sizing: border-box;
  padding-top: 100px !important;
}

@media (max-width: 767px) {
  .clementien-page-blog-perfecte-keuken .about-hero-section-copy-copy,
  .clementien-page-blog-tijdloos-interieurontwerp .about-hero-section-copy-copy,
  .clementien-page-blog-voordelen-interieurontwerp .about-hero-section-copy-copy {
    padding-top: 50px !important;
  }

  .clementien-page-blog-perfecte-keuken .about-hero-section-copy-copy h1,
  .clementien-page-blog-tijdloos-interieurontwerp .about-hero-section-copy-copy h1,
  .clementien-page-blog-voordelen-interieurontwerp .about-hero-section-copy-copy h1 {
    width: 100%;
    font-size: clamp(2rem, 8vw, 2.5rem);
    line-height: 1.15;
    text-align: center;
    transform: none !important;
  }

  .clementien-page-blog-perfecte-keuken .about-hero-section-copy-copy .about-hero-container,
  .clementien-page-blog-tijdloos-interieurontwerp .about-hero-section-copy-copy .about-hero-container,
  .clementien-page-blog-voordelen-interieurontwerp .about-hero-section-copy-copy .about-hero-container {
    position: relative;
    top: -55px;
  }
}

@media (max-width: 991px) {
  body.clementien-menu-open {
    overflow: hidden;
  }

  .w-nav .w-nav-menu {
    z-index: 1000;
    width: 100vw !important;
    height: 100dvh !important;
    max-height: none !important;
    display: flex !important;
    position: fixed !important;
    inset: 0 !important;
    background: #fff;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    clip-path: circle(0 at calc(100% - 42px) 42px);
    transition:
      clip-path 620ms cubic-bezier(.76, 0, .24, 1),
      opacity 240ms ease,
      visibility 0s linear 620ms;
  }

  .w-nav[data-clementien-open="true"] .w-nav-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    clip-path: circle(150% at calc(100% - 42px) 42px);
    transition:
      clip-path 620ms cubic-bezier(.76, 0, .24, 1),
      opacity 240ms ease,
      visibility 0s;
  }

  .w-nav .clementien-menu-close {
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    display: none;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2001;
    border-radius: 50%;
    background: #171717;
    box-shadow: 0 8px 24px rgb(0 0 0 / 18%);
    cursor: pointer;
  }

  .w-nav[data-clementien-open="true"] .clementien-menu-close {
    display: flex;
  }

  .w-nav[data-clementien-open="true"] .navbar-container .menu-button {
    display: none !important;
  }

  .w-nav .clementien-menu-close span {
    width: 22px;
    height: 2px;
    position: absolute;
    border-radius: 999px;
    background: #fff;
  }

  .w-nav .clementien-menu-close span:first-child {
    transform: rotate(45deg);
  }

  .w-nav .clementien-menu-close span:last-child {
    transform: rotate(-45deg);
  }

  .w-nav .navbar-menu-wrapper {
    width: 100%;
    height: 100%;
    padding: 110px 24px 48px !important;
    align-items: center;
    justify-content: center;
    position: relative;
    background: #fff;
  }

  .w-nav .nav-menu .logo-wrapper.dark {
    width: 110px;
    height: auto;
    display: block;
    position: absolute;
    top: 24px;
    left: 24px;
    margin: 0;
  }

  .w-nav .nav-menu .logo-copy {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(1) brightness(0);
  }

  .w-nav .nav-links-wrapper {
    width: 100%;
    margin: 0;
    gap: 22px;
    align-items: center;
    justify-content: center;
  }

  .w-nav .nav-link.dark {
    margin: 0;
    padding: 6px 12px;
    color: #171717;
    text-align: center;
    font-size: clamp(2rem, 9vw, 3.25rem);
    line-height: 1.08;
    opacity: 0;
    transform: translateY(26px);
    transition:
      opacity 320ms ease,
      transform 520ms cubic-bezier(.22, 1, .36, 1);
  }

  .w-nav[data-clementien-open="true"] .nav-link.dark {
    opacity: 1;
    transform: translateY(0);
  }

  .w-nav[data-clementien-open="true"] .nav-link.dark:nth-child(1) { transition-delay: 180ms; }
  .w-nav[data-clementien-open="true"] .nav-link.dark:nth-child(2) { transition-delay: 240ms; }
  .w-nav[data-clementien-open="true"] .nav-link.dark:nth-child(3) { transition-delay: 300ms; }
  .w-nav[data-clementien-open="true"] .nav-link.dark:nth-child(4) { transition-delay: 360ms; }

  .w-nav .navbar-container {
    position: relative;
    z-index: 1001;
  }

  .w-nav .menu-button {
    z-index: 1002;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    transition: background-color 260ms ease, transform 260ms ease;
  }

  .w-nav .menu-button::before,
  .w-nav .menu-button::after {
    content: "";
    width: 22px;
    height: 2px;
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 999px;
    background: #fff;
    opacity: 0;
    transition: transform 360ms cubic-bezier(.22, 1, .36, 1), opacity 180ms ease;
  }

  .w-nav[data-clementien-open="true"] .menu-button {
    display: flex !important;
    position: fixed !important;
    top: 20px;
    right: 20px;
    z-index: 2147483647;
    background: #171717;
    box-shadow: 0 8px 24px rgb(0 0 0 / 18%);
  }

  .w-nav[data-clementien-open="true"] .menu-button .menu-icon {
    opacity: 0;
  }

  .w-nav[data-clementien-open="true"] .menu-button::before {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .w-nav[data-clementien-open="true"] .menu-button::after {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  .w-nav[data-clementien-open="true"] .navbar-container > .logo-wrapper.for-mobile-nav {
    opacity: 0;
    pointer-events: none;
  }

  @media (prefers-reduced-motion: reduce) {
    .w-nav .w-nav-menu,
    .w-nav .nav-link.dark,
    .w-nav .menu-button,
    .w-nav .menu-button::before,
    .w-nav .menu-button::after {
      transition-duration: 1ms !important;
      transition-delay: 0ms !important;
    }
  }
}
