/* =========================================
   FOOTER
   ========================================= */
footer {
    width: 100%;
    background-color: var(--secondary-black-color);
}

.footer-container {
    width: 100%;
}

.footer__content {
    display: flex;
    flex-direction: column;
    padding-bottom: 30px;
}

/* ---------- Top: links wrapper (grid layout) ---------- */
.footer-top {
    padding-top: 100px;
}

.footer-links-wrapper {
    display: flex;
    flex-direction: column;
}

.footer-top-links {
    grid-area: top;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 60px;
}

.footer-logo-contact {
    display: flex;
    justify-content: space-between;
}

.footer-top__left,
.footer-top__right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-top__right {
    /* padding-right: 64px; */
    max-width: 40.5%;
    width: 100%;
}

.links-title p {
    font-family: var(--font-heading);
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
    margin: 0;
    color: var(--text-brown);
}

.other-links-list,
.portfolio-links-list {
    display: flex;
    gap: 80px;
}

.other-links-list ul,
.portfolio-links-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.other-links-list .footer-menu,
.portfolio-links-list .portfolio-menu {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(4, auto);
    column-gap: 80px;
    row-gap: 16px;
}

.other-links-list a,
.portfolio-links-list a {
    color: var(--text-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.other-links-list a:hover,
.portfolio-links-list a:hover {
    color: var(--text-brown);
}

/* ---------- Divider ---------- */
.footer-divider {
    grid-area: divider;
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.15);
    margin-block: 80px;
    /* margin-block: clamp(40px, 5vw, 64px); */
}

/* ---------- Contact block (logo + contact info) ---------- */
.footer-contact {
    max-width: 37%;
    width: 100%;
    grid-area: contact;
    display: flex;
    column-gap: 40px;
    row-gap: 10px;
    grid-template-areas:
        "logo title"
        "logo list";
    align-items: start;
}

.footer-logo {
    grid-area: logo;
    display: flex;
    align-items: flex-start;
}

.footer-logo img {
    display: block;
    width: auto;
    /* height: 64px; */
    object-fit: contain;
}

.footer-contact>.links-title {
    grid-area: title;
}

.footer-contact>.portfolio-links-list {
    grid-area: list;
}

.footer-contact .portfolio-links-list {
    display: flex;
}

.footer-contact .portfolio-links-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.footer-contact .contact-links-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;

}

.contact-links-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-contact .sub-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-contact .sub-title p:first-child {
    color: var(--text-gray);
}

.footer-contact .sub-title a,
.footer-contact .sub-title p:last-child {
    color: var(--text-white);
    text-decoration: none;
}

/* ---------- Follow Us block ---------- */
.footer-follow {
    grid-area: follow;
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-self: end;
}

.footer-follow .portfolio-links-list {
    display: flex;
}

.footer-follow .portfolio-links-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.footer-follow a {
    color: var(--text-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-follow a:hover {
    color: var(--text-brown);
}

/* ---------- Copyright row ---------- */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* border-top: 1px solid rgba(255, 255, 255, 0.15); */
    margin-top: 50px;
}

.footer-bottom p {
    margin: 0;
    color: #717171;
}

.policy-links {
    display: flex;
    align-items: center;
    gap: 30px;
    max-width: 37%;
    width: 100%;
}

.policy-links a {
    color: #717171;
    text-decoration: none;
    transition: color 0.3s ease;
}

.policy-links a:hover {
    color: var(--text-brown);
}

.policy-links .legal-menu {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-language-switcher,
.footer-language-switcher .gtranslate_wrapper {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.footer-language-switcher .gtranslate_wrapper {
    flex-direction: row-reverse;
}

.footer-language-switcher .glink,
.footer-language-switcher a {
    color: #717171;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-language-switcher .glink {
    font-size: 0;
}

.footer-language-switcher .glink::after,
.footer-language-switcher .glink[data-gt-lang="ar"]::before {
    font-size: 16px;
}

.footer-language-switcher .glink[data-gt-lang="en"]::after {
    content: "English";
}

.footer-language-switcher .glink[data-gt-lang="ar"]::before {
    content: " | ";
    white-space: pre;
}

.footer-language-switcher .glink[data-gt-lang="ar"]::after {
    content: "العربية";
    direction: rtl;
    unicode-bidi: isolate;
}

.footer-language-switcher .glink:hover,
.footer-language-switcher a:hover {
    color: var(--text-brown);
}

.footer-language-switcher img {
    display: none;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media only screen and (max-width:1366px) {
    .footer-contact {
        column-gap: 30px;
    }

    .footer-top {
        padding-top: 90px;
    }
}

@media only screen and (max-width:1199px) {
    .footer-top-links {
        gap: 40px;
    }

    .other-links-list,
    .portfolio-links-list {
        gap: 40px;
    }

    .footer-divider {
        margin-block: 60px;
    }

    .footer-top {
        padding-top: 80px;
    }

    .footer-contact,
    .policy-links,
    .footer-top__right {
        max-width: 45%;
    }
}

@media only screen and (max-width:1024px) {
    /* .footer-top-links {
        flex-direction: column;
        gap: 36px;
    } */

    .footer-links-wrapper {
        grid-template-columns: 1fr;
        grid-template-areas:
            "top"
            "divider"
            "contact"
            "follow";
        row-gap: 32px;
    }

    .footer-follow {
        justify-self: start;
    }

    .footer-top {
        padding-top: 60px;
    }

    .footer-divider {
        margin-block: 20px;
    }
}

@media only screen and (max-width:991px) {

    .footer-contact,
    .policy-links,
    .footer-top__right {
        max-width: 50%;
    }
}

@media only screen and (max-width:767px) {
    .footer-top {
        padding-top: 48px;
    }

    .other-links-list,
    .portfolio-links-list {
        flex-direction: column;
        gap: 20px;
    }

    .other-links-list .footer-menu,
    .portfolio-links-list .portfolio-menu {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .footer-contact {
        grid-template-columns: 1fr;
        grid-template-areas:
            "logo"
            "title"
            "list";
        row-gap: 16px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-top: 30px;
    }

    .policy-links {
        flex-wrap: wrap;
        gap: 16px;
    }

    .footer-top {
        padding-top: 50px;
    }

    .contact-links-list,
    .footer-follow {
        gap: 15px;
    }

    .footer-contact,
    .policy-links {
        max-width: 64%;
    }

    .footer-top__right {
        max-width: 34%;
    }

    .footer-logo img {
        width: 70%;
    }

    .policy-links {
        max-width: 100%;
    }
}

@media only screen and (max-width:580px) {
    .footer-logo-contact {
        flex-direction: column;
        gap: 20px;
    }

    .footer-contact {
        column-gap: 65px;
        max-width: 100%;
    }

    .footer-top__right {
        max-width: 53%;
    }

    .footer-divider {
        margin-block: 0;
    }

    .footer-logo img {
        width: 60%;
    }

    .policy-links {
        row-gap: 10px;
    }

    .policy-links .legal-menu {
        flex-wrap: wrap;
        column-gap: 16px;
        row-gap: 10px;
    }
}

@media only screen and (max-width:380px) {
    .footer-contact {
        gap: 20px;
        flex-direction: column;
    }

    .footer-top-links {
        gap: 20px;
    }

    .footer-top-links {
        flex-direction: column;
    }

    .footer-top__right {
        max-width: 100%;
    }
}
