/* ================================================================
   FMHSYNC FOOTER
   ================================================================
   
   This file contains all footer-related styles.
   Used across: Landing Page, Services, About, Contact
   
   TABLE OF CONTENTS:
   1. Variables & Imports
   2. Footer Container
   3. Footer Grid & Layout
   4. Footer Brand Section
   5. Footer Columns & Links
   6. Footer Social Links
   7. Footer Bottom Bar
   8. Animations
   ================================================================ */

/* ================================================================
   1. VARIABLES & IMPORTS
   ================================================================ */

:root {
  /* Primary Palette */
  --teal: #009688;
  --teal-dark: #00796b;
  --teal-darker: #004d40;
  --teal-light: #b2dfdb;
  --teal-bg: #e0f2f1;
  
  /* Neutrals */
  --white: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #eeeeee;
  --gray-500: #9e9e9e;
  --gray-600: #757575;
  --gray-800: #424242;
  --dark: #1a1a2e;
  
  /* Text Colors */
  --text-gray: #666666;
  
  /* Gradients */
  --gradient-teal: linear-gradient(135deg, #009688 0%, #00796b 50%, #004d40 100%);
  
  /* Shadows */
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  
  /* Transitions */
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ================================================================
   2. FOOTER CONTAINER
   ================================================================ */

.footer {
  background: var(--white);
  color: var(--text-gray);
  padding: 3rem 0 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.15);
}

.footer::after {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 150, 136, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.footer .container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ================================================================
   3. FOOTER GRID & LAYOUT
   ================================================================ */

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

/* ================================================================
   4. FOOTER BRAND SECTION
   ================================================================ */

.footer-brand .nav-logo {
  margin-bottom: 1rem;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.6rem;
  font-weight: 800;
  background: var(--gradient-teal);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
  text-decoration: none;
}

.footer-brand .nav-logo .logo-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  object-fit: contain;
  transition: var(--transition);
}

.footer-brand p {
  font-size: 0.95rem;
  color: var(--text-gray);
  opacity: 0.8;
  line-height: 1.8;
  max-width: 320px;
}

/* ================================================================
   5. FOOTER SOCIAL LINKS
   ================================================================ */

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

.footer-social a {
  width: 45px;
  height: 45px;
  background: var(--gray-100);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-gray);
  transition: var(--transition-bounce);
  border: 1px solid var(--gray-200);
  text-decoration: none;
}

.footer-social a:hover {
  background: var(--gradient-teal);
  color: var(--white);
  transform: translateY(-6px) rotate(8deg);
  box-shadow: 0 10px 30px rgba(0, 150, 136, 0.4);
  border-color: transparent;
}

/* Social Network Specific Colors */
.footer-social a.facebook:hover {
  background: #1877F2;
  box-shadow: 0 10px 30px rgba(24, 119, 242, 0.4);
}

.footer-social a.instagram:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  box-shadow: 0 10px 30px rgba(220, 39, 67, 0.4);
}

.footer-social a.messenger:hover {
  background: linear-gradient(135deg, #00B2FF 0%, #006AFF 100%);
  box-shadow: 0 10px 30px rgba(0, 132, 255, 0.4);
}

.footer-social a.tiktok:hover {
  background: #000000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* ================================================================
   6. FOOTER COLUMNS & LINKS
   ================================================================ */

.footer-col h4 {
  color: var(--dark);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  padding-left: 0.3rem;
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 30%;
  width: 30px;
  height: 3px;
  background: var(--gradient-teal);
  border-radius: 2px;
}

.footer-col ul {
  list-style: none;
}

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

.footer-col ul li a {
  font-size: 0.95rem;
  color: var(--text-gray);
  opacity: 0.8;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.footer-col ul li a::before {
  content: '';
  width: 0;
  height: 2px;
  background: var(--teal);
  transition: var(--transition);
}

.footer-col ul li a:hover {
  opacity: 1;
  color: var(--teal);
  transform: translateX(8px);
}

.footer-col ul li a:hover::before {
  width: 12px;
}

/* ================================================================
   7. FOOTER BOTTOM BAR
   ================================================================ */

.footer-bottom {
  border-top: 1px solid var(--gray-200);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-gray);
  opacity: 0.8;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.footer-bottom .heart {
  color: #e74c3c;
  animation: footerHeartbeat 1.5s ease-in-out infinite;
}

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

.footer-bottom-links a {
  color: var(--text-gray);
  opacity: 0.8;
  transition: var(--transition);
  text-decoration: none;
}

.footer-bottom-links a:hover {
  opacity: 1;
  color: var(--teal);
}

/* ================================================================
   RESPONSIVE DESIGN
   ================================================================ */

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-bottom-links {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-col h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-brand p {
    margin: 0 auto;
  }

  .footer-brand .nav-logo {
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-bottom-links {
    justify-content: center;
    gap: 1rem;
  }
}

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

  .footer-grid {
    gap: 1.5rem;
    margin-bottom: 2rem;
  }

  .footer-col h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .footer-col ul li {
    margin-bottom: 0.7rem;
  }

  .footer-col ul li a {
    font-size: 0.9rem;
  }

  .footer-brand p {
    font-size: 0.9rem;
  }

  .footer-bottom {
    font-size: 0.85rem;
  }

  .footer-bottom-links {
    gap: 0.8rem;
    flex-wrap: wrap;
  }

  .footer-social {
    gap: 0.7rem;
  }

  .footer-social a {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
}
