/* =====================================================
   footer styles
   uses same theme variables as header
   if you already have :root in header.css, keep it there.
   if not, uncomment below.
===================================================== */

/*
:root {
    --primary: #0a2540;
    --secondary: #1e90ff;
    --accent: #22b3c1;
    --white: #ffffff;
    --dark-text: #1f2933;
}
*/

.site-footer {
    background: var(--primary);
    color: rgba(255,255,255,.85);
    position: relative;
    padding-top: 70px;
}

/* grid layout */
.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 55px;
}

/* column basics */
.footer-title {
    color: var(--white);
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 18px 0;
    text-transform: capitalize;
}

.footer-text {
    margin: 16px 0 0 0;
    line-height: 1.7;
    max-width: 320px;
    font-size: 15px;
}

/* logo */
.footer-logo {
    height: 46px;
    display: block;
}

/* links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin: 11px 0;
}

.footer-links a {
    color: rgba(255,255,255,.85);
    text-decoration: none;
    transition: .25s;
    text-transform: capitalize;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 6px;
}

/* contact list */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 12px 0;
    text-transform: capitalize;
}

.footer-contact i {
    color: var(--accent);
    margin-top: 3px;
    width: 18px;
}

.footer-branch {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.footer-branch:hover {
    color: var(--secondary);
}

/* phone/email */
.footer-contact2 {
    margin-top: 18px;
}

.footer-contact2 p {
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact2 i {
    color: var(--accent);
}

/* bottom bar (like the screenshot) */
.footer-bottom {
    background: var(--white);
    color: var(--dark-text);
    padding: 18px 0;
}

.bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.copy {
    margin: 0;
    font-weight: 400;
    text-transform: lowercase;
    letter-spacing: .4px;
    font-size: 14px;
}

/* social icons */
.footer-social a {
    color: var(--dark-text);
    margin-left: 14px;
    font-size: 16px;
    text-decoration: none;
    transition: transform .25s, opacity .25s;
    display: inline-block;
}

.footer-social a:hover {
    transform: translateY(-3px);
    opacity: .85;
}

/* back to top button */
.back-to-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--secondary);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0,0,0,.2);
    transition: .25s;
    z-index: 999;
}

.back-to-top:hover {
    background: var(--secondary);
    color: var(--white);
}

/* responsive */
@media (max-width: 980px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .bottom-flex {
        flex-direction: column;
        text-align: center;
    }
    .footer-social a {
        margin: 0 10px;
    }
}

@media (max-width: 560px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
