
/* ============================================================
   FOOTER
   ============================================================ */

footer {
    width: calc(100% - 64px);
    max-width: 1200px;

    margin: 24px auto 0;

    padding: 60px 80px 30px;

    box-sizing: border-box;

    background: var(--pissy-cream);

    border-radius: 14px;

    box-shadow:
        20px 20px 0 var(--charcoal),
        0 0 20px var(--shadow-halo);
}


/* ============================================================
   MAIN FOOTER
   ============================================================ */

.footer-main {
    display: grid;

    grid-template-columns: 1fr auto 1fr;

    align-items: center;

    padding-bottom: 50px;
}


/* ============================================================
   BRAND
   ============================================================ */

.footer-brand h2 {
    margin: 0 0 8px;

    font-size: 28px;
    font-weight: 400;

    line-height: 1.1;

    color: var(--black);
}

.footer-brand p {
    margin: 0;

    font-family: var(--secondary-font);

    font-size: 14px;

    color: var(--warm-grey);
}


/* ============================================================
   REGISTRATION LOGOS
   ============================================================ */

.footer-registration {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 24px;
}

.footer-registration a {
    display: block;
}

.footer-registration img {
    display: block;

    width: auto;
    max-width: 110px;
    height: 55px;

    object-fit: contain;
}


/* ============================================================
   FOOTER LINKS
   ============================================================ */

.footer-links {
    display: flex;

    justify-content: flex-end;
    flex-direction: column;

    gap: 10px;

    margin: auto 10%;

    align-items: flex-end;
}

.footer-links a {
    font-family: var(--secondary-font);

    font-size: 14px;

    color: var(--charcoal);

    text-decoration: none;
}

.footer-links a:hover {
    color: var(--charcoal-hover);
}


/* ============================================================
   FOOTER BOTTOM
   ============================================================ */

.footer-bottom {
    display: flex;

    align-items: center;
    justify-content: space-between;

    padding-top: 24px;
}

.footer-bottom p {
    margin: 0;

    font-family: var(--secondary-font);

    font-size: 12px;

    line-height: 1.5;

    color: var(--warm-grey);
}


/* ============================================================
   CONTACT CTA
   ============================================================ */

.contact-cta {
    width: calc(100% - 64px);
    max-width: 1200px;

    margin: 100px auto 0;
}


.contact-cta-content {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 60px;

    padding: 60px 80px;

    background: var(--pissy-cream);

    border-radius: 14px;

    box-shadow:
        20px 20px 0 var(--charcoal),
        0 0 20px var(--shadow-halo);
}


/* ============================================================
   CONTACT CTA TEXT
   ============================================================ */

.contact-cta-text {
}


.contact-cta-text h2 {
    margin: 0 0 18px;

    font-size: clamp(32px, 4vw, 52px);

    font-weight: 400;

    line-height: 1.1;

    color: var(--charcoal);
}


.contact-cta-text p {
    margin: 0;

    font-family: var(--secondary-font);

    font-size: 15px;

    line-height: 1.6;

    color: var(--warm-grey);
}


/* ============================================================
   CONTACT CTA BUTTON
   ============================================================ */

.contact-cta-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    padding: 14px 24px;

    background: var(--charcoal);

    border-radius: 100px;

    font-family: var(--secondary-font);

    font-size: 14px;

    color: var(--pissy-cream);

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}


.contact-cta-button:hover {
    transform: translateY(-2px);

    background: var(--charcoal-hover);
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 700px) {

    .contact-cta {
        width: calc(100% - 24px);

        margin-top: 70px;
    }


    .contact-cta-content {
        flex-direction: column;

        align-items: flex-start;

        gap: 30px;

        padding: 40px 30px;

        box-shadow:
            0 0 0 5px var(--charcoal),
            0 10px 120px var(--shadow-halo);
    }


    .contact-cta-text h2 {
        font-size: clamp(30px, 9vw, 42px);
    }

}


/* ============================================================
   TABLET / SMALL DESKTOP
   ============================================================ */

@media (max-width: 1150px) {

    .contact-cta {
        width: calc(100% - 24px);
    }


    .contact-cta-content {
        padding: 50px;
    }


    footer {
        width: calc(100% - 24px);

        padding: 50px 50px 30px;

        box-shadow:
            0 0 0 5px var(--charcoal),
            0 10px 120px var(--shadow-halo);
    }


    .footer-main {
        display: flex;

        flex-direction: column;

        align-items: center;

        gap: 35px;

        padding-bottom: 40px;
    }


    .footer-brand {
        text-align: center;
    }


    .footer-registration {
        justify-content: center;
    }


    .footer-registration img {
        max-width: 100px;
        height: 50px;
    }


    .footer-links {
        justify-content: center;

        align-items: center;

        gap: 25px;

        margin: 0;
    }


    .footer-bottom {
        flex-direction: column;

        align-items: center;

        gap: 8px;

        text-align: center;
    }

}
/* ============================================================
   DARK MODE — FOOTER
   ============================================================ */

@media (prefers-color-scheme: dark) {

    /* ── Footer background ──────────────────────────────────── */

    footer {
        background: var(--dark-bg);

        box-shadow:
            20px 20px 0 var(--dark-mode-shadow),
            0 0 20px var(--shadow-halo);
    }


    /* ── Footer brand ───────────────────────────────────────── */

    .footer-brand h2 {
        color: var(--pale-nothing);
    }


    .footer-brand p {
        color: var(--sage);
    }


    /* ── Footer registration / accreditation ────────────────── */

    .footer-registration {
        color: var(--sage);
    }


    /* ── Footer links ───────────────────────────────────────── */

    .footer-links a {
        color: var(--pale-nothing);
    }


    .footer-links a:hover {
        color: var(--sage);
    }


    /* ── Footer bottom ──────────────────────────────────────── */

    .footer-bottom {
        border-top-color: var(--sage);
    }


    .footer-bottom p {
        color: var(--sage);
    }


    /* ── Contact CTA ────────────────────────────────────────── */

    .contact-cta-content {
        background: var(--dark-bg);

        box-shadow:
            20px 20px 0 var(--dark-mode-shadow),
            0 0 20px var(--shadow-halo);
    }


    .contact-cta-text h2 {
        color: var(--pale-nothing);
    }


    .contact-cta-text p {
        color: var(--sage);
    }


    /* ── Contact CTA button ─────────────────────────────────── */

    .contact-cta-button {
        background: var(--pale-nothing);

        color: var(--dark-bg);
    }


    .contact-cta-button:hover {
        background: var(--sage);

        color: var(--dark-bg);
    }


    /* ── Mobile / tablet shadows ────────────────────────────── */

    @media (max-width: 1150px) {

        footer {
            box-shadow:
                0 0 0 5px var(--dark-mode-shadow),
                0 10px 120px var(--shadow-halo);
        }

    }


    @media (max-width: 700px) {

        .contact-cta-content {
            box-shadow:
                0 0 0 5px var(--dark-mode-shadow),
                0 10px 120px var(--shadow-halo);
        }

    }

}
#index-footer {
    margin-bottom: 10% ;
} /*extra room specifically for the index footer*/
