/* Carzzy Apps: shared site footer.
   Markup lives in /_includes/site-footer.html, which links this file.
   It's used on pages with very different styles, so everything is scoped to
   .site-footer and resets the element styles a page might set on h2/p/a. */

.site-footer {
    --text: #ffffff;
    --muted: #aaa;
    --dim: #777;
    --accent: #00d1b2;
    --line: #333;
    --line-soft: #222;
    --surface: #151515;
    box-sizing: border-box;
    width: 100%;
    align-self: stretch;
    justify-self: stretch;
    flex-shrink: 0;
    text-align: left;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 400;
    line-height: normal;
    letter-spacing: normal;
    user-select: text;
    -webkit-user-select: text;
}
.site-footer *, .site-footer *::before, .site-footer *::after { box-sizing: border-box; }
.site-footer :where(h2, p, a, span, img) {
    margin: 0;
    padding: 0;
    font: inherit;
    color: inherit;
    text-shadow: none;
    animation: none;
    transform: none;
    letter-spacing: normal;
    text-transform: none;
    text-decoration: none;
    border: 0;
    background: none;
    box-shadow: none;
}
/* The feedback form is also shown in a popup frame; no footer there. */
html.cz-framed .site-footer { display: none; }

.site-footer {
    position: relative;
    z-index: 0;
    margin-top: 90px;
    border-top: 1px solid var(--line-soft);
    background:
        radial-gradient(700px 260px at 15% 0%, rgba(0, 209, 178, 0.08), transparent 70%),
        #0d0d0d;
    color: var(--muted);
    font-size: 0.92rem;
}
.site-footer::before {
    content: "";
    position: absolute;
    top: -1px; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.6;
}
.site-footer .ft-inner {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 56px 20px 40px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
    gap: 40px;
}
.site-footer .ft-logo { display: inline-block; }
.site-footer .ft-logo img { display: block; width: 150px; height: auto; }
.site-footer .ft-brand p { margin: 16px 0 20px; max-width: 300px; line-height: 1.6; }
.site-footer .ft-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: 2px solid var(--accent);
    border-radius: 50px;
    background: transparent;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: bold;
    white-space: nowrap;
    transition: 0.3s;
}
.site-footer .ft-btn:hover { background: var(--accent); color: #0a0a0a; box-shadow: 0 0 20px rgba(0, 209, 178, 0.4); }
.site-footer .ft-h {
    margin: 4px 0 16px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.site-footer .ft-col { display: flex; flex-direction: column; gap: 11px; }
.site-footer .ft-col a { color: var(--muted); text-decoration: none; width: fit-content; transition: color 0.2s; }
.site-footer .ft-col a:hover { color: var(--accent); }
.site-footer .ft-partners { gap: 14px; }
.site-footer .ft-partners a {
    display: block;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    transition: border-color 0.2s, transform 0.2s;
}
.site-footer .ft-partners a:hover { border-color: var(--accent); transform: translateY(-2px); }
.site-footer .ft-pname { display: block; color: var(--accent); font-weight: 700; }
.site-footer .ft-partners a:hover .ft-pname { color: var(--accent); }
.site-footer .ft-pdesc { display: block; margin-top: 3px; color: var(--dim); font-size: 0.8rem; line-height: 1.45; }
.site-footer .ft-bottom {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 20px 20px 32px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 24px;
    border-top: 1px solid var(--line-soft);
    font-size: 0.8rem;
    color: var(--dim);
}
.site-footer .ft-top { margin-left: auto; color: var(--muted); text-decoration: none; font-weight: 600; }
.site-footer .ft-legal { color: var(--accent); text-decoration: none; font-weight: 600; }
.site-footer .ft-legal:hover { text-decoration: underline; }
.site-footer .ft-top:hover { color: var(--accent); }

@media (max-width: 900px) {
    .site-footer .ft-inner { grid-template-columns: 1fr 1fr; }
    .site-footer .ft-brand, .site-footer .ft-partners { grid-column: 1 / -1; }
    .site-footer .ft-partners { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
    .site-footer .ft-partners .ft-h { grid-column: 1 / -1; margin-bottom: 2px; }
}
@media (max-width: 640px) {
    .site-footer .ft-inner { padding: 44px 16px 32px; gap: 32px 20px; }
    .site-footer .ft-bottom { padding: 18px 16px 28px; }
}
