/* ==========================================================================
   SiteFooter — 07 §8.6, 05 §5.5
   Closes navigation, reinforces the entity, hosts legal links.
   Does not duplicate the whole Home.
   ========================================================================== */

.site-footer {
  background-color: var(--surface-dark);
  color: var(--text-on-dark);
  padding-block: var(--section-standard) var(--space-6);
}

.site-footer__top {
  display: grid;
  gap: var(--space-8);
}

@media (min-width: 48rem) {
  .site-footer__top {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: var(--space-7);
  }
}

.site-footer__brand {
  max-width: 30rem;
}

.site-footer__tagline {
  margin-top: var(--space-4);
  font-family: var(--font-display);
  font-size: var(--text-md);
  color: var(--text-on-dark);
}

.site-footer__bio {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  line-height: var(--leading-body);
  color: var(--text-on-dark-muted);
  max-width: 42ch;
}

.site-footer__heading {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
  margin-bottom: var(--space-4);
}

.site-footer__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  /* No gap: the links carry their own vertical padding so the whole target
     area is clickable rather than a thin strip of text. */
  gap: 0;
}

/* Same reasoning as `.surface-dark a:not(.btn)` in layout.css: a button placed
   in the footer must keep its own colours instead of inheriting link colour. */
.site-footer a:not(.btn) {
  color: var(--text-on-dark);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

/* Footer links are list navigation, not prose, so the inline-link exception to
   WCAG 2.2 target size does not apply. They get a real target: 03 §18.5 asks
   for 44 px, and inline-block padding delivers it without changing the look. */
.site-footer__list a,
.site-footer__legal a,
.site-footer__pref-button {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch-target);
  padding-block: var(--space-2);
}

.site-footer a:not(.btn):hover {
  color: var(--text-on-dark);
  border-bottom-color: var(--accent-graphic);
}

/* The cookie preferences trigger is a button, not a link: it opens a dialog
   rather than navigating (05 §14.6, 07 §9.7). It must still read as a link. */
.site-footer__pref-button {
  padding: 0;
  font-size: inherit;
  color: var(--text-on-dark);
  text-align: left;
  border-bottom: 1px solid transparent;
}

.site-footer__pref-button:hover {
  border-bottom-color: var(--accent-graphic);
}

.site-footer__contact-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

/* Icon + label only — never the raw email or phone digits as visible text
   (confirmed by Teo 2026-07-28). Shared by the mailto: <a> and the WhatsApp
   <button data-whatsapp-trigger>, so both read identically. */
.site-footer__contact-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-height: var(--touch-target);
  padding-block: var(--space-2);
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  font: inherit;
  /* Buttons do not inherit text colour by default the way an <a> does under
     the sibling rule above — set explicitly so the WhatsApp <button> reads
     identically to the mailto: <a> next to it. */
  color: var(--text-on-dark);
  text-decoration: none;
  text-align: left;
  cursor: pointer;
}

.site-footer__contact-link .icon {
  flex-shrink: 0;
  color: var(--accent-graphic);
}

.site-footer__contact-link:hover {
  border-bottom-color: var(--accent-graphic);
}

.site-footer__location {
  font-size: var(--text-sm);
  color: var(--text-on-dark-muted);
}

.site-footer__bottom {
  margin-top: var(--space-8);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border-on-dark);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-on-dark-muted);
}

.site-footer__legal {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
}

.site-footer__copyright {
  margin: 0;
}
