/* ===== Page layout: footer altijd onderaan ===== */

.page {
  display: flex;
  flex-direction: column;
}
.site-footer { margin-top: auto; }

/* ===== FOOTER basis ===== */
.site-footer{
  position: relative;
  width: 100%;
  color: #0e1116;
  background: #fff;
  overflow: visible;
  --footer-gradient-height: 220px;
}

/* Gradient/blur laag bovenin (desktop) */
.site-footer::before,
.site-footer::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:0;
}

.site-footer::before{
  height: var(--footer-gradient-height);
  background: linear-gradient(90deg, #1c7cbc 0%, #ffffff 60%);
}
.site-footer::after{
  height: var(--footer-gradient-height);
  background: rgba(255,255,255,.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ===== Inhoud in 3 kolommen ===== */
.footer-info{
  position: relative;
  z-index: 1;
  width: min(1200px, 90%);
  margin: 0 auto;
  padding: 32px 0 24px;
  display: grid;
  grid-template-columns: auto 1fr auto; /* logo | nav | contact */
  gap: 24px 32px;
  align-items: start;
}

.footer-info img{
  height: 60px;
  width: auto;
  object-fit: contain;
}

/* ===== Navigatie ===== */
.footer-nav{
  display: grid;
  align-content: start;
  gap: 14px;
}

.footer-links{
  list-style: none;
  margin: 0;                 /* fix: was 'margin:10' */
  padding: 0;
  display: grid;
  gap: 8px 20px;
}

.footer-links--primary{
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  font-weight: 600;
  font-size: 1rem;
}

.footer-links--legal{
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  opacity: .9;
  font-size: .95rem;
}

.footer-links a{
  text-decoration: none;
  color: #000;
  white-space: nowrap;
  outline-offset: 2px;
}
.footer-links a:hover,
.footer-links a:focus-visible{ color: #1c7cbc; }
.footer-links a[aria-current="page"]{ color: #1c7cbc; }

/* ===== Contact ===== */
.contact-footer{
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 220px;
  text-align: right;
}
.contact-footer a{
  color: inherit;
  text-decoration: none;
}
.contact-footer a:hover,
.contact-footer a:focus-visible{
  color: #1c7cbc; text-decoration: underline;
}

/* ===== Legal bar ===== */
.legal-bar{
  position: relative;
  z-index: 1;
  border-top: 1px solid #eaecef;
  padding: 12px 0;
  margin-top: 8px;
}
.legal-bar small{
  display: block;
  width: min(1200px, 90%);
  margin: 0 auto;
  color: #4b5563;
}

/* ===== Responsief ===== */
@media (max-width: 900px){
  .footer-info{
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 16px 0;
  }
  .contact-footer{ text-align: center; min-width: 0; }
  .footer-links--primary,
  .footer-links--legal{
    grid-template-columns: 1fr; /* onder elkaar */
  }

  /* Mobiel: laat de blauwe gloed OVER DE HELE FOOTER lopen,
     zodat die niet 'stopt na 4 items' */
  .site-footer::before,
  .site-footer::after{
    height: 100%;
    background: linear-gradient(180deg, #1c7cbc 0%, #ffffff 60%);
  }
  .footer-nav{
    margin-bottom: 0px;
  }
}

@media (max-width: 600px){
  .footer-links a{ font-size: 1rem; }
}
