﻿/* =========================================================
   Sanskritigram Site Footer
   ========================================================= */

.site-footer {
    position: relative;
    margin-top: 16px;
    color: #5b4435;
    background: linear-gradient( 180deg, #fffaf1 0%, #f8eddb 100% );
    border-top: 1px solid rgba(214, 163, 61, 0.45);
}


/* =========================================================
   Main Footer Grid
   ========================================================= */

.site-footer__main {
    display: grid;
    grid-template-columns: minmax(220px, 1.25fr) minmax(130px, 0.72fr) minmax(150px, 0.82fr) minmax(220px, 1.12fr) minmax(220px, 1.05fr);
    gap: clamp(24px, 2.8vw, 42px);
    padding-top: 38px;
    padding-bottom: 28px;
}

.site-footer__brand,
.site-footer__column {
    min-width: 0;
}


/* =========================================================
   Brand and Logo
   ========================================================= */

.site-footer__logo-link {
    display: inline-block;
}

.site-footer__logo {
    display: block;
    width: 108px;
    height: 108px;
    object-fit: contain;
}

.site-footer__description {
    max-width: 300px;
    margin: 13px 0 15px;
    color: #5b4435;
    font-family: var(--font-body);
    font-size: 0.74rem;
    font-weight: 400;
    line-height: 1.65;
}


/* =========================================================
   Footer Headings
   ========================================================= */

.site-footer__heading {
    position: relative;
    margin: 0 0 15px;
    padding-bottom: 8px;
    color: var(--color-gold-dark);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.035em;
    line-height: 1.15;
    text-transform: uppercase;
}

    .site-footer__heading::after {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 42px;
        height: 1px;
        content: "";
        background: linear-gradient( 90deg, var(--color-gold), transparent );
    }


/* =========================================================
   Quick Links and Class Links
   ========================================================= */

.site-footer__links {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

    .site-footer__links a {
        width: fit-content;
        color: #5b4435;
        font-family: var(--font-body);
        font-size: 0.74rem;
        font-weight: 400;
        line-height: 1.45;
        text-decoration: none;
        transition: color var(--transition-fast), transform var(--transition-fast);
    }

        .site-footer__links a:hover {
            color: var(--color-gold-dark);
            transform: translateX(3px);
        }


/* =========================================================
   Contact Information
   ========================================================= */

.site-footer__address {
    margin: 0;
    color: #5b4435;
    font-family: var(--font-body);
    font-style: normal;
}

/*
   Font size is applied directly to paragraphs because the
   global typography.css file styles all p elements.
*/
.site-footer .site-footer__address p {
    margin: 0 0 7px;
    color: #5b4435;
    font-family: var(--font-body);
    font-size: 0.74rem;
    font-weight: 400;
    line-height: 1.5;
}

.site-footer .site-footer__address a {
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

    .site-footer .site-footer__address a:hover {
        color: var(--color-gold-dark);
    }

.site-footer .site-footer__address span {
    display: inline-flex;
    width: 15px;
    margin-right: 5px;
    align-items: center;
    justify-content: center;
    color: var(--color-gold-dark);
    font-size: 0.68rem;
}


/* =========================================================
   Social Links
   ========================================================= */

.site-footer__social {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.site-footer__social-link {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    color: var(--color-gold-dark);
    background: rgba(255, 255, 255, 0.38);
    border: 1px solid rgba(214, 163, 61, 0.45);
    border-radius: 50%;
    font-family: var(--font-body);
    font-size: 0.72rem;
    text-decoration: none;
    transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

    .site-footer__social-link:hover {
        color: var(--color-white);
        background: var(--color-gold-dark);
        border-color: var(--color-gold-dark);
        transform: translateY(-2px);
    }


/* =========================================================
   Newsletter
   ========================================================= */

.site-footer__newsletter p {
    margin: 0 0 12px;
    color: #5b4435;
    font-family: var(--font-body);
    font-size: 0.74rem;
    font-weight: 400;
    line-height: 1.6;
}

.site-footer__form {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

    .site-footer__form input {
        width: 100%;
        min-height: 42px;
        padding: 10px 12px;
        color: var(--color-brown);
        background: rgba(255, 255, 255, 0.8);
        border: 1px solid rgba(214, 163, 61, 0.42);
        border-radius: 4px;
        outline: none;
    }

        .site-footer__form input::placeholder {
            color: #9a7a61;
        }

        .site-footer__form input:focus {
            border-color: var(--color-gold-dark);
            box-shadow: 0 0 0 3px rgba(214, 163, 61, 0.12);
        }

    .site-footer__form .site-button {
        width: 100%;
    }


/* =========================================================
   Bottom Copyright Bar
   ========================================================= */

.site-footer__bottom {
    background: rgba(214, 163, 61, 0.08);
    border-top: 1px solid rgba(214, 163, 61, 0.22);
}

.site-footer__bottom-inner {
    display: flex;
    min-height: 42px;
    padding: 5px 0;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.site-footer__bottom p {
    margin: 0;
    color: #6b5342;
    font-family: var(--font-body);
    font-size: 0.68rem;
    line-height: 1.4;
}

.site-footer__legal {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #6b5342;
    font-family: var(--font-body);
    font-size: 0.68rem;
}

    .site-footer__legal a {
        color: inherit;
        text-decoration: none;
        transition: color var(--transition-fast);
    }

        .site-footer__legal a:hover {
            color: var(--color-gold-dark);
        }


/* =========================================================
   Responsive Footer
   ========================================================= */

@media (max-width: 1180px) {

    .site-footer__main {
        grid-template-columns: minmax(220px, 1.15fr) repeat(2, minmax(140px, 0.8fr)) minmax(210px, 1fr);
    }

    .site-footer__newsletter {
        grid-column: 1 / -1;
        max-width: 520px;
    }
}

@media (max-width: 820px) {

    .site-footer__main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px 28px;
    }

    .site-footer__brand,
    .site-footer__newsletter {
        grid-column: 1 / -1;
    }

    .site-footer__bottom-inner {
        padding: 12px 0;
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 520px) {

    .site-footer {
        margin-top: 10px;
    }

    .site-footer__main {
        grid-template-columns: 1fr;
        gap: 26px;
        padding-top: 32px;
        padding-bottom: 24px;
    }

    .site-footer__brand,
    .site-footer__newsletter {
        grid-column: auto;
    }

    .site-footer__logo {
        width: 98px;
        height: 98px;
    }

    .site-footer__legal {
        flex-wrap: wrap;
        justify-content: center;
    }
}
