/* Footer Optimization - Item #12 */

/* Enhanced Footer Spacing and Layout */
.footer {
    position: relative;
}

.footer-top {
    padding: 60px 0 40px;
}

@media only screen and (max-width: 767px) {
    .footer-top {
        padding: 40px 0 20px;
    }
}

/* Widget Spacing Improvements */
.footer .widget {
    margin-bottom: 30px;
}

@media only screen and (min-width: 992px) {
    .footer .widget {
        margin-bottom: 0;
    }
}

/* Widget Title Enhancement */
.footer .widget .widget-title {
    margin-bottom: 25px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

@media only screen and (max-width: 767px) {
    .footer .widget .widget-title {
        font-size: 16px;
        margin-bottom: 20px;
    }
}

/* Contact Info List Spacing */
.footer .widget.widget_contact ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer .widget.widget_contact ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    line-height: 1.6;
}

.footer .widget.widget_contact ul li:last-child {
    margin-bottom: 0;
}

.footer .widget.widget_contact ul li .icon {
    flex-shrink: 0;
    margin-right: 12px;
    margin-top: 2px;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer .widget.widget_contact ul li .icon img {
    max-width: 18px;
    max-height: 18px;
}

.footer .widget.widget_contact ul li a {
    transition: all 0.3s ease;
    word-break: break-word;
}

/* Useful Links Menu Improvement */
.footer .widget_nav_menu .menu {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.footer .widget_nav_menu .menu li {
    position: relative;
    padding-left: 0;
}

.footer .widget_nav_menu .menu li a {
    display: inline-block;
    padding: 5px 0;
    transition: all 0.3s ease;
    position: relative;
}

.footer .widget_nav_menu .menu li a:before {
    content: '→';
    margin-right: 8px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.footer .widget_nav_menu .menu li a:hover:before {
    opacity: 1;
    transform: translateX(0);
}

/* Download App Section Enhancement */
.footer .widget_newsletter .d-flex {
    gap: 15px;
    flex-wrap: wrap;
}

.footer .widget_newsletter .d-flex > div {
    text-align: center;
    transition: transform 0.3s ease;
}

.footer .widget_newsletter .d-flex > div:hover {
    transform: translateY(-5px);
}

.footer .widget_newsletter .d-flex > div img {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.footer .widget_newsletter .d-flex > div:hover img {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.footer .widget_newsletter h6 {
    font-size: 12px;
    margin-top: 8px;
    margin-bottom: 0;
}

@media only screen and (max-width: 767px) {
    .footer .widget_newsletter .d-flex {
        justify-content: center;
    }
    
    .footer .widget_newsletter .d-flex > div {
        width: auto;
        margin: 0 !important;
    }
}

/* Footer Bottom Enhancement */
.footer-bottom {
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
}

@media only screen and (max-width: 767px) {
    .footer-bottom {
        padding: 20px 0;
    }
}

.footer-bottom-content {
    position: relative;
}

.footer-bottom-content .inline-menu {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    justify-content: center;
}

@media only screen and (max-width: 767px) {
    .footer-bottom-content .inline-menu {
        gap: 8px 15px;
        font-size: 14px;
    }
}

.footer-bottom-content .inline-menu li {
    position: relative;
}

.footer-bottom-content .inline-menu li:not(:last-child):after {
    content: '|';
    position: absolute;
    right: -11px;
    color: rgba(255, 255, 255, 0.3);
}

@media only screen and (max-width: 767px) {
    .footer-bottom-content .inline-menu li:not(:last-child):after {
        right: -9px;
    }
}

.footer-bottom-content .inline-menu li a {
    transition: all 0.3s ease;
    position: relative;
}

.footer-bottom-content .inline-menu li a:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

.footer-bottom-content .inline-menu li a:hover:after {
    width: 100%;
}

/* Responsive Column Stacking */
@media only screen and (max-width: 991px) {
    .footer-top .row > [class*='col-'] {
        margin-bottom: 40px;
    }
    
    .footer-top .row > [class*='col-']:last-child {
        margin-bottom: 0;
    }
}

@media only screen and (max-width: 767px) {
    .footer-top .row > [class*='col-'] {
        margin-bottom: 35px;
        text-align: center;
    }
    
    .footer .widget.widget_contact ul li {
        justify-content: center;
        text-align: left;
    }
    
    .footer .widget_nav_menu .menu {
        align-items: center;
    }
}

/* Floating Download Buttons Enhancement */
.dwn-floating-buttons,
.dwn-floating-buttons0,
.dwn-floating-buttons1,
.dwn-floating-buttons2,
.dwn-floating-buttons3 {
    transition: all 0.3s ease;
}

.dwn-floating-button {
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dwn-floating-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.dwn-floating-button .dwn-button-text {
    transition: all 0.3s ease;
}

.dwn-floating-button:hover .dwn-button-text {
    letter-spacing: 0.5px;
}

/* Back to Top Button Enhancement */
.back-to-top {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 227, 247, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

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

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 227, 247, 0.5);
}

@media only screen and (max-width: 767px) {
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
    }
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Footer Background Pattern Enhancement */
.footer .footer-bg-shape {
    opacity: 0.05;
    transition: opacity 0.3s ease;
}

@media only screen and (max-width: 991px) {
    .footer .footer-bg-shape {
        opacity: 0.03;
    }
}

/* Loading State for Images */
.footer img[loading="lazy"] {
    transition: opacity 0.3s ease;
}

/* Accessibility Improvements */
.footer a:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .footer .dwn-floating-buttons,
    .footer .dwn-floating-buttons0,
    .footer .dwn-floating-buttons1,
    .footer .dwn-floating-buttons2,
    .footer .dwn-floating-buttons3,
    .back-to-top {
        display: none !important;
    }
}
