/* PREMIUM FOOTER DESIGN */
.footer {
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 50%, var(--gray-900) 100%);
  color: var(--gray-100);
  margin-top: auto;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-500), transparent);
}

.footer-main {
  padding: var(--space-16) 0 var(--space-12);
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-12) var(--space-8);
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-section {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.footer-section:first-child {
  max-width: 100%;
  padding-right: var(--space-4);
}

/* Company Info Section */
.footer-logo {
  display: inline-block;
  margin-bottom: var(--space-6);
  transition: var(--transition-transform);
}

.footer-logo:hover {
  transform: scale(1.02);
}

.footer-logo img {
  height: 56px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: var(--transition-all);
}

.footer-description {
  color: var(--gray-300);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-8);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  max-width: 100%;
}

.social-links {
  display: flex;
  gap: var(--space-3);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  transition: var(--transition-all);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.social-link:hover {
  background: var(--primary-600);
  border-color: var(--primary-500);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(27, 54, 93, 0.3);
}

.social-link img {
  width: 24px;
  height: 24px;
  transition: var(--transition-transform);
  opacity: 1;
  object-fit: contain;
  display: block;
  border-radius: 2px;
  background: transparent;
}

/* Ensure PNG icons are visible against dark background */
.social-link img[src$=".png"] {
  filter: brightness(1.2) contrast(1.1) saturate(1.1);
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Fallback for missing images */
.social-link[aria-label]:empty::before {
  content: attr(aria-label);
  font-size: 10px;
  color: var(--gray-300);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.social-link:hover img {
  transform: scale(1.1);
  opacity: 1;
}

/* Section Titles */
.footer-title {
  color: var(--gray-50);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-6);
  position: relative;
  letter-spacing: var(--letter-spacing-tight);
  text-align: left;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: calc(-1 * var(--space-2));
  left: 0;
  width: 32px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-500), var(--accent-500));
  border-radius: var(--radius-full);
}

/* Footer Links */
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-links li {
  margin: 0;
}

.footer-link {
  color: var(--gray-300);
  text-decoration: none;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  transition: var(--transition-all);
  display: inline-block;
  padding: var(--space-2) 0;
  position: relative;
  text-align: left;
}

.footer-link:hover {
  color: var(--primary-400);
  transform: translateX(4px);
}

.footer-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary-400);
  transition: var(--transition-all);
}

.footer-link:hover::before {
  width: 20px;
}

/* Contact Info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  border-radius: var(--radius-lg);
  transition: var(--transition-all);
  min-height: 44px;
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.03);
  transform: translateY(-1px);
}

.contact-icon {
  width: 20px;
  height: 20px;
  filter: invert(1);
  flex-shrink: 0;
  opacity: 0.8;
  transition: var(--transition-all);
  margin-top: 2px;
}

/* Make phone icon blue */
.contact-item:nth-child(2) .contact-icon {
  filter: invert(1);
}

.contact-item:hover .contact-icon {
  opacity: 1;
  filter: invert(1) sepia(1) saturate(2) hue-rotate(200deg);
}

/* Keep phone icon white on hover */
.contact-item:nth-child(2):hover .contact-icon {
  filter: invert(1) sepia(1) saturate(2) hue-rotate(200deg);
}

.contact-item div {
  flex: 1;
  line-height: 1.4;
}

.contact-item p {
  color: var(--gray-300);
  font-size: var(--font-size-base);
  margin: 0;
  line-height: var(--line-height-normal);
  transition: var(--transition-colors);
}

.contact-item p:first-child {
  color: var(--gray-100);
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--space-1);
}

.contact-item:hover p:first-child {
  color: var(--primary-300);
}

/* Clickable links in contact items */
.contact-item a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-colors);
}

.contact-item a:hover {
  color: var(--primary-300);
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
  padding: var(--space-6) 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.footer-bottom-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  max-width: 1200px;
  margin: 0 auto;
}

.copyright {
  color: var(--gray-400);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.footer-separator {
  color: var(--gray-500);
  font-size: var(--font-size-base);
  user-select: none;
}

.footer-bottom-link {
  color: var(--gray-400);
  text-decoration: none;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  transition: var(--transition-all);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-base);
}

.footer-bottom-link:hover {
  color: var(--primary-400);
  background: rgba(255, 255, 255, 0.05);
}

/* PREMIUM RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10) var(--space-6);
  }
  
  .footer-section:first-child {
    grid-column: 1 / -1;
    max-width: none;
    text-align: left;
    margin-bottom: var(--space-6);
    padding-right: 0;
  }
  
  .footer-section:nth-child(2),
  .footer-section:nth-child(3) {
    text-align: left;
  }
  
  .footer-section:nth-child(4) {
    grid-column: 1 / -1;
    text-align: left;
  }
}

@media (max-width: 768px) {
  .footer-main {
    padding: var(--space-12) 0 var(--space-8);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  
  .footer-section {
    text-align: left;
  }
  
  .footer-section:first-child {
    text-align: center;
    margin-bottom: var(--space-4);
  }

  .footer-title {
    text-align: left;
  }
  
  .footer-section:first-child .footer-title {
    text-align: center;
  }

  .footer-title::after {
    left: 0;
    transform: none;
  }
  
  .footer-section:first-child .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .contact-item {
    justify-content: flex-start;
    text-align: left;
    max-width: 100%;
    margin: 0;
  }

  .social-links {
    justify-content: center;
  }

  .footer-bottom {
    padding: var(--space-5) 0;
  }

  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: var(--space-4);
  }

  .footer-bottom-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-4);
  }
}

@media (max-width: 480px) {
  .footer-main {
    padding: var(--space-10) 0 var(--space-6);
  }

  .footer-grid {
    gap: var(--space-6);
  }

  .footer-title {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-4);
  }
  
  .footer-description {
    font-size: var(--font-size-sm);
  }
  
  .footer-link {
    font-size: var(--font-size-sm);
  }
  
  .contact-item p {
    font-size: var(--font-size-sm);
  }

  .footer-bottom {
    padding: var(--space-4) 0;
  }

  .footer-bottom-links {
    gap: var(--space-3);
  }
  
  .footer-separator {
    font-size: var(--font-size-sm);
  }
  
  .footer-bottom-link {
    font-size: var(--font-size-sm);
    padding: var(--space-1);
  }

  .copyright {
    font-size: var(--font-size-sm);
  }
  
  .social-link {
    width: 44px;
    height: 44px;
  }
  
  .social-link img {
    width: 20px;
    height: 20px;
  }
}