/*
 * Canonical footer + carousel CSS for Gratuity Solutions website
 * Source of truth: saves/2026-04-24_v3.9/partials/footer.css
 *
 * Edit this file -> re-run partials/sync-footer.py to push to all pages.
 * DO NOT edit footer styles directly in individual page <style> blocks.
 */

/* =================== STICKY CAROUSEL =================== */
.sticky-carousel-slot {
  position: relative;
  height: 132px;
  background: #0f172a;
}

.sticky-carousel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0f172a;
  height: 132px;
  z-index: 999;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  transform: translateZ(0);
}
.sticky-carousel.docked,
.sticky-carousel.is-docked {
  position: absolute;
  top: 0;
  bottom: auto;
  left: 0;
  right: 0;
}

.carousel-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 14px 32px 8px;
  font-size: 10.5px;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-weight: 600;
  line-height: 1;
  position: relative;
  z-index: 20;
  background: transparent;
  border: none;
  margin: 0;
  white-space: nowrap;
  text-align: center;
}
.carousel-label::before,
.carousel-label::after {
  content: '';
  flex: 1;
  max-width: 160px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}

.carousel-mask {
  position: relative;
  flex: 1;
  overflow: hidden;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
  display: flex;
  align-items: center;
}
.carousel-mask.dragging { cursor: grabbing; }
.carousel-mask::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 60px;
  background: linear-gradient(90deg, #0f172a 0%, transparent 100%);
  z-index: 10;
  pointer-events: none;
}
.carousel-mask::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 60px;
  background: linear-gradient(270deg, #0f172a 0%, transparent 100%);
  z-index: 10;
  pointer-events: none;
}

.carousel-track {
  display: flex;
  gap: 48px;
  align-items: center;
  padding: 0 32px;
  animation: scrollCarousel 120s linear infinite !important;
  will-change: transform;
}
.carousel-track:hover { animation-play-state: paused; }

.carousel-logo {
  display: flex;
  align-items: center;
  cursor: grab;
  white-space: nowrap;
  flex-shrink: 0;
}
.carousel-logo img {
  height: 36px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.7;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.carousel-logo:hover img { opacity: 1; transform: scale(1.04); }

/* Compact/square marks need more height to feel balanced beside wide wordmarks. */
.carousel-logo img[src*="Chilis-Emblem"],
.carousel-logo img[src*="Bob-Evans"],
.carousel-logo img[src*="FB%20Society%20SixtyVines-logo"],
.carousel-logo img[src*="Fabio%20Trabocchi"],
.carousel-logo img[src*="centurion-restaurant-group_Bulla"],
.carousel-logo img[src*="fords-garage-logo"],
.carousel-logo img[src*="logo-tijuana-flats"] {
  height: 52px !important;
  width: auto !important;
  max-width: none !important;
}

.carousel-logo img[src*="Applebees"],
.carousel-logo img[src*="First%20Watch"] {
  height: 44px !important;
  width: auto !important;
  max-width: none !important;
}

.carousel-logo img[src*="Chilis-Emblem-pepper-red"] {
  filter: none !important;
  opacity: 0.92;
}

.carousel-logo img[src*="Starbucks_Corporation_Logo"] {
  height: 56px !important;
  width: 56px !important;
  max-width: none !important;
  filter: brightness(0) invert(1) !important;
}

@keyframes scrollCarousel {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =================== FOOTER =================== */
.footer {
  background: #0f172a;
  color: rgba(255,255,255,0.8);
  padding: 72px 32px 32px;
  padding-bottom: 48px;
  width: 100%;
  box-sizing: border-box;
}
.footer-inner { max-width: 1280px; margin: 0 auto; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(6, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.footer-column-title {
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.9);
  margin-bottom: 16px;
}

.footer-column-link {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  margin-bottom: 12px;
  transition: color 0.2s ease;
}
.footer-column-link:hover { color: rgba(255,255,255,0.9); }

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

.footer-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
  opacity: 0.8;
}

.footer-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  max-width: 280px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-legal {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}
.footer-legal-link {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-legal-link:hover { color: rgba(255,255,255,0.9); }

.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.footer-social-link:hover {
  background: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
}

/* =================== RESPONSIVE =================== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .sticky-carousel-slot,
  .sticky-carousel { height: 106px; }
  .carousel-label { font-size: 9px; letter-spacing: 0.2em; padding: 10px 16px 6px; gap: 10px; }
  .carousel-label::before,
  .carousel-label::after { max-width: 60px; }
  .carousel-track { gap: 28px; padding: 0 16px; }
  .carousel-logo img { height: 28px; max-width: 120px; }
  .carousel-logo img[src*="Starbucks_Corporation_Logo"] { height: 50px !important; width: 50px !important; }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .sticky-carousel-slot,
  .sticky-carousel { height: 96px; }
  .carousel-label { font-size: 8.5px; padding: 8px 12px 4px; }
  .carousel-logo img { height: 22px; max-width: 90px; }
  .carousel-logo img[src*="Starbucks_Corporation_Logo"] { height: 44px !important; width: 44px !important; }
}
