/* =========================================================
   CTA band, site footer, language selector, 404
   ========================================================= */

/* Theme-specific artwork (same pattern as Mubert Home) */
.art-dark {
    display: none !important;
}

[data-theme="dark"] .art-light {
    display: none !important;
}

[data-theme="dark"] .art-dark {
    display: block !important;
}

/* ---------- CTA band ---------- */

.cta-band {
    padding: 40px 0 24px;
}

.cta-band__inner {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 72px 24px 40px;
    border-radius: var(--r-lg);
    background: var(--c-surface);
    text-align: center;
}

.cta-band .pill img {
    width: 16px;
    height: 16px;
}

.cta-band__about {
    max-width: 640px;
    text-wrap: pretty;
}

.cta-band__about a {
    color: var(--c-brand);
}

.cta-band__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

/* Partner logos marquee; theme.js appends a second copy of the strip */
.logos-container {
    position: relative;
    width: 100%;
    margin-top: 32px;
    padding: 12px 0;
    overflow: hidden;
    white-space: nowrap;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

.logos {
    display: inline-block;
    animation: logos-slide 100s linear infinite;
}

.logos-container:hover .logos {
    animation-play-state: paused;
}

.logos img {
    max-height: 40px;
    margin: 0 22px;
    vertical-align: middle;
    opacity: 0.8;
    transition: opacity var(--ease);
}

.logos img:hover {
    opacity: 1;
}

@keyframes logos-slide {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

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

/* =========================================================
   Site footer: a 1:1 copy of the mubert.com footer (resources.mubert.com/api)
   Breakpoints as there: 1200 (desktop), 810 (tablet)
   ========================================================= */

.site-footer {
    padding: 60px 0;
    background: var(--c-surface);
    font-size: var(--fs-md);
    line-height: 1.6;
    letter-spacing: normal;
    font-feature-settings: "blwf" 1, "cv03" 1, "cv04" 1, "cv09" 1, "cv11" 1;
    color: var(--c-text-muted);
}

.site-footer__row {
    max-width: 1400px;
    margin-inline: auto;
    padding: 40px;
}

.site-footer__row + .site-footer__row {
    margin-top: 10px;
}

.site-footer a {
    color: inherit;
    text-decoration: none;
    transition: color var(--ease);
}

.site-footer a:hover {
    color: var(--c-text);
}

/* Link columns */
.footer-cols {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 40px 20px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.footer-head {
    margin: 0 0 15px;
    font-size: var(--fs-lg);
    font-weight: var(--fw-semibold);
    line-height: 1.2;
    font-variation-settings: "opsz" 32;
    color: var(--c-text);
}

/* Logo, about, address, socials + language */
.footer-info {
    display: grid;
    grid-template-columns: 232fr 504fr 232fr 232fr;
    gap: 40px;
    align-items: start;
}

/* Flex, not block: the images get no line box, and the theme swap keeps working */
.footer-logo {
    display: flex;
    width: fit-content;
    margin-top: 10px;
}

.footer-logo img {
    width: 152px;
    height: 16px;
}

.footer-about {
    max-width: 370px;
    margin: 0;
}

.footer-address {
    font-style: normal;
}

.footer-side {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 29px;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 16px;
    padding-left: 4px;
    color: var(--c-icon);
}

.site-footer .footer-social a:hover {
    color: var(--c-brand);
}

.footer-social svg {
    display: block;
    overflow: visible;
}

/* Copyright and legal links */
/* Medium weight here and in the language pill, as on the reference (same variable font file) */
.footer-legal {
    font-size: var(--fs-sm);
    font-weight: 500;
    letter-spacing: -0.01em;
}

/* The reference wraps this text at about 780px */
.footer-legal p {
    max-width: 780px;
    margin: 0;
}

.footer-legal nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0 10px;
    margin-top: -2px;
}

/* ---------- Language selector (template-parts/langs-selector.php) ---------- */

.lang-dd {
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
    width: 120px;
    padding: 5px;
    border-radius: 10px;
    background: var(--c-chip);
    color: var(--c-text-muted);
    font-size: var(--fs-sm);
    font-weight: 500;
    line-height: 1.5;
    font-variation-settings: "opsz" 32;
    user-select: none;
}

.lang-dd__icon,
.lang-dd__caret {
    display: flex;
    align-items: center;
}

.lang-dd__icon svg path,
.lang-dd__caret svg path {
    stroke: currentColor;
}

.lang-dd__label {
    flex: 1 1 auto;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.lang-dd__select {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: transparent;
}

.lang-dd:has(.lang-dd__select:focus-visible) {
    outline: 2px solid var(--c-brand);
    outline-offset: 2px;
}

@media (max-width: 1199px) {
    .footer-cols,
    .footer-info {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 40px;
    }

    /* Wrapped column rows are equally tall, as on the reference */
    .footer-cols {
        grid-auto-rows: 1fr;
    }
}

@media (max-width: 809px) {
    .site-footer {
        padding: 45px 0;
    }

    .site-footer__row {
        padding: 0 15px;
    }

    .site-footer__row + .site-footer__row {
        margin-top: 60px;
    }

    .footer-cols {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
    }

    .footer-info {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 40px;
    }

    .footer-cols {
        grid-auto-rows: auto;
    }

    .footer-side {
        align-items: center;
    }

    .footer-social {
        padding-left: 0;
    }

    .footer-legal nav {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 20px;
    }
}

/* ---------- 404 ---------- */

.not-found {
    padding-bottom: 96px;
}

.not-found__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

/* ---------- Responsive ---------- */

@media (max-width: 768px) {
    .cta-band__inner {
        padding: 48px 16px 24px;
    }

    .cta-band__actions {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
    }
}
