/* 
  © 2025 Trexon Solutions Pvt Ltd. All rights reserved. 
  Unauthorized copying or distribution is prohibited.
*/
/* Footer layout */

footer#footer .container {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
}

footer#footer .the-logo-pattern {
    width: 100%;
    position: absolute;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    top: 0;
    left: 0;
    height: 100%;
}

footer#footer .the-logo-pattern svg {
    height: auto;
    width: 100%;
    display: block;
}

footer#footer .the-logo-pattern svg path {
    fill: var(--grey-dark);
}

.footer-content {
    width: 100%;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.footer-block h4 {
    margin-bottom: 12px;
}

.footer-block.newsletter {
    padding-right: 8%;
}

.footer-block.newsletter form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: calc(var(--column-gap) * 1.55);
}

.footer-block.newsletter .inputs {
    position: relative;
}

.footer-block.newsletter .inputs * {
    height: 60px;
    border-radius: 60px;
}

.footer-block.newsletter input[type="text"] {
    width: 100%;
    padding: 28px 22px;
    padding-right: 200px;
    background-color: transparent;
    border: 2px solid var(--primary-regular);
    color: var(--white);
    -webkit-appearance: none;
    min-height: 68px;
}

.footer-block.newsletter *::placeholder {
    font-size: var(--body-size);
    color: var(--grey-medium);
}

.footer-block.newsletter button {
    color: var(--white);
    font-size: var(--body-size);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-regular);
    width: calc(200px - 8px);
    max-height: calc(100% - (8px * 2));
    border-radius: 100px;
    right: 8px;
    top: 8px;
    position: absolute;
}

.footer-block.newsletter .aceptance {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-block.newsletter .aceptance label {
    font-size: var(--smaller-size);
    color: var(--grey-medium);
    line-height: 115%;
    display: flex;
    align-items: flex-start;
    padding-left: 18px;
    margin-bottom: 6px;
}

.footer-block.newsletter .aceptance label input {
    cursor: pointer;
}

.footer-block.newsletter .aceptance label:hover span a {
    color: var(--white);
}

.footer-block.newsletter .aceptance label:first-of-type {
    margin-top: 10px;
}

.footer-block.newsletter .aceptance label input {
    margin-right: 8px;
    margin-top: 2px;
}

.footer-block li,
.footer-block p,
.footer-block a,
.footer-block small,
.footer-block small strong,
.footer-block small b {
    font-size: var(--small-size);
    line-height: 138%;
    color: var(--grey-light);
}

.footer-block a {
    transition: var(--smooth);
    font-weight: 400;
}

.footer-block a:hover {
    color: var(--white);
}

.col-5.footer-block h4,
.col-6.footer-block h4,
.col-7.footer-block h4,
.col-8.footer-block h4 {
    /* margin-top: var(--column-gap); */
    margin-bottom: calc(var(--column-gap) / 2);
}

.footer-block.col-1.legal ul.footer-menu {
    display: inline-flex;
    gap: var(--column-gap);
    justify-content: flex-end;
}

ul.footer-menu.policies {
    margin-top: var(--column-gap);
}

ul.footer-menu.policies *,
.copyright * {
    color: var(--grey-medium) !important;
    font-size: var(--smaller-size) !important;
}

ul.footer-menu.policies a:hover {
    color: var(--grey-light) !important;
}

.copyright {
    margin-top: calc(var(--column-gap) / 2.5);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

ul#menu-footer-menu,
ul.footer-menu {
    display: flex;
    flex-direction: column;
    gap: calc(var(--column-gap) / 3.68);
}

ul#menu-footer-menu li.menu-item,
ul.footer-menu li.menu-item {
    font-weight: 300;
}

ul#menu-footer-menu li.current_page_item a {
    color: var(--grey-medium);
}

/* RESPONSIVE */

@media screen and (min-width:1921px) and (max-width:2200px) and (orientation: landscape) {
    .footer-block.newsletter form {
        gap: calc(var(--column-gap) / 2);
    }
    .footer-block.newsletter .aceptance label input {
        margin-right: 16px;
        margin-top: 6px;
    }
}

@media screen and (max-width: 1680px) and (max-height: 1050px) and (orientation: landscape) {
    .footer-block.newsletter {
        padding-right: 2%;
    }
}

@media screen and (max-width: 1366px) and (max-height: 768px) and (orientation: landscape) {
    .footer-block.newsletter {
        padding-right: 0;
    }
    .footer-block.newsletter .inputs * {
        height: 52px;
    }
    .footer-block.newsletter button {
        width: calc(172px - 6px);
    }
}

@media (max-width: 1280px) and (max-height: 800px) and (orientation: landscape) {
    .footer-content {
        width: 100%;
    }
}

@media screen and (max-width: 1024px) and (orientation: portrait) {
    footer#footer {
        padding-bottom: 0;
    }
    footer#footer .container {
        flex-direction: column;
        gap: var(--column-gap);
    }
    footer#footer .the-logo-pattern {
        width: 100%;
        height: 360px;
    }
    .footer-content,
    .footer-block.newsletter {
        width: 100%;
        padding: 0;
    }
    .footer-block.address,
    .footer-block.sitemap,
    .footer-block.social {
        width: calc(33.33% - ((var(--column-gap) * 2) / 3));
    }
}

@media screen and (max-width:520px) and (orientation:portrait) {
    .footer-block.newsletter {
        margin-bottom: calc(var(--column-gap) * 2);
    }
    .footer-block.newsletter .inputs * {
        height: 54px;
    }
    .footer-block.newsletter button {
        width: fit-content;
        padding-inline: var(--column-gap);
    }
    .footer-block:not(.newsletter, .copyright) {
        min-width: 100%;
        padding-bottom: var(--column-gap);
        margin-bottom: var(--column-gap);
        border-bottom: 1px solid var(--grey-dark);
    }
    .footer-block h4 {
        margin-top: 0 !important;
        position: relative;
        font-size: var(--h6-size);
    }
    .footer-block.address {
        display: flex;
        flex-direction: column;
    }
    .footer-block.mobile-toggle h4 {
        padding-left: 22px;
    }
    .footer-block.mobile-toggle h4::before {
        content: '+';
        font-family: Arial, Helvetica, sans-serif;
        color: var(--primary-regular);
        font-weight: 500;
        position: absolute;
        left: 0;
    }
    .footer-block.mobile-toggle h4.active::before {
        transform: rotate(45deg);
    }
    .footer-block.legal {
        flex-direction: column;
        gap: var(--column-gap);
    }
    .footer-block.legal * {
        text-align: center;
    }
    .footer-block.legal ul {
        flex-direction: row;
        justify-content: center !important;
        gap: 6px;
    }
    footer#footer .the-logo-pattern {
        height: 160px;
    }
    .mobile-toggle .footer-menu {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    .mobile-toggle .footer-menu.open {
        max-height: 500px;
        /* Set this to a value large enough to fit the menu */
    }
    .footer-block li,
    .footer-block p,
    .footer-block a,
    .footer-block small,
    .footer-block small strong,
    .footer-block small b {
        font-size: var(--body-size);
    }
    .footer-block.copyright {
        width: 100%;
        margin: 0;
    }
    .footer-block.copyright ul {
        flex-direction: row;
        justify-content: center;
        gap: 0;
        margin-bottom: var(--column-gap);
    }
    .footer-block.copyright ul li {
        padding-inline: 12px;
    }
    .footer-block.copyright ul li:first-of-type {
        border-right: 1px solid var(--grey-dark);
    }
    .footer-block.copyright .copyright {
        align-items: center;
        gap: 12px;
    }
    .footer-block.copyright .copyright * {
        text-align: center;
    }
    footer#footer .the-logo-pattern {
        top: unset;
        position: unset;
        padding-inline: 0 !important;
        height: 120px;
    }
    footer#footer .container {
        padding-bottom: 0;
    }
}