/* ==========================================================================
   Phone Exchange – Footer Styles
   1:1 port of React Footer component layout and behavior.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Footer Container
   -------------------------------------------------------------------------- */
.pe-footer {
    background-color: hsl(0, 0%, 8%);
    color: hsla(0, 0%, 100%, 0.75);
    border-top: 1px solid hsl(0, 0%, 15%);
    margin-top: 4rem;
    padding: 3rem 0 0;
}

/* --------------------------------------------------------------------------
   Footer Grid (4 columns desktop, 2 mobile)
   -------------------------------------------------------------------------- */
.pe-footer__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .pe-footer__grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: 3rem;
    }
}

/* Brand column spans full width on mobile */
.pe-footer__col--brand {
    grid-column: 1 / -1;
}

@media (min-width: 768px) {
    .pe-footer__col--brand {
        grid-column: auto;
    }
}

/* --------------------------------------------------------------------------
   Logo & Tagline
   -------------------------------------------------------------------------- */
.pe-footer__logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    margin-bottom: 1rem;
}

.pe-footer__logo-img {
    height: 2rem;
    width: auto;
    filter: brightness(0) invert(1);
}

.pe-footer__logo-text {
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: white;
}

.pe-footer__tagline {
    font-size: 0.875rem;
    line-height: 1.6;
    color: hsla(0, 0%, 100%, 0.75);
    margin: 0 0 1.25rem;
    max-width: 28rem;
}

/* --------------------------------------------------------------------------
   Social Icons
   -------------------------------------------------------------------------- */
.pe-footer__social {
    display: flex;
    gap: 0.75rem;
}

.pe-footer__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    color: hsla(0, 0%, 100%, 0.75);
    border-radius: var(--pe-radius);
    transition: color 0.2s ease, background-color 0.2s ease;
    text-decoration: none;
}

.pe-footer__social-link:hover {
    color: white;
    background-color: hsla(0, 0%, 100%, 0.08);
}

/* --------------------------------------------------------------------------
   Column Headings
   -------------------------------------------------------------------------- */
.pe-footer__heading {
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    color: white;
    margin: 0 0 1rem;
    letter-spacing: -0.01em;
}

/* --------------------------------------------------------------------------
   Footer Links
   -------------------------------------------------------------------------- */
.pe-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pe-footer__links li {
    margin-bottom: 0.5rem;
}

.pe-footer__links a {
    color: hsla(0, 0%, 100%, 0.75);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.pe-footer__links a:hover {
    color: white;
}

.pe-footer__contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.pe-footer__contact-link .pe-icon {
    flex-shrink: 0;
    opacity: 0.7;
}

/* --------------------------------------------------------------------------
   Bottom Bar
   -------------------------------------------------------------------------- */
.pe-footer__bottom {
    border-top: 1px solid hsl(0, 0%, 15%);
    margin-top: 2.5rem;
    padding: 1.5rem 0;
    text-align: center;
}

.pe-footer__bottom p {
    margin: 0;
    font-size: 0.8125rem;
    color: hsla(0, 0%, 100%, 0.5);
}
