/* ===== FOOTER STYLES ===== */

.site-footer {
  color: var(--text);
  margin-top: 80px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--surface-alt);
}


.footer-main {
  background: #ffffff;
  padding: 60px 0 40px;
  position: relative;
  z-index: 1;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.footer-section h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 16px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-section h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 20px;
  position: relative;
}

.footer-section h4::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 1px;
}

.footer-brand p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 20px;
  font-size: 16px;
}

.footer-contact {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--surface-alt);
}

.footer-contact p {
  margin: 0 0 8px;
  color: var(--text);
}

.footer-contact p:first-child {
  font-weight: 600;
  font-size: 18px;
}

.footer-contact p:last-child {
  color: var(--muted);
  font-size: 14px;
}

/* Staff access: make it visually prominent and attractive */
.footer-staff-access {
  margin-top: 16px;
  padding: 16px 16px 14px;
  background: linear-gradient(135deg, #f5f8ff 0%, #ffffff 60%);
  border: 1px solid var(--surface-alt);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.footer-staff-access::before {
  content: '⚙';
  position: absolute;
  right: -8px;
  top: -10px;
  font-size: 64px;
  line-height: 1;
  color: rgba(0,0,0,0.06);
  transform: rotate(-15deg);
  pointer-events: none;
}

.footer-staff-access p {
  margin: 0 0 10px;
}

.footer-staff-access p small {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-staff-access .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.2s ease;
}

.footer-staff-access .btn::before {
  content: '↗';
  font-size: 14px;
  line-height: 1;
}

.footer-staff-access .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(0,0,0,0.16);
}

.footer-staff-access .btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
}

.footer-links a::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.3s ease;
}

.footer-links a:hover {
  color: var(--text);
  transform: translateX(4px);
}

.footer-links a:hover::before {
  width: 100%;
}

.footer-bottom {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 24px 0;
  border-top: 1px solid var(--surface-alt);
  position: relative;
  z-index: 1;
}

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

.footer-legal p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
}

.footer-legal .legal-text {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
  opacity: 0.8;
}

.footer-links-bottom {
  display: flex;
  gap: 24px;
  align-items: center;
}

.footer-links-bottom a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-links-bottom a:hover {
  color: var(--text);
}

/* Responsive Design */
@media (max-width: 991px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  
  .footer-brand {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 20px;
  }
}

@media (max-width: 767px) {
  .site-footer {
    margin-top: 60px;
  }
  
  .footer-main {
    padding: 40px 0 30px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  
  .footer-section h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  
  .footer-links-bottom {
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .footer-main {
    padding: 30px 0 20px;
  }
  
  .footer-section h3 {
    font-size: 20px;
  }
  
  .footer-section h4 {
    font-size: 16px;
  }
  
  .footer-links a {
    font-size: 14px;
  }
  
  .footer-links-bottom {
    flex-direction: column;
    gap: 12px;
  }
}

/* Animation for footer appearance */
@keyframes footerSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-footer {
  animation: footerSlideUp 0.8s ease-out;
}

/* Hover effects for interactive elements */
.footer-section:hover h4::after {
  width: 50px;
  transition: width 0.3s ease;
}

.footer-brand:hover h3 {
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
}
