/* ---------- Footer shell ---------- */

.footer {
    margin-top: 80px;
    background: #0b1220;
    color: var(--text-on-dark);
    font-size: var(--fs-body-sm);
    line-height: var(--lh-body);
}

.footer a {
    color: inherit;
    text-decoration: none;
    transition: color var(--dur-fast) var(--ease-out),
        opacity var(--dur-fast) var(--ease-out);
}

.footer a:hover {
    color: #ffffff;
    opacity: 1;
}

/* ---------- Top area: brand + nav columns ---------- */

.footer__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 64px 24px 40px;
    display: grid;
    /* 1 brand column + 3 nav columns = 4 cells. Was 5 (with one always empty),
       which made each nav column too narrow and forced "Concrete Strengthening
       Products" to wrap. */
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 48px;
}

@media (max-width: 1024px) {
    .footer__inner {
        grid-template-columns: 1fr 1fr;
        gap: 40px 32px;
    }
}

@media (max-width: 640px) {
    .footer__inner {
        grid-template-columns: 1fr;
        padding: 48px 20px 32px;
        gap: 32px;
    }
}

/* Brand column */

.footer__brand {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 340px;
}

.footer__logo img {
    display: block;
    height: 22px;
    width: auto;
    /* logo is brand-colored by default — force white for footer bg */
    filter: brightness(0) invert(1);
}

.footer__tagline {
    margin: 0;
    color: var(--text-muted-on-dark);
    font-size: var(--fs-body-sm);
}

.footer__contact {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer__contact-title {
    margin: 0 0 14px;
    font-size: var(--fs-eyebrow);
    font-weight: var(--fw-semibold);
    letter-spacing: var(--ls-caps);
    text-transform: uppercase;
    color: var(--accent-amber);
}

.footer__address {
    margin: 0;
    color: var(--text-muted-on-dark);
    font-style: normal;
    font-size: var(--fs-caption);
}

/* Company name — lifted out of the muted address colour so it reads as
   the heading of the block rather than another line of it. */
.footer__address-name {
    font-weight: var(--fw-semibold);
    color: var(--text-on-dark);
}

.footer__contact-list {
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
    font-size: var(--fs-caption);
}

.footer__contact-list a {
    color: var(--text-on-dark);
}

/* Social icons */

.footer__socials {
    display: flex;
    gap: 10px;
}

.footer__social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-top: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-on-dark);
    transition: background-color var(--dur-fast) var(--ease-out),
        transform var(--dur-fast) var(--ease-out);
}

.footer__social:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    transform: translateY(-1px);
}

/* ---------- Nav columns ---------- */

.footer__nav {
    display: contents;
}

@media (max-width: 1024px) {
    .footer__nav {
        display: grid;
        grid-column: 1 / -1;
        grid-template-columns: repeat(4, 1fr);
        gap: 32px;
    }
}

@media (max-width: 640px) {
    .footer__nav {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

.footer__col ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__col-title {
    margin: 0 0 14px;
    font-size: var(--fs-eyebrow);
    font-weight: var(--fw-semibold);
    letter-spacing: var(--ls-caps);
    text-transform: uppercase;
    color: var(--accent-amber);
}

/* Desktop only: the "Get in touch" heading sits below the logo + tagline in
   the brand column, so drop the nav columns down by that height (logo 22px +
   tagline line + two 18px gaps) to line every column heading up on one row. */
@media (min-width: 1025px) {
    .footer__col { padding-top: 79px; }
    /* Nudge the logo + tagline up slightly, while keeping the "Get in touch"
       block (and thus the whole heading row) at the same offset. */
    .footer__brand { margin-top: -14px; }
    .footer__contact { margin-top: 14px; }
}

.footer__col a {
    color: var(--text-muted-on-dark);
    font-size: var(--fs-body-sm);
}

.footer__col a:hover {
    color: #ffffff;
}

/* ---------- Bottom bar ---------- */

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer__bottom-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    font-size: var(--fs-caption);
    color: var(--text-muted-on-dark);
}

.footer__copy {
    margin: 0;
}

.footer__legal {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer__legal a {
    color: var(--text-muted-on-dark);
}

.footer__legal a:hover {
    color: #ffffff;
}

@media (max-width: 640px) {
    .footer__bottom-inner {
        padding: 18px 20px;
        justify-content: flex-start;
    }
}
