/* =========================================================
   Footer redesign — dark corporate footer + back-to-top
   Scoped to .footer-area and #backToTop only
========================================================= */

.footer-area {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #0a1224 0%, #0d1a33 100%);
}

.footer-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2f6fed, #1b3ea8, #2f6fed);
    background-size: 200% 100%;
    animation: footerGradientMove 6s linear infinite;
}

@keyframes footerGradientMove {
    0% { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}

@media (prefers-reduced-motion: reduce) {
    .footer-area::before { animation: none; }
}

/* ---------- Widget headings ---------- */
.footer-area .single-footer-widget h4 {
    color: #fff;
    position: relative;
    padding-bottom: 14px;
}

.footer-area .single-footer-widget h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    border-radius: 3px;
    background: #2f6fed;
    transition: width 0.3s ease;
}

.footer-area .single-footer-widget:hover h4::after {
    width: 70px;
}

.footer-area .single-footer-widget p {
    color: rgba(255, 255, 255, 0.65) !important;
}

/* ---------- About widget / logo ---------- */
.footer-area .footer-logo img {
    height: 64px;
    width: auto;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
}

/* ---------- Contact list ---------- */
.footer-area .footer-contact-list {
    margin: 0;
    padding: 0;
}

.footer-area .footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
}

.footer-area .footer-contact-list li:last-child {
    margin-bottom: 0;
}

.footer-area .footer-contact-list li i {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(47, 111, 237, 0.18);
    color: #6ea1ff;
    font-size: 13px;
    margin-top: 1px;
}

.footer-area .footer-contact-list li span {
    min-width: 0;
    flex: 1 1 auto;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.footer-area .footer-contact-list li span a {
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.3s ease;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.footer-area .footer-contact-list li span a:hover {
    color: #6ea1ff;
}

/* ---------- Quick links with sweep-in arrow ---------- */
.footer-area .single-footer-widget ul li a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-area .single-footer-widget ul li a i {
    font-size: 9px;
    color: #6ea1ff;
    transition: transform 0.3s ease;
}

.footer-area .single-footer-widget ul li a:hover {
    color: #fff;
    transform: translateX(4px);
}

.footer-area .single-footer-widget ul li a:hover i {
    transform: translateX(3px);
}

/* ---------- Newsletter form ---------- */
.footer-area .single-footer-widget input {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.footer-area .single-footer-widget input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.footer-area .single-footer-widget input:focus {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: #2f6fed !important;
}

.footer-area .single-footer-widget .click-btn {
    background: linear-gradient(135deg, #2f6fed 0%, #1b3ea8 100%);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-area .single-footer-widget .click-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(47, 111, 237, 0.45);
}

/* ---------- Footer bottom ---------- */
.footer-area .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.footer-area .footer-bottom p,
.footer-area .footer-bottom p.footer-text {
    color: rgba(255, 255, 255, 0.55) !important;
}

.footer-area .footer-bottom p a {
    color: #6ea1ff !important;
}

.footer-area .footer-bottom .footer-social a {
    color: rgba(255, 255, 255, 0.6) !important;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.footer-area .footer-bottom .footer-social a:hover {
    color: #fff !important;
    background: #2f6fed;
    transform: translateY(-3px);
}

/* ---------- Back to top button ---------- */
.back-to-top {
    position: fixed;
    right: 26px;
    bottom: 26px;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2f6fed 0%, #1b3ea8 100%);
    color: #fff;
    font-size: 18px;
    box-shadow: 0 10px 26px rgba(47, 111, 237, 0.45);
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, box-shadow 0.3s ease;
}

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

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(47, 111, 237, 0.6);
}

@media (prefers-reduced-motion: reduce) {
    .back-to-top { transition: opacity 0.2s ease, visibility 0.2s ease; }
}

@media (max-width: 480px) {
    .back-to-top {
        right: 16px;
        bottom: 16px;
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
}
