/* ============================================================
   Site footer - scoped to .site-footer
   ============================================================ */
.site-footer {
    --f-blue: #1504B2;
    --f-blue-line: rgba(255, 255, 255, .18);
    --f-red: #DC2626;
    --f-red-dark: #B91C1C;
    --f-ink: #0F172A;
    --f-border: #E2E8F0;
    --f-muted: #475569;
    --f-on-blue: rgba(255, 255, 255, .88);

    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    background: #fff;
    color: var(--f-ink);
}
.site-footer * { box-sizing: border-box; }
.site-footer .container { max-width: 1280px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.site-footer .footer-sr {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Buying assurances ---------- */
.footer-assure { background: #fff; border-top: 1px solid var(--f-border); padding: 20px 0 22px; }
.footer-assure-kicker {
    margin: 0 0 12px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--f-muted);
}
.footer-assure-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.footer-assure-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--f-border);
    border-radius: 4px;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}
.footer-assure-item:hover { border-color: #CBD5E1; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.footer-assure-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    background: #F0F9FF;
    border-radius: 4px;
    color: var(--f-blue);
}
.footer-assure-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    font-size: 0.76rem;
    line-height: 1.45;
    color: var(--f-muted);
}
.footer-assure-copy strong {
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--f-ink);
}

/* ---------- Top brands ---------- */
.footer-brands {
    background: #FAFAFC;
    border-top: 1px solid var(--f-border);
    padding: 22px 0 26px;
}
.footer-brands-title {
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--f-ink);
    margin: 0 0 14px;
}
/* Single-row carousel. The rail clips, the track holds two copies of the set
   and slides by half its width, so -50% lands exactly where 0 started. */
.footer-brands-rail {
    overflow: hidden;
    /* Softens the clip at both container edges */
    mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent);
}
.footer-brands-track {
    --f-brand-gap: 10px;
    display: flex;
    align-items: center;
    gap: var(--f-brand-gap);
    width: max-content;
    animation: footer-brands-scroll 55s linear infinite;
}
.footer-brands-rail:hover .footer-brands-track,
.footer-brands-rail:focus-within .footer-brands-track { animation-play-state: paused; }

/* One set plus its trailing gap is half the track minus half a gap, which is
   the offset that makes the second copy line up with where the first started. */
@keyframes footer-brands-scroll {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(calc(-50% - var(--f-brand-gap) / 2), 0, 0); }
}

.footer-brand-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 168px;
    height: 82px;
    padding: 12px 18px;
    background: #fff;
    border: 1px solid var(--f-border);
    border-radius: 4px;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}
.footer-brand-chip:hover {
    border-color: #CBD5E1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}
/* Logos are supplied as SVGs with their own artwork ratios, so cap both axes
   and let the intrinsic ratio decide the rest. */
.footer-brand-chip img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* ---------- Blue body ---------- */
.footer-body { background: var(--f-blue); color: #fff; }

.footer-main {
    display: grid;
    grid-template-columns: 1.25fr .85fr .85fr 1.15fr;
    gap: 36px;
    padding-top: 34px;
    padding-bottom: 30px;
}
/* Divider before the newsletter column, as in the reference */
.footer-news { padding-left: 34px; border-left: 1px solid var(--f-blue-line); }

.footer-brand { display: inline-block; margin-bottom: 12px; text-decoration: none; }
.footer-brand img { display: block; height: 54px; width: auto; }

.footer-tagline {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0 0 18px;
    max-width: 300px;
    font-size: 0.82rem;
    line-height: 1.6;
    color: var(--f-on-blue);
}
.footer-tagline span { font-weight: 700; color: #fff; }

/* Contact block */
.footer-contact {
    display: grid;
    gap: 9px;
    margin: 0 0 18px;
    font-style: normal;
    max-width: 320px;
}
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--f-on-blue);
    text-decoration: none;
    transition: color 150ms ease;
}
.footer-contact-item iconify-icon { flex-shrink: 0; margin-top: 2px; color: #fff; }
a.footer-contact-item:hover { color: #fff; text-decoration: underline; }

/* Social */
.footer-social { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    text-decoration: none;
    transition: background-color 150ms ease, color 150ms ease;
}
.footer-social a:hover { background: #fff; color: var(--f-blue); }

/* Columns */
.footer-title {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 14px;
}
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-links a {
    font-size: 0.84rem;
    color: var(--f-on-blue);
    text-decoration: none;
    transition: color 150ms ease;
}
.footer-links a:hover { color: #fff; text-decoration: underline; }

/* ---------- Newsletter (input beside the button) ---------- */
.footer-news-copy {
    margin: 0 0 14px;
    max-width: 280px;
    font-size: 0.82rem;
    line-height: 1.6;
    color: var(--f-on-blue);
}

.footer-news-form {
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 300px;
    margin: 0 0 18px;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
}
.footer-news-input {
    flex: 1;
    min-width: 0;
    height: 38px;
    padding: 0 12px;
    border: none;
    outline: none;
    background: #fff;
    font-family: inherit;
    font-size: 0.84rem;
    color: var(--f-ink);
}
.footer-news-input::placeholder { color: #64748B; }
.footer-news-form:focus-within { box-shadow: 0 0 0 3px rgba(255, 255, 255, .35); }

.footer-news-btn {
    flex-shrink: 0;
    height: 38px;
    padding: 0 16px;
    border: none;
    background: var(--f-red);
    color: #fff;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 150ms ease;
}
.footer-news-btn:hover { background: var(--f-red-dark); }

/* Payment strip (single SVG, 377x18 intrinsic), shown in the bottom bar */
.footer-pay { display: flex; align-items: center; flex-shrink: 0; }
.footer-pay img {
    display: block;
    width: 377px;
    max-width: 100%;
    height: auto;
}
.footer-pay-note {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 10px 0 0;
    font-size: 0.75rem;
    color: var(--f-on-blue);
}
.footer-pay-note iconify-icon { color: #86EFAC; flex-shrink: 0; }

/* ---------- Bottom bar ---------- */
.footer-bottom { border-top: 1px solid var(--f-blue-line); }
.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding-top: 14px;
    padding-bottom: 14px;
}
.footer-bottom-inner p { margin: 0; font-size: 0.78rem; color: var(--f-on-blue); }
.footer-bottom-legal { display: flex; align-items: center; gap: 8px 18px; flex-wrap: wrap; }
.footer-credit { display: inline-flex; align-items: center; gap: 5px; }
.footer-credit strong { font-weight: 700; color: #fff; }

/* ---------- Back to top ---------- */
.footer-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 90;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--f-red);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
    transition: background-color 150ms ease;
}
.footer-top:hover { background: var(--f-red-dark); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .footer-assure-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .footer-brand-chip { width: 150px; height: 74px; }

    .footer-main { grid-template-columns: 1fr 1fr; gap: 30px; }
    .footer-news { padding-left: 0; border-left: none; }
    .footer-about { grid-column: 1 / -1; }
    .footer-tagline { max-width: 460px; }
}

@media (max-width: 720px) {
    .footer-brands-track { --f-brand-gap: 8px; animation-duration: 42s; }
    .footer-brand-chip { width: 132px; height: 66px; padding: 10px 14px; }
}

@media (max-width: 600px) {
    .site-footer .container { padding-left: 16px; padding-right: 16px; }

    .footer-brands { padding: 18px 0 22px; }
    .footer-main { grid-template-columns: 1fr; gap: 26px; padding-top: 28px; }
    .footer-news-form { max-width: 100%; }
    .footer-news-copy, .footer-tagline { max-width: 100%; }

    .footer-bottom-inner { flex-direction: column-reverse; align-items: flex-start; gap: 8px; }
    .footer-top { right: 14px; bottom: 14px; }
}

@media (max-width: 420px) {
    .footer-assure-grid { grid-template-columns: minmax(0, 1fr); }
    .footer-brand-chip { width: 118px; height: 60px; }
}

/* ---------- Motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
    .site-footer * { transition: none !important; }

    /* No auto-scroll: drop the duplicate set and let the rail be swiped instead */
    .footer-brands-track { animation: none; }
    .footer-brand-chip.is-clone { display: none; }
    .footer-brands-rail {
        overflow-x: auto;
        mask-image: none;
        -webkit-mask-image: none;
    }
}
