/* Footer wrapper */
.site-footer {
    position: relative;
    margin: 0;
    padding: 0;
    color: #fff;
}

/* Background (use your existing footer background image/gradient setup if you have one) */
.site-footer .footer-inner {
    padding: 100px 0 40px;
    /* Example background hooks; replace with your theme's approach */
    /* background: var(--color-navy); */
    background: #00184d;
}

/* Top area: 3 columns */
.footer-top {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.2fr;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Columns */
.footer-col--left {
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.footer-col--middle {
    display: flex;
    justify-content: center;
}
.footer-col--right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 18px;
}

/* Logo */
.footer-logo img {
    max-width: 340px;
    width: 100%;
    height: auto;
}

/* Address */
.footer-address {
    font-size: 20px;
    line-height: 32px;
    opacity: 0.95;
}
.footer-address-line {
    margin: 0;
}

/* Primary footer menu (middle) */
.footer-nav--primary .footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

.footer-nav--primary .footer-menu li {
    margin: 0;
    padding: 0;
}

.footer-nav--primary .footer-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 19px;
    font-family: "MicrogrammaDBolExt",var(--font-MDExtBold) , sans-serif;
}

.footer-nav--primary .footer-menu a:hover,
.footer-nav--primary .footer-menu a:focus {
    color: var(--color-orange);
}

/* Right CTA */
.footer-cta{
    text-align: right;
    font-family: var(--font-MDExtBold);
}
.footer-cta-label {
    font-weight: 400;
    text-align: right;
    font-size: 20px;
}

.footer-phone {
    display: inline-block;
    margin-top: 6px;
    font-size: 31px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #fff;
    text-decoration: none;
}

.footer-phone:hover,
.footer-phone:focus {
    color: var(--color-orange);
}

/* Social icons */
.footer-social {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: flex-end;
    margin-top: 8px;
}

.footer-social-link {
  width: 48px;                 /* adjust to taste */
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: var(--white);
  border-radius: 50%;
  text-decoration: none;
}

.footer-social-link:hover,
.footer-social-link:focus {
    border-color: var(--color-orange);
}

.footer-social-link svg,
.footer-social-link i{
  color: var(--color-darkBlue);
  fill: var(--color-darkBlue);
  font-size: 30px;
}

.footer-social-link:hover svg,
.footer-social-link:hover i{
  color: white;
  fill: var(--color-orange);
}

.footer-social-link:hover{
    background: var(--color-orange);
}

/* 
.footer-social-link svg,
.footer-social-link img {
    width: 20px;
    height: 20px;
    display: block;
} */

/* Orange divider line */
.footer-divider {
    margin: 40px 0 32px;
    height: 2px;
    background: var(--color-orange);
    opacity: 0.95;
}

/* Bottom row */
.footer-bottom {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
}

.footer-copyright {
    font-size: 17px;
    opacity: 0.95;
    line-height: 23px;
}

.footer-copyright a {
    color: #fff;
    text-decoration: none;
}

.footer-copyright a:hover,
.footer-copyright a:focus {
    color: var(--color-orange);
}

/* Utility menu (bottom right) */
.footer-nav--utility .footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 48px;
    align-items: center;
}

.footer-nav--utility .footer-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 17px;
    opacity: 0.95;
    line-height: 23px;
}

.footer-nav--utility .footer-menu a:hover,
.footer-nav--utility .footer-menu a:focus {
    color: var(--color-orange);
}

/* Footer wave overlay (50% opacity) */
.site-footer .footer-inner{
  position: relative;
  overflow: hidden; /* keeps the wave from spilling out */
}

.site-footer .footer-inner::before{
  content: "";
  position: absolute;
  inset: 0;

  /* comes from the inline CSS variable in footer.php */
  background-image: var(--footer-wave-url);
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: 120% auto; /* tweak if needed */

  opacity: 0.7;
  pointer-events: none;
  z-index: 0;
}

/* Keep footer content above the wave */
.site-footer .footer-inner > .container{
  position: relative;
  z-index: 1;
}


/* Responsive */
@media (max-width: 1200px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .footer-col--middle {
        justify-content: center;
    }

    .footer-col--right {
        align-items: center;
    }

    .footer-cta-label {
        text-align: center;
    }

    .footer-phone {
        font-size: 32px;
        text-align: center;
    }

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

    .footer-bottom {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
        gap: 50px;
    }

    .footer-nav--utility .footer-menu {
        justify-content: center;
        flex-wrap: wrap;
        gap: 16px 22px;
        flex-direction: column;
    }

    .site-footer .footer-inner::before{
        background-position: center center;
        background-size: cover;
    }

    body:not(.home) .common-title{
        padding-bottom: 38px;
    }
}

@media (max-width: 576px) {
    .site-footer .footer-inner {
        padding: 55px 0 30px;
    }

    .footer-logo img {
        max-width: 260px;
    }

    .footer-phone {
        font-size: 28px;
    }

    .footer-nav--primary .footer-menu a {
        font-size: 19px;
    }

    .footer-nav--primary .footer-menu{
        text-align: center;
    }
}
