
footer {
  margin-top: auto;
  background: var(--color-bg-green);
  color: var(--color-text-green);
}

.footer-hero {
  height: 30vh;
  position: relative;
  overflow: hidden;
}

.footer-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.footer-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  padding: 0 var(--page-gutter) 1.2rem;
}

.footer-overlay-inner {
  max-width: var(--layout-max-width);
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.footer-right {
  flex-shrink: 0;
  font-size: .8em;
}

.footer-line {
  flex: 1;
  height: 10px;
  padding-left: 10px;
  padding-right: 10px;
}

.footer-line line {
  stroke: var(--color-highlight);
  stroke-width: 2;
}

.footer-content {
  font-size: .8em;
  padding: 0 var(--page-gutter);
}

.footer-inner {
  max-width: var(--layout-max-width);
  margin: 0 auto;
}

.footer-info {
  padding-top: 1.5em;
  padding-bottom: 1em;
}

.footer-name {
  display: block;
  margin: 0 0 4px;
  max-width: 100px;
  height: auto;
  padding-bottom: .5em;
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-contact a {
  color: inherit;
  text-decoration: none;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Icon base — only apply to items that have an icon */
.footer-contact .info::before,
.footer-contact .phone::before,
.footer-contact .mail::before,
.footer-contact .location::before {
  content: "";
  width: 1em;
  height: 1em;
  display: inline-block;
  flex-shrink: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.footer-contact .info::before {
  content: "✦";
  color: var(--color-highlight);
}

.footer-contact .phone::before {
  background-image: url("/images/footer/call.svg");
}

.footer-contact .mail::before {
  background-image: url("/images/footer/mail.svg");
}

.footer-contact .location::before {
  background-image: url("/images/footer/location.svg");
}

.footer-copy {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75em;
  padding: 12px 0;
}

.footer-copy-text {
  margin: 0;
}

.footer-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
}

.footer-links li + li::before {
  content: " | ";
  padding: 0 0.3em;
  opacity: 0.5;
}

.footer-links a {
  color: inherit;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--color-highlight);
}

@media (max-width: 640px) {
  .footer-copy {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 0.5rem;
  }

  .footer-copy-text {
    text-align: center;
  }
}
