/* ==========================================================================
   AVCO Design System - Footer
   ========================================================================== */

body.avco-page .avco-footer {
  background: var(--avco-primary-900) url('../../images/avco/footer-pattern.png') center / cover no-repeat;
  padding: var(--avco-space-25) var(--avco-space-15) var(--avco-space-12);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  /* Full-width background while staying in container */
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding-left: max(var(--avco-space-15), calc(50vw - 50% + var(--avco-space-15)));
  padding-right: max(var(--avco-space-15), calc(50vw - 50% + var(--avco-space-15)));
}

/* Hide background when custom images are used */
body.avco-page .avco-footer:has(.avco-footer-bg) {
  background: var(--avco-primary-900);
}

/* Footer background images */
body.avco-page .avco-footer-bg.avco-footer-bg-desktop,
body.avco-page .avco-footer-bg.avco-footer-bg-mobile {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: var(--avco-z-base);
  pointer-events: none;
}

/* Desktop background - default visible */
body.avco-page .avco-footer-bg-desktop {
  display: block;
}

/* Mobile background - default hidden */
body.avco-page .avco-footer-bg-mobile {
  display: none;
}

body.avco-page .avco-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(46, 60, 122, 0.3) 0%, transparent 60%);
  pointer-events: none;
  z-index: var(--avco-z-content);
}

body.avco-page .avco-footer > * {
  position: relative;
  z-index: var(--avco-z-content);
}

body.avco-page .avco-footer .avco-footer-top {
  display: flex;
  gap: var(--avco-space-25);
  margin-bottom: var(--avco-space-12);
}

body.avco-page .avco-footer .avco-footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--avco-space-4);
  max-width: 19.6875rem;
}

body.avco-page .avco-footer .avco-footer-logo {
  width: 8.8125rem;
  height: 4rem;
}

body.avco-page .avco-footer .avco-footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

body.avco-page .avco-footer p.avco-footer-brand-text {
  font-size: var(--avco-text-sm);
  font-weight: 400;
  line-height: 1.5;
  color: var(--avco-white);
  margin: 0;
}

body.avco-page .avco-footer p.avco-footer-social-label {
  font-size: var(--avco-text-sm);
  font-weight: 400;
  line-height: 1.5;
  color: var(--avco-gray-50);
  padding-top: var(--avco-space-3);
  margin: 0;
}

body.avco-page .avco-footer .avco-footer-social-icons {
  display: flex;
  gap: 0;
}

body.avco-page .avco-footer .avco-footer-social-icons a {
  width: 2.75rem;
  display: flex;
  align-items: center;
  color: var(--avco-white);
  transition: opacity var(--avco-transition-fast);
}

body.avco-page .avco-footer .avco-footer-social-icons a:hover {
  opacity: 0.7;
}

body.avco-page .avco-footer .avco-footer-social-icons svg {
  width: 1.375rem;
  height: 1.375rem;
  fill: var(--avco-white);
}

body.avco-page .avco-footer .avco-footer-menus {
  display: flex;
  gap: var(--avco-space-20);
  justify-content: space-between;
  flex: 1;
}

body.avco-page .avco-footer .avco-footer-menu h4 {
  font-size: var(--avco-text-base);
  font-weight: 600;
  line-height: 1.5;
  color: var(--avco-white);
  margin-bottom: var(--avco-space-5);
  margin-top: 0;
  padding: 0;
  font-family: 'Noto Sans';
}

body.avco-page .avco-footer .avco-footer-menu h4 a {
  color: inherit;
  text-decoration: none;
}

body.avco-page .avco-footer .avco-footer-menu h4 a:hover {
  text-decoration: underline;
}

body.avco-page .avco-footer .avco-footer-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--avco-space-3);
  margin: 0;
  padding: 0;
}

body.avco-page .avco-footer .avco-footer-menu ul li a {
  font-size: var(--avco-text-sm);
  font-weight: 400;
  line-height: 1.5;
  color: var(--avco-gray-50);
  transition: color var(--avco-transition-fast);
}

/* Footer link hover — see avco-base.css unified hover system */

body.avco-page .avco-footer .avco-footer-divider {
  width: 100%;
  height: 0.0625rem;
  background: var(--avco-primary-50);
}

body.avco-page .avco-footer .avco-footer-contact {
  display: flex;
  justify-content: center;
}

body.avco-page .avco-footer .avco-footer-contact-inner {
  display: flex;
  max-width: 68.5rem;
  width: 100%;
  margin: var(--avco-space-12) 0;
}

body.avco-page .avco-footer .avco-footer-contact-item {
  flex: 1;
  display: flex;
  gap: var(--avco-space-4);
  padding: var(--avco-space-4) 0 var(--avco-space-4) var(--avco-space-8);
  border-right: 0.03125rem solid var(--avco-primary-50);
}

body.avco-page .avco-footer .avco-footer-contact-item:last-child {
  border-right: none;
}

body.avco-page .avco-footer .avco-footer-contact-icon {
  width: var(--avco-space-10);
  height: var(--avco-space-10);
  flex-shrink: 0;
}

body.avco-page .avco-footer .avco-footer-contact-icon svg {
  width: 100%;
  height: 100%;
}

body.avco-page .avco-footer .avco-footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--avco-space-2);
}

body.avco-page .avco-footer span.avco-footer-contact-label {
  font-size: var(--avco-text-xs);
  font-weight: 400;
  line-height: 1.5;
  color: var(--avco-white);
}

body.avco-page .avco-footer span.avco-footer-contact-value,
body.avco-page .avco-footer a.avco-footer-contact-value {
  font-size: var(--avco-text-xs);
  font-weight: 600;
  line-height: 1.5;
  color: var(--avco-white);
  text-decoration: none;
}

body.avco-page .avco-footer a.avco-footer-contact-value:hover {
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

body.avco-page .avco-footer .avco-footer-bottom {
  font-size: var(--avco-text-xs);
  font-weight: 400;
  line-height: 1.5;
  color: var(--avco-white);
  text-align: center;
  margin-top: var(--avco-space-4);
}

body.avco-page .avco-footer .avco-footer-bottom-left a {
  color: var(--avco-white);
  text-decoration: none;
}

body.avco-page .avco-footer .avco-footer-bottom-left a:hover {
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}
