/***
=============================================
    Footer — Bold Branded Redesign
=============================================
***/

/* ── Base ── */
.fp-footer {
    position: relative;
    display: block;
    background: var(--thm-main-bg);
    overflow: hidden;
    z-index: 10;
}

/* ── Brand Statement ── */
.fp-footer__brand {
    padding: 80px 0 40px;
}

.fp-footer__heading {
    font-family: var(--thm-font-2);
    font-size: 42px;
    font-weight: 800;
    line-height: 1.15;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 16px;
}

.fp-footer__tagline {
    font-family: var(--thm-font);
    font-size: 17px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    max-width: 480px;
}

/* ── Teal Gradient Accent Bar ── */
.fp-footer__accent {
    height: 3px;
    background: linear-gradient(90deg, var(--thm-base), transparent);
}

/* ── Link Columns ── */
.fp-footer__links {
    padding: 48px 0 40px;
}

.fp-footer__col {
    margin-bottom: 32px;
}

.fp-footer__col-heading {
    font-family: var(--thm-font-2);
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 20px;
}

.fp-footer__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fp-footer__list li {
    margin-bottom: 12px;
}

.fp-footer__list li a,
.fp-footer__list li span {
    font-family: var(--thm-font);
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.fp-footer__list li a:hover {
    color: var(--thm-base);
    transform: translateX(3px);
}

/* Contact list with icons */
.fp-footer__list--contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.fp-footer__list--contact li i {
    color: var(--thm-base);
    font-size: 14px;
    margin-top: 4px;
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}

/* ── Social Icons ── */
.fp-footer__social {
    display: flex;
    gap: 12px;
    padding-top: 8px;
    padding-bottom: 16px;
}

.fp-footer__social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--thm-base);
    color: #ffffff;
    font-size: 16px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.fp-footer__social-icon:hover {
    transform: translateY(-3px);
    opacity: 0.85;
    color: #ffffff;
}

/* ── Bottom Bar ── */
.fp-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.fp-footer__bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    gap: 16px;
}

.fp-footer__copyright {
    font-family: var(--thm-font);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.fp-footer__bottom-links {
    display: flex;
    gap: 24px;
}

.fp-footer__bottom-links a {
    font-family: var(--thm-font);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s ease;
}

.fp-footer__bottom-links a:hover {
    color: var(--thm-base);
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .fp-footer__heading {
        font-size: 32px;
    }
}

@media (max-width: 767px) {
    .fp-footer__brand {
        padding: 60px 0 32px;
    }

    .fp-footer__heading {
        font-size: 26px;
    }

    .fp-footer__tagline {
        font-size: 15px;
    }

    .fp-footer__col {
        margin-bottom: 28px;
    }

    .fp-footer__bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    .fp-footer__bottom-links {
        justify-content: center;
    }
}

/* ── TESTING: FOOTER SERVICES COLUMN SPLIT ── */

@media (min-width: 992px) {
    /* 1. Redistribute the grid to give the Services column more width */
    .fp-footer__links .row > .col-lg-3.fp-footer__col:nth-child(1) { flex: 0 0 20%; max-width: 20%; }
    .fp-footer__links .row > .col-lg-3.fp-footer__col:nth-child(2) { flex: 0 0 45%; max-width: 45%; }
    .fp-footer__links .row > .col-lg-3.fp-footer__col:nth-child(3) { flex: 0 0 15%; max-width: 15%; }
    .fp-footer__links .row > .col-lg-3.fp-footer__col:nth-child(4) { flex: 0 0 20%; max-width: 20%; }

    /* 2. Split the Services list into 2 columns */
    .fp-footer__links .row > .col-lg-3.fp-footer__col:nth-child(2) .fp-footer__list {
        column-count: 2;
        column-gap: 20px;
    }

    /* 3. Prevent list items from breaking in half between columns */
    .fp-footer__links .row > .col-lg-3.fp-footer__col:nth-child(2) .fp-footer__list li {
        break-inside: avoid;
        -webkit-column-break-inside: avoid;
        page-break-inside: avoid;
        display: inline-block;
        width: 100%;
    }
}

/* On tablets (md screens), redistribute the widths for more 'Services' space */
@media (min-width: 768px) and (max-width: 991px) {
    /* 1. Make the columns uneven (30% Left / 70% Right) */
    .fp-footer__links .row > .col-md-6.fp-footer__col:nth-child(1) { flex: 0 0 30%; max-width: 30%; }
    .fp-footer__links .row > .col-md-6.fp-footer__col:nth-child(2) { flex: 0 0 70%; max-width: 70%; }
    
    /* 2. Match the bottom row (Information / Contact) to the same layout so it looks clean */
    .fp-footer__links .row > .col-md-6.fp-footer__col:nth-child(3) { flex: 0 0 30%; max-width: 30%; }
    .fp-footer__links .row > .col-md-6.fp-footer__col:nth-child(4) { flex: 0 0 70%; max-width: 70%; }

    /* 3. Split the Services list into 2 columns */
    .fp-footer__links .row > .col-md-6.fp-footer__col:nth-child(2) .fp-footer__list {
        column-count: 2;
        column-gap: 20px;
    }
    
    /* 4. Prevent list items from breaking in half */
    .fp-footer__links .row > .col-md-6.fp-footer__col:nth-child(2) .fp-footer__list li {
        break-inside: avoid;
        -webkit-column-break-inside: avoid;
        page-break-inside: avoid;
        display: inline-block;
        width: 100%;
    }
}
