footer {
    background-color: var(--color-tertiary-blue);
    margin: 0; /* remove the outer margin */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-white);
    font-family: var(--font-henry);
    font-size: var(--blurb-size);
    font-weight: var(--detail-weight);
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px; /* spacing between logo and text */
    text-align: center;
    width: 100%;
    margin: 80px 160px;
}

.footer-logo img {
    max-width: 544px; /* make it more responsive */
    width: 100%;
    height: auto;
}

.footer-top{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 70px;
    margin-bottom: 80px;
}

.footer-details{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 29px;
    color: var(--color-primary-white);
    font-family: var(--font-henry);
    font-size: var(--blurb-size);
    font-weight: var(--detail-weight);
}

.footer-address{
    max-width: 973px;
    width: 100%;
    color: var(--color-primary-white);
    font-family: var(--font-henry);
    font-size: var(--blurb-size);
    font-weight: var(--detail-weight);
}

/* Contact info inline with dots */
.contact-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.contact-footer p, .contact-footer a {
    margin: 0;
    font-size: var(--font-size);
    font-weight: var(--font-weight);
    text-decoration: none;
    color: var(--color-primary-white);
}

.contact-footer a:hover, .copyright a:hover {
    text-decoration: underline;
    color: var(--color-secondary-blue);
}

/* Add dot separator after each except last */
.contact-footer p:not(:last-child)::after {
    content: "·";
    margin-left: 8px;
}
.copyright-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.copyright, .copyright a ,.copyright p{
    color: var(--color-primary-white);
    font-family: var(--font-henry);
    font-size: var(--blurb-size);
    font-weight: var(--detail-weight);
    text-decoration: none;
}

.footer-seperator {
    background-color: var(--color-secondary-white);
    width: 100%;
    height: 4px;
    background-color: var(--color-secondary-white);
    margin: 20px 0;
}

.footer-down{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 183px;
}

.down-wrapper{
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.down-left{
    width: 100%;
    max-width: 490px;
    text-align: left;
}

.news-form-wrapper {
   display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.news-form-wrapper p{
    width: 490px;
    letter-spacing: 1px;
    color: var(--color-primary-white);
}

.news-form-wrapper form{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.news-form-wrapper input{
    max-width: 300px;
    width: 100%;
    height: 40px;
    border-radius: 30px;
    padding: 10px 20px; /* vertical and horizontal*/
}

.news-form-wrapper input:focus{
    outline: none;
}

.news-form-wrapper button{
    max-width: 170PX;
    width: 100%;
    height: 40px;
    border-radius: 30px;
    background-color: var(--color-primary-blue);
    border: var(--color-primary-blue);
    cursor: pointer;
    color: var(--color-secondary-white);
    animation: background-color 1s ease-in;
}

.news-form-wrapper button:hover{
    background-color: var(--color-secondary-blue);
}

.footer-menu-links .link-lists {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns */
    row-gap: 29px;   /* space between rows */
    column-gap: 140px; /* space between columns */
    list-style: none;
    padding: 0;
    margin: 0;
    justify-items: start; /* ✅ align grid items to the left */
    text-align: left;     /* ✅ text inside stays left */
}
    
/* =========================================================
   TABLET (1024px and below)
   ========================================================= */
@media (max-width: 1024px) {

    .footer-container {
        margin: 60px 60px;
    }

    .footer-top {
        gap: 50px;
        margin-bottom: 60px;
    }

    .footer-details {
        gap: 20px;
        text-align: center;
    }

    .footer-address {
        max-width: 90%;
    }

    .footer-menu-links .link-lists {
        grid-template-columns: repeat(3, 1fr);
        column-gap: 60px; /* smaller gap for tablets */
    }

    .down-wrapper {
        gap: 60px;
    }

    .news-form-wrapper p {
        width: 100%;
        text-align: center;
    }

    .news-form-wrapper form {
        gap: 15px;
    }
}


/* =========================================================
   MOBILE (768px and below)
   ========================================================= */
@media (max-width: 768px) {

    .footer-container {
        margin: 40px 0;
        padding: 0 20px;
    }

    .footer-top {
        gap: 40px;
        margin-bottom: 40px;
    }

    .footer-details {
        gap: 15px;
    }

    .footer-address {
        font-size: calc(var(--blurb-size) - 2px);
        line-height: 1.4;
        text-align: center;
    }

    .contact-footer {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }

    .contact-footer p:not(:last-child)::after {
        content: none;
    }

    .footer-menu-links .link-lists {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 20px;
        row-gap: 20px;
        justify-items: center;
    }

    .footer-menu-links .link-lists li a {
        font-size: 20px;
    }

    .down-wrapper {
        flex-direction: column;
        gap: 50px;
    }

    .down-left {
        max-width: 100%;
        text-align: center;
    }

    .news-form-wrapper p {
        width: 100%;
        text-align: center;
    }

    .news-form-wrapper form {
        flex-direction: column;
        gap: 12px;
    }

    .news-form-wrapper input,
    .news-form-wrapper button {
        max-width: 100%;
    }
}


/* =========================================================
   SMALL MOBILE (480px and below)
   ========================================================= */
@media (max-width: 480px) {

    .footer-logo img {
        max-width: 260px;
    }

    .footer-details,
    .footer-address {
        font-size: calc(var(--blurb-size) - 3px);
    }

    .footer-top {
        gap: 30px;
    }

    .footer-down {
        gap: 100px;
    }

    .news-form-wrapper p {
        font-size: 14px;
    }

    .news-form-wrapper input,
    .news-form-wrapper button {
        height: 38px;
        font-size: 14px;
    }
}
