/* =========================================================
   MYTHICAL MIND — HOMEPAGE FOOTER
   Compact archive footer inspired by the original mockup.
   ========================================================= */

.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: 18px;
  border-top: 1px solid rgba(194, 159, 108, 0.28);
  background:
    linear-gradient(180deg, rgba(12, 10, 8, 0.98), rgba(4, 4, 4, 1)),
    #050504;
  box-shadow: inset 0 1px 0 rgba(232, 201, 153, 0.04);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.25;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.012) 0 1px, transparent 1px 4px),
    linear-gradient(90deg, transparent, rgba(194,159,108,0.025), transparent);
}

.site-footer__inner {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 48px), var(--page-width));
  min-height: 154px;
  margin: 0 auto;
  padding: 22px 0 20px;
  display: grid;
  grid-template-columns: minmax(245px, 1.15fr) minmax(560px, 2.2fr) minmax(210px, 0.85fr);
  align-items: center;
  gap: 34px;
}

.site-footer__brand-block {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "brand tagline"
    "brand socials";
  align-items: center;
  column-gap: 16px;
  row-gap: 8px;
  min-width: 0;
}

.site-footer__brand {
  grid-area: brand;
  display: block;
}

.site-footer__brand img {
  display: block;
  width: 185px;
  height: 76px;
  object-fit: contain;
  object-position: left center;
  filter: sepia(0.12) brightness(0.86) contrast(1.06);
}

.site-footer__tagline {
  grid-area: tagline;
  margin: 0;
  align-self: end;
  color: #9c8c74;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-footer__socials {
  grid-area: socials;
  display: flex;
  align-items: center;
  gap: 7px;
  align-self: start;
}

.site-footer__socials a {
  width: 25px;
  height: 25px;
  display: inline-grid;
  place-items: center;
  color: #9b907e;
  border: 1px solid rgba(194, 159, 108, 0.18);
  background: rgba(255,255,255,0.015);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
}

.site-footer__socials a:hover,
.site-footer__socials a:focus-visible {
  color: #e5d6bc;
  border-color: rgba(168, 55, 47, 0.55);
  background: rgba(127,31,29,0.12);
  outline: none;
}

.site-footer__columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.site-footer__column {
  display: grid;
  align-content: start;
  gap: 5px;
}

.site-footer__column h2 {
  margin: 0 0 3px;
  color: #bca681;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.70rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.site-footer__column a {
  width: fit-content;
  color: #8f8474;
  font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.35;
  transition: color 140ms ease;
}

.site-footer__column a:hover,
.site-footer__column a:focus-visible {
  color: #d8c8ad;
  outline: none;
}

.site-footer__legal {
  position: relative;
  min-height: 94px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  text-align: right;
}

.site-footer__legal img {
  position: absolute;
  right: 2px;
  top: -12px;
  width: 118px;
  height: 118px;
  object-fit: contain;
  opacity: 0.08;
  filter: sepia(0.5) brightness(0.7);
  pointer-events: none;
}

.site-footer__legal p {
  position: relative;
  z-index: 1;
  margin: 0 0 4px;
  color: #776e61;
  font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.5;
}

@media (max-width: 1220px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-block: 28px;
  }

  .site-footer__brand-block {
    grid-template-columns: auto 1fr;
    max-width: 520px;
  }

  .site-footer__columns {
    width: 100%;
  }

  .site-footer__legal {
    min-height: 44px;
    justify-content: flex-start;
    text-align: left;
  }

  .site-footer__legal img {
    left: auto;
    right: 0;
    top: -28px;
  }
}

@media (max-width: 720px) {
  .site-footer__inner {
    width: min(calc(100% - 28px), var(--page-width));
    padding-block: 24px;
  }

  .site-footer__brand-block {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "tagline"
      "socials";
    row-gap: 8px;
  }

  .site-footer__brand img {
    width: 168px;
    height: 68px;
  }

  .site-footer__tagline {
    white-space: normal;
  }

  .site-footer__columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 28px;
  }

  .site-footer__column h2 {
    font-size: 0.76rem;
  }

  .site-footer__column a {
    font-size: 0.82rem;
  }
}

@media (max-width: 430px) {
  .site-footer__columns {
    grid-template-columns: 1fr;
  }
}
