/* ============================================================
   VirtueleWereld — Footer, Showreel FAB & Lightbox
   ============================================================ */

/* ---- Site footer ---- */

.site-footer {
  background: var(--color-bg);
  padding: var(--space-sm) var(--space-sm) var(--space-lg);
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .site-footer { padding: var(--space-2xl) var(--space-lg) var(--space-lg); }
}

.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px 128px;
  opacity: 0.06;
  pointer-events: none;
}

.site-footer__inner {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  position: relative;
}

/* ---- Zone 0: afsluitende CTA ---- */

.site-footer__cta {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--color-border);
}

.site-footer__cta-icon {
  width: clamp(3rem, 6vw, 5rem);
  height: auto;
  object-fit: contain;
  opacity: 0.95;
}

.site-footer__cta-heading {
  font-family: var(--font-sans);
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  font-weight: var(--fw-regular);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--color-text);
  max-width: 20ch;
}

.site-footer__cta-heading em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: var(--fw-regular);
}

.site-footer__cta-btn {
  opacity: 1;
  animation: none;
  margin-top: var(--space-xs);
}

/* ---- Zone 1: navigatiegrid ---- */

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--color-border);
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
  }
}

@media (min-width: 1024px) {
  .site-footer__grid {
    grid-template-columns: repeat(3, 1fr) minmax(0, 9rem);
  }
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.site-footer__label {
  display: block;
  font-size: 0.65rem;
  font-weight: var(--fw-regular);
  color: var(--color-text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.15em;
}

.site-footer__links a {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: clamp(1.2rem, 2vw, 1.75rem);
  font-weight: var(--fw-regular);
  letter-spacing: -0.02em;
  color: var(--color-text);
  line-height: 1.4;
  position: relative;
  transition: color 0.2s ease;
}

.site-footer__links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.4s var(--ease-out-expo);
}

.site-footer__links a:hover::after {
  width: 100%;
}

.site-footer__links a:hover {
  color: var(--color-text);
}

/* Social column */

.site-footer__social {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.site-footer__social-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-full);
  border: 2px solid var(--color-accent);
  color: var(--color-text);
  overflow: hidden;
  transition: color 0.4s var(--ease-out-expo);
  flex-shrink: 0;
}

.site-footer__social-link::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  transform: translate(-50%, -50%);
  transition: width 0.5s var(--ease-out-expo), height 0.5s var(--ease-out-expo);
}

.site-footer__social-link:hover::before {
  width: 160%;
  height: 160%;
}

.site-footer__social-link:hover {
  color: var(--color-bg);
}

.site-footer__social-link svg {
  position: relative;
  z-index: 1;
}

/* Contact column */

.site-footer__col--contact {
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .site-footer__col--contact {
    grid-column: span 2;
  }
}

@media (min-width: 1024px) {
  .site-footer__col--contact {
    grid-column: auto;
  }
}

.site-footer__contact {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-family: var(--font-sans);
  font-size: clamp(0.8rem, 1.1vw, 0.92rem);
  font-weight: var(--fw-light);
  color: var(--color-text-dim);
  line-height: 1.6;
}

.site-footer__contact strong {
  font-weight: var(--fw-bold);
  color: var(--color-text);
  font-size: clamp(0.85rem, 1.2vw, 1rem);
}

.site-footer__contact a {
  display: inline-block;
  position: relative;
  color: var(--color-text-dim);
  transition: color 0.2s ease;
}

.site-footer__contact a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width 0.4s var(--ease-out-expo);
}

.site-footer__contact a:hover::after {
  width: 100%;
}

.site-footer__contact a:hover {
  color: var(--color-accent);
}

.site-footer__contact-legal {
  color: var(--color-text-muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

/* ---- Zone 2: meta rij (legal + showreel) ---- */

.site-footer__meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
}

.site-footer__legal a {
  font-size: 0.72rem;
  font-weight: var(--fw-light);
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.site-footer__legal a:hover {
  color: var(--color-accent);
}

/* ---- Floating showreel FAB (fixed, verschijnt na hero) ---- */

.showreel-fab {
  display: block;
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 800;
  width: clamp(9rem, 18vw, 14rem);
  opacity: 0;
  transform: translateY(1rem);
  transition:
    opacity 0.45s var(--ease-out-expo),
    transform 0.45s var(--ease-out-expo);
  pointer-events: none;
}

.showreel-fab.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.showreel-fab.is-dismissed {
  display: none;
}

.showreel-fab__trigger {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  border: none;
  padding: 0;
  background: var(--color-bg-feature);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: box-shadow 0.3s ease;
}

.showreel-fab__trigger img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out-expo);
}

.showreel-fab__trigger::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
  pointer-events: none;
  transition: background-color 0.3s ease;
}

.showreel-fab:hover .showreel-fab__trigger::after {
  background: rgba(0, 0, 0, 0.35);
}

.showreel-fab__close {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  border: none;
  padding: 0;
  background: rgba(16, 16, 16, 0.75);
  color: var(--color-text);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.showreel-fab__close:hover {
  background: rgba(16, 16, 16, 0.95);
}

.showreel-fab__label {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: var(--fw-bold);
  color: var(--color-text);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  gap: 0.4rem;
}

.showreel-fab__play {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background: rgba(254, 254, 254, 0.18);
  border: 1px solid rgba(254, 254, 254, 0.35);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
  background-size: 55%;
  background-position: 55% 50%;
  background-repeat: no-repeat;
  flex-shrink: 0;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.showreel-fab:hover .showreel-fab__trigger {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.65);
}

.showreel-fab:hover .showreel-fab__trigger img {
  transform: scale(1.06);
}

.showreel-fab:hover .showreel-fab__play {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23101010'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
}

@media (max-width: 479px) {
  .showreel-fab {
    bottom: 1rem;
    right: 1rem;
    width: 8rem;
  }
}

/* ---- Footer Lightbox ---- */

.footer-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s var(--ease-out-expo);
}

.footer-lightbox[hidden] {
  display: none;
}

.footer-lightbox.is-open {
  opacity: 1;
}

.footer-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  cursor: pointer;
}

.footer-lightbox__panel {
  position: relative;
  z-index: 1;
  width: min(92vw, 960px);
  border-radius: var(--radius-lg);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.3s var(--ease-out-expo);
}

.footer-lightbox.is-open .footer-lightbox__panel {
  transform: scale(1);
}

.footer-lightbox__video {
  display: block;
  width: 100%;
  border-radius: var(--radius-lg);
  background: var(--color-bg);
}

.footer-lightbox__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: rgba(16, 16, 16, 0.7);
  cursor: pointer;
  color: var(--color-text-dim);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.footer-lightbox__close:hover {
  border-color: var(--color-accent);
  background: var(--color-accent-dim);
  color: var(--color-text);
}

.footer-lightbox__close svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

@media (prefers-reduced-motion: reduce) {
  .footer-lightbox,
  .footer-lightbox__panel,
  .showreel-fab,
  .showreel-fab__trigger img {
    transition: none;
  }
  .footer-lightbox__panel {
    transform: none;
  }
  .showreel-fab {
    transform: none;
  }
}
