/* ============================================================
   ISATIS — Site Footer (Theme Builder template)
   ============================================================ */

@import url('./globals.css');

.site-footer {
  background: var(--e-global-color-text);
  color: rgba(255,255,255,0.78);
  padding: var(--section-pad-y) 0 32px;
  margin: 20px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}
.site-footer__bg-logo {
  position: absolute; bottom: -80px; left: -80px;
  width: 480px; height: 480px;
  color: #fff; opacity: 0.04;
  pointer-events: none;
}
.site-footer__bg-logo svg { width: 100%; height: 100%; }
.site-footer a { color: inherit; text-decoration: none; transition: text-decoration-color .2s ease; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; }
.site-footer a:hover { text-decoration-color: rgba(255,255,255,0.6); }

.site-footer__inner {
  max-width: 1400px; margin: 0 auto; padding: 0 var(--gutter);
  display: flex; justify-content: space-between; align-items: flex-start; gap: clamp(32px, 4vw, 48px);
}
.site-footer__brand { flex: 1; }
.site-footer__nav-group {
  display: flex; gap: 70px; flex-shrink: 0;
}
.site-footer__col { flex-shrink: 0; }

/* Tablet: stack brand above nav, nav columns 4 -> 2 */
@media (max-width: 1024px) {
  .site-footer__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 40px;
    padding: 0 var(--gutter);
  }
  .site-footer__nav-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px clamp(32px, 5vw, 48px);
  }
  .site-footer__col { flex: 1 1 auto; min-width: 0; }
  .site-footer__brand { max-width: none; }
}

/* Phone: full single-column stack, reduced spacing */
@media (max-width: 640px) {
  .site-footer {
    padding: var(--section-pad-y) 0 28px;
    margin: 12px;
    border-radius: 16px;
  }
  .site-footer__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
    padding: 0 var(--gutter);
  }
  .site-footer__nav-group {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .site-footer__col { flex: 1 1 auto; }
  .site-footer__bg-logo {
    width: 280px; height: 280px;
    bottom: -50px; left: -50px;
  }
  .site-footer__locations { grid-template-columns: 1fr; }
  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-top: 40px;
    padding: 24px var(--gutter) 0;
  }
}

.site-footer__brand { display: flex; flex-direction: column; gap: 16px; max-width: 340px; }
.site-footer__logo { height: 28px; width: auto; filter: brightness(0) invert(1); }
.site-footer__tag {
  font-family: 'JetBrains Mono', monospace; font-weight: 500; font-size: 14px;
  color: #fff; margin: 0;
}
.site-footer__lead {
  font-family: 'Inter', sans-serif; font-size: 14px; line-height: 1.6;
  margin: 0; color: rgba(255,255,255,0.6);
}

.site-footer__col h4 {
  font-family: 'JetBrains Mono', monospace; font-weight: 500; font-size: 12px;
  letter-spacing: 0.1em; text-transform: uppercase;
  margin: 0 0 20px;
}
.site-footer__col:nth-child(1) h4 { color: var(--e-global-color-primary); }
.site-footer__col:nth-child(2) h4 { color: var(--e-global-color-secondary); }
.site-footer__col:nth-child(3) h4 { color: var(--e-global-color-accent); }
.site-footer__col:nth-child(4) h4 { color: var(--e-global-color-alert); }
.site-footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer__col li { font-family: 'Inter', sans-serif; font-size: 14px; }

.site-footer__locations { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 8px; }
.site-footer__location { display: flex; flex-direction: column; gap: 6px; }
.site-footer__location strong {
  font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 13px;
  color: #fff; letter-spacing: 0.04em; text-transform: uppercase;
}
.site-footer__location span { font-size: 13px; line-height: 1.5; }

/* Bottom bar */
.site-footer__bottom {
  max-width: 1400px; margin: 56px auto 0; padding: 24px var(--gutter) 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  flex-wrap: wrap;
}
.site-footer__copy { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: rgba(255,255,255,0.5); margin: 0; }
.site-footer__social { display: flex; gap: 12px; }
.site-footer__social a {
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06); transition: background .2s, transform .2s;
}
.site-footer__social a:hover { background: var(--e-global-color-primary); transform: translateY(-2px); }
.site-footer__social svg { width: 16px; height: 16px; }

/* Touch devices: ensure >= 44px tap targets for social icons (keeps 36px circle visual) */
@media (hover: none) and (pointer: coarse) {
  .site-footer__social a { width: 44px; height: 44px; }
  .site-footer__social svg { width: 18px; height: 18px; }
}

/* Telefoon: socials boven de locaties. De kopie in de brand-kolom is alleen
   op telefoon zichtbaar; de originele in de bottom-bar verdwijnt daar. */
.site-footer__social--in-brand { display: none; }
@media (max-width: 640px) {
  .site-footer__social--in-brand { display: flex; }
  .site-footer__bottom .site-footer__social { display: none; }
}
