/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    width: 100%;
    background-color: #1a365d;
    color: #e0e0e0;
}

.site-footer__main {
    padding-block: 3.5rem 2.5rem;
}

.site-footer__inner {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 3rem;
    align-items: start;
}

/* Brand column */
.site-footer__logo {
    display: inline-block;
    margin-bottom: 1rem;
    line-height: 0;
    text-decoration: none;
}

.site-footer__logo-image {
    display: block;
    width: auto;
    height: 60px;
    max-width: 220px;
    object-fit: contain;
    border-radius: 4px;
}

.site-footer__statement {
    margin-bottom: 1.5rem;
    color: #f0f0f0;
    font-size: 1rem;
    font-weight: var(--font-weight-medium);
    line-height: 1.6;
    max-width: 36ch;
}

/* Contact card */
.site-footer__contact {
    margin-bottom: 1.5rem;
    padding: 1rem 1rem 1.1rem;
    border: 1px solid rgba(0, 174, 239, 0.35);
    border-radius: 14px;
    background: linear-gradient(
        140deg,
        rgba(0, 174, 239, 0.2),
        rgba(255, 255, 255, 0.05)
    );
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.site-footer__contact-title {
    margin: 0 0 0.7rem;
    color: #ffcc00;
    font-size: 0.84rem;
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-footer__contact-item {
    margin: 0;
    color: #f4f8ff;
    font-size: 0.9rem;
    line-height: 1.55;
}

.site-footer__contact-item + .site-footer__contact-item {
    margin-top: 0.45rem;
}

.site-footer__contact-item strong {
    color: #ffffff;
    font-weight: var(--font-weight-medium);
}

.site-footer__contact-item a {
    color: #9edfff;
    text-decoration: none;
    border-bottom: 1px solid rgba(158, 223, 255, 0.45);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.site-footer__contact-item a:hover,
.site-footer__contact-item a:focus-visible {
    color: #ffffff;
    border-bottom-color: #ffffff;
    outline: none;
}

/* Milestone */
.site-footer__milestone {
    margin-bottom: 1.25rem;
    font-size: 0.9375rem;
    color: #e0e0e0;
}

.site-footer__milestone-number {
    color: #ffcc00;
    font-weight: var(--font-weight-bold);
}

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

.site-footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: #e0e0e0;
    transition: color 0.2s ease;
}

.site-footer__social-link:hover,
.site-footer__social-link:focus-visible {
    color: #00aeef;
    outline: none;
}

.site-footer__social-link:focus-visible {
    outline: 2px solid #00aeef;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Nav grid */
.site-footer__nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem 2rem;
    justify-items: end;
}

.site-footer__nav-heading {
    margin-bottom: 1rem;
    color: #ffcc00;
    font-size: 0.8125rem;
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-footer__nav-toggle {
    display: none;
}

.site-footer__nav-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.site-footer__nav-list a {
    display: inline-block;
    padding-block: 0.5rem;
    color: #e0e0e0;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .site-footer__nav-list a:hover {
        color: #00aeef;
    }
}

.site-footer__nav-list a:focus-visible {
    color: #00aeef;
    outline: 2px solid #00aeef;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Sub-footer */
.site-footer__sub {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-block: 1.25rem;
}

.site-footer__sub-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.site-footer__copyright {
    margin: 0;
    color: #e0e0e0;
    font-size: 0.875rem;
}

.site-footer__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.site-footer__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border: 1px solid #ffffff;
    border-radius: 4px;
    color: #ffffff;
    font-size: 0.6875rem;
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
}

/* ==========================================================================
   Mobile — stack + nav accordions
   ========================================================================== */

@media (max-width: 768px) {
    .site-footer__main {
        padding-block: 2.5rem 2rem;
    }

    .site-footer__inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .site-footer__brand {
        text-align: left;
    }

    .site-footer__statement {
        max-width: none;
    }

    .site-footer__nav {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .site-footer__nav-heading--desktop {
        display: none;
    }

    .site-footer__nav-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 1rem 0;
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        background: transparent;
        color: #ffcc00;
        font-size: 0.8125rem;
        font-weight: var(--font-weight-bold);
        letter-spacing: 0.08em;
        text-align: left;
        text-transform: uppercase;
        cursor: pointer;
    }

    .site-footer__nav-toggle::after {
        content: "+";
        color: #e0e0e0;
        font-size: 1.125rem;
        font-weight: var(--font-weight-medium);
        transition: transform 0.2s ease, color 0.2s ease;
    }

    .site-footer__nav-col.is-open .site-footer__nav-toggle::after {
        content: "−";
        color: #00aeef;
    }

    .site-footer__nav-col.is-open .site-footer__nav-toggle {
        color: #00aeef;
    }

    .site-footer__nav-panel {
        display: grid;
        grid-template-rows: 0fr;
        transition: grid-template-rows 0.3s ease-out;
    }

    .site-footer__nav-col.is-open .site-footer__nav-panel {
        grid-template-rows: 1fr;
    }

    .site-footer__nav-panel > .site-footer__nav-list {
        overflow: hidden;
    }

    .site-footer__nav-list a {
        padding-block: 0.75rem;
    }

    .site-footer__sub-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-footer__badges {
        order: -1;
    }
}
