/**
 * Site footer — matched to Figma Footer (351:3612).
 *
 * @package Atsko
 */

.site-footer {
  color: var(--atsko-white);
  font-family: var(--atsko-font-sans);
}

.site-footer__inner {
  width: min(100% - 4rem, var(--atsko-container));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.site-footer__top {
  position: relative;
  overflow: hidden;
  background: url("../images/footer/top-footer.jpg") no-repeat top right;
  padding: 2.5rem 0;
  background-size: cover;
}

.site-footer__mountains {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  height: auto;
  pointer-events: none;
  z-index: 0;
}

.site-footer__top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-shrink: 0;
}

.site-footer__brand-row {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.site-footer__logo {
  display: block;
  width: 108px;
  height: 56px;
  flex-shrink: 0;
}

.site-footer__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-footer__tagline {
  margin: 0;
  font-size: 0.866rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--atsko-white);
  white-space: nowrap;
}

.site-footer__social {
  display: flex;
  align-items: flex-start;
  gap: 1.3rem;
  padding-left: 8.5rem;
}

.site-footer__social-link {
  display: inline-flex;
  width: 24px;
  height: 24px;
  opacity: 0.95;
  transition: opacity 0.15s ease;
}

.site-footer__social-link:hover {
  opacity: 1;
}

.site-footer__social-link img {
  width: 24px;
  height: 24px;
}

.site-footer__newsletter {
  display: flex;
  flex-direction: column;
  gap: 1.55rem;
  width: min(100%, 653px);
}

.site-footer__newsletter-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  color: var(--atsko-white);
}

.site-footer__newsletter-title {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  max-width: 518px;
  color: var(--atsko-white);
}

.site-footer__newsletter-text {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.5;
}

.site-footer__newsletter-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 48px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--atsko-white);
  border-radius: 4px;
  background: var(--atsko-white);
  position: relative;
  flex-wrap: wrap;
}

.site-footer__newsletter-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-family: var(--atsko-font-sans);
  font-size: 1rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--atsko-charcoal);
  outline: none;
}

.site-footer__newsletter-input::placeholder {
  color: var(--atsko-gray-400);
}

.site-footer__newsletter-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  flex-shrink: 0;
}

.site-footer__newsletter-submit img {
  width: 24px;
  height: 24px;
}

.site-footer__newsletter-message {
  flex: 1 0 100%;
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  font-style: normal;
  line-height: 1.4;
  color: var(--atsko-charcoal);
}

.site-footer__newsletter-message.is-error {
  color: var(--atsko-orange);
}

.site-footer__newsletter-message.is-success {
  color: var(--atsko-blue);
}

.site-footer__newsletter-message[hidden] {
  display: none;
}

.site-footer__middle {
  background: linear-gradient(180deg, #0069b9 0%, #001299 100%);
  padding: 2.5rem 0;
  min-height: 260px;
  display: flex;
  align-items: center;
}

.site-footer__middle-inner {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  width: min(100% - 4rem, 1002px);
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}

.site-footer__heading {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--atsko-white);
  opacity: 0.6;
  line-height: 1.5;
}

.site-footer__address {
  font-style: normal;
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--atsko-white);
}

.site-footer__address a {
  color: inherit;
}

.site-footer__contact-link {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--atsko-white);
}

.site-footer__contact-link:hover {
  color: var(--atsko-link-light);
  text-decoration: underline;
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.site-footer__links a {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--atsko-white);
}

.site-footer__links a:hover {
  color: var(--atsko-link-light);
  text-decoration: underline;
}

.site-footer__bottom {
  background: var(--atsko-blue-deep);
  padding: 0.75rem 0;
}

.site-footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-footer__copyright {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--atsko-white);
}

.site-footer__accessibility {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--atsko-white);
  white-space: nowrap;
}

.site-footer__accessibility:hover {
  color: var(--atsko-link-light);
  text-decoration: underline;
}

@media (max-width: 1000px) {
  .site-footer__top-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer__social {
    padding-left: 0;
  }

  .site-footer__newsletter {
    width: 100%;
  }

  .site-footer__middle-inner {
    flex-wrap: wrap;
    width: min(100% - 2rem, 1002px);
  }

  .site-footer__col {
    min-width: 180px;
    flex: 1 1 180px;
  }
}

@media (max-width: 640px) {
  .site-footer__inner {
    width: min(100% - 2rem, var(--atsko-container));
  }

  .site-footer__brand-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

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

  .site-footer__middle-inner {
    flex-direction: column;
    gap: 2rem;
  }

  .site-footer__bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
