/**
 * Site footer – used on all pages. All classes prefixed with .site-footer to avoid conflicts.
 * Include this CSS in base.html so footer looks the same everywhere.
 */
@keyframes site-footer-gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes site-footer-fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.site-footer {
  --site-footer-primary: #A42E30;
  --site-footer-dark: #8a2628;
  --site-footer-light: #c0392b;
  --site-footer-text: rgba(255, 255, 255, 0.95);
  --site-footer-muted: rgba(255, 255, 255, 0.8);
  color: white;
  padding: clamp(2rem, 5vw, 3.5rem) 0 0;
  background: linear-gradient(
    135deg,
    var(--site-footer-primary) 0%,
    var(--site-footer-dark) 35%,
    var(--site-footer-light) 70%,
    var(--site-footer-primary) 100%
  );
  background-size: 200% 200%;
  animation: site-footer-gradient-shift 12s ease infinite;
  transition: background 0.5s ease;
}

.site-footer__top {
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.site-footer .site-footer__container {
  margin-left: auto;
  margin-right: auto;
  max-width: 1400px;
  padding-left: clamp(1rem, 6vw, 6.25rem);
  padding-right: clamp(1rem, 6vw, 6.25rem);
}

.site-footer__row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  justify-content: space-between;
  align-items: flex-start;
}

.site-footer__list {
  flex: 1 1 auto;
  min-width: min(100%, 200px);
  max-width: 380px;
  list-style: none;
  margin: 0;
  padding: 0;
  animation: site-footer-fade-in 0.6s ease backwards;
}

.site-footer__list:nth-child(1) { animation-delay: 0.05s; }
.site-footer__list:nth-child(2) { animation-delay: 0.1s; }
.site-footer__list:nth-child(3) { animation-delay: 0.15s; }
.site-footer__list:nth-child(4) { animation-delay: 0.2s; }

.site-footer__item {
  margin-bottom: clamp(0.5rem, 1.2vw, 1rem);
  font-family: 'Poppins', sans-serif;
  transition: transform 0.25s ease;
}

.site-footer__item:hover {
  transform: translateX(4px);
}

.site-footer__item img {
  width: clamp(80px, 12vw, 183px);
  height: auto;
  aspect-ratio: 183 / 143;
  max-height: 143px;
  object-fit: contain;
  margin-bottom: clamp(0.75rem, 1.5vw, 1.25rem);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.site-footer__item img:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.site-footer__text {
  color: var(--site-footer-text);
  font-size: clamp(0.875rem, 1.1vw, 1rem);
  line-height: 1.6;
  max-width: 100%;
  font-family: 'Poppins', sans-serif;
}

.site-footer__title {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  margin-bottom: clamp(0.75rem, 1.5vw, 1.25rem);
  color: rgba(255, 255, 255, 0.92);
  position: relative;
  padding-bottom: clamp(0.5rem, 1vw, 0.75rem);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-footer__title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: clamp(36px, 4vw, 50px);
  height: 3px;
  background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,0.5) 100%);
  border-radius: 2px;
  transition: width 0.35s ease;
}

.site-footer__list:hover .site-footer__title::after {
  width: clamp(44px, 5vw, 60px);
}

.site-footer__link {
  color: var(--site-footer-muted);
  text-decoration: none;
  transition: color 0.25s ease, transform 0.25s ease, padding-left 0.25s ease;
  display: inline-block;
  font-size: clamp(0.8125rem, 1vw, 1rem);
  font-family: 'Poppins', sans-serif;
}

.site-footer__link:hover {
  color: #fff;
  transform: translateX(6px);
  padding-left: 4px;
}

.site-footer__btn {
  margin-left: 0;
  margin-bottom: clamp(0.75rem, 1.5vw, 1.25rem);
  display: inline-block;
  background: linear-gradient(180deg, #fff 0%, #f5f5f5 100%);
  color: var(--site-footer-primary) !important;
  padding: clamp(0.6rem, 1.2vw, 0.85rem) clamp(1.25rem, 2vw, 1.75rem);
  border-radius: 10px;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  font-size: clamp(0.8125rem, 1vw, 1rem);
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.site-footer a.site-footer__btn {
  color: var(--site-footer-primary) !important;
}

.site-footer__btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
  background: linear-gradient(180deg, #fff 0%, #e8e8e8 100%);
}

.site-footer .site-footer__social-item {
  display: flex;
  gap: clamp(0.5rem, 1vw, 0.75rem);
  flex-wrap: wrap;
}

.site-footer .site-footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(36px, 5vw, 44px);
  height: clamp(36px, 5vw, 44px);
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.site-footer .site-footer__social-link:hover {
  background: rgba(255, 255, 255, 0.95);
  color: var(--site-footer-primary);
  transform: translateY(-4px) scale(1.08);
}

.site-footer__bottom {
  background: rgba(0, 0, 0, 0.18);
  padding: clamp(0.75rem, 2vw, 1.25rem) clamp(1rem, 4vw, 2rem);
  text-align: center;
  font-size: clamp(0.75rem, 1vw, 0.875rem);
  color: rgba(255, 255, 255, 0.8);
  font-family: 'Poppins', sans-serif;
  transition: background 0.4s ease;
}

.site-footer__bottom:hover {
  background: rgba(0, 0, 0, 0.22);
}

@media (max-width: 1024px) {
  .site-footer__row {
    gap: clamp(1.25rem, 3vw, 2rem);
  }

  .site-footer__list {
    min-width: min(100%, 180px);
    max-width: 320px;
  }
}

@media (max-width: 768px) {
  .site-footer__row {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: clamp(1.5rem, 4vw, 2.5rem);
  }

  .site-footer__list {
    max-width: 100%;
    text-align: left;
  }

  .site-footer__title::after {
    left: 0;
    transform: none;
  }

  .site-footer__list:hover .site-footer__title::after {
    left: 0;
    transform: none;
  }

  .site-footer__item:hover {
    transform: none;
  }

  .site-footer__link:hover {
    transform: none;
    padding-left: 0;
  }

  .site-footer__text {
    text-align: left;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .site-footer .site-footer__social-item {
    justify-content: flex-start;
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .site-footer .site-footer__container {
    padding-left: clamp(0.75rem, 4vw, 1rem);
    padding-right: clamp(0.75rem, 4vw, 1rem);
  }

  .site-footer__row {
    gap: clamp(1.25rem, 5vw, 1.75rem);
  }

  .site-footer__btn {
    width: 100%;
    max-width: 260px;
    min-height: 48px;
    box-sizing: border-box;
    border-radius: 10px;
  }

  .site-footer .site-footer__social-link {
    width: 44px;
    height: 44px;
  }
}
