/**
 * Bharat Biodata — SEO footer (Bootstrap 5 grid + custom styles)
 * Background: #f8f9fa | Mobile-first | Core Web Vitals friendly
 */

.site-footer-seo {
    background: #f8f9fa;
    color: #212529;
    padding: 2.75rem 0 1.25rem;
    margin-top: auto;
    border-top: 1px solid #dee2e6;
}

.site-footer-seo .footer-top {
    margin-bottom: 2rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid #dee2e6;
    text-align: center;
}

@media (min-width: 768px) {
    .site-footer-seo .footer-top {
        text-align: left;
    }
}

.footer-brand-row {
    margin-bottom: 1.25rem;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.footer-logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--color-primary, #0e7490), #0891b2);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.footer-logo-name {
    display: block;
    font-family: var(--font-display, 'Fraunces', Georgia, serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: #212529;
    line-height: 1.2;
}

.footer-logo-domain {
    display: block;
    font-size: 0.78rem;
    color: #6c757d;
    font-weight: 600;
}

.footer-trust-heading {
    margin: 0 0 1.25rem;
    font-family: var(--font-display, 'Fraunces', Georgia, serif);
    font-size: clamp(1.05rem, 2.5vw, 1.25rem);
    font-weight: 600;
    line-height: 1.45;
    color: #212529;
    max-width: 42rem;
}

@media (min-width: 768px) {
    .footer-trust-heading {
        margin-left: 0;
        margin-right: auto;
    }
}

.footer-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.65rem;
    justify-content: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-badges li {
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (min-width: 768px) {
    .footer-badges {
        justify-content: flex-start;
    }
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #495057;
    text-decoration: none;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 999px;
    transition: color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.footer-badge-icon {
    color: #198754;
    font-weight: 700;
    line-height: 1;
}

.footer-badge:hover,
.footer-badge:focus-visible {
    color: var(--color-primary, #0e7490);
    border-color: var(--color-primary, #0e7490);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.footer-nav {
    margin-bottom: 1.75rem;
}

.site-footer-seo .footer-col-heading {
    margin: 0 0 0.85rem;
    font-size: inherit;
    font-weight: inherit;
}

.site-footer-seo .footer-col-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    font-family: var(--font-display, 'Fraunces', Georgia, serif);
    font-size: 0.9375rem;
    font-weight: 700;
    color: #212529;
    cursor: pointer;
    text-align: left;
}

.site-footer-seo .footer-col-chevron {
    display: none;
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2px solid #6c757d;
    border-bottom: 2px solid #6c757d;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    flex-shrink: 0;
    margin-left: 0.75rem;
}

.site-footer-seo .footer-col-toggle[aria-expanded="true"] .footer-col-chevron {
    transform: rotate(-135deg);
    margin-top: 0.2rem;
}

.site-footer-seo .footer-col-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer-seo .footer-col-links li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer-seo .footer-col-links li + li {
    margin-top: 0.4rem;
}

.site-footer-seo .footer-col-links a {
    font-size: 0.875rem;
    line-height: 1.45;
    color: #6c757d;
    text-decoration: none;
    transition: color 0.15s ease;
}

.site-footer-seo .footer-col-links a:hover,
.site-footer-seo .footer-col-links a:focus-visible {
    color: var(--color-primary, #0e7490);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-seo-text {
    padding: 1.5rem 0;
    margin-bottom: 0.5rem;
    border-top: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
}

.footer-seo-text p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.65;
    color: #6c757d;
    max-width: 72rem;
}

.site-footer-seo .footer-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 0.65rem;
    padding: 1.15rem 0 0.75rem;
    margin-bottom: 0;
    border: 0;
}

.site-footer-seo .footer-legal a {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #495057;
    text-decoration: none;
}

.site-footer-seo .footer-legal a:hover,
.site-footer-seo .footer-legal a:focus-visible {
    color: var(--color-primary, #0e7490);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.site-footer-seo .footer-legal-sep {
    color: #ced4da;
    font-size: 0.8125rem;
}

.site-footer-seo .footer-bottom {
    border-top: none;
    padding-top: 0.5rem;
    padding-bottom: 0.25rem;
    text-align: center;
    color: #6c757d;
    font-size: 0.8125rem;
}

.site-footer-seo .footer-bottom p {
    margin: 0;
}

/* Mobile accordion */
@media (max-width: 767.98px) {
    .site-footer-seo .footer-nav-grid {
        --bs-gutter-y: 0;
    }

    .site-footer-seo .footer-col {
        border-bottom: 1px solid #dee2e6;
    }

    .site-footer-seo .footer-col:last-child {
        border-bottom: none;
    }

    .site-footer-seo .footer-col-heading {
        margin: 0;
    }

    .site-footer-seo .footer-col-toggle {
        padding: 0.95rem 0;
    }

    .site-footer-seo .footer-col-chevron {
        display: inline-block;
    }

    .site-footer-seo .footer-col-links {
        padding-bottom: 0.95rem;
    }

    .site-footer-seo .footer-col-links[hidden] {
        display: none;
    }

    .site-footer-seo .footer-legal {
        flex-direction: column;
        gap: 0.55rem;
    }

    .site-footer-seo .footer-legal-sep {
        display: none;
    }
}
