/* =====================================================================
 * Parix.ai site footer - "Orange & White"
 *
 * Ported from parix-footer-orange-white.html. Two deliberate differences
 * from that file:
 *
 *  1. The standalone page wrapper is NOT carried over. The original set
 *     :root, body and a .spacer to demo the footer on an empty page; those
 *     would fight the theme. Only .site-foot and its descendants are styled.
 *  2. The design's two font families are not loaded. The site already ships
 *     Inter (arolax-child-inter-css) and DM Sans (arolax-fonts-css), and the
 *     brief was to use what is already there rather than add a request:
 *       Bricolage Grotesque -> DM Sans 700/800   (headings, the big CTA)
 *       Instrument Sans     -> Inter             (body, links, buttons)
 *
 * Every custom property is declared on .site-foot rather than :root, so the
 * footer cannot leak a variable into the header or any page.
 * ===================================================================== */

.site-foot {
  --f-ctabg: #E2550C;
  --f-ctafg: #FFFFFF;
  --f-bg: linear-gradient(180deg, #FFFFFF 0%, #FFF6EE 100%);
  --f-text: #5F4A3A;
  --f-head: #2A1A0E;
  --f-line: #F2DFCC;
  --f-socbg: #FFF1E4;
  --f-socbd: #F7D3B3;
  --f-socfg: #E2550C;
  --f-sochbg: #E2550C;
  --f-sochfg: #FFFFFF;
  --f-card: #E2550C;
  --f-cardtext: #FFFFFF;
  --f-cardmuted: #FFE1C8;
  --f-inbg: #FFFFFF;
  --f-inbd: #FFFFFF;
  --f-btn: #2A1A0E;
  --f-btnfg: #FFFFFF;
  --f-btnh: #000000;
  --f-mark: #E2550C;
  --f-markimg: brightness(0) invert(1);
  --f-hl: #E2550C;
  --f-pill: #F2C8A4;
  --f-focus: #E2550C;
  --f-intext: #2A1A0E;
  --f-head-font: "DM Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  position: relative;
  overflow: hidden;
  background: var(--f-bg);
  color: var(--f-text);
  border-radius: clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px) 0 0;
  padding: 0 clamp(18px, 4vw, 56px);
  isolation: isolate;
  font-family: var(--f-body-font);
  box-sizing: border-box;
}

.site-foot *,
.site-foot *::before,
.site-foot *::after { box-sizing: border-box; }

/* The theme puts a 0.3s transition on every link. A gsap.from() on a link
   then records its hidden start state as the END state and the link stays
   invisible for good - this already bit the case-studies build. Killing the
   transition inside the footer is half the fix; the script uses fromTo()
   with explicit end values for the other half. */
.site-foot a { transition: none; }

.site-foot .pxf-sr {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
}

.site-foot .fmain {
  max-width: none;
  margin: 0;
  padding: clamp(40px, 4.5vw, 56px) 0 28px;
  position: relative;
  z-index: 2;
}

/* ---- the CTA row ---- */
.site-foot .fcta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding-bottom: 28px; margin-bottom: 36px;
  border-bottom: 1px solid var(--f-line);
}
.site-foot .fcta-h {
  font-family: var(--f-head-font);
  font-weight: 800;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.1; letter-spacing: -.02em;
  color: var(--f-head); margin: 0;
}
.site-foot .fcta-h .w { display: inline-block; }

.site-foot .spin-btn {
  position: relative; flex: none;
  width: clamp(96px, 8vw, 112px); aspect-ratio: 1;
  display: grid; place-items: center;
  color: var(--f-head); text-decoration: none; border-radius: 50%;
}
.site-foot .spin-txt { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.site-foot .spin-txt text {
  font-family: var(--f-body-font);
  font-size: 17px; font-weight: 600; letter-spacing: .06em; fill: currentColor;
}
.site-foot .spin-core {
  width: 54%; aspect-ratio: 1; border-radius: 50%;
  background: var(--f-ctabg); color: var(--f-ctafg);
  display: grid; place-items: center;
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.55);
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.site-foot .spin-btn:hover .spin-core { transform: scale(1.08); }
.site-foot .spin-btn:hover .spin-core svg { transform: rotate(45deg); }
.site-foot .spin-core svg { transition: transform .4s cubic-bezier(.2,.8,.2,1); }

/* ---- the four columns ---- */
.site-foot .fgrid {
  display: grid;
  grid-template-columns: 1.1fr 1fr .8fr minmax(380px, 1.4fr);
  gap: clamp(24px, 3vw, 48px);
}
.site-foot h4 {
  font-family: var(--f-head-font);
  color: var(--f-head); font-size: 19px; font-weight: 700;
  margin: 0 0 18px; letter-spacing: -.01em;
}
.site-foot .flogo {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-head-font); font-weight: 800; font-size: 30px;
  color: var(--f-head); text-decoration: none; letter-spacing: -.03em;
}
.site-foot .fmark {
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--f-mark); display: grid; place-items: center;
  box-shadow: 0 8px 20px -8px rgba(0,0,0,.4);
}
.site-foot .fmark img { width: 24px; height: auto; filter: var(--f-markimg); }
.site-foot .fbrand p { max-width: 30ch; margin: 16px 0 28px; font-size: 15px; }

.site-foot .socials { display: flex; gap: 10px; flex-wrap: wrap; }
.site-foot .soc {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--f-socfg); background: var(--f-socbg);
  border: 1px solid var(--f-socbd);
  transition: background .25s, color .25s, translate .25s, border-color .25s;
}
.site-foot .soc:hover,
.site-foot .soc:focus-visible {
  background: var(--f-sochbg); border-color: var(--f-sochbg);
  color: var(--f-sochfg); translate: 0 -3px;
}

.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 15px; }
.site-foot ul a { display: inline-flex; align-items: center; gap: 6px; color: var(--f-text); text-decoration: none; }
.site-foot ul a span {
  background: linear-gradient(var(--f-hl), var(--f-hl)) 0 100%/0 1.5px no-repeat;
  transition: background-size .3s;
}
.site-foot ul a:hover { color: var(--f-hl); }
.site-foot ul a:hover span { background-size: 100% 1.5px; }
.site-foot .la { opacity: 0; transform: translate(-4px, 4px); transition: opacity .25s, transform .25s; color: var(--f-hl); }
.site-foot ul a:hover .la { opacity: 1; transform: none; }
.site-foot :focus-visible { outline: 3px solid var(--f-focus); outline-offset: 3px; border-radius: 6px; }

/* ---- newsletter card ----
   The markup inside is The Newsletter Plugin's own [newsletter_form] output,
   rendered through do_shortcode(), so the real subscription endpoint, field
   names and the plugin's messages are untouched. Only its skin changes. */
.site-foot .newsc {
  background: var(--f-card); color: var(--f-cardtext);
  border-radius: 24px; padding: 24px; align-self: start;
  box-shadow: 0 30px 60px -32px rgba(0,0,0,.55);
}
.site-foot .newsc h4 { color: var(--f-cardtext); margin-bottom: 6px; }
.site-foot .newsc > p { margin: 0 0 16px; font-size: 15px; color: var(--f-cardmuted); }

.site-foot .newsc .tnp,
.site-foot .newsc .tnp-subscription,
.site-foot .newsc .tnp-subscription-minimal { margin: 0; max-width: none; }
.site-foot .newsc form {
  display: flex; align-items: center; gap: 10px;
  background: var(--f-inbg); border: 1.5px solid var(--f-inbd);
  border-radius: 999px; padding: 6px 6px 6px 16px;
  transition: box-shadow .25s; text-align: left !important;
}
.site-foot .newsc form:focus-within { box-shadow: 0 0 0 4px rgba(236,89,14,.22); }
/* the envelope that the design draws before the field */
.site-foot .newsc form::before {
  content: ""; flex: none; width: 18px; height: 18px;
  background: currentColor; color: var(--f-btn);
  -webkit-mask: var(--f-mail) center/contain no-repeat;
  mask: var(--f-mail) center/contain no-repeat;
}
.site-foot .newsc {
  --f-mail: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='5' width='18' height='14' rx='3'/%3E%3Cpath d='M4 7l8 6 8-6'/%3E%3C/svg%3E");
}
.site-foot .newsc input[type="email"],
.site-foot .newsc .tnp-email {
  flex: 1; min-width: 0; width: auto;
  border: 0; background: transparent; font: inherit; font-size: 15px;
  color: var(--f-intext); padding: 8px 0; outline: none; margin: 0; height: auto;
}
.site-foot .newsc input[type="submit"],
.site-foot .newsc .tnp-submit,
.site-foot .newsc button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  flex: none; width: auto; border: 0; border-radius: 999px;
  background: var(--f-btn); color: var(--f-btnfg);
  font: inherit; font-weight: 600; font-size: 15px;
  padding: 10px 18px; margin: 0; cursor: pointer; height: auto;
  transition: background .25s;
}
.site-foot .newsc input[type="submit"]:hover,
.site-foot .newsc .tnp-submit:hover,
.site-foot .newsc button:hover { background: var(--f-btnh); }
.site-foot .newsc .tnp-field { margin: 0; }
.site-foot .newsc .tnp-field-button { margin: 0; }
.site-foot .newsc label { color: var(--f-cardmuted); font-size: 13px; }

.site-foot .newsmsg:empty { display: none; }
.site-foot .newsmsg {
  margin: 10px 4px 0; font-size: 14px; color: var(--f-cardtext); font-weight: 600;
}

/* ---- copyright row ---- */
.site-foot .copy {
  margin-top: clamp(28px, 3vw, 40px); padding-top: 20px;
  border-top: 1px solid var(--f-line);
  display: flex; justify-content: center; align-items: center;
  gap: 14px; flex-wrap: wrap; font-size: 14px; text-align: center;}
.site-foot .totop-inline {
  all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-body-font); font-weight: 600; color: var(--f-head);
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--f-pill);
  transition: background .25s, color .25s, border-color .25s;
}
.site-foot .totop-inline:hover { background: var(--f-hl); color: var(--f-btnfg); border-color: var(--f-hl); }

/* ---- responsive, carried over from the design ---- */
@media (max-width: 1050px) {
  .site-foot .fgrid { grid-template-columns: 1.25fr 1fr 1fr; }
  .site-foot .newsc {
    grid-column: 1 / -1; display: grid;
    grid-template-columns: 1fr 1.2fr; gap: 6px 24px; align-items: center;
  }
  .site-foot .newsc h4, .site-foot .newsc > p { grid-column: 1; }
  .site-foot .newsc .tnp { grid-column: 2; grid-row: 1 / 3; }
  .site-foot .newsc .newsmsg { grid-column: 2; }
}
@media (max-width: 700px) {
  .site-foot .fgrid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .site-foot .newsc { display: block; }
  .site-foot .fbrand {
    grid-column: 1 / -1;
    display: grid; grid-template-columns: 1fr auto;
    grid-template-areas: "logo soc" "text soc";
    gap: 12px 28px; align-items: center;
    padding-bottom: 28px; border-bottom: 1px solid var(--f-line);
  }
  .site-foot .fbrand .flogo { grid-area: logo; }
  .site-foot .fbrand p { grid-area: text; margin: 0; }
  .site-foot .fbrand h4 { display: none; }
  .site-foot .fbrand .socials { grid-area: soc; display: flex; gap: 10px; }
  .site-foot nav h4 {
    font-size: 17px; margin-bottom: 14px; padding-bottom: 10px;
    border-bottom: 2px solid var(--f-hl); display: inline-block;
  }
  .site-foot .fcta { gap: 16px; }
  .site-foot .fcta-h { font-size: 26px; }
  .site-foot .spin-btn { width: 84px; }
  .site-foot .copy { justify-content: center; text-align: center; }
}
@media (max-width: 520px) {
  .site-foot .fbrand { grid-template-columns: 1fr; grid-template-areas: "logo" "text" "soc"; gap: 14px; }
  .site-foot .fbrand .socials { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
  .site-foot .fbrand .soc { width: 100%; height: auto; aspect-ratio: 1; max-width: 52px; justify-self: center; }
  .site-foot .flogo { font-size: 26px; }
  .site-foot .fmark { width: 42px; height: 42px; }
}
@media (max-width: 420px) {
  .site-foot .newsc form { flex-wrap: wrap; }
  .site-foot .newsc input[type="submit"],
  .site-foot .newsc .tnp-submit { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .site-foot .spin-core,
  .site-foot .spin-core svg,
  .site-foot .soc,
  .site-foot .la { transition: none; }
}

/* ---- fix 2026-10-02: Turnstile row + centred copyright ----
   The theme mounts a Cloudflare Turnstile box inside the newsletter <form> on
   email focus (functions.php, .arolax-nl-cf) and sets flex-wrap on the form.
   With the white pill drawn on the form itself, the widget landed inside the
   pill and stretched it. The form is now a grid: the pill is a ::after behind
   row 1 only (envelope, email, button) and the widget gets its own row below.
   The widget must stay inside the form so its token is posted with it. */
.site-foot .newsc form {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
  column-gap: 10px; row-gap: 0;
  background: transparent; border: 0; padding: 0; border-radius: 0; box-shadow: none;
  position: relative; isolation: isolate;
}
.site-foot .newsc form:focus-within { box-shadow: none; }
.site-foot .newsc form::after {
  content: ""; grid-row: 1; grid-column: 1 / -1; align-self: stretch; z-index: 0;
  background: var(--f-inbg); border: 1.5px solid var(--f-inbd); border-radius: 999px;
  transition: box-shadow .25s;
}
.site-foot .newsc form:focus-within::after { box-shadow: 0 0 0 4px rgba(236,89,14,.22); }
.site-foot .newsc form::before { display: none; } /* envelope is drawn inside the email field instead */
.site-foot .newsc input[type="email"],
.site-foot .newsc .tnp-email {
  grid-row: 1; grid-column: 1; position: relative; z-index: 1; margin: 6px 0; padding-left: 46px; width: 100%; max-width: none !important; box-sizing: border-box;
  background: no-repeat 18px center / 18px url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A1A0E' stroke-width='2'%3E%3Crect x='3' y='5' width='18' height='14' rx='3'/%3E%3Cpath d='M4 7l8 6 8-6'/%3E%3C/svg%3E");
}
.site-foot .newsc input[type="email"]::placeholder { color: rgba(42,26,14,.45); opacity: 1; }
.site-foot .newsc input[type="submit"],
.site-foot .newsc .tnp-submit { grid-row: 1; grid-column: 2; position: relative; z-index: 1; margin: 6px 6px 6px 0; }
.site-foot .newsc input[type="submit"]:disabled,
.site-foot .newsc .tnp-submit:disabled { opacity: .65; cursor: wait; }
.site-foot .newsc .arolax-nl-cf {
  grid-row: 2; grid-column: 1 / -1;
  margin: 12px 0 0 !important; width: 100% !important; justify-content: flex-start !important;
}
.site-foot .newsc .arolax-nl-cf:empty { margin: 0 !important; }
@media (max-width: 420px) {
  .site-foot .newsc form { grid-template-columns: minmax(0, 1fr); }
  .site-foot .newsc input[type="submit"],
  .site-foot .newsc .tnp-submit { grid-row: 2; grid-column: 1 / -1; width: 100%; margin: 10px 0 0; }
  .site-foot .newsc .arolax-nl-cf { grid-row: 3; }
}

/* copyright in the centre, "Back to top" stays on the right */
.site-foot .copy { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.site-foot .copy > span { grid-column: 2; text-align: center; }
.site-foot .copy .totop-inline { grid-column: 3; justify-self: end; }
@media (max-width: 700px) {
  .site-foot .copy { grid-template-columns: 1fr; justify-items: center; }
  .site-foot .copy > span, .site-foot .copy .totop-inline { grid-column: 1; justify-self: center; }
}

/* ---- 2026-10-02: light cream footer with a curved top ----
   A wide elliptical arch replaces the small corner rounding, and the cream is a
   shade deeper than the pages (#FFF8EF / white) so the curve is actually visible.
   The top padding grows so the heading and the spin button clear the arch. */
.site-foot {
  --f-bg: linear-gradient(180deg, #FFF7EE 0%, #FFF1E3 100%);
  --f-line: #F2DFCB;
  --f-socbg: #FFFFFF;
  --f-socbd: #F5D9BF;
  --f-pill: #F0CDAE;
  background: var(--f-bg);
  border-radius: 0; /* straight top (curve removed on request) */
  box-shadow: none;
  margin-top: 0;
}

