/* Shared QUAD footer (Ana's round-19 component, quad-uk-footer.zip). Load on EVERY page, after the page CSS.
   Markup source: the <footer> in public/laser.html, copied to generated pages by tools/build-products.mjs. */
/* Scoped reset so it works on any page. :where() keeps it at zero
   specificity, so the component rules below always win over it. */
:where(.footer) :where(h3, p, ul) { margin: 0; }
:where(.footer) :where(ul) { padding: 0; list-style: none; }
:where(.footer) :where(a) { color: inherit; text-decoration: none; }
:where(.footer) :where(img, svg) { display: block; max-width: 100%; height: auto; }
:where(.footer) :where(input, button) { font: inherit; color: inherit; }
:where(.footer) :where(button) { background: none; border: 0; padding: 0; cursor: pointer; }
.footer .container { width: 100%; max-width: var(--container-max); margin-inline: auto; padding-inline: var(--margin); }
.footer .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Layout. Top padding is the home value; the Enquire page uses
   clamp(4rem, 8vw, 9rem) instead (.page-enquire .footer). */
.footer { position: relative; z-index: 3; background: #000; color: #fff; padding: clamp(6rem, 14vw, 16rem) 0 clamp(2rem, 4vw, 4rem); border-top: 1px solid rgb(255 255 255 / 0.04); }
.footer__top { display: grid; grid-template-columns: minmax(0, 26rem) 1fr; gap: var(--space-12); padding-left: clamp(0rem, 3.5vw, 4.2rem); }
.footer__logo { width: clamp(9rem, 12.45vw, 15rem); margin-bottom: var(--space-8); }
.footer__news-title { font-weight: var(--weight-medium); margin-bottom: var(--space-5); }
.footer__legal { margin-top: var(--space-5); color: var(--color-gray-400); font-size: var(--fs-ui); }
.footer__cols { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: var(--space-8); padding-top: clamp(0rem, 4vw, 5rem); }
.footer__cols h3 { font-size: var(--fs-ui); font-weight: var(--weight-regular); color: #fff; margin-bottom: var(--space-2); }
.footer__cols a { white-space: nowrap; color: var(--color-gray-400); line-height: var(--lh-list); transition: color var(--dur-fast); }
.footer__cols a:hover { color: #fff; }
.footer__social { display: flex; gap: var(--space-4); }
.footer__social a { display: grid; place-items: center; width: 1.5rem; height: 2rem; opacity: 0.9; }
.footer__contact-title { margin-top: var(--space-6); }
.footer__contact li { display: flex; align-items: center; gap: var(--space-2); }
.footer__bar { display: flex; justify-content: space-between; gap: var(--space-4); margin-top: clamp(4rem, 9vw, 10rem); padding-top: var(--space-5); border-top: 1px solid var(--border-subtle); font-size: var(--fs-micro); color: var(--color-gray-400); }

/* Newsletter input: pill field with a white round submit button */
.field {
  display: flex; align-items: center; gap: var(--space-2);
  height: 3.25rem; padding: 0 0.4rem 0 1.25rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-gray-700);
  transition: border-color var(--dur-base);
}
.field:focus-within { border-color: var(--color-gray-400); }
.field input { flex: 1; min-width: 0; height: 100%; background: transparent; border: 0; outline: 0; font-size: var(--fs-ui); color: #fff; }
.field input::placeholder { color: var(--color-gray-400); }
.field button { width: 2.375rem; height: 2.375rem; border-radius: 50%; background: #fff; color: #000; display: grid; place-items: center; transition: transform var(--dur-base) var(--ease-out); }
.field button:hover { transform: translateX(2px); }
.field button svg { width: 1.125rem; height: 1.125rem; } /* arrow ~10.5 px wide */

/* Tablet: newsletter above the columns, columns in two */
@media (max-width: 1024px) {
  .footer__top { grid-template-columns: 1fr; padding-left: 0; }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: start; column-gap: var(--space-8); }
}

/* Phone: the email can wrap, the legal bar stacks */
@media (max-width: 640px) {
  .footer__cols a[href^="mailto:"] { white-space: normal; }
  .footer__bar { flex-direction: column; }
}
