/* The site footer's styles (templates/_footer.html), on their own so the footer can be used outside
   the site's own pages: the AI calculator takes /partials/footer.html and this file (Sam, 30 Nov
   2026: "footer should be a global element"). Everything is under .footer, and the footer carries
   the few site tokens it uses, the same values as redux.css's :root, so it looks the same on a page
   that has no redux.css. */
.footer { --pink: #9B0167; --pink-hot: #ff24ab; --link-hover: var(--pink-hot);
          --body: "Source Sans 3", "Source Sans Pro", system-ui, sans-serif;
          --gutter: clamp(20px, 4vw, 56px); --section: clamp(64px, 9vw, 128px); --max: 1360px;
          --radius: 2px; --gap-action: 2rem;
          font-family: var(--body); line-height: 1.6; text-align: left; }
.footer .wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.footer .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* The site's own base rules (redux.css body, p, h3, img), repeated for the footer alone, so a page
   with other base styles gives it the same spacing. On the site's pages they change nothing. */
.footer p { margin: 0 0 1.1em; }
.footer h3 { margin: 0; letter-spacing: normal; line-height: 1.25; }
.footer img { max-width: 100%; display: block; }
.footer li a { text-decoration: none; }
.footer ::selection { background: #fff; color: #2B0225; }
/* A shade darker than the call to action above it, with a hairline, so the two read as separate. */
.footer { background: #1C0118; border-top: 1px solid rgba(255, 255, 255, 0.08); color: #E8D9E3; padding: var(--section) 0 2rem; font-size: 1rem; }
.footer a { color: #fff; }
.footer a:hover { color: var(--pink-hot); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }
/* The footer column headings follow the page's last h2, so they are h3: an h4 there skips a level
   and breaks the document outline for anyone navigating by headings. They keep the h4 treatment,
   which is what they should look like, so only the outline changes. */
.footer h3 { font-family: var(--body); font-weight: 700; font-size: 1.1rem; color: #fff; margin-bottom: 1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 0.5rem; }
/* The costs guide and calculator, set apart under the Services list: a guide, not a service. */
.footer .footer__costs { margin-top: 1.6rem; }
.footer__logo svg { height: 34px; width: auto; color: #fff; margin-bottom: 1.2rem; }
.footer address { font-style: normal; }
.footer .social { display: flex; gap: 0.8rem; margin-top: var(--gap-action); }  /* .footer ul zeroes margins; this has to outrank it */
.footer .social a { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; background: rgba(255,255,255,0.08); border-radius: var(--radius); }
.footer .social a:hover { background: var(--pink); color: #fff; }
.footer .social svg { width: 20px; height: 20px; fill: currentColor; }
.footer .badges { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; align-items: center; margin: 3rem 0 2rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.12); }
.footer .badges img, .footer .badges svg { height: 83px; width: auto; }
.footer .badges a { display: inline-flex; }
/* The reviews badge is type, not a logo, so it sets its own size. These rules sit after the two
   above deliberately: .badges svg and .reviews__stars svg carry the same specificity, so source
   order is what stops the stars being stretched to the 83px the picture badges use. */
/* Pushed to the far end of the row: it is a rating rather than a certification, so it reads better
   set apart from the four marks than lined up as a fifth. The auto margin gives way when the row
   wraps, so on a narrow screen it simply takes its own line rather than being stranded. */
.footer .reviews { flex-direction: column; align-items: flex-start; gap: 0.45rem; text-decoration: none; color: inherit; margin-left: auto; }
.footer .reviews__stars svg { height: 18px; width: auto; color: #F5B301; }
.footer .reviews__text { font-size: 0.9rem; color: #B9A5B2; }
.footer .reviews__text b { color: #fff; font-weight: 600; }
.footer .reviews:hover .reviews__text, .footer .reviews:focus-visible .reviews__text { color: #fff; text-decoration: underline; }
.footer .legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: 0.9rem; color: #B9A5B2; }
.footer .legal > div { display: flex; flex-direction: column; gap: 0.4rem; }
.footer .legal ul { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer__link { padding: 0; border: 0; background: none; color: #fff; font: inherit; cursor: pointer; }
.footer__link:hover { color: var(--pink-hot); }
