/**
 * footer.css
 * GoodHope Insure — Global Footer Styles
 */

/* Isolated Footer CSS prefixed with gh-footer- */
.gh-footer {
    background-color: #081625;
    color: #94a3b8;
    padding: 60px 0 20px 0;
    border-top: 5px solid var(--accent);
}

.gh-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
    padding: 0 20px;
}

@media (min-width: 576px) {
    .gh-footer-container {
        grid-template-columns: repeat(2, 1fr); /* Tablet: 2 columns */
    }
}

@media (min-width: 992px) {
    .gh-footer-container {
        grid-template-columns: repeat(4, 1fr); /* Desktop: 4 columns */
    }
}

.gh-footer-col h3 {
    color: var(--white);
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
    font-family: inherit;
}

.gh-footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent);
}

.gh-footer-col p {
    line-height: 1.6;
    margin-bottom: 12px;
    color: #94a3b8;
    font-size: 14px;
}

.gh-footer-col ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.gh-footer-col ul li {
    margin-bottom: 12px;
}

.gh-footer-col ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
}

.gh-footer-col ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.gh-footer-social {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.gh-footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255,255,255,0.05);
    border-radius: 50%;
    color: #94a3b8;
    transition: all 0.3s;
}

.gh-footer-social a:hover {
    background-color: var(--accent);
    color: var(--white);
    transform: translateY(-2px);
}

.gh-footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 20px 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    font-size: 13px;
    color: #64748b;
}

.gh-footer-bottom p {
    margin: 0;
}

.gh-footer-bottom-image-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
    margin-bottom: 20px;
}

.gh-footer-bottom-img {
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: 70px;
    object-fit: contain;
    display: block;
}

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

.gh-footer-brand-title {
    color: white;
    margin-bottom: 15px;
    font-weight: 700;
    font-size: 22px;
    margin-top: 0;
}

.gh-footer-brand-accent {
    color: var(--accent);
}

/* Mobile Footer Redesign (Scoped to <= 768px) */
@media (max-width: 768px) {
    .gh-footer {
        padding: 36px 0 20px 0;
    }
    .gh-footer-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 24px 16px;
        margin-bottom: 24px;
        padding: 0 20px;
    }
    .gh-footer-col-brand {
        order: 1;
        grid-column: span 2;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding-bottom: 24px;
    }
    .gh-footer-col-brand p {
        font-size: 13.5px;
        line-height: 1.55;
        margin-bottom: 16px;
    }
    .gh-footer-logo-img {
        max-height: 48px;
        margin-bottom: 6px;
    }
    .gh-footer-social {
        margin-top: 0;
        gap: 12px;
    }
    .gh-footer-col-contact {
        order: 2;
        grid-column: span 2;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding-bottom: 24px;
    }
    .gh-footer-col-contact h3 {
        margin-bottom: 16px;
    }
    .gh-footer-col-contact p {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 12px;
        font-size: 13.5px;
        line-height: 1.5;
    }
    .gh-footer-col-contact p:last-child {
        margin-bottom: 0;
    }
    .gh-footer-col-contact p i {
        margin-right: 0 !important;
        margin-top: 3px;
        flex-shrink: 0;
        width: 16px;
        text-align: center;
    }
    .gh-footer-col-contact p a {
        color: #94a3b8;
        text-decoration: none;
        word-break: break-all;
    }
    .gh-footer-col-links {
        order: 3;
        grid-column: 1;
    }
    .gh-footer-col-solutions {
        order: 4;
        grid-column: 2;
    }
    .gh-footer-col-links h3,
    .gh-footer-col-solutions h3 {
        font-size: 16px;
        margin-bottom: 16px;
        padding-bottom: 8px;
    }
    .gh-footer-col-links ul li,
    .gh-footer-col-solutions ul li {
        margin-bottom: 10px;
    }
    .gh-footer-col-links ul li a,
    .gh-footer-col-solutions ul li a {
        font-size: 13.5px;
        display: inline-block;
        word-break: break-word;
    }
    .gh-footer-bottom {
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        padding: 24px 20px 10px;
        gap: 12px;
    }
    .gh-footer-bottom-image-wrap {
        margin-top: 0;
        margin-bottom: 8px;
    }
    .gh-footer-bottom-img {
        max-height: 38px;
    }
    .gh-footer-bottom p {
        font-size: 12px;
        color: #64748b;
        line-height: 1.5;
        text-align: center;
        max-width: 280px;
        margin: 0 auto;
    }
}
@media (max-width: 380px) {
    .gh-footer-container {
        gap: 20px 12px;
        padding: 0 16px;
    }
    .gh-footer-col-links ul li a,
    .gh-footer-col-solutions ul li a {
        font-size: 13px;
    }
}
