/* Professional Responsive Footer - Green Theme */
footer {
  background: linear-gradient(135deg, #0d4f1c 0%, #1a5f2e 50%, #2e7d40 100%);
  color: white;
  padding: 4rem 0 0;
  position: relative;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #66BB6A, #81C784, #A5D6A7, #C8E6C9);
  box-shadow: 0 2px 8px rgba(102, 187, 106, 0.3);
}

/* Container with proper max-width and centering */
.container-footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

/* Responsive Grid Layout */
.footer-content-footer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
  width: 100%;
}

/* Footer Section Styling */
.footer-section-footer {
  position: relative;
  min-height: fit-content;
}

.footer-section-footer h3 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  font-weight: 600;
  position: relative;
  letter-spacing: 0.025em;
  line-height: 1.3;
}

.footer-section-footer h3::after {
  content: '';
  position: absolute;
  bottom: -0.75rem;
  left: 0;
  width: 3rem;
  height: 3px;
  background: linear-gradient(90deg, #81C784, #A5D6A7);
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* About Section */
.about-footer p {
  color: rgba(255, 255, 255, 0.87);
  margin-bottom: 1.25rem;
  line-height: 1.6;
  font-size: clamp(0.875rem, 2vw, 0.95rem);
}

/* Contact Info */
.contact-info-footer p {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  font-size: clamp(0.875rem, 2vw, 0.95rem);
  color: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
  line-height: 1.5;
}

.contact-info-footer p:hover {
  color: #A5D6A7;
  transform: translateX(3px);
}

.contact-info-footer i {
  margin-right: 0.75rem;
  color: #81C784;
  font-size: 1rem;
  width: 1.25rem;
  text-align: center;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.contact-info-footer a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
  word-break: break-word;
}

.contact-info-footer a:hover {
  color: #C8E6C9;
}

.contact-info-footer address {
  font-style: normal;
  line-height: 1.5;
}

/* Navigation Links */
.links-footer ul,
.services-list-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.links-footer ul li,
.services-list-footer ul li {
  margin-bottom: 0.75rem;
  position: relative;
}

.links-footer a,
.services-list-footer a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
  font-size: clamp(0.875rem, 2vw, 0.95rem);
  padding: 0.25rem 0;
}

.links-footer a::before,
.services-list-footer a::before {
  content: '';
  position: absolute;
  left: -1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #81C784, #A5D6A7);
  transition: width 0.3s ease;
  border-radius: 1px;
}

.links-footer a:hover,
.services-list-footer a:hover {
  color: white;
  padding-left: 1.25rem;
}

.links-footer a:hover::before,
.services-list-footer a:hover::before {
  width: 0.75rem;
}

/* Social Media Section */
.social-footer {
  text-align: left;
}

.social-icons-footer {
  display: flex;
  justify-content: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.social-icons-footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: rgba(129, 199, 132, 0.15);
  color: #E8F5E8;
  border-radius: 50%;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(129, 199, 132, 0.2);
  text-decoration: none;
}

.social-icons-footer a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(200, 230, 201, 0.3), transparent);
  transition: left 0.6s;
}

.social-icons-footer a:hover {
  background: linear-gradient(135deg, #388E3C, #66BB6A, #81C784);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(56, 142, 60, 0.4);
  border-color: #A5D6A7;
}

.social-icons-footer a:hover::before {
  left: 100%;
}

.social-icons-footer i {
  font-size: 1.1rem;
  z-index: 1;
}

.social-footer p {
  color: rgba(255, 255, 255, 0.75);
  font-size: clamp(0.825rem, 2vw, 0.9rem);
  line-height: 1.5;
  text-align: left;
}

/* SEO Content Section */
.footer-seo-content-footer {
  margin: 2.5rem 0;
  padding: 2rem 1.5rem;
  background: rgba(129, 199, 132, 0.08);
  border-radius: 12px;
  border: 1px solid rgba(165, 214, 167, 0.2);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(56, 142, 60, 0.1);
  width: 100%;
}

.service-keywords-footer p {
  margin: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.825rem, 2vw, 0.9rem);
  line-height: 1.7;
}

.service-keywords-footer strong {
  color: #C8E6C9;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.service-keywords-footer a {
  color: rgba(232, 245, 232, 0.95);
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  border: 1px solid transparent;
  display: inline-block;
}

.service-keywords-footer a:hover {
  color: #E8F5E8;
  background: rgba(129, 199, 132, 0.2);
  border-color: rgba(165, 214, 167, 0.3);
  transform: translateY(-1px);
}

/* Footer Bottom */
.footer-bottom-footer {
  text-align: center;
  padding: 2rem 1.5rem;
  border-top: 1px solid rgba(165, 214, 167, 0.2);
  background: rgba(13, 79, 28, 0.3);
  margin: 0;
  position: relative;
}

.footer-bottom-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 6rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, #81C784, transparent);
}

.footer-bottom-footer p {
  font-size: clamp(0.825rem, 2vw, 0.9rem);
  color: rgba(232, 245, 232, 0.8);
  margin: 0;
  line-height: 1.5;
}

.footer-bottom-footer a {
  color: rgba(200, 230, 201, 0.9);
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  border: 1px solid transparent;
}

.footer-bottom-footer a:hover {
  color: #E8F5E8;
  background: rgba(129, 199, 132, 0.15);
  border-color: rgba(165, 214, 167, 0.3);
}

/* Responsive Breakpoints */

/* Large Desktop */
@media (min-width: 1400px) {
  .footer-content-footer {
    grid-template-columns: 2.5fr 1.2fr 1.5fr 1.8fr;
    gap: 3rem;
  }
}

/* Desktop */
@media (min-width: 1024px) and (max-width: 1399px) {
  .footer-content-footer {
    grid-template-columns: 2fr 1.2fr 1.5fr 1.8fr;
    gap: 2.5rem;
  }
}

/* Tablet Landscape */
@media (min-width: 768px) and (max-width: 1023px) {
  .footer-content-footer {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .social-footer {
    text-align: center;
  }
  
  .social-icons-footer {
    justify-content: center;
  }
  
  .social-footer p {
    text-align: center;
  }
}

/* Tablet Portrait & Mobile */
@media (max-width: 767px) {
  footer {
    padding: 3rem 0 0;
  }
  
  .container-footer {
    padding: 0 1rem;
  }
  
  .footer-content-footer {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
  }
  
  .footer-section-footer h3 {
    margin-bottom: 1.25rem;
  }
  
  .social-footer {
    text-align: center;
  }
  
  .social-icons-footer {
    justify-content: center;
    gap: 0.75rem;
  }
  
  .social-icons-footer a {
    width: 2.75rem;
    height: 2.75rem;
  }
  
  .social-footer p {
    text-align: center;
  }
  
  .footer-seo-content-footer {
    margin: 2rem 0;
    padding: 1.5rem 1rem;
  }
  
  .footer-bottom-footer {
    padding: 1.5rem 1rem;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .container-footer {
    padding: 0 1rem;
  }
  
  .footer-content-footer {
    gap: 1.5rem;
  }
  
  .social-icons-footer a {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  .social-icons-footer i {
    font-size: 1rem;
  }
  
  .footer-seo-content-footer {
    padding: 1.25rem 0.75rem;
  }
  
  .footer-bottom-footer {
    padding: 1.5rem 0.75rem;
  }
}

/* Very Small Mobile */
@media (max-width: 360px) {
  .container-footer {
    padding: 0 0.75rem;
  }
  
  .social-icons-footer {
    gap: 0.5rem;
  }
  
  .social-icons-footer a {
    width: 2.25rem;
    height: 2.25rem;
  }
  
  .social-icons-footer i {
    font-size: 0.9rem;
  }
}

/* Performance Optimizations */
@media (prefers-reduced-motion: reduce) {
  *,
  ::before,
  ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Animations - Only for devices that support them */
@media (prefers-reduced-motion: no-preference) {
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(2rem);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .footer-section-footer {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
  }

  .footer-section-footer:nth-child(1) { animation-delay: 0.1s; }
  .footer-section-footer:nth-child(2) { animation-delay: 0.2s; }
  .footer-section-footer:nth-child(3) { animation-delay: 0.3s; }
  .footer-section-footer:nth-child(4) { animation-delay: 0.4s; }
}

/* Hover Effects - Only for devices with hover capability */
@media (hover: hover) and (pointer: fine) {
  .footer-section-footer:hover h3::after {
    width: 5rem;
    background: linear-gradient(90deg, #A5D6A7, #C8E6C9);
    transition: all 0.3s ease;
  }
}

/* Focus States for Accessibility */
.footer-section-footer a:focus,
.social-icons-footer a:focus {
  outline: 2px solid #81C784;
  outline-offset: 3px;
  border-radius: 4px;
  background: rgba(129, 199, 132, 0.15);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  footer {
    background: #0d4f1c;
  }
  
  .footer-section-footer h3::after {
    background: #81C784;
  }
  
  .social-icons-footer a {
    border-color: #81C784;
  }
}

/* Print styles */
@media print {
  footer {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
  }
  
  .social-icons-footer,
  .footer-seo-content-footer {
    display: none;
  }
}
