/* Custom Footer Styling for Ferrari Firearms */

/* Footer Background and Border */
.footer {
  background-color: #0f1821 !important;
  border-top: 2px solid #d4a574 !important;
  padding-top: 60px !important;
}

/* Footer Text Colors */
.footer .footer-block__heading {
  color: white !important;
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 16px;
  margin-bottom: 20px;
}

.footer .footer-block__details-content p,
.footer .rte p,
.footer .list-menu__item,
.footer .copyright__content {
  color: #9ca3af !important;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

/* Footer Links */
.footer a {
  color: #9ca3af !important;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: #d4a574 !important;
}

/* Social Icons */
.footer .list-social__link {
  background-color: #2a3c4d !important;
  transition: all 0.3s ease !important;
  border-radius: 4px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
}

.footer .list-social__link:hover {
  background-color: #d4a574 !important;
  transform: translateY(-2px);
}

.footer .list-social__link svg {
  color: white !important;
  width: 20px;
  height: 20px;
  transition: color 0.3s ease;
}

.footer .list-social__link:hover svg {
  color: #0f1821 !important;
}

/* Bottom Divider & Row */
.footer hr {
    border-color: #2A3C4D !important;
    opacity: 0.5;
}

/* Legal Disclaimer */
.footer__disclaimer {
    color: #6B7280 !important;
    font-size: 11px !important;
    line-height: 1.5;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-family: 'Inter', sans-serif;
}

/* Payment Icons */
.footer .footer__payment svg {
    vertical-align: middle;
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    .footer {
        padding-left: 20px !important;
        padding-right: 20px !important;
        box-sizing: border-box !important;
    }

    .footer__bottom-row {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer__copyright {
        order: 2;
    }
    
    .footer__copyright {
        order: 2;
    }
    
    .footer__payment {
        order: 1;
    }

    /* Force Footer Grid Stacking on Mobile/Tablet (Nuclear Fix) */
    /* Using high specificity just in case */
    .footer .footer__content-top .footer__blocks-wrapper {
        display: block !important; /* Force standard block flow (vertical) */
        width: 100% !important;
        grid-template-columns: none !important;
        flex-direction: column !important;
    }

    .footer .footer__content-top .footer-block {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 3rem !important; /* Add spacing between stacked blocks */
        float: none !important;
    }

    /* Ensure link lists don't float either */
    .footer .footer-block__details-content {
        width: 100% !important;
    }
}
