/*
 * Site footer.
 *
 * Layout and typography are expressed with Tailwind utilities in
 * `templates/components/footer.html` so the markup mirrors the design. This
 * file only restores element defaults that the global base/forms layers would
 * otherwise override, and exposes the footer imagery sizing through tokens.
 */

.site-footer {
  background-color: var(--color-footer-bg);
  color: var(--color-primary);
}

.site-footer .footer-newsletter {
  background-color: var(--color-footer-newsletter-bg);
}

/*
 * The status paragraph is the htmx swap target for the newsletter response.
 * While it is empty it must not behave as a flex item, otherwise the form's
 * `gap-3` adds a 12px row that the design does not have. `display: contents`
 * removes the empty box but keeps the live region mounted, so htmx can still
 * swap the message in and the paragraph takes normal space once it has text.
 */
.site-footer #newsletter-status:empty {
  display: contents;
}

/*
 * Footer imagery uses the design's exact pixel boxes instead of the spacing
 * scale: the brand logo is 30x182 and the repeated brand strip is 24px tall
 * (40px from the `lg` breakpoint). The logo SVG is exported with
 * `preserveAspectRatio="none"`, so the artwork fills each box edge to edge and
 * the rendered ink matches the design boxes even though the Girdėk wordmark is
 * drawn at a different aspect ratio than the design's placeholder brand.
 */
.site-footer .footer-logo {
  display: block;
  height: 30px;
  max-width: none;
  width: 182px;
}

.site-footer .footer-chevron {
  display: block;
  height: var(--space-6);
  max-width: none;
  width: var(--space-6);
}

/*
 * The strip width follows the design's rendered boxes: the design brand art is
 * 6.05:1, so 24px tall marks render 145.234px wide and 40px tall marks render
 * 242.045px wide. Fixing the width keeps the marquee rhythm identical even
 * though the Girdėk wordmark art has a narrower aspect ratio.
 */
.site-footer .footer-mark {
  display: block;
  height: 24px;
  max-width: none;
  width: 145.234px;
}

@media (min-width: 1024px) {
  .site-footer .footer-mark {
    height: 40px;
    width: 242.045px;
  }
}

.site-footer .footer-label-muted {
  color: color-mix(in srgb, var(--color-primary) 60%, transparent);
}

.site-footer .footer-legal-copy {
  color: color-mix(in srgb, var(--color-primary) 70%, transparent);
}

.site-footer .footer-legal-copy p {
  line-height: 1.4;
}

.site-footer .footer-separator {
  border-color: color-mix(in srgb, var(--color-primary) 24%, transparent);
}

.site-footer .footer-newsletter__input {
  appearance: auto;
  background-color: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: var(--color-primary);
  font-size: var(--font-size-body-sm);
  letter-spacing: -0.25px;
  line-height: var(--space-6);
  padding: 0;
}

.site-footer .footer-newsletter__input::placeholder {
  color: var(--color-primary);
  opacity: 1;
}

.site-footer .footer-newsletter__checkbox {
  accent-color: var(--color-primary);
  appearance: auto;
  background-color: transparent;
  background-image: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  height: var(--space-4);
  margin-top: calc(var(--space-1) / 2);
  padding: 0;
  width: var(--space-4);
}

.site-footer a:focus-visible,
.site-footer button:focus-visible,
.site-footer input:focus-visible {
  outline: var(--border-width-strong) solid var(--color-primary);
  outline-offset: var(--space-1);
}

