/*
=================================================================
  Component: Footer
=================================================================
*/

/* --- Global Visibility Helpers --- */
/* Must be defined BEFORE media queries to allow overrides */
.hide-on-large {
    display: none !important;
}

.subfooter {
    margin-bottom: -1px !important;
}

.footer-wrapper {
    position: relative;
    width: 100%;
    bottom: 0;
    margin-top: -2.6rem; /* Overlap effect */
    z-index: 1;
}

/* NOTE: The Radish animation is now handled by an HTML <img> tag 
   and JavaScript. The old CSS ::before background has been removed 
   to prevent duplicate images.
*/

/* --- Links & Navigation --- */
.footer-links a {
    text-decoration: none;
    transition: color 250ms ease-out;
}

.footer-wrapper p a {
    color: var(--wp--preset--color--quaternary);
}

.footer-wrapper p a:hover,
.footer-wrapper .wp-block-navigation-item:hover {
    color: var(--wp--preset--color--tertiary) !important;
}

/* --- Social Icons --- */
.footer-wrapper .wp-block-social-links .wp-block-social-link .wp-block-social-link-anchor:hover svg {
    fill: var(--wp--preset--color--quaternary) !important;
}

/* --- Layout Adjustments --- */
.footer-wrapper .footer-links {
    margin-top: 2rem;
    margin-bottom: 11rem;
}

/* Desktop */
@media screen and (min-width: 800px) {
    .footer-wrapper .footer-links {
        margin-top: initial;
        margin-bottom: 5rem;
    }
}

/* Mobile / Tablet */
@media screen and (max-width: 1123px) {
    /* Note: Removed ::before background override here too */
    
    .footer-wrapper .wp-block-columns {
        column-gap: var(--wp--preset--spacing--70) !important;
    }
    .hide-on-mobile {
        display: none !important;
    }
    .footer-social {
        order: -1;
    }
    .hide-on-large {
        display: flex !important;
    }
}