/**
 * Lease Solutions — 3D Interactive Footer Stylesheet (footer-3d.css)
 * Light Mode Theme: Clean white background, institutional fintech typography,
 * seamless integration with leasesolutions.eu design tokens.
 * Moein-inspired aesthetic: borderless, seamless 3D canvas directly on white ground.
 */

/* ==========================================================================
   1. FOOTER SHELL — CLEAN WHITE GROUND
   ========================================================================== */

footer.site-footer-3d,
.site-footer-3d {
  position: relative;
  background: #FFFFFF;
  color: #0B1424;
  border-top: 1px solid var(--line, #DEE5EF);
  overflow: hidden;
  font-family: var(--f-body, "IBM Plex Sans", -apple-system, sans-serif);
  padding: 88px 0 40px;
  margin-top: 0;
}

/* Subtle Technical Grid on White */
.site-footer-3d::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(27, 63, 168, 0.038) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(27, 63, 168, 0.038) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  z-index: 0;
}

/* Ambient Soft Glow */
.site-footer-3d::after {
  content: "";
  position: absolute;
  bottom: 5%;
  right: 5%;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(241, 245, 254, 0.85) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.footer-inner {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   2. TOP ROW: 3D STAGE & PUNCHY HERO COPY
   ========================================================================== */

.footer-hero-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.98fr);
  gap: 48px;
  align-items: center;
  margin-bottom: 72px;
  padding-bottom: 64px;
  position: relative;
}

/* Strakke lijn met fade-out aan beide uiteinden ipv harde border */
.footer-hero-stage::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #DEE5EF 15%, #DEE5EF 85%, transparent 100%);
  pointer-events: none;
}

@media (max-width: 960px) {
  .footer-hero-stage {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

.footer-stage-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-stage-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 6px 14px;
  background: #E4F4EE;
  border: 1px solid #A7F3D0;
  border-radius: 999px;
  color: #0C7C5A;
  font-family: var(--f-body, "IBM Plex Sans", -apple-system, sans-serif);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.badge-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0C7C5A;
  box-shadow: 0 0 8px rgba(12, 124, 90, 0.6);
  animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.footer-stage-title {
  font-family: var(--f-display, "Archivo", sans-serif);
  font-size: clamp(34px, 3.8vw, 50px);
  font-weight: 700;
  line-height: 1.12;
  color: #0B1424;
  margin: 0;
  letter-spacing: -0.025em;
}

.footer-stage-title .highlight {
  color: #1B3FA8;
  background: linear-gradient(135deg, #1B3FA8 0%, #3B6FE0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-stage-sub {
  font-size: 16.5px;
  color: #48546B;
  line-height: 1.62;
  max-width: 490px;
  margin: 0;
}

/* ==========================================================================
   3. THE 3D CANVAS & INTERACTIVE SPEECH BUBBLE (SEAMLESS BORDERLESS DESIGN)
   ========================================================================== */

.footer-3d-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 420px;
  width: 100%;
}

/* Strakke horizonlijn onder 3D scène met zachte fade-out */
.stage-ground-line {
  position: absolute;
  bottom: 42px;
  left: 2%;
  right: 2%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(27, 63, 168, 0.03) 15%, rgba(27, 63, 168, 0.18) 50%, rgba(27, 63, 168, 0.03) 85%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.footer-canvas-box {
  position: relative;
  width: 100%;
  max-width: 580px;
  height: 420px;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
  min-width: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

#footer-3d-canvas {
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  display: block;
  pointer-events: auto;
  min-width: 0;
}

/* Click-Me Floating Tooltip (Consistent Body Font, Vector Icon) */
.canvas-hint {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #DEE5EF;
  box-shadow: 0 4px 16px rgba(11, 20, 36, 0.08);
  backdrop-filter: blur(8px);
  padding: 6px 16px;
  border-radius: 999px;
  font-family: var(--f-body, "IBM Plex Sans", -apple-system, sans-serif);
  font-size: 12px;
  font-weight: 500;
  color: #1B3FA8;
  pointer-events: none;
  opacity: 0.95;
  transition: opacity 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hint-mobile {
  display: none;
}

.footer-canvas-box:hover .canvas-hint {
  opacity: 1;
  border-color: #1B3FA8;
  color: #0B1424;
  box-shadow: 0 6px 20px rgba(27, 63, 168, 0.15);
}

/* Interactive Speech Bubble (Crisp Light Card: #FFFFFF, subtle border, dark text) */
.mascot-speech-bubble {
  box-sizing: border-box;
  position: absolute;
  top: -10px;
  right: 18px;
  max-width: 290px;
  background: #FFFFFF;
  color: #0B1424;
  border: 1px solid #DEE5EF;
  padding: 14px 18px;
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  box-shadow: 
    0 14px 36px -4px rgba(11, 20, 36, 0.10),
    0 4px 12px rgba(11, 20, 36, 0.05);
  font-family: var(--f-body, "IBM Plex Sans", -apple-system, sans-serif);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.45;
  z-index: 10;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transform-origin: bottom left;
  animation: bubble-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s;
  user-select: none;
}

.mascot-speech-bubble:hover {
  transform: scale(1.03) translateY(-2px);
  box-shadow: 0 18px 42px -4px rgba(11, 20, 36, 0.14);
}

@media (max-width: 640px) {
  footer.site-footer-3d,
  .site-footer-3d {
    padding: 56px 0 36px;
  }
  .mascot-speech-bubble {
    position: relative;
    top: 0;
    right: auto;
    left: auto;
    transform: none;
    width: 100%;
    max-width: 100%;
    margin-bottom: 8px;
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 13px;
  }
  .mascot-speech-bubble:hover {
    transform: none;
  }
  .bubble-tail {
    display: none;
  }
  .footer-canvas-box {
    height: auto;
  }
  #footer-3d-canvas {
    height: 320px !important;
  }
  .hint-desktop {
    display: none;
  }
  .hint-mobile {
    display: inline;
  }
  .canvas-hint {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    margin: 10px auto 0;
    font-size: 11.5px;
    padding: 6px 16px;
    white-space: nowrap;
    max-width: 92%;
  }
}

.bubble-author {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--f-body, "IBM Plex Sans", -apple-system, sans-serif);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1B3FA8;
  background: #EBF1FC;
  padding: 2px 8px;
  border-radius: 6px;
  margin-bottom: 6px;
}

.bubble-author svg {
  color: #1B3FA8;
  display: block;
}

.bubble-text {
  margin: 0;
  color: #0B1424;
  font-family: var(--f-body, "IBM Plex Sans", -apple-system, sans-serif);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.45;
  word-break: break-word;
}

/* Seamless white tail pointing to Leasy */
.bubble-tail {
  position: absolute;
  bottom: -6px;
  left: 24px;
  width: 10px;
  height: 10px;
  background: #FFFFFF;
  border-right: 1px solid #DEE5EF;
  border-bottom: 1px solid #DEE5EF;
  transform: rotate(45deg);
}

@keyframes bubble-pop {
  0% { transform: scale(0.7) translateY(12px); opacity: 0; }
  70% { transform: scale(1.04) translateY(-2px); opacity: 1; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

/* ==========================================================================
   4. NAVIGATION & FOOTER GRID
   ========================================================================== */

.footer-nav-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 56px;
  position: relative;
}

/* Strakke lijn met fade-out aan beide uiteinden */
.footer-nav-grid::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #DEE5EF 15%, #DEE5EF 85%, transparent 100%);
  pointer-events: none;
}

@media (max-width: 960px) {
  .footer-nav-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 580px) {
  .footer-nav-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* Brand Column */
.footer-col-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-col-brand .logo-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-col-brand .logo-svg {
  width: 26px;
  height: 26px;
  color: #1B3FA8;
}

.footer-col-brand .logo-name {
  font-family: var(--f-display, "Archivo", sans-serif);
  font-size: 18px;
  letter-spacing: -0.01em;
  color: #0B1424;
}

.footer-col-brand .logo-name b {
  font-weight: 700;
}

.footer-col-brand .logo-name span {
  font-weight: 400;
  color: #1B3FA8;
}

.footer-brand-desc {
  font-size: 14px;
  line-height: 1.55;
  color: #48546B;
  margin: 0;
  max-width: 320px;
}

.footer-quick-contacts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.quick-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-body, "IBM Plex Sans", -apple-system, sans-serif);
  font-size: 13px;
  font-weight: 500;
  color: #1B3FA8;
  text-decoration: none;
  transition: color 0.15s ease, transform 0.15s ease;
}

.quick-contact-link:hover {
  color: #0F172A;
  transform: translateX(2px);
}

/* Nav Link Columns */
.footer-col-links h4 {
  font-family: var(--f-body, "IBM Plex Sans", -apple-system, sans-serif);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1B3FA8;
  margin: 0 0 16px 0;
}

.footer-col-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #48546B;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-col-links a:hover {
  color: #0B1424;
}

.mini-badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  background: #EBF1FC;
  color: #1B3FA8;
  font-family: var(--f-body, "IBM Plex Sans", -apple-system, sans-serif);
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   5. BOTTOM BAR: COPYRIGHT & ACCENTS
   ========================================================================== */

.footer-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: 12.5px;
  color: #62718D;
  font-family: var(--f-body, "IBM Plex Sans", -apple-system, sans-serif);
}

@media (max-width: 720px) {
  .footer-bottom-bar {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}

.footer-tagline {
  font-family: var(--f-body, "IBM Plex Sans", -apple-system, sans-serif);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #1B3FA8;
}
