/* Site footer — professional green / yellow theme */

/*
 * Footer renders inside .mobile-shell (before </main>).
 * Mobile bottom nav clearance is handled in mobile-bottom-nav-safe.css.
 */
.icg-theme .mobile-shell {
    min-height: auto;
}

.icg-footer.site-footer {
    margin-top: 40px;
    margin-bottom: 0;
    padding: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.88);
    position: relative;
    overflow: hidden;
}

/* Wave transition from page content */
.icg-footer-wave {
    display: block;
    line-height: 0;
    color: var(--icg-green-dark, #1e4d24);
    margin-bottom: -1px;
}

.icg-footer-wave svg {
    display: block;
    width: 100%;
    height: 40px;
}

/* Main footer body */
.icg-footer-body {
    background: var(--icg-green-dark, #1e4d24);
    padding: 40px 20px 32px;
    position: relative;
}

.icg-footer-body::after {
    content: "";
    position: absolute;
    top: 0;
    right: -80px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 197, 24, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.icg-footer-grid {
    max-width: 1100px;
    margin: 0 auto 32px;
    display: grid;
    gap: 32px 24px;
}

.icg-footer-brand {
    max-width: 320px;
}

.icg-footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0;
    margin: 0 0 8px;
    padding: 0;
    line-height: 0;
    text-decoration: none;
}

.icg-footer-logo-img {
    display: block;
    height: 112px;
    width: auto;
    max-width: 420px;
    margin: -14px -20px;
    padding: 0;
    object-fit: contain;
}

.icg-footer-tagline {
    font-size: 14px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.72);
    margin: 0 0 18px;
}

.icg-footer-social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.icg-footer-social-link {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    display: grid;
    place-items: center;
    font-size: 18px;
    color: #fff;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
}

.icg-footer-social-link:hover {
    background: var(--icg-yellow, #f5c518);
    color: var(--icg-black, #0a0a0a);
    border-color: var(--icg-yellow, #f5c518);
    transform: translateY(-2px);
}

/* Link columns */
.icg-footer-col h3 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--icg-yellow, #f5c518);
    margin: 0 0 14px;
}

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

.icg-footer-col li {
    margin-bottom: 10px;
}

.icg-footer-col li:last-child {
    margin-bottom: 0;
}

.icg-footer-col a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    transition: color 0.15s ease, padding-left 0.15s ease;
}

.icg-footer-col a:hover {
    color: #fff;
    padding-left: 4px;
}

.icg-footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 12px;
}

.icg-footer-contact-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    display: grid;
    place-items: center;
    color: var(--icg-yellow, #f5c518);
    font-size: 14px;
}

/* Trust badges */
.icg-footer-trust {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.icg-footer-trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.icg-footer-trust-item i {
    font-size: 18px;
    color: var(--icg-yellow, #f5c518);
    flex-shrink: 0;
}

/* Bottom bar */
.icg-footer-bar {
    background: #152f1a;
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.icg-footer-bar-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.icg-footer-copy {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
}

.icg-footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.icg-footer-legal a {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.15s ease;
}

.icg-footer-legal a:hover {
    color: var(--icg-yellow, #f5c518);
}

.icg-footer-top {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.icg-footer-top:hover {
    background: var(--icg-yellow, #f5c518);
    color: var(--icg-black, #0a0a0a);
    border-color: var(--icg-yellow, #f5c518);
    transform: translateY(-2px);
}

/* Override legacy footer styles */
.icg-footer .site-footer-inner,
.icg-footer .site-footer-accent,
.icg-footer .site-footer-top-grid {
    display: none !important;
}

@media (min-width: 768px) {
    .icg-footer-wave svg {
        height: 48px;
    }

    .icg-footer-grid {
        grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr));
    }

    .icg-footer-trust {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .icg-footer.site-footer {
        margin-bottom: 0;
    }
}

@media (min-width: 992px) {
    .icg-footer.site-footer {
        margin-bottom: 0;
    }

    .icg-footer-body {
        padding: 48px 40px 36px;
    }

    .icg-footer-bar {
        padding: 18px 40px;
    }
}
