/* ==========================
   SITE FOOTER - 3 COLUMN LAYOUT
   Always 3 columns on all screen sizes
========================== */

.site-footer {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 2rem 0 1rem;
  margin-top: 0;
}

body.dark .site-footer {
  background: rgba(15, 23, 42, 0.96);
  color: rgba(255, 255, 255, 0.75);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.footer-section {
  min-width: 0;
  text-align: center;
}

.footer-section h5 {
  font-weight: 700;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.footer-section h5 i {
  font-size: 0.9rem;
}

.footer-section h5.mt-3 {
  margin-top: 1rem;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
  font-size: 0.85rem;
  margin: 0 0 0.5rem 0;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-section ul li {
  margin-bottom: 0.35rem;
}

.footer-section ul li:last-child {
  margin-bottom: 0;
}

.footer-section ul li a,
.footer-section .schedule-btn {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.footer-section ul li a:hover {
  color: #ffffff;
  transform: translateX(3px);
}

[dir="rtl"] .footer-section ul li a:hover {
  transform: translateX(-3px);
}

.footer-section ul li i {
  font-size: 0.7rem;
}

.footer-section .schedule-btn {
  padding: 0.3rem 0.65rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 0.15rem;
  font-size: 0.8rem;
}

.footer-section .schedule-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.footer-social a i {
  font-size: 1rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 0.9rem;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
}

.footer-bottom a {
  color: #ffffff;
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* ===== RESPONSIVE BREAKPOINTS =====
   The footer always has a colored gradient background (light mode)
   or a dark background (dark mode), so text is always white/light.
   No light-mode dark-text override needed. */

/* Tablets and mobile - maintain 3 columns */
@media (max-width: 991px) {
  .site-footer {
    padding: 1.75rem 0 calc(80px + 0.75rem);
    margin-top: 0;
  }
  
  .footer-content {
    gap: 1.25rem;
  }
  
  .footer-section h5 {
    font-size: 0.9rem;
    margin-bottom: 0.65rem;
  }
  
  .footer-section p,
  .footer-section ul li a,
  .footer-section .schedule-btn {
    font-size: 0.8rem;
  }
  
  .footer-social a {
    width: 32px;
    height: 32px;
  }
  
  .footer-social a i {
    font-size: 0.95rem;
  }
}

/* Small mobile - still 3 columns but more compact */
@media (max-width: 575px) {
  .site-footer {
    padding: 1.5rem 0 calc(80px + 0.75rem);
    margin-top: 0;
  }
  
  .footer-content {
    gap: 1rem;
  }
  
  .footer-section h5 {
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
  }
  
  .footer-section h5 i {
    font-size: 0.8rem;
  }
  
  .footer-section p,
  .footer-section ul li a,
  .footer-section .schedule-btn {
    font-size: 0.75rem;
  }
  
  .footer-section ul li {
    margin-bottom: 0.3rem;
  }
  
  .footer-social {
    gap: 0.4rem;
    margin-top: 0.4rem;
  }
  
  .footer-social a {
    width: 30px;
    height: 30px;
  }
  
  .footer-social a i {
    font-size: 0.9rem;
  }
  
  .footer-bottom {
    font-size: 0.7rem;
    padding-top: 0.75rem;
  }
}
