@import url("https://fonts.googleapis.com/css2?family=Lora:wght@400;600;700&family=Nunito:wght@400;600;700;800&display=swap");
@import "../tokens/color.tokens.css";
@import "../tokens/spacing.tokens.css";
@import "../tokens/radius.tokens.css";
@import "../tokens/typography.tokens.css";
@import "../tokens/shadow.tokens.css";
@import "../tokens/component.tokens.css";

* {
  box-sizing: border-box;
}

.site-footer,
.footer {
  position: relative;
  margin-top: var(--space-10);
  padding: var(--space-7) var(--space-8) var(--space-10);
  background: var(--gradient-footer-brand);
  color: var(--text-on-dark);
}

.footer-content {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

.footer-logo-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.footer-brand img {
  width: 220px;
  max-width: 100%;
  display: block;
}

.tagline {
  margin: 0;
  max-width: 48ch;
  font-family: var(--text-body-small-font-family);
  font-weight: var(--text-body-small-font-weight);
  font-size: var(--text-body-small-font-size);
  line-height: var(--text-body-small-line-height);
  color: var(--text-on-dark);
}

.socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-6);
}

.social-icon {
  width: var(--space-9);
  height: var(--space-9);
  border-radius: var(--radius-sm);
  border: var(--border-width-sm) solid var(--background-50);
  background: var(--background-50);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: var(--font-family-body);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  line-height: 1;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-icon:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-button-hover);
}

.social-icon img {
  width: var(--space-6);
  height: var(--space-6);
  object-fit: contain;
}

.footer-links h3,
.footer-contact h3,
.footer-columns h3 {
  margin: 0 0 var(--space-6);
  font-family: var(--font-family-heading);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-lg);
  line-height: var(--line-height-md);
  color: var(--text-on-dark);
}

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: var(--space-3);
}

.footer-links a,
.footer-columns a {
  color: var(--text-on-dark);
  text-decoration: none;
  font-family: var(--text-body-small-font-family);
  font-weight: var(--text-body-small-font-weight);
  font-size: var(--text-body-small-font-size);
  line-height: var(--text-body-small-line-height);
}

.footer-links a:hover,
.footer-columns a:hover {
  text-decoration: underline;
}

.footer-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
}

.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--button-radius);
  border: var(--button-border-width) var(--button-border-style) var(--button-primary-default-border);
  background: var(--button-primary-default-bg);
  color: var(--button-primary-default-text);
  font-family: var(--text-button-label-font-family);
  font-weight: var(--text-button-label-font-weight);
  font-size: var(--font-size-sm);
  line-height: var(--text-button-label-line-height);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.contact-button:hover {
  transform: translateY(-1px);
  background: var(--primary-50);
  box-shadow: var(--shadow-button-hover);
  border: 1px solid var(--button-primary-active-border);
}

.copyright {
  position: absolute;
  left: 50%;
  bottom: var(--space-6);
  transform: translateX(-50%);
  margin: 0;
  text-align: center;
  font-family: var(--text-body-small-font-family);
  font-weight: var(--text-body-small-font-weight);
  font-size: var(--text-body-small-font-size);
  line-height: var(--text-body-small-line-height);
  color: var(--text-on-dark);
  white-space: nowrap;
}

@media (min-width: 834px) {

  .site-footer,
  .footer {
    padding: var(--space-8) var(--space-9) var(--space-10);
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
  }

  .footer-logo-section {
    grid-column: 1 / -1;
  }

  .footer-columns {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
  }
}

@media (min-width: 1194px) {

  .site-footer,
  .footer {
    padding: var(--space-8) var(--space-11) var(--space-10);
  }

  .footer-content {
    grid-template-columns: minmax(320px, 1fr) auto auto;
    gap: var(--space-12);
    align-items: start;
  }

  .footer-logo-section {
    grid-column: auto;
  }

  .footer-columns {
    display: block;
  }

  .footer-columns>div+div {
    margin-top: var(--space-8);
  }

  .footer-links,
  .footer-contact {
    min-width: 220px;
  }
}