/* ============================================================
   SITE FOOTER, version 2 (preview 2026-12-05, revision 2)
   Brand block, four link columns and the legal line, with an
   optional "Stay Creative" newsletter panel above the columns.
   Uses the shared tokens from jz-home/css/styles.css. Scoped to .jzf
   so it can sit beside the current .footer rules while it is reviewed.
   ============================================================ */

#jzf {
  /* The site tokens, set here too: some pages (the offer pages) load their
     own CSS instead of styles.css and do not define all of them. */
  --bg: #0c0c0e;
  --ink: #f6f3ef;
  --muted: #c0bbb2;
  --line: rgba(246, 243, 239, 0.09);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: Inter, system-ui, sans-serif;
  --maxw: 1600px;
  --pad: 5%;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --jzf-g1: #ff2438;
  --jzf-g2: #d600ed;
  --jzf-grad: linear-gradient(90deg, var(--jzf-g1), var(--jzf-g2));
  position: relative;
  box-sizing: border-box;
  display: block;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;                        /* old .footer rules pad this differently per page */
  border: 0;
  border-top: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
  font-family: var(--font-body);
  overflow: hidden;
}
#jzf::before {                       /* soft brand glow at the top edge */
  content: "";
  position: absolute;
  inset: -260px 25% auto;
  height: 460px;
  background: radial-gradient(closest-side, rgba(214, 0, 237, 0.12), rgba(255, 36, 56, 0.05) 55%, transparent);
  pointer-events: none;
}
#jzf .jzf__inner { position: relative; max-width: var(--maxw); margin-inline: auto; padding: 0 var(--pad); }
#jzf a { color: inherit; text-decoration: none; }

/* ---------- shared hover: gradient underline that draws in ---------- */
#jzf .jzf__u {
  background: var(--jzf-grad) left 100% / 0% 1px no-repeat;
  padding-bottom: 2px;
  transition: background-size 0.5s var(--ease-out), color 0.3s;
}
#jzf a:hover .jzf__u, #jzf a:focus-visible .jzf__u { background-size: 100% 1px; color: var(--ink); }

/* ---------- columns ---------- */
#jzf .jzf__grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.3fr) repeat(4, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  padding: clamp(3.5rem, 6vw, 5rem) 0 clamp(3rem, 5vw, 4.2rem);
}
#jzf .jzf__brand { display: grid; gap: 1.2rem; align-content: start; }
#jzf .jzf__brand p { font-size: 0.98rem; line-height: 1.6; max-width: 32ch; }
#jzf .jzf__mail { display: grid; gap: 0.45rem; justify-items: start; }
#jzf .jzf__mail a { color: var(--ink); font-size: 0.98rem; }

#jzf .jzf__col h3 {
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 1.3rem;
}
#jzf .jzf__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.85rem; }
#jzf .jzf__col a { position: relative; display: inline-block; font-size: 0.98rem; line-height: 1.35; }
#jzf .jzf__col small { display: block; font-size: 0.8rem; color: rgba(192, 187, 178, 0.6); margin-top: 0.2rem; }

/* "Work with us" column: each route gets a short line under it */
#jzf .jzf__tag {
  display: inline-block;
  margin-left: 0.45rem;
  padding: 0.12rem 0.5rem;
  border: 1px solid rgba(214, 0, 237, 0.45);
  border-radius: 999px;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  vertical-align: 0.12em;
}
#jzf .jzf__soon { display: block; opacity: 0.7; cursor: default; font-size: 0.98rem; }

/* ---------- social: gradient fills the circle on hover ---------- */
#jzf .jzf__social { display: flex; gap: 0.7rem; flex-wrap: wrap; }
#jzf .jzf__social a {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: color 0.3s, border-color 0.3s, transform 0.4s var(--ease-out), box-shadow 0.4s;
}
#jzf .jzf__social a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--jzf-g1), var(--jzf-g2));
  transform: scale(0);
  transition: transform 0.45s var(--ease-out);
}
#jzf .jzf__social a:hover, #jzf .jzf__social a:focus-visible {
  color: #fff;
  border-color: transparent;
  transform: translateY(-4px);
  box-shadow: 0 12px 26px -10px rgba(214, 0, 237, 0.75);
}
#jzf .jzf__social a:hover::before, #jzf .jzf__social a:focus-visible::before { transform: scale(1); }
#jzf .jzf__social svg { display: block; width: 19px; height: 19px; transition: transform 0.45s var(--ease-out); }
#jzf .jzf__social a:hover svg { transform: scale(1.1) rotate(-8deg); }

/* ---------- legal ---------- */
#jzf .jzf__bottom {                       /* copyright left, legal links centred, credit right */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem 2rem;
  padding: 1.6rem 0 2.6rem;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  color: rgba(192, 187, 178, 0.7);
}
#jzf .jzf__bottom p { margin: 0; }
#jzf .jzf__legal { display: flex; justify-content: center; gap: 0.4rem 1.6rem; flex-wrap: wrap; }
#jzf .jzf__made { font-family: var(--font-display); justify-self: end; }

/* ---------- gradient button (used by the newsletter form) ---------- */
#jzf .jzf__btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 56px;
  padding: 14px 28px;
  border: 0;
  border-radius: 999px;
  background-image: linear-gradient(92deg, #ff0000 0%, #d600ed 50%, #8b2bff 75%, #ff1f6a 100%);
  background-size: 200% 100%;
  background-position: 0% 50%;
  color: #fff !important;
  font: 650 1.02rem/1.3 var(--font-body);
  cursor: pointer;
  opacity: 1;
  transition: background-position 0.7s var(--ease-out), transform 0.35s var(--ease-out), box-shadow 0.35s;
}
#jzf .jzf__btn::after {              /* light sweep across the button */
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 45%;
  z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: translateX(-120%) skewX(-18deg);
  transition: transform 0.75s var(--ease-out);
}
#jzf .jzf__btn:hover, #jzf .jzf__btn:focus-visible {
  opacity: 1;
  background-position: 100% 50%;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -12px rgba(214, 0, 237, 0.85), 0 6px 16px -8px rgba(255, 0, 0, 0.6);
}
#jzf .jzf__btn:hover::after { transform: translateX(320%) skewX(-18deg); }
#jzf .jzf__btn:active { transform: translateY(0) scale(0.985); }
#jzf .jzf__btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

/* ---------- alt version: Stay Creative newsletter panel ---------- */
#jzf .jzf__news {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  margin-top: clamp(4.5rem, 9vw, 8rem);
  padding: clamp(2rem, 4.5vw, 3.6rem);
  border: 1px solid rgba(214, 0, 237, 0.22);
  border-radius: 28px;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(214, 0, 237, 0.28), transparent 55%),
    radial-gradient(80% 80% at 100% 100%, rgba(255, 36, 56, 0.12), transparent 60%),
    linear-gradient(140deg, #2a0f3e, #1b0a2a 55%, #250c35);
  color: rgba(246, 243, 239, 0.78);
}
#jzf .jzf__news-brand { font: 600 0.95rem/1.2 'Crimson Pro', Georgia, serif; letter-spacing: 0.12em; text-transform: uppercase; color: var(--jzf-g1); margin: 0 0 1rem; }
#jzf .jzf__news h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 4.6vw, 4rem);
  line-height: 1.05;
  color: var(--ink);
  margin: 0 0 1rem;
}
#jzf .jzf__news-copy > p:last-child { font-size: 1.05rem; line-height: 1.6; max-width: 36ch; margin: 0; }

#jzf .jzf__form { margin: 0; color: rgba(246, 243, 239, 0.78); }
#jzf .jzf__form .jzc-fields { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 14px; margin: 0; }
#jzf .jzf__form .jzc-field { position: relative; display: block; margin: 0; }
#jzf .jzf__form .jzc-field > span {
  position: absolute;
  left: 20px;
  top: 9px;
  z-index: 1;
  color: rgba(246, 243, 239, 0.7);
  font: 500 11px/1.2 var(--font-body);
  pointer-events: none;
  transition: top 0.15s, font-size 0.15s, transform 0.15s;
}
#jzf .jzf__form .jzc-field:has(input:placeholder-shown):not(:focus-within) > span { top: 50%; font-size: 1.05rem; font-weight: 400; transform: translateY(-50%); }
#jzf .jzf__form .jzc-field input {
  width: 100%;
  height: 64px;
  padding: 26px 20px 9px;
  border: 1px solid rgba(214, 0, 237, 0.22);
  border-radius: 16px;
  background: rgba(20, 6, 30, 0.55);
  color: var(--ink);
  font: 400 1.02rem/1.4 var(--font-body);
  box-shadow: none;
  transition: border-color 0.25s, background-color 0.25s, box-shadow 0.25s;
}
#jzf .jzf__form .jzc-field input:hover { border-color: rgba(214, 0, 237, 0.45); }
#jzf .jzf__form .jzc-field input:focus { outline: none; border-color: var(--jzf-g2); background: rgba(20, 6, 30, 0.8); box-shadow: 0 0 0 4px rgba(214, 0, 237, 0.18); }
#jzf .jzf__form .jzc-consent { margin: 22px 0; font-size: 0.86rem; line-height: 1.65; opacity: 0.85; }
#jzf .jzf__form .jzc-consent a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
#jzf .jzf__form .jzc-feedback:empty { display: none; }
#jzf .jzf__form .jzc-feedback { margin: 0 0 16px; color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  #jzf .jzf__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #jzf .jzf__brand { grid-column: 1 / -1; }
  #jzf .jzf__news { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  #jzf .jzf__grid { grid-template-columns: 1fr 1fr; gap: 2.4rem 1.6rem; }
  #jzf .jzf__col--partner { grid-column: 1 / -1; }
  #jzf .jzf__bottom { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  #jzf .jzf__made { justify-self: center; }
  #jzf .jzf__news { border-radius: 22px; margin-top: 2.5rem; }
  #jzf .jzf__form .jzc-fields { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  #jzf *, #jzf *::before, #jzf *::after { transition: none !important; }
}
