/* ============================================================
   Site footer: one panel, one grid, one background.
   Row 1: a compact brand row (logo, positioning line, social, apps).
   Row 2: the link columns. Row 3: the newsletter as one full width horizontal card.
   A faint, sparse pattern of product icons covers the whole panel.
   Markup: template-parts/footer/site-footer.php. Pattern: assets/img/patterns/footer.svg (bin/footer-pattern.php).
   ============================================================ */

.site-footer{position:relative;isolation:isolate;overflow:hidden;background:color-mix(in srgb,var(--violet) 3%,#fff);border-top:1px solid var(--hairline);padding:clamp(2rem,4vw,3rem) 0 1.6rem}
/* The brand gradient line runs along the very bottom edge */
.site-footer::after{content:"";position:absolute;inset:auto 0 0;height:4px;background:var(--grad-cool)}
/* The icon layer: very faint everywhere, fainter still across the middle where the links are */
.site-footer::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:var(--foot-pattern) 0 0/500px auto repeat;opacity:.1;
  -webkit-mask-image:radial-gradient(ellipse 70% 62% at 50% 50%,rgba(0,0,0,.5),#000);mask-image:radial-gradient(ellipse 70% 62% at 50% 50%,rgba(0,0,0,.5),#000)}

.foot-panel{position:relative;
  display:grid;grid-template-columns:repeat(var(--foot-cols,7),auto);justify-content:space-between;column-gap:1.25rem;padding:0 0 2rem}

/* Brand row */
.foot-brand{grid-column:1/-1;grid-row:1;contain:inline-size;display:flex;align-items:center;flex-wrap:wrap;gap:.9rem 1.8rem;padding-bottom:1.6rem}
.foot-logo{display:inline-block;flex:none;border-radius:6px}
.foot-logo img{display:block;width:112px;height:auto}
.foot-tagline{margin:0;max-width:36ch;font-size:.88rem;line-height:1.5;color:var(--graphite)}
.foot-reach{display:flex;align-items:center;flex-wrap:wrap;gap:.6rem 1rem;margin-left:auto}

.site-footer .social{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:.4rem}
.site-footer .social a{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;border:1px solid var(--hairline);background:#fff;color:var(--graphite);transition:color .2s,border-color .2s}
.site-footer .social a:hover{color:var(--violet-deep);border-color:var(--violet)}
.site-footer .social svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

.site-footer .apps{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:.45rem}
.site-footer .apps a{display:inline-flex;align-items:center;gap:.45rem;padding:.42rem .75rem;border:1px solid var(--hairline);border-radius:var(--radius-s);background:#fff;color:var(--plum);font-size:.8rem;font-weight:500;line-height:1.2;text-decoration:none;transition:color .2s,border-color .2s}
.site-footer .apps a:hover{color:var(--violet-deep);border-color:var(--violet)}
.site-footer .apps svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* Link columns */
.foot-col{grid-row:2;display:flex;flex-direction:column;gap:1.4rem;min-width:0}
.fg > summary{display:block;list-style:none;cursor:default}
.fg > summary::-webkit-details-marker{display:none}
.fg-h{margin:0 0 .45rem;font-family:var(--mono);font-size:.7rem;font-weight:600;line-height:1.4;letter-spacing:.12em;text-transform:uppercase;color:var(--graphite)}
.fg-h a{color:inherit;text-decoration:none;border-radius:3px}
.fg-h a:hover{color:var(--violet-deep)}
.fg-text,.fg-chev,.fg-over{display:none}
.fg-text.always{display:inline}
.fg ul{list-style:none;margin:0;padding:0}
.fg li a{display:block;padding:.22rem 0;font-size:.875rem;line-height:1.4;color:var(--plum);text-decoration:none;transition:color .2s}
.fg li a:hover{color:var(--violet-deep);text-decoration:underline;text-underline-offset:3px}
.foot-panel a:focus-visible{outline-offset:2px}

/* Newsletter: one full width horizontal card after the links, heading and line on the left, the form on the right.
   Solid white, so no icon sits behind its text. */
.foot-nl{grid-column:1/-1;grid-row:3;contain:inline-size;display:grid;grid-template-columns:auto minmax(0,27rem);justify-content:start;align-items:center;gap:.8rem 3rem;margin-top:1.9rem;background:#fff;border:1px solid var(--hairline);border-radius:var(--radius-m);padding:1.1rem 1.4rem;box-shadow:0 16px 36px -28px rgba(18,14,53,.35)}
.foot-nl .foot-nl-title{margin:0 0 .15rem;font-family:var(--display);font-size:1rem;font-weight:600;line-height:1.35;color:var(--plum)}
.foot-nl-copy p{margin:0;font-size:.84rem;color:var(--graphite)}
.foot-nl .nl-form{gap:.45rem}
.foot-nl .nl-form input[type=email]{flex:1 1 9rem;padding:.6rem .9rem;font-size:.88rem;background:#fff}
@media(max-width:760px){.foot-nl .nl-form input[type=email]{font-size:16px}}
.foot-nl .nl-form .nl-msg{margin:.05rem 0 0;min-height:0;font-size:.8rem}
.foot-nl .nl-form .nl-msg:empty{display:none}

/* Copyright and legal links, under the panel */
.foot-bottom{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:.6rem 1.5rem;padding:1.1rem .25rem 0;font-size:.78rem;line-height:1.5;color:var(--graphite)}
.foot-legal{display:flex;flex-wrap:wrap;align-items:center;gap:.3rem .55rem}
.foot-bottom a{color:inherit;text-decoration:none}
.foot-bottom a:hover{color:var(--violet-deep)}

/* Tablets and small laptops: four columns, the newsletter as a row after the links */
@media (max-width:1180px){
  .foot-panel{grid-template-columns:repeat(4,minmax(0,1fr));justify-content:normal;row-gap:2rem;padding:0 0 2rem}
  .foot-brand{padding-bottom:0}
  .foot-col,.foot-nl{grid-row:auto}
  .foot-nl{margin-top:0;grid-template-columns:auto minmax(0,24rem);padding:1.1rem 1.3rem}
}

/* Phones: one column; each group collapses (assets/js/footer.js closes them; without script they stay open) */
@media (max-width:719.98px){
  .foot-panel{display:block;padding:0 0 1.3rem}
  .site-footer::before{background-size:420px auto;-webkit-mask-image:none;mask-image:none}
  .foot-brand{flex-direction:column;align-items:flex-start;gap:.8rem;padding-bottom:1rem}
  .foot-reach{margin-left:0;flex-direction:column;align-items:flex-start}
  .foot-col{display:block}
  .fg{border-bottom:1px solid var(--hairline)}
  .fg > summary{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:3.1rem;cursor:pointer;border-radius:6px}
  .fg > summary:focus-visible{outline:2px solid var(--violet);outline-offset:2px}
  .fg-h{margin:0;font-family:var(--display);font-size:.95rem;font-weight:600;letter-spacing:0;text-transform:none;color:var(--plum)}
  .fg-link{display:none}
  .fg-text{display:inline}
  .fg-chev{display:block;flex:none;width:.5rem;height:.5rem;margin-right:.3rem;border-right:2px solid var(--graphite);border-bottom:2px solid var(--graphite);transform:translateY(-2px) rotate(45deg);transition:transform var(--t-base) var(--ease-out)}
  .fg[open] .fg-chev{transform:translateY(2px) rotate(-135deg)}
  .fg ul{columns:2;column-gap:1rem;padding:0 0 .9rem}
  .fg-long ul{columns:1}
  .fg li{break-inside:avoid}
  .fg li a{padding:.4rem 0;font-size:.9rem}
  .fg-over{display:block}
  .foot-nl{display:block;margin-top:1.25rem;padding:1rem 1.05rem}
  .foot-nl-copy p{margin:0 0 .7rem}
  .foot-bottom{flex-direction:column;align-items:flex-start;padding-inline:.1rem}
}
@media (max-width:360px){
  .fg ul{columns:1}
}
@media (prefers-reduced-motion:reduce){
  .fg-chev{transition:none}
}

/* Main sections stand out from the stacked sub groups (Teams, Size, Roles) and the links */
.fg-main .fg-h{font-family:var(--display);font-size:.98rem;font-weight:700;letter-spacing:0;text-transform:none;color:var(--plum);margin-bottom:.55rem}
.fg-main .fg-h a:hover{color:var(--violet-deep)}
.fg-sub{padding-top:.15rem}
.fg-sub .fg-h{font-family:var(--display);font-size:.86rem;font-weight:600;letter-spacing:0;text-transform:none;color:var(--violet)}
.fg-sub .fg-h a:hover{color:var(--violet-deep)}
@media (max-width:719.98px){
  .fg-main .fg-h{font-size:.98rem;font-weight:700}
  .fg-sub{padding-top:0}
  .fg-sub .fg-h{font-size:.92rem;font-weight:600;color:var(--violet)}
}
