/* ============================================================
   duolupo sticky footer, shared by the shop (index_2.php) and every
   content page. Same pattern as the shop header: black bar, white 1px
   rule, Archivo uppercase labels, square white-stroke buttons.
   Pinned to the bottom of the screen on larger screens; on phones
   (760px and narrower) it stacks, wraps and sits at the end of the page.
   ============================================================ */
:root{ --ftr-h:56px; }

.sfoot{
  position:sticky; bottom:0; z-index:30;
  background:#000; color:#fff;
  border-top:1px solid #fff;
  padding-bottom:env(safe-area-inset-bottom,0px);
  font-family:"Archivo",system-ui,-apple-system,"Helvetica Neue",Arial,sans-serif;
}
.sfoot-row{display:flex; align-items:center; gap:24px; height:var(--ftr-h); padding-inline:24px}

.sfoot-brand{display:flex; align-items:center; gap:9px; flex:none; color:#fff; text-decoration:none}
.sfoot-brand img{height:30px; width:auto; display:block}
.sfoot-brand b{font-weight:500; font-size:15px; letter-spacing:.04em}  /* v35: "DuoLupo" as written, weight 500 */

.sfoot-links{
  flex:1 1 auto; min-width:0;
  display:flex; align-items:center; justify-content:center; gap:22px;
  overflow-x:auto; scrollbar-width:none; white-space:nowrap;
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 14px,#000 calc(100% - 14px),transparent 100%);
          mask-image:linear-gradient(90deg,transparent 0,#000 14px,#000 calc(100% - 14px),transparent 100%);
  padding-inline:14px;
}
.sfoot-links::-webkit-scrollbar{display:none}
.sfoot-links a{
  color:#fff; opacity:.72; text-decoration:none;
  font-size:11px; font-weight:700; letter-spacing:.1em; text-transform:uppercase;
  padding:6px 0; transition:opacity .15s,color .15s;
}
.sfoot-links a:hover,.sfoot-links a:focus-visible{opacity:1; color:#f2c12e}
.sfoot-links a[aria-current="page"]{opacity:1; color:#fff; font-weight:800}
.sfoot-links a[aria-current="page"]:hover{color:#f2c12e}

.sfoot-social{display:flex; gap:8px; flex:none}
.sfoot-social a{
  width:34px; height:34px; display:grid; place-items:center;
  border:1px solid #fff; color:#fff; background:#000;
  transition:background .15s,color .15s;
}
.sfoot-social a:hover{background:#fff; color:#000}
.sfoot-social svg{width:16px; height:16px; stroke:currentColor; fill:none}

.sfoot a:focus-visible{outline:2px solid #f2c12e; outline-offset:2px}

@media (max-width:1100px){
  .sfoot-links{justify-content:flex-start}
}
@media (max-width:760px){
  /* v35: phones — the footer stacks and wraps (no sideways scroll) and sits at the end of the
     page instead of being pinned, since a stacked footer would cover too much of the screen. */
  :root{ --ftr-h:0px; }
  .sfoot{position:static}
  .sfoot-row{flex-direction:column; align-items:center; height:auto; gap:18px; padding:26px 16px calc(24px + env(safe-area-inset-bottom,0px))}
  .sfoot-brand b{display:inline}
  .sfoot-brand img{height:30px}
  .sfoot-links{flex-wrap:wrap; justify-content:center; gap:4px 20px; overflow:visible; white-space:normal; padding-inline:0;
               -webkit-mask-image:none; mask-image:none; max-width:420px}
  .sfoot-links a{padding:8px 0}
  .sfoot-links a.sfoot-client{flex-basis:100%; justify-content:center; padding-top:10px}
  .sfoot-social{gap:10px}
  .sfoot-social a{width:40px; height:40px}
  .sfoot-social svg{width:16px; height:16px}
}
.sfoot-social svg.fill{fill:currentColor; stroke:none}

/* Client Login (v28): last link in the row, gold so retail partners can find it. */
.sfoot-links a.sfoot-client{display:inline-flex; align-items:center; gap:6px; opacity:1; color:#f2c12e}
.sfoot-links a.sfoot-client svg{width:11px; height:11px; flex:none}
.sfoot-links a.sfoot-client:hover,.sfoot-links a.sfoot-client[aria-current="page"]{color:#fff}

/* v32: admin footer (admin.php, clients-admin.php, style-guide.php, health.php) */
.sfoot-tag{flex:none;font-family:"JetBrains Mono",ui-monospace,Menlo,monospace;font-size:10px;letter-spacing:.14em;text-transform:uppercase;background:#f2c12e;color:#000;padding:5px 8px}
.sfoot-admin .sfoot-links a.sfoot-client{color:#f2c12e;opacity:1}

/* v85: Newsletter sign-up, a row above the links on every page that has the site footer.
   The footer grows by one row (--nl-h), so pages that size themselves to the footer use the new height. */
:root{ --nl-h:56px; }
:root:has(.sfoot-news){ --ftr-h:112px; }
.sfoot-news + .sfoot-row{height:56px}
.sfoot-news{height:var(--nl-h); display:flex; align-items:center; justify-content:center; padding-inline:24px}
.nl-form{display:flex; align-items:center; gap:12px; margin:0; position:relative}
.nl-label{font-size:11px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; color:#f2c12e; margin:0}
.nl-input{width:300px; height:36px; padding:0 12px; background:#000; color:#fff; border:1px solid rgba(255,255,255,.55); border-radius:0;
  font:400 14px/1 "Archivo",system-ui,sans-serif; -webkit-appearance:none; appearance:none}
.nl-input::placeholder{color:rgba(255,255,255,.55)}
.nl-input:focus{outline:none; border-color:#f2c12e}
.nl-btn{height:36px; padding:0 20px; background:#f2c12e; color:#000; border:1px solid #f2c12e; border-radius:0; cursor:pointer;
  font:800 11px/1 "Archivo",system-ui,sans-serif; letter-spacing:.12em; text-transform:uppercase; transition:background .15s,border-color .15s}
.nl-btn:hover,.nl-btn:focus-visible{background:#D9A90F; border-color:#D9A90F; outline:none}
.nl-btn:disabled{opacity:.7; cursor:progress}
.nl-msg{margin:0; min-width:0; font:400 11px/1.3 "JetBrains Mono",ui-monospace,Menlo,monospace; color:rgba(255,255,255,.8); max-width:320px}
.nl-msg:empty{display:none}
.nl-msg.bad{color:#ff8a7a}
.sfoot-news .hp{position:absolute; left:-9999px; width:1px; height:1px; opacity:0}
@media (max-width:760px){
  :root:has(.sfoot-news){ --ftr-h:0px; }
  .sfoot-news{height:auto; padding:26px 16px 0}
  .sfoot-news + .sfoot-row{height:auto}
  .nl-form{flex-wrap:wrap; justify-content:center; width:100%; max-width:420px}
  .nl-label{flex-basis:100%; text-align:center}
  .nl-input{flex:1; width:auto; min-width:0; height:44px}
  .nl-btn{height:44px}
  .nl-msg{flex-basis:100%; text-align:center; max-width:none}
}
/* v108: the admin footer has more links: tighter spacing, and when it still overflows it starts at the
   left edge instead of cutting off the first link (safe center) */
.sfoot-links{justify-content:safe center}
.sfoot-admin .sfoot-links{gap:16px}
@media (min-width:761px) and (max-width:1100px){.sfoot-links{justify-content:flex-start}}

/* ---------- v111: every footer = 2 rows (desktop / tablet) ----------
   Row 1: logo (left) · newsletter (center) · social icons (right)
   Row 2: footer links (admin footer: admin data links), centered.
   Admin footer: row 1 = logo · Admin tag. Same 112px total height. */
@media (min-width:761px){
  :root:has(.sfoot-news),:root:has(.sfoot-admin){ --ftr-h:112px; }
  .sfoot:has(.sfoot-news),.sfoot.sfoot-admin{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);grid-template-rows:56px 56px;align-items:center;column-gap:24px}
  .sfoot:has(.sfoot-news) .sfoot-row,.sfoot.sfoot-admin .sfoot-row{display:contents}
  .sfoot .sfoot-brand{grid-row:1;grid-column:1;justify-self:start;margin-left:24px}
  .sfoot .sfoot-news{grid-row:1;grid-column:2;height:56px;padding-inline:0}
  .sfoot .sfoot-social,.sfoot .sfoot-tag{grid-row:1;grid-column:3;justify-self:end;margin-right:24px}
  .sfoot:has(.sfoot-news) .sfoot-links,.sfoot.sfoot-admin .sfoot-links{grid-row:2;grid-column:1/-1;align-self:stretch;display:flex;align-items:center;justify-content:safe center;gap:28px;padding-inline:24px;border-top:1px solid rgba(255,255,255,.18);min-width:0}
  .sfoot.sfoot-admin .sfoot-links{gap:20px}
}
@media (min-width:761px) and (max-width:1100px){
  .sfoot .nl-input{width:220px}
  .sfoot:has(.sfoot-news) .sfoot-links,.sfoot.sfoot-admin .sfoot-links{justify-content:flex-start;gap:20px}
}
