/* Aivexaon site footer (includes/footer.php). Website palette: teal #008080 / #006565, cyan #00e5e5, ink #27272e. */
.ax-footer {
    --ax-bg: #ecf2f6;
    --ax-ink: #27272e;
    --ax-muted: #525260;
    --ax-accent: #008080;
    --ax-accent-2: #00b3b3;
    --ax-line: #d5dfe6;
    background: var(--ax-bg);
    border-top: 4px solid transparent;
    border-image: linear-gradient(90deg, #006565, #008080 50%, #00e5e5) 1;
    color: var(--ax-ink);
    font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.6;
}

.ax-footer__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 64px 24px 0;
}

.ax-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr 1.4fr;
    gap: 40px;
}

/* Grid items must be allowed to shrink, or long text (the address) widens the page on phones. */
.ax-footer__grid > * {
    min-width: 0;
    overflow-wrap: anywhere;
}

.ax-footer__logo img {
    display: block;
    height: 48px;
    width: auto;
    max-width: 100%;
}

.ax-footer__about {
    margin: 18px 0 20px;
    color: var(--ax-muted);
    max-width: 320px;
}

.ax-footer__social {
    display: flex;
    gap: 10px;
}

.ax-footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    color: var(--ax-accent);
    box-shadow: 0 2px 8px rgba(11, 31, 77, .08);
    transition: background .2s, color .2s, transform .2s;
}

.ax-footer__social a:hover,
.ax-footer__social a:focus-visible {
    background: var(--ax-accent);
    color: #fff;
    transform: translateY(-2px);
}

.ax-footer__social svg {
    width: 18px;
    height: 18px;
}

/* The theme sizes every h3 with !important on small screens, so these must be !important too. */
.ax-footer .ax-footer__title {
    position: relative;
    margin: 6px 0 22px;
    padding-bottom: 12px;
    font-size: 18px !important;
    line-height: 1.3 !important;
    font-weight: 600;
    color: var(--ax-ink);
}

.ax-footer__title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 36px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--ax-accent), var(--ax-accent-2));
}

.ax-footer__col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ax-footer__col li {
    margin: 0 0 12px;
}

.ax-footer a {
    color: var(--ax-muted);
    text-decoration: none;
    transition: color .2s;
}

.ax-footer a:hover,
.ax-footer a:focus-visible {
    color: var(--ax-accent);
}

.ax-footer__contact li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.ax-footer__contact svg {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin-top: 3px;
    color: var(--ax-accent-2);
}

.ax-footer__contact strong {
    color: var(--ax-ink);
    font-weight: 600;
}

.ax-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin-top: 48px;
    padding: 22px 0 26px;
    border-top: 1px solid var(--ax-line);
    color: var(--ax-muted);
    font-size: 14px;
}

.ax-footer__bottom p {
    margin: 0;
}

.ax-footer__legal {
    display: flex;
    gap: 24px;
}

@media (max-width: 1024px) {
    .ax-footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .ax-footer__inner {
        padding-top: 48px;
    }

    .ax-footer__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .ax-footer__logo img {
        height: 42px;
    }

    .ax-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        padding-bottom: 88px;   /* clear the floating WhatsApp button */
    }
}
