/*
 * Site footer (resources/views/layouts/site/footer.blade.php), shared by every page.
 * Matches the homepage palette: navy base, Coral Reef blue #1577bb and green #3fb24a.
 */

.ft {
    --ft-bg: #0a1b30;
    --ft-text: #a9b9cc;
    --ft-strong: #ffffff;
    --ft-line: rgba(255, 255, 255, .1);
    --ft-blue: #1577bb;
    --ft-green: #3fb24a;
    --ft-green-300: #8fd897;

    position: relative;
    overflow: hidden;
    padding: clamp(56px, 7vw, 88px) 0 0;
    background:
        radial-gradient(700px 380px at 100% 0%, rgba(21, 119, 187, .22), transparent 65%),
        radial-gradient(600px 360px at 0% 100%, rgba(63, 178, 74, .12), transparent 65%),
        var(--ft-bg);
    color: var(--ft-text);
    font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 1.6;
}

/* brand gradient rule along the top edge */
.ft::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ft-green), var(--ft-blue));
}

.ft :where(p, ul, h2) { margin: 0; }
.ft :where(ul) { padding: 0; list-style: none; }

.ft a {
    color: var(--ft-text);
    text-decoration: none;
    transition: color .2s;
}

.ft a:hover { color: var(--ft-strong); text-decoration: none; }

.ft a:focus-visible {
    outline: 2px solid var(--ft-green-300);
    outline-offset: 3px;
    border-radius: 4px;
}

.ft-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, .85fr)) minmax(0, 1.35fr);
    gap: 40px 32px;
    padding-bottom: clamp(44px, 6vw, 64px);
}

/* ---------- Brand ---------- */

.ft-logo { display: inline-block; }
.ft-logo picture { display: block; }

.ft-logo img {
    display: block;
    width: 210px;
    height: auto;
    margin-left: -18px; /* the image has built-in left padding */
}

.ft-about {
    margin-top: 20px !important;
    max-width: 320px;
}

.ft-social {
    display: flex;
    gap: 10px;
    margin-top: 24px !important;
}

.ft-social__link {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--ft-line);
    transition: background-color .25s, border-color .25s, transform .25s;
}

.ft-social__link svg {
    width: 17px;
    height: 17px;
    fill: #fff;
}

.ft-social__link:hover { transform: translateY(-2px); }
.ft-social__link--linkedin:hover { background: #0a66c2; border-color: #0a66c2; }
.ft-social__link--fiverr:hover { background: #1dbf73; border-color: #1dbf73; }
.ft-social__link--facebook:hover { background: #1877f2; border-color: #1877f2; }
.ft-social__link--instagram:hover { background: #d62976; border-color: #d62976; }
.ft-social__link--youtube:hover { background: #ff0000; border-color: #ff0000; }

.ft-social__link i {
    font-size: 17px;
    color: #fff;
}

.ft-social { flex-wrap: wrap; }

/* ---------- Link columns ---------- */

.ft-title {
    font-family: inherit;
    font-size: 13px !important; /* cards.css sets every h2 to 1.3rem !important on some pages */
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ft-strong);
    margin-bottom: 18px !important;
}

.ft-links li + li { margin-top: 11px; }

.ft-links a {
    position: relative;
    display: inline-block;
}

/* underline grows in on hover */
.ft-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -2px;
    height: 1.5px;
    background: var(--ft-green-300);
    transition: right .25s ease;
}

.ft-links a:hover::after { right: 0; }

.ft-ext {
    font-size: 11px;
    margin-left: 3px;
    opacity: .7;
}

/* ---------- Contact ---------- */

.ft-contact__list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.ft-contact__list li + li { margin-top: 16px; }

.ft-contact__icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    font-size: 13px;
    color: var(--ft-green-300);
    background: rgba(63, 178, 74, .12);
}

.ft-contact__list a {
    padding-top: 5px;
    overflow-wrap: anywhere;
}

/* ---------- Bottom bar ---------- */

.ft-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    padding: 22px 0 26px;
    border-top: 1px solid var(--ft-line);
    font-size: 13.5px;
}

.ft-tagline {
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: 12px;
    color: var(--ft-green-300);
}

.ft-top {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.ft-top i { transition: transform .2s; }
.ft-top:hover i { transform: translateY(-3px); }

.ft-bottom__left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 20px;
}

.ft-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
}

.ft-legal a {
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, .25);
    text-underline-offset: 3px;
}

.ft-legal a:hover { text-decoration-color: currentColor; }

/* Keep "Back to top" clear of the floating WhatsApp button */
body:has(.wa-float) .ft-bottom { padding-right: 76px; }

/* ---------- Floating WhatsApp button (layouts/site/whatsapp.blade.php) ---------- */

.wa-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1020; /* below the header (1030), so the open phone menu covers it */
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    font-size: 30px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .22);
    transition: transform .2s, box-shadow .2s;
}

.wa-float:hover {
    color: #fff;
    text-decoration: none;
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .28);
}

.wa-float:focus-visible {
    outline: 3px solid #0a1b30;
    outline-offset: 3px;
    box-shadow: 0 0 0 6px #fff;
}

.wa-float__tip {
    position: absolute;
    right: calc(100% + 12px);
    padding: 8px 12px;
    border-radius: 10px;
    background: #0a1b30;
    color: #fff;
    font-family: 'Montserrat', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(6px);
    pointer-events: none;
    transition: opacity .2s, transform .2s;
}

.wa-float:hover .wa-float__tip,
.wa-float:focus-visible .wa-float__tip {
    opacity: 1;
    transform: none;
}

html.hd-lock .wa-float { display: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1199.98px) {
    .ft-grid {
        grid-template-columns: repeat(3, minmax(0, .8fr)) minmax(0, 1.2fr);
    }

    .ft-brand {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: 16px 40px;
        padding-bottom: 32px;
        border-bottom: 1px solid var(--ft-line);
    }

    .ft-about,
    .ft-social { margin-top: 0 !important; }

    .ft-about { max-width: 520px; }
}

@media (max-width: 991.98px) {
    .ft-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ft-brand { grid-template-columns: minmax(0, 1fr) auto; }
    .ft-brand .ft-logo { grid-column: 1 / -1; }

    .ft-contact { grid-column: 1 / -1; }

    .ft-contact__list {
        display: flex;
        flex-wrap: wrap;
        gap: 16px 40px;
    }

    .ft-contact__list li + li { margin-top: 0; }
}

@media (max-width: 767.98px) {
    .ft .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .ft-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 36px 24px;
    }

    .ft-brand {
        display: block;
    }

    .ft-about { margin-top: 18px !important; }
    .ft-social { margin-top: 20px !important; }

    .ft-contact { grid-column: 1 / -1; }

    .ft-contact__list { display: block; }
    .ft-contact__list li + li { margin-top: 16px; }

    .ft-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ft *,
    .ft *::after {
        transition: none !important;
    }
}
