/* ============================================================
   Footer Component — ft- prefix namespace
   Social icons rely on images/13.webp (sprite) in this dir.
   ============================================================ */

/* ---- CSS Custom Properties (scoped to .ft-footer) ---- */
.ft-footer {
    --ft-bg:           var(--brand-footer-bg);
    --ft-text:         #ffffff;
    --ft-text-muted:   #b2ada6;
    --ft-accent:       var(--brand-footer-accent);
    --ft-divider-alpha: 0.2;
    --ft-font:         "Open Sans", "Segoe UI", Arial, sans-serif;
    --ft-max-width:    1180px;

    margin: 0;
    padding: 0;
    font-family: var(--ft-font);
    background-color: var(--ft-bg);
    color: var(--ft-text);
}

.ft-footer *,
.ft-footer *::before,
.ft-footer *::after {
    box-sizing: border-box;
}

.ft-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ft-footer a {
    text-decoration: none;
}

.ft-footer img {
    border: 0;
    max-width: 100%;
    height: auto;
}

/* ---- Container ---- */
.ft-container {
    max-width: var(--ft-max-width);
    margin: 0 auto;
    padding: 30px 10px;
    position: relative;
}

/* ---- Top (menu columns) ---- */
.ft-top {
    display: flex;
}

.ft-menu-col {
    width: 25%;
}

/* ---- Column titles ---- */
.ft-col-title {
    font-size: 14px;
    letter-spacing: 3px;
    color: var(--ft-text-muted);
    width: 100%;
    margin: 0 0 20px;
    font-weight: 300;
    line-height: 2;
}

.ft-col-title-text {
    font-size: 16px;
    color: var(--ft-text);
    font-weight: 700;
    letter-spacing: 3px;
    line-height: 2em;
}

/* ---- Toggle icon (mobile: +/-) ---- */
.ft-toggle-icon {
    display: none;
    position: absolute;
    right: 20px;
    width: 15px;
    height: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.ft-toggle-icon::before,
.ft-toggle-icon::after {
    content: "";
    position: absolute;
    background: var(--ft-text);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.ft-toggle-icon::before {
    width: 15px;
    height: 1px;
}

.ft-toggle-icon::after {
    width: 1px;
    height: 15px;
}

/* Active state: hide the vertical bar to turn + into - */
.ft-menu-col.ft-open .ft-toggle-icon::after {
    display: none;
}

/* ---- Navigation list ---- */
.ft-nav-list li {
    line-height: 28px;
    font-weight: 300;
    font-size: 14px;
    letter-spacing: 1px;
    word-break: break-word;
    color: var(--ft-text);
}

.ft-nav-list li a {
    font-family: var(--ft-font);
    font-size: 13px;
    color: var(--ft-text);
    font-weight: 300;
    letter-spacing: 1px;
    opacity: 1;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.ft-nav-list li a:hover {
    opacity: 1;
    color: #0178da;
}

/* ---- Social icons (Inline SVG) ---- */
.ft-social-icons {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ft-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .10);
    color: #fff;
    transition: background 0.25s ease, transform 0.25s ease;
}

.ft-social-link:hover {
    transform: translateY(-3px);
}

.ft-social-link svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.ft-social-link--facebook:hover { background: #1877F2; }
.ft-social-link--linkedin:hover { background: #0A66C2; }
.ft-social-link--twitter:hover  { background: #000; }
.ft-social-link--youtube:hover  { background: #FF0000; }

/* ---- Bottom ---- */
.ft-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--ft-text);
    padding-top: 30px;
    margin-top: 30px;
    position: relative;
}

.ft-bottom::before {
    position: absolute;
    width: 100%;
    height: 1px;
    content: "";
    background: var(--ft-text);
    opacity: var(--ft-divider-alpha);
    top: 0;
    left: 0;
}

/* ---- Contact info ---- */
.ft-contact {
    font-weight: 300;
    font-size: 11px;
    color: var(--ft-text);
    line-height: 2;
}

.ft-contact-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 2px;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

/* Simple inline SVG via data URI — no font dependency */
.ft-contact-icon--email {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'/%3E%3Cpolyline points='22,6 12,13 2,6'/%3E%3C/svg%3E");
}

.ft-contact-icon--phone {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M22 16.92v3a2 2 0 01-2.18 2 19.79 19.79 0 01-8.63-3.07 19.5 19.5 0 01-6-6 19.79 19.79 0 01-3.07-8.67A2 2 0 014.11 2h3a2 2 0 012 1.72c.127.96.362 1.903.7 2.81a2 2 0 01-.45 2.11L8.09 9.91a16 16 0 006 6l1.27-1.27a2 2 0 012.11-.45c.907.338 1.85.573 2.81.7A2 2 0 0122 16.92z'/%3E%3C/svg%3E");
}

.ft-contact-icon--address {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0118 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

/* ---- Logo ---- */
.ft-logo {
    flex-shrink: 0;
}

.ft-logo img {
    display: block;
    max-height: 50px;
    width: auto;
}

/* ---- Copyright ---- */
.ft-copyright {
    text-align: right;
    font-weight: 300;
    font-size: 11px;
    color: var(--ft-text-muted);
}

.ft-copyright a {
    color: var(--ft-text);
    transition: opacity 0.2s ease;
}

.ft-copyright a:hover {
    opacity: 1;
    color: #0178da;
}

/* ============================================================
   Responsive — max-width: 768px
   ============================================================ */
@media screen and (max-width: 768px) {
    .ft-container {
        padding: 0 10px 30px;
    }

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

    .ft-menu-col {
        width: 100%;
        position: relative;
    }

    /* Divider between columns */
    .ft-menu-col::before {
        position: absolute;
        width: 100%;
        height: 1px;
        content: "";
        background: var(--ft-text);
        opacity: var(--ft-divider-alpha);
        top: 0;
        left: 0;
    }

    .ft-menu-col:first-child::before {
        display: none;
    }

    /* Column title becomes clickable toggle */
    .ft-col-title {
        margin: 0;
        padding: 20px 0;
        line-height: unset;
        position: relative;
        cursor: pointer;
    }

    .ft-toggle-icon {
        display: block;
    }

    /* Navigation hidden by default on mobile */
    .ft-col-nav {
        padding: 20px 0;
        display: none;
        position: relative;
    }

    .ft-col-nav::after {
        position: absolute;
        width: 100%;
        height: 1px;
        content: "";
        background: var(--ft-text);
        opacity: var(--ft-divider-alpha);
        top: 0;
        left: 0;
    }

    /* Open state: show nav */
    .ft-menu-col.ft-open .ft-col-nav {
        display: block;
    }

    /* Social column tweaks */
    .ft-menu-col:last-child {
        text-align: center;
    }

    .ft-menu-col:last-child .ft-col-title {
        display: none;
    }

    .ft-social-icons {
        margin-top: 20px;
        justify-content: center;
    }

    /* Bottom stack vertically */
    .ft-bottom {
        margin-top: 20px;
        flex-wrap: wrap;
        text-align: center;
    }

    .ft-contact,
    .ft-logo,
    .ft-copyright {
        width: 100%;
    }

    .ft-copyright {
        text-align: center;
    }
}
