/* Keep the wordmark and navigation aligned across all page headers. */
header.site-header {
  align-items: center;
  min-height: 0;
  padding: 12px 4.5%;
  gap: 16px;
}

.site-header > a:first-child {
  display: block;
  flex: 0 0 auto;
}

.site-header img.brand {
  display: block;
  width: clamp(155px, 13vw, 235px);
  height: auto;
  max-height: none;
  filter: brightness(0) saturate(100%) invert(24%) sepia(20%) saturate(835%) hue-rotate(354deg);
}

@media (max-width: 1024px) {
  header.site-header {
    position: relative;
    min-height: 72px;
    padding: 10px 5%;
    box-sizing: border-box;
  }

  .site-header img.brand {
    width: clamp(94px, 17vw, 158px);
  }

  .site-header .nav-menu nav {
    top: 100%;
  }
}

@media (max-width: 640px) {
  header.site-header {
    min-height: 64px;
  }

  .site-header img.brand {
    width: clamp(84px, 26vw, 116px);
  }

  .site-header .nav-menu summary {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
}

footer .footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
  min-height: 0;
  aspect-ratio: auto;
  padding: clamp(28px, 4vw, 64px) 6%;
}
footer .footer-marble {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  z-index: -1;
}
footer .footer-brand img {
  display: block;
  width: min(100%, clamp(150px, 13vw, 230px));
  height: auto;
  max-height: none;
  filter: brightness(0) saturate(100%) invert(90%) sepia(20%) saturate(425%) hue-rotate(345deg);
}
footer .footer-contact { min-width: 0; overflow-wrap: anywhere; }
footer .contact-row { align-items: flex-start; }
footer .contact-row > :first-child { flex: 0 0 16px; }
footer .footer-actions { min-width: 0; }
footer .footer-actions .cta { min-width: 0; max-width: 100%; margin: 0; }
footer .copyright { gap: 12px 24px; flex-wrap: wrap; }
footer .copyright nav { width: auto; flex-wrap: wrap; justify-content: flex-start; gap: 8px 20px; }

@media (max-width: 1024px) {
  footer .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  footer .footer-actions { grid-column: 1 / -1; justify-self: start; text-align: left; }
  footer .socials { justify-content: flex-start; }
}
@media (max-width: 640px) {
  footer .footer-main { grid-template-columns: minmax(0, 1fr); }
  footer .footer-contact { border-left: 0; border-top: 1px solid #c9bda9; padding: 18px 0 0; }
}
