/* ── FOOTER COMPONENT ──────────────────────────────────────────
   Shared across all pages. Edit here → updates everywhere.
   ──────────────────────────────────────────────────────────── */

.section-footer {
  position: relative;
  overflow: hidden;
  background: var(--color-accent);
  padding: clamp(80px, 10vw, 160px) clamp(20px, 5vw, 80px);
}

/* ── Beam layer ─────────────────────────────────────────── */
.footer-beams {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.footer-floor {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  pointer-events: none;
  z-index: 1;
}

.f-beam {
  position: absolute;
  top: 0;
  border-radius: 9999px;
  pointer-events: none;
  will-change: transform;
}

.f-particle {
  position: absolute;
  border-radius: 50%;
  background: #000;
  pointer-events: none;
  animation: f-particle-burst linear forwards;
}

.f-explosion-flash {
  position: absolute;
  height: 1px;
  border-radius: 9999px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(0, 0, 0, 0.4),
    transparent
  );
  pointer-events: none;
  animation: f-flash-fade 1.5s ease-out forwards;
}

@keyframes f-particle-burst {
  0%   { transform: translate(0, 0);       opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)); opacity: 0; }
}

@keyframes f-flash-fade {
  0%   { opacity: 1; }
  100% { opacity: 0; }
}

/* Two-column grid: left brand / right contact */
.footer-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(48px, 6vw, 120px);
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ── LEFT COLUMN ──────────────────────────────────────── */
.footer-left {}

.footer-tagline {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: var(--weight-regular);
  font-style: normal;
  line-height: var(--leading-snug);
  color: rgba(0, 0, 0, 0.6);
  margin-bottom: var(--space-10);
}

.footer-name {
  font-size: clamp(48px, 6vw, 96px);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tighter);
  line-height: var(--leading-tight);
  color: #0a0a0a;
  margin-bottom: var(--space-8);
}

.footer-name .name-sep {
  color: rgba(0, 0, 0, 0.3);
  font-weight: var(--weight-regular);
  padding: 0 0.05em;
}

.footer-copyright {
  font-size: var(--text-xs);
  color: rgba(0, 0, 0, 0.5);
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-8);
}

.footer-fine {
  font-size: var(--text-xs);
  color: rgba(0, 0, 0, 0.5);
  letter-spacing: var(--tracking-wide);
}

.footer-fine a {
  color: #0a0a0a;
  text-decoration: none;
}
.footer-fine a:hover {
  text-decoration: underline;
}

/* ── RIGHT COLUMN ─────────────────────────────────────── */
.footer-right {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Contact info rows */
.footer-contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  padding-bottom: var(--space-8);
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  padding-top: var(--space-6);
}

.footer-contact-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.55);
  margin-bottom: var(--space-3);
}

.footer-contact-value {
  font-size: var(--text-sm);
  color: rgba(0, 0, 0, 0.7);
  line-height: var(--leading-relaxed);
}

.footer-contact-value a {
  color: #0a0a0a;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}
.footer-contact-value a:hover {
  color: rgba(0, 0, 0, 0.6);
}

/* Email row — big display */
.footer-email-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  padding-bottom: var(--space-4);
}

.footer-email-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.55);
  margin-bottom: var(--space-3);
}

.footer-email-value {
  font-size: clamp(24px, 3vw, 40px);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tight);
  color: rgba(0, 0, 0, 0.7);
}

.footer-email-value a {
  color: rgba(0, 0, 0, 0.7);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}
.footer-email-value a:hover {
  color: #0a0a0a;
}

/* Back to top arrow */
.footer-top-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color var(--duration-fast) var(--ease-out),
              background var(--duration-fast) var(--ease-out);
}

.footer-top-btn:hover {
  border-color: #0a0a0a;
  background: rgba(0, 0, 0, 0.06);
}

.footer-top-btn svg {
  width: 20px;
  height: 20px;
  stroke: #0a0a0a;
  stroke-width: 2;
  fill: none;
}

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }

  .footer-name {
    font-size: clamp(36px, 10vw, 56px);
  }

  .footer-email-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-email-value {
    font-size: clamp(20px, 5vw, 28px);
  }

  .footer-top-btn {
    align-self: flex-end;
  }
}

/* ── REDUCED MOTION ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .footer-beams { display: none; }
}
