/* ================= Shared site footer =================
   One footer for every page, copied from the rates calculator (/calcx/).
   Load this after the page's own styles and /assets/site-nav.css so it wins
   over each page's older footer rules.

   Type sizes (same on desktop and mobile):
     Navigation links ........ 14px
     Section headings ........ 12px
     Brand description ....... 15px
     Copyright and ownership . 13px
   On mobile, every tap target (links, section toggles, social icons) is at least 44px tall. */

.site-footer,.site-footer *{box-sizing:border-box;}
.site-footer{font-family:inherit;}
.site-footer p,.site-footer h2{margin:0;}
.site-footer a{text-decoration:none;}
.site-footer .visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;}

/* ---------- Footer ---------- */
.site-footer{
  --footer-bg:#151922;--footer-text:rgba(255,255,255,.92);--footer-soft:rgba(255,255,255,.82);--footer-line:rgba(255,255,255,.2);
  background:var(--footer-bg);color:var(--footer-text);padding:72px 0 36px;
}
.site-footer .container{max-width:var(--container,1200px);margin:0 auto;padding-left:var(--gutter,clamp(20px,5vw,48px));padding-right:var(--gutter,clamp(20px,5vw,48px));}
.site-footer ul{list-style:none;margin:0;padding:0;}
.site-footer .footer-top{display:grid;grid-template-columns:repeat(2,1fr);gap:40px 32px;padding-bottom:20px;border-bottom:1px solid var(--footer-line);}
.site-footer .footer-brand{grid-column:1 / -1;}
@media (min-width:980px){
  .site-footer .footer-top{grid-template-columns:1.55fr .9fr 1.15fr .9fr 1fr;}
  .site-footer .footer-brand{grid-column:auto;}
}
.site-footer .footer-brand img{display:block;height:48px;width:auto;margin:0 0 24px;}
.site-footer .footer-brand p{max-width:38ch;margin:0;color:var(--footer-text);font-size:15px;line-height:1.5;}
.site-footer .footer-heading{font-size:12px;font-weight:700;line-height:1.2;text-transform:uppercase;letter-spacing:.16em;color:#fff;margin:0 0 18px;}
.site-footer .footer-toggle{
  all:unset;display:flex;align-items:center;justify-content:space-between;width:100%;
  font:inherit;letter-spacing:inherit;text-transform:inherit;color:inherit;pointer-events:none;
}
.site-footer .footer-toggle-icon{display:none;}
.site-footer .footer-links li{margin-bottom:8px;}
.site-footer .footer-links a{text-decoration:none;color:var(--footer-soft);font-size:14px;line-height:1.5;transition:color .2s var(--ease,cubic-bezier(.22,.61,.36,1));}
.site-footer .footer-links a:hover,.site-footer .footer-links a[aria-current="page"]{color:#fff;}

.site-footer .footer-extra{display:flex;flex-wrap:wrap;align-items:stretch;gap:32px 0;padding:20px 0;border-bottom:1px solid var(--footer-line);}
.site-footer .footer-follow{padding-right:40px;margin-right:40px;border-right:1px solid var(--footer-line);}
.site-footer .footer-pay{flex:1 1 0;min-width:0;}
.site-footer .footer-social{display:flex;gap:12px;flex-wrap:wrap;}
.site-footer .footer-social a{
  width:44px;height:44px;border-radius:10px;background:rgba(255,255,255,.1);display:flex;align-items:center;
  justify-content:center;text-decoration:none;transition:background .2s var(--ease,cubic-bezier(.22,.61,.36,1));
}
.site-footer .footer-social a:hover{background:rgba(255,255,255,.2);}
.site-footer .footer-social svg{width:20px;height:20px;color:#fff;}
.site-footer .pay-list{display:flex;flex-wrap:wrap;gap:10px;}
.site-footer .pay-list li{
  display:flex;align-items:center;justify-content:center;height:44px;padding:0 14px;
  background:#fff;border-radius:6px;box-shadow:0 1px 2px rgba(0,0,0,.2);
}
.site-footer .pay-list img{display:block;height:24px;width:auto;max-width:110px;object-fit:contain;}
.site-footer .pay-list img.pay-tall{height:32px;}
.site-footer .footer-bottom{display:flex;flex-wrap:wrap;gap:12px 24px;justify-content:space-between;align-items:center;padding-top:28px;font-size:13px;line-height:1.3;color:var(--footer-soft);}

/* Mobile: link columns become an accordion, payment logos a 2-column grid */
@media (max-width:767px){
  .site-footer{padding:48px 0 32px;}
  .site-footer .footer-top{display:block;padding-bottom:0;border-bottom:0;}
  .site-footer .footer-brand{margin-bottom:28px;}
  .site-footer .footer-brand p{max-width:none;font-size:15px;line-height:1.5;}
  .site-footer .footer-col{border-top:1px solid var(--footer-line);}
  .site-footer .footer-col:last-child{border-bottom:1px solid var(--footer-line);}
  .site-footer .footer-col .footer-heading{margin:0;font-size:12px;}
  .site-footer.footer-js .footer-toggle{pointer-events:auto;cursor:pointer;min-height:44px;padding:16px 0;box-sizing:border-box;}
  .site-footer.footer-js .footer-toggle:focus-visible{outline:2px solid var(--orange,#FF853D);outline-offset:2px;}
  .site-footer.footer-js .footer-toggle-icon{display:block;position:relative;width:18px;height:18px;flex:none;}
  .site-footer .footer-toggle-icon::before,.site-footer .footer-toggle-icon::after{
    content:"";position:absolute;left:0;top:8px;width:18px;height:2px;border-radius:1px;background:#fff;transition:transform .2s var(--ease,cubic-bezier(.22,.61,.36,1));
  }
  .site-footer .footer-toggle-icon::after{transform:rotate(90deg);}
  .site-footer .footer-toggle[aria-expanded="true"] .footer-toggle-icon::after{transform:rotate(0deg);}
  .site-footer:not(.footer-js) .footer-col .footer-heading{padding:22px 0 14px;}
  .site-footer .footer-col .footer-links{padding-bottom:10px;}
  .site-footer.footer-js .footer-col .footer-links:not(.is-open){display:none;}
  .site-footer .footer-links li{margin-bottom:0;}
  .site-footer .footer-links a{display:flex;align-items:center;min-height:44px;}

  .site-footer .footer-extra{flex-direction:column;gap:36px;padding:36px 0;}
  .site-footer .footer-follow{padding-right:0;margin-right:0;border-right:0;}
  .site-footer .pay-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px;max-width:260px;}
  .site-footer .pay-list li{height:44px;padding:0 10px;}
  .site-footer .footer-bottom{flex-direction:column;align-items:flex-start;gap:4px;}
}
