/* ============================================
   UNIFIED FOOTER — PetAdoption.ai (DS-13)
   Two-part footer: site-themed Part 1 (warm soft-black) +
   shared ecosystem Part 2 (#121417) + legal stripe.
   Part 2 typography MUST match _shared Footer.tsx — see DS-13 spec.
   No --spacing-* tokens (Tailwind v4 strips them).
   ============================================ */

.unified-footer {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    width: 100%;
    display: block;
}

.unified-footer * {
    box-sizing: border-box;
}

/* ============================================
   PART 1 — Site section (warm dark)
   ============================================ */
.footer-site {
    background-color: #1A1814;
    color: #FFFFFF;
    padding: 3rem 1rem;
}

.footer-site__inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.footer-brand__logo {
    display: inline-block;
    margin: 0 auto 0.5rem;
}

.footer-brand__logo img {
    height: 3rem;
    width: auto;
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

.footer-brand__tagline {
    font-size: 0.875rem;
    line-height: 1.5;
    color: #FFFFFF;
    opacity: 0.8;
    margin: 0;
}

.footer-brand__poweredby {
    font-size: 0.75rem;
    line-height: 1.5;
    color: #FFFFFF;
    opacity: 0.6;
    margin: 1rem 0 0;
    text-align: center;
}

.footer-brand__poweredby a {
    color: inherit;
    text-decoration: underline;
}

.footer-brand__poweredby a:hover {
    opacity: 0.85;
}

/* ============================================
   PART 2 — Ecosystem section (#121417)
   Typography sizes locked to _shared/components/layout/Footer.tsx
   ============================================ */
.footer-ecosystem {
    background-color: #121417;
    padding: 3rem 1rem;
}

.footer-ecosystem__inner {
    max-width: 64rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.eco-header {
    text-align: center;
    margin: 0 auto 2.5rem;
}

.eco-heading {
    font-family: inherit;
    font-size: 1.5rem;
    font-weight: 600;
    color: #F9FAFB;
    line-height: 1.3;
    margin: 0 0 0.75rem 0;
}

.eco-subheading {
    font-size: 1rem;
    line-height: 1.5;
    color: #E5E7EB;
    max-width: 42rem;
    margin: 0 auto;
}

.eco-network__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
    max-width: 64rem;
    margin: 0 auto;
    text-align: left;
}

.eco-network__col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.eco-network__col li {
    margin: 0 0 0.5rem 0;
}

.eco-network__col li:last-child {
    margin-bottom: 0;
}

.eco-network__category {
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    color: #E5E7EB;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.3;
    margin: 0 0 0.75rem 0;
}

.eco-network__col a {
    font-size: 0.875rem;
    font-weight: 500;
    color: #F5A623;
    text-decoration: none;
    line-height: 1.5;
    display: inline-block;
}

.eco-network__col a:hover {
    text-decoration: underline;
}

/* ============================================
   LEGAL STRIPE — same #121417 surface, hairline border
   ============================================ */
.footer-legal {
    background-color: #121417;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.5rem 1rem;
}

.footer-legal__inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.footer-legal__copyright {
    font-size: 0.75rem;
    line-height: 1.5;
    color: #9CA3AF;
}

.footer-legal__links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-legal__links a {
    font-size: 0.75rem;
    line-height: 1.5;
    color: #9CA3AF;
    text-decoration: none;
}

.footer-legal__links a:hover {
    text-decoration: underline;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (min-width: 640px) {
    .eco-network__grid {
        text-align: left;
    }
}

@media (min-width: 768px) {
    .footer-legal__inner {
        flex-direction: row;
    }
}

@media (max-width: 768px) {
    .eco-network__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem 1.5rem;
        text-align: center;
        max-width: 28rem;
    }
}

@media (max-width: 480px) {
    .eco-network__grid {
        grid-template-columns: 1fr;
        max-width: 18rem;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-site,
    .footer-ecosystem {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}
