/*
 * Batch Thumbnailer - site footer, shared by the homepage, the guides (/guides/), the
 * landing pages and the user guide. Markup: footer.php.
 * Colours: this site's palette, set on the footer itself so it looks the same on
 * any page, whatever that page's own colours are.
 */
footer.site{
  --navy-0:#050a1c; --navy-1:#070d24; --navy-2:#0c1533; --navy-3:#121e45;
  --edge:#23356e; --edge-2:#34498c; --blue:#2f8bff; --blue-hi:#5aa6ff; --sky:#7fd3ff;
  --gold:#ffc928; --amber:#ff9d0a; --ink:#050a1c; --white:#fff;
  --text:#d6defa; --muted:#a3b0dc; --dim:#7c89b8;
  --grad-gold:linear-gradient(180deg,#ffc928 0%,#ff9d0a 100%);
  /* names used by landing/lib.php's footer row */
  --line:#23356e; --accent:#ffc928; --mono:'DM Sans','Segoe UI',system-ui,sans-serif;
  --font:'DM Sans','Segoe UI',system-ui,sans-serif; --font-d:'Bricolage Grotesque','Segoe UI',system-ui,sans-serif;
  color:var(--text);font-family:var(--font);-webkit-font-smoothing:antialiased;text-align:left
}
:where(footer.site) *,:where(footer.site) *::before,:where(footer.site) *::after{box-sizing:border-box;margin:0;padding:0}
:where(footer.site) .wrap{width:100%;max-width:1200px;margin:0 auto;padding:0 24px}
:where(footer.site) a{color:var(--sky);text-decoration:none}
:where(footer.site) a:hover{color:var(--white)}
:where(footer.site) img{max-width:100%;height:auto;display:block}
:where(footer.site) ul{list-style:none}
footer.site{background:var(--navy-0);border-top:1px solid var(--edge);padding:70px 0 0;font-size:16px;line-height:1.65}
:where(footer.site) h2,:where(footer.site) h3{font-family:var(--font-d);color:var(--white);font-weight:700;letter-spacing:-.02em;line-height:1.15}
:where(footer.site) p{margin-bottom:1rem}:where(footer.site) p:last-child{margin-bottom:0}
footer.site .brand{display:inline-flex;align-items:center;gap:12px;font-family:var(--font-d);font-weight:800;font-size:1.3rem;color:var(--white)}
footer.site .brand:hover{color:var(--white)}
footer.site .brand span{color:var(--gold)}
footer.site .brand img{width:210px;height:auto}
.form-trap{position:absolute;left:-9999px;top:-9999px;width:1px;height:1px;overflow:hidden;opacity:0;pointer-events:none}

.f-grid{display:grid;grid-template-columns:1.5fr 1.5fr .8fr;gap:40px;padding-bottom:50px}
.f-brand .brand{margin-bottom:18px}
.f-brand p{color:var(--dim);font-size:.9rem;max-width:340px}
.f-col h2{font-family:var(--font);font-size:.78rem;font-weight:700;text-transform:uppercase;letter-spacing:.12em;color:var(--gold);margin-bottom:16px}
.f-col ul{display:grid;gap:9px}
.f-col a{color:var(--muted);font-size:.9rem}
.f-col a:hover{color:var(--white)}
/* Product links: one heading, two lists side by side */
.f-split{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 32px}
.f-split ul{display:grid;gap:9px;align-content:start}

/* "Thumbnail maker for..." row (landing/lib.php prints it, with its own small style block) */
footer.site .f-landing{border-top:1px solid var(--edge)!important;padding:26px 0 30px!important}
footer.site .f-landing h2{font-family:var(--font)!important;font-weight:700!important;letter-spacing:.12em!important;color:var(--gold)!important}
footer.site .f-landing a{color:var(--muted)!important}
footer.site .f-landing a:hover{color:var(--white)!important}

/* newsletter strip */
.newsletter-section{display:grid;grid-template-columns:auto minmax(0,1fr);gap:18px 40px;align-items:center;padding:26px 28px;border-radius:18px;background:var(--navy-2);border:2px solid var(--edge);margin:0 0 36px}
.newsletter-section .nl-intro h3{font-size:1.05rem;display:flex;align-items:center;gap:10px;margin:0 0 4px}
.newsletter-section .nl-intro h3 i{color:var(--gold)}
.newsletter-section .nl-intro p{color:var(--dim);font-size:.88rem;margin:0}
.newsletter-section form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr) auto;gap:10px;align-items:stretch}
.newsletter-section .nl-field,.newsletter-section .nl-submit-row{margin:0}
.nl-field input{display:block;width:100%;height:50px;padding:0 15px;border-radius:12px;border:2px solid var(--edge-2);background:var(--navy-0);color:var(--white);font-family:var(--font);font-size:.95rem;outline:none}
.nl-field input:focus{border-color:var(--blue)}
.nl-field input::placeholder{color:var(--dim)}
.nl-submit-row button{height:50px;padding:0 22px;display:inline-flex;align-items:center;justify-content:center;gap:9px;white-space:nowrap;background:var(--grad-gold);color:var(--ink);font-family:var(--font);font-weight:700;font-size:.98rem;border:2px solid var(--navy-0);border-radius:14px;box-shadow:0 4px 0 #000;cursor:pointer;transition:transform .15s,box-shadow .15s}
.nl-submit-row button:hover{transform:translateY(-2px);box-shadow:0 6px 0 #000}
.newsletter-section .nl-done{min-width:0}
.nl-msg{display:flex;gap:10px;align-items:flex-start;padding:14px 16px;border-radius:12px;background:rgba(255,201,40,.1);border:2px solid rgba(255,201,40,.45);color:var(--white);font-size:.92rem;line-height:1.5}
.nl-msg i{color:var(--gold);margin-top:3px}
.nl-msg.error{background:rgba(47,139,255,.1);border-color:rgba(47,139,255,.45)}
.nl-msg.error i{color:var(--blue-hi)}

.f-bottom{border-top:1px solid var(--edge);padding:22px 0;display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;font-size:.84rem;color:var(--dim)}
.f-bottom a{color:var(--muted)}

@media(max-width:1100px){.newsletter-section{grid-template-columns:1fr}}
@media(max-width:820px){.f-grid{grid-template-columns:1.6fr 1fr}.f-brand{grid-column:1/-1}}
@media(max-width:600px){
  :where(footer.site) .wrap{padding:0 18px}
  .newsletter-section form{grid-template-columns:1fr}
  .nl-submit-row button{width:100%}
}
@media(max-width:520px){.f-grid{grid-template-columns:1fr}.f-split{gap:9px 20px}}
