/* Site footer — flat cinematic closer, not a boxed modal */

.site-footer {
  --sf-line: rgba(255, 255, 255, 0.1);
  --sf-muted: rgba(255, 255, 255, 0.52);
  --sf-text: rgba(245, 245, 247, 0.78);
  --sf-heading: rgba(255, 255, 255, 0.42);
  --sf-accent: var(--ayenyx-secondary, #fbaa25);
  position: relative;
  z-index: 2;
  color: var(--sf-text);
  background: #000 !important;
  border: none !important;
  border-top: 1px solid var(--sf-line) !important;
  font-family: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

.site-footer__wrap {
  width: min(var(--ayenyx-container, 1120px), calc(100% - (2 * var(--ayenyx-gutter, 1.25rem))));
  margin: 0 auto;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(16rem, 1.35fr) repeat(3, minmax(0, 1fr));
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
  padding: clamp(3.5rem, 7vw, 5.25rem) 0 2.75rem;
}

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

.site-footer__logo-link {
  display: inline-flex;
  width: fit-content;
  text-decoration: none;
}

.site-footer__brand img,
.logo-placeholder--footer {
  display: block;
  width: 148px;
  height: auto;
  max-height: 36px;
  object-fit: contain;
  object-position: left center;
  background: transparent;
}

.site-footer__tagline {
  margin: 0;
  max-width: 26ch;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--sf-muted) !important;
}

.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.35rem;
}

.site-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  padding: 0;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.site-footer__social-link i,
.site-footer__social-icon {
  display: block;
  width: 0.95rem;
  height: 0.95rem;
  font-size: 0.95rem;
  line-height: 1;
}

.site-footer__social-link:hover {
  color: #111;
  background: var(--sf-accent, #fbaa25);
  border-color: var(--sf-accent, #fbaa25);
  transform: translateY(-2px);
}

.site-footer__col {
  min-width: 0;
  padding-top: 0.15rem;
}

.site-footer__heading {
  margin: 0 0 1.15rem;
  padding: 0;
  font-size: 0.6875rem !important;
  font-weight: 700;
  letter-spacing: 0.18em !important;
  text-transform: uppercase;
  color: var(--ayenyx-primary, #c3002f) !important;
}

.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.site-footer__links a {
  color: var(--sf-text) !important;
  text-decoration: none;
  font-size: 0.875rem;
  line-height: 1.4;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.site-footer__links a:hover {
  color: var(--sf-accent, #fbaa25) !important;
  transform: translateX(3px);
}

.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.site-footer__org {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.45;
  color: #fff !important;
}

.site-footer__address,
.site-footer__phones,
.site-footer__email {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--sf-muted) !important;
}

.site-footer__phones {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.site-footer__contact a {
  color: var(--sf-text) !important;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer__contact a:hover {
  color: var(--sf-accent, #fbaa25) !important;
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  padding: 1.35rem 0 1.6rem;
  border-top: 1px solid var(--sf-line);
}

.site-footer__copyright {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.38) !important;
}

.site-footer__bottom-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-footer__bottom-links a {
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.42) !important;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer__bottom-links a:hover {
  color: var(--sf-accent, #fbaa25) !important;
}

@media (max-width: 991px) {
  .site-footer {
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 2.25rem 1.5rem;
    padding: 3.25rem 0 2.15rem;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
    max-width: 36rem;
  }

  .site-footer__tagline {
    max-width: 42ch;
  }
}

@media (max-width: 575px) {
  .site-footer__inner {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2.5rem 0 1.75rem;
  }

  .site-footer__brand {
    padding: 0;
    border: 0;
  }

  .site-footer__brand img,
  .logo-placeholder--footer {
    width: 136px;
    max-height: 32px;
  }

  .site-footer__tagline {
    max-width: none;
  }

  .site-footer__col {
    padding: 0;
    border: 0;
  }

  .site-footer__heading {
    margin-bottom: 0.85rem;
  }

  .site-footer__links {
    gap: 0.65rem;
  }

  .site-footer__links a {
    min-height: 0;
    font-size: 0.9375rem;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem 0 calc(1.35rem + env(safe-area-inset-bottom, 0px));
  }
}
