/* ============================================================
   Pyper AI — Standard Site Footer
   Loaded via <link rel="stylesheet" href="/assets/footer.css">
   Depends on CSS variables defined in each page's :root{}
   (--bg, --border, --border2, --accent, --accent-deep, --dark,
    --text2, --text3, --serif, --sans, --mono)
   ============================================================ */

.site-footer {
    padding: 3rem clamp(1.5rem, 4vw, 4rem) 2rem;
    border-top: 1px solid var(--border);
    background: var(--bg);
    font-family: var(--sans);
}

.site-footer .ft-wrap {
    max-width: 1200px;
    margin: 0 auto 2.5rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 3rem;
}

.site-footer .logo {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 400;
    text-decoration: none;
    letter-spacing: -.03em;
    display: inline-flex;
    align-items: center;
    gap: .15rem;
    color: var(--dark);
}
.site-footer .logo span { color: var(--accent); }

.site-footer .ft-brand-desc {
    max-width: 280px;
    line-height: 1.7;
    font-size: .95rem;
    color: var(--text2);
    margin-top: .6rem;
}

.site-footer .ft-h {
    font-family: var(--mono);
    font-size: .7rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text3);
    margin-bottom: .8rem;
}

.site-footer .ft-p {
    font-size: .95rem;
    color: var(--text2);
    line-height: 2.2;
    margin: 0;
}

.site-footer .ft-a {
    color: var(--text2);
    text-decoration: none;
    transition: color .3s;
}
.site-footer .ft-a:hover { color: var(--accent); }

.site-footer .ft-cta {
    display: inline-block;
    margin-top: .8rem;
    padding: .55rem 1.2rem;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .01em;
    transition: background .2s;
}
.site-footer .ft-cta:hover { background: var(--accent-deep); }

/* Certifications strip */
.site-footer .ft-certs {
    max-width: 1200px;
    margin: 0 auto 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.site-footer .ft-cert-label {
    font-family: var(--mono);
    font-size: .7rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text3);
}

.site-footer .ft-cert-item {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
}

.site-footer .ft-base44-pill {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: opacity .2s;
}
.site-footer .ft-base44-pill:hover { opacity: 0.75; }
.site-footer .ft-base44-pill img { height: 32px; width: auto; display: block; }

.site-footer .ft-ce-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    width: 100px;
    height: 100px;
    overflow: visible;
}
.site-footer .ft-ce-badge iframe {
    display: block;
    transform: scale(0.76);
    transform-origin: center center;
}

/* GCA supplier mark — now inside .ft-certs alongside Base44 and CE */
.site-footer .ft-gca-mark {
    display: inline-flex;
    align-items: center;
    transition: opacity .2s;
}
.site-footer .ft-gca-mark:hover { opacity: 0.85; }
.site-footer .ft-gca-logo {
    display: block;
    width: 130px;
    height: auto;
    max-width: 100%;
}

/* Bottom bar */
.site-footer .ft-bottom {
    border-top: 1px solid var(--border);
    padding-top: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}
.site-footer .ft-bottom p {
    font-size: .85rem;
    color: var(--text3);
    line-height: 1.7;
    margin: 0;
}
.site-footer .ft-bottom a {
    color: var(--text3);
    text-decoration: none;
    transition: color .3s;
}
.site-footer .ft-bottom a:hover { color: var(--accent); }

/* Cookie settings button styled to match the surrounding legal-link text */
.site-footer .ft-cookie-btn {
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    font: inherit;
    color: var(--text3);
    text-decoration: none;
    cursor: pointer;
    transition: color .3s;
    line-height: inherit;
}
.site-footer .ft-cookie-btn:hover { color: var(--accent); }
.site-footer .ft-cookie-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Responsive */
@media (max-width: 900px) {
    .site-footer .ft-wrap { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .site-footer .ft-certs { gap: 1.5rem; }
}
@media (max-width: 600px) {
    .site-footer .ft-wrap { grid-template-columns: 1fr; }
    .site-footer .ft-certs { flex-direction: column; gap: 1.2rem; }
    .site-footer .ft-bottom { flex-direction: column; text-align: center; }
}
