/* ================================================
   FOOTER.CSS — Xtreme Fitness Studio
   Premium footer with links, social, and credits
================================================ */

.footer {
  background-color: var(--bg-primary);
  border-top: 1px solid var(--primary-color);
  box-shadow: 0 -2px 30px rgba(230, 0, 0, 0.1);
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---- Footer Main Content ---- */
.footer-bottom {
  padding: 3.5rem 0 1.5rem;
}

/* ---- Four-column grid ---- */
.footer-bottom-container {
  display: grid;
  grid-template-columns: 1.5fr 2fr 0.8fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

/* ---- Logo Section ---- */
.footer-logo-section {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.footer-logo:hover {
  opacity: 0.85;
}

.footer-logo .logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(230, 0, 0, 0.4));
}

.footer-logo-text {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 220px;
  margin: 0;
}

/* ---- Link Groups ---- */
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.footer-link-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link-title {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}

.footer-link {
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: color 0.3s ease, padding-left 0.2s ease;
  text-decoration: none;
  line-height: 1.4;
}

.footer-link:hover {
  color: var(--primary-color);
  padding-left: 4px;
}

.footer-link-text {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.7;
  margin: 0;
}

/* ---- Social Icons ---- */
.footer-social {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.social-icons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.social-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-secondary);
  border: 1px solid rgba(230, 0, 0, 0.3);
  border-radius: var(--radius-md);
  color: var(--primary-color);
  font-size: 1rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(230, 0, 0, 0.4);
}

/* WhatsApp social icon special color on hover */
.social-icon[aria-label="WhatsApp"]:hover {
  background-color: #25D366;
  border-color: #25D366;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* ---- Divider ---- */
.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(230, 0, 0, 0.4), transparent);
  margin: 1.5rem 0;
}

/* ---- Credits ---- */
.footer-credits {
  text-align: center;
  padding-bottom: 1.5rem;
}

.footer-credits p {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.6;
  margin: 0;
}

/* ================================================
   BREAKPOINTS — Footer
================================================ */

/* Laptop (1024px) */
@media (max-width: 1024px) {
  .footer-bottom-container {
    grid-template-columns: 1fr 1.5fr 0.8fr;
    gap: 2rem;
  }
}

/* Tablet (768px) — stack to single column */
@media (max-width: 768px) {
  .footer-bottom {
    padding: 2.5rem 0 1rem;
  }

  .footer-bottom-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-links {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .footer-logo-text {
    font-size: 1.1rem;
  }

  .footer-tagline {
    max-width: 100%;
  }
}

/* Mobile (600px) — footer links 2 col */
@media (max-width: 600px) {
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

/* Mobile (480px) */
@media (max-width: 480px) {
  .footer-bottom {
    padding: 2rem 0 0.75rem;
  }

  .footer-container {
    padding: 0 1rem;
  }

  .footer-bottom-container {
    gap: 1.5rem;
  }

  .footer-logo-text {
    font-size: 1rem;
  }

  .footer-logo .logo-img {
    width: 28px;
    height: 28px;
  }

  .footer-link-title {
    font-size: 0.78rem;
  }

  .footer-link,
  .footer-link-text {
    font-size: 0.835rem;
  }

  .social-icon {
    width: 38px;
    height: 38px;
    font-size: 0.95rem;
  }

  .footer-credits p {
    font-size: 0.78rem;
  }

  .footer-divider {
    margin: 1.25rem 0;
  }
}

/* Very small (375px) */
@media (max-width: 375px) {
  .footer-links {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .footer-link-group:last-child {
    grid-column: 1 / -1;
  }
}
