/* Production UI/UX audit remediation — 2026-08-06 */
.whatsapp-fab {
  border: 2px solid #fff !important;
  border-radius: 999px !important;
  background: #25d366 !important;
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(18, 98, 52, 0.3) !important;
}

.whatsapp-fab:hover {
  background: #20bd5c !important;
  box-shadow: 0 12px 28px rgba(18, 98, 52, 0.38) !important;
}

.whatsapp-fab:focus-visible {
  outline: 3px solid #1a1a17 !important;
  outline-offset: 4px;
}

/* Header: the supplied square logo contains a large amount of transparent space.
   Crop it to the R&H mark instead of shrinking the whole image into a 48px tile. */
header .brand-logo {
  position: relative;
  width: 3.25rem;
  height: 3.25rem;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #1a1a17;
}

header .brand-logo img {
  position: absolute;
  top: -1.25rem;
  left: -1.5rem;
  width: 6.25rem;
  height: 6.25rem;
  max-width: none;
}

header .brand-text {
  display: inline-block;
  color: #1a1a17;
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-toggle {
  border: 1px solid #1a1a17 !important;
  border-radius: 0 !important;
  background: #1a1a17 !important;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  background: #f5f1e9 !important;
}

.nav-toggle:focus-visible {
  outline: 3px solid #b8814e;
  outline-offset: 3px;
}

/* A project must fill the viewport exactly: never expose the adjacent slide. */
#portfolioHomeGrid.project-slider {
  overflow: hidden !important;
  isolation: isolate;
}

#portfolioHomeGrid.project-slider .project-slider__track {
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  gap: 0 !important;
}

#portfolioHomeGrid.project-slider .project-slider__track > .portfolio-project-card {
  width: 100%;
  min-width: 100%;
  max-width: 100%;
}

@media (max-width: 899px) {
  /* Slightly wider visual stage on small phones, while controls stay aligned
     with the main page grid. */
  #projecten #portfolioHomeGrid.project-slider {
    width: calc(100% + 1rem);
    margin-inline: -0.5rem;
  }

  #projecten #portfolioHomeGrid.project-slider .portfolio-project-card-body {
    padding-inline: 0.5rem;
  }

  #projecten #portfolioHomeGrid.project-slider .portfolio-project-title {
    font-size: clamp(2.15rem, 10.8vw, 3.15rem) !important;
    line-height: 0.94;
  }
}

/* Contact details: strong labels were inheriting dark body text on the dark panel. */
#contact .contact-info-list li,
#contact .contact-info-list li strong {
  color: #f7f3eb !important;
}

#contact .contact-info-list li strong {
  color: #e6c19a !important;
  font-weight: 700;
}

#contact .contact-info-list a {
  color: #fff !important;
  text-decoration-color: #e6c19a;
  text-underline-offset: 0.2em;
}

@media (max-width: 899px) {
  .btn,
  .card-footer-link,
  .portfolio-tag-pill {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .nav-toggle {
    width: 44px;
    height: 44px;
  }

  header .brand-logo {
    width: 3rem;
    height: 3rem;
  }

  header .brand-text {
    font-size: 1rem;
  }

  #contact input,
  #contact select,
  #contact textarea,
  #contact button[type="submit"] {
    min-height: 44px;
  }

  .rh-footer__contact a,
  .rh-footer__nav a,
  .rh-footer__project-link,
  .rh-maker-trigger {
    min-height: 44px;
    padding-block: 0.5rem;
  }

  .rh-footer__contact a:first-of-type,
  .rh-footer__contact a:nth-of-type(2) {
    font-size: 1.25rem;
  }
}
