/* ==========================================================================
   AI Mega Menu — Footer (Glass Design)
   ========================================================================== */

.aimm-footer {
    position: relative;
    font-family: var(--aimm-font, 'Merriweather Sans', sans-serif);
    color: #000000;
    -webkit-font-smoothing: antialiased;
    margin-top: 60px;
}

.aimm-footer .screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Background — transparent */
.aimm-footer::before {
    display: none;
}

.aimm-footer-inner {
    position: relative;
    z-index: 1;
    margin: 0 auto;
    padding: 48px 28px 0;
}

/* ---- Grid ---- */
.aimm-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding-bottom: 48px;
}

/* ---- About column ---- */
.aimm-footer-brand {
    display: inline-block;
    font-size: 18px;
    font-weight: 700;
    color: #000000;
    text-decoration: none;
    margin-bottom: 12px;
    line-height: 1.2;
}

.aimm-footer-brand:hover {
    color: #1e5faa;
}

.aimm-footer-desc {
    font-size: 14px;
    line-height: 1.65;
    color: #3d4f6a;
    font-weight: 400;
}

/* ---- Trust Signal ---- */
.aimm-footer-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding: 24px 0 32px;
    margin-top: 8px;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.aimm-trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.aimm-trust-number {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 19px;
    font-weight: 700;
    color: #1e5faa;
    line-height: 1;
}

.aimm-trust-number svg {
    color: #F27E3F;
}

.aimm-trust-label {
    font-size: 13px;
    font-weight: 500;
    color: #3d4f6a;
    line-height: 1.3;
}

.aimm-trust-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.aimm-trust-link:hover {
    opacity: 0.7;
}

.aimm-trust-link .aimm-trust-number svg {
    color: #1e5faa;
}

/* ---- Search bar ---- */
.aimm-footer-search {
    display: flex !important;
    align-items: center !important;
    margin-top: 18px !important;
    border: 1px solid rgba(0,0,0,0.10) !important;
    border-radius: 12px !important;
    background: rgba(255,255,255,0.5) !important;
    overflow: hidden !important;
    transition: all 0.25s ease !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6) !important;
    max-width: 320px;
}

.aimm-footer-search:focus-within {
    border-color: #1e5faa !important;
    background: rgba(255,255,255,0.7) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 0 0 3px rgba(30,95,170,0.1) !important;
}

.aimm-footer .aimm-search-input,
.aimm-footer-search .aimm-search-input {
    flex: 1 !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    font-family: inherit !important;
    font-weight: 500 !important;
    color: #000000 !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    margin: 0 !important;
    min-height: auto !important;
    height: auto !important;
}

.aimm-footer .aimm-search-input:focus,
.aimm-footer-search .aimm-search-input:focus {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.aimm-footer .aimm-search-input::placeholder {
    color: #3d4f6a !important;
    opacity: 0.6 !important;
}

.aimm-footer .aimm-search-btn,
.aimm-footer-search .aimm-search-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    background: #1e5faa !important;
    border: none !important;
    border-radius: 0 10px 10px 0 !important;
    cursor: pointer !important;
    color: #ffffff !important;
    padding: 0 !important;
    margin: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    transition: background 0.2s ease !important;
}

.aimm-footer .aimm-search-btn:hover,
.aimm-footer-search .aimm-search-btn:hover {
    background: #174a8a !important;
}

.aimm-footer .aimm-search-btn svg {
    width: 16px !important;
    height: 16px !important;
    color: #ffffff !important;
    stroke: #ffffff !important;
}

/* ---- Link columns ---- */
.aimm-footer-heading {
    font-size: 15px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.aimm-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.aimm-footer-link {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    color: #3d4f6a;
    text-decoration: none;
    padding: 4px 0;
    transition: color 0.2s ease, transform 0.15s ease;
}

.aimm-footer-link:hover {
    color: #1e5faa;
    transform: translateX(3px);
}

/* ---- Recent Reviews ---- */
.aimm-footer-review-link {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 6px 10px;
    margin: 0 -10px;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: all 0.25s ease;
}

.aimm-footer-review-link:hover {
    background: rgba(255,255,255,0.5);
    border-color: rgba(255,255,255,0.7);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 2px 8px rgba(0,0,0,0.03);
    transform: translateX(0) !important;
}

.aimm-footer-review-title {
    font-size: 14px;
    font-weight: 600;
    color: #000000;
    line-height: 1.3;
}

.aimm-footer-review-link:hover .aimm-footer-review-title {
    color: #1e5faa;
}

.aimm-footer-review-date {
    font-size: 12px;
    font-weight: 400;
    color: #3d4f6a;
    opacity: 0.7;
}

.aimm-footer-reviews li {
    margin-bottom: 2px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .aimm-footer-inner {
        padding: 36px 20px 0;
    }

    .aimm-footer-trust {
        flex-wrap: wrap;
        gap: 20px;
    }

    .aimm-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
}

@media (max-width: 480px) {
    .aimm-footer-trust {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .aimm-footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Print */
@media print {
    .aimm-footer { display: none !important; }
}
