/* =====================================================
   SHARED ALGORIX FOOTER
   Services / Portfolio / Contact
   Home keeps its existing homepage.css footer for now.
   ===================================================== */


/* Hide Astra default footer on Algorix inner pages */
body.has-algorix-page #colophon,
body.has-algorix-page .site-footer {
    display: none !important;
}


/* =====================================================
   FOOTER WRAPPER
   ===================================================== */

.ax-site-footer {
    position: relative;
    width: 100%;
    overflow: hidden;

    background: #eaf5f7;

    color: #ffffff;
}


/* =====================================================
   NEWSLETTER
   ===================================================== */

.ax-footer-newsletter {
    position: relative;

    padding:
        clamp(65px, 7vw, 100px)
        0
        clamp(100px, 9vw, 145px);

    background: #eaf5f7;

    color: #102838;
}


.ax-footer-newsletter__inner {
    display: grid;

    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(340px, .95fr);

    align-items: center;

    gap: clamp(55px, 8vw, 130px);
}


/* =====================================================
   NEWSLETTER FORM
   ===================================================== */

.ax-newsletter-form {
    position: relative;

    display: grid;

    grid-template-columns:
        minmax(220px, 1fr)
        auto;

    align-items: center;

    gap: 22px;

    padding-left: 95px;
}


.ax-newsletter-icon {
    position: absolute;

    left: 0;
    top: 50%;

    width: 70px;
    height: 70px;

    transform: translateY(-50%);

    opacity: .22;
}


.ax-newsletter-icon svg {
    width: 100%;
    height: 100%;

    fill: none;

    stroke: #6b8e98;

    stroke-width: 2;

    stroke-linecap: round;
    stroke-linejoin: round;
}


.ax-newsletter-field input {
    width: 100%;

    min-height: 54px;

    padding: 0 18px;

    border: 1px solid transparent;

    border-radius: 6px;

    outline: none;

    background: #ffffff;

    color: #173746;

    font-family: inherit;

    font-size: .95rem;

    box-shadow:
        0 6px 18px
        rgba(20, 64, 78, .04);

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}


.ax-newsletter-field input::placeholder {
    color: #47616b;

    opacity: 1;
}


.ax-newsletter-field input:focus {
    border-color: #4190a2;

    box-shadow:
        0 0 0 3px
        rgba(65, 144, 162, .10);
}


.ax-newsletter-button {
    min-height: 54px;

    padding: 0 27px;

    border: 0;

    border-radius: 6px;

    background: #080b0c;

    color: #ffffff;

    font-family: inherit;

    font-size: .95rem;

    font-weight: 800;

    cursor: pointer;

    transition:
        transform .2s ease,
        background .2s ease;
}


.ax-newsletter-button:hover {
    transform: translateY(-2px);

    background: #153640;
}


/* =====================================================
   NEWSLETTER TITLE
   ===================================================== */

.ax-newsletter-copy {
    text-align: center;
}


.ax-newsletter-eyebrow {
    display: block;

    margin-bottom: 12px;

    color: #27758a;

    font-size: .88rem;

    font-weight: 800;

    letter-spacing: .03em;

    text-transform: uppercase;
}


.ax-newsletter-copy h2 {
    margin: 0;

    color: #0c1114;

    font-family:
        "Rajdhani",
        "Exo 2",
        Inter,
        system-ui,
        sans-serif;

    font-size:
        clamp(
            2.1rem,
            3.5vw,
            3.5rem
        );

    font-weight: 800;

    line-height: 1;
}


/* =====================================================
   MAIN FOOTER
   ===================================================== */

.ax-footer-main {
    position: relative;

    margin-top: -55px;

    padding:
        clamp(125px, 11vw, 165px)
        0
        0;

    background:
        linear-gradient(
            100deg,
            #086a80 0%,
            #075d73 36%,
            #073b53 100%
        );

    -webkit-mask-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 520' preserveAspectRatio='none'%3E%3Cpath fill='white' d='M0 155C30 75 105 21 210 17C400 11 586 70 780 60C872 55 940 42 1000 48V520H0Z'/%3E%3C/svg%3E");

    mask-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 520' preserveAspectRatio='none'%3E%3Cpath fill='white' d='M0 155C30 75 105 21 210 17C400 11 586 70 780 60C872 55 940 42 1000 48V520H0Z'/%3E%3C/svg%3E");

    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;

    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}


.ax-footer-main::before {
    content: "";

    position: absolute;

    inset: 0;

    pointer-events: none;

    opacity: .12;

    background-image:
        linear-gradient(
            rgba(255,255,255,.10) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.10) 1px,
            transparent 1px
        );

    background-size: 56px 56px;
}


/* =====================================================
   FOOTER GRID
   ===================================================== */

.ax-footer-grid {
    position: relative;

    z-index: 2;

    display: grid;

    grid-template-columns:
        minmax(250px, .85fr)
        minmax(320px, 1.3fr)
        minmax(250px, .85fr);

    gap: clamp(50px, 7vw, 110px);

    align-items: start;

    padding-bottom:
        clamp(60px, 7vw, 90px);
}


.ax-footer-column h3 {
    margin: 0 0 28px;

    color: #ffffff;

    font-size: 1.05rem;

    font-weight: 800;
}


/* =====================================================
   FOOTER LINKS
   ===================================================== */

.ax-footer-link-columns {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0,1fr));

    gap: 34px;
}


.ax-footer-link-columns nav {
    display: grid;

    align-content: start;

    gap: 17px;
}


.ax-footer-link-columns a {
    color: #e6f3f6;

    font-size: .95rem;

    text-decoration: none;

    transition:
        color .2s ease,
        transform .2s ease;
}


.ax-footer-link-columns a:hover {
    color: #9be1ef;

    transform: translateX(3px);
}


/* =====================================================
   FOOTER BRAND
   ===================================================== */

.ax-footer-brand {
    text-align: center;
}


.ax-footer-logo {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 22px;

    color: #ffffff;

    text-decoration: none;
}


.ax-footer-logo__mark {
    width: 42px;
    height: 42px;

    display: grid;

    place-items: center;

    border: 2px solid rgba(255,255,255,.9);

    border-radius: 50%;

    color: #ffffff;

    font-family:
        "Rajdhani",
        Inter,
        sans-serif;

    font-size: 1.45rem;

    font-weight: 800;
}


.ax-footer-logo__text {
    display: grid;

    text-align: left;

    line-height: .95;
}


.ax-footer-logo__text strong {
    font-size: 1.2rem;

    letter-spacing: .04em;
}


.ax-footer-logo__text small {
    margin-top: 5px;

    color: #bcdce3;

    font-size: .62rem;

    letter-spacing: .18em;
}


.ax-footer-brand p {
    max-width: 460px;

    margin:
        0 auto
        27px;

    color: #d9eaee;

    font-size: .95rem;

    line-height: 1.75;
}


/* =====================================================
   SOCIAL ICONS
   ===================================================== */

.ax-footer-social {
    display: flex;

    justify-content: center;

    gap: 10px;
}


.ax-footer-social a {
    width: 38px;
    height: 38px;

    display: grid;

    place-items: center;

    border-radius: 6px;

    background: #ffffff;

    color: #0b3040;

    font-size: .88rem;

    font-weight: 800;

    text-decoration: none;

    transition:
        transform .2s ease,
        background .2s ease;
}


.ax-footer-social a:hover {
    transform: translateY(-3px);

    background: #bceaf3;
}


/* =====================================================
   CONTACT
   ===================================================== */

.ax-footer-contact {
    text-align: right;
}


.ax-footer-contact-list {
    display: grid;

    gap: 13px;
}


.ax-footer-contact-list > a,
.ax-footer-contact-list > div {
    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 13px;

    color: #e5f3f6;

    font-size: .91rem;

    text-decoration: none;
}


.ax-footer-contact-list i {
    width: 37px;
    height: 37px;

    flex: 0 0 37px;

    display: grid;

    place-items: center;

    border-radius: 7px;

    background: #1694b2;
}


.ax-footer-contact-list svg {
    width: 19px;
    height: 19px;

    fill: none;

    stroke: #ffffff;

    stroke-width: 1.8;

    stroke-linecap: round;
    stroke-linejoin: round;
}


.ax-footer-project-button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    margin-top: 26px;

    min-height: 44px;

    padding: 0 23px;

    border: 1px solid rgba(255,255,255,.18);
    border-radius: 6px;

    background: #102f39;

    color: #ffffff !important;

    font-size: .88rem;

    font-weight: 800;

    text-decoration: none !important;

    transition:
        transform .2s ease,
        color .2s ease,
        background .2s ease,
        border-color .2s ease;
}


.ax-footer-project-button:visited {
    color: #ffffff !important;
}


.ax-footer-project-button:hover,
.ax-footer-project-button:focus-visible {
    transform: translateY(-2px);

    background: #ffffff;

    color: #103844 !important;

    border-color: #ffffff;

    text-decoration: none !important;
}


/* =====================================================
   BOTTOM BAR
   ===================================================== */

.ax-footer-bottom {
    position: relative;

    z-index: 2;

    min-height: 74px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

    border-top:
        1px solid
        rgba(255,255,255,.08);

    color: #ffffff;
}


.ax-footer-bottom p {
    margin: 0;

    color: #ffffff;

    font-size: .87rem;

    font-weight: 700;
}


.ax-footer-bottom > div {
    display: flex;

    gap: 22px;
}


.ax-footer-bottom a {
    color: #ffffff;

    font-size: .87rem;

    font-weight: 700;

    text-decoration: none;
}


.ax-footer-bottom a:hover {
    color: #9ee3f0;
}


/* =====================================================
   FOOTER TABLET / IPAD
   ===================================================== */

@media (max-width: 920px) {

    .ax-footer-newsletter {
        padding:
            70px
            0
            120px;
    }


    .ax-footer-newsletter__inner {
        grid-template-columns: 1fr;

        gap: 40px;
    }


    .ax-newsletter-copy {
        grid-row: 1;

        text-align: left;
    }


    .ax-newsletter-form {
        grid-row: 2;

        max-width: 700px;

        padding-left: 80px;
    }


    .ax-footer-main {
        margin-top: -60px;

        padding-top: 150px;

        -webkit-mask-image:
            url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 900' preserveAspectRatio='none'%3E%3Cpath fill='white' d='M0 120C90 35 255 25 445 47C650 72 820 72 1000 45V900H0Z'/%3E%3C/svg%3E");

        mask-image:
            url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 900' preserveAspectRatio='none'%3E%3Cpath fill='white' d='M0 120C90 35 255 25 445 47C650 72 820 72 1000 45V900H0Z'/%3E%3C/svg%3E");
    }


    .ax-footer-grid {
        grid-template-columns:
            repeat(2, minmax(0,1fr));

        gap: 55px 45px;
    }


    .ax-footer-brand {
        grid-column: 1 / -1;

        grid-row: 1;
    }


    .ax-footer-links {
        grid-row: 2;
    }


    .ax-footer-contact {
        grid-row: 2;
    }

}


/* =====================================================
   FOOTER MOBILE
   ===================================================== */

@media (max-width: 620px) {

    .ax-footer-newsletter {
        padding:
            60px
            0
            105px;
    }


    .ax-newsletter-copy {
        text-align: center;
    }


    .ax-newsletter-form {
        grid-template-columns: 1fr;

        gap: 12px;

        padding-left: 0;
    }


    .ax-newsletter-icon {
        display: none;
    }


    .ax-newsletter-button {
        width: 100%;
    }


    .ax-footer-main {
        padding-top: 130px;

        -webkit-mask-image:
            url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1500' preserveAspectRatio='none'%3E%3Cpath fill='white' d='M0 105C150 28 390 23 610 52C780 74 905 71 1000 55V1500H0Z'/%3E%3C/svg%3E");

        mask-image:
            url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1500' preserveAspectRatio='none'%3E%3Cpath fill='white' d='M0 105C150 28 390 23 610 52C780 74 905 71 1000 55V1500H0Z'/%3E%3C/svg%3E");
    }


    .ax-footer-grid {
        grid-template-columns: 1fr;

        gap: 48px;

        text-align: center;
    }


    .ax-footer-brand,
    .ax-footer-links,
    .ax-footer-contact {
        grid-column: auto;

        grid-row: auto;
    }


    .ax-footer-link-columns {
        max-width: 320px;

        margin-inline: auto;

        text-align: left;
    }


    .ax-footer-contact {
        text-align: center;
    }


    .ax-footer-contact-list > a,
    .ax-footer-contact-list > div {
        justify-content: center;

        flex-direction: column-reverse;

        gap: 9px;
    }


    .ax-footer-project-button {
        width: 100%;
    }


    .ax-footer-bottom {
        min-height: 110px;

        flex-direction: column;

        justify-content: center;

        text-align: center;

        gap: 13px;
    }


    .ax-footer-bottom > div {
        justify-content: center;

        flex-wrap: wrap;
    }

}


/* =====================================================
   VERY SMALL MOBILE
   ===================================================== */

@media (max-width: 390px) {

    .ax-footer-link-columns {
        grid-template-columns: 1fr;

        text-align: center;

        gap: 16px;
    }

}
/* =====================================================
   NEWSLETTER STATUS MESSAGE
   ===================================================== */

.ax-newsletter-message {
    width: fit-content;
    max-width: 100%;

    display: flex;
    align-items: center;
    gap: 9px;

    margin: 14px 0 0 95px;
    padding: 10px 16px;

    border-radius: 10px;

    font-size: .86rem;
    font-weight: 700;
    line-height: 1.4;

    box-shadow:
        0 8px 24px
        rgba(18, 63, 76, .08);

    animation:
        axNewsletterMessage
        5s
        ease
        forwards;
}


/* SUCCESS */

.ax-newsletter-message--success {
    color: #176b59;

    border:
        1px solid
        rgba(23, 107, 89, .18);

    background:
        rgba(232, 248, 243, .96);
}

.ax-newsletter-message--success::before {
    content: "✓";

    width: 22px;
    height: 22px;

    flex: 0 0 22px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    color: #ffffff;
    background: #23866f;

    font-size: 12px;
    font-weight: 900;
}


/* ERROR */

.ax-newsletter-message--error {
    color: #9a3434;

    border:
        1px solid
        rgba(162, 59, 59, .16);

    background:
        rgba(255, 241, 241, .96);
}

.ax-newsletter-message--error::before {
    content: "!";

    width: 22px;
    height: 22px;

    flex: 0 0 22px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    color: #ffffff;
    background: #b94b4b;

    font-size: 12px;
    font-weight: 900;
}


/* =====================================================
   AUTO DISAPPEAR
   ===================================================== */

@keyframes axNewsletterMessage {

    0% {
        opacity: 0;
        transform: translateY(-6px);
    }

    8% {
        opacity: 1;
        transform: translateY(0);
    }

    78% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(-6px);
        visibility: hidden;
    }

}


/* =====================================================
   MOBILE
   ===================================================== */

@media (max-width: 620px) {

    .ax-newsletter-message {
        margin:
            14px
            auto
            0;

        text-align: left;
    }

}