/* FOOTER – UPGRADED LOOK (same theme) */
.t24-footer {
    position: relative;
    background: linear-gradient(135deg, #005659 0%, #008d84 45%, #00a897 100%);
    color: #fff !important;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    overflow: hidden;
}

/* Subtle glow + texture */
.t24-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(700px 320px at 15% 15%, rgba(255, 255, 255, 0.10), transparent 60%),
        radial-gradient(650px 300px at 85% 20%, rgba(255, 212, 0, 0.08), transparent 55%),
        radial-gradient(800px 420px at 50% 110%, rgba(0, 0, 0, 0.20), transparent 55%);
    pointer-events: none;
}

.t24-footer .container {
    position: relative;
    z-index: 1;
}

.t24-footer-logo {
    max-height: 56px;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.25));
}

.t24-footer-title {
    font-weight: 800;
    margin-bottom: 14px;
    letter-spacing: 0.2px;
}

.t24-footer-text {
    max-width: 360px;
    opacity: 0.92;
    line-height: 1.6;
}

/* LINKS: unify behavior (no conflicting transform rules) */
.t24-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.t24-footer-links li a,
.t24-footer-item a,
.t24-footer-bottom a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    color: rgba(255, 255, 255, 0.92) !important;
    text-decoration: none;
    transition: transform 0.22s ease, color 0.22s ease, opacity 0.22s ease;
}

/* Underline accent */
.t24-footer-links li a::after,
.t24-footer-item a::after,
.t24-footer-bottom a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background-color: #ffd400;
    transition: width 0.28s ease;
}

.t24-footer-links li a:hover,
.t24-footer-item a:hover,
.t24-footer-bottom a:hover {
    color: #ffd400 !important;
}

.t24-footer-links li a:hover::after,
.t24-footer-item a:hover::after,
.t24-footer-bottom a:hover::after {
    width: 100%;
}

/* ONLY quick links should slide */
.t24-footer-links li a {
    padding: 6px 0;
    opacity: 0.92;
}

.t24-footer-links li a:hover {
    transform: translateX(6px);
    opacity: 1;
}

/* Contact/office rows */
.t24-footer-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-weight: 600;
    line-height: 1.45;
}

.t24-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
    flex: 0 0 40px;
}

.t24-footer-box {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(10px);
}

.t24-footer-box hr {
    border-color: rgba(255, 255, 255, 0.22);
    margin: 12px 0;
}

/* Social */
.t24-social-wrap {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.t24-social {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff !important;
    text-decoration: none;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.t24-social:hover {
    transform: translateY(-4px);
    background: rgba(255, 212, 0, 0.18);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.22);
}

/* Divider + bottom */
.t24-footer-divider {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.55), transparent);
    margin: 34px 0 18px;
}

.t24-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    opacity: 0.90;
}

.t24-footer-bottom p {
    margin: 0;
}

.t24-footer-bottom a {
    margin-left: 16px;
}

/* Responsive polish */
@media (max-width: 991px) {
    .t24-footer-text {
        max-width: 100%;
    }

    .t24-footer-bottom a {
        margin-left: 0;
        margin-right: 14px;
    }
}

@media (max-width: 575px) {
    .t24-footer {
        border-top-left-radius: 18px;
        border-top-right-radius: 18px;
    }

    .t24-footer-box {
        padding: 16px;
    }
}

/* =========================
   MOBILE FRIENDLY OVERRIDES
   Paste AFTER existing footer CSS
========================= */

/* 1) Better section spacing + reduce heavy radius on small screens */
@media (max-width: 991px) {
    .t24-footer .container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .t24-footer-title {
        margin-bottom: 10px;
    }

    .t24-footer-divider {
        margin: 26px 0 16px;
    }

    /* Less "busy" glow on mobile */
    .t24-footer::before {
        opacity: 0.85;
    }
}

/* 2) Make links easier to tap (big touch targets) */
@media (max-width: 575px) {
    .t24-footer .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    /* Stack + align better */
    .t24-footer-text {
        font-size: 14px;
        line-height: 1.55;
    }

    /* Increase tappable area for quick links + contact links */
    .t24-footer-links li a,
    .t24-footer-item a,
    .t24-footer-bottom a {
        padding: 10px 0;
        /* bigger tap height */
        min-height: 44px;
        /* standard touch target */
        align-items: center;
    }

    /* Quick links slide is nice on desktop, but can feel jumpy on mobile */
    .t24-footer-links li a:hover {
        transform: none;
    }

    /* Reduce icon size a bit to avoid tight rows */
    .t24-icon {
        width: 36px;
        height: 36px;
        border-radius: 12px;
        flex: 0 0 36px;
    }

    /* Better spacing between contact rows */
    .t24-footer-item {
        gap: 10px;
        margin-bottom: 12px;
        font-size: 14px;
    }

    /* Box padding tuned for small screens */
    .t24-footer-box {
        padding: 14px;
        border-radius: 16px;
    }

    /* Social buttons slightly smaller */
    .t24-social {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    /* Bottom area: stack nicely and make links wrap clean */
    .t24-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        font-size: 13px;
    }

    /* Make bottom links look like a neat row that wraps */
    .t24-footer-bottom>div {
        display: flex;
        flex-wrap: wrap;
        gap: 10px 14px;
    }

    .t24-footer-bottom a {
        margin-left: 0;
        /* remove desktop spacing rule */
    }

    /* Slightly smaller radius overall */
    .t24-footer {
        border-top-left-radius: 16px;
        border-top-right-radius: 16px;
    }
}

/* 3) Optional: reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {

    .t24-footer-links li a,
    .t24-footer-item a,
    .t24-footer-bottom a,
    .t24-social {
        transition: none !important;
    }

    .t24-social:hover {
        transform: none !important;
    }
}