/* =====================================================================
   GSCES footer ("gf") – call to action, brand + link columns, contact, bottom bar.
   Motif: the logo emblem (brand device) at the left edge, and ripples that radiate from the footer logo.
   Loaded after chrome.css; every class is prefixed gf- so older footer rules never collide.
   ===================================================================== */
.site-footer.gf{
    --gf-text:rgba(247,248,244,.78);
    --gf-strong:var(--brand-off-white);
    --gf-muted:rgba(247,248,244,.62);
    --gf-line:rgba(247,248,244,.12);
    --gf-leaf:0 100% 0 100%;
    position:relative;isolation:isolate;overflow:hidden;
    padding:0;background:var(--brand-charcoal);color:var(--gf-text);
}
/* top edge */
.site-footer.gf::after{
    content:"";position:absolute;inset:0 0 auto 0;height:4px;
    background:linear-gradient(90deg,var(--brand-deep-green),var(--brand-green),var(--brand-light-green));
}
.gf-inner{padding-block:clamp(24px,4vw,42px) 0}

/* ---- Call to action ---- */
.gf-cta{
    position:relative;overflow:hidden;
    display:flex;align-items:center;justify-content:space-between;gap:28px;
    padding:24px clamp(18px,3vw,34px);border-radius:20px;
    background:linear-gradient(120deg,var(--brand-deep-green) 0%,color-mix(in srgb,var(--brand-deep-green) 82%,var(--brand-charcoal)) 70%);
    border:1px solid rgba(163,239,126,.22);
}
.gf-cta-copy,.gf-cta-actions{position:relative;z-index:1}
.gf-cta-copy h2{margin:0 0 8px;font-size:clamp(20px,2.4vw,27px);line-height:1.5;color:var(--brand-off-white)}
.gf .gf-cta-copy p{margin:0;max-width:560px;font-size:15px;line-height:1.9;color:rgba(247,248,244,.9);font-weight:300}
.gf-cta-actions{display:flex;flex-wrap:wrap;gap:8px;flex:0 1 auto}
.gf-btn{
    display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 clamp(12px,1.5vw,20px);
    border-radius:999px;border:1px solid transparent;font-size:15px;font-weight:700;text-decoration:none;
    transition:transform .2s,background-color .2s,border-color .2s,color .2s;
}
.gf-btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.gf-btn svg.gf-fill{fill:currentColor;stroke:none;width:17px;height:17px}
.gf .gf-btn-primary{background:var(--brand-light-green);color:var(--brand-charcoal)}
.gf .gf-btn-primary:hover{background:var(--brand-off-white);transform:translateY(-2px)}
.gf .gf-btn-ghost{background:transparent;color:var(--brand-off-white);border-color:rgba(247,248,244,.4)}
.gf .gf-btn-ghost:hover{background:rgba(247,248,244,.12);border-color:var(--brand-off-white);transform:translateY(-2px)}
.gf-btn:focus-visible,.gf a:focus-visible{outline:3px solid var(--brand-light-green);outline-offset:3px}

/* ---- Columns ---- */
.gf-grid{
    display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr) minmax(0,1fr);gap:clamp(20px,3vw,42px);
    padding-block:32px 26px;
}
.gf-logo{display:inline-block;margin-bottom:18px}
.gf-logo img{display:block;height:58px;width:auto}
.gf .gf-tagline{margin:0 0 10px;font-size:15px;font-weight:700;color:var(--brand-light-green)}
.gf .gf-about{margin:0 0 10px;max-width:36ch;font-size:14px;line-height:2;color:var(--gf-text);font-weight:300}
.gf .gf-group{margin:0;font-size:13px;color:var(--gf-muted)}
.gf-socials{display:flex;gap:10px;margin:22px 0 0;padding:0;list-style:none}
.gf-socials a{
    display:grid;place-items:center;width:42px;height:42px;border-radius:50%;
    border:1px solid rgba(247,248,244,.22);color:var(--gf-strong);
    transition:background-color .2s,color .2s,border-color .2s,transform .2s;
}
.gf-socials svg{width:18px;height:18px;fill:currentColor}
.gf-socials a:hover{background:var(--brand-green);border-color:var(--brand-green);color:var(--brand-charcoal);transform:translateY(-3px)}

.gf-col h3{
    position:relative;margin:0 0 12px;padding-bottom:10px;font-size:16px;color:var(--brand-off-white);
}
.gf-col h3::after{ /* short two-tone accent line */
    content:"";position:absolute;inset-inline-start:0;bottom:0;width:32px;height:3px;border-radius:3px;
    background:linear-gradient(90deg,var(--brand-deep-green),var(--brand-light-green));
}
.gf-col ul{margin:0;padding:0;list-style:none;display:grid;gap:2px}
.gf-quick-links ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(10px, 2vw, 24px);
}
.gf-col li a:not(.gf-txt){
    position:relative;display:inline-block;padding:5px 0;font-size:14px;line-height:1.7;color:var(--gf-text);text-decoration:none;
    transition:color .2s,transform .25s ease;
}
.gf-col li a:not(.gf-txt)::before{ /* leaf (SVG with a midrib): sits just before the first character, in the column gap, so the text never reflows */
    content:"";position:absolute;inset-inline-start:-21px;top:11px;width:14px;height:14px;
    background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='4' y1='20' x2='20' y2='4' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%2352BA63'/%3E%3Cstop offset='1' stop-color='%23A3EF7E'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23g)' d='M21 3C10 3 3.5 8.5 3.5 16.5c0 1.4.3 2.7.8 3.8C5.6 17 8.6 13.6 13 11c-3.3 2.9-5.2 6-6 9.6 1 .3 2 .4 3 .4 8.5 0 11.5-8 11-18z'/%3E%3Cpath fill='none' stroke='%23202522' stroke-opacity='.45' stroke-width='1.2' stroke-linecap='round' d='M4.4 20.4C8 14.5 12.5 10 18 6.5'/%3E%3C/svg%3E") no-repeat center/contain;
    transform:rotate(-35deg) scale(.3);opacity:0;pointer-events:none;
    transition:opacity .2s,transform .4s cubic-bezier(.34,1.56,.64,1);
}
.gf-col li a:not(.gf-txt):hover,.gf-col li a:not(.gf-txt):focus-visible{color:var(--brand-light-green)}
.gf-col li a:not(.gf-txt):hover::before,.gf-col li a:not(.gf-txt):focus-visible::before{opacity:1;transform:rotate(0) scale(1)}
.gf-col li a:not(.gf-txt):hover,.gf-col li a:not(.gf-txt):focus-visible{transform:translateX(-3px)}
@media (hover:none){.gf-col li a:not(.gf-txt)::before{display:none}}

/* contact card */
.gf-contact ul{gap:12px}
.gf-contact li{display:flex;align-items:flex-start;gap:12px}
.gf-ico{flex:none;display:grid;place-items:center;width:40px;height:40px;border-radius:11px;background:rgba(82,186,99,.14)}
.gf-ico svg{width:19px;height:19px;fill:var(--brand-green)}
.gf .gf-txt{padding-top:8px;font-size:14.5px;line-height:1.75;color:var(--gf-strong);text-decoration:none;transition:color .2s}
.gf a.gf-txt:hover{color:var(--brand-light-green)}

/* ---- Bottom bar ---- */
.gf-bottom{
    display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;
    padding-block:14px 18px;border-top:1px solid var(--gf-line);font-size:13px;color:var(--gf-muted);
}
.gf-bottom .footer-developer{padding:0;min-height:0}

/* ---- Responsive ---- */
@media (max-width:1020px){
    .gf-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .gf-brand{grid-column:1/-1}
    .gf-about{max-width:60ch}
}
@media (max-width:720px){
    .gf-cta{flex-direction:column;align-items:flex-start;padding:20px 18px;gap:14px}
    .gf-cta-actions{width:100%}
    .gf-btn{flex:1 1 132px}
    .gf-grid{grid-template-columns:1fr;padding-block:26px 20px}
    .gf-bottom{flex-direction:column;align-items:flex-start;gap:12px}
}
@media (prefers-reduced-motion:reduce){
    .gf *,.gf *::before,.gf *::after{transition-duration:.01ms!important}
}

/* Parent group link on the dark footer */
.gf .group-link{color:var(--brand-light-green)}
.gf .group-link:hover,.gf .group-link:focus-visible{color:var(--brand-off-white)}


/* =====================================================================
   Background decoration
   - faint contour rings (restored as before)
   - brand device (the two logo curves, public/brand/device.svg) in the footer corner; circles inside the CTA card
   ===================================================================== */
.gf-logo{position:relative}
.gf-logo::before{
    content:"";position:absolute;z-index:-1;pointer-events:none;
    left:29px;top:29px;transform:translate(-50%,-50%);
    width:820px;height:820px;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 600' fill='none' stroke='%23F7F8F4' stroke-width='1.3'%3E%3Cg%3E%3Cpath d='M300 40c130-12 250 70 262 200s-62 262-200 292S84 492 62 346 170 52 300 40z'/%3E%3Cpath transform='translate(300 300) scale(.88) translate(-300 -300)' d='M300 40c130-12 250 70 262 200s-62 262-200 292S84 492 62 346 170 52 300 40z'/%3E%3Cpath transform='translate(300 300) scale(.76) rotate(6) translate(-300 -300)' d='M300 40c130-12 250 70 262 200s-62 262-200 292S84 492 62 346 170 52 300 40z'/%3E%3Cpath transform='translate(300 300) scale(.64) rotate(12) translate(-300 -300)' d='M300 40c130-12 250 70 262 200s-62 262-200 292S84 492 62 346 170 52 300 40z'/%3E%3Cpath transform='translate(300 300) scale(.52) rotate(18) translate(-300 -300)' d='M300 40c130-12 250 70 262 200s-62 262-200 292S84 492 62 346 170 52 300 40z'/%3E%3Cpath transform='translate(300 300) scale(.40) rotate(24) translate(-300 -300)' d='M300 40c130-12 250 70 262 200s-62 262-200 292S84 492 62 346 170 52 300 40z'/%3E%3Cpath transform='translate(300 300) scale(.28) rotate(30) translate(-300 -300)' d='M300 40c130-12 250 70 262 200s-62 262-200 292S84 492 62 346 170 52 300 40z'/%3E%3Cpath transform='translate(300 300) scale(.16) rotate(36) translate(-300 -300)' d='M300 40c130-12 250 70 262 200s-62 262-200 292S84 492 62 346 170 52 300 40z'/%3E%3C/g%3E%3C/svg%3E");
    background-size:contain;background-repeat:no-repeat;opacity:.055;
}
.gf-device{
    content:"";position:absolute;pointer-events:none;
    background:url("device.svg") no-repeat center/contain;
}
/* footer: curves rising from the bottom-left corner */
.gf-device{z-index:-1;left:0;bottom:0;width:640px;aspect-ratio:556/240;opacity:.16}
/* CTA card: layered waves along the bottom (landscape / water strata), soft tints of the brand greens */
.gf-cta::after{
    content:"";position:absolute;inset-inline:0;bottom:0;height:52%;pointer-events:none;
    background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 160' preserveAspectRatio='none'%3E%3Cpath fill='rgba(163,239,126,.10)' d='M0 86C200 36 360 136 600 86s400-60 600-8v82H0z'/%3E%3Cpath fill='rgba(82,186,99,.16)' d='M0 114C220 68 420 150 640 112s380-44 560-4v52H0z'/%3E%3Cpath fill='rgba(247,248,244,.07)' d='M0 138C240 104 460 160 700 134s350-28 500 0v26H0z'/%3E%3C/svg%3E") no-repeat center bottom/100% 100%;
}
@media (max-width:720px){
    .gf-device{width:420px;opacity:.12}
    .gf-cta::after{height:48%}
}
