:root {
    --footer-padding-x-mobile: 0;
    --footer-padding-x-tablet: 0;
    --footer-padding-x-laptop: 0;
    --footer-padding-x-desktop: 0;
    --footer-padding-x-sm-laptop: 0;

    --footer-row-padding-x-mobile: 5%;
    --footer-row-padding-x-tablet: 4%;
    --footer-row-padding-x-laptop: 4%;
    --footer-row-padding-x-desktop: 6%;
    --footer-row-padding-x-sm-laptop: 5%;

    --heritour-footer-bg-start: #0a0c14;
    --heritour-footer-bg-mid: #0d1020;
    --heritour-footer-bg-end: #080a12;
    --heritour-footer-text: rgba(255, 255, 255, 0.95);
    --heritour-footer-text-soft: rgba(255, 255, 255, 0.66);
    --heritour-footer-text-muted: rgba(255, 255, 255, 0.44);
    --heritour-footer-border: rgba(255, 255, 255, 0.12);
    --heritour-footer-border-strong: rgba(255, 255, 255, 0.18);
    --heritour-footer-surface: rgba(255, 255, 255, 0.05);
    --heritour-footer-surface-hover: rgba(255, 255, 255, 0.1);
    --heritour-footer-shadow: rgba(0, 0, 0, 0.24);
    --heritour-footer-max-width: 1550px;
    --heritour-footer-title-size: 1rem;
    --heritour-footer-link-size: 0.875rem;
    --heritour-footer-menu-title-spacing: 0.025em;
    --heritour-footer-menu-title-margin-bottom: 1.5rem;
    --heritour-footer-menu-link-line-height: 1.625;
    --heritour-footer-menu-list-gap: 0.75rem;
    --heritour-footer-meta-size: 0.8125rem;
    --heritour-footer-accent: var(--e-global-color-accent, var(--e-global-color-primary, #F47A34));
    --heritour-footer-contact-icon-size: 1rem;
    --heritour-footer-social-icon-size: 1rem;
}

/* Custom footer overrides */

.site-footer,
.site-footer * {
    box-sizing: border-box;
}

.site-footer {
    color: var(--heritour-footer-text);
    font-family: var(--font-body, "Poppins", sans-serif);
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.05), transparent 32%),
        linear-gradient(135deg, var(--heritour-footer-bg-start), var(--heritour-footer-bg-mid) 55%, var(--heritour-footer-bg-end));
}

.site-footer a {
    text-decoration: none !important;
}

.site-footer__row {
    width: 100%;
}

.footer-row__column--wrapper {
    width: 100%;
    max-width: var(--heritour-footer-max-width);
    margin: 0 auto;
}

.site-footer__row--main {
    padding-top: 5rem !important;
    padding-bottom: 4.5rem !important;
}

.site-footer__row--main > .footer-row__column--wrapper {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: flex-start;
    column-gap: 3rem;
    row-gap: 2.75rem;
}

.footer-row__column--brand {
    flex: 0 1 350px;
    min-width: 0;
}

.footer-row__brand {
    position: relative;
    display: grid;
    gap: 2rem;
    min-width: 0;
    padding-right: 2rem;
}

.footer-row__brand::after {
    content: "";
    position: absolute;
    top: 0.25rem;
    right: 0;
    width: 1px;
    height: calc(100% - 0.5rem);
    background: linear-gradient(180deg, transparent, var(--heritour-footer-border-strong) 18%, var(--heritour-footer-border-strong) 82%, transparent);
}

.footer-brand__visuals {
    gap: 1.25rem;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.footer-logo,
.footer-logo__img {
    display: block;
}

.footer-logo__img,
.footer-logo img {
    width: 176px;
    height: auto;
    max-width: 100%;
}

.footer-brand__badge {
    width: 80px;
    display: block;
    aspect-ratio: 1/1;
    filter: drop-shadow(0 14px 24px var(--heritour-footer-shadow));
}

.footer-brand__contacts {
    display: grid;
    gap: 0.85rem;
}

.footer-contact {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--heritour-footer-text-soft) !important;
    font-family: var(--font-body, "Poppins", sans-serif);
    font-weight: 400;
    letter-spacing: 0;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-contact:hover,
.footer-contact:focus-visible {
    color: var(--heritour-footer-accent) !important;
    transform: translateX(2px);
}

.footer-contact__badge {
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.92);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.footer-contact:hover .footer-contact__badge,
.footer-contact:focus-visible .footer-contact__badge {
    color: var(--heritour-footer-accent);
    background: rgba(244, 122, 52, 0.18);
}

.footer-icon {
    display: block;
    flex: none;
    color: currentColor;
    background-color: currentColor;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.footer-icon--contact {
    width: var(--heritour-footer-contact-icon-size);
    height: var(--heritour-footer-contact-icon-size);
}

.footer-icon--social {
    width: var(--heritour-footer-social-icon-size);
    height: var(--heritour-footer-social-icon-size);
}

.footer-contact__badge .footer-icon,
.footer-social .footer-icon {
    display: block;
}

.footer-icon--email {
    -webkit-mask-image: url("../img/icon-email.svg");
    mask-image: url("../img/icon-email.svg");
}

.footer-icon--phone {
    -webkit-mask-image: url("../img/icon-phone.svg");
    mask-image: url("../img/icon-phone.svg");
}

.footer-icon--facebook {
    -webkit-mask-image: url("../img/icon-facebook.svg");
    mask-image: url("../img/icon-facebook.svg");
}

.footer-icon--instagram {
    -webkit-mask-image: url("../img/icon-instagram.svg");
    mask-image: url("../img/icon-instagram.svg");
}

.footer-icon--whatsapp {
    -webkit-mask-image: url("../img/icon-whatsapp.svg");
    mask-image: url("../img/icon-whatsapp.svg");
}

.footer-icon--youtube {
    -webkit-mask-image: url("../img/icon-youtube.svg");
    mask-image: url("../img/icon-youtube.svg");
}

.footer-contact__text {
    color: inherit;
    font-size: var(--heritour-footer-link-size);
    font-family: var(--font-body, "Poppins", sans-serif);
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.5;
    word-break: break-word;
}

.footer-brand__socials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.footer-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9) !important;
    line-height: 1;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.footer-social:hover,
.footer-social:focus-visible {
    color: var(--heritour-footer-accent) !important;
    background: rgba(244, 122, 52, 0.18);
    transform: translateY(-1px);
}

.footer-social--disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9) !important;
    opacity: 1;
    cursor: default;
}

.footer-row__column--navigation {
    flex: 1 1 0;
    min-width: 0;
}

.footer-row__navigation {
    min-width: 0;
}

.footer-menu--structured {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.4rem 2.5rem;
}

.footer-menu__column {
    min-width: 0;
}

.footer-menu__title {
    display: inline-block;
    margin-bottom: var(--heritour-footer-menu-title-margin-bottom);
    color: var(--heritour-footer-text);
    font-family: var(--font-heading, "Lato", sans-serif);
    font-size: var(--heritour-footer-title-size);
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: var(--heritour-footer-menu-title-spacing);
}

.footer-menu__body,
.footer-menu__body .footer-menu,
.footer-menu__body .menu {
    width: 100%;
}

.site-footer .footer-menu__body ul,
.site-footer .footer-menu__body ol,
.site-footer .footer-menu__body .menu,
.site-footer .footer-menu__body .sub-menu {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    display: grid;
    gap: var(--heritour-footer-menu-list-gap);
}

.site-footer .footer-menu__body li,
.site-footer .footer-menu__body .menu-item {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.site-footer .footer-menu__body a,
.site-footer .footer-menu__body .menu-item > a {
    color: var(--heritour-footer-text-soft) !important;
    font-size: var(--heritour-footer-link-size);
    font-family: var(--font-body, "Poppins", sans-serif);
    font-weight: 400;
    line-height: var(--heritour-footer-menu-link-line-height);
    text-decoration: none !important;
    transition: color 0.2s ease, transform 0.2s ease;
}

.site-footer .footer-menu__body a:hover,
.site-footer .footer-menu__body a:focus-visible {
    color: var(--heritour-footer-accent) !important;
    transform: translateX(2px);
}

.site-footer__row--bottom {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
    border-top: 1px solid var(--heritour-footer-border);
}

.site-footer__row--bottom > .footer-row__column--wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.footer-row__column--bottom-primary,
.footer-row__column--bottom-secondary {
    min-width: 0;
}

.footer-column__copyright,
.footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    color: var(--heritour-footer-text-muted);
    font-family: var(--font-body, "Poppins", sans-serif);
    font-size: var(--heritour-footer-meta-size);
    line-height: 1.5;
}

.footer-column__separator {
    opacity: 0.55;
}

.footer-legal-links {
    justify-content: flex-end;
}

.footer-legal-links a {
    color: inherit !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.footer-legal-links a:hover,
.footer-legal-links a:focus-visible {
    color: var(--heritour-footer-text) !important;
}

/* phone */
@media (max-width: 767px) {

    .site-footer {
        padding-left: var(--footer-padding-x-mobile) !important;
        padding-right: var(--footer-padding-x-mobile) !important;
    }

    .site-footer__row {
        padding-left: var(--footer-row-padding-x-mobile) !important;
        padding-right: var(--footer-row-padding-x-mobile) !important;
    }

    .site-footer__row--main > .footer-row__column--wrapper {
        row-gap: 2.5rem;
    }

    .footer-row__column--brand {
        flex-basis: 100%;
    }

    .footer-row__brand {
        padding-right: 0;
    }

    .footer-row__brand::after {
        display: none;
    }

    .footer-row__column--navigation {
        flex-basis: 100%;
    }

    .footer-menu--structured {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .site-footer__row--main {
        padding-top: 3.25rem !important;
        padding-bottom: 3rem !important;
    }

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

    .footer-legal-links {
        flex-direction: column;
        justify-content: flex-start;
    }



}

/* tablet */
@media (min-width: 768px) and (max-width: 1023px) {

    .site-footer {
        padding-left: var(--footer-padding-x-tablet) !important;
        padding-right: var(--footer-padding-x-tablet) !important;
    }

    .site-footer__row {
        padding-left: var(--footer-row-padding-x-tablet) !important;
        padding-right: var(--footer-row-padding-x-tablet) !important;
    }

    .site-footer__row--main > .footer-row__column--wrapper {
        row-gap: 2.75rem;
    }

    .footer-row__column--brand {
        flex-basis: 100%;
    }

    .footer-row__brand {
        padding-right: 0;
    }

    .footer-row__brand::after {
        display: none;
    }

    .footer-row__column--navigation {
        flex-basis: 100%;
    }

    .site-footer__row--bottom .footer-row__column--wrapper {
        flex-direction: column;
    }
}

/* mobile and tablet */
@media (max-width: 1023px) {

    .footer-menu--structured {
        gap: 1.75rem 2rem;
    }

    .site-footer__row--bottom .footer-row__column--wrapper {
        gap: 0.5em;
        max-width: 100%;
    }

    .site-footer__row--bottom .footer-row__column--wrapper > div {
        align-self: center;
    }
}

/* desktop */
@media (min-width: 1025px) {

    .site-footer {
        padding-left: var(--footer-padding-x-desktop) !important;
        padding-right: var(--footer-padding-x-desktop) !important;
    }

    .site-footer__row {
        padding-left: var(--footer-row-padding-x-desktop) !important;
        padding-right: var(--footer-row-padding-x-desktop) !important;
    }

    .footer-menu--structured {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

/* laptop 1 */
@media (min-width: 1024px) and (max-width: 1439px) {

    .site-footer {
        padding-left: var(--footer-padding-x-sm-laptop) !important;
        padding-right: var(--footer-padding-x-sm-laptop) !important;
    }

    .site-footer__row {
        padding-left: var(--footer-row-padding-x-sm-laptop) !important;
        padding-right: var(--footer-row-padding-x-sm-laptop) !important;
    }

    .footer-row__column--brand {
        flex-basis: 300px;
    }

    .footer-menu--structured {
        gap: 1.75rem 1.75rem;
    }

    .footer-row__column--brand {
        flex-basis: 275px;
    }

    .footer-logo__img,
    .footer-logo img {
        width: 125px;
    }

    .footer-brand__badge {
        width: 60px;
    }

    .site-footer .footer-menu__body ul,
    .site-footer .footer-menu__body ol,
    .site-footer .footer-menu__body .menu,
    .site-footer .footer-menu__body .sub-menu {
        gap: 0.5em;
    }

    .footer-menu__title {
        line-height: 1;
        font-size: 0.75rem;
    }

    .footer-contact__text,
    .site-footer .footer-menu__body a,
    .site-footer .footer-menu__body .menu-item > a {
        font-size: 0.65rem;
    }

    .footer-column__copyright,
    .footer-legal-links {
        font-size: 0.65rem;
    }

}

/* laptop 2 */
@media (min-width: 1440px) and (max-width: 1700px) {

    .site-footer {
        padding-left: var(--footer-padding-x-laptop) !important;
        padding-right: var(--footer-padding-x-laptop) !important;
    }

    .site-footer__row {
        padding-left: var(--footer-row-padding-x-laptop) !important;
        padding-right: var(--footer-row-padding-x-laptop) !important;
    }
}
