/* ==========================================================================
   van der Ploeg Schilderwerken
   ========================================================================== */

@font-face {
  font-family: "Lithos Pro";
  src: url("../fonts/lithos-pro-regular.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@supports (height: 100lvh) {
  :root { --screen-height: 100lvh; }
}

:root {
  --purple: #72246c;
  --purple-dark: #4e184a;
  --white: #ffffff;
  --text: #1f1f1f;
  --review-bg: #f4f4f4;

  --font-heading: "Lithos Pro", "Lithos Pro Regular", Georgia, serif;
  --font-body: Helvetica, "Helvetica Neue", Arial, sans-serif;
  --font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --header-height: 134px;
  --banner-height: 25vw;
  /* Hoogte van het scherm; lvh = ook als de adresbalk op mobiel inklapt. */
  --screen-height: 100vh;
  --side: 41px;

  /* Content max. 1400px breed, gecentreerd, met gelijke witruimte links/rechts */
  --content-width: 1400px;
  --gutter: 40px;
  --pad-x: max(var(--gutter), calc((100% - var(--content-width)) / 2));

  /* Bewegingscurves: lijken op een veer zonder doorschieten (Apple "damping 1.0") */
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-press: cubic-bezier(0.2, 0, 0, 1);

  /* Afgeronde hoeken van de foto's */
  --radius: 16px;

  /* Zachte schaduw onder de foto's (twee lagen: dichtbij + verder weg) */
  --shadow: 0 2px 6px rgba(0, 0, 0, 0.12), 0 14px 30px -10px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 4px 10px rgba(0, 0, 0, 0.14), 0 24px 44px -12px rgba(0, 0, 0, 0.42);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  -webkit-tap-highlight-color: transparent;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
}

p {
  margin: 0;
  text-wrap: pretty; /* geen losse woordjes op de laatste regel */
}

/* Duidelijke focusrand bij navigeren met het toetsenbord */
:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
  border-radius: 2px;
}

.intro :focus-visible,
.services :focus-visible,
.contact :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--white);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--purple);
  color: var(--white);
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

.section-title {
  font-size: 45px;
  text-align: center;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  transition: box-shadow 0.4s var(--ease-spring), background-color 0.4s var(--ease-spring);
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header {
    background: rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
  }
}

/* Zachte schaduw i.p.v. een harde lijn, alleen zodra er content onder schuift */
.site-header.is-scrolled {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 8px 24px -12px rgba(0, 0, 0, 0.18);
}

.site-header__inner {
  display: flex;
  align-items: center;
  width: min(var(--content-width), 100% - 2 * var(--gutter));
  height: var(--header-height);
  margin: 0 auto;
}

.site-header__logo img {
  width: 154px;
  height: auto;
}

.main-nav {
  margin-left: auto;
}

.main-nav__list {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav__list a {
  display: block;
  padding: 10px 12px;
  color: var(--purple);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: opacity 0.2s var(--ease-press), transform 0.1s var(--ease-press);
}

.main-nav__list a:active {
  opacity: 0.55;
  transform: scale(0.97);
}

.main-nav__list li:last-child a {
  padding-right: 0;
}

.main-nav__list a:hover {
  opacity: 0.7;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 13px;
}

.site-header .social-links {
  margin-left: 30px;
}

.social-links a {
  display: flex;
  color: var(--purple);
  transition: opacity 0.2s var(--ease-press), transform 0.1s var(--ease-press);
}

.social-links a:active {
  transform: scale(0.9);
}

.social-links a:hover {
  opacity: 0.7;
}

.social-links svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ==========================================================================
   Banner
   ========================================================================== */

.banner img {
  width: 100%;
  height: var(--banner-height);
  object-fit: cover;
}

/* ==========================================================================
   Intro (hero)
   ========================================================================== */

/* Bovenaan veel paarse ruimte (zoals het origineel), zodat foto en tekst
   pas in beeld komen als je gaat scrollen. */
.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
  overflow: hidden; /* foto schuift van rechts in beeld */
  /* Bovenkant: precies genoeg paars om tekst en foto net onder de rand te houden */
  padding: max(80px, calc(var(--screen-height) - var(--header-height) - var(--banner-height) + 40px)) var(--pad-x) 96px;
  background: var(--purple);
  color: var(--white);
}

.intro__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.intro__title {
  font-size: 40px;
}

.intro__text {
  font-size: 18px;
  line-height: 1.65;
}

.intro__image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ==========================================================================
   Over mij
   ========================================================================== */

.about {
  display: grid;
  grid-template-columns: 643fr 522fr;
  gap: 82px;
  align-items: center;
  padding: 60px var(--pad-x);
}

.about__collage {
  display: grid;
  grid-template-columns: 294fr 330fr;
  column-gap: 19px;
  align-items: start;
}

.about__col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about__col--left {
  align-items: flex-end;
  padding-top: 21px;
}

.about__col--right {
  align-items: flex-start;
  gap: 23px;
}

.about__col--left .about__img--small { width: 64.6%; }
.about__col--right .about__img--small { width: 57.6%; }
.about__img--large { width: 100%; }

.about__collage img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about__title {
  color: var(--purple);
  text-align: left;
  margin-bottom: 18px;
}

.about__text {
  padding-right: 18%;
  font-size: 16px;
  line-height: 1.5;
}

/* ==========================================================================
   Diensten
   ========================================================================== */

.services {
  padding: 4% var(--pad-x);
  background: var(--purple);
  color: var(--white);
}

.services__title {
  margin-bottom: 4vw;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.service-card__image {
  display: block;
}

.service-card__image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.5s var(--ease-spring), box-shadow 0.5s var(--ease-spring);
}

@media (hover: hover) {
  .service-card:hover .service-card__image img {
    transform: scale(1.1);
    box-shadow: var(--shadow-hover);
  }
}

.service-card__title {
  margin: 15px 0;
  font-size: 22px;
  text-transform: capitalize;
  position: relative;
  z-index: 1;
}

.service-card__text {
  font-size: 16px;
  line-height: 1.5;
}

/* ==========================================================================
   Reviews
   ========================================================================== */

.reviews {
  padding: 4% var(--pad-x);
}

.reviews__title {
  color: var(--purple);
  margin-bottom: 70px;
}

/* Pijltjes op de contentlijn (gelijk met logo en iconen), kaarten ertussen */
.reviews__carousel {
  position: relative;
  padding: 0 47px;
  font-family: var(--font-system);
  font-weight: 400;
}

.reviews__track {
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.reviews__track::-webkit-scrollbar {
  display: none;
}

.review-card {
  position: relative;
  flex: 0 0 calc((100% - 3 * 16px) / 4);
  padding: 14px 14px 20px;
  background: var(--review-bg);
  border-radius: var(--radius);
  scroll-snap-align: start;
}

.review-card__google {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 16px;
  height: 16px;
}

.review-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 20px;
}

.review-card__avatar {
  flex: 0 0 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  color: var(--white);
  font-size: 22px;
  line-height: 1;
}

.review-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-card__meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.review-card__name {
  color: #154fc1;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.4;
}

.review-card__date {
  color: #555;
  font-size: 13px;
  line-height: 1.6;
}

.review-card__stars {
  display: flex;
  gap: 3px;
  margin: 10px 0 9px;
}

.review-card__stars svg {
  width: 17px;
  height: 17px;
  fill: #fb8e28;
}

.review-card__stars svg.is-empty {
  fill: #ccc;
}

a.review-card__name:hover {
  text-decoration: underline;
}

/* Hele reviewtekst zichtbaar, zonder scrollen */
.review-card__text {
  color: #222;
  font-size: 15px;
  line-height: 22px;
}

.reviews__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  color: var(--white);
  cursor: pointer;
  transform: translateY(-50%);
  transition: transform 0.1s var(--ease-press), box-shadow 0.2s var(--ease-spring), background-color 0.2s var(--ease-spring);
}

.reviews__nav:hover {
  background: var(--purple-dark);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.reviews__nav:active {
  transform: translateY(-50%) scale(0.9);
}

.reviews__nav svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.reviews__nav--prev { left: 0; }
.reviews__nav--next { right: 0; }

/* ==========================================================================
   Contact
   ========================================================================== */

.contact {
  padding: 4% var(--pad-x);
  background: var(--purple);
  color: var(--white);
}

.contact__title {
  font-weight: 200;
  margin-bottom: 50px;
}

.contact__grid {
  display: flex;
  justify-content: space-between;
}

.contact-item {
  width: 300px;
  text-align: center;
}

.contact-item__icon {
  display: block;
  width: 45px;
  height: 45px;
  margin: 0 auto 20px;
  fill: var(--white);
  transition: transform 0.4s var(--ease-spring);
}

@media (hover: hover) {
  .contact-item a:hover .contact-item__icon {
    transform: scale(1.08);
  }
}

.contact-item a:active .contact-item__icon {
  transform: scale(0.94);
  transition-duration: 0.1s;
}

.contact-item__title {
  margin-bottom: 10px;
  font-size: 22px;
  text-transform: capitalize;
}

.contact-item__title a,
.contact-item__value a {
  color: inherit;
}

.contact-item__value {
  font-size: 16px;
  line-height: 1.5;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--purple-dark);
  color: rgba(255, 255, 255, 0.9);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(var(--content-width), 100% - 2 * var(--gutter));
  margin: 0 auto;
  padding: 26px 0;
  font-size: 14px;
}

.site-footer .social-links a {
  color: var(--white);
}

/* Separator between the legal parts, only between them (not before the first) */
.site-footer__legal > span + span::before {
  content: " | ";
}

/* ==========================================================================
   Entrance animations (only when JS is available)
   ========================================================================== */

.js [data-animate] {
  opacity: 0;
  transition: opacity 0.9s var(--ease-spring), transform 1.1s var(--ease-spring);
}

.js [data-animate="fade-up"] { transform: translateY(24px); }
.js [data-animate="slide-right"] { transform: translateX(48px); }
.js [data-animate="slide-up"] { transform: translateY(40px); }

.js [data-animate].is-visible {
  opacity: 1;
  transform: none;
}

/* Wie minder beweging wil, krijgt alleen een rustige vervaging */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .js [data-animate] {
    transform: none !important;
    transition: opacity 0.4s ease;
  }

  *,
  *::before,
  *::after {
    transition-property: opacity, background-color, box-shadow !important;
  }
}

/* Wie minder doorzichtigheid wil, krijgt gewone effen vlakken */
@media (prefers-reduced-transparency: reduce) {
  .site-header { background: var(--white); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {
  .review-card { flex-basis: calc((100% - 2 * 16px) / 3); }
}

@media (max-width: 1024px) {
  :root { --header-height: 100px; }

  .site-header__logo img { width: 112px; }

  .intro {
    grid-template-columns: 1fr;
    gap: 48px;
    justify-items: center;
    padding: calc(var(--screen-height) - var(--header-height) - var(--banner-height) + 40px) var(--pad-x) 64px;
    text-align: center;
  }

  .intro__content { width: 100%; }
  .intro__text { font-size: 16px; }
  .intro__image { width: 100%; max-width: 560px; }

  .about {
    grid-template-columns: 1fr;
    gap: 50px;
    padding: 5% var(--pad-x);
    text-align: center;
  }

  .about__text { padding-right: 0; }

  .about__content { order: -1; }
  .about__title { text-align: center; }
  .about__collage { max-width: 643px; margin: 0 auto; width: 100%; }

  .services__grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }

  .contact__grid { flex-direction: column; align-items: center; gap: 40px; }
}

@media (max-width: 1000px) {
  .review-card { flex-basis: calc((100% - 16px) / 2); }
}

@media (max-width: 750px) {
  .review-card { flex-basis: 100%; }
}

@media (max-width: 767px) {
  /* 30px ruimte aan de zijkanten op een telefoon */
  :root { --gutter: 30px; }

  /* Op mobiel geen menu (het is één pagina), wel Facebook/Instagram rechts */
  .main-nav { display: none; }
  .site-header .social-links { margin-left: auto; gap: 16px; }
  .site-header .social-links svg { width: 22px; height: 22px; }

  .section-title,
  .intro__title { font-size: 28px; line-height: 1.1; }
  .intro__text { font-size: 14px; }
  .service-card__title,
  .contact-item__title { font-size: 18px; }

  .intro { padding: 40px var(--pad-x); }
  .about { padding: 60px var(--pad-x); }

  .services { padding: 60px var(--pad-x); }
  .services__title { margin-bottom: 50px; }
  .services__grid { grid-template-columns: 1fr; }

  .reviews { padding: 50px var(--pad-x); }
  .reviews__title { margin-bottom: 40px; }
  /* Kaart over de volle breedte, pijltjes eronder in het midden */
  .reviews__carousel { padding: 0 0 52px; }
  .reviews__nav {
    top: auto;
    bottom: 0;
    transform: none;
  }
  .reviews__nav:active { transform: scale(0.9); }
  .reviews__nav--prev { left: calc(50% - 41px); }
  .reviews__nav--next { right: calc(50% - 41px); }
  .review-card { padding: 16px; }

  .contact { padding: 55px var(--pad-x) 60px; }

  .site-footer__inner {
    flex-direction: column;
    text-align: center;
  }

  /* Mobile: each legal part on its own line, without separators */
  .site-footer__legal > span {
    display: block;
  }
  .site-footer__legal > span + span::before {
    content: none;
  }
}
