/**
 * HBREA Footer Styles
 *
 * Footer layout and styling enhancements.
 * Works with Astra's Footer Builder.
 *
 * @package HBREA
 * @since 1.0.0
 */

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

.site-footer {
    background-color: var(--hbrea-navy);
    color: var(--hbrea-white);
}

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

.footer-widget-area {
    padding: var(--hbrea-space-12) 0;
}

@media (min-width: 768px) {
    .footer-widget-area {
        padding: var(--hbrea-space-16) 0;
    }
}

/* Widget titles */
.footer-widget-area .widget-title {
    font-family: var(--hbrea-font-heading);
    font-size: var(--hbrea-text-lg);
    font-weight: var(--hbrea-font-bold);
    color: var(--hbrea-white);
    text-transform: uppercase;
    letter-spacing: var(--hbrea-tracking-wide);
    margin-bottom: var(--hbrea-space-4);
}

/* Widget text */
.footer-widget-area .widget {
    color: var(--hbrea-gray-300);
}

.footer-widget-area .widget p {
    color: var(--hbrea-gray-300);
    line-height: var(--hbrea-leading-relaxed);
}

/* Widget links */
.footer-widget-area .widget a {
    color: var(--hbrea-gray-300);
    text-decoration: none;
    transition: color var(--hbrea-transition-fast);
}

.footer-widget-area .widget a:hover {
    color: var(--hbrea-copper);
}

/* Widget lists */
.footer-widget-area .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget-area .widget li {
    padding: var(--hbrea-space-1) 0;
}

/* ==========================================================================
   FOOTER NAV MENU
   ========================================================================== */

.footer-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-menu .menu-item {
    padding: var(--hbrea-space-1) 0;
}

.footer-nav-menu .menu-item a {
    font-size: var(--hbrea-text-base);
    color: var(--hbrea-gray-300);
    text-decoration: none;
    transition: color var(--hbrea-transition-fast);
}

.footer-nav-menu .menu-item a:hover {
    color: var(--hbrea-copper);
}

/* ==========================================================================
   FOOTER CONTACT INFO
   ========================================================================== */

.hbrea-footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hbrea-footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: var(--hbrea-space-3);
    padding: var(--hbrea-space-2) 0;
    color: var(--hbrea-gray-300);
}

.hbrea-footer-contact li svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    color: var(--hbrea-copper);
}

.hbrea-footer-contact a {
    color: var(--hbrea-gray-300);
    text-decoration: none;
    transition: color var(--hbrea-transition-fast);
}

.hbrea-footer-contact a:hover {
    color: var(--hbrea-copper);
}

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

.hbrea-footer-social {
    display: flex;
    gap: var(--hbrea-space-4);
    margin-top: var(--hbrea-space-4);
}

.hbrea-footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--hbrea-radius-full);
    color: var(--hbrea-white);
    transition: background-color var(--hbrea-transition-fast), color var(--hbrea-transition-fast);
}

.hbrea-footer-social a:hover {
    background-color: var(--hbrea-copper);
    color: var(--hbrea-white);
}

.hbrea-footer-social svg {
    width: 20px;
    height: 20px;
}

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

.hbrea-footer-logo {
    max-width: 150px;
    margin-bottom: var(--hbrea-space-4);
}

.hbrea-footer-tagline {
    font-size: var(--hbrea-text-sm);
    font-style: italic;
    color: var(--hbrea-gray-400);
    margin-bottom: var(--hbrea-space-4);
}

/* ==========================================================================
   FOOTER BOTTOM BAR (Copyright)
   ========================================================================== */

.ast-footer-copyright {
    background-color: rgba(0, 0, 0, 0.2);
    padding: var(--hbrea-space-4) 0;
    text-align: center;
}

.ast-footer-copyright .ast-footer-html-inner {
    font-size: var(--hbrea-text-sm);
    color: var(--hbrea-gray-400);
}

.ast-footer-copyright a {
    color: var(--hbrea-gray-300);
    text-decoration: none;
    transition: color var(--hbrea-transition-fast);
}

.ast-footer-copyright a:hover {
    color: var(--hbrea-copper);
}

/* Divider between links */
.ast-footer-copyright .ast-footer-html-inner span:not(:last-child)::after {
    content: '|';
    margin: 0 var(--hbrea-space-2);
    color: var(--hbrea-gray-600);
}

/* ==========================================================================
   BACK TO TOP BUTTON
   ========================================================================== */

.hbrea-back-to-top {
    position: fixed;
    bottom: var(--hbrea-space-6);
    right: var(--hbrea-space-6);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: var(--hbrea-navy);
    border: none;
    border-radius: var(--hbrea-radius-full);
    color: var(--hbrea-white);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity var(--hbrea-transition), visibility var(--hbrea-transition), transform var(--hbrea-transition), background-color var(--hbrea-transition-fast);
    z-index: var(--hbrea-z-fixed);
    box-shadow: var(--hbrea-shadow-lg);
}

.hbrea-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.hbrea-back-to-top:hover {
    background-color: var(--hbrea-copper);
}

.hbrea-back-to-top svg {
    width: 24px;
    height: 24px;
}

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

@media (max-width: 767px) {
    .footer-widget-area .widget {
        text-align: center;
        margin-bottom: var(--hbrea-space-8);
    }
    
    .hbrea-footer-social {
        justify-content: center;
    }
    
    .hbrea-footer-logo {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hbrea-footer-contact li {
        justify-content: center;
    }
}
