/* ==========================================================================
   Site footer — resources/views/website/includes/footer.blade.php
   Linked from head.blade.php. Classes are prefixed with "ft".
   ========================================================================== */

.ft {
    --ft-primary: #421f61;
    --ft-deeper: #1c0c2e;
    --ft-accent: #dea8e4;
    --ft-text: rgba(255, 255, 255, 0.72);

    position: relative;
    padding-top: clamp(56px, 7vw, 88px);
    background:
        radial-gradient(circle at 100% 0%, rgba(222, 168, 228, 0.14), transparent 40%),
        radial-gradient(circle at 0% 100%, rgba(107, 58, 147, 0.4), transparent 45%),
        linear-gradient(180deg, #2a123f 0%, var(--ft-deeper) 100%);
    color: var(--ft-text);
    overflow: hidden;
}

/* thin brand gradient line along the top edge */
.ft::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--ft-accent), #8c4fb5, transparent);
}

.ft a {
    color: inherit;
    text-decoration: none;
}

.ft__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 20px;
    padding-bottom: clamp(36px, 5vw, 56px);
}

/* ---------- brand ---------- */

.ft__brand,
.ft__contact {
    grid-column: 1 / -1;
}

.ft__brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
}

.ft__logo img {
    height: 50px;
    width: auto;
    display: block;
}

.ft__tagline {
    margin: 0;
    max-width: 340px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    line-height: 1.8;
}

.ft__socials {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ft__socials a {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 16px;
    transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.ft__socials a:hover {
    transform: translateY(-3px);
    background: var(--ft-accent);
    border-color: var(--ft-accent);
    color: var(--ft-primary);
}

.ft__legal {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ft__qr {
    width: 76px;
    height: 76px;
    border-radius: 10px;
    background: #fff;
    padding: 4px;
    flex-shrink: 0;
}

.ft__legal dl {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ft__legal dt {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
}

.ft__legal dd {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
    direction: ltr;
    text-align: end;
}

html[dir="ltr"] .ft__legal dd {
    text-align: start;
}

/* ---------- link columns ---------- */

.ft__heading {
    position: relative;
    margin: 0 0 18px;
    padding-bottom: 10px;
    color: #fff;
    font-weight: 800;
    font-size: 18px;
}

.ft__heading::after {
    content: "";
    position: absolute;
    bottom: 0;
    inset-inline-start: 0;
    width: 32px;
    height: 3px;
    border-radius: 3px;
    background: var(--ft-accent);
}

.ft__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ft__links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    line-height: 1.5;
    transition: color 0.25s ease, transform 0.25s ease;
}

.ft__links a::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(222, 168, 228, 0.45);
    flex-shrink: 0;
    transition: background-color 0.25s ease;
}

.ft__links a:hover {
    color: #fff;
    transform: translateX(-4px);
}

html[dir="ltr"] .ft__links a:hover {
    transform: translateX(4px);
}

.ft__links a:hover::before {
    background: var(--ft-accent);
}

/* ---------- contact ---------- */

.ft__contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ft__contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.ft__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    background: rgba(222, 168, 228, 0.14);
    color: var(--ft-accent);
    font-size: 15px;
}

.ft__contact-list a {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding-top: 1px;
    font-size: 15px;
    line-height: 1.45;
    transition: color 0.25s ease;
}

.ft__contact-list a[href]:hover {
    color: #fff;
}

.ft__contact-list small {
    display: block;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.3;
}

/* ---------- bottom bar ---------- */

.ft__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ft__copy {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.ft__top {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.ft__top:hover {
    background: var(--ft-accent);
    color: var(--ft-primary);
    transform: translateY(-3px);
}

.ft a:focus-visible,
.ft button:focus-visible {
    outline: 3px solid var(--ft-accent);
    outline-offset: 3px;
}

/* ---------- breakpoints ---------- */

@media (min-width: 640px) {
    .ft__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 40px 32px;
    }
}

@media (min-width: 1024px) {
    .ft__grid {
        grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.75fr) minmax(0, 1fr) minmax(0, 1.25fr);
        gap: 40px;
    }

    .ft__socials {
        flex-wrap: nowrap;
        gap: 7px;
    }

    .ft__socials a {
        width: 37px;
        height: 37px;
    }

    .ft__brand,
    .ft__contact {
        grid-column: auto;
    }
}

@media (max-width: 400px) {
    .ft__links a {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .ft__bottom {
        padding-bottom: 90px; /* keep the copyright clear of the floating WhatsApp button */
    }
}

@media (prefers-reduced-motion: reduce) {
    .ft__socials a, .ft__links a, .ft__top {
        transition: none;
    }
}
