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

.b-footer {
    position: relative;
    width: 100%;
    min-height: 470px;
    overflow: hidden;
    background: var(--color-dark);
    color: var(--color-white);
    font-family: var(--font-primary);
}

.b-footer > .container {
    position: relative;
    z-index: 2;
    padding-top: clamp(55px, 5vw, 85px);
    padding-bottom: 30px;
}

/* ========================================
   BACKGROUND
======================================== */

.b-footer > .g-image-cover {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
}

.b-footer > .g-image-cover picture,
.b-footer > .g-image-cover img {
    display: block;
    width: 100%;
    height: 100%;
}

.b-footer > .g-image-cover img {
    object-fit: cover;
}

/* ========================================
   WATERMARK
======================================== */

.b-footer .watermark {
    position: absolute;
    z-index: 1;
    top: 0;
    right: 5%;
    width: 45%;
    height: 100%;
    pointer-events: none;
    opacity: 0.35;
}

.b-footer .watermark picture,
.b-footer .watermark img {
    display: block;
    width: 100%;
    height: 100%;
}

.b-footer .watermark img {
    object-fit: contain;
    object-position: center right;
}

/* ========================================
   COLUMNS
======================================== */

.b-footer .columns {
    display: grid;
    grid-template-columns: 1.15fr 1fr 1fr;
    gap: clamp(20px, 5vw, 40px);
    align-items: start;
    min-height: 300px;
}

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

.b-footer .contact {
    min-width: 0;
}

.b-footer .logo {
    margin-bottom: 25px;
}

.b-footer .logo img {
    display: block;
    width: auto;
    max-width: 220px;
    height: auto;
}

.b-footer .textsublogo {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    white-space: pre-line;
}

.b-footer .textsublogo a {
    color: inherit;
    text-decoration: none;
    transition: color 250ms ease;
}

@media (hover: hover) {
    .b-footer .textsublogo a:hover {
        color: var(--color-primary);
    }
}

/* ========================================
   MENUS
======================================== */

.b-footer .menu {
    min-width: 0;
}

.b-footer .menu-title {
    margin-bottom: 35px;
    font-size: clamp(20px, 1.8vw, 27px);
    font-weight: 700;
    line-height: 1.2;
}

.b-footer .menu ul,
.b-footer .menu-bottom ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.b-footer .menu li {
    margin-bottom: 18px;
}

.b-footer .menu a,
.b-footer .menu button,
.b-footer .menu span {
    color: inherit;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
}

.b-footer .menu button {
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.b-footer .menu a,
.b-footer .menu button {
    transition: color 250ms ease;
}

@media (hover: hover) {
    .b-footer .menu a:hover,
    .b-footer .menu button:hover {
        color: var(--color-primary);
    }
}

/* ========================================
   BOTTOM MENU
======================================== */

.b-footer .menu-bottom {
    position: relative;
    margin-top: 35px;
    padding-top: 20px;
}

.b-footer .menu-bottom ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 30px;
}

.b-footer .menu-bottom a,
.b-footer .menu-bottom button,
.b-footer .menu-bottom span {
    color: inherit;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.b-footer .menu-bottom button {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.b-footer .menu-bottom a,
.b-footer .menu-bottom button {
    transition: color 250ms ease;
}

@media (hover: hover) {
    .b-footer .menu-bottom a:hover,
    .b-footer .menu-bottom button:hover {
        color: var(--color-primary);
    }
}

/* ========================================
   TABLET
======================================== */

@media (max-width: 991px) {
    .b-footer .columns {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 30px;
    }

    .b-footer .watermark {
        right: 2%;
        width: 55%;
        opacity: 0.25;
    }

    .b-footer .menu-title {
        margin-bottom: 25px;
    }
}

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

@media (max-width: 767px) {
    .b-footer {
        min-height: 0;
    }

    .b-footer > .container {
        padding-top: 55px;
        padding-bottom: 25px;
    }

    .b-footer .columns {
        grid-template-columns: 1fr;
        gap: 40px;
        min-height: 0;
    }

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

    .b-footer .textsublogo {
        font-size: 13px;
    }

    .b-footer .menu-title {
        margin-bottom: 20px;
        font-size: 22px;
    }

    .b-footer .menu li {
        margin-bottom: 14px;
    }

    .b-footer .watermark {
        right: -15%;
        width: 95%;
        opacity: 0.15;
    }

    .b-footer .menu-bottom {
        margin-top: 45px;
    }

    .b-footer .menu-bottom ul {
        justify-content: flex-start;
        gap: 12px 20px;
    }
}

/* ========================================
   REDUCED MOTION
======================================== */

@media (prefers-reduced-motion: reduce) {
    .b-footer .textsublogo a,
    .b-footer .menu a,
    .b-footer .menu button,
    .b-footer .menu-bottom a,
    .b-footer .menu-bottom button {
        transition: none;
    }
}
