.custom-footer {
    background-color: var(--footer-bg, #ffffff);
    padding: 40px 20px 20px;
    position: relative;
    overflow: hidden;
    margin-top: 60px;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: auto;
}

.footer-left .footer-logo {
    max-width: 300px;
}

.footer-tagline {
    font-size: 15px;
    color: #555;
    margin: 0;
}

.footer-two-col{
    display: contents;
}

.footer-column h4 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column ul li a {
    text-decoration: none;
    color: #555;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #0073aa;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #ddd;
    padding-top: 10px;
    margin-top: 30px;
    font-size: 14px;
    color: #777;
}

/* Decorative right-side wave (SVG background) */
.custom-footer::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: url('../images/footer-wave.svg') no-repeat right center;
    background-size: contain;
    pointer-events: none;
}

/* keep wave graphic responsive */
.custom-footer::after {
    width: min(36vw, 420px);
    opacity: 0.95;
  }
  
  /* better spacing on small screens */
  @media (max-width: 900px) {
    .footer-container {
      grid-template-columns: 1fr 1fr;
    }
    .custom-footer::after {
      width: 55vw;
    }
  }
  @media (max-width: 600px) {
    .footer-container {
      grid-template-columns: 1fr;
    }
    .footer-left {
      order: -1;
    }
    .custom-footer::after {
      width: 70vw;
      opacity: 0.85;
    }
  }

  
  /* Base layout (already in your code) */
.footer-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: auto;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 0;
        text-align: center;
    }
    .footer-left {
        grid-column: span 2;
    }
    .footer-left .footer-logo {
        margin: 0 auto 10px;
    }
}

@media (max-width: 768px) {
    .footer-container {
        display: grid;
        grid-template-columns: 1fr; /* Base: single column flow */
        gap: 25px;
        text-align: center;
    }

    /* Row 1: Logo + tagline full width */
    .footer-left {
        grid-column: 1 / -1;
    }
    .footer-left .footer-logo {
        margin: 0 auto 10px;
    }
    .footer-tagline {
        margin: 0 auto;
        max-width: 260px;
    }

    /* Row 2: Services + Company (2 equal columns) */
    .footer-two-col {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        text-align: left;
    }
    .footer-two-col .footer-column {
        margin: 0;
        text-align: center;
    }
    .footer-two-col h4 {
        text-align: center;
    }

    /* Row 3: Contact Us full width */
    .footer-contact-col {
        grid-column: 1 / -1;
        text-align: center;
    }
    .footer-contact li {
        justify-content: center;
    }
}

