/* =============================================
   WAAROM KIEZEN VOOR AL ASMAR SCHILDERWERK?
   Dark section reusing the established design tokens.
============================================= */

.why {
  position: relative;
  background-color: #0D0D0D;
  padding: 70px 0;
  overflow: hidden;
  isolation: isolate;
}

/* Very subtle wall/paint texture on the dark background */
.why::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: repeating-linear-gradient(
    100deg,
    rgba(245, 241, 232, 0.015) 0,
    rgba(245, 241, 232, 0.015) 1px,
    transparent 1px,
    transparent 24px
  );
  opacity: 0.7;
}

.why__inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* ---------- LEFT: TEXT ---------- */
.why__text {
  display: flex;
  flex-direction: column;
}

.why__eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 16px;
}

.why__heading {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.3px;
  margin-bottom: 20px;
}

.why__heading-white {
  color: var(--color-offwhite);
}

.why__heading-gold {
  color: var(--color-gold);
  display: inline-block;
  margin: 0 0.28em;
}

.why__desc {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  color: #BDB9B1;
  max-width: 600px;
  margin-bottom: 40px;
}

/* ---------- 4 REASONS ---------- */
.why__reasons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 20px;
}

.why-reason {
  position: relative;
  padding-left: 2px;
}

.why-reason__icon {
  margin-bottom: 12px;
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.why-reason:hover .why-reason__icon {
  transform: scale(1.04);
  filter: drop-shadow(0 0 6px rgba(214, 168, 75, 0.35));
}

.why-reason__title {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 6px;
}

.why-reason__desc {
  font-size: 14px;
  line-height: 1.6;
  color: #BDB9B1;
}

/* ---------- RIGHT: VISUAL ---------- */
.why__visual {
  position: relative;
}

.why__visual-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(214, 168, 75, 0.08), transparent 65%);
  z-index: -1;
  pointer-events: none;
}

.why__image-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(214, 168, 75, 0.45);
}

.why__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ---------- FLOATING TRUST/STAT CARDS ---------- */
.why-stat {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  max-width: 190px;
  transition: transform var(--transition-fast);
}

.why-stat:hover {
  transform: translateY(-3px);
}

.why-stat__icon {
  margin-bottom: 6px;
}

.why-stat__value {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 30px;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: 4px;
}

.why-stat__label {
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 6px;
}

.why-stat__desc {
  font-size: 12px;
  line-height: 1.5;
}

.why-stat--light {
  background-color: #F5F1E8;
  box-shadow: var(--shadow-soft);
}

.why-stat--light .why-stat__label {
  color: #111111;
}

.why-stat--light .why-stat__desc {
  color: #6B6862;
}

.why-stat--dark {
  background-color: #151515;
  border: 1px solid rgba(214, 168, 75, 0.35);
  box-shadow: var(--shadow-soft);
}

.why-stat--dark .why-stat__label {
  color: var(--color-offwhite);
}

.why-stat--dark .why-stat__desc {
  color: #BDB9B1;
}

.why-stat--top {
  top: -18px;
  right: -12px;
}

.why-stat--bottom {
  bottom: -18px;
  left: -12px;
}

/* ---------- ANIMATIONS ---------- */
.fade-up-why {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.why__visual.fade-up-why {
  transform: translateY(0) scale(0.98);
}

.why.is-visible .why__eyebrow {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0s;
}

.why.is-visible .why__heading {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.08s;
}

.why.is-visible .why__desc {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.16s;
}

.why.is-visible .why-reason:nth-child(1) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.24s;
}
.why.is-visible .why-reason:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.32s;
}
.why.is-visible .why-reason:nth-child(3) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}
.why.is-visible .why-reason:nth-child(4) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.48s;
}

.why.is-visible .why__visual {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 0.2s;
}

@media (prefers-reduced-motion: reduce) {
  .fade-up-why {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* =============================================
   TABLET (768px – 1199px)
============================================= */
@media (min-width: 768px) {
  .why {
    padding: 90px 0;
  }

  .why__inner {
    flex-direction: row;
    align-items: center;
    gap: 50px;
  }

  .why__text {
    flex: 0 0 55%;
    max-width: 55%;
  }

  .why__visual {
    flex: 0 0 45%;
    max-width: 45%;
  }

  .why-stat {
    max-width: 160px;
    padding: 14px 16px;
  }

  .why-stat__value {
    font-size: 24px;
  }
}

/* =============================================
   DESKTOP (1200px and above)
============================================= */
@media (min-width: 1200px) {
  .why {
    padding: 120px 0;
  }

  .why__inner {
    gap: 80px;
  }

  .why__text {
    flex: 0 0 53%;
    max-width: 53%;
  }

  .why__visual {
    flex: 0 0 47%;
    max-width: 47%;
  }

  .why__reasons {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }

  .why-reason {
    padding: 0 22px;
  }

  .why-reason:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 4px;
    bottom: 4px;
    right: 0;
    width: 1px;
    background-color: rgba(214, 168, 75, 0.15);
  }

  .why-stat {
    max-width: 190px;
    padding: 18px 20px;
  }

  .why-stat__value {
    font-size: 30px;
  }
}

/* =============================================
   MOBILE (below 768px)
============================================= */
@media (max-width: 767px) {
  .why__inner {
    gap: 40px;
  }

  /* Reorder: eyebrow, heading, desc, image, stats, reasons */
  .why__text {
    display: contents;
  }

  .why__eyebrow {
    order: 1;
  }

  .why__heading {
    order: 2;
  }

  .why__desc {
    order: 3;
  }

  .why__visual {
    order: 4;
    position: relative;
  }

  .why__reasons {
    order: 6;
    grid-template-columns: 1fr 1fr;
  }

  /* Keep the two stat cards floating over the image corners on mobile
     too (matching desktop), just smaller and clamped so they never
     push past the viewport edges or cause horizontal scrolling. */
  .why__stats-row {
    order: 5;
  }

  .why-stat {
    max-width: 58%;
    padding: 12px 14px;
  }

  .why-stat--top {
    top: -14px;
    right: -6px;
  }

  .why-stat--bottom {
    bottom: -14px;
    left: -6px;
  }

  .why-stat__value {
    font-size: 22px;
  }

  .why-stat__label {
    font-size: 12.5px;
  }

  .why-stat__desc {
    font-size: 11px;
  }
}

/* =============================================
   SMALL MOBILE (below 480px)
============================================= */
@media (max-width: 479px) {
  .why {
    padding: 60px 0;
  }

  .why__reasons {
    grid-template-columns: 1fr 1fr;
    gap: 24px 16px;
  }

  .why-stat {
    max-width: 62%;
    padding: 10px 12px;
  }

  .why-stat--top {
    top: -10px;
    right: -4px;
  }

  .why-stat--bottom {
    bottom: -10px;
    left: -4px;
  }

  .why-stat__icon {
    width: 16px;
    height: 16px;
  }

  .why-stat__value {
    font-size: 19px;
  }

  .why-stat__label {
    font-size: 11.5px;
  }

  .why-stat__desc {
    font-size: 10px;
    line-height: 1.4;
  }
}

@media (max-width: 399px) {
  .why__reasons {
    grid-template-columns: 1fr;
  }
}
