/**
 * ACT Solutions For All - Footer & Back to Top Styles
 * Modern footer design with 3-column layout
 *
 * @since 1.4.0
 */

/* ===============================
   CONTAINER
   =============================== */

.container-80 {
    max-width: 1400px;
    width: 80%;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===============================
   ACT SOLUTIONS FOOTER
   =============================== */

.actsolutions-footer {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(180deg, #0D1B2A 0%, #020617 100%);
    color: #ffffff;
    padding: 0;
    margin-top: 0;
    position: relative;
}

.actsolutions-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #0072BC 50%, transparent 100%);
}

/* Footer Main Section */
.footer-main {
    padding: 100px 0 80px;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 80px;
    align-items: start;
}

/* Footer Columns */
.footer-column {
    padding: 0;
}

/* Left Column */
.footer-left {}

/* Center Column */
.footer-center {
    text-align: center;
    padding: 0 20px;
}

/* Right Column */
.footer-right {}

/* Footer Headings */
.footer-heading {
    font-size: 18px;
    font-weight: 700;
    color: #0072BC;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0 0 28px;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(0, 114, 188, 0.4);
    position: relative;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: #0072BC;
}

/* Footer Brand (Center) */
.footer-brand {
    margin-bottom: 40px;
    text-align: center;
}

.footer-logo {
    max-width: 220px;
    height: auto;
    margin: 0 auto 24px;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(0, 114, 188, 0.2));
}

.footer-company-name {
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.footer-tagline {
    font-size: 15px;
    color: #94A3B8;
    margin: 0;
    line-height: 1.6;
    font-weight: 400;
}

/* Footer Main Contact (Center) */
.footer-main-contact {
    /* margin-bottom: 40px; */
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 20px;
    font-size: 15px;
    padding: 8px 0;
}

.contact-item svg {
    flex-shrink: 0;
    color: #0072BC;
    filter: drop-shadow(0 2px 4px rgba(0, 114, 188, 0.3));
}

.contact-item a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.contact-item a:hover {
    color: #0072BC;
    text-decoration: none;
    transform: translateX(3px);
}

.contact-item span {
    color: #94A3B8;
    font-weight: 400;
}

/* Business Hours (Center) */
.footer-business-hours {
    background: rgba(0, 114, 188, 0.08);
    border: 1px solid rgba(0, 114, 188, 0.25);
    border-radius: 16px;
    padding: 32px 28px;
    margin-top: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.hours-title {
    font-size: 17px;
    font-weight: 700;
    color: #0072BC;
    margin: 0 0 20px;
    text-align: center;
    letter-spacing: 0.5px;
}

.footer-business-hours p {
    font-size: 14px;
    color: #CBD5E1;
    margin: 10px 0;
    line-height: 1.8;
    text-align: center;
    font-weight: 400;
}

.emergency-note {
    margin-top: 16px !important;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 114, 188, 0.3);
    color: #0072BC !important;
    font-weight: 700;
    font-size: 14px !important;
    letter-spacing: 0.3px;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 16px;
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #CBD5E1;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    padding: 6px 0;
    font-weight: 400;
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 10px;
}

.footer-links svg {
    flex-shrink: 0;
    color: #0072BC;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-links a:hover svg {
    opacity: 1;
    transform: translateX(3px);
}

/* Service Areas */
.footer-areas {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-areas li {
    display: flex;
    gap: 14px;
    margin-bottom: 24px;
    align-items: start;
    padding: 8px 0;
}

.footer-areas svg {
    flex-shrink: 0;
    color: #0072BC;
    margin-top: 4px;
    opacity: 0.9;
}

.footer-areas div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-areas strong {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    display: block;
    letter-spacing: 0.3px;
}

.footer-areas span {
    font-size: 13px;
    color: #94A3B8;
    line-height: 1.6;
    font-weight: 400;
}

/* Social Links */
.footer-social {
    display: flex;
    gap: 18px;
    margin-top: 28px;
}

.social-link {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 114, 188, 0.12);
    border: 2px solid rgba(0, 114, 188, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0072BC;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.social-link:hover {
    background: linear-gradient(135deg, #0072BC 0%, #005a94 100%);
    border-color: #0072BC;
    color: #ffffff;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 114, 188, 0.4);
}

/* Footer Bottom Bar */
.footer-bottom {
    background: linear-gradient(180deg, #0D1B2A 0%, #020617 100%);
    padding: 32px 0;
    border-top: 1px solid rgba(0, 114, 188, 0.25);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    font-size: 14px;
    color: #94A3B8;
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.2px;
}

.footer-bottom-links {
    display: flex;
    gap: 16px;
    align-items: center;
}

.footer-bottom-links a {
    font-size: 14px;
    color: #CBD5E1;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 400;
}

.footer-bottom-links a:hover {
    color: #0072BC;
    text-decoration: none;
}

.footer-bottom-links .separator {
    color: #475569;
    font-size: 14px;
}

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

.actsolutions-back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 58px;
    height: 58px;
    background: linear-gradient(135deg, #0072BC 0%, #005a94 100%);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(0, 114, 188, 0.35);
    z-index: 9999;
}

.actsolutions-back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.actsolutions-back-to-top:hover {
    background: linear-gradient(135deg, #005a94 0%, #0072BC 100%);
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 14px 32px rgba(0, 114, 188, 0.5);
}

.actsolutions-back-to-top:active {
    transform: translateY(-3px) scale(1.02);
}

.actsolutions-back-to-top svg {
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

/* Pulse animation */
@keyframes pulse-blue {
    0% {
        box-shadow: 0 8px 24px rgba(0, 114, 188, 0.35);
    }
    50% {
        box-shadow: 0 8px 24px rgba(0, 114, 188, 0.35), 0 0 0 12px rgba(0, 114, 188, 0);
    }
    100% {
        box-shadow: 0 8px 24px rgba(0, 114, 188, 0.35);
    }
}

.actsolutions-back-to-top.show {
    animation: pulse-blue 2.5s ease-in-out infinite;
}

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

@media (max-width: 1200px) {
    .container-80 {
        width: 90%;
    }

    .footer-grid {
        grid-template-columns: 1fr 1.3fr 1fr;
        gap: 60px;
    }

    .footer-main {
        padding: 80px 0 70px;
    }
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: left;
    }

    .footer-main {
        padding: 70px 0 60px;
    }

    .footer-center {
        text-align: left;
        padding: 0;
        order: 1;
    }

    .footer-brand {
        text-align: left;
    }

    .footer-left {
        order: 2;
        padding-top: 20px;
        border-top: 1px solid rgba(0, 114, 188, 0.2);
    }

    .footer-right {
        order: 3;
        padding-top: 20px;
        border-top: 1px solid rgba(0, 114, 188, 0.2);
    }

    .footer-logo {
        margin: 0 0 20px;
    }

    .contact-item {
        justify-content: flex-start;
    }

    .footer-business-hours p,
    .hours-title {
        text-align: left;
    }

    .footer-business-hours {
        margin-top: 24px;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .container-80 {
        width: 95%;
    }

    .footer-main {
        padding: 60px 0 50px;
    }

    .footer-grid {
        gap: 50px;
    }

    .footer-heading {
        font-size: 17px;
        margin-bottom: 24px;
        padding-bottom: 14px;
    }

    .footer-logo {
        max-width: 180px;
    }

    .footer-company-name {
        font-size: 22px;
    }

    .footer-tagline {
        font-size: 14px;
    }

    .footer-left,
    .footer-right {
        padding-top: 16px;
    }

    .actsolutions-back-to-top {
        width: 52px;
        height: 52px;
        bottom: 24px;
        right: 24px;
    }

    .actsolutions-back-to-top svg {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 480px) {
    .container-80 {
        width: 95%;
        padding: 0 15px;
    }

    .footer-main {
        padding: 50px 0 40px;
    }

    .footer-grid {
        gap: 40px;
    }

    .footer-heading {
        font-size: 16px;
        margin-bottom: 20px;
        padding-bottom: 12px;
    }

    .footer-logo {
        max-width: 160px;
    }

    .footer-company-name {
        font-size: 20px;
    }

    .footer-links a {
        font-size: 14px;
    }

    .footer-links li {
        margin-bottom: 14px;
    }

    .footer-areas li {
        margin-bottom: 20px;
    }

    .footer-areas strong {
        font-size: 14px;
    }

    .footer-areas span {
        font-size: 12px;
    }

    .contact-item {
        font-size: 14px;
        margin-bottom: 18px;
    }

    .footer-business-hours {
        padding: 24px 20px;
    }

    .footer-business-hours p {
        font-size: 13px;
    }

    .social-link {
        width: 44px;
        height: 44px;
    }

    .footer-bottom {
        padding: 28px 0;
    }

    .copyright,
    .footer-bottom-links a {
        font-size: 13px;
    }

    .actsolutions-back-to-top {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .actsolutions-back-to-top svg {
        width: 20px;
        height: 20px;
    }
}
