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

.phaniya-footer {
    position: relative;
    padding: 100px 0 30px;

    background-color: var(--color-background);
    color: var(--color-text);

    border-top: 1px solid var(--color-border);

    overflow: hidden;
}

.phaniya-footer .container-fluid {
    width: min(92%, 1440px);
    margin-inline: auto;
}


/* ---------------------------------------------------------
   Main Footer
   --------------------------------------------------------- */

.phaniya-footer__main {
    display: grid;
    grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(150px, 1fr));
    gap: 70px;

    padding-bottom: 80px;
}


/* ---------------------------------------------------------
   Brand
   --------------------------------------------------------- */

.phaniya-footer__brand {
    max-width: 380px;
}

.phaniya-footer__logo {
    position: relative;

    display: inline-flex;
    align-items: center;

    width: 175px;

    text-decoration: none;
}

.phaniya-footer__logo-image {
    display: block;

    width: 100%;
    height: auto;

    object-fit: contain;

    transition: opacity 0.3s ease;
}

.phaniya-footer__logo-image--light {
    position: absolute;
    inset: 0;

    opacity: 0;
}

[data-theme="dark"] .phaniya-footer__logo-image--dark {
    opacity: 0;
}

[data-theme="dark"] .phaniya-footer__logo-image--light {
    opacity: 1;
}

.phaniya-footer__description {
    max-width: 340px;

    margin: 25px 0 0;

    font-size: 0.95rem;
    line-height: 1.7;

    color: var(--color-text-muted);
}


/* ---------------------------------------------------------
   Columns
   --------------------------------------------------------- */

.phaniya-footer__column {
    display: flex;
    flex-direction: column;
}

.phaniya-footer__heading {
    margin: 0 0 25px;

    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;

    letter-spacing: 0.16em;
    text-transform: uppercase;

    color: var(--color-text-muted);
}


/* ---------------------------------------------------------
   Links
   --------------------------------------------------------- */

.phaniya-footer__links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
}

.phaniya-footer__links a {
    position: relative;

    display: inline-flex;
    align-items: center;
    gap: 7px;

    width: fit-content;

    color: var(--color-text);
    text-decoration: none;

    font-size: 0.92rem;
    line-height: 1.4;

    transition:
        color 0.3s ease,
        transform 0.3s ease;
}

.phaniya-footer__links a::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -4px;

    width: 100%;
    height: 1px;

    background-color: var(--color-accent);

    transform: scaleX(0);
    transform-origin: right;

    transition: transform 0.3s ease;
}

.phaniya-footer__links a:hover {
    color: var(--color-accent);

    transform: translateX(3px);
}

.phaniya-footer__links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.phaniya-footer__links a i {
    font-size: 0.7rem;

    transition: transform 0.3s ease;
}

.phaniya-footer__links a:hover i {
    transform: translate(2px, -2px);
}


/* ---------------------------------------------------------
   Bottom
   --------------------------------------------------------- */

.phaniya-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    padding-top: 25px;

    border-top: 1px solid var(--color-border);
}

.phaniya-footer__copyright {
    margin: 0;

    font-size: 0.78rem;
    line-height: 1.5;

    color: var(--color-text-muted);
}

.phaniya-footer__bottom-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.phaniya-footer__bottom-links a {
    color: var(--color-text-muted);
    text-decoration: none;

    font-size: 0.78rem;

    transition: color 0.3s ease;
}

.phaniya-footer__bottom-links a:hover {
    color: var(--color-accent);
}


/* =========================================================
   RESPONSIVE
   ========================================================= */


/* ---------------------------------------------------------
   2560px
   --------------------------------------------------------- */

@media (max-width: 2560px) {
}


/* ---------------------------------------------------------
   1920px
   --------------------------------------------------------- */

@media (max-width: 1920px) {
}


/* ---------------------------------------------------------
   1440px
   --------------------------------------------------------- */

@media (max-width: 1440px) {
    .phaniya-footer {
        padding-top: 90px;
    }

    .phaniya-footer__main {
        gap: 50px;
        padding-bottom: 70px;
    }
}


/* ---------------------------------------------------------
   1024px
   --------------------------------------------------------- */

@media (max-width: 1024px) {
    .phaniya-footer {
        padding-top: 80px;
    }

    .phaniya-footer__main {
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: 45px;
    }

    .phaniya-footer__brand {
        grid-column: 1 / -1;
        max-width: 500px;
    }
}


/* ---------------------------------------------------------
   768px
   --------------------------------------------------------- */

@media (max-width: 768px) {
    .phaniya-footer {
        padding-top: 70px;
    }

    .phaniya-footer__main {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px 35px;

        padding-bottom: 60px;
    }

    .phaniya-footer__brand {
        grid-column: 1 / -1;
    }

    .phaniya-footer__bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }
}


/* ---------------------------------------------------------
   576px
   --------------------------------------------------------- */

@media (max-width: 576px) {
    .phaniya-footer {
        padding-top: 60px;
        padding-bottom: 25px;
    }

    .phaniya-footer__main {
        grid-template-columns: 1fr;
        gap: 40px;

        padding-bottom: 50px;
    }

    .phaniya-footer__brand {
        grid-column: auto;
    }

    .phaniya-footer__heading {
        margin-bottom: 20px;
    }

    .phaniya-footer__bottom-links {
        gap: 20px;
    }
}


/* ---------------------------------------------------------
   425px
   --------------------------------------------------------- */

@media (max-width: 425px) {
    .phaniya-footer {
        padding-top: 55px;
    }

    .phaniya-footer__logo {
        width: 155px;
    }

    .phaniya-footer__description {
        font-size: 0.9rem;
    }

    .phaniya-footer__links a {
        font-size: 0.9rem;
    }
}


/* ---------------------------------------------------------
   375px
   --------------------------------------------------------- */

@media (max-width: 375px) {
    .phaniya-footer {
        padding-top: 50px;
    }

    .phaniya-footer__logo {
        width: 145px;
    }

    .phaniya-footer__bottom-links {
        gap: 16px;
    }
}


/* ---------------------------------------------------------
   320px
   --------------------------------------------------------- */

@media (max-width: 320px) {
    .phaniya-footer {
        padding-top: 45px;
    }

    .phaniya-footer__description {
        font-size: 0.86rem;
    }

    .phaniya-footer__links a {
        font-size: 0.86rem;
    }

    .phaniya-footer__copyright,
    .phaniya-footer__bottom-links a {
        font-size: 0.72rem;
    }
}


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

@media (prefers-reduced-motion: reduce) {
    .phaniya-footer__links a,
    .phaniya-footer__links a::after,
    .phaniya-footer__links a i,
    .phaniya-footer__bottom-links a {
        transition: none;
    }

    .phaniya-footer__links a:hover {
        transform: none;
    }

    .phaniya-footer__links a:hover i {
        transform: none;
    }
}