.brand img { filter: none; }

.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 0;
  padding: clamp(5.5rem, 9vw, 8rem) clamp(1.25rem, 4vw, 4rem) 2rem;
  overflow: hidden;
  clip-path: polygon(0 .65rem, 4% .08rem, 10% .5rem, 17% 0, 25% .55rem, 34% .1rem, 43% .72rem, 52% .05rem, 61% .48rem, 70% .12rem, 79% .68rem, 89% .08rem, 96% .48rem, 100% .16rem, 100% 100%, 0 100%);
  background-color: #18110c;
  background-image: linear-gradient(rgb(24 17 12 / 92%), rgb(24 17 12 / 92%)), url("assets/ui/parchment-texture.webp");
  background-position: center, center top;
  background-size: auto, 38rem auto;
  background-repeat: repeat;
  color: #fff8ef;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 1.25rem;
  right: clamp(1.25rem, 4vw, 4rem);
  left: clamp(1.25rem, 4vw, 4rem);
  height: 1px;
  background: linear-gradient(90deg, transparent, #9b3527 8%, #c76443 50%, #9b3527 92%, transparent);
  opacity: .82;
}

.site-footer a { color: inherit; }

.site-footer__main,
.site-footer__properties,
.site-footer__base {
  width: min(100%, 80rem);
  margin-inline: auto;
}

.site-footer__properties {
  display: grid;
  grid-template-columns: minmax(11rem, .72fr) minmax(0, 2.28fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  margin-bottom: clamp(4rem, 7vw, 6.5rem);
  padding-bottom: clamp(3rem, 5vw, 4.5rem);
  border-bottom: 1px solid rgb(255 248 239 / 17%);
}

.site-footer__properties-intro h2 {
  max-width: 13rem;
  margin: 0;
  color: #fff8ef;
  font: 400 clamp(2rem, 3vw, 3.25rem)/.98 "Playfair Display", Georgia, serif;
  letter-spacing: -.035em;
}

.site-footer__properties-intro .site-footer__heading { margin-bottom: .72rem; }

.site-footer__property-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  clip-path: polygon(0 3%, 8% 0, 19% 2%, 31% .5%, 44% 2.5%, 58% 0, 72% 2%, 86% .5%, 100% 3%, 99% 96%, 88% 99%, 75% 97%, 61% 100%, 47% 97.5%, 33% 99.5%, 18% 97%, 0 100%);
  background: #fff;
  box-shadow: 0 12px 28px rgb(0 0 0 / 22%);
}

.site-footer__property {
  display: grid;
  min-width: 0;
  min-height: 9rem;
  place-items: center;
  padding: 1rem;
  color: #211a13;
  text-align: center;
  text-decoration: none;
  transition: background-color 180ms ease;
}

.site-footer__property + .site-footer__property { border-left: 1px solid rgb(33 26 19 / 16%); }
.site-footer__property:hover { background: #f3e7d5; }
.site-footer__property:focus-visible { outline: 3px solid #8c281b; outline-offset: -5px; }

.site-footer__property img {
  width: 100%;
  height: 6.7rem;
  max-height: 6.7rem;
  object-fit: contain;
  filter: none;
}

.site-footer__main {
  display: grid;
  grid-template-columns: minmax(13rem, 1.3fr) minmax(9rem, .7fr) minmax(14rem, 1fr) minmax(16rem, 1.2fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

.site-footer__brand { max-width: 22rem; }
.site-footer__brand > a:first-child { display: block; width: min(12rem, 72%); }
.site-footer__madisa-logo {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  filter: none;
}

.site-footer__brand p {
  max-width: 29rem;
  margin: 1.45rem 0 1.35rem;
  color: rgb(255 248 239 / 72%);
  font: 400 .93rem/1.65 "DM Sans", Arial, sans-serif;
}

.site-footer__booking {
  display: inline-flex;
  min-height: 2.9rem;
  align-items: center;
  padding: .75rem 1rem;
  background: #8c281b;
  text-decoration: none;
  text-transform: uppercase;
  font: 500 .68rem/1.3 "DM Mono", "Courier New", monospace;
  letter-spacing: .1em;
}

.site-footer__social {
  display: flex;
  gap: .7rem;
  margin-top: 1rem;
}

.site-footer__social a {
  display: inline-grid;
  width: 2.65rem;
  height: 2.65rem;
  place-items: center;
  border: 1px solid rgb(255 248 239 / 28%);
  color: #fff8ef;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.site-footer__social a:hover { border-color: #efc6ad; background: #8c281b; }
.site-footer__social a:focus-visible { outline: 2px solid #efc6ad; outline-offset: 3px; }
.site-footer__social svg { width: 1.2rem; height: 1.2rem; fill: currentColor; }

.site-footer__heading {
  margin: 0 0 1.2rem;
  color: #efc6ad;
  text-transform: uppercase;
  font: 500 .68rem/1.4 "DM Mono", "Courier New", monospace;
  letter-spacing: .14em;
}

.site-footer__nav ul {
  display: grid;
  gap: .62rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__nav a,
.site-footer__contact a,
.site-footer__base a {
  color: rgb(255 248 239 / 84%);
  text-decoration-color: rgb(239 198 173 / 38%);
  text-underline-offset: .24em;
}

.site-footer__nav a:hover,
.site-footer__contact a:hover,
.site-footer__base a:hover { color: #fff8ef; text-decoration-color: #efc6ad; }

.site-footer__contact address {
  display: grid;
  gap: .62rem;
  font: normal 400 .88rem/1.5 "DM Sans", Arial, sans-serif;
}

.site-footer__contact address span {
  margin-top: .45rem;
  color: rgb(255 248 239 / 50%);
  text-transform: uppercase;
  font: 500 .62rem/1.4 "DM Mono", "Courier New", monospace;
  letter-spacing: .1em;
}

.site-footer__partner-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
}

.site-footer__partner {
  display: grid;
  min-height: 9.5rem;
  grid-template-rows: 6.4rem auto;
  gap: .65rem;
  align-items: center;
  padding: .85rem;
  clip-path: polygon(1% 3%, 28% 0, 51% 2%, 76% .5%, 99% 3%, 98% 96%, 70% 99%, 43% 97%, 17% 100%, 0 96%);
  background: #f7f1e6;
  color: #211a13;
  text-align: center;
  text-decoration: none;
}

.site-footer__partner img {
  width: 100%;
  height: 6.2rem;
  max-height: 6.2rem;
  object-fit: contain;
  filter: none;
}

.site-footer__partner span {
  color: #6b2418;
  text-transform: uppercase;
  font: 500 .58rem/1.35 "DM Mono", "Courier New", monospace;
  letter-spacing: .08em;
}

.site-footer__partner--booknamibia {
  background: #303030;
  color: #fff8ef;
}

.site-footer__partner--booknamibia img {
  width: 4.5rem;
  height: 4.5rem;
  max-height: 4.5rem;
  justify-self: center;
  object-fit: contain;
}

.site-footer__partner--booknamibia span { color: #efc6ad; }

.site-footer__base {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.25rem 2rem;
  align-items: center;
  margin-top: clamp(3.5rem, 6vw, 5rem);
  padding-top: 1.35rem;
  border-top: 1px solid rgb(255 248 239 / 17%);
}

.site-footer__base p {
  margin: 0;
  color: rgb(255 248 239 / 56%);
  font: 400 .69rem/1.5 "DM Mono", "Courier New", monospace;
  letter-spacing: .02em;
}

.site-footer__base p:last-child { justify-self: end; text-align: right; }

.scroll-top {
  position: fixed;
  z-index: 30;
  right: clamp(1rem, 2.6vw, 2.5rem);
  bottom: clamp(1rem, 2.6vw, 2.5rem);
  min-width: 4.1rem;
  min-height: 3rem;
  padding: .75rem 1rem;
  border: 1px solid rgb(255 248 239 / 24%);
  clip-path: polygon(2% 7%, 25% 2%, 52% 5%, 77% 0, 98% 6%, 96% 94%, 73% 100%, 46% 96%, 20% 100%, 0 92%);
  background: #8c281b url("assets/ui/oxide-paper-sheet.webp") center / 185% 185% no-repeat;
  color: #fff8ef;
  box-shadow: 0 8px 22px rgb(24 17 12 / 32%);
  opacity: 0;
  visibility: hidden;
  transform: translateY(.8rem);
  transition: opacity .24s ease, transform .24s ease, visibility .24s;
  text-transform: uppercase;
  font: 500 .68rem/1 "DM Mono", "Courier New", monospace;
  letter-spacing: .12em;
  cursor: pointer;
  pointer-events: none;
}

.scroll-top[data-visible] {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

.scroll-top:hover { background-color: #6b2418; }
.scroll-top:focus-visible { outline: 2px solid #fff8ef; outline-offset: 4px; }

@media (max-width: 1080px) {
  .site-footer__main { grid-template-columns: 1.2fr .8fr 1fr; }
  .site-footer__partners { grid-column: 1 / -1; }
  .site-footer__partner-grid { width: min(100%, 44rem); }
}

@media (max-width: 900px) {
  .site-footer__properties { grid-template-columns: 1fr; }
  .site-footer__properties-intro h2 { max-width: none; }
}

@media (max-width: 720px) {
  .site-footer { padding-top: 5rem; }
  .site-footer__property-grid { grid-template-columns: 1fr; }
  .site-footer__property {
    min-height: 7rem;
    padding: .85rem 1.25rem;
  }
  .site-footer__property + .site-footer__property {
    border-top: 1px solid rgb(33 26 19 / 16%);
    border-left: 0;
  }
  .site-footer__property img { height: 5rem; max-height: 5rem; }
  .site-footer__main { grid-template-columns: 1fr 1fr; }
  .site-footer__brand,
  .site-footer__partners { grid-column: 1 / -1; }
  .site-footer__brand { max-width: 30rem; }
  .site-footer__brand > a:first-child { width: 10rem; }
  .site-footer__base { grid-template-columns: 1fr; }
  .site-footer__base p:last-child { justify-self: start; text-align: left; }
}

@media (max-width: 460px) {
  .site-footer__main { grid-template-columns: 1fr; }
  .site-footer__brand,
  .site-footer__partners { grid-column: auto; }
  .site-footer__partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__partner { min-height: 8.7rem; padding: .65rem; }
  .site-footer__partner img { height: 5.5rem; max-height: 5.5rem; }
}

@media (forced-colors: active) {
  .site-footer { clip-path: none; background: Canvas; color: CanvasText; border-top: 1px solid CanvasText; }
  .site-footer::before { display: none; }
  .site-footer__property-grid { clip-path: none; background: Canvas; border: 1px solid CanvasText; }
  .site-footer__property { color: CanvasText; }
  .site-footer__partner { clip-path: none; background: Canvas; color: CanvasText; border: 1px solid CanvasText; }
  .scroll-top { clip-path: none; background: ButtonFace; color: ButtonText; border: 1px solid ButtonText; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-top { transition: none; }
}
