/* 
 * Footer Component Styles
 * Professional dark blue footer with responsive 4-column layout
 * Uses CSS Grid for flexible layout
 */

/* CSS Variables for easy theming */
:root {
  --primary-blue: #1e3a8a;
  --primary-dark-blue: #1e40af;
  --primary-light-blue: #3b82f6;
  
  --footer-bg: var(--primary-blue);
  --footer-bg-light: var(--primary-dark-blue);
  --footer-text: #ffffff;
  --footer-heading: #93c5fd;
  --footer-link: #dbeafe;
  --footer-link-hover: #ffffff;
  --footer-border: rgba(255, 255, 255, 0.2);
  
  --bottom-bg: var(--primary-dark-blue);
  --bottom-text: #e2e8f0;
  --bottom-link: #93c5fd;
  --bottom-link-hover: #ffffff;
  
  --scroll-top-bg: var(--primary-light-blue);
  --scroll-top-hover: #ffffff;
  
  --transition-speed: 0.3s;
  --border-radius: 8px;
  --spacing-xs: 5px;
  --spacing-sm: 10px;
  --spacing-md: 15px;
  --spacing-lg: 20px;
  --spacing-xl: 30px;
  --spacing-xxl: 40px;
}

/* Base Footer Styles */
.site-footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  padding: 0;
  margin: 0;
  width: 100%;
}

/* Main Footer Container */
.footer-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-xl);
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-xxl) var(--spacing-lg);
}

/* Footer Columns */
.footer-column {
  padding: 0 var(--spacing-sm);
}

/* Column Headings */
.footer-heading {
  color: var(--footer-heading);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-sm);
  border-bottom: 2px solid var(--footer-border);
}

/* Link Lists */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: var(--spacing-sm);
}

.footer-links a {
  color: var(--footer-link);
  text-decoration: none;
  transition: all var(--transition-speed) ease;
  display: block;
  padding: var(--spacing-xs) 0;
}

.footer-links a:hover {
  color: var(--footer-link-hover);
  transform: translateX(5px);
}

/* Contact Section */
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--spacing-md);
  gap: var(--spacing-sm);
}

.contact-icon {
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-icon::before {
  content: "📞";
}

.email-icon::before {
  content: "✉️";
}

.address-icon::before {
  content: "📍";
}

.map-icon::before {
  content: "🗺️";
}

.contact-link {
  color: var(--footer-link);
  text-decoration: none;
  transition: all var(--transition-speed) ease;
}

.contact-link:hover {
  color: var(--footer-link-hover);
  text-decoration: underline;
}

.contact-text {
  color: var(--footer-text);
  line-height: 1.5;
}

.map-link a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--footer-link);
  text-decoration: none;
  transition: all var(--transition-speed) ease;
}

.map-link a:hover {
  color: var(--footer-link-hover);
  text-decoration: underline;
}

/* Social Media Section */
.social-media {
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--footer-border);
}

.social-heading {
  color: var(--footer-heading);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: var(--spacing-md);
}

.social-icons {
  display: flex;
  gap: var(--spacing-md);
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--footer-bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-speed) ease;
  border: 1px solid var(--footer-border);
}

.social-icon.facebook::before {
  content: "f";
  color: #1877f2;
  font-weight: bold;
}

.social-icon.instagram::before {
  content: "📷";
  filter: brightness(0) invert(1);
}

.social-icon.linkedin::before {
  content: "in";
  color: #0077b5;
  font-weight: bold;
}

.social-icons a:hover .social-icon {
  background-color: var(--footer-link-hover);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* Bottom Bar */
.footer-bottom {
  background-color: var(--bottom-bg);
  border-top: 1px solid var(--footer-border);
  padding: var(--spacing-md) 0;
}

.bottom-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.copyright {
  color: var(--bottom-text);
  font-size: 0.9rem;
}

.legal-links {
  display: flex;
  gap: var(--spacing-lg);
}

.legal-links a {
  color: var(--bottom-link);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all var(--transition-speed) ease;
}

.legal-links a:hover {
  color: var(--bottom-link-hover);
  text-decoration: underline;
}

/* Scroll to Top Button */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--scroll-top-bg);
  color: var(--footer-bg);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(100, 255, 218, 0.3);
  transition: all var(--transition-speed) ease;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.arrow-up::before {
  content: "↑";
  font-size: 1.5rem;
  font-weight: bold;
}

.scroll-top:hover {
  background-color: var(--scroll-top-hover);
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.5);
}
.whatsapp-logo-button{
  position: fixed;
    bottom: 80px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 25px;

}

/* Responsive Design */

/* Tablet Styles (2 columns) */
@media screen and (max-width: 1024px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
    padding: var(--spacing-xl) var(--spacing-md);
  }
  
  .footer-column {
    padding: 0;
  }
  
  .footer-heading {
    font-size: 1.2rem;
  }
  
  .social-icons {
    gap: var(--spacing-sm);
  }
  
  .social-icon {
    width: 35px;
    height: 35px;
  }
}

/* Mobile Styles (stacked) */
@media screen and (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    padding: var(--spacing-xl) var(--spacing-sm);
  }
  
  .footer-heading {
    font-size: 1.3rem;
    text-align: center;
  }
  
  .footer-links a,
  .contact-link {
    padding: var(--spacing-sm) 0;
    text-align: center!important;
  }
  
  .contact-item {
    flex-direction: column;
    gap: var(--spacing-xs);
    text-align: center;
    align-items: center;
  }
  
  /* Center the entire Get Contact section on mobile */
  .footer-column:nth-child(4) {
    text-align: center;
  }
  
  .footer-column:nth-child(4) .footer-heading {
    text-align: center;
  }
  
  .footer-column:nth-child(4) .footer-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .contact-icon {
    margin: 0 auto;
  }
  
  .social-media {
    text-align: center;
    margin-top: var(--spacing-lg);
  }
  
  .social-icons {
    justify-content: center;
  }
  
  .bottom-container {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-sm);
  }
  
  .legal-links {
    gap: var(--spacing-md);
  }
  
  .scroll-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

/* Small Mobile */
@media screen and (max-width: 480px) {
  .footer-container {
    padding: var(--spacing-lg) var(--spacing-xs);
  }
  
  .footer-heading {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-md);
  }
  
  .social-icon {
    width: 30px;
    height: 30px;
  }
  
  .scroll-top {
    width: 40px;
    height: 40px;
  }
  
  .arrow-up::before {
    font-size: 1.2rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus Styles */
*:focus {
  outline: 2px solid var(--footer-link-hover);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .site-footer {
    background: #f0f0f0 !important;
    color: #000 !important;
  }
  
  .scroll-top,
  .social-media {
    display: none !important;
  }
  
  .footer-bottom {
    background: #e0e0e0 !important;
    border-top: 1px solid #ccc !important;
  }
}