
:root {
  /* Colors */
  --footer-bg: #fdfaf6;
  --text-900: #222;
  --text-800: #333;
  --text-600: #666;
  --text-400: #aaa;
  --border-200: #ddd;

  /* Sizing & spacing */
  --container-max: 1200px;
  --space-xxs: 0.5rem;
  --space-xs: 0.8rem;
  --space-sm: 0.875rem;
  --space-md: 1rem;
  --space-lg: 1.25rem;
  --space-xl: 2rem;

  /* Typography */
  --text-base: 1rem;

  /* Icons */
  --icon-size: 24px;

  /* Motion */
  --transition-fast: 150ms;
}

/* --------------------------------------
   Links inside footer columns
   -------------------------------------- */
.footer-column a {
  color: var(--text-800);
  text-decoration: none;
  transition: color var(--transition-fast) ease;
}
.footer-column a:hover {
  color: rgba(0, 0, 0, 0.6);
}
.footer-column a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}



footer {
  background-color: var(--footer-bg);
  padding: var(--space-xl) var(--space-md);
  width: 100vw; /* Forces it to span the viewport width */
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  display: block;
}

/* --------------------------------------
   Layout containers
   -------------------------------------- */
.footer-container {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-xl);
}

.footer-column {
  font-size: var(--text-base);
  color: var(--text-800);
  justify-content: center;
}

div.footer-column h4 {
  margin-bottom: var(--space-lg);
}

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

.footer-column ul li {
  margin-bottom: var(--space-sm);
}

/* --------------------------------------
   Legal links
   -------------------------------------- */
.legal-links {
  margin-bottom: var(--space-md);
}
.legal-links a {
  margin: 0 var(--space-xxs);
  color: var(--text-600);
  text-decoration: none;
  font-size: var(--text-base);
  transition: color var(--transition-fast) ease, text-decoration var(--transition-fast) ease;
}
.legal-links a:hover {
  text-decoration: underline;
}
.legal-links a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}



/* --------------------------------------
   Branding / logo
   -------------------------------------- */
.footer-logo {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  position: relative;
}
.footer-logo img {
  max-width: 150px;
}

/* --------------------------------------
   Social icons
   -------------------------------------- */
.social-icons {
  display: flex;
  padding-top: var(--space-md);
}
.social-icons a {
  margin-right: 10px;
  display: inline-block;
}
.social-icons img {
  width: var(--icon-size);
  height: var(--icon-size);
}

/* --------------------------------------
   Bottom line
   -------------------------------------- */
.footer-bottom {
  text-align: center;
  font-size: var(--text-base);
  color: var(--text-600);
  margin-top: var(--space-xl);
  border-top: 1px solid var(--border-200);
  padding-top: var(--space-md);
}

/* --------------------------------------
   Badge column
   -------------------------------------- */
.badge-column {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.badge-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  text-align: center;
  font-size: var(--text-base);
  color: var(--text-900);
  margin-top: 5rem;
  position: relative;
  left: 15%;
}
.badge-wrapper img {
  max-width: 200px;
  height: auto;
}

.badge-wrapper-mobile {
  display: none;
}

.aa-badge hr {
  border: none;
  border-top: 1px solid var(--text-400);
  width: 80px;
  margin: 0.5rem auto;
}
.aa-badge p {
  margin: 0;
  line-height: 1.2;
}

/* --------------------------------------
   Optional hides (kept but annotated)
   -------------------------------------- */
.company-info,
.footer-columns-wrapper,
.footer-logo-top {
  display: none; /* Shown/responsive below at <768px */
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
  footer {
    background-color: var(--footer-bg);
    padding: var(--space-xl) var(--space-md);
  }

  .footer-logo-top {
    display: block;
    text-align: center;
    margin-bottom: var(--space-xl);
  }
  .footer-logo-top svg {
    max-width: 150px;
    height: auto;
  }

  .footer-columns-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: var(--space-xl);
    padding: 0 3rem;
  }

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



  .badge-wrapper img {
    max-width: 100px;
    margin-bottom: var(--space-xl);
  }
  .badge-wrapper hr {
    width: 60px;
    margin: var(--space-xl) auto;
    border: 0;
    border-top: 1px solid var(--text-400);
  }

  .company-info {
    display: block;
    text-align: center;
    font-size: var(--text-base);
    color: var(--text-800);
    margin: var(--space-xl) 0;
  }
  .company-info li {
    margin-top: 0.5rem;
  }

  .social-icons {
    justify-content: center;
  }

  .footer-container {
    display: none;
  }

  .badge-wrapper-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    text-align: center;
    font-size: var(--text-base);
    color: var(--text-900);
    margin-top: 5rem;
  }
  .badge-wrapper-mobile img {
    max-width: 80px;
    height: auto;
  }
}


@media (prefers-reduced-motion: reduce) {
  .footer-column a,
  .legal-links a {
    transition: none;
  }
}

h2.footer-heading {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    margin-top: 1.5rem;
}