/* =========================================
   ORNAMENTS — SHARED FOOTER STYLES
   File: css/components/footer.css
========================================= */

#site-footer {
    position: relative;
    z-index: 1;
}

/* Main footer background */
#site-footer .orn-footer {
    position: relative;
    overflow: hidden;
    color: #FFF0DC;
    background:
        radial-gradient(circle at 90% 10%,
            rgba(231, 160, 168, 0.12),
            transparent 28%),
        linear-gradient(135deg, #42213D, #591D35 70%, #42213D);
}

/* Gold accent line */
#site-footer .orn-footer__top-line {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg,
            #145C48,
            #D4AF62,
            #E7A0A8,
            #D4AF62,
            #145C48);
}

/* Four-column footer layout */
#site-footer .orn-footer__main {
    width: min(100% - 64px, 1360px);
    margin: 0 auto;
    padding: 56px 0 42px;
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 1fr 1.25fr;
    gap: 44px;
}

/* Brand column */
#site-footer .orn-footer__brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 22px;
    color: #FFF0DC;
    text-decoration: none;
}

#site-footer .orn-footer__logo {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid #D4AF62;
    border-radius: 50%;
    color: #D4AF62;
    font-size: 31px;
    transition:
        color 0.3s ease,
        background 0.3s ease,
        transform 0.3s ease;
}

#site-footer .orn-footer__brand:hover .orn-footer__logo {
    color: #42213D;
    background: #D4AF62;
    transform: rotate(45deg);
}

#site-footer .orn-footer__brand-name {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: 2.5px;
}

#site-footer .orn-footer__description {
    max-width: 340px;
    margin: 0;
    color: #E8D8D5;
    font-size: 14px;
    line-height: 1.9;
}

#site-footer .orn-footer__signature {
    margin: 19px 0 0;
    color: #D4AF62;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    font-style: italic;
}

/* Column headings */
#site-footer .orn-footer__heading {
    position: relative;
    margin: 5px 0 25px;
    padding-bottom: 12px;
    color: #D4AF62;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
    font-weight: 600;
}

#site-footer .orn-footer__heading::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 38px;
    height: 2px;
    background: #E7A0A8;
    content: "";
}

/* Footer navigation links */
#site-footer .orn-footer__links {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#site-footer .orn-footer__links a {
    display: inline-block;
    color: #E8D8D5;
    font-size: 14px;
    text-decoration: none;
    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

#site-footer .orn-footer__links a:hover {
    color: #D4AF62;
    transform: translateX(5px);
}

/* Contact column */
#site-footer .orn-footer__contact-text {
    margin: 0 0 23px;
    color: #E8D8D5;
    font-size: 14px;
    line-height: 1.8;
}

#site-footer .orn-footer__contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid #D4AF62;
    border-radius: 4px;
    background: #D4AF62;
    color: #42213D;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

#site-footer .orn-footer__contact-button:hover {
    background: transparent;
    color: #D4AF62;
    transform: translateY(-3px);
}

#site-footer .orn-footer__small-note {
    margin: 17px 0 0;
    color: #E7A0A8;
    font-size: 12px;
    font-style: italic;
}

/* Copyright strip */
#site-footer .orn-footer__bottom {
    width: min(100% - 64px, 1360px);
    min-height: 70px;
    margin: 0 auto;
    padding: 20px 0;
    border-top: 1px solid rgba(212, 175, 98, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

#site-footer .orn-footer__bottom p {
    margin: 0;
    color: #DCCBCB;
    font-size: 12px;
    line-height: 1.7;
}

#site-footer .orn-footer__bottom-message span {
    color: #E7A0A8;
}

#site-footer .orn-footer__back-top {
    color: #D4AF62;
    font-size: 12px;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.25s ease;
}

#site-footer .orn-footer__back-top:hover {
    color: #FFF0DC;
}

/* Tablet layout */
@media (max-width: 1050px) {
    #site-footer .orn-footer__main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 38px 50px;
    }

    #site-footer .orn-footer__description {
        max-width: 420px;
    }
}

/* Mobile layout */
@media (max-width: 600px) {
    #site-footer .orn-footer__main {
        width: calc(100% - 40px);
        padding: 40px 0 32px;
        grid-template-columns: 1fr 1fr;
        gap: 32px 24px;
    }

    #site-footer .orn-footer__brand-column,
    #site-footer .orn-footer__contact-column {
        grid-column: 1 / -1;
    }

    #site-footer .orn-footer__brand-name {
        font-size: 19px;
    }

    #site-footer .orn-footer__heading {
        margin-bottom: 19px;
        font-size: 17px;
    }

    #site-footer .orn-footer__links {
        gap: 12px;
    }

    #site-footer .orn-footer__links a,
    #site-footer .orn-footer__contact-text {
        font-size: 13px;
    }

    #site-footer .orn-footer__bottom {
        width: calc(100% - 40px);
        padding: 18px 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {

    #site-footer .orn-footer__logo,
    #site-footer .orn-footer__links a,
    #site-footer .orn-footer__contact-button {
        transition: none;
    }
}