/* ==========================================================================
   Footer — brand + link columns over a bus-stop scene
   ========================================================================== */
.site-footer {
  position: relative;
  z-index: 1; /* sit above the fixed .mesh-background (orbs + grid) */
  overflow: hidden;
  background: linear-gradient(180deg, #F4FAFF 0%, #DDF0FC 45%, #A6D8F6 82%, #74C0EE 100%); /* ends on the video's sky blue */
  color: var(--text-secondary);
}

/* ---------- Top: brand + 3 link columns ---------- */
.footer-top {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  padding-top: 4rem;
}

.footer-logo {
  display: inline-block;
}

.footer-logo img {
  display: block;
  height: 64px;
  width: auto;
}

.footer-tagline {
  max-width: 380px;
  margin: 1.1rem 0 1.5rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-social {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #FFFFFF;
  box-shadow: 0 8px 18px -8px rgba(11, 31, 58, 0.35);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s var(--ease-spring);
}

.footer-social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-social:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 22px -8px rgba(11, 31, 58, 0.45);
}

.footer-social:focus-visible,
.footer-links a:focus-visible,
.footer-logo:focus-visible {
  outline: 2px solid var(--electric-blue);
  outline-offset: 3px;
}

/* Facebook's mark is already a circle: show it full-size in brand blue */
.footer-social--facebook { background: #FFFFFF; color: #1877F2; }
.footer-social--facebook svg { width: 44px; height: 44px; }
.footer-social--instagram { background: radial-gradient(circle at 30% 107%, #FDF497 0%, #FD5949 45%, #D6249F 60%, #285AEB 90%); }
.footer-social--youtube { background: #FF0000; }
.footer-social--tiktok { background: #000000; }
.footer-social--linkedin { background: #0A66C2; }

.footer-col-title {
  margin: 0.4rem 0 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy-text);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  font-size: 0.95rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--primary-deep);
}

/* ---------- Scene: looping bus-stop video (includes the BUSBUDDY lettering) ---------- */
.footer-scene {
  position: relative;
  margin-top: 1.5rem;
  aspect-ratio: 12 / 5;
  overflow: hidden;
  pointer-events: none;
  /* soften the top edge into the footer gradient */
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 12%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 12%);
}

.footer-scene-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%; /* keep sky, lettering, bus and stop; crop road */
}

/* ---------- Responsive ---------- */
@media (prefers-reduced-motion: reduce) {
  .footer-social { transition: none; }
  .footer-social:hover { transform: none; }
}

@media (max-width: 992px) {
  .footer-top {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem 1.5rem;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-tagline { max-width: 520px; }
}

@media (max-width: 600px) {
  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem 1rem;
    padding-top: 2.75rem;
  }
  .footer-logo img { height: 52px; }
  .footer-tagline { font-size: 0.88rem; margin-bottom: 1.2rem; }
  .footer-social { width: 40px; height: 40px; }
  .footer-social svg { width: 18px; height: 18px; }
  .footer-social--facebook svg { width: 40px; height: 40px; }
  .footer-col-title { font-size: 1rem; margin-bottom: 0.75rem; }
  .footer-links { gap: 0.55rem; }
  .footer-links a { font-size: 0.86rem; }
  /* phones: show the full 16:9 frame, no cropping */
  .footer-scene { margin-top: 1rem; aspect-ratio: 16 / 9; }
}

/* Touch screens: footer links are 40px tall tap targets */
@media (pointer: coarse) {
  .footer-links { gap: 0; }
  .footer-links a {
    display: inline-block;
    padding: 0.6rem 0;
  }
}
