.site-footer,
.site-footer p,
.site-footer a,
.site-footer label,
.site-footer input,
.site-footer textarea,
.site-footer select,
.site-footer button {
  font-family: var(--font-sans);
}

.site-footer {
  background-color: var(--slate);
  color: #fff;
}

/* Top row: info left + form right */
.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  padding: 3rem 20px;
  box-sizing: border-box;
}

.site-footer__top>.region {
  flex: 0 0 50%;
  width: 50%;
  max-width: 50%;
  padding: 1rem 20px;
  box-sizing: border-box;
  margin: 0;
  border: none;
}

.site-footer__top .block {
  border: none;
  box-shadow: none;
}

/* Footer info block */
.footer-info__brand {
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
}

.footer-info__text {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  max-width: 80px;
  flex-shrink: 0;
}

.footer-tagline {
  font-size: 1rem;
  line-height: 1.6;
  color: #fff;
  margin: 0 0 2.5rem !important;
  max-width: 400px;
}

.footer-contact-heading {
  font-family: var(--font-sans);
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--tgold);
  margin-bottom: 1rem;
}

.footer-address {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: #fff;
}

.footer-email,
.footer-phone {
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
  margin-top: 0;
  color: #fff;
}

.footer-email a,
.footer-address a,
.footer-phone a {
  color: #fff;
  text-decoration: none;
}

/* Contact form in footer */
#footer-contact-form .form-row-2col {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

#footer-contact-form .form-row-2col .form-item {
  flex: 1;
}

#footer-contact-form input,
#footer-contact-form textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  outline: none;
}

#footer-contact-form input::placeholder,
#footer-contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

#footer-contact-form .form-item {
  margin-bottom: 1.5rem;
}

#footer-contact-form textarea {
  resize: none;
}

#footer-contact-form .form-actions {
  margin-top: 1.5rem;
}

/* Bottom bar */
.site-footer__bottom {
  border-top: none;
  padding: 0;
  margin: 0 20px;
}

.site-footer__bottom::before {
  content: '';
  display: block;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-bottom: 1.5rem;
}

.site-footer__bottom .region {
  padding-left: 0;
  padding-right: 0;
  margin-left: 20px;
  margin-right: 20px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom__left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-bottom__right {
  text-align: right;
}

.footer-login-btn,
.site-footer .content a.footer-login-btn {
  display: inline-block;
  text-decoration: none;
  text-align: center;
  font-size: 1rem;
  color: #fff !important;
  opacity: 1 !important;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.footer-login-btn:hover {
  text-decoration: none;
}

.footer-login-btn:hover,
a.footer-login-btn:hover {
  background-color: var(--tgold-hover);
  border-color: var(--tgold-hover);
  color: var(--slate) !important;
}

.footer-bottom__tagline {
  font-family: var(--font-serif) !important;
  font-size: 1rem;
  font-style: normal;
  color: #fff;
  margin-top: 0;
}

.footer-copyright,
.footer-links {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

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

@media (max-width: 768px) {
  .footer-info__brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .site-footer__top > .region {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .footer-bottom__right {
    text-align: left;
  }
}