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

.site-footer {
    background: var(--color-dark);
    color: var(--color-light);         /* body text on dark */
}

/* =====================================================
   Newsletter Strip
   ===================================================== */

.footer-newsletter {
    padding: 4rem 0;
}

.footer-newsletter__inner {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.footer-newsletter__text {
    flex: 1;
    min-width: 0;
}

.footer-newsletter__title {
    font-family: var(--font-heading);
    font-size: clamp(1.375rem, 2.5vw, 1.875rem);
    font-weight: 700;
    color: var(--color-white);         /* heading on dark */
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.footer-newsletter__desc {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--color-border);        /* secondary on dark */
    margin: 0;
    max-width: 42ch;
}

.footer-newsletter__form-wrap {
    flex: 0 0 420px;
    max-width: 420px;
}

/* Clean two-element row */
.footer-newsletter__form {
    display: flex;
    align-items: stretch;
    gap: 0.625rem;
}

.footer-newsletter__input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    outline: none;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    font-family: var(--font-body);
    color: var(--color-white);         /* heading on dark */
    transition: border-color 0.2s;
}

.footer-newsletter__input:focus {
    border-color: var(--color-white);
}

.footer-newsletter__input::placeholder {
    color: var(--color-border);        /* secondary on dark */
}

.footer-newsletter__form .btn-white {
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    border-radius: var(--radius);
    flex-shrink: 0;
}

.footer-newsletter__note {
    font-size: 0.8125rem;
    color: var(--color-border);        /* secondary on dark */
    margin: 0.625rem 0 0;
    text-align: left;
}

/* =====================================================
   Main Columns
   ===================================================== */

.footer-main {
    padding: 2rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem 3rem;
}

/* ——— Brand column ——— */
.footer-logo-link {
    display: inline-block;
    margin-bottom: 1.25rem;
    text-decoration: none;
    line-height: 1;
}

.footer-logo-img {
    height: 34px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-site-name {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--color-white);         /* heading on dark */
    letter-spacing: -0.03em;
    display: block;
    text-decoration: none;
}

.footer-description {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--color-light);         /* body text on dark */
    margin: 0 0 1.75rem;
    max-width: 30ch;
}

/* Social icon circles */
.footer-social {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-social__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--color-light);
    text-decoration: none;
    transition: color 0.15s, transform 0.15s;
    flex-shrink: 0;
}

.footer-social__link:hover {
    color: var(--color-white);
    transform: translateY(-2px);
}

/* ——— Link columns ——— */
.footer-col__title {
    font-family: var(--font-heading);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-white);         /* heading on dark */
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a,
.footer-links .menu-item a {
    font-size: 0.9375rem;
    line-height: 1.4;
    color: var(--color-light);         /* body text on dark */
    text-decoration: none;
    display: inline-block;
    transition: color 0.15s;
}

.footer-links a:hover,
.footer-links .menu-item a:hover {
    color: var(--color-white);         /* heading level on hover */
}

/* =====================================================
   Bottom Bar
   ===================================================== */

.footer-bottom {
    padding: 2rem 0;
}

.footer-bottom__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-bottom__copy {
    font-size: 0.875rem;
    color: var(--color-border);        /* secondary on dark */
    margin: 0;
}

.footer-bottom__legal {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-bottom__legal a {
    font-size: 0.875rem;
    color: var(--color-border);        /* secondary on dark */
    text-decoration: none;
    transition: color 0.15s;
}

.footer-bottom__legal a:hover {
    color: var(--color-white);
}

.footer-bottom__legal span[aria-hidden] {
    color: var(--color-border);        /* secondary on dark */
    font-size: 0.75rem;
}

/* =====================================================
   Responsive — Tablet  (≤1023px)
   ===================================================== */

@media (max-width: 1023px) {
    .footer-newsletter__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }

    .footer-newsletter__form-wrap {
        flex: unset;
        width: 100%;
        max-width: 100%;
    }

    .footer-newsletter__form {
        max-width: 480px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 2.5rem 2rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-description {
        max-width: 52ch;
    }
}

/* =====================================================
   Responsive — Mobile  (≤639px)
   ===================================================== */

@media (max-width: 639px) {
    .footer-newsletter {
        padding: 3rem 0;
    }

    .footer-newsletter__form {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .footer-newsletter__form .btn-white {
        width: 100%;
        justify-content: center;
    }

    .footer-newsletter__note {
        text-align: left;
    }

    .footer-main {
        padding: 2rem 0;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem 1.5rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-description {
        max-width: 100%;
    }

    .footer-bottom__inner {
        flex-direction: column;
        align-items: center;
        gap: 0.625rem;
    }

    .footer-bottom__legal {
        flex-wrap: wrap;
    }
}

/* =====================================================
   Cookie Consent Banner
   ===================================================== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 9990;
    padding: 1rem 0;
    transform: translateY(0);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 1;
}

.cookie-banner--hiding {
    transform: translateY(100%);
    opacity: 0;
}

.cookie-banner__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-banner__text {
    font-size: 0.875rem;
    color: var(--color-border);
    line-height: 1.6;
    margin: 0;
    flex: 1;
    min-width: 0;
}

.cookie-banner__text a {
    color: var(--color-white);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie-banner__text a:hover {
    opacity: 0.8;
}

.cookie-banner__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-banner__decline {
    background: none;
    border: none;
    color: var(--color-border);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.375rem 0;
    font-family: var(--font-body);
    transition: color 0.15s;
}

.cookie-banner__decline:hover {
    color: var(--color-white);
}

.cookie-banner__accept {
    background: var(--gradient-accent);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.5rem 1.25rem;
    cursor: pointer;
    font-family: var(--font-body);
    transition: opacity 0.15s;
    white-space: nowrap;
}

.cookie-banner__accept:hover {
    opacity: 0.85;
}

@media (max-width: 639px) {
    .cookie-banner__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .cookie-banner__actions {
        width: 100%;
        justify-content: space-between;
    }

    .cookie-banner__accept {
        flex: 1;
        text-align: center;
    }
}
