/* footer.css
   Site footer and the back to top button. */

/* ---------- footer ---------- */

.footer-b {
    display: flex;
    flex-direction: column;
    padding: 70px var(--gutter) 30px var(--gutter);
    box-sizing: border-box;
    background-color: #061a2e;
    color: white;
}

.footer-b .top {
    display: flex;
    flex: 1;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-b .top .brand {
    display: flex;
    flex: 1.4;
    flex-direction: column;
    gap: 16px;
    min-width: 250px;
}

.footer-b .top .brand img {
    max-width: 190px;
}

.footer-b .top .brand p {
    font-family: "Montserrat", sans-serif;
    font-size: clamp(11px, 1.2vw, 13px);
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.85;
    max-width: 90%;
}

.footer-b .top .column {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    min-width: 150px;
}

.footer-b .top .column h5 {
    font-family: "Lora", serif;
    font-size: clamp(14px, 1.5vw, 17px);
    font-weight: 600;
    margin-bottom: 4px;
}

.footer-b .top .column a {
    text-decoration: none;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(11px, 1.2vw, 13px);
    color: rgba(255, 255, 255, 0.6);
    width: fit-content;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-b .top .column a:hover {
    color: #6aa9dd;
    transform: translateX(5px);
}

.footer-b .top .contact .line {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
}

.footer-b .top .contact .line i {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6aa9dd;
    font-size: 13px;
    margin-top: 3px;
}

.footer-b .top .contact .line p {
    font-family: "Montserrat", sans-serif;
    font-size: clamp(11px, 1.2vw, 13px);
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}

.footer-b .bottom {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    padding: 25px 0;
}

.footer-b .bottom p {
    font-family: "Montserrat", sans-serif;
    font-size: clamp(10px, 1.1vw, 12px);
    color: rgba(255, 255, 255, 0.5);
}

.footer-b .bottom .links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 22px;
}

.footer-b .bottom .links a {
    text-decoration: none;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(10px, 1.1vw, 12px);
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s ease;
}

.footer-b .bottom .links a:hover {
    color: #6aa9dd;
}

.footer-b .legal {
    font-family: "Montserrat", sans-serif;
    font-size: clamp(9px, 1.0vw, 11px);
    color: rgba(255, 255, 255, 0.35);
    line-height: 1.8;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}


/* ---------- back to top ---------- */

.to-top {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    right: 28px;
    bottom: 28px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-color: #075d9b;
    color: white;
    cursor: pointer;
    z-index: 60;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    box-shadow: 0 10px 24px rgba(8, 114, 189, 0.4);
    transition: opacity 0.4s ease, transform 0.4s ease, background-color 0.3s ease;
}

.to-top.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.to-top:hover {
    background-color: #0872bd;
    transform: translateY(-4px);
}

.to-top i {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    transform: rotate(-90deg);
}


/* ---------- footer socials and links ---------- */

.footer-b .top .brand .socials {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 4px;
}

.footer-b .top .brand .socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.footer-b .top .brand .socials a:hover {
    background-color: #075d9b;
    color: white;
    transform: translateY(-3px);
}

.footer-b .top .contact a.line {
    text-decoration: none;
    transition: transform 0.3s ease;
}

.footer-b .top .contact a.line:hover {
    transform: translateX(4px);
}

.footer-b .top .contact a.line:hover p {
    color: #6aa9dd;
}

.footer-b .top .contact .line p {
    transition: color 0.3s ease;
}


/* ---------- sticky call bar (mobile only) ---------- */

.sticky-call {
    display: none;
    align-items: stretch;
    justify-content: center;
    gap: 10px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    padding: 10px 12px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
    background-color: rgba(6, 26, 46, 0.97);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 -8px 26px rgba(1, 1, 1, 0.3);
}

.sticky-call a {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 0 12px;
    box-sizing: border-box;
    border-radius: 8px;
    text-decoration: none;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 14px;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.sticky-call a:active {
    transform: scale(0.97);
}

.sticky-call a i {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.sticky-call .call {
    background-color: #0872bd;
    color: white;
}

.sticky-call .review {
    background-color: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.45);
}
