/* ==========================================================================
   FIXILA - FOOTER STYLESHEET
   Save as: /css/footer.css
   Used on: ALL PAGES (has footer)
   ========================================================================== */

/* ==========================================================================
   FOOTER PARTNER LOGOS CAROUSEL
   ========================================================================== */
.footer-partners {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  padding: 3rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.footer-partners-container {
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

.partners-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

/* Carousel Wrapper */
.partner-carousel-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
}

/* Carousel Container */
.partner-carousel {
  display: flex;
  width: fit-content;
  animation: scroll 60s linear infinite;
}

.partner-carousel:hover {
  animation-play-state: paused;
}

/* Partner Track */
.partner-track {
  display: flex;
  gap: 2rem;
  padding: 0 1rem;
  align-items: center;
}

.partner-track img {
  height: 28px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  transition: all 0.3s ease;
  opacity: 0.9;
  flex-shrink: 0;
}

.partner-track img:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* Scroll Animation */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Partner badge text (for certifications without good logos) */
.partner-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.partner-badge:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.05);
}

/* ==========================================================================
   MAIN FOOTER
   ========================================================================== */
.footer {
  background: #1e293b;
  color: #cbd5e1;
  padding: 4rem 2rem 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1.2fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-column h4 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   FOOTER COLUMN 1: COMPANY INFO
   ========================================================================== */
.footer-logo {
  margin-bottom: 1.5rem;
}

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

.footer-description {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #94a3b8;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  transition: all 0.3s;
}

.footer-social a:hover {
  background: #2563eb;
  color: #ffffff;
  transform: translateY(-3px);
}

/* ==========================================================================
   FOOTER COLUMN 2: SERVICES WITH DROPDOWNS
   ========================================================================== */
.footer-dropdown {
  margin-bottom: 1rem;
}

.footer-dropdown-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: none;
  color: #ffffff;
  padding: 0;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s;
  text-align: left;
}

.footer-dropdown-toggle:hover {
  color: #2563eb;
}

.footer-dropdown-toggle svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 0.5rem;
  opacity: 0.7;
}

.footer-dropdown.active .footer-dropdown-toggle svg {
  transform: rotate(180deg);
}

.footer-dropdown-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, opacity 0.3s ease-out;
  opacity: 0;
}

.footer-dropdown.active .footer-dropdown-menu {
  max-height: 400px;
  opacity: 1;
  margin-top: 0.75rem;
  padding-left: 0;
}

.footer-dropdown-menu li {
  margin-bottom: 0.6rem;
}

.footer-dropdown-menu a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.875rem;
  display: block;
  padding: 0.25rem 0;
  transition: all 0.2s;
  padding-left: 1rem;
  border-left: 2px solid transparent;
}

.footer-dropdown-menu a:hover {
  color: #ffffff;
  border-left-color: #2563eb;
  padding-left: 1.25rem;
}

/* Regular footer links (Company section) */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
  display: block;
}

.footer-links a:hover {
  color: #ffffff;
}

/* ==========================================================================
   FOOTER COLUMN 3: CONTACT & HOURS
   ========================================================================== */
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.footer-contact svg {
  color: #2563eb;
  flex-shrink: 0;
}

.footer-contact a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-contact a:hover {
  color: #ffffff;
}

.footer-hours {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
  color: #94a3b8;
}

.footer-hours li {
  margin-bottom: 0.5rem;
}

.footer-hours strong {
  color: #2563eb;
}

.footer-hours-compact {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-hours-compact p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
  color: #94a3b8;
}

.footer-hours-compact strong {
  color: #2563eb;
  font-weight: 600;
}

/* ==========================================================================
   FOOTER BOTTOM
   ========================================================================== */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem 0;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.875rem;
  color: #64748b;
}

.footer-bottom-links {
  display: flex;
  gap: 2rem;
}

.footer-bottom-links a {
  color: #64748b;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s;
}

.footer-bottom-links a:hover {
  color: #ffffff;
}

/* ==========================================================================
   LEGACY FOOTER SUPPORT (for older markup)
   ========================================================================== */
.footer-content,
.footer-columns {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h5,
.footer-columns .col h5 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: 800;
  color: #ffffff;
}

.footer-col p,
.footer-col a,
.footer-columns .col p,
.footer-columns .col a {
  color: #94a3b8;
  display: block;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.footer-col a:hover,
.footer-columns .col a:hover {
  color: #ffffff;
}

.footer-bottom a {
  color: #94a3b8;
}

.footer-bottom a:hover {
  color: #ffffff;
}

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

@media (max-width: 768px) {
  .footer-partners {
    padding: 2rem 1.5rem;
  }

  .partner-carousel {
    animation: scroll 45s linear infinite;
  }

  .partner-track {
    gap: 1.5rem;
  }

  .partner-track img {
    height: 24px;
    max-width: 140px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom-links {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .footer-partners {
    padding: 1.5rem 1rem;
  }

  .partners-label {
    font-size: 0.75rem;
    margin-bottom: 1.5rem;
  }

  .partner-carousel {
    animation: scroll 35s linear infinite;
  }

  .partner-track {
    gap: 1rem;
  }

  .partner-track img {
    height: 20px;
    max-width: 120px;
  }

  .footer-dropdown-toggle {
    font-size: 0.85rem;
    padding: 0.65rem 0.9rem;
  }

  .footer-contact li {
    font-size: 0.85rem;
  }
}