/* === FOOTER WRAPPER === */
.footer {
    background-color: #ffffff;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.05); /* subtle top shadow like header */
    padding: 3rem 1rem 2rem;
    font-family: 'Inter', sans-serif;
    color: #1f2937;
    font-size: 14px;
  }
  
  /* === FOOTER CONTAINER === */
  .footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 40px;
  }
  
  /* === COLUMN HEADERS === */
  .footer-column h4 {
    font-size: 16px;
    font-weight: 600;
    color: #0f766e;
    margin-bottom: 12px;
  }
  
  /* === COLUMN LIST === */
  .footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .footer-column ul li {
    margin-bottom: 8px;
  }
  
  .footer-column ul li a {
    text-decoration: none;
    color: #334155;
    transition: all 0.2s ease-in-out;
  }
  
  .footer-column ul li a:hover {
    color: #065f46;
    text-decoration: underline;
  }
  
  /* === NEWSLETTER FORM === */
  .newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
  }
  
  .newsletter-form input[type="email"] {
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    font-size: 14px;
    width: 100%;
    outline: none;
  }
  
  .newsletter-form button {
    padding: 10px 12px;
    background-color: #10b981;
    border: none;
    color: white;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .newsletter-form button:hover {
    background-color: #047857;
  }
  
  /* === SOCIAL ICONS === */
  .social-icons {
    display: flex;
    gap: 12px;
    font-size: 18px;
    color: #475569;
  }
  
  .social-icons a {
    color: #475569;
    transition: color 0.3s ease;
  }
  
  .social-icons a:hover {
    color: #0f766e;
  }
  
  /* === FOOTER COPYRIGHT === */
  .footer-bottom {
    text-align: center;
    font-size: 13px;
    color: #6b7280;
    margin-top: 2rem;
    border-top: 1px solid #e2e8f0;
    padding-top: 1.5rem;
  }
  
  /* === BACK TO TOP BUTTON === */
  #backToTop {
    position: fixed;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%) scale(0.50);
    padding: 14px 18px;
    background-color: rgba(16, 185, 129, 0.7); /* matching green, slightly transparent */
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: none;
    z-index: 9999;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.3s ease, background-color 0.3s ease;
  }
  
  #backToTop.show {
    display: block;
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
  
  #backToTop:hover {
    background-color: rgba(4, 120, 87, 0.85);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  }
  
  .coming-soon-popup {
    position: absolute;
    background-color: #10b981;
    color: white;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 500;
    border-radius: 10px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 9999;
    pointer-events: none;
  }
  
  .coming-soon-popup::after {
    content: "";
    position: absolute;
    top: 10px;
    left: -10px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent #10b981 transparent transparent;
  }
  
  .coming-soon-popup.show {
    opacity: 1;
    transform: translateY(0);
  }

  @media screen and (max-width: 1024px) {
  .footer-container {
    display: grid;                         /* 🔄 Switch to grid */
    grid-template-columns: repeat(2, 1fr); /* ✅ Two equal columns */
    gap: 40px;
    justify-items: center;
    align-items: start;
    text-align: left;
    padding: 0 20px;
    max-width: 100%; /* Optional: prevent stretching beyond screen */
  }

  .footer-column {
    width: 100%;
    max-width: 400px;
  }

  .social-icons {
    justify-content: center;
  }

  .newsletter-form {
    align-items: flex-start;
    width: 100%;
  }

  .newsletter-form input[type="email"],
  .newsletter-form button {
    max-width: 100%;
    width: 100%;
  }
}

  
 @media screen and (max-width: 480px) {
  .footer-container {
    display: grid;                          /* ⬅️ Must override 1024px grid */
    grid-template-columns: 1fr;             /* ⬅️ Force single column */
    gap: 30px;
    justify-items: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
  }

  .footer-column {
    width: 100%;
    max-width: 300px;
  }

  .social-icons {
    justify-content: center;
  }

  .newsletter-form {
    align-items: center;
    width: 100%;
  }

  .newsletter-form input[type="email"],
  .newsletter-form button {
    max-width: 320px;
    width: 100%;
  }
}
