/* Footer specific styling */
footer.custom-footer {
    background-color: #27221f;
    /* Matches image background */
    padding-top: 40px;
    padding-bottom: 30px;
    border: none;
    font-family: Arial, Helvetica, sans-serif;
}

footer.custom-footer p {
    color: #ffffff !important;
}

.footer-bottom-bar {
    background-color: #161413;
    border-top: none;
    color: #ffffff !important;
}

.footer-bottom-bar a {
    color: var(--nexus-orange) !important;
    text-decoration: none !important;
    transition: all 0.4s ease;
}

.footer-bottom-bar a:hover {
    color: #7d3e14 !important;
    /* Dark pink shade */
    text-decoration: underline !important;
}

.footer-bottom-bar .text-secondary {
    color: #ffffff !important;
}

.footer-heading {
    color: var(--nexus-orange) !important;
    font-size: 1.2rem;
    /* Increased font size */
    font-weight: normal;
    margin-bottom: 1.5rem;
    text-transform: none;
    font-family: Arial, Helvetica, sans-serif;
    letter-spacing: normal;
}

.footer-logo-wrap {
    display: inline-block;
    padding: 0;
    margin-bottom: 15px;
}

.footer-logo-img {
    width: 100px;
    /* Decreased from 180px for better text wrap */
    max-width: 100%;
    height: auto;
    display: block;
}

.text-light-grey {
    color: #ffffff !important;
    font-size: 15px;
    /* Increased from 14px */
    line-height: 1.6;
}

.footer-links li {
    margin-bottom: 0.8rem;
    /* More breathing room */
}

.footer-links a {
    color: #ffffff !important;
    text-decoration: none;
    display: flex;
    align-items: flex-start;
    font-size: 15px;
    /* Increased from 14px */
    transition: color 0.3s;
}

.footer-links a:hover,
.footer-links a:hover span,
.footer-links a:hover::before {
    color: var(--nexus-orange);
}

.footer-links a::before {
    content: '>';
    margin-right: 30px;
    /* Extra space between arrow and content as requested */
    font-weight: normal;
    color: #ffffff !important;
    transition: color 0.3s;
}

.footer-links a span {
    display: block;
}

.footer-dummy-text {
    font-size: 15px;
    /* Increased from 14px */
    line-height: 1.5;
    margin-bottom: 25px;
}

.footer-contact-info li,
.footer-social-row {
    display: flex;
    align-items: center;
}

.icon-circle {
    background-color: var(--nexus-orange);
    color: white !important;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 13px;
    transition: all 0.3s ease;
}

.footer-social-row .icon-circle {
    margin-right: 0;
    /* Gaps handled by flex gap */
}

.footer-social-row .icon-circle:hover {
    background-color: #ffffff;
    color: var(--nexus-orange) !important;
    transform: translateY(-3px);
}

.icon-text {
    font-size: 15px;
    color: #ffffff !important;
    transition: color 0.3s ease;
}

.footer-contact-info a:hover .icon-text {
    color: var(--nexus-orange) !important;
}

.footer-contact-info a:hover .icon-circle {
    background-color: #ffffff;
    color: var(--nexus-orange) !important;
}

/* Minimize extra gaps between columns to match reference balance */
.custom-footer-row {
    justify-content: space-between;
}

@media (min-width: 992px) {
    .custom-footer-row>div {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Mobile optimizations */
@media (max-width: 767px) {
    footer.custom-footer {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .footer-heading {
        margin-bottom: 1rem;
        font-size: 1.1rem;
    }

    .footer-links a::before {
        margin-right: 15px;
        /* Reduced space between arrow and text for mobile side-by-side */
    }

    .footer-logo-wrap {
        margin-bottom: 15px;
    }

    /* Ensuring Quick Links and Our Services handle side-by-side spacing well */
    .col-6 {
        padding-left: 10px;
        padding-right: 10px;
    }
}